/* =========================================================
   PARKLY — public site. MOBILE-FIRST.
   Header transparent + non-sticky · App-like booking funnel.
   ========================================================= */

/* ---------- Layout shell ---------- */
.pub-wrap { max-width: 1080px; margin: 0 auto; padding-left: 22px; padding-right: 22px; }

/* Show/hide helpers (mobile-first: desk-only hidden by default) */
.desk-only { display: none !important; }
.mob-only { display: inline-flex !important; }

/* ---------- Header (transparent, non-sticky) ---------- */
.site-header {
  position: relative; z-index: 5;
  background: transparent;
  border-bottom: 0;
}
.site-header__inner { display: flex; align-items: center; gap: 14px; padding-top: 22px; padding-bottom: 22px; padding-left: 22px; padding-right: 22px; }
.site-header .logo { text-decoration: none; gap: 12px; }
.site-header .logo svg { width: 42px; height: 42px; }
.site-header .logo__word { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: var(--ink-900); }
.site-header__spacer { flex: 1; }
.site-nav { display: none; }
.navlink { color: var(--ink-700); text-decoration: none; font-weight: 500; font-size: 14px; padding: 8px 10px; border-radius: var(--r-sm); transition: background .15s, color .15s; }
.navlink:hover { background: var(--paper-2); color: var(--ink-900); }
.site-header .btn--sm svg { width: 16px; height: 16px; }

/* ---------- Mobile menu drawer ---------- */
.mobmenu-scrim {
  position: fixed; inset: 0; z-index: 80; background: rgba(22,20,28,.42);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.mobmenu-scrim.is-open { opacity: 1; pointer-events: auto; }
.mobmenu {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 81;
  width: 86vw; max-width: 360px;
  background: var(--surface); box-shadow: var(--sh-pop);
  display: flex; flex-direction: column;
  transform: translateX(calc(100% + 64px)); transition: transform .3s cubic-bezier(.32,.72,0,1);
  padding-top: env(safe-area-inset-top);
}
.mobmenu.is-open { transform: translateX(0); }
.mobmenu__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px 16px;
  border-bottom: 1px solid var(--line);
}
.mobmenu__head .logo__word { font-size: 22px; font-weight: 700; letter-spacing: -.03em; color: var(--ink-900); }
.mobmenu__nav { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.mobmenu__nav a {
  display: flex; align-items: center;
  padding: 14px 14px; border-radius: var(--r-md);
  color: var(--ink-900); text-decoration: none;
  font-size: 16px; font-weight: 500;
  transition: background .15s;
}
.mobmenu__nav a:hover, .mobmenu__nav a:active { background: var(--paper-2); }
.mobmenu__foot {
  padding: 16px 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

/* ---------- Hero (mobile-first) ---------- */
.hero {
  display: grid; grid-template-columns: 1fr; gap: 28px;
  padding-top: 24px; padding-bottom: 36px; align-items: start;
}
.hero__text .chip { font-size: 12.5px; padding: 6px 12px; }
.hero h1 {
  font-size: 36px; line-height: 1.08; font-weight: 700;
  letter-spacing: -.025em; margin: 18px 0 0; text-wrap: balance;
}
.hero p { font-size: 15.5px; line-height: 1.6; color: var(--ink-500); margin: 16px 0 0; }
.hero__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.hero__cta .btn { width: 100%; }
.hero__aside { display: grid; }

/* ---------- Inline reservation card (dark) ---------- */
.book-card {
  background: var(--ink-900);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  padding: 24px 22px;
  display: flex; flex-direction: column; gap: 16px;
}
.book-card__title {
  display: flex; align-items: center; gap: 9px;
  font-size: 17px; font-weight: 700; letter-spacing: -.01em; color: #fff;
  margin: 0;
}
.book-card__title svg { color: var(--brand-300); }
.book-fields { display: grid; grid-template-columns: 1fr; gap: 14px; }
.book-fields .field { gap: 7px; }
.book-fields .field > label { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.7); }
/* white wells on the dark card */
.book-fields .input, .book-fields .pxdate__btn, .book-fields .pxr-btn {
  background: #fff; color: var(--ink-900); border-color: transparent;
}
.book-fields .pxr-btn__ph { color: var(--ink-400); }
.book-card__cta { width: 100%; min-height: 54px; font-size: 15px; }
.book-card__hint { margin: 0; text-align: center; font-size: 12.5px; color: rgba(255,255,255,.6); }
.book-card__hint strong { color: #fff; font-weight: 600; }

@media (min-width: 720px) {
  .book-card { padding: 28px 26px; }
}

/* Desktop: the funnel renders inline in the hero (skipping the dark search
   card). Fixed-height card with internal scroll keeps the stepper sticky;
   the date picker escapes the card via JS-driven fixed positioning. */
.book-inline-wrap { display: none; }
.book-inline {
  width: 100%; background: var(--surface);
  border-radius: var(--r-xl); box-shadow: var(--sh-3); overflow: hidden;
  display: flex; flex-direction: column;
  height: calc(100dvh - 120px);
}
.book-inline__head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--ink-900); color: #fff; padding: 16px 20px;
}
.book-inline__title { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.book-inline__title svg { color: var(--brand-300); flex: none; }
.book-inline__back {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex: none;
  background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer;
  display: grid; place-items: center; transition: background .15s;
}
.book-inline__back:hover { background: rgba(255,255,255,.22); }
.book-inline__body { flex: 1; min-height: 0; display: flex; flex-direction: column; scroll-behavior: smooth; }
.book-inline__body .fn-card { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; margin: 0; max-width: 100%; border: 0; border-radius: 0; box-shadow: none; }
/* stepper: fixed-height black band (continues the dark header), white text */
.book-inline__body .fn-steps {
  position: sticky; top: 0; z-index: 2;
  background: var(--ink-900); border-bottom: 1px solid rgba(255,255,255,.08);
  height: 56px; min-height: 56px; box-sizing: border-box; align-items: center;
}
.book-inline__body .fn-steps .lbl { color: rgba(255,255,255,.55); }
.book-inline__body .fn-steps .fn-steps__item.active .lbl { color: #fff; }
.book-inline__body .fn-steps .fn-sep { color: rgba(255,255,255,.3); }
.book-inline__body .fn-steps .fn-dot { background: rgba(255,255,255,.14); color: rgba(255,255,255,.7); }
.book-inline__body .fn-steps .fn-dot.active { background: var(--brand-500); color: #fff; }
.book-inline__body .fn-steps .fn-dot.done { background: var(--success); color: #fff; }
.book-inline__body .fn-body { flex: none; padding-bottom: 18px; }
.book-inline__body .fn-nav {
  position: static; flex: none; border-radius: 0; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: saturate(140%) blur(10px);
}
.book-inline__hint { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: var(--ink-500); }
.book-inline__hint strong { color: var(--ink-900); font-weight: 600; }

.pub-avail {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; margin-top: 18px;
  background: var(--success-bg); color: var(--success-ink);
  padding: 8px 14px; border-radius: var(--r-pill); font-weight: 600;
}
.pub-avail .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }

/* ---------- Price card ---------- */
.price-card {
  background: var(--ink-900); color: #fff;
  border-radius: var(--r-xl); padding: 24px; box-shadow: var(--sh-3);
}
.price-card .from { font-size: 13px; color: rgba(255,255,255,.6); }
.price-card .amt { font-size: 40px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; }
.price-card .amt small { font-size: 15px; font-weight: 500; color: rgba(255,255,255,.6); }
.price-card ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.price-card li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.price-card li svg { width: 18px; height: 18px; color: var(--brand-300); flex: none; }

/* ---------- Content bands ---------- */
.pub-band { padding-top: 48px; padding-bottom: 48px; }
.pub-band--alt { background: var(--paper-2); }
.pub-h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 24px; }

.features { display: grid; grid-template-columns: 1fr; gap: 14px; }
.feature-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-1);
}
.feature-card__ic {
  width: 44px; height: 44px; border-radius: var(--r-md);
  background: var(--brand-50); color: var(--brand-600);
  display: grid; place-items: center;
}
.feature-card__ic svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 16px; font-weight: 600; margin: 14px 0 0; }
.feature-card p { font-size: 14px; color: var(--ink-500); margin: 6px 0 0; line-height: 1.55; }

.steps-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.step-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1);
}
.step-card__n {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-500); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.step-card h3 { font-size: 15px; font-weight: 600; margin: 12px 0 0; }
.step-card p { font-size: 13.5px; color: var(--ink-500); margin: 6px 0 0; line-height: 1.5; }

/* ---------- Final CTA ---------- */
.cta-band {
  display: flex; flex-direction: column; gap: 18px;
  background: linear-gradient(120deg, var(--brand-600), var(--brand-500));
  color: #fff; border-radius: var(--r-xl);
  padding: 28px 24px; margin: 36px 0;
}
.cta-band h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.cta-band p { margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: 14.5px; }
.cta-band__btn { background: #fff; color: var(--brand-700); width: 100%; }
.cta-band__btn:hover { background: rgba(255,255,255,.9); }

/* ---------- Footer ---------- */
.site-footer { padding-top: 28px; padding-bottom: 28px; }
.site-footer__inner { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.site-footer .logo { display: inline-flex; align-items: center; gap: 8px; }
.site-footer .logo__word { font-weight: 700; letter-spacing: -.03em; color: var(--ink-900); }
.site-footer__copy { font-size: 12.5px; color: var(--ink-400); margin-left: auto; }

/* ---------- Mobile booking bottom sheet ---------- */
.book-sheet-scrim {
  position: fixed; inset: 0; z-index: 120; background: rgba(22,20,28,.5);
  opacity: 0; transition: opacity .3s;
}
.book-sheet-scrim.is-open { opacity: 1; }
.book-sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 121;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--sh-pop);
  transform: translateY(100%); transition: transform .34s cubic-bezier(.32,.72,0,1);
  display: flex; flex-direction: column; height: 92vh; height: 92dvh;
}
.book-sheet.is-open { transform: translateY(0); }
.book-sheet__head { flex: none; }
.book-sheet__grip { display: block; width: 40px; height: 4px; border-radius: 999px; background: var(--line-2); margin: 8px auto 0; }
.book-sheet__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px 8px; }
.book-sheet__title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.book-sheet__title svg { color: var(--brand-500); }
.book-sheet__body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.book-sheet__body .fn-card { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; border: 0; border-radius: 0; box-shadow: none; }
.book-sheet__body .fn-steps { position: sticky; top: 0; z-index: 2; background: var(--surface); min-height: 64px; padding-top: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.book-sheet__body .fn-body { flex: none; padding-bottom: 18px; }
/* keyboard open: give the scroll body extra room so the focused field can
   scroll up above the keyboard — the sheet frame (top/stepper/nav) doesn't move */
.book-sheet.kb-open .book-sheet__body .fn-body { padding-bottom: calc(18px + var(--kb, 0px)); }
.book-sheet__body .fn-nav {
  position: static; flex: none;
  padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  backdrop-filter: saturate(140%) blur(10px); border-top: 1px solid var(--line);
}

/* =========================================================
   Booking funnel (reservation.html) — mobile-first APP layout
   Full-bleed on mobile · centered card on desktop ·
   sticky bottom CTA bar with safe-area padding.
   ========================================================= */
.fn-stage {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--paper);
}

/* App-like top bar */
.fn-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px;
  padding-top: calc(14px + env(safe-area-inset-top));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 15;
}
.fn-bar .btn--icon { width: 40px; height: 40px; padding: 0; }
.fn-bar .logo { display: inline-flex; align-items: center; gap: 8px; }
.fn-bar .logo__word { font-weight: 700; letter-spacing: -.03em; font-size: 17px; }

/* Card = full-bleed on mobile */
.fn-card {
  flex: 1; display: flex; flex-direction: column;
  background: var(--surface); overflow: visible;
  width: 100%;
}

/* Stepper */
.fn-steps {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 20px; overflow-x: auto;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.fn-steps::-webkit-scrollbar { display: none; }
.fn-steps__item { display: flex; align-items: center; gap: 7px; flex: none; }
.fn-dot {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700;
  background: var(--paper-2); color: var(--ink-400); flex: none;
  transition: all .2s;
}
.fn-dot.done { background: var(--success); color: #fff; }
.fn-dot.active { background: var(--brand-500); color: #fff; }
.fn-steps__item .lbl { font-size: 12px; color: var(--ink-400); font-weight: 600; }
.fn-steps__item.active .lbl { color: var(--ink-900); }
.fn-sep { color: var(--ink-400); font-size: 13px; }

/* Body — scrollable area, room for the bottom CTA bar */
.fn-body {
  flex: 1; padding: 22px 22px 24px;
  padding-bottom: calc(120px + env(safe-area-inset-bottom));
}
.fn-panel h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 3px; }
.fn-panel .sub { font-size: 13.5px; color: var(--ink-500); margin: 0 0 18px; }

/* Field tweaks for mobile (bigger touch targets, no iOS zoom on focus) */
.fn-body .field { gap: 8px; }
.fn-body .field > label { font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.fn-body .input, .fn-body .select, .fn-body .textarea {
  font-size: 16px; /* prevents iOS zoom */
  padding: 13px 14px; border-radius: var(--r-md);
}
.fn-body .field { margin-bottom: 14px; }

/* Quote card */
.fn-quote { background: var(--paper-2); border-radius: var(--r-lg); padding: 16px; margin-top: 4px; }
.fn-quote__row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.fn-quote__row.muted { color: var(--ink-500); }
.fn-quote__row.total {
  font-size: 19px; font-weight: 700;
  border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 12px;
}

/* ---------- Flight picker (funnel step 2) ---------- */
.fl-ac { position: relative; }
.fl-ac__menu {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 30;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-pop); padding: 5px; max-height: 260px; overflow-y: auto;
}
.fl-ac__opt {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 15px; color: var(--ink-900); font-weight: 500;
  padding: 11px 12px; border-radius: var(--r-sm);
}
.fl-ac__opt:hover { background: var(--paper-2); }
.fl-ac__iata { font-family: var(--font-mono); font-size: 12px; color: var(--ink-400); font-weight: 600; }

.fl-group { margin-top: 18px; }
.fl-group__t {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--ink-400); margin-bottom: 10px;
}
.fl-group__t svg { color: var(--brand-500); }
.fl-group__date { margin-left: auto; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--brand-600); font-size: 12px; }
.fl-list { display: grid; gap: 12px; }
.fl-loading { font-size: 13px; color: var(--ink-400); padding: 10px 2px; }

/* Bigger, more legible return-flight cards. */
.fl-card {
  display: flex; align-items: center; gap: 15px; width: 100%; text-align: left;
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  padding: 16px 18px; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s;
  font-family: inherit;
}
.fl-card:hover { border-color: var(--ink-400); }
.fl-card.is-sel { border-color: var(--brand-500); background: var(--brand-50); box-shadow: 0 0 0 2px var(--brand-500) inset; }
.fl-air {
  width: 56px; height: 56px; border-radius: var(--r-sm); flex: none;
  background: #fff; border: 1px solid var(--line); overflow: hidden;
  display: grid; place-items: center;
}
.fl-air__logo { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.fl-air__code { width: 100%; height: 100%; place-items: center; color: #fff; font-family: var(--font-mono); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.fl-card__main { flex: 1; min-width: 0; }
.fl-card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.fl-no { font-family: var(--font-mono); font-weight: 700; font-size: 18px; color: var(--ink-900); }
.fl-times { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; color: var(--ink-900); white-space: nowrap; }
.fl-card__sub { font-size: 13.5px; color: var(--ink-500); margin-top: 5px; }
.fl-card__date { display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--brand-600); }
.fl-card__date svg { color: var(--brand-500); }
.fl-check { color: var(--brand-500); opacity: 0; flex: none; width: 22px; height: 22px; }
.fl-card.is-sel .fl-check { opacity: 1; }

/* Real-time flight search */
.fl-search { position: relative; }
.fl-suggest { display: grid; gap: 6px; margin-top: 8px; }
.fl-sg {
  display: flex; align-items: center; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-2);
  border-radius: var(--r-md); padding: 10px 12px;
  font-family: inherit; transition: border-color .12s, background .12s;
}
.fl-sg:hover { border-color: var(--ink-400); background: var(--paper-2); }
.fl-sg__main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.fl-sg__top { display: flex; align-items: center; gap: 8px; }
.fl-sg__top .fl-no { font-family: var(--font-mono); font-size: 13px; font-weight: 700; }
.fl-sg__dir {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700);
}
.fl-sg.is-ret .fl-sg__dir { background: var(--paper-2); color: var(--ink-700); }
.fl-sg__route { font-size: 13px; color: var(--ink-900); font-weight: 600; }
.fl-sg__sub { font-size: 11.5px; color: var(--ink-500); }

/* Service picker */
.svc-pick { display: grid; gap: 10px; }
.svc-opt {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1.5px solid var(--line-2);
  border-radius: var(--r-md); cursor: pointer;
  transition: all .15s; min-height: 64px;
}
.svc-opt:hover { border-color: var(--ink-400); }
.svc-opt.sel { border-color: var(--brand-500); background: var(--brand-50); }
.svc-opt .ic {
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: var(--surface); display: grid; place-items: center;
  flex: none; border: 1px solid var(--line);
}
.svc-opt .ic svg { width: 20px; height: 20px; color: var(--brand-600); }
.svc-opt .t { font-weight: 600; font-size: 14.5px; }
.svc-opt .d { font-size: 12.5px; color: var(--ink-500); margin-top: 1px; }
.svc-opt .pr { margin-left: auto; font-weight: 700; font-size: 14.5px; white-space: nowrap; }

/* Bottom CTA bar (app-like, sticky bottom, safe-area aware) */
.fn-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; gap: 10px;
  padding: 14px 22px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-top: 1px solid var(--line);
}
.fn-nav .btn { min-height: 50px; font-size: 15px; }
.fn-nav .btn--secondary { flex: 1; }
.fn-nav .btn--primary { flex: 2; }
.fn-nav .btn--primary svg { margin-left: 2px; }

/* =========================================================
   Tablet & desktop
   ========================================================= */
@media (min-width: 720px) {
  .pub-wrap { padding-left: 32px; padding-right: 32px; }
  .site-header__inner { padding-left: 32px; padding-right: 32px; padding-top: 28px; padding-bottom: 28px; }
  .site-nav { display: flex; align-items: center; gap: 4px; margin-left: 22px; }
  .desk-only { display: inline-flex !important; }
  .mob-only { display: none !important; }
  .mobmenu, .mobmenu-scrim { display: none; }
  .hero { padding-top: 40px; padding-bottom: 48px; }
  .hero h1 { font-size: 44px; }
  .hero p { font-size: 16.5px; }
  .hero__cta { flex-direction: row; gap: 12px; }
  .hero__cta .btn { width: auto; }
  .pub-band { padding-top: 56px; padding-bottom: 56px; }
  .pub-h2 { font-size: 28px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .steps-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .cta-band {
    flex-direction: row; align-items: center; justify-content: space-between;
    padding: 36px 40px;
  }
  .cta-band h2 { font-size: 26px; }
  .cta-band__btn { width: auto; }
}

@media (min-width: 960px) {
  /* Desktop hero: funnel inline takes over from the dark search card.
     The X close button is hidden — the funnel is always present on desktop. */
  .hero [data-search-form] { display: none; }
  .book-inline-wrap { display: block; }
  .book-inline__back { display: none; }

  .hero {
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: start;
    padding-top: 56px; padding-bottom: 64px;
  }
  /* keep the left hero text put while the right card transforms/grows */
  .hero__text { position: sticky; top: 24px; }
  .hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.03em; }
  .hero p { font-size: 17px; max-width: 50ch; }
  .pub-band { padding-top: 72px; padding-bottom: 72px; }
  .pub-h2 { font-size: 32px; margin-bottom: 32px; }

  /* Booking funnel becomes a centered card on desktop */
  .fn-stage {
    background:
      radial-gradient(1000px 500px at 80% -10%, color-mix(in srgb, var(--brand-500) 12%, transparent), transparent 60%),
      var(--paper);
  }
  .fn-card {
    max-width: 560px; margin: 28px auto;
    border: 1px solid var(--line); border-radius: var(--r-xl);
    box-shadow: var(--sh-2); overflow: hidden;
    flex: 0 0 auto;
  }
  .fn-body { padding-bottom: 24px; }
  .fn-nav {
    position: relative; left: auto; right: auto; bottom: auto;
    padding: 18px 24px; padding-bottom: 18px;
    background: var(--surface); backdrop-filter: none;
  }
}

/* ===========================================================
   Booking funnel — vehicle refusal banner + international phone
   =========================================================== */
.fn-refuse {
  display: flex; align-items: center; gap: 10px; margin-top: 14px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--danger-bg); color: var(--danger);
  font-size: 13.5px; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--danger) 30%, transparent);
}
.fn-refuse svg { flex: none; }
.fn-nav .btn[disabled] { opacity: .5; cursor: not-allowed; }

/* intl-tel-input: fill the field width and match the funnel inputs */
.iti { display: block; width: 100%; }
.iti input.input, .iti input[type="tel"] { width: 100%; }
.iti__dropdown-content { font-family: inherit; }

/* ===========================================================
   Booking funnel — two big date cards + editor + recap period
   =========================================================== */
.fn-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fn-datecard {
  border: 1.5px solid var(--line-2); border-radius: var(--r-md);
  background: var(--surface); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 4px;
}
.fn-datecard__lbl { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); }
.fn-datecard__lbl svg { color: var(--brand-500); }
.fn-datecard__date { font-size: 22px; font-weight: 700; line-height: 1.1; color: var(--ink-900); margin-top: 4px; }
.fn-datecard__time { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand-600); }
.fn-datecard__edit { align-self: flex-start; margin-top: 8px; padding-left: 0; }
.fn-dates-foot { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.fn-duration { font-size: 13px; font-weight: 700; color: var(--ink-700); background: var(--paper-2); border-radius: 999px; padding: 6px 14px; }
.fn-dateedit { margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-2); display: grid; gap: 14px; }
.fn-dateedit__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fn-dateedit .field { margin: 0; }
.fn-dateedit__ok { width: 100%; }

.fn-recap-period {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  border: 1.5px solid var(--brand-200, var(--line-2)); border-radius: var(--r-md);
  background: var(--brand-50); padding: 16px 18px;
}
.fn-recap-leg { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fn-recap-leg .lbl { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-500); }
.fn-recap-leg .val { font-size: 19px; font-weight: 700; line-height: 1.15; color: var(--ink-900); }
.fn-recap-leg .t { font-size: 15px; font-weight: 700; color: var(--brand-600); font-variant-numeric: tabular-nums; }
.fn-recap-arrow { font-size: 22px; font-weight: 700; color: var(--brand-500); }
.fn-recap-dur { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--ink-700); background: var(--surface); border-radius: 999px; padding: 6px 14px; }

@media (max-width: 520px) {
  .fn-dates { grid-template-columns: 1fr; }
  .fn-dateedit__row { grid-template-columns: 1fr; }
  .fn-recap-dur { margin-left: 0; }
}

/* ---- Funnel: info icon + popover (e.g. passengers tooltip) ---- */
.fn-label-row { display: flex; align-items: center; gap: 6px; }
.fn-label-row label { font-size: 13.5px; font-weight: 600; color: var(--ink-700); }
.fn-info-wrap { position: relative; display: inline-flex; }
.fn-info {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-400); cursor: pointer; transition: background .15s, color .15s;
}
.fn-info:hover, .fn-info:focus-visible { color: var(--brand-600); background: var(--paper-2); outline: none; }
.fn-info-pop {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 40;
  width: 240px; max-width: 70vw;
  background: var(--ink-900); color: #fff; font-size: 12.5px; font-weight: 500; line-height: 1.45;
  padding: 10px 12px; border-radius: var(--r-md); box-shadow: var(--sh-pop);
}
.fn-info-pop::before {
  content: ""; position: absolute; bottom: 100%; left: 11px;
  border: 6px solid transparent; border-bottom-color: var(--ink-900);
}

/* ===========================================================
   Funnel — date cards as buttons + calendar/time popover (overlay)
   =========================================================== */
.fn-datecard { width: 100%; text-align: left; cursor: pointer; font-family: inherit; color: var(--ink-900); transition: border-color .15s, box-shadow .15s; }
.fn-datecard:hover { border-color: var(--brand-400); box-shadow: var(--sh-1); }
.fn-datecard:focus-visible { outline: none; border-color: var(--brand-500); box-shadow: 0 0 0 3px var(--brand-50); }
.fn-datecard__lbl { display: inline-flex; align-items: center; gap: 7px; }
.fn-datecard__date, .fn-datecard__time { display: block; }
.fn-datecard__edit { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--brand-600); }
.fn-dates-hint { font-size: 12.5px; color: var(--ink-400); }

.fn-dp-scrim { position: fixed; inset: 0; z-index: 1100; background: rgba(22,20,28,.28); }
.fn-dp {
  position: fixed; z-index: 1110; width: 340px; max-width: calc(100vw - 16px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-pop); overflow: hidden;
}
.fn-dp__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 15px; }
.fn-dp__close { width: 32px; height: 32px; border: 0; background: transparent; color: var(--ink-500); cursor: pointer; border-radius: var(--r-sm); display: grid; place-items: center; }
.fn-dp__close:hover { background: var(--paper-2); color: var(--ink-900); }
.fn-dp__body { display: flex; gap: 8px; padding: 14px; }
.fn-dp__cal { flex: 1; min-width: 0; }
.fn-dp__times { width: 92px; flex: none; display: flex; flex-direction: column; }
.fn-dp__times-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-400); margin-bottom: 6px; }
.fn-dp__times-list { display: grid; gap: 4px; max-height: 230px; overflow-y: auto; -webkit-overflow-scrolling: touch; padding-right: 2px; }
.fn-dp-time { font-family: inherit; font-size: 13px; font-weight: 600; text-align: center; padding: 8px 6px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-700); cursor: pointer; font-variant-numeric: tabular-nums; }
.fn-dp-time:hover { border-color: var(--brand-400); }
.fn-dp-time.is-sel { background: var(--brand-500); border-color: var(--brand-500); color: #fff; }
.fn-dp__hint { font-size: 11px; color: var(--ink-400); margin: 8px 0 0; line-height: 1.4; }

/* Bottom-sheet variant (toggled by JS when innerWidth ≤ 600). */
.fn-dp--sheet { border-radius: var(--r-xl) var(--r-xl) 0 0; border-left: 0; border-right: 0; border-bottom: 0; }
.fn-dp--sheet .fn-dp__body { flex-direction: column; }
.fn-dp--sheet .fn-dp__times { width: 100%; }
.fn-dp--sheet .fn-dp__times-list { grid-template-columns: repeat(4, 1fr); max-height: 140px; }

/* Date popover footer — clear "✓ OK" confirm button (keeps the X too). */
.fn-dp__foot { display: flex; justify-content: flex-end; padding: 0 14px 14px; }
.fn-dp__ok { min-width: 92px; }
.fn-dp--sheet .fn-dp__foot { padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); }
.fn-dp--sheet .fn-dp__ok { width: 100%; }

.book-card__lead { margin: -4px 0 0; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.72); }

/* Background scroll lock while a funnel overlay (calendar popover) is open. */
html.px-scroll-lock, html.px-scroll-lock body { overflow: hidden; }
