/* Trip listing (/trips) and trip detail (/trips/:slug). Builds on base.css tokens. */

/* ── Listing hero ───────────────────────────────────────── */
.list-hero { padding-top: clamp(16px, 3vw, 28px); }
.list-hero__panel {
  --panel: var(--brand);
  position: relative; display: flex; align-items: flex-end; min-height: clamp(340px, 42vw, 440px);
  border-radius: var(--r-xl); overflow: hidden; background: var(--panel); color: #fff; isolation: isolate;
}
.list-hero__panel.cat-tour { --panel: #0a3a40; }
.list-hero__panel.cat-luxury { --panel: #2a2112; }
.list-hero__panel.cat-international { --panel: #0e2348; }
.list-hero__media { position: absolute; inset: 0 0 0 30%; z-index: -1; }
.list-hero__media img, .list-hero__media .img-missing { width: 100%; height: 100%; object-fit: cover; }
.list-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--panel) 0%, color-mix(in srgb, var(--panel) 70%, transparent) 30%, transparent 75%), linear-gradient(0deg, color-mix(in srgb, var(--panel) 55%, transparent), transparent 50%); }
.list-hero__text { padding: clamp(26px, 5vw, 56px); max-width: 640px; }
.list-hero .lead { color: rgb(255 255 255 / .82); }
.breadcrumbs--light { color: rgb(255 255 255 / .7); }
.breadcrumbs--light a:hover { color: #fff; }
.list-hero__cats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.list-hero__cat {
  display: inline-flex; align-items: baseline; gap: 6px; padding: 9px 14px; border-radius: 999px;
  background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); font-size: 14px; font-weight: 600;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .15s;
}
.list-hero__cat b { font-family: var(--display); font-size: 16px; }
.list-hero__cat:hover { background: rgb(255 255 255 / .2); }
.list-hero__cat.is-active { background: #fff; color: var(--ink); }
@media (max-width: 760px) {
  .list-hero__panel { flex-direction: column; align-items: stretch; min-height: 0; }
  .list-hero__media { position: relative; inset: auto; height: 220px; }
  .list-hero__media::after { background: linear-gradient(0deg, var(--panel) 2%, transparent 60%); }
  .list-hero__text { padding-top: 4px; }
}

/* ── Filters ────────────────────────────────────────────── */
.filters { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 28px; scroll-margin-top: calc(var(--header-h) + 12px); }
.filters label { position: relative; }
.filters input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.filters label:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.filters__cats { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__cats .chip { cursor: pointer; height: 40px; padding: 0 16px; }
.filters__bar {
  display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(140px, 1fr)) auto; gap: 8px;
  padding: 8px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.filters__bar .input, .filters__bar .select { min-height: 48px; border-color: transparent; background-color: var(--bg); }
.filters__bar .input:focus, .filters__bar .select:focus { background-color: #fff; }
.filters__search { position: relative; display: block; }
.filters__search .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.filters__search .input { padding-left: 44px; }
@media (max-width: 1080px) { .filters__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .filters__search { grid-column: 1 / -1; } }
@media (max-width: 1080px) and (min-width: 600px) { .filters__bar { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .filters__bar > :nth-child(4) { grid-column: 1 / -1; } }

.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.empty { text-align: center; padding: clamp(36px, 6vw, 64px) 24px; max-width: 640px; margin: 8px auto 0; }
.empty__icon { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); }
.empty p { margin-top: 10px; }

/* ── Detail hero ────────────────────────────────────────── */
.trip-hero { padding-top: clamp(18px, 3vw, 32px); }
.trip-hero__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.trip-hero__badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.cat-badge { background: color-mix(in srgb, var(--cat) 13%, #fff); color: var(--cat); }
a.badge:hover { filter: brightness(.95); }
.trip-hero__title { max-width: 22ch; }
.trip-hero__where { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-2); font-weight: 500; }
.trip-hero__where .ic { color: var(--accent); }

.mosaic { margin-top: clamp(20px, 3vw, 28px); display: grid; gap: 8px; border-radius: var(--r-xl); overflow: hidden; }
.mosaic__tile { position: relative; display: block; padding: 0; border: 0; overflow: hidden; background: var(--bg-2); cursor: zoom-in; min-height: 0; }
.mosaic__tile img, .mosaic__tile .img-missing { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .3s; }
.mosaic__tile:hover img { transform: scale(1.04); filter: brightness(.94); }
.mosaic__all { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 650; box-shadow: var(--shadow); }
.mosaic--one { aspect-ratio: 21 / 9; max-height: 540px; }
.mosaic--two { grid-template-columns: 1fr 1fr; height: clamp(260px, 36vw, 460px); }
.mosaic--grid { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(150px, 17vw, 230px)); }
.mosaic--grid .mosaic__tile:first-child { grid-row: span 2; }
.mosaic--grid.n3 { grid-template-columns: 2fr 1fr; }
.mosaic--grid.n4 .mosaic__tile:nth-child(4) { grid-column: span 2; }
@media (max-width: 760px) {
  .mosaic, .mosaic--two, .mosaic--grid { display: flex; height: auto; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--r-lg); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); gap: 8px; scrollbar-width: none; }
  .mosaic::-webkit-scrollbar { display: none; }
  .mosaic__tile { flex: 0 0 86%; aspect-ratio: 4 / 3; scroll-snap-align: center; border-radius: var(--r-lg); }
  .mosaic--one .mosaic__tile { flex-basis: 100%; }
  .mosaic--one { aspect-ratio: auto; }
}

.facts {
  list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.facts li { display: flex; align-items: center; gap: 12px; padding: 16px 18px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); font-weight: 650; font-size: 15px; line-height: 1.25; }
.facts .ic { width: 38px; height: 38px; padding: 9px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); }
.facts small { display: block; font-size: 11.5px; font-weight: 650; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 3px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr 1fr; } .facts li { padding: 14px; gap: 10px; font-size: 14px; } .facts .ic { width: 34px; height: 34px; padding: 8px; } }

/* ── Detail body ────────────────────────────────────────── */
.trip-body { padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 7vw, 88px); }
.trip-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.trip-aside { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; border-radius: var(--r-lg); padding: 2px; margin: -2px; }
@media (max-width: 960px) {
  .trip-layout { grid-template-columns: minmax(0, 1fr); }
  .trip-aside { position: static; max-height: none; overflow: visible; }
}

.subnav {
  position: sticky; top: var(--header-h); z-index: 5; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 4px; padding: 10px var(--gutter); background: rgb(248 246 241 / .92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 8px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.subnav a:hover { background: rgb(13 31 27 / .06); color: var(--ink); }
.subnav a.is-active { background: var(--ink); color: #fff; }
@media (min-width: 961px) { .subnav { margin-inline: 0; padding-inline: 0; } }

.trip-sec { padding: clamp(28px, 3.5vw, 40px) 0; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 64px); }
.trip-sec:last-child { border-bottom: 0; }
.trip-sec > .h3, .trip-sec__head { margin-bottom: 18px; }
.trip-sec__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.trip-sec__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.trip-sec .lead { margin-top: 0; }

.highlights { list-style: none; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.highlights li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); font-weight: 550; }
.highlights .ic { color: var(--accent); margin-top: 1px; }

.alt-profile { margin: 0 0 28px; padding: 18px 18px 8px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.alt-profile figcaption { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; font-weight: 650; margin-bottom: 6px; flex-wrap: wrap; }
.alt-profile figcaption span:first-child { display: inline-flex; align-items: center; gap: 6px; }
.alt-profile > svg { width: 100%; height: auto; overflow: visible; }
.alt-grid { stroke: var(--line); stroke-dasharray: 4 6; }
.alt-line { fill: none; stroke: var(--brand-2); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.alt-pt circle { fill: #fff; stroke: var(--brand-2); stroke-width: 3; }
.alt-pt text { font: 650 12.5px var(--body); fill: var(--ink); }
.alt-pt .alt-day { font-weight: 600; fill: var(--muted); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-2) 0 6px, transparent 6px 12px); }
.timeline__day { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding-bottom: 26px; }
.timeline__day:last-child { padding-bottom: 0; }
.timeline__dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font: 700 16px/1 var(--display); box-shadow: 0 0 0 5px var(--bg); }
.timeline__day:last-child .timeline__dot { background: var(--accent); }
.timeline__label { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-2); }
.timeline__title { font-size: 19px; margin: 4px 0 6px; line-height: 1.25; }
.timeline__body > p:not(.timeline__label) { color: var(--ink-2); }
.timeline__meta { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.timeline__meta li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.timeline__meta .ic { color: var(--brand-2); }

.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.incl__col { padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.incl__col--x { background: transparent; }
.incl__h { display: flex; align-items: center; gap: 8px; font-size: 17px; margin-bottom: 14px; }
.incl__h .ic { color: var(--ok); }
.incl__col--x .incl__h .ic { color: var(--danger); }
.incl__col--x li { color: var(--ink-2); }

.months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; }
.months__m { display: grid; gap: 6px; text-align: center; font-size: 13px; font-weight: 650; }
.months__m i { height: 34px; border-radius: 10px; background: var(--brand-soft); }
.months__m.is-best i { background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.months__m.is-closed { color: var(--muted); font-weight: 500; }
.months__m.is-closed i { background: repeating-linear-gradient(-45deg, var(--line) 0 4px, transparent 4px 8px); border: 1px solid var(--line); }
.months__legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.months__legend span { display: inline-flex; align-items: center; gap: 7px; }
.months__legend i { width: 14px; height: 14px; border-radius: 4px; }
.lg-best { background: var(--accent); }
.lg-open { background: var(--brand-soft); border: 1px solid #c9ddd4; }
.lg-closed { background: repeating-linear-gradient(-45deg, var(--line-2) 0 3px, transparent 3px 6px); border: 1px solid var(--line-2); }
@media (max-width: 560px) { .months { grid-template-columns: repeat(6, 1fr); } }

.weather { margin-top: 24px; padding: 18px; border-radius: var(--r-lg); background: linear-gradient(160deg, #eaf3fb, #f6f9f6); border: 1px solid #dde8ee; }
.weather__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.weather__head .label { display: inline-flex; align-items: center; gap: 6px; }
.weather__days { display: grid; grid-template-columns: repeat(7, minmax(78px, 1fr)); gap: 8px; overflow-x: auto; scrollbar-width: none; }
.weather__days::-webkit-scrollbar { display: none; }
.weather__day { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: rgb(255 255 255 / .75); text-align: center; font-size: 13px; min-height: 132px; }
.weather__day b { font-weight: 700; }
.weather__day svg { width: 30px; height: 30px; color: #3a77c7; }
.weather__day .wx-sun { color: #e8a317; }
.weather__t { font: 700 15px/1 var(--display); }
.weather__t span { color: var(--muted); font-weight: 600; }
.weather__rain { color: #3a77c7; font-weight: 600; font-size: 12px; }
.weather__day.is-skel { background: linear-gradient(90deg, rgb(255 255 255 / .5), rgb(255 255 255 / .95), rgb(255 255 255 / .5)); background-size: 200% 100%; animation: skel 1.4s infinite linear; }
@keyframes skel { to { background-position: -200% 0; } }
.weather__fail { grid-column: 1 / -1; color: var(--muted); font-size: 14px; padding: 12px 0; }
.trip-sec .map-embed { margin-top: 16px; }

.faqs { display: grid; gap: 10px; }
.faq { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: border-color .15s; }
.faq[open] { border-color: var(--line-2); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; list-style: none; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { transition: transform .25s var(--ease); color: var(--muted); }
.faq[open] summary .ic { transform: rotate(180deg); }
.faq p { padding: 0 20px 18px; color: var(--ink-2); }

/* ── Booking card ───────────────────────────────────────── */
.book-card { display: grid; gap: 18px; padding: 22px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.book-card + .book-card { margin-top: 16px; }
.trip-hero__cta { flex: none; }
.book-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.book-card__meta { font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.book-card__name { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; margin-top: 4px; }
.book-card__head .badge { flex: none; }
.book-card .label { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.book-card .label .ic { color: var(--brand-2); }
.book-step { border: 0; padding: 0; margin: 0; min-width: 0; }
.book-step .field > span { display: inline-flex; align-items: center; gap: 7px; }
.book-step--row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.book-step--row .label { margin: 0; }
.dates { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.date-pill { position: relative; display: grid; gap: 3px; padding: 11px 12px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.date-pill input { position: absolute; opacity: 0; pointer-events: none; }
.date-pill:hover { border-color: var(--ink-2); }
.date-pill:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); box-shadow: 0 0 0 3px rgb(19 92 76 / .14); }
.date-pill:has(input:focus-visible) { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.date-pill__d { font-weight: 700; font-size: 14.5px; }
.date-pill__s { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.date-pill.is-full { opacity: .5; cursor: not-allowed; }
.date-pill.is-full .date-pill__d { text-decoration: line-through; }
.book-closed { padding: 14px 16px; border-radius: 14px; background: var(--bg-2); }
.book-closed p + p { margin-top: 6px; }
.tiers { display: grid; gap: 8px; }
.tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line-2); cursor: pointer; transition: border-color .15s, background .15s; }
.tier input { accent-color: var(--brand-2); width: 18px; height: 18px; margin: 0; }
.tier:has(input:checked) { border-color: var(--brand-2); background: var(--brand-soft); }
.tier__name { flex: 1; font-weight: 600; font-size: 14.5px; }
[data-date-note].is-warn { color: var(--accent-2); font-weight: 600; }
.addons summary { list-style: none; cursor: pointer; margin: 0; }
.addons summary::-webkit-details-marker { display: none; }
.addons summary::after { content: '+'; margin-left: auto; font-size: 18px; color: var(--muted); }
.addons[open] summary::after { content: '–'; }
.addons summary { display: flex; width: 100%; }
.addons__list { display: grid; gap: 12px; margin-top: 4px; }
.addon span { font-size: 14.5px; font-weight: 550; }
.book-card__alt { display: grid; gap: 8px; padding-top: 4px; }
.book-card__trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; font-size: 12.5px; color: var(--muted); }
.book-card__trust li { display: inline-flex; align-items: center; gap: 5px; }
.book-card__trust a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Mobile sticky bar ──────────────────────────────────── */
.sticky-bar { display: none; }
@media (max-width: 960px) {
  .sticky-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgb(255 255 255 / .94);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -16px rgb(13 31 27 / .25);
    transition: transform .3s var(--ease);
  }
  .sticky-bar.is-hidden { transform: translateY(110%); }
  .sticky-bar__info { display: grid; min-width: 0; }
  .sticky-bar__info strong { font: 700 16px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-bar__info small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-bar .btn { flex: none; }
  .page-trip .site-footer { padding-bottom: 100px; }
}

/* ── Print: a clean itinerary ───────────────────────────── */
.print-head { display: none; }
@media print {
  @page { margin: 14mm; }
  .print-head { display: block; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid #0b3d33; font-size: 12px; }
  .mosaic, .subnav, .trip-aside, .sticky-bar, .weather, .map-embed, .breadcrumbs, .trip-hero__cta, .trip-sec__actions { display: none !important; }
  .trip-layout { display: block; }
  .trip-hero, .trip-body { padding: 0; }
  .trip-hero__title { font-size: 28px; max-width: none; }
  .facts { border-color: #ccc; }
  .facts li { padding: 8px 10px; font-size: 12px; }
  .facts .ic { width: 26px; height: 26px; padding: 5px; }
  .trip-sec { padding: 14px 0; break-inside: auto; }
  .timeline__day { break-inside: avoid; padding-bottom: 14px; }
  .timeline__dot, .months__m i, .facts .ic, .cat-badge { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .faq summary .ic { display: none; }
  .faq:not([open]) { display: none; }
  body { font-size: 12.5px; }
}
