/* Fly South Pacific — design system cloned from southpacificflights.com
   (Tailwind v4 oklch theme, DM Sans + Space Grotesk, sky-deep/sky-mid/sun) */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --radius: .5rem;
  --background: oklch(98% .004 200);
  --foreground: oklch(25% .025 210);
  --card: oklch(100% 0 0);
  --card-foreground: oklch(22% .04 240);
  --popover: oklch(100% 0 0);
  --popover-foreground: oklch(22% .04 240);
  --primary: oklch(40% .075 200);
  --primary-foreground: oklch(98% .01 85);
  --secondary: oklch(94% .02 220);
  --secondary-foreground: oklch(30% .07 235);
  --muted: oklch(95% .006 200);
  --muted-foreground: oklch(50% .03 240);
  --accent: oklch(78% .16 65);
  --accent-foreground: oklch(22% .05 50);
  --destructive: oklch(57.7% .245 27.325);
  --border: oklch(90% .008 200);
  --input: oklch(85% .012 200);
  --ring: oklch(60% .12 235);
  --sky-deep: oklch(26% .08 240);
  --sky-mid: oklch(42% .11 230);
  --sun: oklch(80% .16 65);
  --font: "DM Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--foreground);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100svh;
  font-size: 15px; line-height: 1.5;
}
a { color: inherit; text-decoration: inherit; }
h1, h2, h3 { font-family: var(--font-display); }
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }

.muted { color: var(--muted-foreground); }
.font-display { font-family: var(--font-display); }

/* ── Page shell ────────────────────────────────────── */
.shell { flex: 1; display: flex; flex-direction: column; min-height: 100svh; }
main.page { width: 100%; max-width: 72rem; margin: 0 auto; padding: 1.5rem 1rem 4rem; flex: 1; }

/* ── Header with banner ───────────────────────────── */
.site-header { background: var(--sky-deep); }
.header-banner { position: relative; overflow: hidden; }
.header-banner img {
  width: 100%; height: clamp(140px, 26vw, 260px); object-fit: cover; object-position: center 65%;
  opacity: .5;
}
.header-banner::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 20%, color-mix(in oklab, var(--sky-deep) 85%, transparent));
}
.header-bar {
  position: relative; z-index: 1; margin-top: -58px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.header-inner {
  width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1rem 6px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 10px; }
/* IslandtoHub wordmark: white/turquoise lettering, always on its navy plate. */
.site-logo {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: #071f47; border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 10px; padding: 4px 10px; line-height: 0;
}
.site-logo img { display: block; height: 100%; width: auto; }
.site-logo--header { height: 42px; }
.site-logo--footer { height: 30px; padding: 3px 7px; border-radius: 8px; }
.brand-name {
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
  letter-spacing: .01em;
}
.nav { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.nav a.nav-cta { border: 1px solid color-mix(in oklab, var(--primary-foreground) 45%, transparent); color: #fff; }
.nav a {
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent);
  font-weight: 500; font-size: 14px; padding: 8px 13px; border-radius: 10px;
}
.nav a:hover { background: color-mix(in oklab, var(--primary-foreground) 10%, transparent); color: #fff; }
.nav a.active { background: color-mix(in oklab, var(--primary-foreground) 18%, transparent); color: #fff; }

/* ── Footer ───────────────────────────────────────── */
.site-footer { background: var(--sky-deep); color: #fff; margin-top: auto; }
.footer-inner {
  max-width: 72rem; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 14px; border-top: 1px solid color-mix(in oklab, var(--primary-foreground) 15%, transparent);
}
.footer-brand { font-family: var(--font-display); font-weight: 600; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a {
  color: color-mix(in oklab, var(--primary-foreground) 80%, transparent); font-weight: 500;
}
.site-footer nav a:hover { color: var(--sun); text-decoration: underline; text-underline-offset: 4px; }

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px;
  background: var(--accent); color: var(--accent-foreground);
  font-weight: 700; font-size: 14.5px; cursor: pointer; border: 0;
  font-family: var(--font); transition: filter .12s, transform .05s;
}
.btn:hover { filter: brightness(.95); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn.ghost { background: transparent; color: var(--primary); padding: 0 10px; height: 40px; }
.btn.sm { height: 36px; font-size: 13px; padding: 0 13px; }
.btn.block { width: 100%; }
.btn.link-ish { background: none; border: 0; color: var(--primary); cursor: pointer; font-weight: 600; padding: 0; font-size: 13px; }

/* ── Cards / fields ───────────────────────────────── */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px); padding: 18px;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.06);
}
.field { margin-bottom: 12px; min-width: 0; }
.field > label {
  display: block; font-size: 10px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted-foreground); margin-bottom: 4px;
}
.field input, .field select {
  width: 100%; height: 40px; border: 1px solid var(--input); border-radius: 9px;
  padding: 0 10px; font-size: 14px; background: var(--card); min-width: 0;
}
.field input:focus, .field select:focus { outline: 2px solid var(--ring); outline-offset: -1px; }

.kicker {
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.section-title {
  font-size: 12px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: var(--muted-foreground); margin: 24px 0 10px;
}
.page-h1 { font-size: 30px; font-weight: 700; letter-spacing: -.025em; margin: 0; }
.page-sub { color: var(--muted-foreground); margin: 4px 0 0; }

.badge { display: inline-block; border: 1px solid; border-radius: 999px; padding: 2px 10px; font-size: 10.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.badge.confirmed { color: oklch(55% .14 150); border-color: oklch(55% .14 150); }
.badge.awaiting_payment { color: oklch(60% .13 75); border-color: oklch(60% .13 75); }
.badge.cancelled { color: var(--destructive); border-color: var(--destructive); }

/* ── Toast ────────────────────────────────────────── */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(16px);
  background: var(--sky-deep); color: #fff; padding: 10px 16px; border-radius: 11px;
  font-size: 13.5px; font-weight: 500; opacity: 0; pointer-events: none;
  transition: all .25s ease; z-index: 300; max-width: min(480px, calc(100vw - 40px)); text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.error { background: var(--destructive); }

/* ── Spinner / empty ──────────────────────────────── */
.spinner { text-align: center; padding: 56px 0; color: var(--muted-foreground); font-size: 14px; }
.spinner .ring {
  width: 32px; height: 32px; margin: 0 auto 10px;
  border: 3px solid var(--border); border-top-color: var(--primary);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 44px 18px; }
.empty .icon { font-size: 40px; }
.empty h3 { margin: 8px 0 4px; font-size: 17px; }
.empty p { margin: 0; color: var(--muted-foreground); font-size: 14px; }

/* ── Home hero + search form ──────────────────────── */
.home-hero { margin: 8px 0 14px; }
.home-hero h1 {
  font-size: clamp(30px, 6vw, 48px); font-weight: 700; letter-spacing: -.025em;
  line-height: 1.05; margin: 0;
}
.home-hero .tagline {
  font-size: clamp(16px, 2.4vw, 19px); color: var(--foreground); margin: 10px 0 2px; line-height: 1.4;
}
.home-hero .tagline strong { color: var(--accent-foreground); }
.home-hero .sub { color: var(--muted-foreground); font-size: 15px; margin: 0; }

.search-form {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px; box-shadow: 0 25px 50px -12px rgba(10,30,50,.25);
}
.search-grid { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px; align-items: end; }
.search-row2 {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr) minmax(0,.85fr) minmax(0,1.15fr);
  gap: 4px; margin-top: 8px; align-items: end;
}
.search-form .btn.submit {
  margin-top: 8px; height: 44px; width: 100%; font-size: 15px; border-radius: 10px;
}
@media (max-width: 640px) {
  .search-grid { grid-template-columns: 1fr; }
  .swap-btn { justify-self: center; }
  .search-row2 { grid-template-columns: 1fr 1fr; }
}

.place-wrap { position: relative; min-width: 0; }
.place-input { position: relative; }
.place-input input {
  height: 44px; border: 1px solid var(--input); border-radius: 10px; width: 100%;
  padding: 0 10px; font-size: 14px; background: var(--card);
}
.place-input input.filled {
  font-family: var(--font-display); font-weight: 700; font-size: 20px;
  color: var(--primary); letter-spacing: .02em;
}
@media (min-width: 640px) {
  .place-input input.filled { font-family: var(--font); font-weight: 400; font-size: 14px; color: var(--foreground); }
}
/* Departure date popup with fare estimates under each date */
.dp-btn {
  display: flex; align-items: center; justify-content: flex-start; gap: 8px; width: 100%; height: 40px;
  border: 1px solid var(--input); border-radius: 9px; padding: 0 10px; background: var(--card);
  cursor: pointer; text-align: left;
  font-family: var(--font); font-size: 14px; font-weight: 500; color: var(--foreground);
}
.date-pop {
  position: absolute; z-index: 40; top: calc(100% + 6px); left: 0;
  width: min(680px, calc(100vw - 32px));
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 32px rgba(10, 30, 50, .18); padding: 12px 14px 10px;
}
.dp-nav { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.dp-nav button {
  pointer-events: auto; width: 32px; height: 32px; border-radius: 8px; border: 0; background: none;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--foreground);
}
.dp-nav button:hover:not(:disabled) { background: var(--secondary); }
.dp-nav button:disabled { opacity: .3; cursor: default; }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.dp-title { text-align: center; font-weight: 600; font-size: 15px; padding: 5px 0 10px; }
.dp-dow, .dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dp-dow span { text-align: center; font-size: 12px; color: var(--muted-foreground); padding-bottom: 4px; }
.dp-grid button {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 46px; padding: 3px 0; border: 0; border-radius: 8px; background: none; cursor: pointer;
  font-family: var(--font); color: var(--foreground);
}
.dp-grid button b { font-weight: 500; font-size: 14px; }
.dp-grid button small { font-size: 10px; line-height: 1.1; color: oklch(48% .19 25); white-space: nowrap; }
.dp-grid button.low small { color: oklch(45% .13 150); font-weight: 700; }
.dp-grid button:hover:not(:disabled) { background: var(--secondary); }
.dp-grid button:disabled { opacity: .35; cursor: default; }
.dp-grid button.sel { background: var(--primary); }
.dp-grid button.sel b, .dp-grid button.sel small { color: #fff; font-weight: 700; }
.dp-note { margin: 10px -14px 0; padding: 9px 14px 0; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted-foreground); }
@media (max-width: 640px) {
  .dp-months { grid-template-columns: 1fr; }
  .dp-month + .dp-month { display: none; }
  .date-pop { width: calc(100vw - 66px); }
}

.place-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  background: var(--popover); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 28px rgba(10,30,50,.16); overflow: hidden auto; max-height: 256px;
  width: min(18rem, calc(100vw - 3.5rem));
}
.place-list.right { left: auto; right: 0; }
.place-list button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 12px; border: 0; background: none; cursor: pointer; text-align: left;
  font-size: 14px; white-space: normal;
}
.place-list button:hover { background: var(--muted); }
.place-list button + button { border-top: 1px solid var(--muted); }
.place-list .code { font-family: var(--font-display); font-weight: 700; color: var(--primary); }
.place-list .country { display: block; color: var(--muted-foreground); font-size: 12px; margin-top: 1px; }
.origin-hint { margin: 0 0 4px; font-size: 11px; color: var(--muted-foreground); min-height: 14px; }

.swap-btn {
  width: 40px; height: 44px; border-radius: 10px; border: 0; cursor: pointer;
  background: transparent; color: var(--primary); font-size: 17px;
}
.swap-btn:hover { background: var(--muted); }

.date-btn {
  width: 100%; height: 44px; border: 1px solid var(--input); border-radius: 10px;
  background: var(--card); cursor: pointer; font-size: 14px; color: var(--foreground);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pax-btn {
  width: 100%; height: 44px; border: 1px solid var(--input); border-radius: 10px;
  background: var(--card); cursor: pointer; font-size: 13px; color: var(--foreground);
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.pax-pop {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50;
  background: var(--popover); border: 1px solid var(--border); border-radius: 13px;
  box-shadow: 0 12px 30px rgba(10,30,50,.18); padding: 13px; width: 250px;
}
.counter-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.counter-row .label { font-size: 14px; }
.counter-row .ctrl { display: flex; align-items: center; gap: 10px; }
.counter-row button {
  width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--border);
  background: var(--muted); font-size: 17px; cursor: pointer; color: var(--primary);
}
.counter-row .val { min-width: 18px; text-align: center; font-weight: 500; }

.popular-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.popular-routes button {
  display: block; text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 13px; cursor: pointer; font-family: var(--font);
  transition: background .15s, border-color .15s;
}
.popular-routes button:hover { border-color: var(--primary); }
.popular-routes .route-label { font-weight: 500; font-size: 14px; }
.popular-routes .route-codes { color: var(--muted-foreground); font-size: 12px; margin-top: 3px; }

/* ── Results ──────────────────────────────────────── */
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-head h1 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.filters-bar {
  display: flex; gap: 18px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--border);
  border-radius: 13px; padding: 11px 13px; margin-bottom: 12px;
}
.filter-group .kicker { display: block; margin-bottom: 6px; }
.chip-row { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border); background: var(--card); color: var(--muted-foreground);
  border-radius: 999px; padding: 5px 12px; font-size: 12.5px; font-weight: 500; cursor: pointer;
  font-family: var(--font); transition: all .12s;
}
.chip:hover { border-color: var(--primary); color: var(--foreground); }
.chip.active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }

.offer {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px);
  overflow: hidden; margin-bottom: 12px;
  display: grid; grid-template-columns: minmax(0,1fr) 240px;
}
@media (max-width: 768px) { .offer { grid-template-columns: 1fr; } }
.offer-main { min-width: 0; padding: 14px 16px; }
.offer-airline {
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-foreground); margin-bottom: 10px;
}
.slice-row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.carrier-badge {
  width: 48px; height: 48px; border-radius: 12px; background: var(--muted);
  border: 1px solid var(--border); display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-display); font-weight: 700; font-size: 13px; color: var(--primary);
  box-shadow: 0 4px 6px -1px rgba(0,0,0,.08);
}
.slice-times { flex: 1; display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; gap: 8px; align-items: center; min-width: 0; }
.slice-times .time { font-family: var(--font-display); font-size: 19px; font-weight: 700; }
.slice-times .code { color: var(--muted-foreground); font-size: 12px; }
.slice-times .right { text-align: right; }
.slice-mid { text-align: center; color: var(--muted-foreground); font-size: 12px; min-width: 0; overflow-wrap: break-word; }
.slice-mid .rail { position: relative; height: 1px; background: var(--border); margin: 5px 0; }
.slice-mid .rail i {
  position: absolute; top: -3.5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%);
}
.offer-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.offer-meta .total { font-size: 12px; color: var(--muted-foreground); }
.toggle-details { background: none; border: 0; color: var(--primary); font-weight: 500; font-size: 12.5px; cursor: pointer; font-family: var(--font); padding: 0; }
.toggle-details:hover { text-decoration: underline; text-underline-offset: 4px; }
.offer-detail { background: var(--muted); border-radius: 10px; padding: 12px 13px; margin-top: 10px; font-size: 12.5px; }
.offer-detail .slice-label { font-weight: 500; margin-bottom: 6px; color: var(--foreground); }
.offer-detail p { margin: 3px 0; color: var(--foreground); }
.offer-detail .sub { color: var(--muted-foreground); }
.offer-detail .layover { color: oklch(60% .13 75); font-weight: 500; }

.offer-buy {
  border-left: 1px solid var(--border); background: color-mix(in oklab, var(--secondary) 50%, transparent);
  padding: 14px; display: flex; flex-direction: column; gap: 5px; align-items: stretch;
}
@media (max-width: 768px) { .offer-buy { border-left: 0; border-top: 1px solid var(--border); } }
.offer-buy .kicker { color: var(--primary); font-weight: 500; }
.offer-price { font-family: var(--font-display); font-size: 21px; font-weight: 800; color: var(--foreground); }
.offer-price-sub { font-size: 12px; color: var(--muted-foreground); margin-bottom: 6px; }
.offer-buy .btn { height: 40px; font-size: 13.5px; }
.gate-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.gate-row button { background: none; border: 0; padding: 0; cursor: pointer; font-family: var(--font); color: var(--foreground); font-size: 13px; }
.gate-row button:hover { text-decoration: underline; text-underline-offset: 3px; }
.gate-row .price { font-weight: 500; color: var(--foreground); }
.show-more { background: none; border: 0; color: var(--primary); font-size: 12px; font-weight: 500; cursor: pointer; text-align: left; padding: 2px 0; font-family: var(--font); }
.show-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Fare calendar popover (OneTwoTrip-style) ─────── */
.fare-cal {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 60;
  background: var(--popover); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(10,30,50,.22);
  width: min(660px, calc(100vw - 32px));
}
@media (max-width: 700px) { .fare-cal { left: 50%; transform: translateX(-50%); } }
.fare-cal-inner { display: flex; overflow: hidden; border-radius: 12px; }

/* month sidebar */
.fare-cal-months {
  width: 132px; flex-shrink: 0; border-right: 1px solid var(--border);
  background: color-mix(in oklab, var(--muted) 55%, transparent);
  max-height: 460px; overflow-y: auto; padding: 6px;
}
.fc-month {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  padding: 7px 10px; border-radius: 8px; cursor: pointer; font-family: var(--font);
  font-size: 12.5px; color: var(--foreground); white-space: nowrap;
}
.fc-month:hover { background: var(--muted); }
.fc-month.active { background: var(--secondary); font-weight: 600; }
@media (max-width: 520px) { .fare-cal-months { display: none; } }

/* grids */
.fare-cal-grids { flex: 1; min-width: 0; padding: 12px 14px 10px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.cal-range { font-family: var(--font-display); font-size: 13.5px; }
.cal-nav {
  width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border); cursor: pointer;
  background: var(--card); color: var(--primary); font-size: 19px; line-height: 1;
}
.cal-nav:hover { background: var(--muted); }
.cal-month { margin-bottom: 10px; }
.cal-month-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; margin: 2px 0 6px; }
.cal-dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 3px; }
.cal-dow span { text-align: center; font-size: 10.5px; font-weight: 500; color: var(--muted-foreground); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

/* day cell: date top-left, fare beneath */
.cal-cell {
  min-height: 46px; border: 0; border-radius: 9px; background: none; cursor: pointer;
  font-family: var(--font); display: flex; flex-direction: column; align-items: flex-start;
  justify-content: flex-start; padding: 4px 5px; min-width: 0; gap: 2px;
  transition: background .1s;
}
.cal-cell.pad { pointer-events: none; }
.cal-cell:hover:not(:disabled) { background: var(--muted); }
.cal-cell:disabled { opacity: .32; cursor: not-allowed; }
.cal-day .cd { font-size: 12.5px; color: var(--foreground); line-height: 1; }
.cal-day.today .cd { font-weight: 700; color: var(--primary); }
.cal-day.sel { background: var(--primary); border-radius: 9px; }
.cal-day.sel .cd { color: var(--primary-foreground); font-weight: 700; }
.cal-day.sel .cf { color: color-mix(in oklab, var(--primary-foreground) 88%, transparent); }

/* fare tiers under the date */
.cal-day .cf { font-size: 9.5px; line-height: 1; font-weight: 600; }
.cal-day .cf.none { visibility: hidden; } /* keep cell height uniform */
.cf.tier-cheapest { color: oklch(58% .16 150); border-bottom: 1.5px solid oklch(58% .16 150); padding-bottom: 1px; }
.cf.tier-mid { color: oklch(55% .11 190); }
.cf.tier-high { color: var(--muted-foreground); }

/* legend + note */
.cal-legend { display: flex; gap: 14px; justify-content: center; margin-top: 4px; }
.cal-legend .lg { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; color: var(--muted-foreground); }
.cal-legend .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.cal-legend .dot.tier-cheapest { background: oklch(58% .16 150); }
.cal-legend .dot.tier-mid { background: oklch(55% .11 190); }
.cal-legend .dot.tier-high { background: var(--muted-foreground); }
.cal-note { font-size: 10.5px; color: var(--muted-foreground); text-align: center; margin-top: 6px; line-height: 1.4; }

/* ── Locate button (origin auto-detect) ───────────── */
.field > label { display: flex !important; align-items: center; gap: 6px; }
.locate-btn {
  border: 0; background: none; cursor: pointer; font-size: 13px; line-height: 1;
  padding: 2px 4px; border-radius: 6px; opacity: .85;
}
.locate-btn:hover { opacity: 1; background: var(--muted); }
.locate-btn:disabled { opacity: .4; cursor: wait; }

/* ── IATA airport directory popup ─────────────────── */
.dir-modal { width: min(680px, 100%); max-height: min(680px, calc(100svh - 40px)); display: flex; flex-direction: column; padding-bottom: 14px; }
.dir-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 10px; }
.dir-tab {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border);
  background: var(--card); border-radius: 999px; padding: 6px 12px; cursor: pointer;
  font-family: var(--font); font-size: 12.5px; font-weight: 500; color: var(--foreground);
  transition: all .12s;
}
.dir-tab:hover { border-color: var(--primary); }
.dir-tab.active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.dir-tab .dt-icon { font-size: 13px; }
.dir-tab .dt-count {
  font-size: 10px; background: color-mix(in oklab, var(--primary-foreground) 18%, transparent);
  border-radius: 999px; padding: 1px 7px; color: var(--primary-foreground);
}
.dir-tab:not(.active) .dt-count { background: var(--muted); color: var(--muted-foreground); }

/* featured (Melanesia / South Pacific) groups lead and glow */
.dir-sp-badge {
  display: inline-block; vertical-align: middle; margin-left: 8px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-foreground); background: var(--accent);
  border-radius: 999px; padding: 3px 10px;
}
.dir-tab.featured { border-color: color-mix(in oklab, var(--accent) 60%, var(--border)); }
.dir-tab.featured .dt-star { color: var(--accent-foreground); font-size: 10px; margin-left: 2px; }
.dir-tab.featured:not(.active) { background: color-mix(in oklab, var(--accent) 10%, var(--card)); }
.dir-tab.featured:not(.active) .dt-star { color: var(--sun-deep); }
.dir-tab.featured:not(.active) .dt-count {
  background: color-mix(in oklab, var(--accent) 25%, var(--card));
  color: var(--accent-foreground);
}
.dir-group.featured .dir-group-head { color: var(--primary); }
.dir-group.featured .dir-group-head .dgh-star {
  font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-foreground); background: var(--accent);
  border-radius: 999px; padding: 2px 8px; margin-left: 6px; vertical-align: middle;
}
.dir-group.featured .dir-list {
  background: color-mix(in oklab, var(--accent) 4%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--border));
  border-radius: 12px; padding: 6px;
}
.dir-airport.hub { border-color: color-mix(in oklab, var(--primary) 40%, var(--border)); }
.dir-airport.hub .da-city { color: var(--primary); }

.dir-filter { padding: 0 24px; margin-bottom: 10px; }
.dir-filter input {
  width: 100%; height: 38px; border: 1.5px solid var(--input); border-radius: 10px;
  padding: 0 12px; font-size: 13.5px; background: var(--card);
}
.dir-filter input:focus { outline: 2px solid var(--ring); outline-offset: -1px; }

.dir-body { flex: 1; min-height: 0; overflow-y: auto; padding: 0 24px; }
.dir-group-head {
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  margin: 6px 0 8px; color: var(--foreground);
}
.dir-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px; margin-bottom: 14px; }
.dir-airport {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 10px; cursor: pointer; font-family: var(--font);
  transition: border-color .12s, background .12s; min-width: 0;
}
.dir-airport:hover { border-color: var(--primary); background: color-mix(in oklab, var(--primary) 4%, var(--card)); }
.da-main { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-city { font-size: 13px; font-weight: 600; color: var(--foreground); }
.da-name { font-size: 11.5px; color: var(--muted-foreground); }
.da-meta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.da-country { font-size: 10.5px; color: var(--muted-foreground); max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.da-code {
  font-family: var(--font-display); font-weight: 700; font-size: 13px;
  color: var(--accent-foreground); background: var(--accent);
  border-radius: 7px; padding: 2px 8px; letter-spacing: .04em;
}

/* ── Booking / confirmation ───────────────────────── */
.book-summary { margin-bottom: 4px; }
.book-summary .route { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin: 2px 0; }
.book-summary .meta { font-size: 13px; color: var(--muted-foreground); }
.methods { display: grid; gap: 8px; }
.method {
  display: flex; align-items: center; gap: 13px; text-align: left;
  background: var(--card); border: 1.5px solid var(--input); border-radius: 13px;
  padding: 13px; cursor: pointer; font-family: var(--font);
  transition: border-color .12s, background .12s;
}
.method:hover { border-color: var(--primary); }
.method.selected { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, transparent); }
.method .m-icon { font-size: 22px; }
.method .m-name { font-weight: 700; font-size: 15px; }
.method .m-hint { font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.method .radio { margin-left: auto; width: 21px; height: 21px; border-radius: 50%; border: 2px solid var(--input); flex-shrink: 0; display: grid; place-items: center; }
.method.selected .radio { border-color: var(--accent); }
.method.selected .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.total-row { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 12px; }
.total-row .label { font-weight: 500; font-size: 14.5px; }
.total-row .amount { font-family: var(--font-display); font-size: 26px; font-weight: 800; }
.fine-print { font-size: 11.5px; color: var(--muted-foreground); text-align: center; margin-top: 12px; line-height: 1.5; }
.form-error { color: var(--destructive); font-weight: 500; font-size: 13.5px; margin: 8px 0; }

.confirm-hero { text-align: center; margin: 22px 0 18px; }
.confirm-hero .tick {
  width: 62px; height: 62px; line-height: 62px; margin: 0 auto 10px; border-radius: 50%;
  background: oklch(55% .14 150); color: #fff; font-size: 30px; font-weight: 700;
}
.confirm-hero h1 { margin: 0 0 4px; font-size: 26px; }
.confirm-hero p { margin: 0; color: var(--muted-foreground); }

.ref-card { text-align: left; }
.ref-card .ref {
  font-family: var(--font-display); font-size: 28px; font-weight: 700; letter-spacing: .1em;
  color: var(--foreground); margin: 2px 0 4px; word-break: break-all;
}
.copy-btn { margin-left: auto; flex-shrink: 0; }

.itinerary-slice { background: var(--muted); border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px; margin-bottom: 10px; }
.itinerary-slice .head { font-weight: 500; font-size: 13px; margin-bottom: 6px; }
.itinerary-slice p { margin: 3px 0; font-size: 13px; }
.itinerary-slice .sub { color: var(--muted-foreground); font-size: 12px; }

/* ── Airline logos & partner icons on results ─────── */
.airline-logo {
  display: inline-grid; place-items: center; flex-shrink: 0;
  border-radius: 10px; background: var(--card); border: 1px solid var(--line, var(--border));
  overflow: hidden;
}
.airline-logo img {
  width: 100%; height: 100%; object-fit: contain; display: block;
  image-rendering: -webkit-optimize-contrast;
}
/* carrier-code tile when the CDN has no logo */
.al-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  color: var(--primary); background: var(--muted);
}

.slice-row .airline-logo { width: 52px; height: 52px; margin-right: 12px; }
.offer-airline { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.offer-airline .airline-logo { border: 0; border-radius: 7px; }
.offer-airline span:last-child {
  font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted-foreground);
}

/* partner favicon chips */
.gate-icon {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  border-radius: 5px; overflow: hidden; flex-shrink: 0;
  background: var(--muted);
}
.gate-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gi-fallback {
  display: grid; place-items: center; width: 100%; height: 100%;
  font-size: 9px; font-weight: 800; color: var(--primary-foreground); background: var(--primary);
  font-family: var(--font-display); letter-spacing: .02em;
}
.gate-row a { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.gate-row .gate-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Book Now with logo prefix */
.book-btn img {
  width: 18px; height: 18px; border-radius: 5px; background: #fff;
  padding: 1.5px; object-fit: contain; display: block; flex-shrink: 0;
}

/* ── Booking stepper & pre-payment extras ─────────── */
.bk-stepper { display: flex; gap: 4px; margin-bottom: 14px; flex-wrap: wrap; }
.bk-step {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  font-size: 12.5px; font-weight: 500; color: var(--muted-foreground);
}
.bk-step .bs-num {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center;
  background: var(--muted); color: var(--muted-foreground); font-size: 11px; font-weight: 700;
}
.bk-step.current { border-color: var(--primary); color: var(--primary); background: color-mix(in oklab, var(--primary) 5%, var(--card)); }
.bk-step.current .bs-num { background: var(--primary); color: var(--primary-foreground); }
.bk-step.done { color: var(--foreground); }
.bk-step.done .bs-num { background: oklch(55% .14 150); color: #fff; }

/* seat map */
.seatmap { display: flex; gap: 5px; justify-content: center; padding: 14px; background: var(--muted); border-radius: 12px; overflow-x: auto; }
.seat-col { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.sc-letter { font-size: 10.5px; font-weight: 700; color: var(--muted-foreground); }
.seat {
  width: 24px; height: 22px; border-radius: 5px 5px 7px 7px;
  background: var(--card); border: 1.5px solid var(--border);
}
.seat.window { border-color: color-mix(in oklab, var(--sky-light, var(--primary)) 45%, var(--border)); }
.seat.premium { background: color-mix(in oklab, var(--accent) 30%, var(--card)); border-color: var(--accent); }
.seat-aisle { width: 16px; }
.seat-legend { display: flex; gap: 14px; justify-content: center; margin: 10px 0 4px; font-size: 11px; color: var(--muted-foreground); }
.seat-legend span { display: inline-flex; align-items: center; gap: 5px; }
.sl { width: 12px; height: 11px; border-radius: 3px; display: inline-block; border: 1.5px solid var(--border); background: var(--card); }
.sl.premium { background: color-mix(in oklab, var(--accent) 30%, var(--card)); border-color: var(--accent); }
.sl.window { border-color: color-mix(in oklab, var(--sky-light, var(--primary)) 45%, var(--border)); }

/* extras radio cards */
.extras-list { display: grid; gap: 7px; }
.extra-opt {
  display: flex; align-items: center; gap: 11px; text-align: left; width: 100%;
  background: var(--card); border: 1.5px solid var(--input); border-radius: 12px;
  padding: 11px 13px; cursor: pointer; font-family: var(--font);
  transition: border-color .12s, background .12s;
}
.extra-opt:hover { border-color: var(--primary); }
.extra-opt.selected { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 5%, transparent); }
.eo-radio {
  width: 19px; height: 19px; border-radius: 50%; border: 2px solid var(--input);
  flex-shrink: 0; display: grid; place-items: center;
}
.extra-opt.selected .eo-radio { border-color: var(--accent); }
.extra-opt.selected .eo-radio::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.eo-main { min-width: 0; flex: 1; }
.eo-label { font-size: 14px; font-weight: 600; color: var(--foreground); }
.eo-desc { display: block; font-size: 11.5px; color: var(--muted-foreground); margin-top: 1px; }
.eo-price { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--foreground); flex-shrink: 0; }
.eo-price small { display: block; font-size: 9.5px; font-weight: 500; color: var(--muted-foreground); text-align: right; }

/* live price bar */
.bk-pricebar {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; margin-top: 16px;
}
.pb-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-foreground); padding: 2.5px 0; }
.pb-total {
  display: flex; justify-content: space-between; margin-top: 8px; padding-top: 9px;
  border-top: 1px solid var(--border); font-family: var(--font-display);
  font-weight: 800; font-size: 17px; color: var(--foreground);
}
.bk-nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* ── My bookings ──────────────────────────────────── */
.booking-card { margin-bottom: 12px; }
.booking-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.booking-top .route { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.booking-top .date { font-size: 12.5px; color: var(--muted-foreground); margin-top: 2px; }
.ref-row {
  display: flex; align-items: center; gap: 10px; background: var(--muted);
  border-radius: 9px; padding: 9px 11px; margin-bottom: 10px; flex-wrap: wrap;
}
.ref-row .kicker { margin: 0; }
.ref-row .val { font-family: var(--font-display); font-weight: 700; letter-spacing: .1em; font-size: 15px; }
.booking-price { font-family: var(--font-display); font-size: 21px; font-weight: 800; }
.booking-airline { font-size: 12.5px; color: var(--muted-foreground); }
.booking-pax { font-size: 13px; margin-top: 10px; }
.booking-contact { font-size: 12.5px; color: var(--muted-foreground); margin-top: 3px; overflow-wrap: break-word; }

/* ── Settings ─────────────────────────────────────── */
.settings-links { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 14px; margin-bottom: 6px; }
.settings-links button, .settings-links a.settings-link {
  text-decoration: none;
  background: none; border: 0; padding: 8px 12px; border-radius: 10px; cursor: pointer;
  color: var(--foreground); font-family: var(--font); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
}
.settings-links button:hover, .settings-links a.settings-link:hover { background: var(--secondary); }
.settings-links button.active { background: var(--secondary); }
.currency-grid { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Info pages (about / contact / faq) ───────────── */
.prose-page { max-width: 48rem; }
.prose-page h2 { font-size: 19px; margin: 26px 0 8px; letter-spacing: -.01em; }
.prose-page p { color: var(--muted-foreground); line-height: 1.625; margin: 0 0 10px; }
.prose-page p strong { color: var(--foreground); }
.legal-date { font-size: 13px; }
.legal-links { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--border); }
.contact-block {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px);
  padding: 16px; margin-bottom: 12px;
}
.contact-block h3 { font-size: 16px; margin: 0 0 6px; }
.contact-block p { color: var(--muted-foreground); font-size: 14px; margin: 0 0 8px; line-height: 1.6; }
.mailto-btn { display: inline-flex; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: 0; padding: 14px 2px; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--foreground);
}
.faq-q .chev { transition: transform .2s; color: var(--muted-foreground); flex-shrink: 0; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 2px 14px; color: var(--muted-foreground); font-size: 14px; line-height: 1.625; }
.faq-item.open .faq-a { display: block; }

/* ── Landing (marketing) extras ───────────────────── */
.landing-hero {
  border-radius: 22px; overflow: hidden; color: #fff; text-align: center; position: relative;
  padding: 64px 22px; margin-bottom: 26px;
  background: radial-gradient(ellipse at 80% 0%, var(--sun), transparent 55%),
              linear-gradient(160deg, var(--sky-deep), var(--sky-mid));
}
.landing-hero .kicker { color: var(--sun); }
.landing-hero h1 { margin: 10px auto 12px; max-width: 620px; font-size: clamp(28px, 6vw, 44px); line-height: 1.08; letter-spacing: -.025em; }
.landing-hero p { margin: 0 auto 24px; max-width: 520px; color: color-mix(in oklab, var(--primary-foreground) 85%, transparent); font-size: 15.5px; line-height: 1.55; }
.hero-cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: 10px; background: #fff; color: var(--foreground);
  border-radius: 13px; padding: 10px 18px; font-size: 14px; font-weight: 700; cursor: pointer;
  border: 0; font-family: var(--font); box-shadow: 0 10px 26px rgba(10,30,50,.3); transition: transform .1s;
  text-decoration: none;
}
.store-btn:hover { transform: translateY(-2px); }
.store-btn .s-icon { font-size: 22px; }
.store-btn small { display: block; font-weight: 400; font-size: 10.5px; color: var(--muted-foreground); text-align: left; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.feature .f-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--muted);
  display: grid; place-items: center; font-size: 21px; margin-bottom: 11px;
}
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted-foreground); font-size: 13.5px; line-height: 1.55; }

.region-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 12px; }
.region {
  border-radius: 16px; padding: 20px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(140deg, var(--sky-mid), var(--sky-deep));
}
.region h3 { margin: 0 0 6px; font-size: 16.5px; }
.region p { margin: 0; font-size: 13px; line-height: 1.5; color: color-mix(in oklab, var(--primary-foreground) 85%, transparent); }
.region .r-icon { font-size: 24px; margin-bottom: 7px; display: block; }

/* ── Modal base (notify popup + airport directory) ── */
.modal-backdrop {
  position: fixed; inset: 0; background: color-mix(in oklab, var(--sky-deep) 85%, transparent); z-index: 200;
  display: grid; place-items: center; padding: 20px; animation: fade .18s ease;
  overflow: hidden;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  background: var(--card); border-radius: 18px; padding: 24px; width: min(420px, 100%); position: relative;
  box-shadow: 0 24px 60px rgba(10,30,50,.4); animation: pop .2s ease;
}
@keyframes pop { from { transform: scale(.94); opacity: 0; } }
.modal h3 { margin: 0 0 6px; font-size: 19px; }
.modal .m-sub { color: var(--muted-foreground); font-size: 13.5px; margin: 0 0 14px; line-height: 1.5; }
.modal .close-x {
  position: absolute; top: 12px; right: 14px; border: 0; background: none;
  font-size: 19px; cursor: pointer; color: var(--muted-foreground);
}
.success-note { text-align: center; padding: 8px 0; }
.success-note .big { font-size: 38px; }
.success-note p { color: var(--muted-foreground); margin: 8px 0 0; }

/* utility: hide elements toggled by popups (pax counter, fare calendar,
   autocomplete lists, directory groups) */
.hidden { display: none !important; }

/* ── JetSet additions (cloned site uses <a> route tiles, <div> badge rows) ── */
.popular-routes a {
  display: block; text-align: left; background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 11px 13px; cursor: pointer; font-family: var(--font);
  transition: background .15s, border-color .15s;
}
.popular-routes a:hover { border-color: var(--primary); }
.booking-card {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  flex-wrap: wrap; padding: 14px 16px;
}
.counter-row { padding: 10px 0; }
.store-btn { cursor: pointer; }
.offer-detail p.sub, .offer-detail .sub { color: var(--muted-foreground); font-size: 13px; margin: 2px 0 10px; }
.offer-detail p { margin: 6px 0 0; font-size: 14px; }

/* ── Hero city picker (rotating top banner) ───────────────────── */
.hero-caption {
  position: absolute; left: 20px; bottom: 64px; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  text-shadow: 0 2px 14px rgba(4,16,31,.65);
  pointer-events: none;
}
.hero-caption strong { font-family: var(--font-display); font-size: clamp(20px, 3vw, 30px); color: #fff; font-weight: 700; letter-spacing: .01em; }
.hero-caption span { font-size: 12.5px; color: rgba(255,255,255,.85); }

.hero-picker {
  position: absolute; right: 16px; bottom: 62px; z-index: 3;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end;
  max-width: min(66%, 620px);
}
.hero-dot {
  height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.35); background: rgba(4,16,31,.38);
  color: rgba(255,255,255,.88); font-size: 12.5px; font-weight: 600;
  font-family: var(--font); backdrop-filter: blur(6px);
  transition: background .15s, border-color .15s, color .15s;
}
.hero-dot:hover { border-color: #fff; background: rgba(4,16,31,.55); }
.hero-dot.active { background: #fff; color: var(--foreground); border-color: #fff; }
@media (max-width: 720px) {
  .hero-caption { bottom: 56px; left: 14px; }
  .hero-picker { left: 14px; right: 14px; justify-content: flex-start; max-width: none; bottom: 120px; }
}

/* ── Origin / Destination directory links: two columns, one row ── */
.dir-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 2px; }
.dir-links .btn { width: 100%; height: auto; min-height: 36px; padding: 6px 8px; white-space: normal; line-height: 1.25; }

/* ── Results: Book direct + partner comparison ───────────── */
.direct-group { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 18px; }
.direct-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.direct-head h2 { margin: 0; font-size: 17px; letter-spacing: -.01em; }
.direct-head p { margin: 2px 0 0; font-size: 12.5px; }
.direct-secure { font-size: 12px; }
.direct-row {
  display: grid; grid-template-columns: minmax(0, 1.3fr) auto minmax(70px, 1fr) auto auto; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-top: 8px; background: var(--background);
}
.direct-row small { display: block; color: var(--muted-foreground); font-size: 11.5px; }
.dr-air { display: flex; align-items: center; gap: 9px; min-width: 0; }
.dr-air strong { font-size: 13px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-time strong { font-family: var(--font-display); font-size: 19px; }
.dr-time.right { text-align: right; }
.dr-mid { text-align: center; font-size: 11.5px; color: var(--muted-foreground); }
.dr-mid .rail { height: 1px; background: var(--border); margin: 4px 0; }
.dr-direct { color: oklch(52% .14 150); font-weight: 600; }
.dr-buy { text-align: right; display: grid; justify-items: end; gap: 3px; padding-left: 6px; }
.dr-cabin { font-size: 10.5px; border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; color: var(--muted-foreground); }
.dr-buy .btn { height: 34px; }
@media (max-width: 640px) {
  .direct-row { grid-template-columns: auto 1fr auto; row-gap: 10px; }
  .dr-air { grid-column: 1 / -1; }
  .dr-buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding-left: 0; }
}
.group-divider { display: flex; align-items: center; gap: 12px; margin: 6px 0 14px; color: var(--muted-foreground); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.group-divider::before, .group-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.partner-buy { background: var(--secondary); align-items: stretch; text-align: left; gap: 6px; min-width: 210px; }
.partner-bestfare { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 10px 0 4px; padding: 12px 16px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--sun) 55%, transparent); background: color-mix(in oklab, var(--sun) 12%, #fff); color: var(--foreground); text-decoration: none; }
.partner-bestfare .pb-label { font-size: 13px; font-weight: 600; }
.partner-bestfare strong { font-size: 22px; font-weight: 800; }
.partner-bestfare .pb-meta { font-size: 13px; }
.partner-bestfare .pb-note { flex-basis: 100%; font-size: 11.5px; color: var(--muted-foreground); }
.partner-fare { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--muted-foreground); }
.partner-fare strong { font-size: 20px; font-weight: 800; color: var(--foreground); }
.partner-buy .est { font-size: 11px; font-weight: 500; opacity: .8; }
.partner-fare-note { margin-top: 2px; line-height: 1.35; font-size: 11px; color: var(--muted-foreground); margin-bottom: 2px; }
.partner-buy .partner-best { display: flex; justify-content: space-between; align-items: center; gap: 10px; height: auto; min-height: 44px; padding: 8px 12px; text-decoration: none; }
.partner-best strong { font-size: 16px; }
.partner-alt { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--foreground); text-decoration: none; padding: 4px 4px; border-radius: 6px; }
.partner-alt.hidden { display: none; }
.more-offers { background: none; border: 0; padding: 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: underline; cursor: pointer; }
.partner-alt:hover { background: var(--card); }
.partner-alt strong { font-weight: 600; }
.results-note { text-align: center; font-size: 12px; margin: 14px 0 0; }

/* Group title band — same navy plate and type as the site header/footer. */
.group-band {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--sky-deep); color: #fff; border-radius: 12px; border-left: 5px solid var(--sun);
  padding: 13px 16px; margin: 0 0 12px;
}
.group-band h2 { margin: 0; font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.01em; color: #fff; }
.group-band p { margin: 3px 0 0; font-size: 12.5px; color: color-mix(in oklab, #fff 78%, transparent); }
.group-band .band-note { font-size: 12px; font-weight: 500; color: var(--sun); }
#partner-divider { margin-top: 22px; }
.direct-group { background: transparent; border: 0; padding: 0; }
.direct-row { background: var(--card); }

/* Airline logo tiles and partner-site icons */
.airline-logo svg { display: block; }
.dr-air .airline-logo, .slice-row .airline-logo { border-radius: 12px; box-shadow: 0 1px 3px color-mix(in oklab, var(--foreground) 10%, transparent); }
.pb-name { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.partner-ico { width: 18px; height: 18px; border-radius: 50%; background: #fff; flex-shrink: 0; }
.partner-buy .partner-best { flex-direction: column; justify-content: center; gap: 1px; text-align: center; }
.partner-best .pb-name { font-size: 12.5px; white-space: nowrap; }
.partner-best strong { font-size: 19px; line-height: 1.15; }

/* Menu bar sits at the very top, above the hero image. */
.header-bar { margin-top: 0; }
.header-inner { padding: 8px 1rem; }
.hero-caption { bottom: 16px; }
.hero-picker { bottom: 16px; }
@media (max-width: 720px) {
  .hero-caption { bottom: 12px; }
  .hero-picker { bottom: 64px; }
}

/* Settings icon in the top menu + settings lists */
.nav a.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; padding: 0; margin-left: 6px; border: 1px solid color-mix(in oklab, var(--primary-foreground) 35%, transparent); color: #fff; }
.nav a[hidden] { display: none; }
.settings-list { padding: 4px 14px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; padding: 6px 0; font-size: 15px; font-weight: 500; color: var(--foreground); text-decoration: none; cursor: pointer; }
button.settings-row { width: 100%; border: 0; background: none; font-family: inherit; text-align: left; }
.settings-row + .settings-row { border-top: 1px solid var(--border); }
button.settings-row:hover { color: var(--primary); }
.settings-row .set-val { display: inline-flex; align-items: center; gap: 8px; color: var(--muted-foreground); font-weight: 400; font-size: 14px; text-align: right; }
.choice-modal { max-height: min(600px, calc(100svh - 40px)); display: flex; flex-direction: column; }
.choice-list { overflow-y: auto; margin: 0 -8px; }
.choice { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 46px; padding: 8px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; color: var(--foreground); text-align: left; cursor: pointer; }
.choice:hover { background: var(--secondary); }
.choice.on { font-weight: 600; }
.choice small { color: var(--muted-foreground); font-weight: 400; margin-left: 6px; }
.choice .tick { color: var(--primary); font-weight: 700; }
.settings-row .chev { color: var(--muted-foreground); font-size: 20px; }
.settings-row .muted { font-weight: 400; font-size: 13px; }
a.settings-row:hover { color: var(--primary); }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 999px; background: var(--input); position: relative; cursor: pointer; flex-shrink: 0; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch:checked { background: var(--primary); }
.switch:checked::after { transform: translateX(18px); }
.switch:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

/* Hotels / Cars partner offers */
#stay-form .place-wrap { margin-bottom: 12px; }
.stay-offer { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 13px 16px; margin-top: 8px; }
.stay-offer small { display: block; color: var(--muted-foreground); font-size: 12.5px; margin-top: 2px; }
.stay-best { font-size: 10.5px; font-weight: 600; background: var(--secondary); color: var(--secondary-foreground); border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.stay-price { text-align: right; }
.stay-price .offer-price span { font-size: 12px; font-weight: 500; color: var(--muted-foreground); }
@media (max-width: 560px) { .stay-offer { grid-template-columns: minmax(0, 1fr) auto; } .stay-offer .btn { grid-column: 1 / -1; } }
/* Phone widths: keep the Settings icon in the top-right corner beside the logo. */
.header-inner { position: relative; }
@media (max-width: 720px) { .nav a.nav-icon { position: absolute; top: 8px; right: 1rem; margin: 0; } }

/* Settings: save / cancel bar, kept in view at the bottom of the screen */
.settings-actions { position: sticky; bottom: 12px; z-index: 20; display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 12px 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 8px 24px rgba(10,30,50,.14); }
.settings-actions.dirty { border-color: var(--primary); }
.settings-actions .sa-note { margin-right: auto; font-size: 13.5px; color: var(--muted-foreground); }
.settings-actions.dirty .sa-note { color: var(--foreground); font-weight: 600; }
@media (max-width: 560px) { .settings-actions .sa-note { flex-basis: 100%; } .settings-actions .btn { flex: 1; } }

.partner-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.partner-links .partner-alt { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }

/* ── Results sidebar filters ───────────────────────── */
.results-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 16px; align-items: start; }
.results-layout.no-side { grid-template-columns: minmax(0, 1fr); }
.results-layout.no-side .side-filters { display: none; }
.results-main { min-width: 0; }
.side-filters {
  background: var(--card); border: 1px solid var(--border); border-radius: calc(var(--radius) + 8px);
  position: sticky; top: 12px; max-height: calc(100svh - 24px); overflow-y: auto;
}
.side-filters summary {
  list-style: none; cursor: pointer; display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 13px 15px; background: var(--sky-deep); color: #fff; border-left: 4px solid var(--sun);
  border-radius: calc(var(--radius) + 7px) calc(var(--radius) + 7px) 0 0;
}
.side-filters details:not([open]) summary { border-radius: calc(var(--radius) + 7px); }
.side-filters summary::-webkit-details-marker { display: none; }
.sf-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.sf-count { font-size: 12px; opacity: .85; }
.sf-body { padding: 4px 15px 14px; position: relative; }
.sf-reset {
  position: absolute; top: 12px; right: 15px; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--primary); font: 500 12.5px var(--font);
}
.sf-reset:hover { text-decoration: underline; text-underline-offset: 4px; }
.sf-group { padding: 12px 0; border-bottom: 1px solid var(--border); }
.sf-group:last-child { border-bottom: 0; padding-bottom: 0; }
.sf-group h3 { margin: 0 0 8px; font-size: 13.5px; font-weight: 700; }
.sf-row { display: flex; align-items: center; gap: 7px; padding: 4px 0; font-size: 13px; cursor: pointer; }
.sf-row input { width: 16px; height: 16px; margin: 0; accent-color: var(--primary); flex-shrink: 0; }
.sf-label { display: flex; align-items: center; gap: 6px; min-width: 0; }
.sf-label > span:not(.airline-logo) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-label .airline-logo { flex-shrink: 0; }
.sf-win { display: grid; }
.sf-label small { color: var(--muted-foreground); font-size: 11px; }
.sf-n { flex-shrink: 0; }
.sf-more { background: none; border: 0; padding: 4px 0 0; cursor: pointer; color: var(--primary); font: 500 12.5px var(--font); }
.sf-more:hover { text-decoration: underline; text-underline-offset: 4px; }
.sf-n { color: var(--muted-foreground); font-size: 12px; }
.sf-fare { margin-left: auto; color: var(--muted-foreground); font-size: 12px; white-space: nowrap; }
.sf-range-top { font-size: 13px; margin-bottom: 4px; }
.sf-range input { width: 100%; accent-color: var(--primary); margin: 2px 0; }
.sf-range-ends { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted-foreground); }
.empty.slim { padding: 18px 12px; }
.empty.slim h3 { font-size: 15px; }
@media (max-width: 900px) {
  .results-layout { grid-template-columns: minmax(0, 1fr); }
  .side-filters { position: static; max-height: none; }
}

/* ── Flights Information panel ─────────────────────── */
.toggle-details i { display: inline-block; font-style: normal; transition: transform .15s; }
.toggle-details.open i { transform: rotate(180deg); }
.dr-info { grid-column: 1 / -1; border-top: 1px solid var(--border); padding-top: 8px; }
.flight-info { margin-top: 10px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--card); text-align: left; }
.fi-tabs { display: flex; gap: 2px; overflow-x: auto; background: var(--muted); border-bottom: 1px solid var(--border); }
.fi-tab {
  border: 0; background: none; padding: 9px 13px; cursor: pointer; white-space: nowrap;
  font: 500 12.5px var(--font); color: var(--muted-foreground); border-bottom: 2px solid transparent;
}
.fi-tab:hover { color: var(--foreground); }
.fi-tab.active { color: var(--primary); border-bottom-color: var(--primary); background: var(--card); }
.fi-pane { padding: 6px 13px 12px; font-size: 13px; }
.fi-line { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.fi-line:last-of-type { border-bottom: 0; }
.fi-line span { color: var(--muted-foreground); }
.fi-line strong { font-weight: 500; text-align: right; }
.fi-note { margin: 6px 0 0; font-size: 12px; color: var(--muted-foreground); }
.fi-leg { padding: 8px 0; }
.fi-leg-head { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.fi-leg-head span { color: var(--muted-foreground); font-size: 12px; }
.fi-stop { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 8px; align-items: baseline; }
.fi-stop b { font-family: var(--font-display); font-size: 15px; }
.fi-fly { margin: 3px 0 3px 22px; padding: 6px 0 6px 32px; border-left: 2px dotted var(--input); color: var(--muted-foreground); font-size: 12px; }
.fi-layover { margin: 4px 0; padding: 7px 10px; border-radius: 8px; background: color-mix(in oklab, var(--sun) 22%, transparent); font-size: 12.5px; }

/* Banner city picker: plain dots; the caption beside them names the city. */
.hero-picker { gap: 2px; align-items: center; }
.hero-dot {
  width: 26px; height: 26px; padding: 0; border: 0; background: none; backdrop-filter: none;
  display: grid; place-items: center;
}
.hero-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.45); box-shadow: 0 0 0 1px rgba(4,16,31,.35);
  transition: background .15s, transform .15s;
}
.hero-dot:hover, .hero-dot.active { background: none; }
.hero-dot:hover::before { background: rgba(255,255,255,.8); }
.hero-dot.active::before { background: var(--sun); transform: scale(1.35); }
@media (max-width: 720px) {
  .hero-picker { left: auto; right: 10px; bottom: 12px; justify-content: flex-end; flex-wrap: nowrap; }
}

/* ── Home page: site title and search form overlay the hero picture ── */
.home-overlay .header-banner img { height: clamp(300px, 30vw, 380px); opacity: .62; }
.home-overlay .header-banner::after { background: linear-gradient(180deg, color-mix(in oklab, var(--sky-deep) 55%, transparent), color-mix(in oklab, var(--sky-deep) 35%, transparent) 55%, color-mix(in oklab, var(--sky-deep) 80%, transparent)); }
.home-overlay .hero-caption { top: 12px; bottom: auto; flex-direction: row; align-items: baseline; gap: 8px; }
.home-overlay .hero-caption strong { font-size: 16px; }
.home-overlay .hero-picker { top: 8px; bottom: auto; }
.home-overlay main.page { position: relative; z-index: 4; margin-top: calc(-1 * clamp(300px, 30vw, 380px) + 44px); padding-top: 0; }
.home-overlay .home-hero { margin: 0 0 14px; text-shadow: 0 2px 16px rgba(4,16,31,.7); }
.home-overlay .home-hero h1 { color: #fff; }
.home-overlay .home-hero .tagline strong { color: var(--sun); }
.home-overlay .home-hero .sub { color: rgba(255,255,255,.9); }
.home-overlay .search-form { box-shadow: 0 18px 40px -18px rgba(4,16,31,.55); }
@media (max-width: 720px) {
  .home-overlay .hero-picker { left: auto; right: 8px; top: 6px; bottom: auto; }
  .home-overlay .hero-caption { left: 14px; }
  .home-overlay .hero-caption span { display: none; }
}

/* ── Home page: statement + figures on the left, search form on the right ── */
.home-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 22px 0 0; }
.home-stats > div { min-width: 0; }
.home-stats dt { font-family: var(--font-display); font-size: 26px; font-weight: 700; color: var(--sun); line-height: 1.1; }
.home-stats dd { margin: 6px 0 0; font-size: 12.5px; color: rgba(255,255,255,.88); }
@media (min-width: 1000px) {
  .home-overlay .header-banner img { height: 470px; }
  .home-overlay main.page { margin-top: -426px; }
  .home-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 40px; align-items: center; min-height: 400px; }
  .home-split .home-hero { margin: 0; }
  .home-split .home-hero h1 { font-size: 54px; }
  .home-split .home-hero .tagline { font-size: 22px; margin-top: 14px; }
  .home-split .home-hero .sub { font-size: 16px; max-width: 34rem; }
  .home-split .search-form { padding: 18px; border-radius: 18px; }
  .home-split .search-row2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .home-split .search-row2 > :nth-child(3) { grid-column: 1 / -1; }
  .home-split .search-form .btn.submit { height: 50px; margin-top: 12px; }
  .home-split .date-pop { left: auto; right: 0; }
  .home-split { min-height: 340px; }
  /* the two airport-directory buttons sit right under the form, across the hero picture */
  .home-overlay .dir-links { margin: 14px 0 58px; gap: 16px; }
  .home-overlay .dir-links .btn { min-height: 40px; color: #fff; font-weight: 600; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); text-shadow: 0 1px 3px rgba(4,16,31,.6); box-shadow: 0 8px 22px -14px rgba(4,16,31,.6); }
  .home-overlay .dir-links .btn:hover { background: rgba(255,255,255,.28); }
}
@media (max-width: 999px) {
  .home-stats { margin: 14px 0 4px; gap: 22px; }
  .home-stats dt { font-size: 22px; }
}

/* Hero pictures shown clearly: full strength, with only a faint shade left for the white text. */
.header-banner img, .home-overlay .header-banner img { opacity: 1; }
.header-banner::after { background: linear-gradient(180deg, transparent 55%, color-mix(in oklab, var(--sky-deep) 30%, transparent)); }
.home-overlay .header-banner::after { background: linear-gradient(90deg, color-mix(in oklab, var(--sky-deep) 28%, transparent), transparent 60%); }
.home-overlay .home-hero { text-shadow: 0 1px 3px rgba(4,16,31,.75), 0 2px 18px rgba(4,16,31,.6); }
.hero-caption { text-shadow: 0 1px 3px rgba(4,16,31,.8), 0 2px 14px rgba(4,16,31,.6); }

/* ── Results page: origin airports and the date/fare strip overlay the hero picture ── */
.results-overlay .header-banner img { height: 310px; }
.results-overlay .hero-caption { top: 12px; bottom: auto; flex-direction: row; align-items: baseline; gap: 8px; }
.results-overlay .hero-caption strong { font-size: 16px; }
.results-overlay .hero-picker { top: 8px; bottom: auto; }
.results-overlay main.page { position: relative; z-index: 4; margin-top: -262px; padding-top: 0; }
.results-top { min-height: 252px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.rt-from { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.rt-label { color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 3px rgba(4,16,31,.8); margin-right: 2px; }
.rt-chip { background: rgba(255,255,255,.94); color: var(--foreground); border: 1px solid rgba(255,255,255,.6); border-radius: 999px; padding: 5px 13px; font-size: 13.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.rt-chip:hover { background: #fff; border-color: var(--sun); }
.rt-chip.active { background: var(--sun); border-color: var(--sun); color: var(--accent-foreground); font-weight: 700; }
.rt-card { margin-top: auto; background: #fff; border-radius: 16px; padding: 12px 14px 10px; box-shadow: 0 18px 40px -18px rgba(4,16,31,.55); border: 1px solid color-mix(in oklab, var(--sky-deep) 12%, transparent); min-width: 0; }
.rt-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.rt-head h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--foreground); }
.rt-arrows { display: flex; gap: 6px; }
.rt-arrows button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in oklab, var(--sky-deep) 22%, transparent); background: #fff; color: var(--foreground); font-size: 18px; line-height: 1; cursor: pointer; }
.rt-arrows button:hover { border-color: var(--sky-deep); }
.rt-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; scroll-snap-type: x proximity; }
.rt-days::-webkit-scrollbar { display: none; }
.rt-day { flex: 0 0 auto; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 12px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--sky-deep) 16%, transparent); background: #fff; text-decoration: none; color: var(--foreground); scroll-snap-align: start; }
.rt-day span { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.rt-day strong { font-size: 14px; color: oklch(62% .19 45); white-space: nowrap; }
.rt-day strong.none { color: color-mix(in oklab, var(--foreground) 45%, transparent); font-weight: 500; }
.rt-day:hover { border-color: var(--sky-deep); }
.rt-day.active { border: 2px solid var(--sky-deep); background: color-mix(in oklab, var(--sky-deep) 7%, #fff); padding: 7px 11px; }
.rt-note { margin: 8px 0 0; font-size: 12px; color: color-mix(in oklab, var(--foreground) 60%, transparent); }
@media (max-width: 720px) {
  .results-overlay .header-banner img { height: 270px; }
  .results-overlay main.page { margin-top: -224px; }
  .results-top { min-height: 214px; gap: 10px; }
  .results-overlay .hero-picker { left: auto; right: 8px; top: 6px; bottom: auto; }
  .results-overlay .hero-caption { left: 14px; }
  .results-overlay .hero-caption span { display: none; }
  .rt-from { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .rt-from::-webkit-scrollbar { display: none; }
  .rt-label { flex: 0 0 auto; }
}

/* Results top: glass card over the hero picture, airport names sitting just above it */
.results-top { justify-content: flex-end; gap: 8px; }
.rt-card { margin-top: 0; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border: 1px solid rgba(255,255,255,.38); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 18px 40px -18px rgba(4,16,31,.6); }
.rt-head h2 { color: #fff; text-shadow: 0 1px 3px rgba(4,16,31,.6); }
.rt-note { color: rgba(255,255,255,.88); text-shadow: 0 1px 2px rgba(4,16,31,.6); }
.rt-arrows button { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); color: #fff; }
.rt-arrows button:hover { background: rgba(255,255,255,.35); border-color: #fff; }
.rt-day { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.rt-day span { text-shadow: 0 1px 2px rgba(4,16,31,.55); }
.rt-day strong { color: var(--sun); text-shadow: 0 1px 2px rgba(4,16,31,.6); }
.rt-day strong.none { color: rgba(255,255,255,.65); }
.rt-day:hover { border-color: #fff; background: rgba(255,255,255,.26); }
.rt-day.active { border: 2px solid var(--sun); background: rgba(255,255,255,.3); }

/* Results top: "From" and "To" rows of nearby airports, one line each (scrolls sideways when long) */
.rt-rows { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rt-from { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; }
.rt-from::-webkit-scrollbar { display: none; }
.rt-label { flex: 0 0 44px; }
@media (max-width: 720px) {
  .results-overlay .header-banner img { height: 312px; }
  .results-overlay main.page { margin-top: -266px; }
  .results-top { min-height: 256px; }
}

/* Results top: airport names in the same glass style as the date tiles */
.rt-chip { background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.42); color: #fff; text-shadow: 0 1px 2px rgba(4,16,31,.6); -webkit-backdrop-filter: blur(12px) saturate(1.4); backdrop-filter: blur(12px) saturate(1.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.3); }
.rt-chip:hover { background: rgba(255,255,255,.28); border-color: #fff; }
.rt-chip.active { background: rgba(255,255,255,.3); border: 2px solid var(--sun); color: var(--sun); padding: 4px 12px; font-weight: 700; }

/* ══ Phones and tablets (up to 999px): bottom menu bar, search form and results first ══ */
.tabbar { display: none; }
@media (max-width: 999px) {
  .nav { display: none; }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--sky-deep); border-top: 1px solid rgba(255,255,255,.16);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    box-shadow: 0 -10px 30px -16px rgba(4,16,31,.7);
  }
  .tabbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
    min-height: 52px; border-radius: 12px; text-decoration: none;
    color: rgba(255,255,255,.72); font-size: 11px; font-weight: 600; line-height: 1.1; text-align: center;
  }
  .tabbar a[hidden] { display: none; }
  .tabbar a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .tabbar a.active { color: var(--sun); background: rgba(255,255,255,.1); }
  .shell { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .settings-actions { bottom: calc(62px + env(safe-area-inset-bottom)); }
  .header-inner { justify-content: center; }

  /* The picture is only a backdrop here: no caption or dots. */
  .home-overlay .hero-caption, .home-overlay .hero-picker,
  .results-overlay .hero-caption, .results-overlay .hero-picker { display: none; }

  /* Home: title line and the search form only. */
  .home-stats, .home-hero .sub, .home-extras { display: none; }
  .home-overlay .header-banner img { height: 240px; }
  .home-overlay main.page { margin-top: -224px; }
  .home-overlay .home-hero { margin: 0 0 12px; }
  .home-overlay .home-hero h1 { font-size: 30px; margin: 0; }
  .home-overlay .home-hero .tagline { margin: 4px 0 0; font-size: 15px; }
  .home-split .search-form { max-width: 640px; margin: 0 auto; }
  .dir-links { margin-top: 14px; }

  /* Results: airports, dates and the flights; side notes left out. */
  .results-overlay .header-banner img { height: 288px; }
  .results-overlay main.page { margin-top: -274px; }
  .results-top { min-height: 260px; }
  .results-note, .band-note { display: none; }
  .results-head h1 { font-size: 20px; }
}
@media (max-width: 720px) {
  .rt-note { display: none; }
  .results-overlay .header-banner img { height: 250px; }
  .results-overlay main.page { margin-top: -236px; }
  .results-top { min-height: 222px; margin-bottom: 14px; }
}
@media (max-width: 640px) {
  .search-row2 { gap: 8px; }
  .search-row2 > :first-child { grid-column: 1 / -1; }
  .search-form .btn.submit { height: 50px; margin-top: 12px; }
  .dir-links .btn { font-size: 12.5px; }
}
@media (min-width: 641px) and (max-width: 999px) {
  .search-row2 { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; }
  .dp-btn span { white-space: nowrap; }
}
@media (max-width: 999px) { .hero-picker { display: none; } }

/* Smartphones: the flight search form is three rows — From ⇄ To / date, passengers, cabin / Search. */
@media (max-width: 640px) {
  .search-form { padding: 12px; }
  .search-grid { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 4px; }
  .search-grid .swap-btn { justify-self: auto; width: 30px; padding: 0; }
  .search-grid .place-input input { padding: 0 8px; font-size: 13.5px; }
  .search-grid .place-input input.filled { font-size: 17px; }
  .search-row2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); gap: 6px; align-items: end; }
  .search-row2 > :first-child { grid-column: auto; }
  .search-row2 label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-row2 .dp-btn { padding: 0 6px; font-size: 12px; gap: 0; }
  .search-row2 .dp-btn > span[aria-hidden] { display: none; }
  .search-row2 .dp-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-row2 #pax-row { padding: 0 !important; height: 44px; gap: 4px; justify-content: space-between; }
  /* Only the number of passengers fits here; the word is dropped. */
  .search-row2 #pax-row .label { max-width: 1.3ch; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: 15px; flex: 0 0 auto; }
  .search-row2 #pax-row .ctrl { gap: 4px; }
  .search-row2 #pax-row button { width: 30px; height: 34px; }
  .search-row2 select { padding: 0 4px; font-size: 12.5px; min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .search-row2 #pax-row { height: 40px; }
  .search-row2 #pax-row .label { max-width: 1ch; }
  .search-row2 #pax-row button { height: 32px; }
  .search-row2 select { height: 40px; }
  #pw-to .place-list { left: auto; right: 0; }
}
@media (max-width: 640px) {
  .search-row2 #pax-row .label { max-width: none; font-size: 0; }
  .search-row2 #pax-row .label::before { content: attr(data-n); font-size: 15px; font-weight: 700; }
}

/* ── Phones and tablets: compact type and tight spacing everywhere ── */
/* ── Home sections (trust row, popular flights, routes by region, stays, planner) ── */
.trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0 26px; }
.trust-card {
  display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 16px; box-shadow: 0 1px 2px oklch(0% 0 0 / .05);
}
.trust-card svg { color: var(--sky-mid); flex: none; }
.trust-card strong { display: block; font-size: 14px; }
.trust-card span { display: block; font-size: 12.5px; color: var(--muted-foreground); }
.pill-tabs {
  display: flex; flex-wrap: wrap; gap: 4px; background: var(--muted); border-radius: 10px; padding: 6px; margin: 26px 0 0;
}
.pill-tabs button {
  border: 0; background: transparent; color: var(--muted-foreground); font: 500 13.5px var(--font);
  padding: 5px 12px; border-radius: 7px; cursor: pointer;
}
.pill-tabs button:hover { color: var(--foreground); }
.pill-tabs button.on { background: var(--card); color: var(--sky-mid); box-shadow: 0 1px 3px oklch(0% 0 0 / .12); }
.home-h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 18px 0 12px; }
.home-h2 h2 { font-family: var(--font-display); font-size: 21px; letter-spacing: -.02em; margin: 0; }
.home-h2 a, .link-btn {
  border: 0; background: none; padding: 0; cursor: pointer; font: 600 13px var(--font); color: var(--sky-mid);
}
.home-h2 a:hover, .link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.home-none { font-size: 13.5px; margin: 0; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pf-card {
  display: flex; flex-direction: column; gap: 6px; min-height: 104px; background: var(--card); color: inherit;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 16px;
  box-shadow: 0 1px 2px oklch(0% 0 0 / .05); transition: border-color .15s, box-shadow .15s;
}
a.pf-card:hover { border-color: var(--sky-mid); box-shadow: 0 4px 14px oklch(0% 0 0 / .08); }
.pf-airline { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-foreground); }
.pf-airline img { border-radius: 4px; }
.pf-route { font-family: var(--font-display); font-size: 16.5px; }
.pf-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; }
.pf-meta { font-size: 12.5px; color: var(--muted-foreground); }
.pf-price { color: var(--sun-deep, oklch(62% .17 50)); font-weight: 700; font-size: 14px; white-space: nowrap; }
.pf-price strong { font-family: var(--font-display); font-size: 18px; }
.oneway-list .pf-price strong { font-size: 14px; }
.skeleton { background: var(--muted); border-color: transparent; box-shadow: none; animation: sk-pulse 1.2s ease-in-out infinite; }
@keyframes sk-pulse { 50% { opacity: .5; } }
.hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.hub-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px;
  box-shadow: 0 1px 2px oklch(0% 0 0 / .05);
}
.hub-head { display: flex; gap: 10px; align-items: flex-start; }
.hub-flag { font-size: 22px; line-height: 1.1; }
.hub-head strong { display: block; font-family: var(--font-display); font-size: 16px; }
.hub-code { color: var(--sky-mid); }
.hub-head small { display: block; font-size: 11.5px; color: var(--muted-foreground); }
.hub-card p { font-size: 13px; color: var(--muted-foreground); margin: 8px 0 0; line-height: 1.45; }
.hr-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.hr-chip {
  display: inline-flex; align-items: center; gap: 5px; background: var(--secondary); color: var(--secondary-foreground);
  border: 1px solid color-mix(in oklab, var(--sky-mid) 18%, transparent); border-radius: 999px;
  padding: 3px 10px; font-size: 12px; font-weight: 500;
}
a.hr-chip:hover { border-color: var(--sky-mid); }
.hr-chip strong { font-weight: 700; }
.hr-chip.skeleton { width: 92px; height: 24px; }
.stay-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stay-card {
  display: flex; flex-direction: column; background: var(--card); color: inherit; overflow: hidden;
  border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 1px 2px oklch(0% 0 0 / .05);
  transition: border-color .15s, box-shadow .15s;
}
.stay-card:hover { border-color: var(--sky-mid); box-shadow: 0 4px 14px oklch(0% 0 0 / .08); }
.stay-pic { display: grid; place-items: center; height: 84px; background: var(--secondary); color: var(--sky-mid); }
.stay-body { padding: 10px 12px 12px; }
.stay-body strong { display: block; font-family: var(--font-display); font-size: 14.5px; }
.stay-body span { display: block; font-size: 12px; color: var(--muted-foreground); margin-top: 2px; }
.planner-box {
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 30px 0 6px; padding: 22px 26px;
  background: var(--secondary); border: 1px solid color-mix(in oklab, var(--sky-mid) 18%, transparent); border-radius: 14px;
}
.planner-box svg { color: var(--sun-deep, oklch(62% .17 50)); flex: none; }
.planner-box div { flex: 1; min-width: 240px; }
.planner-box strong { font-family: var(--font-display); font-size: 18px; color: var(--sky-mid); }
.planner-box p { margin: 2px 0 0; font-size: 13.5px; color: var(--muted-foreground); }
.btn.accent { background: var(--accent); color: var(--accent-foreground); border-color: transparent; }
.btn.accent:hover { filter: brightness(1.05); }
.oneway-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px 40px; }
.oneway-list a {
  display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 13.5px;
  color: var(--muted-foreground); border-bottom: 1px solid var(--border);
}
.oneway-list a:hover { color: var(--foreground); }

/* ── Footer columns ── */
.footer-cols {
  max-width: 72rem; margin: 0 auto; padding: 30px 16px 22px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 24px;
}
.footer-col h3 {
  display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #fff;
  font: 700 12px var(--font); letter-spacing: .1em; text-transform: uppercase;
}
.footer-col h3 svg { color: var(--sun); }
.footer-col a { display: block; padding: 5px 0; font-size: 13.5px; color: color-mix(in oklab, var(--primary-foreground) 78%, transparent); }
.footer-col a:hover { color: var(--sun); }
.partner-crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted-foreground); margin-bottom: 10px; }
.partner-crumbs a { color: var(--muted-foreground); }
.partner-crumbs a:hover { color: var(--foreground); }
.partner-page .page-sub { max-width: 46rem; line-height: 1.6; }
.partner-group { margin-top: 34px; }
.partner-group h2 { font-size: 21px; font-weight: 700; letter-spacing: -.015em; margin: 0; padding-left: 12px; border-left: 4px solid var(--sun); }
.partner-group-sub { color: var(--muted-foreground); font-size: 14.5px; margin: 6px 0 0; }
.partner-cards { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.partner-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--card); transition: border-color .15s, box-shadow .15s; }
.partner-card:hover { border-color: var(--sun); box-shadow: 0 6px 18px rgba(15, 23, 42, .07); }
.partner-card h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.partner-here { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: color-mix(in oklab, var(--sun) 22%, #fff); color: var(--foreground); }
.partner-card p { flex: 1; margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted-foreground); }
.partner-card a { align-self: flex-start; font-size: 13.5px; font-weight: 600; color: var(--primary); }
.partner-card a:hover { text-decoration: underline; }
.partner-note { margin: 34px 0 0; padding-top: 18px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.6; color: var(--muted-foreground); max-width: 52rem; }
.partner-note a { color: var(--primary); font-weight: 600; }
/* Payment page */
.pay-page { max-width: 46rem; }
.pay-notice { margin: 18px 0; padding: 14px 16px; border-radius: 12px; border: 1px solid color-mix(in oklab, var(--sun) 55%, transparent); background: color-mix(in oklab, var(--sun) 12%, #fff); }
.pay-notice strong { display: block; margin-bottom: 4px; }
.pay-notice p { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--foreground); }
.pay-form .card { margin-bottom: 14px; }
.pay-form h2 { font-size: 16px; font-weight: 700; margin: 4px 0 10px; }
.pay-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.pay-contact .field:first-child { grid-column: 1 / -1; }
.pay-contact .field:nth-child(2) { grid-column: span 1; }
.pay-contact .field:nth-child(3) { grid-column: span 2; }
.pay-regions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pay-region { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--secondary); color: var(--foreground); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: center; }
.pay-region small { font-weight: 500; color: var(--muted-foreground); }
.pay-region.active { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.pay-region.active small { color: inherit; opacity: .8; }
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; margin: 12px 0 16px; }
.pay-method { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); color: var(--foreground); font: inherit; text-align: left; cursor: pointer; }
.pay-method strong { font-size: 14.5px; }
.pay-method span { font-size: 12.5px; color: var(--muted-foreground); line-height: 1.4; }
.pay-method.active { border-color: var(--sun); box-shadow: 0 0 0 2px color-mix(in oklab, var(--sun) 35%, transparent); }
.pay-steps { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.6; color: var(--muted-foreground); }
.pay-bank { margin: 14px 0 0; padding: 4px 14px; border-radius: 12px; background: var(--secondary); }
.pay-bank div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; font-size: 14px; }
.pay-bank div + div { border-top: 1px solid var(--border); }
.pay-bank dt { color: var(--muted-foreground); }
.pay-bank dd { margin: 0; font-weight: 600; text-align: right; }
.pay-send { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.pay-now { margin-bottom: 10px; }
.pay-form[hidden], .pay-now[hidden], .pay-error[hidden] { display: none; }
.pay-result { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--border); background: var(--card); }
.pay-result strong { display: block; font-size: 16px; margin-bottom: 4px; }
.pay-result p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--muted-foreground); }
.pay-result.ok { border-color: #16a34a; background: color-mix(in oklab, #16a34a 9%, #fff); }
.pay-result.warn { border-color: color-mix(in oklab, var(--sun) 60%, transparent); background: color-mix(in oklab, var(--sun) 12%, #fff); }
.pay-receipt { margin-top: 8px !important; font-weight: 700; color: var(--foreground) !important; }
.pay-error { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in oklab, #dc2626 10%, #fff); color: #b91c1c; font-size: 14px; }
.pay-foot { margin: 10px 0 0; font-size: 12.5px; color: var(--muted-foreground); text-align: center; }
@media (max-width: 999px) {
  .pay-notice { margin: 10px 0; padding: 10px 12px; }
  .pay-form .card { margin-bottom: 8px; }
  .pay-form h2 { font-size: 14.5px; margin-bottom: 6px; }
  .pay-region { padding: 7px 4px; font-size: 12px; }
  .pay-methods { grid-template-columns: 1fr; gap: 6px; margin: 8px 0 10px; }
  .pay-method { padding: 9px 11px; }
  .pay-steps, .pay-bank div { font-size: 13px; }
}
@media (max-width: 560px) {
  .pay-contact { grid-template-columns: 1fr; }
  .pay-contact .field { grid-column: 1 / -1 !important; }
}
@media (max-width: 999px) {
  .partner-group { margin-top: 20px; }
  .partner-group h2 { font-size: 17px; }
  .partner-group-sub { font-size: 13px; }
  .partner-cards { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; margin-top: 10px; }
  .partner-card { padding: 11px 12px; gap: 4px; border-radius: 12px; }
  .partner-card h3 { font-size: 14px; }
  .partner-card p, .partner-card a, .partner-note { font-size: 12.5px; }
  .partner-note { margin-top: 20px; padding-top: 12px; }
}
.footer-copy { color: color-mix(in oklab, var(--primary-foreground) 65%, transparent); font-size: 12.5px; }
@media (max-width: 999px) { .footer-cols, .footer-copy { display: none; } }

@media (max-width: 999px) {
  body { font-size: 14px; line-height: 1.4; }
  main.page { padding: 10px 10px 18px; }
  .header-inner { padding: 0 10px 4px; }
  .site-logo--header { height: 34px; padding: 3px 8px; }
  .header-banner img { height: 110px; }
  .hero-caption strong { font-size: 17px; }
  .hero-caption span { font-size: 11.5px; }
  .footer-inner { padding: 8px 10px; font-size: 12.5px; gap: 8px; }
  .site-logo--footer { height: 24px; }
  .tabbar { padding: 3px 4px calc(3px + env(safe-area-inset-bottom)); }
  .tabbar a { min-height: 46px; gap: 2px; font-size: 10.5px; border-radius: 10px; }
  .tabbar a svg { width: 20px; height: 20px; }
  .shell { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
  #toast { bottom: calc(66px + env(safe-area-inset-bottom)); font-size: 12.5px; padding: 8px 12px; }
  .settings-actions { bottom: calc(54px + env(safe-area-inset-bottom)); }

  .btn { height: 40px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
  .btn.sm { height: 32px; font-size: 12.5px; padding: 0 10px; }
  .card { padding: 12px; border-radius: 12px; }
  .field { margin-bottom: 8px; }
  .field > label { margin-bottom: 2px; }
  .field input, .field select { height: 38px; padding: 0 8px; font-size: 13.5px; }
  .section-title { font-size: 11px; margin: 14px 0 6px; }
  .page-h1 { font-size: 22px; }
  .page-sub { font-size: 13.5px; margin-top: 2px; }
  .empty { padding: 22px 12px; }
  .empty .icon { font-size: 30px; }
  .empty h3 { font-size: 15px; }
  .empty p { font-size: 13px; }
  .spinner { padding: 28px 0; font-size: 13px; }

  /* Home and the Hotels / Cars forms */
  .home-hero { margin: 2px 0 8px; }
  .home-hero h1, .home-overlay .home-hero h1 { font-size: 24px; }
  .home-hero .tagline, .home-overlay .home-hero .tagline { font-size: 13.5px; margin: 2px 0 0; }
  .home-hero .sub { font-size: 13px; }
  .home-overlay .header-banner img { height: 210px; }
  .home-overlay main.page { margin-top: -200px; }
  .home-overlay .home-hero { margin: 0 0 8px; }
  .search-form { padding: 10px; border-radius: 10px; }
  .search-form .btn.submit { height: 42px; margin-top: 8px; }
  .dir-links { margin-top: 8px; gap: 6px; }
  .dir-links .btn { min-height: 32px; padding: 4px 6px; font-size: 12px; }

  /* Results: top strip */
  .results-overlay .header-banner img { height: 232px; }
  .results-overlay main.page { margin-top: -222px; }
  .results-top { min-height: 212px; gap: 6px; margin-bottom: 8px; }
  .rt-rows { gap: 5px; }
  .rt-from { gap: 5px; }
  .rt-label { font-size: 12px; }
  .rt-chip { padding: 3px 9px; font-size: 12px; }
  .rt-card { padding: 8px 10px; border-radius: 12px; }
  .rt-head { margin-bottom: 5px; }
  .rt-head h2 { font-size: 13.5px; }
  .rt-arrows button { width: 26px; height: 26px; font-size: 16px; }
  .rt-days { gap: 5px; }
  .rt-day { min-width: 76px; padding: 5px 8px; gap: 1px; border-radius: 10px; }
  .rt-day.active { padding: 4px 7px; }
  .rt-day span { font-size: 11.5px; }
  .rt-day strong { font-size: 13px; }
  .rt-note { margin-top: 5px; font-size: 11px; }

  /* Results: heading, filters and flights */
  .results-head { margin-bottom: 6px; gap: 6px; }
  .results-head h1 { font-size: 17px; }
  .results-head p { font-size: 12.5px; margin: 0; }
  .results-layout { gap: 8px; }
  .side-filters summary { padding: 8px 12px; }
  .sf-title { font-size: 14px; }
  .sf-body { padding: 2px 12px 10px; }
  .sf-group { padding: 8px 0; }
  .sf-group h3 { margin-bottom: 4px; font-size: 13px; }
  .sf-row { padding: 3px 0; font-size: 12.5px; }
  .group-band { padding: 8px 12px; margin: 8px 0 6px; border-radius: 10px; }
  .group-band h2 { font-size: 15.5px; }
  .group-band p { margin-top: 1px; font-size: 11.5px; }
  .direct-group { margin-bottom: 8px; }
  .direct-row { padding: 8px 10px; gap: 6px 8px; margin-bottom: 6px; border-radius: 10px; }
  .dr-air strong { font-size: 12.5px; }
  .dr-air .airline-logo, .slice-row .airline-logo { width: 34px; height: 34px; border-radius: 9px; }
  .dr-time strong, .slice-times .time { font-size: 16px; }
  .dr-buy .btn, .offer-buy .btn { height: 32px; font-size: 12.5px; padding: 0 10px; }
  .dr-info { padding-top: 5px; }
  .offer { margin-bottom: 8px; border-radius: 12px; }
  .offer-main { padding: 8px 10px; }
  .offer-airline { margin-bottom: 5px; }
  .slice-row { gap: 8px; margin-bottom: 6px; }
  .offer-buy { padding: 8px 10px; }
  .offer-price { font-size: 18px; }
  .partner-buy { gap: 4px; }
  .partner-buy .partner-best { min-height: 36px; padding: 5px 10px; }
  .partner-best strong { font-size: 14.5px; }
  .partner-alt { font-size: 12.5px; padding: 3px 4px; }
  .partner-bestfare { padding: 8px 10px; margin: 6px 0 4px; }
  .partner-bestfare strong { font-size: 18px; }
  .partner-bestfare .pb-label, .partner-bestfare .pb-meta { font-size: 12px; }
  .flight-info { margin-top: 6px; }
  .fi-tab { padding: 6px 10px; font-size: 12px; }
  .fi-pane { padding: 4px 10px 8px; font-size: 12.5px; }
  .fi-line { padding: 5px 0; }
  .stay-offer { padding: 9px 10px; gap: 8px; margin-top: 6px; }

  /* Settings and the information pages */
  .settings-list { padding: 2px 10px; }
  .settings-row { min-height: 40px; padding: 4px 0; font-size: 13.5px; gap: 8px; }
  .settings-row .set-val { font-size: 13px; }
  .settings-row .muted { font-size: 12px; }
  .settings-row .chev { font-size: 17px; }
  .settings-actions { margin-top: 10px; padding: 8px 10px; gap: 6px; }
  .settings-actions .sa-note { font-size: 12.5px; }
  .prose-page h2 { font-size: 16px; margin: 14px 0 4px; }
  .prose-page p { line-height: 1.5; margin-bottom: 6px; font-size: 13.5px; }
  .faq-q { padding: 9px 2px; font-size: 13.5px; }
  .faq-a { padding-bottom: 9px; font-size: 13px; line-height: 1.5; }
  .landing-hero { padding: 22px 14px; margin-bottom: 10px; border-radius: 14px; }
  .landing-hero h1 { font-size: 22px; margin: 6px auto 6px; }
  .landing-hero p { font-size: 13.5px; margin-bottom: 12px; line-height: 1.45; }
  .hero-cta-row { gap: 8px; }
  .store-btn { padding: 7px 12px; font-size: 13px; gap: 7px; border-radius: 10px; }
  .store-btn .s-icon { font-size: 18px; }
  .feature-grid, .region-band { gap: 8px; }
  .region-band { margin-top: 8px; }
  .feature, .region { padding: 12px; border-radius: 12px; }
  .feature { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: start; }
  .feature .f-icon { width: 34px; height: 34px; font-size: 17px; margin: 0; grid-row: span 2; border-radius: 9px; }
  .feature h3, .region h3 { font-size: 14px; margin-bottom: 2px; }
  .feature p, .region p { font-size: 12.5px; line-height: 1.4; }
  .region .r-icon { font-size: 19px; margin-bottom: 3px; }

  /* Pop-ups */
  .modal-backdrop { padding: 10px; }
  .modal { padding: 14px; border-radius: 14px; }
  .dir-filter, .dir-body { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 720px) {
  .results-overlay .header-banner img { height: 196px; }
  .results-overlay main.page { margin-top: -186px; }
  .results-top { min-height: 176px; }
}
@media (max-width: 640px) {
  .search-form .btn.submit { height: 42px; margin-top: 8px; }
  .search-grid .place-input input.filled { font-size: 15px; }
}

/* Home app box: the button with a QR code under it (desktop only; the box is hidden on small screens). */
.app-get { display: grid; justify-items: center; gap: 8px; }
.app-qr { width: 132px; height: 132px; background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 4px; }
.app-get small { font-size: 12px; }
/* Phone bottom menu: Settings is an icon only. */
.tabbar a.tab-icon svg { width: 24px; height: 24px; }
