@font-face { font-family: "Commissioner"; src: url("fonts/commissioner-400-latin-greek.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Commissioner"; src: url("fonts/commissioner-700-800-latin-greek.woff2") format("woff2"); font-weight: 700 800; font-display: swap; }

:root {
  /* Tokens από design/DESIGN.md (Stitch project 2997029788469088210, design system 11152406398089430092) */
  --bg: #ffffff;
  --surface: #f4f8fb;
  --ink: #14212e;
  --ink-2: #4a5b6c;
  --line: #d6e2ec;
  --sea: #0b5e8a;
  --sea-deep: #074a6e;
  --sky: #e3f1fa;
  --sky-deco: #38a3d9;
  --mastic: #f2a33a;
  --mastic-ink: #a95a00;
  --card: #ffffff;
  --ok: #1b6e35;   --ok-bg: #e6f4ea;
  --warn: #7a4f00; --warn-bg: #fff3d1;
  --bad: #b3261e;  --bad-bg: #fdecea;
  --info-bg: #eef3f6;
  --r: 16px;
  --r-s: 12px;
  --shadow: 0 2px 8px rgba(11,94,138,.08);
  --shadow-hover: 0 6px 18px rgba(11,94,138,.12);
  --gap: 16px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Commissioner", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 16px; }
a { color: var(--sea); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 2px; }
[hidden] { display: none !important; }

.xbar { display: flex; gap: 14px; overflow-x: auto; padding: 6px 16px; background: var(--sea-deep); font-size: 13px; white-space: nowrap; scrollbar-width: none; }
.xbar a { color: #cfe6f1; text-decoration: none; }
.xbar a[aria-current] { color: #fff; }
.xbar a[aria-current] b { color: var(--mastic); }
.wave { display: block; width: 120px; height: 10px; margin: -8px 0 16px; color: var(--sky-deco); }
.xbar-dom { opacity: .7; }

.top { max-width: 760px; margin: 0 auto; padding: 14px 16px 0; }
.brand { display: inline-flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); }
.brand-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--sea); display: grid; place-items: center; }
.brand-ico svg { width: 26px; height: 26px; fill: #fff; }
.brand-ico svg path:first-child { fill: var(--mastic); }
.brand-name { display: block; font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 13px; color: var(--ink-2); }

main { max-width: 760px; margin: 0 auto; padding: 0 16px 32px; }
.hero { padding: 18px 0 8px; }
.quip { font-size: clamp(22px, 5.4vw, 30px); font-weight: 800; line-height: 1.2; margin: 6px 0 18px; letter-spacing: -.015em; }
.quip { padding-left: 14px; border-left: 4px solid var(--mastic); }

.search { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; }
.places { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.field { display: grid; gap: 4px; }
.lbl { font-size: 13px; font-weight: 700; color: var(--ink-2); }
select, input[type=date] { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-s); background: #fff; }
.swap { width: 44px; height: 48px; border-radius: var(--r-s); border: 1px solid var(--line); background: #fff; color: var(--sea); cursor: pointer; display: grid; place-items: center; }
.swap svg { width: 22px; height: 22px; }
.lbl-inline { font-size: 12px; font-weight: 700; color: var(--ink-2); text-transform: none; margin-right: 6px; }
.opt-hdr { margin: 12px 0 0; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; }
.opt-hdr:first-child { margin-top: 4px; }
.toggle { display: flex; gap: 10px; align-items: center; cursor: pointer; font-size: 15px; }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { flex: none; width: 42px; height: 24px; border-radius: 12px; background: #b9c9d1; position: relative; transition: background .15s; }
.toggle .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.toggle input:checked + .track { background: var(--sea); }
.toggle input:checked + .track::after { transform: translateX(18px); }
.toggle input:focus-visible + .track { outline: 2px solid var(--sea); outline-offset: 2px; }
.toggle small { color: var(--ink-2); }
.go { min-height: 52px; border: 0; border-radius: var(--r-s); background: var(--mastic); color: var(--ink); font-weight: 800; font-size: 17px; cursor: pointer; }
.go:hover { filter: brightness(.96); }
.go[disabled] { opacity: .6; cursor: progress; }
.form-err { margin: 0; color: var(--bad); font-weight: 700; }

.banner { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-s); font-size: 15px; }
.banner.tip-chip { padding: 0; background: none; position: relative; }
.tip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid #f3c2bd; background: var(--bad-bg); color: var(--bad); font-weight: 700; font-size: 14px; cursor: help; }
.tip-body { position: absolute; left: 0; top: calc(100% + 6px); z-index: 20; max-width: 320px; padding: 10px 12px; border-radius: var(--r-s); background: var(--ink); color: #fff; font-size: 14px; box-shadow: var(--shadow-hover); visibility: hidden; opacity: 0; transition: opacity .12s; }
.tip.warn { border-color: #f0d79a; background: var(--warn-bg); color: var(--warn); }
.tip:hover + .tip-body, .tip:focus-visible + .tip-body, .tip[aria-expanded=true] + .tip-body { visibility: visible; opacity: 1; }
.banner.closed { background: var(--bad-bg); color: #5c120d; border: 1px solid #f3c2bd; }
.banner.short { background: var(--bad-bg); color: #5c120d; border: 1px solid #f3c2bd; }
.banner.open { background: var(--ok-bg); color: #0d3d25; }

.results { display: grid; gap: 12px; margin-top: 8px; }
.res-quip { font-size: 20px; font-weight: 800; margin: 12px 0 4px; line-height: 1.25; }
.res-meta { font-size: 13px; color: var(--ink-2); margin: 0; }
.note { background: var(--info-bg); border-radius: var(--r-s); padding: 10px 12px; font-size: 14px; margin: 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .15s; }
.card:hover { box-shadow: var(--shadow-hover); }
.card-head { all: unset; box-sizing: border-box; display: grid; gap: 10px; width: 100%; padding: 16px; cursor: pointer; }
.card-head:focus-visible { outline: 2px solid var(--sea); outline-offset: -2px; }
.ch-top { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tags:empty { display: none; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--sky); color: var(--sea); }
.tag.cheapest { background: var(--ok-bg); color: var(--ok); }
.tag.fewest_changes { background: var(--warn-bg); color: var(--mastic-ink); }
.title { display: block; font-weight: 700; font-size: 19px; line-height: 1.3; }
.sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.sub:empty { display: none; }
.ch-right { text-align: right; }
.leg-main .tz, .times .tz { font-size: 12px; font-weight: 600; color: var(--ink-2); margin: 0 2px; }
.dur { display: block; font-weight: 800; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price { display: block; font-weight: 700; font-size: 14px; color: var(--sea); margin-top: 2px; }
.ch-legs { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.dots { display: flex; align-items: center; gap: 4px; }
.dot { width: 32px; height: 32px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-size: 16px; }
.dot.ground { background: #fdf0dc; }
.dots .dash { width: 14px; border-top: 2px dashed var(--line); }
.changes { font-size: 13px; color: var(--ink-2); }
.times { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.times .tz { font-size: 12px; font-weight: 700; color: var(--ink-2); margin: 0 4px; }
.times .plus { font-size: 12px; font-weight: 700; color: var(--mastic-ink); vertical-align: super; margin-left: 2px; }
.ch-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.risk { display: flex; gap: 6px; flex-wrap: wrap; }
.ch-bottom:has(.risk:empty) { border-top: 0; padding-top: 0; justify-content: flex-end; margin-top: -8px; }
.chev { color: var(--ink-2); font-size: 22px; line-height: 1; transition: transform .15s; }
.card-head[aria-expanded=true] .chev { transform: rotate(90deg); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; border: 1px solid transparent; }
.badge.low { background: var(--ok-bg); color: var(--ok); border-color: #b9dcc4; }
.badge.medium { background: var(--warn-bg); color: var(--warn); border-color: #f0d79a; }
.badge.high { background: var(--bad-bg); color: var(--bad); border-color: #f3c2bd; }
.badge.unknown { background: var(--info-bg); color: var(--ink-2); }
.badge.night { background: #efe9ff; color: #4b2c8f; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 700; font-size: 14px; cursor: pointer; }
.chip[aria-pressed=true] { background: var(--sea); border-color: var(--sea); color: #fff; }
.notice { background: var(--warn-bg); color: var(--warn); border: 1px solid #f0d79a; border-radius: var(--r-s); padding: 12px 14px; font-weight: 700; margin: 0; }

.card-body { border-top: 1px solid var(--line); padding: 8px 16px 16px; }
.legs { list-style: none; margin: 0; padding: 0; }
.leg { display: grid; grid-template-columns: 28px 1fr; gap: 4px 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.leg:last-child { border-bottom: 0; }
.leg-ico { font-size: 18px; line-height: 1.3; }
.leg-main { font-weight: 700; }
.leg-sub { font-size: 14px; color: var(--ink-2); }
.leg-risk { font-size: 14px; margin-top: 4px; }
.leg.ground { color: var(--ink-2); }
.leg.wait .leg-main { font-weight: 400; font-style: italic; color: var(--ink-2); }
.book { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0 14px; border-radius: var(--r-s); background: var(--mastic); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.book:hover { filter: brightness(.96); }
.est { font-size: 12px; font-weight: 700; color: var(--mastic-ink); background: var(--warn-bg); padding: 1px 6px; border-radius: 6px; margin-left: 6px; }
.card-notes { margin: 10px 0 0; padding-left: 18px; font-size: 14px; }

.empty { text-align: center; padding: 20px 8px; background: var(--sky); border-radius: var(--r); }
.empty .res-quip { font-size: 22px; }
.alt-btn { margin-top: 12px; min-height: 48px; padding: 0 18px; border-radius: var(--r-s); border: 0; background: var(--sea); color: #fff; font-weight: 800; cursor: pointer; }

.loading { padding: 18px 4px; color: var(--ink-2); }
.skel { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, #eef4f7 0%, #f7fafb 50%, #eef4f7 100%); background-size: 200% 100%; animation: sk 1.2s infinite linear; margin-top: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } * { transition: none !important; } }

.foot { max-width: 760px; margin: 0 auto; padding: 20px 16px 40px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.muted { opacity: .8; }

@media (min-width: 720px) {
  .search { grid-template-columns: 1fr 220px; padding: 20px; }
  .places { grid-column: 1 / -1; }
  .go { grid-column: 2; grid-row: 2; align-self: end; }
  .form-err { grid-column: 1 / -1; }
}

.list { display: grid; gap: 12px; }
