/* Suvia catalogue controls. Product cards retain their existing styles. */
.sx-tour-catalog .suvia-catalog-controls{margin:18px 0 24px;min-width:0}
.sx-tour-catalog .suvia-trip-types{display:flex;gap:10px;align-items:stretch;margin-bottom:22px}
.sx-tour-catalog .suvia-trip-types a{display:flex;align-items:center;justify-content:center;min-height:48px;padding:10px 24px;border:1px solid #d9dce1;border-radius:10px;background:#fff;color:#222;text-decoration:none;font-size:17px;font-weight:600;line-height:1.35;white-space:nowrap}
.sx-tour-catalog .suvia-trip-types a.is-active{background:#edf7ff;border-color:#1683ca;color:#087cc5;box-shadow:inset 0 0 0 1px #1683ca}
.sx-tour-catalog .suvia-popular{margin:0 0 18px;min-width:0}
.sx-tour-catalog .suvia-popular-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;gap:12px}
.sx-tour-catalog .suvia-popular-heading h2{font-size:16px;line-height:1.4;margin:0;font-weight:600;color:#343b43}
.sx-tour-catalog .suvia-popular-heading a,.sx-tour-catalog .suvia-active-filters a{font-size:13px;color:#087cc5;text-decoration:none}
.sx-tour-catalog .suvia-route-cards{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;-ms-overflow-style:none;padding:3px 2px 7px}
.sx-tour-catalog .suvia-route-card{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:center;flex:0 0 calc((100% - 36px)/4);min-width:180px;height:120px;border-radius:11px;overflow:hidden;background:#425b67;text-decoration:none;scroll-snap-align:start;color:#fff}
.sx-tour-catalog .suvia-route-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.sx-tour-catalog .suvia-route-card:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.13),rgba(0,0,0,.47));z-index:-1}
.sx-tour-catalog .suvia-route-card span{font-size:21px;font-weight:700;text-shadow:0 1px 4px #0007;padding:12px;text-align:center;line-height:1.35}
.sx-tour-catalog .suvia-route-card.is-active{outline:3px solid #1683ca;outline-offset:-3px}
.sx-tour-catalog .suvia-route-card.is-active:after{content:"✓";position:absolute;right:0;bottom:0;background:#1683ca;border-radius:8px 0 0 0;width:25px;height:24px;text-align:center;font-size:17px;font-weight:700}
.sx-tour-catalog .suvia-catalog-bar{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;border:0;background:#fff;padding:5px 0}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-control{position:static;min-width:0}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-trigger{width:100%;min-width:0;min-height:48px;display:flex;gap:8px;align-items:center;justify-content:center;padding:10px 8px;border:0;border-radius:0;background:#fff;color:#1f252d;font-size:16px;font-weight:500;box-shadow:none;white-space:nowrap}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-trigger span{overflow:hidden;text-overflow:ellipsis}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-trigger i{flex:0 0 6px;width:6px;height:6px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);margin-top:-3px}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-trigger[aria-expanded=true]{color:#087cc5}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-trigger[aria-expanded=true] i{transform:rotate(225deg);margin-top:3px}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-control+.sx-tour-filter-control>.sx-tour-filter-trigger{border:0}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-panel{position:absolute;top:calc(100% + 1px);left:0;right:0;width:100%;min-width:0;max-width:none;box-sizing:border-box;border:1px solid #e4e8ec;border-radius:0 0 12px 12px;background:#fff;padding:18px;z-index:50;box-shadow:0 10px 25px #1b33451a}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-panel[hidden]{display:none!important}
.sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-panel h2{font-size:17px;margin:0 0 12px}
.sx-tour-catalog .suvia-catalog-bar select{width:100%;min-height:46px;border:1px solid #d5dce2;border-radius:8px;padding:8px 12px;background:#fff;font-size:16px;color:#222}
.sx-tour-catalog .suvia-catalog-bar .suvia-sort-options{padding:0 18px}
.sx-tour-catalog .suvia-sort-options>button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:18px 4px;border:0;border-radius:0;background:#fff;text-align:left;font-size:16px;color:#242b31}
.sx-tour-catalog .suvia-sort-options>button:last-child{border-bottom:0}
.sx-tour-catalog .suvia-sort-options>button.is-active{color:#087cc5;font-weight:600}
.sx-tour-catalog .suvia-day-presets{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}
.sx-tour-catalog .suvia-day-presets button{padding:9px 13px;min-height:40px;border:1px solid #d9e1e7;border-radius:7px;background:#fff;color:#28343f;font-size:14px}
.sx-tour-catalog .suvia-active-filters{display:flex;justify-content:flex-end;padding-top:10px}
.sx-tour-catalog .suvia-catalog-controls :is(a,button,select,input):focus-visible{outline:2px solid #087cc5;outline-offset:3px}
.suvia-route-countries{border:0;padding:0;margin:0;display:flex;gap:12px;flex-wrap:wrap}
.suvia-route-countries legend{font-weight:600;margin-bottom:10px}
.suvia-route-countries small{flex-basis:100%}
.suvia-route-image-preview img{width:260px;max-width:100%;height:145px;object-fit:cover;border-radius:8px;margin:8px 0}
.suvia-route-thumb img{width:96px;height:60px;object-fit:cover;border-radius:6px}
@media(max-width:767px){
 .sx-tour-catalog .suvia-catalog-controls{margin:14px 0 18px}
 .sx-tour-catalog .suvia-trip-types{gap:7px;margin-bottom:17px}
 .sx-tour-catalog .suvia-trip-types a{flex:1 1 auto;min-height:43px;padding:8px 9px;font-size:14px;border-radius:8px}
 .sx-tour-catalog .suvia-popular-heading h2{font-size:14px}
 .sx-tour-catalog .suvia-route-cards{gap:9px}
 .sx-tour-catalog .suvia-route-card{flex-basis:145px;min-width:145px;height:88px;border-radius:9px}
 .sx-tour-catalog .suvia-route-card span{font-size:17px;padding:8px}
 .sx-tour-catalog .suvia-popular{margin-bottom:12px}
 .sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-trigger{min-height:44px;padding:8px 3px;gap:6px;font-size:14px}
 .sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-panel{padding:16px}
 .sx-tour-catalog .suvia-catalog-bar .suvia-sort-options{padding:0 16px}
}
@media(max-width:359px){
 .sx-tour-catalog .suvia-trip-types{gap:5px}
 .sx-tour-catalog .suvia-trip-types a{font-size:12px;padding:8px 6px}
 .sx-tour-catalog .suvia-catalog-bar .sx-tour-filter-trigger{font-size:12px;gap:4px}
}

/* BEGIN Suvia route arrow and duration slider 2026-11-03 */
body.post-type-archive-itineraries:has(.sx-site-brand[aria-label="奇异鸟旅行首页"]) .suvia-route-card {
  flex: 0 0 220px;
  min-width: 180px;
  height: 96px;
}
body.post-type-archive-itineraries:has(.sx-site-brand[aria-label="奇异鸟旅行首页"]) .suvia-route-card span { font-size: 18px; padding: 8px; }
.sx-tour-catalog .suvia-route-viewport { position: relative; min-width: 0; }
.sx-tour-catalog .suvia-route-viewport.has-route-overflow::after { content: ""; position: absolute; top: 3px; right: 0; bottom: 3px; width: 38px; background: linear-gradient(90deg, transparent, #000000db); pointer-events: none; }
body.post-type-archive-itineraries:has(.sx-site-brand[aria-label="奇异鸟旅行首页"]) .suvia-route-next { position: absolute; z-index: 2; top: 50%; right: -4px; transform: translateY(-50%); width: 42px; height: 42px; min-width: 42px; padding: 0; border: 0; background: transparent; color: #1f4f70; display: grid; place-items: center; cursor: pointer; }
.sx-tour-catalog .suvia-route-next::before { content: ""; position: absolute; width: 28px; height: 28px; border: 1px solid #d9e1e8; border-radius: 50%; background: #fff; box-shadow: 0 2px 7px #173b5026; }
.sx-tour-catalog .suvia-route-next svg { position: relative; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx-tour-catalog .suvia-route-next[hidden], .sx-tour-catalog .has-duration-slider .sx-tour-duration-fields[hidden] { display: none !important; }
.sx-tour-catalog .suvia-duration-slider { margin: 2px 0 0; min-width: 0; }
.sx-tour-catalog .suvia-duration-summary { display: flex; justify-content: space-between; gap: 12px; align-items: center; font-size: 13px; color: #576675; }
.sx-tour-catalog .suvia-duration-summary output { color: #087cc5; font-size: 14px; font-weight: 600; }
.sx-tour-catalog .suvia-duration-rail { position: relative; height: 42px; margin: 8px 21px 0; touch-action: none; user-select: none; cursor: pointer; }
.sx-tour-catalog .suvia-duration-track { position: absolute; height: 4px; top: 19px; right: 0; left: 0; border-radius: 4px; background: #dfe7ee; }
.sx-tour-catalog .suvia-duration-track span { position: absolute; height: 100%; left: var(--duration-low); right: calc(100% - var(--duration-high)); border-radius: inherit; background: #1683ca; }
body.post-type-archive-itineraries:has(.sx-site-brand[aria-label="奇异鸟旅行首页"]) .suvia-duration-rail [role="slider"] { position: absolute; top: 0; left: var(--duration-low); width: 42px; min-width: 42px; height: 42px; padding: 0; border: 0; border-radius: 50%; transform: translateX(-50%); background: transparent; color: #1683ca; cursor: grab; touch-action: none; }
body.post-type-archive-itineraries:has(.sx-site-brand[aria-label="奇异鸟旅行首页"]) .suvia-duration-rail [data-range-bound="max"] { left: var(--duration-high); }
.sx-tour-catalog .suvia-duration-rail [role="slider"]::after { content: ""; position: absolute; width: 20px; height: 20px; left: 11px; top: 11px; box-sizing: border-box; border: 2px solid currentColor; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px #1b334526; }
.sx-tour-catalog .suvia-duration-rail [role="slider"]:focus-visible { outline: 2px solid #087cc5; outline-offset: 0; z-index: 3; }
.sx-tour-catalog .suvia-duration-rail [role="slider"]:active { cursor: grabbing; }
.sx-tour-catalog .suvia-duration-scale { display: flex; justify-content: space-between; padding-inline: 14px; margin-top: -2px; color: #73808b; font-size: 12px; line-height: 1.4; }
@media (max-width: 767px) {
  body.post-type-archive-itineraries:has(.sx-site-brand[aria-label="奇异鸟旅行首页"]) .suvia-route-card { flex-basis: 124px; min-width: 124px; height: 76px; border-radius: 8px; }
  body.post-type-archive-itineraries:has(.sx-site-brand[aria-label="奇异鸟旅行首页"]) .suvia-route-card span { font-size: 15px; padding: 6px; }
}
/* END Suvia route arrow and duration slider 2026-11-03 */

/* Hide the route scrollbar while retaining touch, keyboard and arrow scrolling. */
.sx-tour-catalog .suvia-route-cards::-webkit-scrollbar{display:none;width:0;height:0}


/* Compact the archive's breadcrumb and filter-to-results spacing. */
body.post-type-archive-itineraries .sx-tour-catalog.sx-archive-journeys .sx-tour-catalog__content { margin-top: 24px !important; }
body.post-type-archive-itineraries .sx-tour-catalog .suvia-catalog-controls { margin-bottom: 0; }
body.post-type-archive-itineraries .sx-tour-catalog.sx-archive-journeys .sx-tour-catalog__content .sx-tour-results { margin-top: 0 !important; padding-top: 16px !important; }
@media (max-width: 767px) {
  body.post-type-archive-itineraries:has(.sx-site-brand[aria-label="舒行首页"]) .sx-tour-catalog .sx-tour-catalog__content { margin-top: 0 !important; }
}
