/* AerFind: sky blue & white, full-width web layout that adapts down to phones.
   No boxed cards: content sits on the page, separated by thin dividers. */
:root {
  --sky-25: #f7fbff;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --sky-200: #bae6fd;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-700: #0369a1;
  --sky-900: #0c4a6e;
  --bg: #ffffff;
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #94a3b8;
  --line: #e5edf5;
  --accent: var(--sky-500);
  --accent-ink: #ffffff;
  --save: #059669;
  --save-soft: #d1fae5;
  --gold: #b45309;
  --gold-soft: #fef3c7;
  --purple: #6d28d9;
  --purple-soft: #ede9fe;
  --warn: #b45309;
  --warn-soft: #fff7ed;
  --danger: #dc2626;
  --chart-line: var(--sky-500);
  --chart-normal: #94a3b8;
  --gutter: clamp(16px, 4vw, 56px);
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --hot: #ff2e88;
  --grad: linear-gradient(100deg, var(--sky-500) 0%, var(--pink-500) 100%);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); }
a { color: var(--sky-600); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { letter-spacing: -0.015em; }

/* ---------- the sky: gradient band with ribbed glass ---------- */
.sky {
  position: relative; overflow: hidden; isolation: isolate;
  background: #0b8fd6;
  color: #fff;
  padding-bottom: 36px;
}
.sky-art { position: absolute; inset: -20%; z-index: -2; }
.sky-art i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.95; }
.sky-art .b1 { width: 60%; height: 90%; left: -10%; top: -20%; background: radial-gradient(circle, #38bdf8 0%, rgba(56,189,248,0) 70%); }
.sky-art .b2 { width: 45%; height: 85%; left: 30%; top: 10%; background: radial-gradient(circle, #ff2e88 0%, #ec4899 35%, rgba(236,72,153,0) 70%); animation: drift 18s ease-in-out infinite alternate; }
.sky-art .b3 { width: 30%; height: 60%; left: 42%; top: 35%; background: radial-gradient(circle, #ffb3d1 0%, rgba(255,179,209,0) 70%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.sky-art .b4 { width: 55%; height: 100%; right: -15%; top: -10%; background: radial-gradient(circle, #0369a1 0%, rgba(3,105,161,0) 70%); }
@keyframes drift { to { transform: translate(6%, -4%) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .sky-art i { animation: none; } }
/* fluted / ribbed glass texture */
.sky::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.10) 0 1px, rgba(255,255,255,0) 1px 7px, rgba(0,40,80,0.06) 7px 8px, rgba(255,255,255,0) 8px 14px),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(3,40,80,0.18));
}

.topbar { display: flex; align-items: center; gap: 20px; padding: 18px var(--gutter); position: relative; z-index: 2; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 19px; white-space: nowrap; letter-spacing: -0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,0.6); }
.tabs { display: flex; gap: 2px; margin: 0 auto; padding: 5px; border-radius: 999px;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.28);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.tabs[hidden] { display: none; }
.tabs a { color: rgba(255,255,255,0.85); text-decoration: none; font-weight: 600; font-size: 14px; padding: 8px 18px; border-radius: 999px; transition: background 0.15s; display: inline-flex; align-items: center; gap: 8px; }
.tabs a:hover { background: rgba(255,255,255,0.14); color: #fff; }
.tabs a.active { background: rgba(255,255,255,0.22); color: #fff; }
.tabs a.active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 10px var(--hot); }
#checkNow[hidden] { display: none; }

/* hero content */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main aside" "strip strip"; gap: 28px 48px; padding: 28px var(--gutter) 0; position: relative; z-index: 1; }
.sky.tall .hero { padding-top: clamp(40px, 9vh, 110px); }
.hero-main { grid-area: main; align-self: end; max-width: 900px; }
.hero h1 { font-weight: 400; font-size: clamp(34px, 4.4vw, 60px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; text-shadow: 0 2px 30px rgba(3, 40, 80, 0.25); }
.sky.tall .hero h1 { font-size: clamp(44px, 6.6vw, 96px); }
.hero-sub { margin: 14px 0 0; max-width: 560px; color: rgba(255,255,255,0.86); font-size: 16px; line-height: 1.55; }
.hero-back { display: inline-block; color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.hero-back:hover { color: #fff; }
.hero-aside { grid-area: aside; align-self: end; width: min(380px, 100%); }
.hero-strip { grid-area: strip; list-style: none; margin: 12px 0 0; padding: 18px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 28px; border-top: 1px solid rgba(255,255,255,0.28); position: relative; }
.hero-strip li { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: rgba(255,255,255,0.75); line-height: 1.35; }
.hero-strip li.on { color: #fff; }
.hero-strip li.on::before { content: ""; position: absolute; top: -1px; left: 0; width: min(22%, 260px); height: 2px; background: linear-gradient(90deg, #fff, var(--hot)); }
.hero-strip .ico { font-size: 15px; opacity: 0.95; }
.hero-strip b { font-weight: 800; color: #fff; }

/* frosted glass panel */
.glass {
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.32); border-radius: 22px; padding: 18px;
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 20px 60px rgba(3, 40, 80, 0.25); display: grid; gap: 12px; color: #fff;
}
.glass-pill { justify-self: start; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,0.22); }
.glass-title { font-size: 20px; font-weight: 700; }
.glass-deal { display: grid; gap: 6px; padding: 14px; border-radius: 16px; background: rgba(255,255,255,0.14); color: #fff; text-decoration: none; }
.glass-deal:hover { background: rgba(255,255,255,0.22); }
.glass-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.glass-price { font-size: 44px; font-weight: 300; letter-spacing: -0.04em; line-height: 1; }
.glass-price small { font-size: 13px; font-weight: 600; letter-spacing: 0; margin-left: 8px; opacity: 0.8; }
.glass-meta { font-size: 14px; opacity: 0.9; }
.glass-why { font-size: 13px; opacity: 0.95; }
.glass .field > span { color: rgba(255,255,255,0.9); }
.glass .field input { background: rgba(255,255,255,0.92); border-color: transparent; }
.glass .err { color: #ffe4ef; }
.glass .btn { width: 100%; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; grid-template-areas: "main" "aside" "strip"; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .topbar { flex-wrap: wrap; gap: 10px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .tabs { order: 3; width: 100%; margin: 0; justify-content: space-between; }
  .tabs a { flex: 1; justify-content: center; padding: 8px 6px; }
  #checkNow { margin-left: auto; }
  .hero-strip { grid-template-columns: 1fr 1fr; font-size: 13px; }
  .sky.tall .hero { padding-top: 28px; }
}

main { padding: 28px var(--gutter) 64px; }

/* ---------- page headers ---------- */
.top { display: flex; align-items: center; gap: 12px; margin: 0 0 6px; }
.top h1 { font-size: clamp(26px, 3vw, 36px); line-height: 1.1; margin: 0; font-weight: 800; flex: 1; }
.top .back { text-decoration: none; font-weight: 600; font-size: 14px; padding: 4px 0; }
.status { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin: 4px 0 20px; }
p.status { max-width: 760px; }
section h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--pink-600); margin: 32px 0 10px; font-weight: 700; }

/* ---------- pills & badges ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--sky-50); color: var(--sky-700); }
.pill.demo, .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.save { background: var(--save-soft); color: var(--save); }
.pill.trip { background: var(--purple-soft); color: var(--purple); }
.tier { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.tier-good { background: var(--sky-50); color: var(--sky-700); }
.tier-great { background: var(--save-soft); color: var(--save); }
.tier-exceptional { background: linear-gradient(90deg, var(--pink-500), var(--hot)); color: #fff; }
.tier-exceptional::before { content: "★"; }
.tier-watch { background: var(--purple-soft); color: var(--purple); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; padding: 9px 18px;
  border-radius: 999px; border: 0; background: var(--sky-50); color: var(--sky-700); text-decoration: none;
  font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: background 0.15s, transform 0.05s;
}
.btn:hover { background: var(--sky-100); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 6px 18px rgba(236, 72, 153, 0.25); }
.btn.primary:hover { filter: brightness(1.06); background: var(--grad); }
.btn.white { background: #fff; color: var(--ink); box-shadow: 0 6px 20px rgba(3, 40, 80, 0.18); }
.btn.white:hover { background: #fff; color: var(--pink-600); }
.btn.ghost { background: transparent; color: var(--sky-600); padding-inline: 10px; }
.btn.ghost:hover { background: var(--sky-50); }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 34px; padding: 6px 14px; font-size: 13px; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ---------- segmented controls ---------- */
.seg { display: inline-flex; gap: 4px; background: var(--sky-50); border-radius: 999px; padding: 4px; margin: 0 8px 12px 0; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.seg button:hover { color: var(--sky-700); }
.seg button[aria-checked="true"] { background: var(--grad); color: #fff; }
.seg3 { margin: 0; }

/* ---------- filters toolbar ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.filters select, .filters input:not([type="checkbox"]), .field input:not([type="checkbox"]), .field select, .mini-select {
  min-height: 42px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 14px;
  outline: none; transition: border-color 0.15s, box-shadow 0.15s;
}
.filters select, .filters input:not([type="checkbox"]) { flex: 0 1 190px; min-width: 150px; }
.filters select:focus, .filters input:focus, .field input:focus, .field select:focus { border-color: var(--sky-400); box-shadow: 0 0 0 3px var(--sky-100); }
.filters .checks { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); cursor: pointer; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--sky-500); }
input[type="range"] { width: 100%; accent-color: var(--sky-500); }
.count { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------- deal rows ---------- */
.list { display: block; }
.deal-row {
  display: grid; align-items: center; gap: 8px 28px;
  grid-template-columns: minmax(180px, 1.1fr) minmax(190px, 1fr) minmax(240px, 1.7fr) 110px auto;
  grid-template-areas: "main trip why price actions";
  padding: 20px var(--gutter); margin: 0 calc(-1 * var(--gutter));
  border-bottom: 1px solid var(--line); transition: background 0.15s;
}
.deal-row:hover { background: linear-gradient(90deg, var(--sky-25), var(--pink-50)); }
.deal-row.expired { opacity: 0.55; }
.dr-main { grid-area: main; text-decoration: none; color: var(--ink); min-width: 0; }
.dr-main h2 { font-size: 20px; margin: 4px 0 0; line-height: 1.2; font-weight: 700; }
.dr-main:hover h2 { color: var(--pink-600); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badges:empty { display: none; }
.sub { font-size: 13px; color: var(--ink-3); }
.dr-trip { grid-area: trip; font-size: 14px; color: var(--ink-2); }
.dr-trip .strong { color: var(--ink); font-weight: 600; }
.muted { color: var(--ink-3); font-size: 13px; }
.dr-why { grid-area: why; display: grid; gap: 4px; }
.dr-price { grid-area: price; text-align: right; }
.price { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.dr-price small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.dr-actions { grid-area: actions; display: flex; gap: 6px; justify-content: flex-end; }
.reasons { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; font-size: 14px; }
.reasons li { padding-left: 20px; position: relative; }
.reasons li::before { content: "✓"; position: absolute; left: 2px; color: var(--save); font-weight: 800; }
.deal-foot { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-3); }
.checked { color: var(--save); font-weight: 600; }
.more { font-size: 13px; font-weight: 600; text-decoration: none; }

@media (max-width: 1100px) {
  .deal-row { grid-template-columns: 1fr 1fr auto; grid-template-areas: "main trip price" "why why actions"; }
}
@media (max-width: 680px) {
  .deal-row { grid-template-columns: 1fr auto; grid-template-areas: "main price" "trip trip" "why why" "actions actions"; gap: 10px 16px; padding: 18px var(--gutter); }
  .dr-actions { justify-content: stretch; }
  .dr-actions .btn { flex: 1; }
  .price { font-size: 24px; }
}

.empty { text-align: center; color: var(--ink-2); padding: 64px 16px; max-width: 560px; margin: 0 auto; }
.empty h2 { color: var(--ink); font-size: 20px; margin: 0 0 8px; }

/* ---------- deal detail ---------- */
.deal-hero { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 32px; padding: 8px 0 20px; border-bottom: 1px solid var(--line); }
.price.big { font-size: clamp(44px, 6vw, 64px); }
.price.big small, .deal-hero .price small { display: block; font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); margin-top: 6px; }
.deal-hero > div:not(.price) { color: var(--ink-2); }
.reasons.card { font-size: 15px; gap: 6px; }
.leg { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.leg:last-child { border-bottom: 0; }
.leg-h { display: flex; gap: 16px; font-size: 14px; color: var(--ink-2); }
.leg-h b { color: var(--ink); }
.leg small { color: var(--ink-3); margin-left: 6px; }
.book-opt { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); max-width: 760px; }
.book-opt:hover { color: var(--sky-700); }
.book-opt small { display: block; color: var(--ink-3); font-size: 12px; }
.book-opt .p { font-weight: 800; color: var(--sky-600); white-space: nowrap; }
.hint { font-size: 13px; color: var(--ink-3); }
p.hint { margin: 10px 0 0; }

/* "card" no longer draws a box: it's just a block of content */
.card { background: none; border: 0; padding: 0; }

/* ---------- route page ---------- */
.stats { display: flex; flex-wrap: wrap; margin: 8px 0; border-bottom: 1px solid var(--line); }
.stat { padding: 8px 32px 16px 0; margin-right: 32px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); font-weight: 600; }
.stat .v { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.chart-tip { font-size: 14px; color: var(--ink-2); min-height: 20px; }
.chart svg { display: block; width: 100%; height: 280px; touch-action: pan-y; }
.chart .axis text { font-size: 11px; fill: var(--ink-3); }
.chart .grid line { stroke: var(--line); }
.legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--ink-2); padding-top: 8px; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.fares { display: block; }
.fare { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px var(--gutter); margin: 0 calc(-1 * var(--gutter)); border-bottom: 1px solid var(--line); align-items: center; }
.fare.dest { text-decoration: none; color: var(--ink); }
.fare.dest:hover { background: var(--sky-25); }
.fare .d { font-size: 15px; }
.fare .d small { display: block; color: var(--ink-3); font-size: 13px; }
.fare small.inline { display: inline; margin-left: 6px; }
.fare .p { font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; text-align: right; }
.fare .links { grid-column: 1 / -1; display: flex; gap: 8px; }
.fare.is-deal .p { color: var(--save); }

/* ---------- forms (settings, watchlist) ---------- */
.form { display: grid; gap: 16px; }
form > section { border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input:not([type="checkbox"]), .field select { width: 100%; }
.row { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.row > .field { flex: 1 1 200px; max-width: 360px; }
.row > .btn { flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--sky-50); font-size: 14px; font-weight: 500; cursor: pointer; user-select: none; border: 0; color: var(--ink-2); }
.chip:hover { background: var(--sky-100); }
.chip input { width: 16px; height: 16px; margin: 0; }
.chip.on { background: var(--grad); color: #fff; }
.chip.on input { accent-color: #fff; }
.chip button { border: 0; background: none; padding: 0 0 0 4px; cursor: pointer; color: inherit; font-size: 16px; line-height: 1; }
.ceil { display: grid; grid-template-columns: 200px 120px; gap: 12px; align-items: center; font-size: 14px; color: var(--ink-2); }
.switch { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.switch input { order: -1; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.sub-fields { display: flex; flex-wrap: wrap; gap: 16px; padding-left: 30px; }
.sub-fields > .field { flex: 1 1 240px; max-width: 420px; }
.sub-fields > .row { flex: 1 1 100%; }
.range-val { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--sky-600); }
form#addZone { max-width: 980px; padding-bottom: 8px; }
#zoneOpts { display: grid; gap: 16px; }
#zoneOpts[hidden] { display: none; }
#suggest .chip { cursor: pointer; }

/* autocomplete */
.ac { position: relative; max-width: 620px; }
.ac-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); background: #fff; border-radius: 14px; box-shadow: 0 12px 32px rgba(2, 132, 199, 0.18); max-height: 320px; overflow: auto; padding: 6px; }
.ac-list button { display: flex; width: 100%; text-align: left; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 0; background: none; cursor: pointer; font-size: 14px; border-radius: 10px; }
.ac-list button:hover, .ac-list button:focus { background: var(--sky-50); outline: none; }
.ac-list small { color: var(--ink-3); }

/* ---------- watchlist rows ---------- */
.zone {
  display: grid; align-items: center; gap: 6px 28px; text-decoration: none; color: var(--ink);
  grid-template-columns: minmax(220px, 1.2fr) minmax(240px, 1.6fr) minmax(180px, 1fr);
  grid-template-areas: "h best bar" "h best cov";
  padding: 18px var(--gutter); margin: 0 calc(-1 * var(--gutter)); border-bottom: 1px solid var(--line);
}
.zone:hover { background: var(--sky-25); }
.zone.off { opacity: 0.55; }
.zone-h { grid-area: h; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.zone h2 { font-size: 19px; margin: 0; }
.zone-best { grid-area: best; font-size: 14px; color: var(--ink-2); }
.zone .bar { grid-area: bar; }
.zone > .sub { grid-area: cov; }
@media (max-width: 760px) {
  .zone { grid-template-columns: 1fr; grid-template-areas: "h" "best" "bar" "cov"; }
}
.bar { height: 6px; background: var(--sky-100); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--grad); border-radius: 99px; }
.meter { display: grid; gap: 6px; max-width: 520px; }
.meter-h { display: flex; justify-content: space-between; font-size: 14px; }

/* trip planner */
.combo { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.combo-h { display: flex; gap: 14px; align-items: baseline; }
.combo-h b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--pink-600); }
.combo-h span { color: var(--ink-3); font-size: 13px; }
.leg-link { color: var(--ink-2); text-decoration: none; font-size: 14px; }
.leg-link:hover { color: var(--sky-600); }
.field:has(#zoneTrip) { margin: 16px 0 4px; }
.field:has(#planLen) { max-width: 300px; }

/* ---------- login ---------- */
.login { margin: 0; text-align: left; gap: 12px; }
.login .logo { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35); }
.login h1 { font-size: 30px; margin: 16px 0 4px; font-weight: 800; }
.login p { color: var(--ink-2); margin: 0 0 22px; }
.login .field { text-align: left; }
.err { color: var(--danger); font-size: 14px; min-height: 20px; }
.ok { color: var(--save); }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 28px; background: var(--sky-900); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; z-index: 40; max-width: calc(100% - 32px); box-shadow: 0 10px 30px rgba(12, 74, 110, 0.3); }
.skeleton { height: 88px; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, var(--sky-25), var(--sky-50), var(--sky-25)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ---------- phone ---------- */
@media (max-width: 680px) {
  main { padding-top: 20px; }
  .filters select, .filters input:not([type="checkbox"]) { flex: 1 1 140px; }
  .seg { display: flex; }
  .seg button { flex: 1; padding: 8px 10px; }
  .stat { padding-right: 18px; margin-right: 18px; }
  .ceil { grid-template-columns: 1fr 110px; }
  .sub-fields { padding-left: 0; }
}

.form > .btn, form > .btn { justify-self: start; }
.deal-top { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.deal-top:empty { display: none; }

/* simpler filter bar */
.switches { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 10px; }
.switches .seg { margin: 0; }
.filters { align-items: flex-end; }
.fl { display: grid; gap: 4px; flex: 0 1 200px; min-width: 150px; }
.fl > span { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.05em; }
.fl select, .fl input { width: 100%; }
.filters .fl select, .filters .fl input:not([type="checkbox"]) { flex: none; min-width: 0; }
#moreBtn { align-self: flex-end; }
.more-filters { display: flex; flex-wrap: wrap; gap: 12px 14px; align-items: flex-end; width: 100%; padding-top: 6px; }
.more-filters[hidden] { display: none; }
.more-filters .check { min-height: 42px; }
@media (max-width: 680px) {
  .switches .seg { width: 100%; }
  .fl { flex: 1 1 140px; }
}

.fallback-h { padding: 18px 0 8px; }
.fallback-h h2 { font-size: 20px; margin: 0 0 4px; }
.fallback-h p { margin: 0; color: var(--ink-2); font-size: 14px; }
.deal-row.cheap .price { font-weight: 600; }

/* departure airport picker: tap one or more */
.fl-from { flex: 1 1 100%; max-width: none; }
.fl-from small { text-transform: none; letter-spacing: 0; font-weight: 500; }
.airport-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.ap { display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; background: var(--sky-50); color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; user-select: none; transition: background 0.15s, color 0.15s; }
.ap:hover { background: var(--sky-100); }
.ap input { position: absolute; opacity: 0; pointer-events: none; }
.ap.on { background: var(--grad); color: #fff; }
.ap:has(input:focus-visible) { outline: 2px solid var(--sky-400); outline-offset: 2px; }

.check-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 16px var(--gutter); margin: 12px calc(-1 * var(--gutter)) 0; background: linear-gradient(90deg, var(--sky-50), var(--pink-50)); font-size: 15px; }
.check-bar .hint { display: block; margin-top: 2px; }
.check-bar:empty { display: none; }

/* ---- phone fixes ---- */
/* hidden checkbox inside each airport pill must not take up space (it was stretching the page) */
.ap { position: relative; overflow: hidden; }
.ap input { position: absolute; width: 1px !important; height: 1px; min-width: 0 !important; opacity: 0; left: 0; top: 0; }
/* never let anything make the page wider than the screen */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg { max-width: 100%; }
@media (max-width: 680px) {
  /* iPhones zoom in when you tap a field with text smaller than 16px */
  input, select, textarea { font-size: 16px !important; }
}

/* ---- phone layout: deals first ---- */
.filters-toggle { display: none; }
@media (max-width: 680px) {
  .topbar { padding-bottom: 6px; }
  .brand span { font-size: 17px; }
  #checkNow { padding: 6px 12px; min-height: 34px; }
  .hero { gap: 14px; padding-top: 14px; }
  .sky.tall .hero { padding-top: 18px; }
  .sky.tall .hero h1, .hero h1 { font-size: 30px; line-height: 1.08; }
  .hero-sub { font-size: 14px; margin-top: 8px; }
  .sky.tall .hero-sub { display: none; }
  .hero-strip { display: none; }
  .sky { padding-bottom: 20px; }
  .glass { padding: 12px; gap: 8px; border-radius: 18px; }
  .glass-pill { font-size: 11px; padding: 3px 10px; }
  .glass-deal { padding: 10px 12px; gap: 3px; }
  .glass-price { font-size: 34px; }
  .glass-why { display: none; }
  .glass .btn { min-height: 38px; }

  main { padding-top: 14px; }
  .status { font-size: 12px; gap: 4px 10px; margin-bottom: 10px; }
  /* the three switches on one swipeable line */
  .switches { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)) 8px; padding: 0 var(--gutter) 2px; }
  .switches::-webkit-scrollbar { display: none; }
  .switches .seg { width: auto; flex: 0 0 auto; display: inline-flex; }
  .switches .seg button { flex: 0 0 auto; padding: 7px 12px; font-size: 13px; white-space: nowrap; }
  /* filters fold away */
  .filters-toggle { display: inline-flex; width: 100%; justify-content: center; margin: 2px 0 6px; }
  .filters { display: none; border-top: 0; padding-top: 6px; }
  .filters.open { display: flex; }
  .count { margin-top: 8px; }

  /* deal rows: compact and readable */
  .deal-row { padding: 14px var(--gutter); gap: 6px 12px; }
  .dr-main h2 { font-size: 18px; }
  .dr-trip { font-size: 13px; }
  .dr-why .reasons { font-size: 13px; }
  .dr-why .reasons li:nth-child(2) { display: none; }
  .deal-foot { font-size: 12px; }
  .price { font-size: 26px; }
  .dr-actions .btn { min-height: 40px; }
}

/* fields always use dark text, even inside the blue header (the password dots were white on white) */
input, select, textarea { color: var(--ink); }
input::placeholder { color: var(--ink-3); }
.glass .field input { color: var(--ink); caret-color: var(--sky-600); }
.pw-wrap { position: relative; }
.pw-wrap input { width: 100%; padding-right: 72px !important; }
.pw-show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: var(--sky-50); color: var(--sky-700); font-weight: 700; font-size: 13px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.pw-show:hover { background: var(--sky-100); }

/* ---- accounts, stats, legal ---- */
.glass-note { margin: 0; font-size: 13px; color: rgba(255,255,255,0.92); }
.glass-note a, .glass .check a { color: #fff; font-weight: 700; text-decoration: underline; }
.glass .chips { gap: 6px; }
.glass .chip { background: rgba(255,255,255,0.18); color: #fff; border-color: rgba(255,255,255,0.35); }
.glass .chip.on { background: #fff; color: var(--sky-700); border-color: #fff; }
.glass .check.glass-check { color: #fff; }
.glass .check.glass-check input { width: 18px; height: 18px; flex: 0 0 auto; }
.welcome { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.welcome a { color: var(--sky-700); font-weight: 700; }
.welcome .btn { flex: 0 0 auto; }
.stat .sub { font-size: 12px; color: var(--ink-3); max-width: 220px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-3); font-weight: 600; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.mini { display: inline-block; height: 8px; min-width: 2px; margin-right: 8px; border-radius: 4px; background: var(--grad); vertical-align: middle; }
.card { overflow-x: auto; }
.foot { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding: 28px var(--gutter) 36px; font-size: 13px; color: var(--ink-3); }
.foot a { color: var(--ink-2); }
@media (max-width: 680px) {
  .welcome { flex-direction: column; align-items: flex-start; }
  .tbl { font-size: 13px; }
}
.plain { margin: 6px 0 0; padding-left: 18px; }
.plain li { margin: 3px 0; }
.glass p.glass-note { color: #fff; }
.btn.google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: #fff; color: #1f2937; border: 1px solid #dadce0; font-weight: 600; text-decoration: none; }
.btn.google:hover { background: #f8fafc; }
.or { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.85); font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,0.35); }
