/* good.flights — the visual language of flight search (reference: Aviasales): blue header band
   with a white search bar and an orange button, grey page, white rounded cards, big bold prices,
   green for the cheapest. System font first, like the reference; Inter where no system UI font. */

@font-face { font-family: Inter; src: url(/assets/fonts/inter-latin.woff2) format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Inter; src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2'); font-weight: 400 800; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: light;
  --blue: #0c73fe;
  --blue-hover: #0a64dd;
  --blue-soft: #e7f1ff;
  --orange: #fa742d;
  --orange-hover: #ef6419;
  --green: #13a04a;
  --green-ink: #0b7a36;
  --green-soft: #e5f6eb;
  --page: #f2f4f5;
  --card: #ffffff;
  --ink: #0c131d;
  --ink-2: #4a5563;
  --muted: #6b7685;
  --line: #e4e8ec;
  --night: #10161f;
  --shadow: 0 1px 4px rgba(17, 33, 56, .06);
  --shadow-up: 0 6px 20px rgba(17, 33, 56, .12);
  --wrap: 1180px;
  --gutter: clamp(12px, 3vw, 24px);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--page);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hover); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.top :focus-visible { outline-color: #fff; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 12px; border-radius: 8px; z-index: 30; }
.skip:focus { left: 8px; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 10px; }
.sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.sm-only { display: none; }
.scroll { overflow-x: auto; }

/* ---------- header band ---------- */
.top { background: var(--blue); color: #fff; }
.top-bar { max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gutter); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.wordmark:hover { color: #fff; }
.wordmark svg { width: 26px; height: 26px; fill: currentColor; transform: rotate(45deg); }
.wordmark.dark { color: var(--ink); }
.top-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.top-nav a { color: #fff; font-weight: 600; font-size: 15px; opacity: .92; }
.top-nav a:hover { color: #fff; opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.band { max-width: var(--wrap); margin: 0 auto; padding: 16px var(--gutter) 32px; }
.home .band { padding: 56px var(--gutter) 72px; }
.band-title { margin-bottom: 20px; }
.band-title h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.home .band-title h1 { font-size: clamp(32px, 5vw, 48px); }
.band-title p { margin: 8px 0 0; font-size: 18px; opacity: .92; }
.band-title.center { text-align: center; margin-bottom: 32px; }

/* ---------- search bar ---------- */
.search { display: flex; gap: 8px; align-items: stretch; flex-wrap: wrap; position: relative; }
.sf-bar { flex: 1 1 760px; display: grid; grid-template-columns: 1.25fr 1.25fr 1fr 1fr 1.1fr; gap: 2px; min-width: 0; }
.sf-field { position: relative; background: #fff; color: var(--ink); min-height: 64px; padding: 10px 16px 8px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.sf-field:first-child { border-radius: 16px 0 0 16px; }
.sf-field:last-child { border-radius: 0 16px 16px 0; }
.sf-field:focus-within { box-shadow: inset 0 0 0 2px var(--orange); z-index: 2; }
.sf-field label, .sf-label { font-size: 12px; color: var(--muted); line-height: 1.2; }
.sf-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 2px 0 0; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); text-align: left; cursor: pointer; }
.sf-date::after { content: ''; position: absolute; inset: 0; }
.sf-date svg { width: 20px; height: 20px; fill: var(--blue); flex: none; }
.sf-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-val.empty { color: #9aa3ae; }
.sf-field.date.active { box-shadow: inset 0 0 0 2px var(--orange); z-index: 2; }

/* ---------- date picker ---------- */
.dp { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 25; max-width: 760px; margin-left: auto; margin-right: auto; background: #fff; color: var(--ink);
  border-radius: 20px; box-shadow: 0 12px 40px rgba(17, 33, 56, .22); padding: 16px 20px 14px; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dp-hint { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.dp-nav { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--page); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.dp-nav:disabled { opacity: .35; cursor: default; }
.dp-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 8px; }
.dp-title { font-weight: 700; text-align: center; margin-bottom: 8px; }
.dp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.dp-wd { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.dp-day { min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; padding: 2px 0; }
.dp-day small { font-size: 11px; color: var(--ink-2); font-weight: 600; margin-top: 2px; }
.dp-day.cheap small { color: var(--green-ink); }
.dp-day.cheap { background: var(--green-soft); }
.dp-day.today { box-shadow: inset 0 0 0 1px var(--line); }
.dp-day.range { background: var(--blue-soft); border-radius: 0; }
.dp-day.sel { background: var(--blue); color: #fff; }
.dp-day.sel small { color: #fff; }
.dp-day:hover:not(:disabled):not(.sel) { box-shadow: inset 0 0 0 2px var(--blue); }
.dp-day:disabled { color: #c3c9d0; cursor: default; background: transparent; }
.dp-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dp-legend { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-2); }
.dp-legend i { width: 16px; height: 16px; border-radius: 4px; background: var(--green-soft); box-shadow: inset 0 0 0 1px #bfe3cc; }
.dp-actions { display: flex; gap: 8px; margin-left: auto; }
.dp-oneway, .dp-done { min-height: 40px; padding: 0 16px; border-radius: 12px; border: 0; font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
.dp-oneway { background: var(--blue-soft); color: var(--blue); }
.dp-done { background: var(--page); color: var(--ink); }
.sf-field input, .sf-field select { font: inherit; font-size: 16px; color: var(--ink); background: transparent; border: 0; padding: 2px 0 0; width: 100%; min-width: 0; outline: none; }
.sf-field select { appearance: none; cursor: pointer; }
.sf-field.place input { padding-right: 40px; }
.sf-code { position: absolute; right: 14px; bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.btn-search { flex: 0 0 auto; min-height: 64px; padding: 0 32px; border: 0; border-radius: 16px; background: var(--orange); color: #fff; font: inherit; font-size: 20px; font-weight: 700; cursor: pointer; }
.btn-search:hover { background: var(--orange-hover); }
.sf-summary { display: none; flex: 1 1 100%; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 8px 16px; border: 0; border-radius: 16px;
  background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.sf-summary strong { display: block; font-size: 16px; }
.sf-summary small { display: block; font-size: 13px; color: var(--muted); }
.sf-change { color: var(--blue); font-weight: 600; font-size: 15px; }
.search-error { flex-basis: 100%; margin: 4px 0 0; color: #fff; font-weight: 600; }
.sf-catalog { flex-basis: 100%; margin: 4px 0 0; }
.sf-catalog a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sf-catalog a:hover { color: #fff; opacity: .9; }
.suggest { position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 360px; z-index: 20; list-style: none; margin: 0; padding: 6px;
  background: #fff; color: var(--ink); border-radius: 12px; box-shadow: var(--shadow-up); max-height: 340px; overflow: auto; }
.suggest li { padding: 8px 10px; border-radius: 8px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: var(--page); }
.suggest .code { font-weight: 600; color: var(--muted); font-size: 13px; }
.suggest .where { font-size: 13px; color: var(--muted); display: block; }

/* ---------- nearby dates strip ---------- */
.strip { background: var(--night); color: #fff; }
.strip-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--gutter); display: flex; align-items: center; gap: 20px; }
.strip-title { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; white-space: nowrap; }
.strip-title svg { width: 22px; height: 22px; fill: currentColor; }
.chips { display: flex; overflow-x: auto; gap: 2px; scrollbar-width: none; min-width: 0; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 6px 16px; border-radius: 10px; color: #fff; min-width: 96px; }
.chip span { font-size: 12px; color: #a9b2be; }
.chip strong { font-size: 16px; }
.chip:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.chip.on { background: var(--blue); }
.chip.on span { color: #fff; }

/* ---------- page body ---------- */
.page { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter) 24px; }
.crumbs { font-size: 13px; color: var(--muted); padding: 16px 0 0; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '›'; margin-right: 4px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--blue); }
.sect { margin-top: 24px; }
.sect > h2 { margin-bottom: 14px; }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.sect-head a { font-weight: 600; }
.card { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: clamp(16px, 3vw, 24px); }
.card > h2 { font-size: 21px; margin-bottom: 6px; }
.lead { color: var(--ink-2); max-width: 70ch; margin-bottom: 16px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.main-col > .sect:first-child { margin-top: 24px; }
.side-col { display: grid; gap: 16px; margin-top: 24px; position: sticky; top: 16px; }

/* ---------- in-page shortcuts and the picked date ---------- */
.jumps { display: flex; gap: 8px; overflow-x: auto; padding: 16px 0 0; scrollbar-width: none; }
.jumps::-webkit-scrollbar { display: none; }
.jumps a { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); font-size: 14px; font-weight: 600; }
.jumps a:hover { color: var(--blue); }
.day-slot { margin-bottom: 28px; }
.day-card { box-shadow: 0 0 0 2px var(--blue), var(--shadow); }
.t-price.none { font-size: 20px; color: var(--ink-2); }
.day-back { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
html { scroll-padding-top: 12px; }

/* ---------- tickets ---------- */
.tickets { display: grid; gap: 14px; }
.ticket { position: relative; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 20px 24px; }
.ticket[hidden] { display: none; }
.ticket:hover { box-shadow: var(--shadow-up); }
.pill { position: absolute; top: -10px; left: 18px; font-size: 13px; font-weight: 700; color: #fff; padding: 2px 8px; border-radius: 8px; }
.pill.green { background: var(--green); }
.pill.blue { background: var(--blue); }
.t-top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px 16px; }
.t-price { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.t-meta { font-size: 14px; color: var(--ink-2); }
.t-meta span { display: block; color: var(--muted); font-size: 13px; }
.btn-orange { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 12px; background: var(--orange); color: #fff; font-weight: 700; white-space: nowrap; }
.btn-orange:hover { background: var(--orange-hover); color: #fff; }
.t-route { display: grid; grid-template-columns: 32px auto 1fr auto; align-items: center; gap: 16px; margin-top: 16px; }
.al-logo { width: 32px; height: 32px; border-radius: 8px; }
.t-end { display: flex; flex-direction: column; line-height: 1.3; }
.t-end strong { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.t-end span { font-size: 13px; color: var(--muted); }
.t-end.end { text-align: right; }
.t-line { display: grid; grid-template-rows: auto 4px auto; gap: 4px; text-align: center; min-width: 0; }
.t-dur { font-size: 13px; color: var(--muted); }
.t-line i { background: var(--line); border-radius: 2px; }
.t-codes { display: flex; justify-content: space-between; font-size: 13px; }
.t-codes b { color: var(--blue); font-weight: 600; }
.btn-more { width: 100%; margin-top: 14px; min-height: 52px; border: 0; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--blue); font: inherit; font-weight: 700; cursor: pointer; }
.btn-more:hover { box-shadow: var(--shadow-up); }

/* ---------- travel tools on the home page ---------- */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tool { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); border-left: 4px solid var(--orange); }
.tool:hover { box-shadow: var(--shadow-up); color: var(--ink); }
.tool strong { font-size: 17px; }
.tool span { font-size: 14px; color: var(--ink-2); }

/* ---------- departure city cards ---------- */
.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.city { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); padding: 12px 14px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.city:hover { box-shadow: var(--shadow-up); color: var(--ink); }
.city-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.city-top strong { font-size: 16px; }
.city-top small { flex: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.city-country, .city-meta { font-size: 13px; color: var(--muted); }
.city-price { margin-top: 6px; font-weight: 800; font-size: 17px; }

/* ---------- destination cards ---------- */
.dests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.dest { display: flex; flex-direction: column; height: 100%; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 16px 18px; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.dest:hover { box-shadow: var(--shadow-up); color: var(--ink); }
.dest-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dest-top strong { font-size: 18px; font-weight: 700; }
.dest-top small { font-size: 12px; font-weight: 600; color: var(--muted); }
.dest-country { font-size: 14px; color: var(--muted); }
.dest-price { margin-top: auto; padding-top: 14px; font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.dest-when { font-size: 13px; color: var(--ink-2); }

/* ---------- month chart ---------- */
.chart { margin: 0; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: #e9edf1; stroke-width: 1; }
.chart .axis { stroke: #cfd6dd; stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.chart .value { fill: var(--ink); font-size: 14px; font-weight: 700; }
.chart .bar { fill: var(--blue); }
.chart .slot.min .bar { fill: var(--green); }
.chart .hit { fill: transparent; }
.chart a.slot:hover .bar, .chart a.slot:focus-visible .bar { fill: var(--blue-hover); }
.chart a.slot.min:hover .bar, .chart a.slot.min:focus-visible .bar { fill: var(--green-ink); }
.chart .slot:focus { outline: none; }
.chart .slot:focus-visible .hit { stroke: var(--blue); stroke-width: 2; }
.chart-rows { display: none; list-style: none; margin: 0; padding: 0; }
.hrow a, .hrow.empty { display: grid; grid-template-columns: 2.6em 1fr 5.5em; align-items: center; gap: 10px; padding: 5px 0; color: var(--ink); font-size: 15px; }
.hm { color: var(--muted); }
.hb { height: 14px; display: flex; align-items: center; }
.hb i { display: block; height: 14px; background: var(--blue); border-radius: 0 4px 4px 0; }
.hrow.min .hb i { background: var(--green); }
.hv { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hrow.empty .hv { font-weight: 400; color: var(--muted); font-size: 13px; }
.as-table { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.as-table summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.as-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.as-table th, .as-table td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.as-table td { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- price calendar ---------- */
.calendar { margin: 0; }
.cal-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 32px; }
.cal-month h3 { font-size: 16px; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.wd { font-size: 12px; color: var(--muted); text-align: center; padding-bottom: 2px; }
.cd { display: flex; flex-direction: column; justify-content: space-between; min-height: 50px; padding: 5px 6px; border-radius: 10px; background: var(--page); color: var(--ink); line-height: 1.15; }
.cd .cn { font-size: 12px; color: var(--muted); }
.cd .cp { font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.cd.blank { background: transparent; }
.cd.off { background: transparent; }
.cd.off .cn { color: #b7bfc8; }
.cd.none { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.cd.none .cp { color: var(--muted); font-weight: 400; }
.cd.cheap { background: var(--green-soft); }
.cd.cheap .cp { color: var(--green-ink); }
.cd.high .cp { color: var(--ink-2); font-weight: 600; }
a.cd:hover { box-shadow: inset 0 0 0 2px var(--blue); color: var(--ink); }
.cal-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; font-size: 14px; color: var(--ink-2); }
.key.cheap { background: var(--green-soft); color: var(--green-ink); font-weight: 700; padding: 2px 8px; border-radius: 8px; }

/* ---------- sidebar ---------- */
.side-card > h2 { font-size: 18px; margin-bottom: 10px; }
.facts { margin: 0; }
.facts div { padding: 10px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; }
.rt, .mini { list-style: none; margin: 0; padding: 0; }
.rt li + li, .mini li + li { border-top: 1px solid var(--line); }
.rt a, .mini a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; color: var(--ink); }
.rt-main strong { display: block; font-size: 15px; }
.rt-main span { font-size: 13px; color: var(--muted); }
.rt-price, .mini strong { color: var(--blue); font-weight: 700; white-space: nowrap; }
.mini small { display: block; font-size: 13px; color: var(--muted); }
.rt a:hover .rt-price, .mini a:hover strong { color: var(--blue-hover); text-decoration: underline; }
.side-link { display: inline-block; margin-top: 8px; font-weight: 600; }

/* ---------- questions, prose, note ---------- */
.qa h3 { margin: 18px 0 4px; }
.qa h3:first-of-type { margin-top: 12px; }
.qa p { color: var(--ink-2); max-width: 70ch; }
.prose { margin-top: 24px; max-width: 820px; }
.prose h2 { font-size: 20px; margin: 20px 0 8px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
.note { margin-top: 24px; display: flex; align-items: center; gap: 14px; }
.note svg { width: 20px; height: 20px; fill: var(--ink); flex: none; }
.note p { margin: 0; flex: 1; }
.note a { font-weight: 600; white-space: nowrap; }

/* ---------- destinations table ---------- */
.table-find { margin-bottom: 10px; }
.table-find input { width: 100%; max-width: 420px; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--page); color: var(--ink); }
.table-find input:focus { outline: 2px solid var(--blue); outline-offset: 1px; background: #fff; }
.table-empty { margin: 12px 0 0; color: var(--ink-2); }
.table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.table-tools button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--page); color: var(--ink); cursor: pointer; }
.table-tools button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.switch { display: inline-flex; align-items: center; gap: 8px; margin-left: 8px; font-size: 14px; font-weight: 600; cursor: pointer; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch span { width: 38px; height: 22px; border-radius: 11px; background: #d3d9e0; position: relative; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--blue); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.dest-table { width: 100%; border-collapse: collapse; }
.dest-table th, .dest-table td { padding: 12px 10px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.dest-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.dest-table tbody th { font-weight: 600; overflow-wrap: anywhere; }
.dest-table tbody th a { color: var(--ink); }
.dest-table tbody th a:hover { color: var(--blue); }
.dest-table tr:last-child > * { border-bottom: 0; }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.go { text-align: right; width: 1%; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 600; font-size: 14px; }
.btn-ghost:hover { background: #d6e7ff; }

/* ---------- footer ---------- */
.foot { background: #fff; margin-top: 48px; border-top: 1px solid var(--line); }
.foot-in { max-width: var(--wrap); margin: 0 auto; padding: 28px var(--gutter) 36px; display: grid; grid-template-columns: 200px 1fr 1.4fr; gap: 24px; font-size: 14px; color: var(--ink-2); }
.foot-brand p { margin-top: 6px; color: var(--muted); }
.foot nav { display: flex; flex-direction: column; gap: 6px; }
.foot nav a { color: var(--ink); }
.foot nav a:hover { color: var(--blue); }
.foot-note p { color: var(--muted); }
.foot-cities { grid-column: 1 / -1; display: flex !important; flex-direction: row !important; flex-wrap: wrap; gap: 6px 18px !important; padding-top: 16px; border-top: 1px solid var(--line); }
.foot-cities a { color: var(--ink-2) !important; font-size: 13px; }
/* Language switcher: the same page in each language. */
.foot .langs { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 6px 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.foot .langs a, .foot .langs span { font-size: 14px; }
.foot .langs span { font-weight: 700; color: var(--ink); }

/* ---------- partner options, tours, plans, steps ---------- */
.options { list-style: none; margin: 8px 0 0; padding: 0; }
.option { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.option:first-child { border-top: 0; }
.option-main { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.option-main strong { font-size: 16px; }
.option-main span { font-size: 14px; color: var(--ink-2); }
.option-main small { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 2px; }
.option .btn-ghost { flex: none; }
.card h3 { margin: 18px 0 2px; font-size: 16px; }
.tours { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tour { display: flex; flex-direction: column; height: 100%; border-radius: 16px; overflow: hidden; background: var(--page); color: var(--ink); }
.tour:hover { box-shadow: var(--shadow-up); color: var(--ink); }
.tour img { width: 100%; height: 140px; object-fit: cover; background: var(--line); }
.tour-body { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px; flex: 1; }
.tour-body strong { font-size: 15px; line-height: 1.3; }
.tour-meta { font-size: 13px; color: var(--muted); }
.tour-price { margin-top: auto; font-weight: 700; }
.tag-green, .tag-blue { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 700; color: #fff; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.tag-green { background: var(--green); }
.tag-blue { background: var(--blue); }
.plans th { white-space: nowrap; }
.plans tr.suggested { background: var(--green-soft); }
.tag-grey { display: inline-block; margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); padding: 1px 6px; border-radius: 6px; background: var(--page); vertical-align: middle; }
.esim-facts { margin: 10px 0 0; }
.esim-notes { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.phone-check { margin: 12px 0 4px; }
.phone-check summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.mini-list { margin: 8px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); }
.mini-list li + li { margin-top: 4px; }
.trip-len { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.trip-len span { font-size: 14px; color: var(--ink-2); margin-right: 4px; }
.trip-len button { font: inherit; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.trip-len button[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.trip-tip { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--green-soft); font-size: 14px; }
.facts-table th { font-weight: 500; }
.steps { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
.steps li + li { margin-top: 6px; }

/* ---------- more airports (destination pages) ---------- */
.more-airports { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.more-airports summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: 15px; }
.more-options { margin-top: 2px; }
.more-options summary { cursor: pointer; font-weight: 600; color: var(--blue); font-size: 14px; padding: 6px 0; }
.more-airports[open] summary { margin-bottom: 4px; }

/* ---------- cheapest months strip (destination pages) ---------- */
.mstrip { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 132px; }
.mstrip li { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 6px; min-width: 0; }
.mstrip .bar { width: 100%; max-width: 36px; border-radius: 6px 6px 2px 2px; background: #d3e3f8; }
.mstrip .cheap .bar { background: var(--green); }
.mstrip .m { font-size: 12px; color: var(--muted); }
.mstrip .cheap .m { color: var(--ink); font-weight: 700; }

/* ---------- rules on airline pages ---------- */
.rules-list { list-style: none; margin: 8px 0 0; padding: 0; }
.rules-list li { padding: 12px 0; border-top: 1px solid var(--line); }
.rules-list li:first-child { border-top: 0; }
.rl-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rl-top a { font-weight: 700; color: var(--ink); }
.rl-top strong { white-space: nowrap; }
.rules-list p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

/* ---------- compensation checker ---------- */
.claim { margin-top: 24px; }
.claim-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 12px 0 16px; }
.field-box { position: relative; display: flex; flex-direction: column; gap: 4px; background: var(--page); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.field-box label { font-size: 12px; color: var(--muted); }
.field-box input, .field-box select { font: inherit; font-size: 16px; border: 0; background: transparent; color: var(--ink); width: 100%; padding: 2px 0; outline: none; min-width: 0; }
.field-box:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.field-box .sf-code { bottom: 12px; }
.claim .btn-search { width: 100%; min-height: 56px; }
.claim .search-error { color: #c0362c; }
.claim-result { margin-top: 16px; }
.claim-head h2 { font-size: 26px; }
.claim-list { list-style: none; margin: 14px 0; padding: 0; }
.claim-item { padding: 12px 14px; border-radius: 12px; background: var(--page); margin-top: 8px; }
.claim-item.yes { background: var(--green-soft); }
.claim-item p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.claim-item-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.claim-item-top a { font-weight: 700; color: var(--ink); }
.claim-badge { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #fff; color: var(--ink-2); }
.claim-item.yes .claim-badge { background: var(--green); color: #fff; }
.claim-item.maybe .claim-badge { background: var(--blue-soft); color: var(--blue); }
.claim-amount { margin-left: auto; font-size: 20px; }
.claim-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }
.claim-cta a { max-width: 100%; white-space: normal; text-align: center; padding-top: 8px; padding-bottom: 8px; }
.rules-grid .city-meta { font-size: 13px; }
.claim-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 16px 0 8px; }
.claim-way { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.claim-way h3 { margin: 0 0 4px; font-size: 16px; }
.claim-way p { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.claim-way .claim-cta { margin: 0; }

/* ---------- analytics consent (EEA, UK, CH) ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; max-width: 720px; margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); font-size: 14px; }
.consent p { margin: 0; flex: 1 1 260px; color: var(--ink-2); }
.consent div { display: flex; gap: 8px; }
.consent button { font: inherit; font-weight: 600; border-radius: 10px; padding: 8px 14px; border: 0; cursor: pointer; background: var(--blue); color: #fff; }
.consent button[data-consent="denied"] { background: var(--blue-soft); color: var(--blue); }

/* ---------- tooltip ---------- */
.tip { position: fixed; z-index: 40; pointer-events: none; max-width: 280px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-up); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .side-col { position: static; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .sf-bar { grid-template-columns: 1fr 1fr; gap: 2px; }
  .sf-field:first-child { border-radius: 16px 0 0 0; }
  .sf-field:nth-child(2) { border-radius: 0 16px 0 0; }
  .sf-field:last-child { grid-column: 1 / -1; border-radius: 0 0 16px 16px; }
  .btn-search { flex: 1 1 100%; min-height: 56px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-note { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  h2 { font-size: 21px; }
  .home .band { padding: 28px var(--gutter) 36px; }
  .band-title p { font-size: 16px; }
  .sf-bar { grid-template-columns: 1fr; }
  .sf-field:first-child { border-radius: 16px 16px 0 0; }
  .sf-field:nth-child(2) { border-radius: 0; }
  .sf-field { min-height: 58px; }
  .search.can-collapse .sf-summary { display: flex; }
  .search.can-collapse:not(.open) .sf-bar, .search.can-collapse:not(.open) .btn-search { display: none; }
  .search.can-collapse.open .sf-summary .sf-change { visibility: hidden; }
  .dp { position: fixed; left: 0; right: 0; top: auto; bottom: 0; max-height: 86vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 14px 12px 12px; margin: 0; max-width: none;
    box-shadow: 0 0 0 100vmax rgba(12, 19, 29, .45); }
  .dp-months { grid-template-columns: 1fr; gap: 18px; }
  .dp-foot { position: sticky; bottom: -12px; background: #fff; padding-bottom: 4px; }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim-grid { grid-template-columns: 1fr; }
  .claim-ways { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .option { gap: 10px; }
  .option .btn-ghost { padding: 0 12px; }
  .tours { grid-template-columns: 1fr; }
  .strip-title { display: none; }
  .strip-in { padding: 8px var(--gutter); }
  .chip { min-width: 84px; padding: 6px 10px; }
  .ticket { padding: 18px 16px 16px; }
  .t-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
  .t-price { font-size: 26px; flex: 1 1 auto; min-width: 0; }
  .t-top .btn-orange { flex: 0 0 auto; padding: 0 16px; font-size: 15px; }
  .t-meta { flex-basis: 100%; order: 3; min-width: 0; }
  .t-route { grid-template-columns: auto 1fr auto; gap: 10px; }
  .al-logo { display: none; }
  .t-end strong { font-size: 18px; }
  .chart svg { display: none; }
  .chart-rows { display: block; }
  .cal-months { grid-template-columns: 1fr; }
  .cd { min-height: 46px; padding: 4px; }
  .cd .cp { font-size: 13px; }
  .dests { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dest { padding: 14px; border-radius: 16px; }
  .dest-price { font-size: 19px; }
  table[data-sortable] td:nth-child(3), table[data-sortable] thead th:nth-child(3), table[data-sortable] td:nth-child(4), table[data-sortable] thead th:nth-child(4), table[data-sortable] td:nth-child(5), table[data-sortable] thead th:nth-child(5) { display: none; }
  .dest-table th, .dest-table td { padding: 10px 6px; }
  .dest-table .sm-only { display: block; }
  .plans .tag-green, .plans .tag-blue, .plans .tag-grey { display: table; margin: 3px 0 0; }
  .top-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; gap: 16px; }
  .top-nav::-webkit-scrollbar { display: none; }
  .top-nav { -webkit-mask-image: linear-gradient(to right, #000 85%, transparent); mask-image: linear-gradient(to right, #000 85%, transparent); padding-right: 24px; }
  .top-nav a { flex: none; }
  .note { flex-direction: column; align-items: flex-start; }
  .foot-in { grid-template-columns: 1fr; }
  .foot-cities { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px 16px !important; }
  .foot-cities a { font-size: 14px; }
}
@media (max-width: 380px) { .dests { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
@media (forced-colors: active) { .chart .bar { fill: CanvasText; } .cd { border: 1px solid CanvasText; } }

/* This page in the visitor's language (app.js): one quiet line above the header. */
.lang-offer { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px var(--gutter); background: var(--card); border-bottom: 1px solid var(--line); font-size: 15px; }
.lang-offer a { color: var(--blue); font-weight: 600; text-decoration: none; }
.lang-offer a:hover { text-decoration: underline; }
.lang-offer-close { border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; padding: 2px 8px; cursor: pointer; border-radius: 8px; }
.lang-offer-close:hover { background: var(--page); color: var(--ink); }

/* Approximate amount in the visitor's currency (app.js), under or after a price. */
.approx { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; line-height: 1.3; color: var(--muted); white-space: nowrap; letter-spacing: 0; }
.approx-inline { font-size: .85em; font-weight: 400; white-space: nowrap; opacity: .85; }

/* A button with a text link next to it (airport pages: check what you're owed + how the rules work). */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px; }

/* Weather by month on destination pages: a compact table that scrolls sideways on phones. */
.wx-scroll { overflow-x: auto; margin: 4px 0 8px; -webkit-overflow-scrolling: touch; }
.wx { width: 100%; min-width: 600px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.wx th, .wx td { padding: 7px 4px; text-align: center; border-bottom: 1px solid var(--line); }
.wx thead th { color: var(--muted); font-weight: 500; font-size: 13px; }
.wx tbody th { text-align: left; white-space: nowrap; padding-right: 10px; font-weight: 600; }
.wx tbody tr:last-child th, .wx tbody tr:last-child td { border-bottom: 0; }

/* Kiwitaxi's price widget on airport pages: a button until the visitor asks, then their iframe. */
.kiwi-prices { margin-top: 14px; }
.kiwi-prices .sub { margin-top: 6px; }
.kiwi-prices.loaded { min-height: 420px; }
.kiwi-prices iframe { max-width: 100%; }
