
  /* ── Getting Here — flights + where to stay ─────────────────────────
     Two paper sections (#travel, #stay) that each fill one viewport. The
     content is a left-aligned masthead (LoveFrom Serif) over a horizontal
     rail of burgundy-framed cards — a flight route, then a hotel — that the
     guest swipes through. Each card hides a "See Details" sheet that slides
     up over its face; a solid CTA links out to Google Flights / Booking.com.
     Flat and hairline, like the rest of the site, with only a soft burgundy
     lift on hover. */
  .travel, .stay{
    --wine: #801038;                     /* burgundy card frame (sampled from the mockup) */
    --wine-deep: #5e0c29;
    --wine-soft: rgba(128,16,56,.18);
    --t-gold: #C8A24C;
    /* gutter floors on the side safe-areas, so on a landscape notched phone the
       masthead + the first card both clear the notch (env() is 0 elsewhere). It
       feeds --edge and the rail padding below, so the whole section stays aligned. */
    --gut: max(clamp(20px, 4vw, 40px), env(safe-area-inset-left), env(safe-area-inset-right));
    --edge: max(var(--gut), calc((100vw - 1180px) / 2));   /* heading's left inset — the full-bleed filmstrip aligns its first card here (1180px = __inner max-width) */
    position: relative;
    z-index: 1;                          /* paint above the fixed #gl shader */
    background: var(--paper);
    color: var(--ink);
    min-height: 100vh;                   /* fallback: iOS Safari < 15.4 lacks svh/dvh */
    min-height: 100svh;                  /* each fills exactly one viewport */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(26px, 4.2vh, 60px) var(--gut);
    overflow: hidden;
  }
  .travel__inner, .stay__inner{ width: 100%; max-width: 1180px; margin: 0 auto; }

  /* masthead — left aligned, like the mockup */
  .travel__head, .stay__head{ text-align: left; max-width: 40em; }
  .travel__heading, .stay__heading{
    margin: 0;
    font-family: 'LF Serif', 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-weight: 440;
    font-size: clamp(38px, 5.4vw, 64px);
    line-height: 1.0;
    letter-spacing: -0.022em;
    color: var(--ink);
  }
  .travel__lead, .stay__lead{
    margin: clamp(12px, 1.8vh, 20px) 0 0;
    max-width: 42em;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
    font-weight: 400;
    font-size: clamp(14px, 1.15vw, 16.5px);
    line-height: 1.5;
    color: #6b6b6b;
  }
  .travel__lead b, .stay__lead b{ color: var(--ink); font-weight: 600; }

  .travel__subhead, .stay__subhead{ margin: clamp(16px, 3vh, 34px) 0 clamp(10px, 1.6vh, 16px); }
  .travel__subhead h3, .stay__subhead h3{
    margin: 0;
    font-family: 'LF Serif', 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 440;
    font-size: clamp(26px, 3.2vw, 42px);
    line-height: 1.0;
    letter-spacing: -0.02em;
    color: var(--ink);
  }

  /* ── horizontal card rail (shared by flights + hotels) ─────────────── */
  .rail{
    display: flex;
    gap: clamp(14px, 1.6vw, 22px);
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scroll-padding-left: var(--edge);    /* snap the lead card to the heading's inset, not the bare viewport edge */
    -webkit-overflow-scrolling: touch;
    padding: 6px var(--gut) 16px var(--edge);   /* L aligns the first card under the heading; R keeps a gutter at the scroll end */
    scrollbar-width: thin;
    scrollbar-color: var(--wine-soft) transparent;
  }
  .rail::-webkit-scrollbar{ height: 4px; }
  .rail::-webkit-scrollbar-thumb{ background: var(--wine-soft); border-radius: 99px; }
  .rail::-webkit-scrollbar-track{ background: transparent; }

  /* ── rail scroll affordances — counter + (desktop) arrows ───────────── */
  .rail-wrap{ position: relative; }
  /* the scroller breaks out of the centred column to full viewport width, so the
     rail reads as an edge-to-edge filmstrip — the crop lands at the screen edge,
     not mid-column. The heading/lead/counter stay in the 1180px column. */
  .rail-view{ position: relative; width: 100vw; margin-left: calc(50% - 50vw); }
  .rail-nav{ display: none; }
  @media (hover: hover) and (pointer: fine){
    .rail-nav{
      position: absolute; top: 50%; transform: translateY(-50%);
      display: grid; place-items: center; z-index: 3;
      width: 40px; height: 40px; border-radius: 50%;
      background: var(--paper); border: 1.5px solid var(--wine); color: var(--wine);
      cursor: pointer; box-shadow: 0 6px 18px -10px rgba(128,16,56,.5);
      opacity: 0;                                   /* unobtrusive at rest — fades in on rail hover / keyboard focus */
      transition: background .2s ease, color .2s ease, opacity .25s ease, border-color .2s ease;
    }
    .rail-wrap:hover .rail-nav:not(:disabled),
    .rail-nav:focus-visible{ opacity: 1; }
    .rail-nav:hover{ background: var(--wine); color: #fff; }
    .rail-nav:disabled{ opacity: 0; pointer-events: none; cursor: default; }   /* sits at a rail end */
    .rail-nav--prev{ left: var(--gut); }
    .rail-nav--next{ right: var(--gut); }
    .rail-nav svg{ width: 15px; height: 15px; }
  }
  .rail-nav:focus-visible{ outline: 3px solid var(--wine); outline-offset: 2px; }
  .rail-counter{ margin: clamp(8px, 1.4vh, 14px) 2px 0; font-family: 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: .08em; color: #6b6b6b; }
  .rail-counter b{ color: var(--ink); font-weight: 600; }

  /* ── card frame ────────────────────────────────────────────────────── */
  .card{
    position: relative;
    flex: 0 0 clamp(278px, 27vw, 336px);
    min-height: clamp(300px, 42vh, 380px);   /* a floor, not a fixed height — the content sizes the rest, so no dead band can open up */
    scroll-snap-align: start;
    background: #fff;
    border: 2px solid var(--wine);
    border-radius: 3px;
    overflow: hidden;
  }
  /* the face sits in normal flow (it sizes the card); the sheet overlays it absolutely */
  .card__main{
    position: relative;
    display: grid;
    grid-template-rows: auto 1fr auto;        /* header · body(grows) · actions — the 1fr band replaces the old margin:auto void */
    row-gap: clamp(13px, 1.9vh, 19px);
    min-height: inherit;                      /* fill the card's floor so the body band distributes evenly */
    padding: clamp(20px, 1.9vw, 30px);
  }
  .card__main > *{ min-width: 0; }            /* long serif names / codes can't force horizontal overflow */
  .card__sheet{
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    padding: clamp(20px, 1.9vw, 30px);
  }

  /* flight route — big codes on one row, a full-width hairline path beneath them
     (the path gets the whole card width, so it can never be starved by the codes) */
  .route{ display: flex; flex-direction: column; gap: clamp(5px, 1vh, 8px); }
  .route__codes{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: baseline; column-gap: 12px; row-gap: clamp(7px, 1.3vh, 11px); }
  .route__cities{ display: flex; justify-content: space-between; gap: 8px; }
  .route__code{
    font-family: 'LF Serif', 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 460;
    font-size: clamp(30px, 3.1vw, 44px);
    line-height: .9;
    letter-spacing: -0.02em;
    color: var(--ink);
    white-space: nowrap;
    grid-row: 1; grid-column: 1; justify-self: start;
  }
  .route__code--to{ font-size: clamp(33px, 3.5vw, 48px); grid-row: 1; grid-column: 2; justify-self: end; }
  .route__city{
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(11.5px, .95vw, 13.5px);
    letter-spacing: .01em;
    color: #6b6b6b;
    white-space: nowrap;
  }
  .route__city--to{ text-align: right; }
  /* the hairline path — its own full-width grid row, spanning code to code (geometry only, no clip-art) */
  .route__path{ grid-row: 2; grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; width: 100%; color: rgba(11,11,12,.5); }
  .route__line{ flex: 1 1 auto; min-width: 8px; height: 0; border-top: 1px dashed currentColor; }
  .route__dot{ flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
  .route__hub{ flex: 0 0 auto; width: 5px; height: 5px; border-radius: 50%; border: 1.2px solid currentColor; }
  .route__ring{ flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--wine); }
  .route__plane{ flex: 0 0 auto; display: block; color: var(--ink); transition: transform .35s ease; }
  .route__plane svg{ display: block; width: 12px; height: 12px; }
  .route--direct .route__line{ border-top-style: solid; }   /* nonstop (FRA) reads as one unbroken leg */
  .route__path:not(.route--direct) > span:nth-child(2){ flex-grow: 2.4; }  /* lengthen the first leg so the plane sits ~mid-line on 1-stop routes, matching the direct card */
  .card:hover .route__plane{ transform: translateX(4px); }  /* a small intent-driven nudge, killed under reduced-motion below */

  /* flight body — the itinerary spec list that fills the old void, then a stub */
  .fbody{ display: flex; flex-direction: column; }
  .facts{ margin: 0; display: flex; flex-direction: column; }
  .fact{ display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 10px; border-top: 1px solid var(--hair); padding: clamp(9px, 1.4vh, 13px) 0; }
  .fact dt{ font-family: 'Inter', system-ui, sans-serif; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8a6a7a; }
  .fact dd{ margin: 0; font-family: 'Inter', system-ui, sans-serif; font-size: clamp(12.5px, 1.02vw, 14.5px); color: #2c2c2c; text-align: right; }
  /* boarding-pass stub — a single dashed tear-line + one real informational row */
  .stub{ margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; border-top: 1px dashed var(--hair); padding-top: clamp(10px, 1.5vh, 14px); }
  .stub__k{ font-family: 'Inter', system-ui, sans-serif; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: #8a6a7a; }
  .stub__v{ margin-top: 2px; font-family: 'Inter', system-ui, sans-serif; font-size: 13px; color: #2c2c2c; }
  .stub__meta{ font-family: 'Inter', system-ui, sans-serif; font-variant-numeric: tabular-nums; font-size: 11px; letter-spacing: .04em; color: #6b6b6b; }

  /* hotel head — stars + tier / name / location */
  .htl__id{ display: flex; flex-direction: column; align-items: flex-start; gap: clamp(7px, 1vh, 11px); }
  .htl__starline{ display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; }
  .htl__stars{ color: #A8841E; font-size: clamp(13px, 1.2vw, 15px); letter-spacing: .18em; }  /* deeper antique gold → clears WCAG 1.4.11 (3:1) on white; the rating is a real info-bearing graphic */
  .htl__tier{ font-family: 'Inter', system-ui, sans-serif; font-size: 11px; letter-spacing: .07em; color: #6b6b6b; }
  .htl__name{
    margin: 0;
    font-family: 'LF Serif', 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 460;
    font-size: clamp(22px, 2.3vw, 31px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    color: var(--ink);
  }
  .htl__loc{
    margin: 0;
    display: flex; align-items: center; gap: .4em;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(12px, 1vw, 14px);
    color: #6b6b6b;
  }
  .htl__loc svg{ width: 13px; height: 13px; flex: 0 0 auto; fill: var(--wine); }
  /* hotel body — a clamped lede, a hairline amenity row, price pinned as a footer */
  .htl__body{ display: flex; flex-direction: column; gap: clamp(11px, 1.6vh, 16px); }
  .htl__desc{
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(13px, 1.02vw, 15px); line-height: 1.5; color: #3a3a3a;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  }
  .amen{ display: flex; flex-wrap: wrap; gap: clamp(9px, 1.3vw, 16px) clamp(12px, 1.6vw, 18px); border-top: 1px solid var(--hair); padding-top: clamp(10px, 1.4vh, 14px); }
  .amen__item{ display: flex; align-items: center; gap: .42em; font-family: 'Inter', system-ui, sans-serif; font-size: 10.5px; letter-spacing: .03em; color: #6b6b6b; }
  .amen__item svg{ width: 17px; height: 17px; flex: 0 0 auto; color: #4a4a4a; }
  @media (max-width: 389px){ .amen__item{ flex: 0 0 calc(50% - 6px); } }  /* narrow phones: a tidy 2×2 instead of a 3 + orphaned-chip wrap */
  .htl__price{
    margin: auto 0 0;                    /* pin to the bottom of the body band as a summary footer */
    padding-top: clamp(12px, 1.7vh, 16px);
    border-top: 1px solid var(--hair);
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.1vw, 16px);
    color: var(--ink);
  }
  .htl__price span{ font-weight: 400; color: #6b6b6b; }

  /* ── action buttons (See Details / Search Flights / Book Now) ───────── */
  .card__actions{ display: flex; gap: 10px; margin-top: auto; padding-top: clamp(14px, 2vh, 22px); }
  .btn{
    flex: 1 1 0; min-width: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 500;
    font-size: clamp(12px, 1.02vw, 14px);
    letter-spacing: .004em;
    padding: clamp(.72em, 1.1vh, .95em) .6em;
    border-radius: 2px;
    text-decoration: none; cursor: pointer;
    white-space: normal; line-height: 1.18; text-align: center;   /* labels wrap rather than clip at large text-zoom (WCAG 1.4.4) */
    transition: background .25s ease, color .25s ease, border-color .25s ease;
  }
  @media (pointer: coarse){ .btn{ min-height: 44px; } }            /* comfortable tap target on touch — no effect on the mouse layout */
  .btn--ghost{ background: #fff; color: var(--ink); border: 1.5px solid rgba(11,11,12,.66); }
  .btn--ghost:hover{ background: rgba(11,11,12,.045); border-color: var(--ink); }
  .btn--solid{ background: var(--ink); color: #fff; border: 1.5px solid var(--ink); }
  .btn--solid:hover{ background: #000; }
  /* touch press response (no hover on touch): a clear tactile dip + tint */
  .btn{ transition: background .25s ease, color .25s ease, border-color .25s ease, transform .12s ease; }
  .btn:active{ transform: translateY(1px); }
  .btn--ghost:active{ background: rgba(11,11,12,.08); border-color: var(--ink); }
  .btn--solid:active{ background: #000; }
  .btn:focus-visible{ outline: 3px solid var(--wine); outline-offset: 2px; }

  /* ── "See Details" sheet — slides up over the card face ─────────────── */
  .card__sheet{
    background: #fff;
    transform: translateY(101%);
    visibility: hidden;                  /* universal fallback: closed-sheet controls leave the tab order even where [inert] is unsupported */
    transition: transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s linear .5s;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--wine-soft) transparent;
  }
  .card__sheet::-webkit-scrollbar{ width: 5px; }
  .card__sheet::-webkit-scrollbar-thumb{ background: var(--wine-soft); border-radius: 99px; }
  .card.is-open .card__sheet{ transform: translateY(0); visibility: visible; transition: transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s; }
  .sheet__title{
    margin: 0;
    font-family: 'LF Serif', 'Fraunces', Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 460;
    font-size: clamp(20px, 1.9vw, 26px);
    line-height: 1.05;
    letter-spacing: -0.012em;
    color: var(--wine);
  }
  .sheet__title span{ color: #c2899c; padding: 0 .12em; }
  .sheet__facts{ margin: clamp(14px, 2.2vh, 22px) 0 0; display: flex; flex-direction: column; gap: clamp(11px, 1.7vh, 17px); }
  .sheet__facts > div{ display: flex; flex-direction: column; gap: 3px; }
  .sheet__facts dt{
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #8a6a7a;  /* darkened mauve → passes WCAG AA on white */
  }
  .sheet__facts dd{
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(13px, 1.05vw, 15px); line-height: 1.35; color: #2c2c2c;
  }
  .sheet__desc{
    margin: clamp(12px, 1.9vh, 18px) 0 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: clamp(13px, 1.02vw, 15px); line-height: 1.5; color: #3a3a3a;
  }
  .sheet__note{
    margin: clamp(12px, 1.8vh, 16px) 0 0;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 12px; line-height: 1.45; color: #6b6b6b;
  }

  /* ── reveal — each card rises as the section enters (armed by JS) ───── */
  .travel.travel-ready .r,
  .stay.travel-ready .r{
    opacity: 0; transform: translateY(26px); filter: blur(8px);
    transition:
      opacity .8s ease var(--d, 0s),
      transform .9s cubic-bezier(.2,.7,.2,1) var(--d, 0s),
      filter .9s ease var(--d, 0s),
      box-shadow .45s ease,
      border-color .4s ease;
  }
  .travel.travel-ready .r.is-in,
  .stay.travel-ready .r.is-in{ opacity: 1; transform: none; filter: blur(0); }
  /* hover lift via shadow only — never transform, so it can't fight the reveal */
  .card:hover{ box-shadow: 0 22px 46px -28px rgba(128,16,56,.5); border-color: var(--wine-deep); }

  @media (prefers-reduced-motion: reduce){
    .travel.travel-ready .r,
    .stay.travel-ready .r{ opacity: 1; transform: none; filter: none; transition: none; }
    .card__sheet{ transition: none; }
    .route__plane, .card:hover .route__plane{ transition: none; transform: none; }
    .rail-nav{ transition: none; }
  }

  /* phones — one card at a time, the next clearly peeking past the edge.
     Cards are content-sized (min-height only) at every breakpoint now, so the
     dead band can never reopen — the peeking next card is the scroll affordance. */
  @media (max-width: 720px){
    .travel__head, .stay__head{ max-width: none; }
    .card{ flex-basis: min(78vw, 340px); min-height: 332px; }
  }
  /* short viewports (landscape phones) — let the section flow so nothing clips */
  @media (max-height: 600px){
    .travel, .stay{ min-height: 0; overflow: visible; padding-top: clamp(28px, 7vh, 48px); padding-bottom: clamp(28px, 7vh, 48px); }
  }
