/* NoorStar — design "B Light". Source of truth: design_reference/NoorStar B Light - Noor.dc.html
   Every colour is a token on :root. Components use only var(--…), so the dark theme
   (design_reference/NoorStar B - Noor.dc.html) can be added later as [data-theme="dark"] value overrides. */

/* ---------- Fonts (self-hosted, OFL — see css/fonts/OFL-*.txt) ---------- */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/bricolage-grotesque-latin-ext-opsz-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  /* surfaces */
  --bg: #F5F0E6;              /* Daylight: page background, input wells */
  --surface: #FFFFFF;         /* cards, panel, sheet */
  --raised: #ECE4D4;          /* pills, tabs, hover */
  --row: #F7F2E9;             /* flight and seller rows */
  --chip: #E4DCCB;            /* Airline badge, Long tag */
  --line: #E4DCCB;            /* borders */
  --line-strong: #BFB39B;     /* dashed add slot, sheet handle */

  /* text */
  --ink: #1F1A12;
  --ink-soft: #4A4235;
  --muted: #6B6152;           /* Dusk */
  --on-ink: #FAF6EE;          /* text on dark buttons */
  --on-gold: #1A1405;

  /* accents */
  --accent-gold: #F2C46D;     /* Noor gold: fills only */
  --accent-gold-hover: #F6D38E;
  --gold-line: #D9A93F;       /* cheapest outline, tab border */
  --accent-ochre: #8A6212;    /* gold as text: cheapest price */
  --fresh: #2F5F9E;           /* Sky: focus rings and links */
  --freshness: #2F6B3F;       /* Leaf: "found just now" label · 6.4:1 on Surface, 5.6:1 on Daylight */
  --link: #2F5F9E;
  --link-hover: #234A7D;
  --warn: #A4462A;            /* Ember: tight, change airport, separate tickets */
  --night: #2A5590;           /* Night blue: overnight tag and note · 5.7:1 on its wash over Row */
  --error: #B3261E;           /* failed column only */
  --logo-gold: #C9962F;       /* logo mark "A light on the horizon": sun and glint */
  --logo-ink: #1F1A12;        /* logo mark: horizon line */

  /* tints, glows and shadows */
  --gold-wash: rgba(242, 196, 109, .30);
  --gold-glow: rgba(242, 196, 109, .25);
  --gold-halo: rgba(242, 196, 109, .22);
  --gold-ring: rgba(242, 196, 109, .32);
  --gold-shadow: rgba(170, 120, 20, .16);
  --gold-dot-glow: rgba(217, 169, 63, .6);
  --warn-wash: rgba(196, 98, 64, .12);
  --warn-wash-soft: rgba(196, 98, 64, .09);
  --warn-halo: rgba(196, 98, 64, .10);
  --night-wash: rgba(47, 95, 158, .12);
  --night-wash-soft: rgba(47, 95, 158, .09);
  --focus-ring: rgba(47, 95, 158, .15);
  --shadow-soft: rgba(80, 60, 20, .10);
  --shadow: rgba(80, 60, 20, .14);
  --shadow-strong: rgba(80, 60, 20, .16);
  --backdrop: rgba(60, 45, 25, .22);

  /* type */
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: 56px;
  color-scheme: light;
}

/* ---------- Dark theme: "NoorStar B" night sky (design_reference/NoorStar B - Noor.dc.html) ----------
   Value overrides only. The site opens in light; dark applies only when the visitor picks it with the
   header toggle, saved in a cookie and rendered by the server as data-theme on <html> (no flash).
   Every text pairing passes WCAG AA. */
:root[data-theme="dark"] {
  /* surfaces */
  --bg: #0D1322;              /* Night */
  --surface: #151C30;
  --raised: #1D2640;
  --row: #1A2238;
  --chip: #273152;
  --line: #273152;
  --line-strong: #3A4566;

  /* text: Starlight 15.2:1, soft 10.9:1, Dusk 6.8:1 on Surface */
  --ink: #ECEFF6;
  --ink-soft: #C9CFDD;
  --muted: #9AA3BC;
  --on-ink: #0D1322;          /* text on Starlight-filled buttons */
  --on-gold: #1A1405;

  /* accents */
  --accent-gold: #F2C46D;
  --accent-gold-hover: #F6D38E;
  --gold-line: rgba(242, 196, 109, .55);
  --accent-ochre: #F2C46D;    /* gold as text: on night it is readable as is (10.1:1 on Surface) */
  --fresh: #8DB7F5;           /* Sky: focus rings and links · 8.2:1 */
  --freshness: #86D19E;       /* "found just now" · 9.6:1 on Surface */
  --link: #8DB7F5;
  --link-hover: #B9D3FA;
  --warn: #EFA58C;            /* Ember · 5.7:1 on its wash over Row */
  --night: #A8C8FA;           /* overnight · 6.7:1 on its wash over Row */
  --error: #F09A9A;
  --logo-gold: #F2C46D;
  --logo-ink: #ECEFF6;

  /* tints, glows and shadows: on night gold is the only thing that glows */
  --gold-wash: rgba(242, 196, 109, .14);
  --gold-glow: rgba(242, 196, 109, .25);
  --gold-halo: rgba(242, 196, 109, .08);
  --gold-ring: rgba(242, 196, 109, .25);
  --gold-shadow: rgba(242, 196, 109, .18);
  --gold-dot-glow: rgba(242, 196, 109, .6);
  --warn-wash: rgba(239, 165, 140, .14);
  --warn-wash-soft: rgba(239, 165, 140, .10);
  --warn-halo: rgba(239, 165, 140, .06);
  --night-wash: rgba(141, 183, 245, .15);
  --night-wash-soft: rgba(141, 183, 245, .10);
  --focus-ring: rgba(141, 183, 245, .25);
  --shadow-soft: rgba(0, 0, 0, .35);
  --shadow: rgba(0, 0, 0, .45);
  --shadow-strong: rgba(0, 0, 0, .5);
  --backdrop: rgba(7, 11, 21, .55);

  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.page-home { background-image: radial-gradient(ellipse at 50% 0%, var(--gold-halo), transparent 60%); background-repeat: no-repeat; background-size: 100% 900px; }
body.page-disruptions { background-image: radial-gradient(ellipse at 80% 0%, var(--warn-halo), transparent 55%); background-repeat: no-repeat; background-size: 100% 800px; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--fresh); outline-offset: 2px; }

.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -48px; background: var(--ink); color: var(--on-ink); padding: 8px 14px; border-radius: 10px; z-index: 50; }
.skip-link:focus { top: 12px; }
.only-narrow { display: none; }
.link { color: var(--link); font-weight: 500; font-size: 13.5px; text-decoration: none; }
.link:hover { color: var(--link-hover); }

/* ---------- Top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px var(--gutter); position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font: 600 22px var(--font-display); letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; margin: 0 -2px 0 -4px; }
.brand-mark-gold { fill: var(--logo-gold); }
.brand-mark-line { fill: none; stroke: var(--logo-ink); stroke-width: 2.8; stroke-linecap: round; }
.nav { display: flex; gap: 6px; align-items: center; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.nav-link { padding: 8px 16px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; display: flex; gap: 8px; align-items: center; }
.nav-link:hover { color: var(--ink); background: var(--raised); }
.nav-link.is-current { background: var(--raised); color: var(--ink); font-weight: 500; }
.nav-soon { font-size: 10.5px; color: var(--accent-ochre); font-weight: 600; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; font-size: 22px; color: var(--ink-soft); border-radius: 12px; }

/* ---------- Region & currency (header) ---------- */
.region { position: relative; margin-left: auto; }
.theme-toggle { width: 40px; height: 40px; flex: none; display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); }
.theme-toggle:hover { color: var(--ink); background: var(--raised); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-sun, :root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.region-btn { list-style: none; cursor: pointer; font-size: 14px; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px; white-space: nowrap; }
.region-btn::-webkit-details-marker { display: none; }
.region-btn::after { content: " ▾"; color: var(--muted); font-size: 12px; }
.region-btn:hover, .region[open] .region-btn { color: var(--ink); background: var(--raised); }
.region-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 24px 64px var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.region-title { font: 500 17px var(--font-display); }
.region-field { display: flex; flex-direction: column; gap: 4px; }
.region-field .select-chip select { width: 100%; }
.region-note { font-size: 12px; line-height: 1.4; color: var(--muted); }
.region-panel .region-save { min-height: 44px; padding: 0 20px; border-radius: 14px; box-shadow: none; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px var(--gutter); text-align: center; font-size: 12px; color: var(--muted); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--ink); }

/* ---------- Buttons, badges, tags ---------- */
.btn-gold { background: var(--accent-gold); color: var(--on-gold); border: 0; border-radius: 18px; font-weight: 600; font-size: 15px; padding: 0 34px; box-shadow: 0 0 30px var(--gold-glow); }
.btn-gold:hover { background: var(--accent-gold-hover); }
.btn-ink { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--ink); color: var(--on-ink); border: 0; border-radius: 12px; padding: 9px 16px; font-weight: 500; font-size: 13.5px; text-decoration: none; }
.btn-ink:hover { color: var(--on-ink); opacity: .9; }
.btn-raised { background: var(--raised); color: var(--ink); border: 0; border-radius: 12px; padding: 9px 16px; font-weight: 500; font-size: 13.5px; }
.btn-raised:hover { background: var(--chip); }
.badge-gold { align-self: flex-start; background: var(--gold-wash); color: var(--accent-ochre); font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.badge-airline { background: var(--chip); color: var(--ink); font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; }
.pill-warn { background: var(--warn-wash); color: var(--warn); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.pill-sm { font-size: 11px; padding: 2px 8px; }
.pill-neutral { background: var(--chip); color: var(--ink-soft); font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.tag { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.tag-warn { color: var(--warn); background: var(--warn-wash); }
.tag-night { color: var(--night); background: var(--night-wash); }
.tag-neutral { color: var(--ink-soft); background: var(--chip); }

/* ---------- Hero + search card ---------- */
.hero { padding: 48px var(--gutter); display: flex; flex-direction: column; align-items: center; gap: 28px; }
.hero-title { font: 500 56px/1.02 var(--font-display); letter-spacing: -.03em; text-align: center; }
.hero-sub { color: var(--muted); }

.search-card { width: 100%; max-width: 1120px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px var(--shadow-soft); }
.search-row { display: flex; gap: 12px; }
.search-toggles { justify-content: space-between; align-items: center; flex-wrap: wrap; }

.seg { display: flex; background: var(--bg); border-radius: 999px; padding: 4px; gap: 4px; }
.seg-opt { position: relative; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-opt > span { display: block; border-radius: 999px; white-space: nowrap; }
.seg-mode .seg-opt > span { padding: 9px 18px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.seg-mode .seg-opt input:checked + span { background: var(--ink); color: var(--bg); }
.seg-trip .seg-opt > span { padding: 7px 14px; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.seg-trip .seg-opt input:checked + span { background: var(--ink); color: var(--bg); }
.seg-opt:hover input:not(:checked) + span { color: var(--ink); background: var(--raised); }
.seg-opt input:focus-visible + span { outline: 2px solid var(--fresh); outline-offset: 2px; }

.route { align-items: stretch; }
.search-card[data-mode="arr"] .route { flex-direction: row-reverse; }
.search-card[data-mode="arr"] .route-arrow { transform: none; }
.box { background: var(--bg); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; border: 0; margin: 0; min-width: 0; }
.box-label { font-size: 12px; color: var(--muted); padding: 0; }
.box-compared { flex: 1; }
.box-other { width: 240px; flex: none; }
.route-arrow { width: 40px; flex: none; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 18px; }

.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-pill { display: flex; align-items: center; gap: 10px; background: var(--raised); border-radius: 12px; padding: 0 10px 0 12px; min-height: 44px; border: 1px solid transparent; }
.ap-pill:focus-within { border-color: var(--fresh); box-shadow: 0 0 0 4px var(--focus-ring); }
.code-input { width: 3.6ch; max-width: 100%; border: 0; background: transparent; padding: 0; font: 500 18px var(--font-mono); letter-spacing: .02em; }
/* Placeholders are examples: body font, lighter, not uppercase, so they never read as entered codes. */
.code-input:placeholder-shown { width: 8ch; font: 400 14px var(--font-body); letter-spacing: 0; text-transform: none; }
.code-input::placeholder { color: var(--muted); opacity: .75; font-style: italic; text-transform: none; }
.code-input:focus { outline: none; }
.ap-name { font-size: 12.5px; color: var(--muted); max-width: 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-name:empty { display: none; }
.ap-remove { width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--chip); border: 0; display: flex; align-items: center; justify-content: center; font-size: 14px; line-height: 1; color: var(--ink-soft); padding: 0; }
.ap-remove:hover { background: var(--line-strong); }
.ap-pill, .other-input { position: relative; }

/* Airport / city suggestions */
.ap-list { position: absolute; top: calc(100% + 6px); left: 0; z-index: 30; min-width: 300px; max-width: calc(100vw - 32px); max-height: 320px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px var(--shadow); }
.ap-opt { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: baseline; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.ap-opt:hover, .ap-opt[aria-selected="true"] { background: var(--raised); }
.ap-opt-code { font-size: 15px; font-weight: 500; color: var(--ink); }
.ap-opt-label { font-size: 13.5px; color: var(--ink-soft); }
.ap-opt.is-city .ap-opt-label { color: var(--ink); font-weight: 600; }
.ap-opt-city { grid-column: 2; font-size: 12px; color: var(--muted); }

/* Stops filter (multi-select): selected chips are filled like the active mode switch, the others outlined */
.stops { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.stops-label { font-size: 12px; color: var(--muted); margin-right: 4px; }
.stops-options { display: flex; gap: 6px; }
.stop-chip { position: relative; cursor: pointer; }
.stop-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.stop-chip > span { display: block; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; background: transparent; border: 1px solid var(--line-strong); }
.stop-chip:hover input:not(:checked) + span { color: var(--ink); border-color: var(--ink-soft); background: var(--bg); }
.stop-chip input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.stop-chip input:checked + span::before { content: "✓ "; }
.stop-chip input:focus-visible + span { outline: 2px solid var(--fresh); outline-offset: 2px; }

.pill-add { display: flex; align-items: center; border: 1px dashed var(--line-strong); background: transparent; border-radius: 12px; padding: 8px 14px; min-height: 44px; color: var(--link); font-size: 13.5px; font-weight: 500; }
.pill-add:hover { color: var(--link-hover); }
.other-input { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.other-input .ap-name { max-width: 150px; }

.search-details { align-items: stretch; }
.box-dates, .box-pax { flex: 1; padding: 12px 16px; gap: 4px; }
.dates-native, .pax { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.mini { display: flex; flex-direction: column; gap: 0; }
.mini-label { font-size: 11px; color: var(--muted); }
.mini input[type="date"] { border: 0; background: transparent; padding: 2px 0; font: 500 15px var(--font-mono); font-variant-numeric: tabular-nums; min-height: 28px; color: var(--ink); }
.search-card[data-trip="oneway"] .mini-ret { display: none; }

/* Passengers & cabin: selects styled as chips, like the airport pills */
.pax { gap: 8px; }
.select-chip { position: relative; display: inline-flex; }
.select-chip::after { content: "▾"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 12px; pointer-events: none; }
.select-chip select { -webkit-appearance: none; appearance: none; background: var(--raised); border: 1px solid transparent; border-radius: 12px; padding: 0 32px 0 12px; min-height: 40px; font-size: 15px; color: var(--ink); cursor: pointer; transition: background-color .15s, border-color .15s; }
.select-chip select:hover { background: var(--chip); }
.select-chip select:focus { outline: none; }
.select-chip select:focus-visible { border-color: var(--fresh); box-shadow: 0 0 0 4px var(--focus-ring); }

/* Dates field (enhanced by datepicker.js) */
.box-dates { position: relative; }
.date-trigger { display: flex; align-items: center; flex-wrap: wrap; width: 100%; min-height: 40px; border: 1px solid transparent; background: var(--raised); border-radius: 12px; padding: 0 12px; text-align: left; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.date-trigger:hover { background: var(--chip); }
.date-trigger:focus { outline: none; }
.date-trigger:focus-visible, .date-trigger[aria-expanded="true"] { border-color: var(--fresh); box-shadow: 0 0 0 4px var(--focus-ring); }
.date-arrow { color: var(--muted); white-space: pre; }

.dp { position: absolute; top: calc(100% + 8px); left: 0; z-index: 35; }
.dp-backdrop, .dp-handle { display: none; }
.dp-panel { width: 664px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: 0 24px 64px var(--shadow-strong); display: flex; flex-direction: column; gap: 14px; }
.dp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.dp-heading { display: flex; flex-direction: column; gap: 2px; }
.dp-title { font: 500 20px var(--font-display); }
.dp-status { font-size: 12.5px; color: var(--muted); min-height: 1.5em; }
.dp-close { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--raised); border: 0; font-size: 16px; padding: 0; }
.dp-close:hover { background: var(--chip); }
.dp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dp.is-oneway .dp-fields { grid-template-columns: 1fr; }
.dp-field { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: var(--bg); border: 1px solid transparent; border-radius: 14px; padding: 10px 14px; }
.dp-field:hover { background: var(--raised); }
.dp-field.is-active { background: var(--surface); border-color: var(--ink); }
.dp-field-label { font-size: 11.5px; color: var(--muted); }
.dp-field-value { font-size: 15px; font-weight: 500; }
.dp-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dp-chip { background: var(--bg); border: 1px solid transparent; border-radius: 999px; padding: 7px 14px; font-size: 13px; color: var(--ink); }
.dp-chip:hover { background: var(--raised); }
.dp-chip[aria-pressed="true"] { background: var(--raised); border-color: var(--ink); font-weight: 500; }
.dp-body { display: flex; align-items: flex-start; gap: 4px; }
.dp-nav { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--raised); font-size: 18px; line-height: 1; color: var(--ink); margin-top: 0; }
.dp-nav:hover:not(:disabled) { background: var(--chip); }
.dp-nav:disabled { opacity: .35; cursor: default; }
.dp-months { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 0; }
.dp-month-title { font: 500 15px var(--font-display); text-align: center; line-height: 36px; margin-bottom: 4px; }
.dp-grid { display: flex; flex-direction: column; gap: 2px; }
.dp-row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dp-wd { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; }
.dp-wd abbr { text-decoration: none; }
.dp-day { position: relative; height: 38px; border: 0; background: transparent; border-radius: 10px; font-size: 14px; color: var(--ink); padding: 0; }
.dp-day:hover:not(:disabled) { background: var(--raised); }
.dp-day:focus { outline: none; }
.dp-day:focus-visible { box-shadow: inset 0 0 0 2px var(--fresh); }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--line-strong); }
.dp-day.is-disabled { color: var(--line-strong); cursor: default; }
.dp-day.is-in-range { background: var(--raised); border-radius: 0; }
.dp-day.is-start, .dp-day.is-end { background: var(--ink); color: var(--on-ink); font-weight: 600; }
.dp-day.is-start:hover, .dp-day.is-end:hover { background: var(--ink); }
.dp-day.is-preview { background: var(--chip); color: var(--ink); }
.dp-foot { display: flex; justify-content: flex-end; }
.dp-done { min-height: 40px; padding: 0 20px; }
.btn-search { min-height: 64px; flex: none; }
.form-errors { color: var(--warn); background: var(--warn-wash-soft); border-radius: 12px; padding: 10px 14px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }

/* ---------- Results ---------- */
.results { padding: 16px var(--gutter) 56px; display: flex; flex-direction: column; gap: 20px; max-width: 1440px; margin: 0 auto; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; }
.results-title { display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap; min-width: 0; }
.results-route { font: 500 24px var(--font-display); }
.results-meta { font-size: 13.5px; color: var(--muted); }
.results-region { font-size: 13.5px; color: var(--muted); }
.results-note { font-size: 12.5px; color: var(--muted); background: var(--surface); border-radius: 999px; padding: 8px 14px; }
.results-edit { display: none; }

.tabs { display: none; }
.cols { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 20px; align-items: start; }

.col { background: var(--surface); border-radius: 22px; padding: 8px; border: 1px solid var(--line); min-width: 0; transition: box-shadow .3s, border-color .3s; }
.col.is-cheapest { border-color: var(--gold-line); box-shadow: 0 0 0 3px var(--gold-ring), 0 14px 40px var(--gold-shadow); }
.col-head { padding: 16px 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.col-id { display: flex; gap: 10px; align-items: baseline; min-width: 0; }
.col-code { font-size: 24px; font-weight: 500; }
.col-name { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-name-fallback { display: none; }
.col-badge:empty { display: none; }
.col-badge { font-size: 12px; padding: 5px 10px; border-radius: 999px; white-space: nowrap; display: flex; gap: 6px; align-items: center; }
.col-badge.is-best { background: var(--gold-wash); color: var(--accent-ochre); font-weight: 600; }
.col-badge.is-best::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-gold); box-shadow: 0 0 8px var(--accent-gold); }
.col-badge.is-diff { background: var(--raised); color: var(--ink-soft); font: 500 12px var(--font-mono); }
.col-summary { padding: 12px 14px 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; }
.col-price { font-size: 44px; line-height: 1; letter-spacing: -.03em; font-weight: 500; color: var(--ink); }
.col.is-cheapest .col-price { color: var(--accent-ochre); }
.fresh { font-size: 12px; color: var(--freshness); white-space: nowrap; }

.col-state { margin-top: 12px; background: var(--bg); border-radius: 16px; padding: 24px 20px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.col-state-title { font: 500 18px var(--font-display); }
.col-error-title { font: 600 14px var(--font-body); color: var(--error); }
.col-state-text { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.col-state-links { display: flex; gap: 16px; flex-wrap: wrap; }
.col-loading { align-items: center; text-align: center; padding: 28px 20px; gap: 14px; }
.col-loading-title { font-size: 14px; color: var(--ink); }
.col-loading-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; max-width: 280px; }
.col.htmx-request .col-state .btn-raised { opacity: .6; pointer-events: none; }

.dots { display: flex; gap: 8px; }
.dots span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-line); box-shadow: 0 0 8px var(--gold-dot-glow); animation: nsglow 1.6s ease-in-out infinite; }
.dots span:nth-child(2) { animation-delay: .25s; }
.dots span:nth-child(3) { animation-delay: .5s; }
@keyframes nsglow { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .dots span { animation: none; opacity: .7; } }

.flights { display: flex; flex-direction: column; gap: 6px; }
.flights-more { display: flex; flex-direction: column; gap: 6px; }
.show-all { margin: 4px 0 6px; align-self: center; background: transparent; border: 0; color: var(--link); font-weight: 500; font-size: 13.5px; padding: 10px 14px; }
.show-all:hover { color: var(--link-hover); }

.flight { background: var(--row); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; }
.flight:hover, .flight.is-open { background: var(--raised); }
.flight-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.flight-airline { font-size: 13px; color: var(--ink-soft); min-width: 0; }
.flight-price { font-size: 19px; font-weight: 500; white-space: nowrap; }
.flight-price-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.flight-unconfirmed { font-size: 11px; color: var(--muted); white-space: nowrap; }
.flight-note { font-size: 12px; line-height: 1.4; color: var(--ink-soft); background: var(--raised); padding: 6px 10px; border-radius: 8px; }
.leg-route { color: var(--ink-soft); }
.legs { display: flex; flex-direction: column; gap: 10px; }
.leg { display: flex; flex-direction: column; gap: 3px; }
.leg-main { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.leg-times { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.leg-tag { font-size: 10px; font-weight: 500; color: var(--muted); width: 26px; flex: none; }
.leg-clock { font-size: 15px; font-weight: 500; color: var(--ink); }
.day-marker, .panel-sub sup { font-size: 9.5px; color: var(--muted); }
.leg-dur { font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.leg-stops { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 6px; font-size: 12px; color: var(--muted); padding-left: 34px; }
.lay { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.lay-ap { color: var(--ink-soft); }
.flight-warn { color: var(--warn); font-size: 12px; line-height: 1.4; background: var(--warn-wash-soft); padding: 6px 10px; border-radius: 8px; }
.flight-warn-night { color: var(--night); background: var(--night-wash-soft); }

/* ---------- Limit card ---------- */
.limit-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; max-width: 460px; }
.limit-compact { margin-top: 12px; border: 0; background: var(--bg); border-radius: 16px; padding: 24px 20px; max-width: none; }
.limit-bars { display: flex; gap: 6px; }
.limit-bars span { flex: 1; height: 6px; border-radius: 3px; background: var(--muted); }
.limit-title { font: 500 26px/1.1 var(--font-display); letter-spacing: -.01em; }
.limit-compact .limit-title { font-size: 20px; }
.limit-text { font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.limit-text b { color: var(--ink); }

/* ---------- Seller panel / bottom sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 40; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--backdrop); }
.sheet-panel { position: absolute; top: 16px; right: 16px; bottom: 16px; width: 500px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; box-shadow: 0 24px 64px var(--shadow-strong); overflow: auto; overscroll-behavior: contain; animation: panel-in .22s ease-out; }
.sheet-panel:focus { outline: none; }
.sheet-handle { display: none; }
#sheet-body { display: flex; flex-direction: column; gap: 8px; }
@keyframes panel-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .sheet-panel, .dp-panel { animation: none !important; } }
body.sheet-open { overflow: hidden; }

.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.panel-heading { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.panel-kicker { font-size: 12px; color: var(--muted); }
.panel-title { font: 500 22px var(--font-display); }
.panel-sub { font-size: 13px; color: var(--muted); }
.panel-close { width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--raised); border: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; padding: 0; }
.panel-close:hover { background: var(--chip); }
.panel-loading, .panel-empty { padding: 28px 8px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.panel-note { font-size: 12px; color: var(--muted); padding: 10px 2px 0; }

.seller { background: var(--row); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.seller-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.seller-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.seller-name-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.seller-name { font-weight: 600; font-size: 15px; }
.seller-meta { font-size: 12.5px; color: var(--muted); }
.seller-price { font-size: 19px; font-weight: 500; white-space: nowrap; }
.seller-price-unknown { font: 500 13px var(--font-body); color: var(--muted); }
.seller-go { align-self: flex-end; }
.seller-go-form { display: flex; justify-content: flex-end; margin: 0; }
.seller-phone { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 44px; background: var(--surface); border-radius: 10px; padding: 0 12px; font-size: 13px; }
.seller-phone a { font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; text-decoration: none; }
.seller-note { font-size: 11.5px; color: var(--muted); text-align: right; }
.sep-group { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.sep-head { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.sep-text { font-size: 12.5px; line-height: 1.5; color: var(--warn); }
.sep-leg { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* ---------- Pages: Disruptions, Why ---------- */
.page { max-width: 700px; margin: 0 auto; padding: 48px 40px 72px; display: flex; flex-direction: column; gap: 22px; }
.page-title { font: 500 46px/1.04 var(--font-display); letter-spacing: -.025em; }
.page-lead { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.eyebrow { font-size: 12px; font-weight: 500; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.feature { background: var(--surface); border-radius: 16px; padding: 14px; font-size: 13px; line-height: 1.45; color: var(--ink-soft); }
.feature-label { display: block; font-size: 12px; font-weight: 500; margin-bottom: 6px; }
.feature-see { color: var(--warn); }
.feature-compare { color: var(--accent-ochre); }
.feature-know { color: var(--fresh); }
.signup { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.signup-row { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px; display: flex; gap: 6px; }
.signup-row:focus-within { border-color: var(--fresh); box-shadow: 0 0 0 4px var(--focus-ring); }
.signup-email { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-size: 15px; min-height: 48px; }
.signup-email:focus { outline: none; }
.signup-row .btn-gold { border-radius: 15px; padding: 14px 22px; box-shadow: none; white-space: nowrap; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: var(--ink); }
.signup-note { font-size: 12.5px; color: var(--muted); }
.field-error { font-size: 13px; color: var(--warn); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.signup-done { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 6px; }
.signup-done-title { font: 500 22px var(--font-display); }

.page-why { padding: 56px 72px 72px; }
.page-why .page-title { font-size: 48px; line-height: 1.02; }
.why-lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.why-lead-label { font-weight: 600; }
.why-text { font-size: 17px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1100px) {
  :root { --gutter: 32px; }
  .box-other { width: 200px; }
  .route-arrow { width: 28px; }
}

@media (max-width: 900px) {
  :root { --gutter: 16px; }
  .only-wide { display: none; }
  .only-narrow { display: inline; }
  .topbar { padding: 8px 10px 8px 20px; }
  .brand { font-size: 20px; gap: 8px; }
  .brand-mark { width: 26px; height: 26px; }
  .nav-toggle { display: flex; align-items: center; justify-content: center; }
  .region { position: static; }
  .region-btn { padding: 8px 12px; font-size: 13px; }
  .theme-toggle { width: 36px; height: 36px; }
  .region-panel { left: 10px; right: 10px; top: 56px; width: auto; }
  .nav { display: none; position: absolute; right: 10px; top: 56px; z-index: 30; flex-direction: column; align-items: stretch; border-radius: 18px; padding: 6px; box-shadow: 0 24px 64px var(--shadow); min-width: 200px; }
  .nav.is-open { display: flex; }
  .nav-link { padding: 12px 16px; border-radius: 12px; }

  .hero { padding: 4px var(--gutter) 16px; align-items: stretch; gap: 12px; }
  .hero-title { font-size: 32px; line-height: 1.05; letter-spacing: -.02em; text-align: left; padding: 0 4px 6px; }
  .search-card { background: transparent; border: 0; box-shadow: none; padding: 0; gap: 8px; border-radius: 0; }
  .search-row { gap: 8px; }
  .search-toggles { flex-direction: column; align-items: stretch; gap: 8px; }
  .seg { background: var(--surface); }
  .seg-opt { flex: 1; text-align: center; }
  .seg-mode .seg-opt > span { padding: 12px 4px; font-size: 13.5px; }
  .seg-trip .seg-opt > span { padding: 9px 4px; }
  .stops { margin-left: 0; }
  .stops-options { flex: 1; }
  .stops-label { padding-left: 4px; }
  .stop-chip { flex: 1; text-align: center; }
  .stop-chip > span { padding: 9px 4px; background: var(--surface); }
  .ap-list { position: fixed; left: 16px; right: 16px; top: auto; min-width: 0; max-width: none; }
  .route { background: var(--surface); border-radius: 20px; padding: 14px; gap: 10px; }
  .route .box { background: transparent; padding: 0; }
  .route-arrow { width: 20px; }
  .box-other { width: 180px; }
  .pills { gap: 6px; }
  .ap-pill { padding: 0 4px 0 12px; gap: 6px; }
  .ap-pill .ap-name { display: none; }
  .code-input:placeholder-shown { width: 7.5ch; }
  .ap-remove { width: 36px; height: 36px; background: transparent; font-size: 15px; }
  .code-input { font-size: 16px; }
  .search-details { flex-direction: column; }
  .box-dates, .box-pax { background: var(--surface); border-radius: 16px; padding: 12px 14px; }
  .dates-native { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .search-card[data-trip="oneway"] .dates-native { grid-template-columns: 1fr; }
  .mini input[type="date"] { width: 100%; min-width: 0; }
  .select-chip { flex: 1; min-width: 0; }
  .select-chip select { width: 100%; min-height: 44px; }
  .date-trigger { min-height: 44px; }

  /* Date picker: full-height bottom sheet with scrolling months */
  .dp { position: fixed; inset: 0; z-index: 45; }
  .dp-backdrop { display: block; position: absolute; inset: 0; background: var(--backdrop); }
  .dp-panel { position: absolute; left: 0; right: 0; bottom: 0; top: 12px; width: auto; max-width: none; border: 0; border-radius: 28px 28px 0 0; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); gap: 10px; box-shadow: 0 -20px 60px var(--shadow-strong); animation: sheet-up .22s ease-out; }
  .dp-handle { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); align-self: center; flex: none; }
  .dp-body { flex: 1; min-height: 0; align-items: stretch; }
  .dp-nav { display: none; }
  .dp-months { display: block; flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 8px; }
  .dp-month + .dp-month { margin-top: 18px; }
  .dp-month-title { text-align: left; padding-left: 4px; line-height: 1.4; margin-bottom: 6px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
  .dp-day { height: 44px; font-size: 15px; }
  .dp-chip { flex: 1; text-align: center; padding: 9px 8px; min-height: 40px; }
  .dp-done { width: 100%; min-height: 48px; font-size: 15px; }
  body.dp-open { overflow: hidden; }
  .btn-search { min-height: 56px; font-size: 16px; }

  /* Results: price tabs */
  .results { padding: 0 0 40px; gap: 0; }
  .results-head { padding: 2px 20px 10px; flex-wrap: nowrap; align-items: center; gap: 12px; }
  .results-title { flex-direction: column; gap: 2px; align-items: flex-start; }
  .results-route { font: 500 15px var(--font-mono); }
  .results-meta { font-size: 12px; }
  .results-region { font-size: 12px; }
  .results-edit { display: block; background: transparent; border: 0; color: var(--link); font-size: 13px; font-weight: 500; padding: 12px 0 12px 8px; flex: none; }
  .results-note { order: 3; background: transparent; padding: 0; font-size: 11.5px; line-height: 1.4; display: none; }
  body.has-results:not(.form-open) .hero { display: none; }
  .tabs { display: grid; grid-template-columns: repeat(var(--tab-count, 3), minmax(0, 1fr)); gap: 6px; padding: 0 12px; }
  .tab { text-align: left; border-radius: 16px; padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid transparent; min-width: 0; min-height: 44px; }
  .tab.is-active { background: var(--raised); border-color: var(--fresh); }
  .tab.is-active.is-best { border-color: var(--gold-line); }
  .tab-code { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
  .tab-price { font-size: 21px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tab.is-best .tab-price { color: var(--accent-ochre); }
  .tab-note { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tabs + .cols::before { content: "Prices are indicative. The final price is confirmed on the seller's site."; display: block; padding: 10px 8px 0; font-size: 11.5px; color: var(--muted); line-height: 1.4; }
  .cols { display: block; padding: 0 12px; }
  .col { display: none; background: transparent; border: 0; padding: 0; box-shadow: none !important; }
  .col.is-active { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .col > * { grid-column: 1 / -1; }
  .col-head { padding: 14px 8px 8px; grid-column: 1; }
  .col-head .col-code, .col-badge { display: none; }
  .col-name { font: 500 18px var(--font-display); color: var(--ink); }
  .col-name-fallback { display: inline; }
  .col-id { flex: 1; min-width: 0; }
  .col-summary { grid-column: 2; grid-row: 1; padding: 14px 8px 8px; align-self: center; }
  .col-summary .col-price { display: none; }
  .fresh { font-size: 11.5px; }
  .col-state { margin-top: 0; background: var(--surface); }
  .flight { background: var(--surface); padding: 12px 14px; }
  .limit-compact { background: var(--surface); }
  .results > .limit-card { margin: 12px; }

  /* Seller bottom sheet */
  .sheet-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 88vh; border-radius: 28px 28px 0 0; border: 0; padding: 10px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px var(--shadow-strong); animation-name: sheet-up; }
  .sheet-handle { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); align-self: center; margin-bottom: 12px; flex: none; }
  .panel-head { padding: 0 4px 8px; border-bottom: 0; }
  .panel-title { font-size: 20px; }
  .panel-sub { font-size: 12.5px; }
  .seller { padding: 12px 14px; gap: 8px; }
  .seller-name { font-size: 14.5px; }
  .seller-price { font-size: 17px; }
  .seller-go { align-self: stretch; min-height: 44px; font-size: 14px; }
  .seller-go-form .seller-go { flex: 1; }
  .seller-phone { background: var(--raised); border-radius: 12px; padding: 0 14px; }

  .page, .page-why { padding: 24px 20px 56px; }
  .page-title, .page-why .page-title { font-size: 34px; }
  .features { grid-template-columns: 1fr; }
}

/* Phones: From and To stacked */
@media (max-width: 639px) {
  /* Header: wordmark and mark 25% larger than tablet; tighter gaps so it fits at 360 */
  .topbar { gap: 8px; }
  .brand { font-size: 25px; gap: 8px; }
  .nav-toggle { flex: none; }
  .brand-mark { width: 32.5px; height: 32.5px; margin: 0 -2.5px 0 -5px; }

  /* Switches: Departures/Arrivals, Stops and Return/One-way are segments of the same height */
  .seg-mode .seg-opt > span { padding: 9px 4px; }
  .stops { flex-direction: column; align-items: stretch; gap: 6px; }
  .stops-label { margin: 0; padding-left: 14px; }
  .stops-options { background: var(--surface); border-radius: 999px; padding: 4px; gap: 4px; }
  .stop-chip > span { background: transparent; border: 0; padding: 9px 4px; }
  .stop-chip:hover input:not(:checked) + span { background: var(--raised); }

  /* "To": its input sits right under the label, like the airport pills under "From" */
  .other-input { min-height: 0; }
  .route { flex-direction: column; }
  .search-card[data-mode="arr"] .route { flex-direction: column-reverse; }
  .route-arrow { display: none; }
  .box-other { width: auto; border-radius: 0; border-top: 1px solid var(--line); padding-top: 10px !important; }
  .search-card[data-mode="arr"] .box-other { border-top: 0; border-bottom: 1px solid var(--line); padding: 0 0 10px !important; }
}

@media (max-width: 480px) {
  .signup-row { flex-direction: column; }
  .signup-email { min-height: 44px; }
  .signup-row .btn-gold { width: 100%; }
}

@media (max-width: 374px) {
  .hero-title { font-size: 29px; }
  .tab { padding: 9px 8px 10px; }
  .tab-price { font-size: 18px; }
  .leg-stops { padding-left: 0; }
}
