/* Glue between the handoff's site.css and live data (keep site.css as delivered; put changes here).
   Mostly: real form controls (checkbox chips, number steppers) styled like the reference's buttons. */
@layer components {
  /* Toggle chips are <label><input type=checkbox class=sr-only> …: same look as aria-pressed in site.css. */
  .toggle-chip { cursor: pointer; }
  .toggle-chip:has(input:checked) { background: color-mix(in srgb, var(--blue) 12%, transparent); border-color: var(--blue); color: var(--link); }
  .toggle-chip:has(input:not(:checked)) .i--on, .toggle-chip:has(input:checked) .i--off { display: none; }
  .toggle-chip:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }

  /* Steppers hold a real number input (typeable without script). */
  input.stepper__val { width: 64px; border: 0; background: transparent; color: inherit; font: inherit; font-size: var(--fs-h3); font-weight: 600; text-align: center; -moz-appearance: textfield; appearance: textfield; }
  input.stepper__val::-webkit-inner-spin-button, input.stepper__val::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

  /* "From" only matters when flights are covered. */
  form:has(input[name="cover"][value="flights"]:not(:checked)) [data-needs-flights] { display: none; }

  /* Forms that look like links/cards (tradeoffs, fixes, plan actions are POST forms). */
  .inline-form { display: contents; }
  button.fix { width: 100%; text-align: left; font: inherit; color: inherit; }

  /* Planning rows that wait for their first event. */
  .source[data-state="waiting"] .source__state { color: var(--ink-3); }
  .source[data-state="waiting"] .source__bar > span { animation: none; transform: scaleX(0); }

  /* Places without a map position, and the "loading days" state. */
  .days[aria-busy="true"] .days__list { opacity: .6; }

  /* Chat bubbles added by app.js. */
  .chat__log { display: grid; gap: var(--s3); }

  /* Legal drafts carry a visible "under review" note. */
  .draft { display: inline-block; padding: 4px 10px; border-radius: var(--r-pill); background: var(--chip-est-bg); color: var(--chip-est-ink); font-size: var(--fs-sm); font-weight: 600; }

  /* Full-width buttons may wrap on the smallest phones instead of widening the page. */
  .btn--block { white-space: normal; text-align: center; height: auto; min-height: var(--tap); padding-block: var(--s3); }
  /* The rotating examples never wrap (they sit inside a one-line input). */
  .start__examples span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}

/* Phones: the hero box stacks, the sample band's card flows under the copy, section heads stack. */
@layer pages {
  @media (max-width: 560px) {
    .start__text { flex-direction: column; align-items: stretch; padding: var(--s3) var(--s3) var(--s3) var(--s5); border-radius: var(--r-xl); }
    .start__text .btn { width: 100%; }
    .start__input, .start__examples { font-size: 18px; }
    .start__fields { grid-template-columns: 1fr 1fr; border-radius: var(--r-xl); }
    .start__go { width: 100%; height: 52px; border-radius: var(--r-pill); grid-column: 1 / -1; }
    .band { display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s4); gap: var(--s4); }
    .band__copy { position: relative; left: auto; bottom: auto; padding: var(--s3) var(--s2) 0; order: 2; }
    .glass { position: relative; right: auto; top: auto; width: 100%; order: 1; }
    .sec-head h2 { flex-basis: 100%; }
    .city-hero { min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 180px; }
    .city-hero__copy { position: relative; left: auto; right: auto; bottom: auto; padding: var(--s5); }
    .city-hero h1 { font-size: 40px; }
  }
  /* Tablets and phones: the main links move into a compact "Cities · Plan a trip" pair in the bar,
     and on a form the summary + submit come after the fields (the plan page keeps its money-first summary). */
  .nav__m { display: none; }
  @media (max-width: 1040px) {
    .nav__end { display: flex; align-items: center; gap: var(--s4); }
    .nav__m { display: inline-flex; }
    .nav__end a.nav__cta { color: var(--on-blue); min-height: 36px; padding-inline: var(--s4); }
    form.layout > .summary { order: 2; }
  }
  /* The smallest phones: logo + "Plan a trip" only (Cities is on the home page). */
  @media (max-width: 380px) { .nav__end .nav__m:not(.nav__cta) { display: none; } }
  /* Plan page at laptop sizes: plan cards keep their status on one line; swaps go one per row while the
     summary column is beside them; section heads wrap below their controls instead of squeezing the title. */
  .plan .status { white-space: nowrap; }
  @media (max-width: 1280px) {
    .results .tradeoffs { grid-template-columns: minmax(0, 1fr); }
    .results .sec-head h2 { flex-basis: 100%; }
  }
}

/* ---------- Production look: photos, colour, motion (2026-10-08) ---------- */
@layer pages {
  /* Home hero over a destination photo, search card on top (as on Expedia, Booking). */
  .hero--photo { position: relative; isolation: isolate; color: #fff; padding: clamp(72px, 10vw, 140px) 0 clamp(64px, 8vw, 112px); overflow: hidden; background: #0d1b2a; }
  .hero--photo .hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 18s var(--ease-out) both; }
  .hero__shade { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 60% at 50% 45%, rgba(5, 18, 38, .38) 0%, rgba(5, 18, 38, .12) 70%), linear-gradient(180deg, rgba(5, 18, 38, .35) 0%, rgba(5, 18, 38, .05) 40%, rgba(5, 18, 38, .45) 100%); }
  .hero--photo .hero__sub, .hero--photo .trust li { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
  .hero--photo h1 { color: #fff; text-shadow: 0 2px 24px rgba(0, 0, 0, .25); }
  .hero--photo .hero__sub { color: rgba(255, 255, 255, .9); }
  .hero--photo .trust li { color: rgba(255, 255, 255, .92); }
  .hero--photo .trust .i { color: #7ee2a8; }
  .hero--photo .seg { background: rgba(255, 255, 255, .22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
  .hero--photo .seg label { color: #fff; }
  .hero--photo .seg label:has(input:checked) { color: var(--ink); }
  .hero--photo .start__text, .hero--photo .start__fields { box-shadow: 0 24px 60px rgba(0, 0, 0, .35); color: var(--ink); }
  .hero__credit { position: absolute; right: 16px; bottom: 10px; margin: 0; font-size: 12px; color: rgba(255, 255, 255, .75); }
  .hero__credit a { color: inherit; }
  @keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

  /* Section header with an action on the right. */
  .sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; }

  /* Popular destinations: photo cards, gentle zoom on hover. */
  .dest-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
  .dest-item { margin: 0; position: relative; }
  .dest { position: relative; display: block; border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; text-decoration: none; background: #1d2b3a; box-shadow: var(--shadow-1); transition: transform var(--dur-4) var(--ease-out), box-shadow var(--dur-4); }
  .dest:hover { text-decoration: none; transform: translateY(-6px); box-shadow: var(--shadow-3); }
  .dest:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
  .dest__img, .dest__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
  .dest__img img { object-fit: cover; transition: transform 900ms var(--ease-out); animation: img-in 900ms var(--ease-out) both; }
  .dest:hover .dest__img img { transform: scale(1.07); }
  .dest__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .65)); }
  .dest__img--c0 { background: linear-gradient(140deg, #0f4c81, #4aa3df); }
  .dest__img--c1 { background: linear-gradient(140deg, #1b5e20, #66bb6a); }
  .dest__img--c2 { background: linear-gradient(140deg, #4a148c, #9575cd); }
  .dest__img--c3 { background: linear-gradient(140deg, #b23a48, #f08a5d); }
  .dest__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--s5); display: grid; gap: 2px; }
  .dest__body b { font-size: var(--fs-h4); font-weight: 600; letter-spacing: -.02em; }
  .dest__body span { font-size: var(--fs-sm); opacity: .9; }
  .dest__credit { margin-top: 6px; font-size: 11px; color: var(--ink-3); }
  .dest__credit a { color: inherit; }
  @media (max-width: 1040px) { .dest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) {
    /* Phones: a swipeable row, like travel apps. */
    .dest-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s3); margin-inline: calc(-1 * var(--gutter, 16px)); padding: 0 var(--gutter, 16px) var(--s2); scrollbar-width: none; }
    .dest-grid::-webkit-scrollbar { display: none; }
    .dest-item { flex: 0 0 72%; scroll-snap-align: start; }
  }

  /* Colour: a soft blue section and a glowing closing band (the tag yellow stays logo-only). */
  .section--tint { background: color-mix(in srgb, var(--blue) 6%, var(--bg)); }
  .section--glow { background: radial-gradient(120% 140% at 15% 0%, #1f6fd1 0%, #0b2a55 45%, #071a33 100%); }

  /* Plan page: the destination photo behind the title. */
  .trip-hero { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-2xl); min-height: clamp(220px, 28vw, 340px); margin-top: var(--s5); display: flex; align-items: flex-end; background: #0d1b2a; }
  .trip-hero img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 14s var(--ease-out) both; }
  .trip-hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 30%, rgba(0, 0, 0, .65)); }
  .trip-hero__copy { padding: clamp(20px, 3vw, 40px); }
  .trip-hero .eyebrow { color: rgba(255, 255, 255, .9); }
  .trip-hero h1 { color: #fff; }

  /* Motion: photos fade in; cards lift on hover. */
  @keyframes img-in { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
  .honest, .label-card, .tradeoff, .offer, .plan { transition: transform var(--dur-4) var(--ease-out), box-shadow var(--dur-4), border-color var(--dur-3); }
  .honest:hover, .label-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
  .btn--primary { transition: transform var(--dur-2) var(--ease-out), background var(--dur-2), box-shadow var(--dur-2); }
  .btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 22px color-mix(in srgb, var(--blue) 35%, transparent); }
  .btn--primary:active { transform: none; }

  @media (prefers-reduced-motion: reduce) {
    .hero--photo .hero__bg, .trip-hero img, .dest__img img { animation: none; }
    .dest:hover, .dest:hover .dest__img img, .honest:hover, .label-card:hover, .btn--primary:hover { transform: none; }
  }
}

/* ---------- Plan page, Expedia-style (2026-10-08) ---------- */
@layer pages {
  /* Search summary bar: boxed fields + a search button, like a travel site's results page. */
  .sbar { display: flex; gap: var(--s2); align-items: stretch; margin-top: var(--s5); flex-wrap: wrap; }
  .sbar__cell { flex: 1 1 160px; display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 8px var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--tile); color: var(--ink); text-decoration: none; transition: border-color var(--dur-2), box-shadow var(--dur-2); }
  .sbar__cell:hover { text-decoration: none; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
  .sbar__cell .i { flex: none; color: var(--ink-2); font-size: 20px; }
  .sbar__cell span { display: grid; min-width: 0; }
  .sbar__cell small { font-size: 12px; color: var(--ink-3); }
  .sbar__cell b { font-weight: 600; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sbar__go { flex: none; display: inline-flex; align-items: center; gap: var(--s2); padding: 0 var(--s5); border-radius: var(--r-pill); background: var(--blue); color: var(--on-blue); font-weight: 600; text-decoration: none; min-height: 56px; }
  .sbar__go:hover { text-decoration: none; background: var(--blue-hover); }
  @media (max-width: 760px) { .sbar__cell { flex-basis: calc(50% - var(--s2)); } .sbar__go { flex: 1 1 100%; justify-content: center; min-height: 48px; } }

  /* The destination banner is a compact strip on the plan page. */
  .trip-hero { min-height: clamp(160px, 18vw, 220px); }

  /* Cards laid out like a travel site's results: photo | details | price + button. */
  .xcard { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow var(--dur-3), transform var(--dur-3) var(--ease-out); }
  .xcard:hover { box-shadow: var(--shadow-2); }
  .xcard--hotel { grid-template-columns: 260px minmax(0, 1fr) 240px; }
  .xcard__photo { position: relative; min-height: 220px; background: var(--inset); }
  .xcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: img-in 700ms var(--ease-out) both; }
  .xcard__nophoto { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s2); color: var(--ink-3); font-size: var(--fs-sm); }
  .xcard__main { padding: var(--s5); display: grid; gap: var(--s2); align-content: start; min-width: 0; }
  .xcard__title { font-size: var(--fs-h4); letter-spacing: -.02em; line-height: 1.2; }
  .xcard__sub { display: flex; align-items: center; gap: var(--s2); color: var(--ink-2); font-size: var(--fs-sm); }
  .xcard__price { padding: var(--s5); display: grid; gap: 4px; align-content: end; justify-items: end; text-align: right; border-left: 1px solid var(--line); }
  .xcard__price .row { justify-content: flex-end; margin-bottom: auto; }
  .xcard__each { font-size: var(--fs-sm); color: var(--ink-2); }
  .xcard__total { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.02em; }
  .xcard__fine { font-size: 12px; color: var(--ink-3); line-height: 1.35; }
  .xcard__price .btn { margin-top: var(--s3); }
  .xcard__alt { font-size: var(--fs-sm); margin-top: var(--s2); }
  .perks { display: grid; gap: 4px; font-size: var(--fs-sm); color: var(--ink-2); }
  .perks li { display: flex; align-items: center; gap: var(--s2); }
  .refund { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: 600; color: var(--ok-ink); }
  .refund--no { color: var(--ink-3); font-weight: 500; }
  .score { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); }
  .score__num { display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 6px; border-radius: 8px; background: #1f7a4d; color: #fff; font-weight: 700; font-size: var(--fs-sm); }
  .score b { display: block; font-size: var(--fs-sm); }
  .score span span { font-size: 12px; color: var(--ink-3); }
  /* Flights: big times per leg. */
  .legs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5); }
  .leg__when { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
  .leg__time { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.02em; }
  .leg__route { font-size: var(--fs-sm); color: var(--ink-2); }
  @media (max-width: 1280px) { .xcard--hotel { grid-template-columns: 200px minmax(0, 1fr) 210px; } }
  @media (max-width: 760px) {
    .xcard, .xcard--hotel { grid-template-columns: minmax(0, 1fr); }
    .xcard__photo { min-height: 200px; }
    .xcard__price { border-left: 0; border-top: 1px solid var(--line); justify-items: stretch; text-align: left; }
    .xcard__price .row { justify-content: flex-start; }
  }

  /* Price summary: denser rows, like a checkout's price details. */
  .results .prices .price { padding-block: var(--s4); }
  .results .prices .price__name { font-size: var(--fs-base); }
  .results .prices .price__basis { font-size: 13px; }
  .results .prices .price__amt { font-size: var(--fs-lg); }
  .results .prices .price--total .price__amt { font-size: var(--fs-h3); }
}

@layer pages {
  .picks { display: grid; gap: var(--s6); }
  .picks section { margin: 0; }
  /* Phones: one tappable summary line instead of the boxed search bar. */
  .sbar-m { display: none; }
  @media (max-width: 760px) {
    .sbar { display: none; }
    .sbar-m { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); padding: 10px var(--s4); border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--tile); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-1); }
    .sbar-m .i { flex: none; color: var(--blue); }
    .sbar-m span { display: grid; min-width: 0; }
    .sbar-m b { font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .sbar-m small { font-size: 12px; color: var(--ink-3); }
  }
}

/* ---------- City pages, travel-site style (2026-10-08) ---------- */
@layer pages {
  .crumbs { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s5); font-size: var(--fs-sm); color: var(--ink-3); }
  .crumbs a { color: var(--link); }
  .city-top { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-xl); min-height: clamp(220px, 26vw, 340px); margin-top: var(--s4); display: flex; align-items: flex-end; background: #0d1b2a; }
  .city-top img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 14s var(--ease-out) both; }
  .city-top__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, .65)); }
  .city-top__copy { padding: clamp(20px, 3vw, 36px); color: #fff; }
  .city-top h1 { color: #fff; font-size: clamp(30px, 4.4vw, 52px); letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(0, 0, 0, .3); }
  .city-top p { margin-top: var(--s2); font-size: var(--fs-lg); color: rgba(255, 255, 255, .92); }
  /* The search card overlaps the bottom of the photo, like a travel site's destination page. */
  .city-search { position: relative; z-index: 2; margin: calc(-1 * var(--s6)) var(--s5) 0; padding: var(--s5); border-radius: var(--r-lg); background: var(--tile); box-shadow: var(--shadow-3); }
  .city-search__title { font-weight: 600; margin-bottom: var(--s3); }
  .city-search__fields { display: flex; flex-wrap: wrap; gap: var(--s2); }
  .city-search .sbar__cell { flex: 1 1 150px; cursor: text; }
  .city-search .sbar__cell input { width: 100%; min-width: 0; border: 0; padding: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; font-size: var(--fs-sm); outline: 0; }
  .city-search .sbar__cell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
  .city-search .sbar__go { border: 0; cursor: pointer; }
  .city-intro { margin-top: var(--s7); padding: clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: color-mix(in srgb, var(--blue) 6%, var(--tile)); }
  .city-intro h2 { font-size: var(--fs-h3); margin-bottom: var(--s3); }
  .city-intro p { font-size: var(--fs-md); color: var(--ink-2); max-width: 75ch; }
  .frows { display: grid; gap: var(--s3); }
  .frow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--s5); align-items: center; padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--tile); box-shadow: var(--shadow-1); }
  .frow__from { font-weight: 600; }
  .frow__price { text-align: right; }
  @media (max-width: 760px) {
    .city-search { margin: var(--s4) 0 0; }
    .city-search .sbar__cell { flex-basis: calc(50% - var(--s2)); }
    .city-search .sbar__go { flex: 1 1 100%; justify-content: center; min-height: 48px; }
    .frow { grid-template-columns: minmax(0, 1fr) auto; }
    .frow .btn { grid-column: 1 / -1; }
  }
}
@layer pages {
  .city-top__credit { position: absolute; top: 10px; right: 14px; margin: 0; font-size: 12px; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 6px rgba(0, 0, 0, .5); }
  .city-top__credit a { color: inherit; }
  /* Date fields need room for the full date. */
  .city-search .sbar__cell:has(input[type="date"]) { flex: 1 1 190px; }
  @media (max-width: 760px) { .city-search .sbar__cell:has(input[type="date"]) { flex-basis: 100%; } }
}
@layer pages {
  .city-top .city-top__credit { font-size: 12px; margin: 0; }
  /* Wide screens: every search field and the button on one row. */
  @media (min-width: 1300px) {
    .city-search__fields { display: grid; grid-template-columns: 1fr 1fr 1.15fr 1.15fr .7fr .9fr auto; }
    .city-search .sbar__cell { min-width: 0; }
  }
  /* Laptops and tablets: three fields per row, the button underneath. */
  @media (min-width: 761px) and (max-width: 1299px) {
    .city-search__fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .city-search .sbar__go { grid-column: 1 / -1; justify-content: center; min-height: 48px; }
  }
}

/* ---------- A "live" hero, and photo credits behind a camera button (2026-10-08) ---------- */
@layer pages {
  /* Slow, continuous camera drift (replaces the one-off zoom) + parallax while scrolling. */
  .hero--photo .hero__bg { animation: hero-drift 26s ease-in-out infinite alternate; transform-origin: 60% 55%; will-change: transform; }
  @keyframes hero-drift {
    0% { transform: scale(1.04) translate3d(0, 0, 0); }
    50% { transform: scale(1.14) translate3d(-2.4%, -1.2%, 0); }
    100% { transform: scale(1.1) translate3d(2%, -2%, 0); }
  }
  @supports (animation-timeline: scroll()) {
    .hero--photo { view-timeline: --hero block; }
    .hero__in { animation: hero-lift linear both; animation-timeline: --hero; animation-range: exit 0% exit 100%; }
    @keyframes hero-lift { to { transform: translateY(-60px); opacity: .2; } }
  }
  /* Warm light on the horizon, breathing slowly. */
  .hero__glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(40% 30% at 78% 46%, rgba(255, 170, 90, .45), transparent 70%); mix-blend-mode: screen; animation: hero-glow 7s ease-in-out infinite alternate; }
  @keyframes hero-glow { from { opacity: .35; } to { opacity: .9; } }
  /* Thin mist drifting across the sky, two layers at different speeds. */
  .hero__mist, .hero__mist::after { position: absolute; inset: -10% -50%; z-index: -1; pointer-events: none; background:
      radial-gradient(18% 10% at 20% 40%, rgba(255, 255, 255, .22), transparent 70%),
      radial-gradient(22% 9% at 55% 62%, rgba(255, 255, 255, .17), transparent 70%),
      radial-gradient(16% 8% at 82% 30%, rgba(255, 255, 255, .2), transparent 70%);
    filter: blur(6px); animation: hero-mist 45s linear infinite; }
  .hero__mist::after { content: ""; inset: 0; animation-duration: 95s; animation-direction: reverse; opacity: .8; transform: translateY(8%); }
  @keyframes hero-mist { from { transform: translate3d(-12%, 0, 0); } to { transform: translate3d(12%, 0, 0); } }

  /* Photo credit: a small camera button; the credit shows on hover, focus or tap. */
  .pcredit { position: absolute; z-index: 3; margin: 0; display: flex; align-items: center; gap: var(--s2); flex-direction: row-reverse; font-size: 12px; color: #fff; }
  .pcredit--hero { right: 14px; bottom: 12px; }
  .pcredit--top { right: 12px; top: 12px; }
  .pcredit__btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .35); color: #fff; opacity: .7; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: opacity var(--dur-2); }
  .pcredit__btn .i { font-size: 15px; }
  .pcredit__text { padding: 4px 10px; border-radius: var(--r-pill); background: rgba(0, 0, 0, .55); opacity: 0; transform: translateX(6px); pointer-events: none; transition: opacity var(--dur-2), transform var(--dur-2); white-space: nowrap; }
  .pcredit__text a { color: #fff; }
  .pcredit:hover .pcredit__text, .pcredit:focus-within .pcredit__text { opacity: 1; transform: none; pointer-events: auto; }
  .pcredit:hover .pcredit__btn, .pcredit:focus-within .pcredit__btn { opacity: 1; }
  .city-top .pcredit { font-size: 12px; margin: 0; }
  .city-top .pcredit__text, .trip-hero .pcredit__text { margin: 0; font-size: 12px; color: #fff; }

  @media (prefers-reduced-motion: reduce) {
    .hero--photo .hero__bg, .hero__glow, .hero__mist, .hero__mist::after, .hero__in { animation: none; }
  }
}
@layer pages {
  /* Keep banner text clear of the photo-credit button. */
  .trip-hero__copy, .city-top__copy { padding-right: 56px; }
}
@layer components {
  /* "Coming soon" tag, and features that can't be picked yet. */
  .soon { display: inline-block; padding: 2px 8px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--blue) 12%, transparent); color: var(--link); font-size: 12px; font-weight: 600; letter-spacing: .01em; vertical-align: middle; }
  .label-card .soon { margin-bottom: var(--s3); }
  .toggle-chip:has(input:disabled) { opacity: .6; cursor: not-allowed; border-style: dashed; }
}

/* ---------- More hotels list + no-fare flight card (2026-10-08) ---------- */
@layer pages {
  .hgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
  .hcard { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tile); overflow: hidden; box-shadow: var(--shadow-1); transition: box-shadow var(--dur-3), transform var(--dur-3) var(--ease-out); }
  .hcard:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
  .hcard__photo { position: relative; aspect-ratio: 16 / 10; background: var(--inset); }
  .hcard__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .hcard__body { padding: var(--s4); display: grid; gap: 6px; align-content: start; }
  .hcard__title { font-size: var(--fs-md); letter-spacing: -.015em; line-height: 1.25; }
  .hcard__price { display: grid; gap: 2px; font-size: var(--fs-sm); margin: 4px 0 6px; }
  .hcard__price b { font-size: var(--fs-md); }
  .hcard__diff { font-size: 12px; font-weight: 600; }
  .hcard__diff.up { color: var(--ink-3); }
  .hcard__diff.down { color: var(--ok-ink); }
  .hcard__over { font-size: 12px; font-weight: 600; color: var(--over-ink); }
  .score--sm .score__num { min-width: 34px; height: 28px; font-size: 13px; }
  .score--sm { margin-top: 0; }
  @media (max-width: 1040px) { .hgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 560px) {
    .hgrid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: var(--s3); margin-inline: calc(-1 * var(--gutter, 16px)); padding: 0 var(--gutter, 16px) var(--s2); scrollbar-width: none; }
    .hgrid::-webkit-scrollbar { display: none; }
    .hcard { flex: 0 0 78%; scroll-snap-align: start; }
  }
}

/* ---------- Place dropdown (combobox) ---------- */
@layer components {
  .combo { position: relative; display: block; width: 100%; }
  .combo > input { width: 100%; }
  .combo__list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); min-width: 260px; max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--tile); box-shadow: var(--shadow-3); text-align: left; }
  .combo__list[hidden] { display: none; }
  .combo__head { padding: 6px 10px 4px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; }
  .combo__opt { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); padding: 10px; min-height: 40px; border-radius: 10px; cursor: pointer; font-size: var(--fs-sm); font-weight: 500; color: var(--ink); }
  .combo__opt small { font-size: 12px; color: var(--ink-3); font-weight: 400; white-space: nowrap; }
  .combo__opt:hover, .combo__opt[aria-selected="true"] { background: color-mix(in srgb, var(--blue) 10%, transparent); }
  /* Inside the boxed search fields the list must escape the cell. */
  .sbar__cell, .start__cell { overflow: visible; }
  .city-search, .start { overflow: visible; }
}
@layer pages {
  /* Grid children must not grow to fit a scrolling row inside them (phones). */
  .picks { grid-template-columns: minmax(0, 1fr); }
  .picks > section, .hgrid { min-width: 0; }
  /* Plan page section titles share one size. */
  .h-sec { font-size: var(--fs-h3); letter-spacing: -.02em; }
}
