/* letenky.dkweb.sk — vizuálny systém
   Mód: Data UI (tabuľky, ceny, grafy). Pravidlo: nič vonku (self-hosted fonty),
   jeden akcentný farb, dáta sú hlavný vizuál. */

:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f4f5f7;
  --surface-3: #eceef2;
  --ink: #14171e;
  --ink-2: #3a4256;
  --muted: #6b7280;
  --line: #e6e8ec;
  --line-soft: #eef0f3;
  --accent: #0f9d76;
  --accent-strong: #0b7d5e;
  --accent-soft: #e7f5f0;
  --accent-line: #bfe4d6;
  --down: #c23b3b;
  --down-soft: #fbecec;
  --amber: #b87503;
  --amber-soft: #fdf3e2;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-1: 0 1px 2px rgba(20, 23, 30, .04), 0 4px 12px -4px rgba(20, 23, 30, .06);
  --shadow-2: 0 2px 6px rgba(20, 23, 30, .05), 0 14px 32px -10px rgba(20, 23, 30, .12);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: 'Outfit', 'Segoe UI', system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.18; }
h1 { font-size: clamp(28px, 4.2vw, 40px); }
h2 { font-size: clamp(19px, 2.4vw, 24px); }
h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 12px; }
a { color: var(--accent-strong); text-decoration: none; }
a:hover { text-decoration: underline; }
svg { vertical-align: middle; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
main { padding: 40px 0 72px; }
section { margin-bottom: 60px; }
section:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}
.eyebrow svg { width: 15px; height: 15px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 62ch; }
.note { font-size: 14px; color: var(--muted); }
.dim { color: var(--muted); }

/* Textové stránky — užšia miera čítania. */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 34px; }
.prose p { color: var(--ink-2); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.sec-head p { margin: 6px 0 0; }

/* --- hlavička --- */
.site-head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(250, 250, 250, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 20px; height: 20px; color: var(--accent); }
.brand span { color: var(--muted); font-weight: 500; }
.site-head nav { display: flex; align-items: center; gap: 22px; font-size: 15px; flex-wrap: nowrap; }
.site-head nav a { color: var(--ink-2); white-space: nowrap; }
.site-head nav a:hover { color: var(--ink); text-decoration: none; }
.site-head nav a.active { color: var(--ink); font-weight: 600; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 15px; border-radius: 999px;
  background: var(--ink); color: #fff !important; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--accent-strong); color: #fff !important; }
.nav-cta svg { width: 15px; height: 15px; }

/* --- hero --- */
.hero { position: relative; margin-bottom: 44px; }
.hero::before {
  content: ''; position: absolute; inset: -40px -10% 30% -10%; z-index: -1;
  background: radial-gradient(60% 100% at 20% 0%, var(--accent-soft) 0%, rgba(250, 250, 250, 0) 70%);
}
.hero h1 { max-width: 20ch; margin-bottom: 14px; }
.hero .lead { max-width: 58ch; }

.search {
  display: grid; gap: 12px; margin-top: 26px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1);
}
.search label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.search input, .search select {
  font: 500 15px var(--sans); color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
.search input:focus, .search select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

/* --- univerzálne vyhľadávanie (krajina, letisko, mesto, trasa) --- */
.searchbox { position: relative; display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.searchbox .search-ico { position: absolute; left: 14px; display: inline-flex; color: var(--muted); pointer-events: none; }
.searchbox .search-ico svg { width: 16px; height: 16px; }
.searchbox input {
  flex: 1 1 auto; width: 100%; font: 500 15px var(--sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 12px 14px 12px 40px;
  transition: border-color .15s, box-shadow .15s;
}
.searchbox input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.searchbox .btn { flex: 0 0 auto; }
.searchbox-hero { max-width: 660px; }
.searchbox-page { max-width: 660px; margin-top: 18px; }
.searchbox-head { width: 260px; margin: 0; flex: 0 0 260px; }
.searchbox-head input { padding: 9px 12px 9px 36px; font-size: 14px; }
.searchbox-head .search-ico { left: 12px; }
.searchbox-head .btn { display: none; }

.suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40;
  margin: 0; padding: 6px; list-style: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-2);
}
.suggest li { margin: 0; }
.suggest a {
  display: flex; align-items: baseline; gap: 10px; padding: 9px 10px;
  border-radius: 8px; color: var(--ink); text-decoration: none;
}
.suggest a:hover, .suggest li.is-active a { background: var(--accent-soft); text-decoration: none; }
.suggest-title { font-weight: 600; }
.suggest-sub { flex: 1 1 auto; color: var(--muted); font-size: 13px; }
.suggest-kind { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.searchbox + .note { margin-top: 14px; }
.hero-sep { margin: 20px 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px var(--sans); padding: 11px 20px; border: 0; cursor: pointer;
  border-radius: var(--radius-sm); background: var(--accent); color: #fff;
  transition: background .15s, transform .15s, box-shadow .15s; white-space: nowrap;
}
.btn:hover { background: var(--accent-strong); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.btn svg { width: 16px; height: 16px; }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-dark { background: var(--ink); }
.btn-dark:hover { background: var(--accent-strong); }

/* --- pás štatistik --- */
.stats {
  display: flex; flex-wrap: wrap; gap: 0; margin: 0 0 56px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.stats div { flex: 1 1 160px; padding: 18px 22px; border-right: 1px solid var(--line-soft); }
.stats div:last-child { border-right: 0; }
.stats strong { display: block; font: 500 26px var(--mono); letter-spacing: -.03em; }
.stats span { font-size: 13px; color: var(--muted); }

/* --- bench liaty (porovnanie cien) --- */
.bench { display: grid; grid-template-columns: minmax(150px, 1.4fr) minmax(120px, 2fr) auto; gap: 16px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line-soft); }
.bench:last-child { border-bottom: 0; }
.bench-label { display: flex; align-items: center; gap: 9px; min-width: 0; }
.bench-label a { color: var(--ink); font-weight: 600; }
.bench-label a:hover { color: var(--accent-strong); text-decoration: none; }
.bench-label .code { color: var(--muted); font-weight: 500; font-size: 12px; font-family: var(--mono); }
.bench-track { height: 10px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.bench-fill { height: 100%; border-radius: 999px; background: var(--accent); opacity: .85; }
.bench-fill.is-high { background: var(--amber); }
.bench-val { font: 500 15px var(--mono); white-space: nowrap; }
.bench-val small { color: var(--muted); font-size: 12px; font-family: var(--sans); margin-left: 6px; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.chip svg { width: 13px; height: 13px; }
.chip-down { background: var(--down-soft); color: var(--down); }
.chip-up { background: var(--accent-soft); color: var(--accent-strong); }
.chip-amber { background: var(--amber-soft); color: var(--amber); }

/* --- tabuľka --- */
.table-wrap {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-1);
}
table.trips { width: 100%; border-collapse: collapse; font-size: 15px; }
table.trips th {
  text-align: left; padding: 12px 16px; background: var(--surface-2);
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--muted); border-bottom: 1px solid var(--line);
}
table.trips td { padding: 13px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.trips tbody tr:last-child td { border-bottom: 0; }
table.trips tbody tr { transition: background .12s; }
table.trips tbody tr:hover { background: var(--surface-2); }
.city { font-weight: 600; color: var(--ink); }
.city:hover { color: var(--accent-strong); text-decoration: none; }
.code { font-family: var(--mono); font-size: 12px; color: var(--muted); font-weight: 400; }
.price { font: 500 17px var(--mono); letter-spacing: -.02em; white-space: nowrap; }
.term { color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.row-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--accent-strong); white-space: nowrap; }
.row-cta:hover { text-decoration: none; color: var(--accent); }
.row-cta svg { width: 14px; height: 14px; }

/* --- karty / panely --- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow-1);
}
.panel-accent { background: var(--accent-soft); border-color: var(--accent-line); }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }

.watch-box {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 22px 24px;
}
.watch-box .icon-badge {
  width: 42px; height: 42px; border-radius: 12px; background: var(--accent);
  color: #fff; display: grid; place-items: center;
}
.watch-box .icon-badge svg { width: 21px; height: 21px; }
.watch-box h2 { margin-bottom: 6px; }
.watch-box .lead { font-size: 16px; margin-bottom: 14px; }

/* --- časová os (ako to funguje) --- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--accent-line); }
.timeline li { position: relative; padding: 0 0 22px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--surface); border: 2px solid var(--accent);
}
.timeline strong { display: block; font-weight: 600; }
.timeline p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.timeline + p { margin-top: 22px; }

/* --- sledovanie --- */
.watch-form { margin-top: 24px; }
.watch-form .grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 16px; }
.watch-form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.watch-form input, .watch-form select {
  font: 500 15px var(--sans); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; width: 100%;
}
.watch-form input:focus, .watch-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.watch-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px 14px; margin: 0 0 16px; display: flex; gap: 22px; flex-wrap: wrap; }
.watch-form legend { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 0 6px; }
.watch-form .check { flex-direction: row; align-items: flex-start; gap: 9px; color: var(--ink); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: 15px; }
.watch-form .check input { width: auto; margin-top: 3px; accent-color: var(--accent); }
.watch-form .consent { margin: 4px 0 18px; font-size: 14px; font-weight: 400; color: var(--muted); text-transform: none; letter-spacing: 0; }
.watch-form .hp { position: absolute; left: -9999px; }
.form-errors { background: var(--down-soft); border: 1px solid #f0c9c9; color: #8f2626; border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; }
.form-errors ul { margin: 6px 0 0; padding-left: 20px; }

/* --- CTA tlačidlá --- */
.ctas { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0 8px; }
.cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s;
}
.cta:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-1); }
.cta svg { width: 15px; height: 15px; }
.cta-stays { background: var(--surface); border-color: var(--line); color: var(--ink); }
.cta-stays:hover { background: var(--surface-2); color: var(--ink); }
.cta-flights { background: var(--accent); color: #fff; }
.cta-flights:hover { background: var(--accent-strong); color: #fff; }
.cta-watch { background: var(--ink); color: #fff; }
.cta-watch:hover { background: var(--accent-strong); color: #fff; }
.ghost { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 14px; background: var(--surface); }
.ghost:hover { color: var(--ink); text-decoration: none; border-color: var(--muted); }
.aff { font-size: 11px; font-weight: 500; color: var(--muted); }

/* --- graf --- */
.trend { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-1); }
.trend h2 { margin-bottom: 4px; }
.spark { width: 100%; max-width: 460px; height: auto; color: var(--accent); display: block; margin-top: 14px; }
.spark-wrap { display: flex; align-items: flex-end; gap: 22px; flex-wrap: wrap; }
.spark-legend { font-size: 13px; color: var(--muted); }

/* --- zoznamy --- */
.linklist { padding-left: 20px; margin: 8px 0 0; }
.linklist li { margin: 5px 0; }
.linklist a { color: var(--ink); font-weight: 500; }
.linklist a:hover { color: var(--accent-strong); }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  display: block; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; color: var(--ink);
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { border-color: var(--accent-line); text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-weight: 600; }
.card-price { font: 500 20px var(--mono); letter-spacing: -.03em; margin: 8px 0 2px; }
.card-sub { color: var(--muted); font-size: 13px; }

.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.more { margin-top: 16px; font-size: 15px; }
.more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.more svg { width: 15px; height: 15px; }

/* --- pätička --- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 40px 0 44px; font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.site-foot p { color: var(--muted); margin: 0 0 10px; }
.site-foot strong { color: var(--ink); }
.site-foot h4 { margin: 0 0 10px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin: 5px 0; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--accent-strong); }
.site-foot .legal { font-size: 13px; color: var(--muted); }

/* --- drobnosti --- */
.error-page { text-align: center; padding: 60px 0; }
.error-page h1 { margin-bottom: 10px; }
@media (max-width: 1180px) and (min-width: 561px) {
  .searchbox-head { display: none; }
}
@media (max-width: 860px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .site-foot .wrap { grid-template-columns: 1fr; gap: 22px; }
  .site-head nav { gap: 14px; font-size: 14px; }
  .bench { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .bench-track { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .search, .watch-form .grid { grid-template-columns: 1fr; }
  .site-head .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 10px; }
  /* navigácia na úzkom displeji nech sa posúva, nech sa nedrobí na slová */
  .site-head nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; gap: 16px; padding-bottom: 2px; scrollbar-width: none; }
  .site-head nav::-webkit-scrollbar { display: none; }
  .site-head nav a { white-space: nowrap; }
  .searchbox-head { display: flex; width: 100%; flex: 1 1 auto; }
  table.trips { font-size: 14px; }
  table.trips th, table.trips td { padding: 10px 12px; }
  .watch-box { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
