/* ZborAcasă — design system. Mobile first, no framework. */
@import url('/assets/fonts/fonts.css');

:root {
  --ink: #0B1426; --ink-2: #13203B; --ink-3: #1E2D4F;
  --canvas: #F6F3EE; --paper: #FFFFFF; --line: #E8E2D6; --line-2: #F0EBE2;
  --text: #0B1426; --muted: #5A6578; --faint: #667083;
  --gold: #C99A2E; --gold-2: #E9BE55; --gold-3: #F6DE9A; --gold-soft: #FBF4E2;
  --green: #08754E; --green-soft: #E5F3EC; --amber: #9A6700; --amber-soft: #FBF2DA;
  --red: #B23A2E; --red-soft: #FAEAE7; --blue: #2459C9;
  --fr: #073590; --wz: #C6007E;
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --r-xl: 28px; --r-lg: 20px; --r: 16px; --r-sm: 12px;
  --sh-1: 0 1px 2px rgba(11,20,38,.05), 0 2px 8px rgba(11,20,38,.04);
  --sh-2: 0 2px 6px rgba(11,20,38,.05), 0 12px 32px rgba(11,20,38,.08);
  --sh-3: 0 30px 80px -20px rgba(11,20,38,.35), 0 8px 24px rgba(11,20,38,.10);
  --tap: 46px; --nav-h: 66px;
  /* theme tokens (light) */
  color-scheme: light;
  --text-2: #1E2D4F; --raised: #FFFFFF; --sunken: #FCFBF8; --sunken-2: #FCFAF6; --tint: #F2EEE6; --hover: #F7F4EE; --field: #FFFFFF;
  --line-strong: #D2C8B6; --line-dash: #DDD4C4; --card-edge: rgba(255,255,255,.6);
  --strong: #0B1426; --strong-hover: #1E2D4F; --on-strong: #FFFFFF; --on-strong-muted: rgba(255,255,255,.65);
  --on-strong-accent: #E9BE55; --on-strong-tint: rgba(255,255,255,.14);
  --sh-sel: 0 8px 18px rgba(11,20,38,.28); --sh-hover: 0 4px 10px rgba(11,20,38,.06), 0 18px 40px rgba(11,20,38,.10);
  --sh-btn: 0 1px 0 rgba(255,255,255,.08) inset, 0 8px 20px -6px rgba(11,20,38,.5);
  --green-line: #CFE9DC; --red-line: #EDC0BA;
  --gold-line: #EBD9A8; --gold-soft-2: #F8EBC8; --gold-ink: #5C4813; --gold-ink-2: #725B22;
  --compare-a: #FFFBF0; --compare-b: #FBF1D8; --compare-line: #EEDDB0;
  --wa-bg: #EAF8EF; --wa-fg: #128C4A; --wa-line: #D2EEDD; --wa-hover: #DFF4E7;
  --tg-bg: #E9F5FC; --tg-fg: #176B98; --tg-line: #CBE7F6; --tg-hover: #DDF0FA; --tg-hover-line: #80C8ED;
  --sk-a: #EFEBE3; --sk-b: #F8F6F1;
  --support-a: #FFF9E9; --support-b: #F7E6B3; --support-line: #E5D5A5; --support-ink: #755D1E;
  --range: #F6EDD3; --footer: #0B1426;
  --seg-on: #FFFFFF; --seg-on-text: #0B1426; --seg-track: #E8E1D3;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --canvas: #0A111F; --paper: #121B2E; --raised: #1B2641; --sunken: #0E1627; --sunken-2: #0E1627; --tint: #1C2742; --hover: #18233B; --field: #0E1627;
  --line: #27334E; --line-2: #1E2942; --line-strong: #3B4969; --line-dash: #2F3C59; --card-edge: rgba(255,255,255,.06);
  --text: #E8ECF4; --text-2: #C4CCDB; --muted: #A3AEC2; --faint: #8592AA;
  --strong: #EEF2F8; --strong-hover: #FFFFFF; --on-strong: #0B1426; --on-strong-muted: rgba(11,20,38,.66);
  --on-strong-accent: #7A5807; --on-strong-tint: rgba(11,20,38,.12);
  --gold-soft: rgba(233,190,85,.12); --gold-soft-2: rgba(233,190,85,.2); --gold-line: rgba(233,190,85,.35);
  --gold-ink: #F0CF7A; --gold-ink-2: #C9A54E;
  --green: #3FCB93; --green-soft: rgba(63,203,147,.13); --green-line: rgba(63,203,147,.3);
  --amber: #F2B53A; --amber-soft: rgba(242,181,58,.14);
  --red: #FF8576; --red-soft: rgba(255,133,118,.12); --red-line: rgba(255,133,118,.35);
  --blue: #86AEFF;
  --compare-a: rgba(233,190,85,.11); --compare-b: rgba(233,190,85,.04); --compare-line: rgba(233,190,85,.28);
  --wa-bg: rgba(37,211,102,.12); --wa-fg: #62DE92; --wa-line: rgba(37,211,102,.28); --wa-hover: rgba(37,211,102,.2);
  --tg-bg: rgba(42,171,238,.12); --tg-fg: #73C8F5; --tg-line: rgba(42,171,238,.3); --tg-hover: rgba(42,171,238,.2); --tg-hover-line: rgba(42,171,238,.55);
  --sk-a: #162036; --sk-b: #1F2A46;
  --support-a: #16203A; --support-b: #2B2818; --support-line: rgba(233,190,85,.3); --support-ink: #D9B865;
  --range: rgba(233,190,85,.17); --footer: #060B15;
  --seg-on: #EEF2F8; --seg-on-text: #0B1426; --seg-track: #1C2742;
  --sh-1: 0 1px 2px rgba(0,0,0,.35), 0 2px 8px rgba(0,0,0,.25);
  --sh-2: 0 2px 6px rgba(0,0,0,.3), 0 12px 32px rgba(0,0,0,.35);
  --sh-3: 0 30px 80px -20px rgba(0,0,0,.75), 0 8px 24px rgba(0,0,0,.4);
  --sh-sel: 0 8px 18px rgba(0,0,0,.45); --sh-hover: 0 4px 10px rgba(0,0,0,.3), 0 18px 40px rgba(0,0,0,.4);
  --sh-btn: 0 8px 20px -6px rgba(0,0,0,.6);
}
:root[data-theme="dark"] .soon { border: 1px solid var(--line); }
:root[data-theme="dark"] .hero { background:
    radial-gradient(900px 520px at 88% -8%, rgba(233,190,85,.14), transparent 62%),
    radial-gradient(700px 480px at -10% 10%, rgba(46,107,230,.18), transparent 60%),
    linear-gradient(180deg, #08101E 0%, #0A111F 100%); }
html { transition: background-color .2s; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.55; color: var(--text);
  background: var(--canvas); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; color: inherit; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.fields > *, .grid-cards > *, .info > *, .field, .picker { min-width: 0; }

/* ------------------------------------------------------------------ header */
.top { position: sticky; top: 0; z-index: 30; padding-top: env(safe-area-inset-top);
  background: rgba(11,20,38,.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand svg { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(233,190,85,.25)); }
.brand b { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.brand b span { color: var(--gold-2); font-style: italic; }
.top-nav { display: none; gap: 2px; }
.top-nav a { color: rgba(255,255,255,.72); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: color .15s, background .15s; }
.top-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
@media (min-width: 900px) { .top-nav { display: flex; } }
.lang { display: flex; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.10); }
.lang button { border: 0; background: none; color: rgba(255,255,255,.7); min-height: 30px; padding: 0 12px; border-radius: 999px; font-weight: 700; font-size: 12px; letter-spacing: .06em; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold-2); color: var(--ink); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; color: #fff; padding: 34px 0 118px;
  background:
    radial-gradient(900px 520px at 88% -8%, rgba(233,190,85,.20), transparent 62%),
    radial-gradient(700px 480px at -10% 10%, rgba(46,107,230,.26), transparent 60%),
    linear-gradient(180deg, #0B1426 0%, #0F1B33 100%); }
.hero::after { content: ""; position: absolute; right: -60px; top: 24px; width: 560px; height: 260px; opacity: .55; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 260'%3E%3Cpath d='M10 240 C 160 40, 380 20, 540 70' fill='none' stroke='%23E9BE55' stroke-width='2' stroke-dasharray='2 10' stroke-linecap='round'/%3E%3Cg transform='translate(540 70) rotate(18)'%3E%3Cpath d='M-14 0 L16 0 M4 0 L-5 -12 M4 0 L-5 12 M-12 0 L-16 -6 M-12 0 L-16 6' stroke='%23E9BE55' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
@media (max-width: 720px) { .hero::after { width: 340px; height: 160px; right: -90px; top: 8px; opacity: .35; } }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(31px, 7.4vw, 66px); line-height: 1.04; letter-spacing: -.025em; margin: 6px 0 10px; max-width: 760px; }
@media (max-width: 720px) {
  .hero { padding: 22px 0 100px; }
  .hero p.lead { font-size: 15px; }
  .trust { margin-top: 14px; gap: 6px 14px; font-size: 12.5px; }
  .seg-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .seg button { min-height: 38px; font-size: 13px; }
}
.hero h1 em { font-style: italic; color: var(--gold-2); font-weight: 500; }
.hero p.lead { color: rgba(255,255,255,.72); font-size: clamp(16px, 2.2vw, 19px); margin: 0; max-width: 600px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: rgba(255,255,255,.78); font-size: 13px; font-weight: 600; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--gold-2); }

/* ------------------------------------------------------------------ search card */
.search-card { position: relative; z-index: 3; margin-top: -84px; padding: 16px; border-radius: var(--r-xl);
  background: var(--paper); box-shadow: var(--sh-3); border: 1px solid var(--card-edge); }
@media (min-width: 720px) { .search-card { padding: 22px; } }
.seg-row { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .seg-row { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--seg-track); }
.seg button { border: 0; background: none; min-height: 40px; border-radius: 11px; font-weight: 700; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--seg-on); color: var(--seg-on-text); box-shadow: 0 1px 2px rgba(11,20,38,.08), 0 4px 12px rgba(11,20,38,.08); }
.seg.small { display: inline-grid; background: var(--paper); border: 1px solid var(--line); }
.seg.small button { min-height: 34px; padding: 0 14px; font-size: 13px; }
.seg.small button[aria-pressed="true"] { background: var(--strong); color: var(--on-strong); box-shadow: none; }

.fields { display: grid; gap: 10px 8px; margin-top: 14px; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; }
.field { display: block; }
.field > span { display: block; font-size: 11px; font-weight: 800; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 6px 4px; }
.fields > .field:not(.pax) > span { display: none; }
.picker { width: 100%; min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 1px; text-align: left; cursor: pointer;
  padding: 10px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--sunken); transition: border-color .15s, box-shadow .15s, background .15s; }
.picker:hover { border-color: var(--line-strong); background: var(--raised); box-shadow: var(--sh-1); }
.picker .k { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.picker b { font-size: 16px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.picker small { color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.swap { justify-self: center; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 6px 16px rgba(201,154,46,.35), inset 0 1px 0 rgba(255,255,255,.5); transition: transform .2s; }
.swap:hover { transform: rotate(180deg); }
.swap svg { width: 18px; height: 18px; }
.field.pax { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 0; }
.field.pax > span { margin: 0; }
.stepper { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--sunken); }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--raised); box-shadow: var(--sh-1); font-size: 18px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: default; box-shadow: none; }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; font-size: 16px; }
@media (min-width: 720px) {
  .fields { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 12px; }
  .field.pax { grid-column: auto; flex-direction: column; align-items: flex-start; padding: 0; gap: 6px; }
  .stepper { min-height: 64px; border-radius: var(--r); padding: 0 10px; gap: 10px; }
}
.return-opts { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); }
@media (min-width: 720px) { .return-opts { grid-template-columns: 1fr auto; align-items: end; } }
.return-opts .field > span { display: block; }
.stay { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.stay::-webkit-scrollbar { display: none; }
.stay button { flex: none; min-height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 700; font-size: 13px; cursor: pointer; color: var(--text-2); }
.stay button[aria-pressed="true"] { background: var(--gold-soft); border-color: var(--gold); color: var(--text); box-shadow: inset 0 0 0 1px var(--gold); }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 13.5px; min-height: var(--tap); cursor: pointer; color: var(--text-2); }
.check input { width: 18px; height: 18px; accent-color: var(--strong); }
.months { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 2px; margin-top: 14px; }
.months::-webkit-scrollbar { display: none; }
.months button { flex: none; min-width: 78px; min-height: 52px; padding: 6px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper);
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.months button:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.months button { font-weight: 750; font-size: 14px; text-transform: capitalize; color: var(--text); }
.months button small { font-size: 11px; font-weight: 700; color: var(--green); text-transform: none; }
.months button.none small { color: var(--faint); }
.months button[aria-pressed="true"] { background: var(--strong); border-color: var(--strong); color: var(--on-strong); box-shadow: var(--sh-sel); }
.months button[aria-pressed="true"] small { color: var(--on-strong-accent); }
.months button:disabled { opacity: .35; cursor: default; box-shadow: none; }

/* ------------------------------------------------------------------ sections */
main section { margin-top: 36px; scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.sec-head p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.kicker { display: block; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }

/* ------------------------------------------------------------------ calendar */
.cal-card { background: var(--paper); border-radius: var(--r-lg); padding: 12px; border: 1px solid var(--line-2); box-shadow: var(--sh-2); }
@media (min-width: 720px) { .cal-card { padding: 18px; } }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.cal-dow { text-align: center; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--faint); text-transform: uppercase; padding: 2px 0 8px; }
.cal-day { position: relative; aspect-ratio: 1 / 1.08; min-height: 48px; padding: 0; border-radius: 12px; border: 1px solid var(--line-2); background: var(--sunken);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: default; }
.cal-day .n { font-size: 11.5px; font-weight: 700; color: var(--faint); }
.cal-day .p { font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; color: var(--faint); }
.cal-day.has { cursor: pointer; background: var(--paper); transition: transform .12s, box-shadow .12s, border-color .12s; }
.cal-day.has:hover { transform: translateY(-1px); box-shadow: var(--sh-1); border-color: var(--line-strong); }
.cal-day.has .n { color: var(--muted); }
.cal-day.lo { background: var(--green-soft); border-color: var(--green-line); } .cal-day.lo .p { color: var(--green); }
.cal-day.mid .p { color: var(--amber); }
.cal-day.hi .p { color: var(--red); }
.cal-day.best { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: var(--gold-soft); }
.cal-day.best .p { color: var(--text); }
.cal-day.best::after { content: "★"; position: absolute; top: 3px; right: 5px; font-size: 9px; color: var(--gold); }
.cal-day.sel { background: var(--strong); border-color: var(--strong); box-shadow: var(--sh-sel); }
.cal-day.sel .n { color: var(--on-strong-muted); } .cal-day.sel .p { color: var(--on-strong); }
.cal-day.sel::after { color: var(--on-strong-accent); }
.cal-day.empty { background: transparent; border-color: transparent; }
.cal-day.past { opacity: .35; }
@media (min-width: 720px) { .cal-day { aspect-ratio: auto; min-height: 70px; } .cal-day .p { font-size: 15px; } .cal-day .n { font-size: 12px; } }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 2px 0; font-size: 12px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; border: 1px solid; }
.cal-legend .lg-lo { background: var(--green-soft); border-color: var(--green-line); }
.cal-legend .lg-mid { background: var(--paper); border-color: var(--line); }
.cal-legend .lg-hi { background: var(--red-soft); border-color: var(--red-line); }
.cal-legend .lg-best { background: var(--gold-soft); border-color: var(--gold); }

/* ------------------------------------------------------------------ calendar month navigation */
.cal-nav { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; margin: 0 0 8px; }
.cal-nav b { text-align: center; font-family: var(--serif); font-weight: 600; font-size: 19px; text-transform: capitalize; }
.cal-arrow { width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: 12px; }
.cal-arrow svg { width: 18px; height: 18px; }
.cal-arrow:disabled { opacity: .3; cursor: default; box-shadow: none; }
.cal-more { display: flex; justify-content: center; margin: 12px 0 0; }

/* ------------------------------------------------------------------ return-trip date bar */
.rt-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin: 0 0 12px; }
.rt-date { min-width: 0; min-height: 58px; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 8px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--sunken); color: var(--text); transition: border-color .15s, box-shadow .15s, background .15s; }
.rt-date:hover { border-color: var(--line-strong); }
.rt-date .k { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.rt-date b { font-size: 15px; font-weight: 750; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-date.empty b { color: var(--muted); font-weight: 650; }
.rt-date[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.rt-date[aria-pressed="true"] .k { color: var(--gold-ink-2); }
.rt-mid { display: grid; justify-items: center; gap: 1px; color: var(--faint); font-size: 11px; font-weight: 700; text-align: center; white-space: nowrap; }
.rt-mid svg { width: 18px; height: 18px; color: var(--gold); }
.rt-step { display: flex; align-items: center; gap: 8px; margin: 0 2px 10px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.rt-step .num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--strong); color: var(--on-strong); font-size: 11.5px; font-weight: 800; flex: none; }
.cal-day.in-range { background: var(--range); border-color: transparent; }
.cal-day.rt-out, .cal-day.rt-ret { background: var(--strong); border-color: var(--strong); box-shadow: var(--sh-sel); }
.cal-day.rt-out .n, .cal-day.rt-ret .n { color: var(--on-strong-muted); }
.cal-day.rt-out .p, .cal-day.rt-ret .p { color: var(--on-strong); }
.cal-day.rt-out::after, .cal-day.rt-ret::after { color: var(--on-strong-accent); }
.cal-day .tag { position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); padding: 1px 6px; border-radius: 999px; background: var(--gold-2); color: #0B1426;
  font-size: 8.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; z-index: 1; }
.cal-day.off { opacity: .35; }
.day-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: -4px 0 14px; color: var(--muted); font-size: 13.5px; }

/* ------------------------------------------------------------------ theme toggle */
.top-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.07); color: rgba(255,255,255,.85); transition: background .15s, color .15s; }
.theme-toggle:hover { background: rgba(255,255,255,.14); color: #fff; }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }

/* ------------------------------------------------------------------ compare strip (Aviasales) */
.compare { display: grid; gap: 12px; align-items: center; margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r);
  background: linear-gradient(135deg, var(--compare-a), var(--compare-b)); border: 1px solid var(--compare-line); }
@media (min-width: 640px) { .compare { grid-template-columns: 1fr auto; } }
.compare b { display: block; font-size: 14.5px; }
.compare > div > span { display: block; color: var(--gold-ink); font-size: 13px; }

/* ------------------------------------------------------------------ fare ticket */
.list, .grid-cards { display: grid; gap: 14px; }
.grid-cards { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 680px) { .grid-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fare { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--line-2);
  box-shadow: var(--sh-2); overflow: hidden; transition: transform .18s, box-shadow .18s; }
.fare:hover { transform: translateY(-2px); box-shadow: var(--sh-hover); }
.fare-body { padding: 16px 16px 14px; display: grid; gap: 12px; }
.fare-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.fare-top > div { min-width: 0; }
.air { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.air-badge { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: .02em; color: #fff; flex: none; }
.air-badge.fr { background: var(--fr); color: #F1C933; }
.air-badge.w { background: var(--wz); }
.route { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-weight: 800; font-size: 20px; letter-spacing: .01em; }
.route .code { font-variant-numeric: tabular-nums; }
.route .arrow { flex: 1; min-width: 26px; max-width: 70px; height: 12px; position: relative; color: var(--faint); font-weight: 600; font-size: 0; }
.route .arrow::before { content: ""; position: absolute; left: 0; right: 10px; top: 50%; border-top: 1.5px dashed var(--line-dash); }
.route .arrow::after { content: "✈"; position: absolute; right: -2px; top: 50%; transform: translateY(-52%); font-size: 13px; color: var(--gold); }
.route-names { color: var(--muted); font-size: 12.5px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.price { text-align: right; flex: none; }
.price .from { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.price b { display: block; font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; letter-spacing: -.02em; margin-top: 2px; }
.price small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 4px; }
.meta { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 12.5px; color: var(--muted); }
.when { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text-2); }
.when svg { width: 14px; height: 14px; color: var(--faint); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--tint); color: var(--muted); }
.pill.fresh { background: var(--green-soft); color: var(--green); }
.pill.fresh::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(11,138,92,.15); }
.pill.est { background: var(--amber-soft); color: var(--amber); }
/* ticket stub */
.fare-stub { position: relative; margin-top: auto; padding: 14px 16px 16px; border-top: 1.5px dashed var(--line-dash); background: var(--sunken-2); }
.fare-stub::before, .fare-stub::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--canvas); border: 1px solid var(--line-2); }
.fare-stub::before { left: -9px; } .fare-stub::after { right: -9px; }
.fare-actions { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) auto auto; }
.fare-actions .btn-primary { grid-column: 1 / -1; }
.telegram-alert-row { padding: 0 16px 16px; background: var(--sunken-2); }
.telegram-alert-row .btn { width: 100%; }

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); padding: 0 18px; border-radius: 14px;
  border: 1px solid transparent; font-weight: 750; font-size: 14.5px; letter-spacing: .005em; line-height: 1.15; text-align: center; cursor: pointer;
  white-space: nowrap; min-width: 0; transition: transform .12s, box-shadow .15s, background .15s, border-color .15s, color .15s; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn .t { overflow: hidden; text-overflow: ellipsis; }
.btn-primary { background: var(--strong); color: var(--on-strong); box-shadow: var(--sh-btn); }
.btn-primary:hover { background: var(--strong-hover); }
.btn-primary svg.go { transition: transform .15s; }
.btn-primary:hover svg.go { transform: translateX(3px); }
.btn-ghost { background: var(--paper); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--line-strong); box-shadow: var(--sh-1); }
.btn-av { justify-content: space-between; padding: 0 14px; background: var(--gold-soft); border-color: var(--gold-line); color: var(--gold-ink); }
.btn-av:hover { background: var(--gold-soft-2); border-color: var(--gold); }
.btn-av .t { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.btn-av .t small { font-size: 10.5px; font-weight: 700; color: var(--gold-ink-2); letter-spacing: .02em; }
.btn-gold { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--ink); box-shadow: 0 8px 18px -8px rgba(201,154,46,.8), inset 0 1px 0 rgba(255,255,255,.45); }
.btn-gold:hover { filter: brightness(1.03); }
.btn-icon { width: var(--tap); padding: 0; border-radius: 14px; }
.btn-wa { background: var(--wa-bg); color: var(--wa-fg); border-color: var(--wa-line); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-telegram { background: var(--tg-bg); color: var(--tg-fg); border-color: var(--tg-line); }
.btn-telegram:hover { background: var(--tg-hover); border-color: var(--tg-hover-line); }
.btn-block { width: 100%; }

/* round-trip legs */
.legs { display: grid; gap: 8px; }
.leg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--sunken-2); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.leg-tag { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.leg .ld { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leg .ld b { color: var(--text); font-weight: 800; }
.leg .lp { font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }
.fare-actions.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.fare-actions.two .btn-primary { grid-column: auto; }

/* ------------------------------------------------------------------ states */
.empty-state, .error-state { padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px dashed var(--line-dash); color: var(--muted); text-align: center; }
.error-state { border-color: var(--red-line); color: var(--red); display: grid; gap: 10px; justify-items: center; }
.skeleton { min-height: 140px; border-radius: var(--r-lg); background: linear-gradient(100deg, var(--sk-a) 20%, var(--sk-b) 40%, var(--sk-a) 60%); background-size: 200% 100%; animation: sk 1.3s infinite linear; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } html { scroll-behavior: auto; } .fare, .btn, .swap { transition: none; } }
.help { display: grid; gap: 12px; padding: 18px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.help h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.help p { margin: 0; color: var(--muted); font-size: 14px; }
.help .row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ------------------------------------------------------------------ alerts promo / info */
.soon { position: relative; overflow: hidden; display: grid; gap: 12px; padding: 26px; border-radius: var(--r-xl); color: #fff;
  background: radial-gradient(500px 260px at 100% 0%, rgba(233,190,85,.28), transparent 60%), linear-gradient(135deg, #0B1426, #172A52); box-shadow: var(--sh-2); }
.soon h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 4vw, 32px); letter-spacing: -.02em; }
.soon p { margin: 0; color: rgba(255,255,255,.75); max-width: 640px; }
.soon .tag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--gold-2); color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.soon .btn { justify-self: start; margin-top: 4px; }
.info { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .info { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.info .card { padding: 22px; border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.info .num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--gold); font-style: italic; }
.info .card h3 { margin: 10px 0 6px; font-size: 16px; }
.info .card p { margin: 0; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------------ Telegram alert dialog */
.alert-dialog { width: min(92vw, 480px); padding: 0; border: 0; border-radius: 24px; background: var(--paper); color: var(--text); box-shadow: var(--sh-3); }
.alert-dialog::backdrop { background: rgba(11,20,38,.55); backdrop-filter: blur(3px); }
.alert-dialog form { display: grid; gap: 16px; padding: 24px; }
.alert-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.alert-dialog h3 { margin: 0; font-family: var(--serif); font-size: 25px; font-weight: 600; }
.alert-dialog p { margin: 0; color: var(--muted); }
.alert-dialog .alert-summary { padding: 12px 14px; border-radius: 12px; background: var(--gold-soft); color: var(--text); font-weight: 750; }
.alert-dialog label { font-size: 13px; font-weight: 750; color: var(--text-2); }
.price-input { display: flex; align-items: center; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--field); overflow: hidden; }
.price-input:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.price-input span { padding-left: 16px; font-size: 18px; font-weight: 800; }
.price-input input { width: 100%; min-width: 0; padding: 12px; border: 0; outline: 0; background: transparent; font: inherit; font-size: 18px; font-weight: 800; color: var(--text); }
.alert-dialog-actions { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }

/* ------------------------------------------------------------------ airport sheet */
dialog.sheet { width: 100%; max-width: 600px; height: 92vh; height: 92dvh; max-height: none; margin: auto auto 0; padding: 0; border: 0;
  border-radius: 24px 24px 0 0; background: var(--paper); color: var(--text); box-shadow: var(--sh-3); overflow: hidden; }
dialog.sheet[open] { display: flex; flex-direction: column; }
@media (min-width: 720px) { dialog.sheet { margin: auto; height: min(86vh, 720px); border-radius: 24px; } }
dialog.sheet::backdrop { background: rgba(11,20,38,.5); backdrop-filter: blur(3px); }
.sheet-head { flex: none; padding: 14px 16px 10px; border-bottom: 1px solid var(--line-2); background: var(--paper); }
.sheet-title-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h3 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 22px; }
.sheet-search { position: relative; display: block; margin-top: 10px; }
.sheet-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.sheet-search input { width: 100%; min-height: 48px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 14px; background: var(--sunken);
  font: inherit; font-size: 16px; color: var(--text); outline: 0; transition: border-color .15s, box-shadow .15s, background .15s; }
.sheet-search input::placeholder { color: var(--faint); }
.sheet-search input:focus { border-color: var(--gold); background: var(--field); box-shadow: 0 0 0 3px rgba(233,190,85,.25); }
.sheet-selected { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 34px; margin-top: 10px; }
.token { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; max-width: 100%; padding: 0 8px 0 12px; border: 0; border-radius: 999px;
  background: var(--strong); color: var(--on-strong); font-weight: 700; font-size: 13px; cursor: pointer; }
.token span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.token svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.token:hover svg { opacity: 1; }
.link-btn { padding: 6px 4px; border: 0; background: none; color: var(--blue); font-weight: 700; font-size: 13px; cursor: pointer; }
.sel-empty { color: var(--faint); font-size: 13px; font-weight: 600; }
.sheet-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 12px 8px 16px; }
.regions { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 4px; }
@media (max-width: 719px) {
  .regions { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -8px; padding: 0 16px 6px;
    mask-image: linear-gradient(90deg, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .regions::-webkit-scrollbar { display: none; }
  .region { flex: none; }
}
.region { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--paper); color: var(--text-2); font-weight: 700; font-size: 13.5px; cursor: pointer; transition: background .12s, border-color .12s; }
.region:hover { border-color: var(--line-strong); }
.region small { padding: 1px 7px; border-radius: 999px; background: var(--tint); color: var(--muted); font-size: 11px; font-weight: 800; }
.region svg { width: 14px; height: 14px; color: var(--on-strong-accent); }
.region.part { border-color: var(--gold); background: var(--gold-soft); color: var(--text); }
.region.on { border-color: var(--strong); background: var(--strong); color: var(--on-strong); }
.region.on small { background: var(--on-strong-tint); color: var(--on-strong-accent); }
.ap-sec h4 { margin: 18px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.ap-grid { display: grid; gap: 2px; }
@media (min-width: 720px) { .ap-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 6px; } }
.ap-row { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px;
  border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; transition: background .12s; }
.ap-row:hover { background: var(--hover); }
.ap-row .box { width: 22px; height: 22px; display: grid; place-items: center; border: 2px solid var(--line-strong); border-radius: 7px; color: transparent; transition: background .12s, border-color .12s; }
.ap-row .box svg { width: 14px; height: 14px; }
.ap-row[aria-checked="true"] { background: var(--gold-soft); }
.ap-row[aria-checked="true"] .box { border-color: var(--strong); background: var(--strong); color: var(--on-strong-accent); }
.ap-name { min-width: 0; }
.ap-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; color: var(--text); }
.ap-name small { display: block; font-size: 11.5px; font-weight: 600; color: var(--faint); }
.ap-row.nd b { color: var(--muted); }
.ap-code { padding: 3px 8px; border-radius: 8px; background: var(--tint); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.more-btn { display: block; width: calc(100% - 20px); margin: 14px 10px 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px;
  background: none; color: var(--text-2); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.more-btn:hover { border-color: var(--line-strong); background: var(--sunken); }
.sheet-empty { margin: 28px 10px; color: var(--muted); text-align: center; }
.sheet-foot { flex: none; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-2); background: var(--paper); }
.sheet-foot .btn-primary:disabled { opacity: .45; cursor: default; box-shadow: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); font-weight: 650; font-size: 14px; cursor: pointer; transition: background .12s, border-color .12s; }
.chip small { color: var(--faint); font-weight: 700; font-size: 11px; margin-left: 4px; }
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"] { background: var(--strong); border-color: var(--strong); color: var(--on-strong); }
.chip[aria-pressed="true"] small { color: var(--on-strong-accent); }
.chip.group { border-style: dashed; }
.chip.nodirect { opacity: .42; }
.chip.nodirect[aria-pressed="true"] { opacity: .75; }
.note { font-size: 12.5px; color: var(--muted); }

/* ------------------------------------------------------------------ support */
.support-card { display: grid; gap: 22px; align-items: center; margin-top: 56px; padding: 28px;
  border: 1px solid var(--support-line); border-radius: var(--r-xl); background: linear-gradient(135deg, var(--support-a), var(--support-b)); box-shadow: var(--sh-2); }
.support-card h2 { margin: 4px 0 8px; font-family: var(--serif); font-size: clamp(26px, 4vw, 38px); font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.support-card p { margin: 0; max-width: 620px; color: var(--text-2); }
.support-action { display: grid; justify-items: start; gap: 8px; }
.support-action .btn { min-width: 180px; }
.support-action small { max-width: 220px; color: var(--support-ink); font-size: 11px; line-height: 1.35; }
@media (min-width: 720px) {
  .support-card { grid-template-columns: minmax(0, 1fr) auto; padding: 34px 38px; }
  .support-action { justify-items: stretch; text-align: center; }
}

/* ------------------------------------------------------------------ bottom nav */
.bottom-nav { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 58px; display: grid; grid-template-columns: repeat(3, 1fr);
  border-radius: 20px; background: rgba(11,20,38,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(11,20,38,.35); border: 1px solid rgba(255,255,255,.08); }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,255,.55); font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.bottom-nav a svg { width: 20px; height: 20px; }
.bottom-nav a.active { color: var(--gold-2); }
@media (min-width: 900px) { .bottom-nav { display: none; } }

.toast { position: fixed; z-index: 50; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h) + 22px + env(safe-area-inset-bottom)); padding: 11px 18px; border-radius: 14px; background: var(--strong); color: var(--on-strong); font-weight: 600; font-size: 14px; box-shadow: var(--sh-3); }
@media (min-width: 900px) { .toast { bottom: 26px; } }

/* ------------------------------------------------------------------ footer */
footer { margin-top: 56px; padding: 40px 0 30px; color: rgba(255,255,255,.62); font-size: 13px; background: var(--footer); }
footer .brand { margin-bottom: 14px; }
footer p { margin: 6px 0; max-width: 760px; }
footer a { color: var(--gold-2); }
footer .legal { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.08); }

/* ------------------------------------------------------------------ phone tuning (keep last) */
@media (max-width: 720px) {
  .seg-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 8px; }
  .seg button { min-height: 38px; font-size: 12.5px; padding: 0 4px; }
  .fields { margin-top: 12px; }
  .picker { min-height: 60px; padding: 8px 12px; }
  .field.pax { padding-top: 2px; }
  .stepper button { width: 34px; height: 34px; }
  .months { margin-top: 12px; }
}

.seg button { white-space: nowrap; }
.seg .s { display: none; }
@media (max-width: 720px) { .seg .l { display: none; } .seg .s { display: inline; } }
