/* =====================================================================
   Přílety.cz — design systém
   Estetika: coss.com/ui — střídmost, jemné bordery, promyšlený spacing.
   Tématický jazyk: letištní tabule (mono časy/kódy, signální stavy).
   Mobile-first.

   Používáme vlastní CSS s design tokeny (ne Tailwind CDN v produkci —
   pro build je připraven tailwind.config.js; tento soubor je hotový
   výstup pokrývající použité utility + komponenty).
   ===================================================================== */

:root {
  /* neutrální škála — chladná šedá jako coss */
  --gray-50:  #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-400: #94a3b8;
  --gray-500: #64748b;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1e293b;
  --gray-900: #0f172a;

  /* značka: obloha */
  --sky-500: #1f7ae0;
  --sky-600: #1a68c2;
  --sky-50:  #eaf2fd;

  /* signální stavy tabule */
  --ok:     #12a05a;   /* přistál / včas */
  --ok-bg:  #e7f6ee;
  --air:    #1f7ae0;   /* ve vzduchu */
  --air-bg: #eaf2fd;
  --gatec:  #7c3aed;   /* boarding/gate */
  --gate-bg:#f3eefe;
  --warn:   #d97706;   /* zpoždění */
  --warn-bg:#fdf3e3;
  --bad:    #dc2626;   /* zrušen */
  --bad-bg: #fdeaea;
  --plan:   #64748b;   /* plánován */
  --plan-bg:#f1f5f9;

  --amber:  #e8890c;   /* kódy/časy na tabuli */

  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05);
  --shadow: 0 4px 16px -6px rgba(15,23,42,.12);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
}

/* ---- reset & base --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-800);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; display: block; }
a { color: var(--sky-600); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }

.mono { font-family: var(--font-mono); }

/* ---- layout --------------------------------------------------------- */
.container { width: 100%; max-width: 1040px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px) { .container { padding-inline: 24px; } }
main { flex: 1; }

/* =====================================================================
   NAVIGACE — tři režimy podle zařízení:
   · mobil  (<768px):   sticky bottom bar (standard aplikací) + mini topbar
   · tablet (768–1099): horní toolbar s user dropdownem
   · desktop (≥1100px): levý sidebar
   ===================================================================== */

.shell { display: flex; min-height: 100vh; }
.shell-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.brand {
  font-family: var(--font-mono); font-weight: 700; font-size: 17px;
  letter-spacing: .01em; color: var(--gray-900); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 8px;
}
.brand b { color: var(--sky-500); }
.brand:hover { text-decoration: none; }
.brand .brand-tag { font-size: 11px; font-weight: 400; color: var(--gray-400); }
.brand-logo { height: 26px; width: auto; display: block; }
.sidebar .brand-logo { height: 36px; }

.nav-ico { width: 21px; height: 21px; stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---- SIDEBAR (desktop) ------------------------------------------------ */
.sidebar {
  display: none;
  width: 228px; flex-shrink: 0;
  background: #fff; border-right: 1px solid var(--gray-200);
  position: sticky; top: 0; height: 100vh;
  flex-direction: column; padding: 20px 14px;
}
.sidebar .brand { padding: 6px 10px 22px; }
.side-group { margin-top: 14px; }
.side-label {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gray-400); padding: 0 10px 6px;
}
.side-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--gray-600); text-decoration: none; margin-bottom: 2px;
}
.side-link:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }
.side-link.active { background: var(--sky-50); color: var(--sky-600); }
.sidebar-foot { margin-top: auto; border-top: 1px solid var(--gray-200); padding-top: 12px; }

/* ---- TOPBAR (tablet; na mobilu jen mini varianta) ---------------------- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--gray-200);
  position: sticky; top: 0; z-index: 40;
}
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 54px; gap: 16px;
}
.topbar-nav { display: none; gap: 2px; align-items: center; flex: 1; }
.top-link {
  padding: 7px 12px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--gray-600); text-decoration: none;
}
.top-link:hover { background: var(--gray-100); color: var(--gray-900); text-decoration: none; }
.top-link.active { background: var(--sky-50); color: var(--sky-600); }

/* ---- USER DROPDOWN ------------------------------------------------------ */
.user-menu { position: relative; }
.user-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 10px; border-radius: 8px; border: 1px solid var(--gray-200);
  background: #fff; font-size: 13.5px; font-weight: 500; color: var(--gray-700);
  max-width: 220px;
}
.user-btn:hover { border-color: var(--gray-300); background: var(--gray-50); }
.user-btn .u-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-btn .chev { width: 14px; height: 14px; stroke: var(--gray-400); transition: transform .15s; }
.user-menu.open .user-btn .chev { transform: rotate(180deg); }
.user-drop {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  min-width: 200px; background: #fff; border: 1px solid var(--gray-200);
  border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 60;
}
.user-menu.open .user-drop { display: block; }
.drop-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 9px 10px; border-radius: 7px; font-size: 14px; color: var(--gray-700);
  text-decoration: none; border: 0; background: none; text-align: left; cursor: pointer;
}
.drop-item:hover { background: var(--gray-100); text-decoration: none; }
.drop-item.danger { color: var(--bad); }
.drop-sep { height: 1px; background: var(--gray-200); margin: 5px 4px; }
.drop-head { padding: 8px 10px 6px; font-size: 12px; color: var(--gray-400);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- BOTTOM BAR (mobil) -------------------------------------------------- */
.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: #fff; border-top: 1px solid var(--gray-200);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-link {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 8px 4px 7px; font-size: 10.5px; font-weight: 600;
  color: var(--gray-500); text-decoration: none;
}
.bottom-link:hover { text-decoration: none; }
.bottom-link.active { color: var(--sky-600); }
.bottom-link .nav-ico { width: 22px; height: 22px; }
/* „Více" je <button> — reset, ať vypadá jako ostatní položky lišty */
.bottom-more { background: none; border: 0; cursor: pointer; font-family: inherit; }

/* ---- popup menu nad spodní lištou (mobil) --------------------------------- */
.more-sheet { position: fixed; inset: 0; z-index: 60; }
.more-sheet[hidden] { display: none; }
.more-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,.35);
  opacity: 0; transition: opacity .2s ease; }
.more-sheet.is-open .more-backdrop { opacity: 1; }
.more-panel {
  position: absolute; left: 0; right: 0;
  bottom: calc(58px + env(safe-area-inset-bottom));  /* nad lištou */
  background: #fff; border-top-left-radius: 16px; border-top-right-radius: 16px;
  box-shadow: 0 -8px 30px -8px rgba(15,23,42,.25);
  padding: 8px 10px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(12px); opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.more-sheet.is-open .more-panel { transform: translateY(0); opacity: 1; }
.more-grip { width: 40px; height: 4px; border-radius: 999px; background: var(--gray-200);
  margin: 4px auto 10px; }
.more-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px; border-radius: 10px; color: var(--gray-800);
  font-size: 15px; font-weight: 600; text-decoration: none;
}
.more-item:hover, .more-item:active { background: var(--gray-50); text-decoration: none; }
.more-item.active { background: var(--sky-50); color: var(--sky-600); }
.more-item .nav-ico { width: 22px; height: 22px; flex: 0 0 auto; }
.more-item-muted { color: var(--gray-500); }
/* odhlášení musí být POST (CSRF), takže je to tlačítko ve formuláři —
   sjednotíme vzhled s ostatními položkami panelu */
.more-item-form { display: block; width: 100%; margin: 0; }
button.more-item {
  width: 100%; border: 0; background: none; text-align: left;
  font-weight: 600; cursor: pointer;
}
.more-item-muted .nav-ico { color: var(--gray-400); }

/* mobil: prostor pro bottom bar, aby obsah nebyl schovaný */
body.has-bottombar main { padding-bottom: 70px; }
body.has-bottombar .site-footer { --footer-pad-b: 82px; }

/* ---- breakpointy ---------------------------------------------------------- */
.tablet-up { display: none !important; }

@media (min-width: 768px) {
  .bottombar { display: none; }
  .tablet-up { display: inline-flex !important; }
  body.has-bottombar main { padding-bottom: 0; }
  body.has-bottombar .site-footer { --footer-pad-b: 44px; }
  .topbar-nav { display: flex; }
}
@media (min-width: 1100px) {
  .sidebar { display: flex; }
  .topbar { display: none; }
}

/* mobil (<768): žádná sticky lišta — jen statické logo nad obsahem */
.mobile-brand { display: none; }
@media (max-width: 767px) {
  .topbar { display: none; }
  .mobile-brand { display: block; padding: 18px 0 2px; }
  .mobile-brand .brand-logo { height: 30px; }
  /* logo vlevo, hodiny vpravo nahoře vedle něj */
  .mobile-brand-row { display: flex; align-items: center;
    justify-content: space-between; gap: 12px; }
  .mobile-clock { text-align: right; flex: 0 0 auto; }
  .mobile-clock .clock { font-size: 19px; }
  .mobile-clock .clock-date { font-size: 11px; }
  /* hodiny v hero se na mobilu skryjí — jsou nově vedle loga (v hero zůstávají
     pro tablet/desktop dle zadání) */
  .hero-clock { display: none; }
}

/* ---- buttons --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600;
  min-height: 42px; /* ikonová tlačítka (jen SVG) drží výšku textových */
  border: 1px solid transparent; transition: background .12s, border-color .12s;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--sky-500); color: #fff; }
.btn-primary:hover { background: var(--sky-600); }
.btn-outline { background: #fff; border-color: var(--gray-300); color: var(--gray-700); }
.btn-outline:hover { border-color: var(--gray-400); background: var(--gray-50); }
.btn-danger { background: var(--bad); color: #fff; }
.btn-sm { padding: 6px 11px; font-size: 13px; border-radius: 8px; min-height: 0; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* ---- forms ----------------------------------------------------------- */
.field { margin-bottom: 16px; }
.label {
  display: block; font-size: 13px; font-weight: 600; color: var(--gray-700);
  margin-bottom: 6px;
}
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); background: #fff; font-size: 15px;
  color: var(--gray-900); transition: border-color .12s, box-shadow .12s;
}
.input:focus {
  outline: none; border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(31,122,224,.15);
}
.input.error { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 13px; margin-top: 5px; }
.hint { font-size: 13px; color: var(--gray-500); margin-top: 5px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--gray-600); }
.checkbox-row input { width: 16px; height: 16px; accent-color: var(--sky-500); }

.select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--gray-300);
  border-radius: var(--radius); background: #fff; font-size: 14px;
}

/* ---- cards ------------------------------------------------------------ */
.card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-pad { padding: 20px; }
@media (min-width: 640px) { .card-pad { padding: 24px; } }

/* ---- flash zprávy ------------------------------------------------------ */
.flash {
  padding: 12px 14px; border-radius: var(--radius); font-size: 14px;
  margin-bottom: 16px; border: 1px solid;
}
.flash-success { background: var(--ok-bg); border-color: #bfe5cf; color: #0d7a44; }
.flash-error   { background: var(--bad-bg); border-color: #f3c2c2; color: #b91c1c; }

/* ---- auth stránky ------------------------------------------------------ */
.auth-wrap {
  max-width: 400px; margin: 0 auto; padding: 40px 16px 64px;
}
.auth-title { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-bottom: 4px; }
.auth-sub { color: var(--gray-500); font-size: 14px; margin-bottom: 24px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px; margin: 18px 0;
  color: var(--gray-400); font-size: 13px;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px; background: var(--gray-200);
}
.auth-foot { text-align: center; font-size: 14px; color: var(--gray-500); margin-top: 20px; }

.btn-google {
  width: 100%; background: #fff; border: 1px solid var(--gray-300);
  color: var(--gray-700); font-weight: 500;
}
.btn-google:hover { background: var(--gray-50); }
.btn-google svg { width: 18px; height: 18px; }

/* ---- TABULE (signature prvek) ------------------------------------------ */
.board-card {
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm);
}
.board-tabs {
  display: flex; border-bottom: 1px solid var(--gray-200); background: var(--gray-50);
}
.board-tab {
  flex: 1; text-align: center; padding: 12px 8px; font-size: 14px; font-weight: 600;
  color: var(--gray-500); border-bottom: 2px solid transparent; text-decoration: none;
}
.board-tab:hover { color: var(--gray-800); text-decoration: none; }
.board-tab.active { color: var(--sky-600); border-bottom-color: var(--sky-500); background: #fff; }

.board-row {
  display: grid; align-items: center; gap: 10px;
  padding: 12px 14px; border-bottom: 1px solid var(--gray-100);
  grid-template-columns: 1fr 34px auto 34px; /* mobil: destinace | logo | čas+stav | akce */
  text-decoration: none; color: inherit;
}
.board-row:hover { background: var(--gray-50); text-decoration: none; }
.board-row:last-child { border-bottom: none; }

/* Široký layout řádku řídí šířka KARTY (container query): plná tabule ano,
   úzká HP karta zůstává v kompaktu s maximem místa pro destinaci.
   @media fallback pro prohlížeče bez CQ (tam rozhoduje viewport). */
.board-card { container-type: inline-size; }
@container (min-width: 640px) {
  .board-row {
    grid-template-columns: 1fr 40px 130px 120px 40px; /* destinace | logo | čas | stav | akce */
    padding: 13px 18px; gap: 14px;
  }
  /* .board-row prefix: vyšší specificita než base pravidla definovaná níže */
  .board-row .f-status-mobile { display: none; }
  .board-row .f-status-desktop { display: block; }
  .board-row .airline-logo { width: 40px; height: 40px; }
}
@supports not (container-type: inline-size) {
  @media (min-width: 640px) {
    .board-row {
      grid-template-columns: 1fr 40px 130px 120px 40px;
      padding: 13px 18px; gap: 14px;
    }
  }
}

/* logo aerolinky = vizuální kotva */
.airline-logo {
  width: 34px; height: 34px; border-radius: 8px; background: var(--gray-100);
  display: grid; place-items: center; overflow: hidden; flex-shrink: 0;
}
@supports not (container-type: inline-size) {
  @media (min-width: 640px) { .airline-logo { width: 40px; height: 40px; } }
}
.airline-logo img { width: 100%; height: 100%; object-fit: contain; padding: 5px; }
.airline-logo .fallback {
  font-family: var(--font-mono); font-weight: 700; font-size: 13px; color: var(--gray-500);
}

.f-num {
  font-family: var(--font-mono); font-weight: 700; font-size: 14px;
  color: var(--amber); letter-spacing: .02em;
}
.f-mid { min-width: 0; }
.f-city {
  font-weight: 600; font-size: 15px; color: var(--gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f-airline {
  font-size: 12.5px; color: var(--gray-500);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.f-time { text-align: right; }
.f-clock { font-family: var(--font-mono); font-weight: 600; font-size: 15px; color: var(--gray-900); }
.f-clock .old { text-decoration: line-through; color: var(--gray-400); font-weight: 400; font-size: 12.5px; margin-right: 5px; }
.f-rel { font-size: 12px; color: var(--gray-500); }

/* stavový štítek — barevné kódování */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 100px;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-done  { background: var(--ok-bg);   color: var(--ok); }
.badge-air   { background: var(--air-bg);  color: var(--air); }
.badge-gate  { background: var(--gate-bg); color: var(--gatec); }
.badge-delay { background: var(--warn-bg); color: var(--warn); }
.badge-cancel{ background: var(--bad-bg);  color: var(--bad); }
.badge-plan  { background: var(--plan-bg); color: var(--plan); }

.badge-air::before { animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* mobil/úzká karta: stav pod časem; široká karta: vlastní sloupec (viz @container) */
.f-status-mobile { margin-top: 3px; }
.f-status-desktop { display: none; text-align: right; }
@supports not (container-type: inline-size) {
  @media (min-width: 640px) {
    .f-status-mobile { display: none; }
    .f-status-desktop { display: block; }
  }
}

/* prázdná tabule */
.board-empty {
  padding: 44px 20px; text-align: center; color: var(--gray-500); font-size: 14px;
}
.board-empty .mono { color: var(--gray-400); font-size: 13px; margin-top: 4px; }

/* přepínač letišť */
.airport-chip {
  padding: 7px 14px; border-radius: 100px; border: 1px solid var(--gray-300);
  background: #fff; font-size: 14px; font-weight: 500; color: var(--gray-600);
  white-space: nowrap; text-decoration: none;
}
.airport-chip:hover { border-color: var(--gray-400); text-decoration: none; }
.airport-chip.active {
  background: var(--gray-900); border-color: var(--gray-900); color: #fff;
}
.airport-chip .mono { font-size: 12px; opacity: .65; margin-left: 5px; }

.hero-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.hero-clock { text-align: right; padding-top: 6px; }
@media (max-width: 640px) { .hero-clock { text-align: left; } }

/* ---- modal sledování letu --------------------------------------------------- */
.wm-overlay {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(15,23,42,.55); padding: 16px; overflow: auto;
}
.wm-box { max-width: 400px; margin: 60px auto; background: #fff; }
.wm-channel {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 12px; border: 1px solid var(--gray-200); border-radius: 10px;
  margin-bottom: 8px; cursor: pointer;
}
.wm-channel:hover { border-color: var(--sky-500); }
.wm-channel input { margin-top: 3px; }
.wm-channel span span { display: block; }
.wm-disabled { opacity: .55; cursor: not-allowed; }
.wm-divider {
  display: flex; align-items: center; gap: 10px; margin: 14px 0;
  color: var(--gray-400); font-size: 12px;
}
.wm-divider::before, .wm-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--gray-200);
}
.wm-error { color: var(--bad); margin-top: 8px; }
.btn-block { display: block; width: 100%; }

/* ---- detail letu: hero s osou ---------------------------------------------- */
.fd-hero { padding: 20px 22px 16px; }
.fd-hero-top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 14px; flex-wrap: wrap; margin-bottom: 18px;
}
.fd-num { font-size: 26px; font-weight: 700; color: var(--amber); letter-spacing: .01em; }
.fd-status { font-size: 14px; padding: 8px 16px; }
.air-hero { padding: 0; border: 0; }
.air-hero:hover { background: none; }
.air-hero .air-city { font-size: 19px; }
.air-hero .air-time { font-size: 30px; }
.air-hero .air-end { width: 190px; }
.air-hero .air-bar { height: 8px; }
.air-hero .air-plane { width: 36px; height: 36px; }
.air-hero .air-plane svg { width: 20px; height: 20px; }
.air-hero .air-lbl { text-transform: none; letter-spacing: 0; font-size: 12px; }
.fd-relative {
  margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--sky-600);
  text-align: center;
}
.fd-canceled { padding: 14px 0 6px; font-size: 16px; font-weight: 600; color: var(--bad); }
@media (max-width: 640px) {
  .fd-hero { padding: 16px 14px 12px; }
  .air-hero .air-end { width: auto; }
  .air-hero .air-city { font-size: 16px; }
  .air-hero .air-time { font-size: 24px; }
  .fd-num { font-size: 21px; }
}

/* ---- univerzální hledání ---------------------------------------------------- */
.search-box { position: relative; max-width: 560px; }
.search-ico {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  width: 17px; height: 17px; stroke: var(--gray-400); fill: none;
  stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.search-input {
  width: 100%; padding: 12px 14px 12px 40px;
  border: 1px solid var(--gray-200); border-radius: 11px;
  font-size: 14.5px; background: #fff; color: var(--gray-900);
  box-shadow: var(--shadow-sm);
}
.search-input:focus { outline: none; border-color: var(--sky-500);
  box-shadow: 0 0 0 3px var(--sky-100); }
.search-drop {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px;
  box-shadow: var(--shadow); max-height: 420px; overflow-y: auto;
}
.search-head {
  padding: 8px 14px 5px; font-size: 11px; font-weight: 600; color: var(--gray-400);
  text-transform: uppercase; letter-spacing: .06em;
}
.search-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; text-decoration: none; color: inherit;
  border-top: 1px solid var(--gray-100);
}
.search-item:hover, .search-item.hl { background: var(--gray-50); text-decoration: none; }
.search-item .s-num { font-family: var(--font-mono); font-weight: 700;
  color: var(--amber); min-width: 74px; }
.search-item .s-main { flex: 1; min-width: 0; display: flex;
  flex-direction: column; gap: 2px; }
.search-item .s-line { font-size: 13.5px; font-weight: 500; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-item .s-when { font-size: 12px; color: var(--gray-500);
  font-family: var(--font-mono); }
.search-empty { padding: 14px; font-size: 13.5px; color: var(--gray-500); }


/* =====================================================================
   PRÁVĚ LETÍ — živé progress bary letů ve vzduchu
   ===================================================================== */
.board-tabs-4 { display: flex; overflow-x: auto; scrollbar-width: none; }
.board-tabs-4::-webkit-scrollbar { display: none; }
.board-tabs-4 .board-tab { flex: 1 0 auto; padding: 13px 16px; white-space: nowrap; }
.tab-live {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--good); margin-left: 7px; vertical-align: 1px;
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.air-row {
  display: block; padding: 18px 18px 14px;
  border-bottom: 1px solid var(--gray-100);
  color: inherit; text-decoration: none; position: relative;
}
.air-row:last-child { border-bottom: 0; }
.air-row:hover { background: var(--gray-50); text-decoration: none; }
.air-ends { display: flex; gap: 18px; align-items: stretch; }
.air-end { width: 130px; flex-shrink: 0; }
.air-end-right { text-align: right; }
.air-city { font-weight: 600; font-size: 14.5px; color: var(--gray-900);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.air-time { font-size: 21px; font-weight: 700; color: var(--gray-900); margin-top: 2px; }
.air-time[data-cz-title] {
  text-decoration: underline dotted var(--gray-300);
  text-underline-offset: 4px; cursor: help;
}
.air-lbl { font-size: 11px; color: var(--gray-400); text-transform: uppercase;
  letter-spacing: .05em; margin-top: 1px; }
.air-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.air-flight { text-align: center; font-size: 13px; margin-bottom: 9px; }
.air-num { color: var(--amber); font-weight: 700; }

.air-bar {
  position: relative; height: 6px; border-radius: 4px;
  background: var(--sky-500);            /* zbývá uletět = modrá */
}
.air-done {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: var(--gray-300); border-radius: 4px 0 0 4px;  /* uletěno = šedá */
}
.air-plane {
  position: absolute; top: 50%; left: 0%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.18);
  display: flex; align-items: center; justify-content: center;
  transition: left 1s linear;
}
.air-plane svg { width: 17px; height: 17px; fill: var(--sky-600); }
/* tvarová ikona dle typu na ose — proporční velikost, špička po směru letu
   (ikony jsou nose-up → +90° = doprava k cíli). Barva přes filtr (SVG je černé). */
.air-plane-img {
  width: calc(15px * var(--ac-scale, 1));
  height: calc(15px * var(--ac-scale, 1));
  transform: rotate(90deg);
  /* sky-600 (#0284c7) přes filtr na černém SVG */
  filter: brightness(0) saturate(100%) invert(29%) sepia(96%)
          saturate(1732%) hue-rotate(179deg) brightness(94%) contrast(101%);
}
.air-row.landed .air-plane-img {
  /* good/zelená po přistání */
  filter: brightness(0) saturate(100%) invert(52%) sepia(69%)
          saturate(456%) hue-rotate(93deg) brightness(93%) contrast(89%);
}
.air-row.landed .air-bar { background: var(--gray-300); }
.air-row.landed .air-plane svg { fill: var(--good); }

.air-meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--gray-500); margin-top: 9px;
  font-family: var(--font-mono);
}
.air-badge { background: var(--good-bg); color: var(--good); margin-left: 6px; }
[hidden] { display: none !important; }   /* třídy s display:* nesmí přebít hidden */

@media (max-width: 640px) {
  .air-ends { flex-wrap: wrap; gap: 0 12px; }
  .air-end { width: auto; flex: 1; }
  .air-mid { flex-basis: 100%; order: 3; margin-top: 10px; }
  .air-time { font-size: 18px; }
}

/* ---- hodiny (aktuální čas ČR) ------------------------------------------- */
.clock { font-size: 22px; font-weight: 700; color: var(--gray-900); letter-spacing: .03em; line-height: 1.1; }
.clock-date { font-size: 12px; color: var(--gray-500); margin-top: 2px; }

/* ---- kód země za městem --------------------------------------------------- */
.cc {
  display: inline-block; margin-left: 7px; padding: 1px 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600;
  color: var(--gray-500); background: var(--gray-100);
  border: 1px solid var(--gray-200); border-radius: 5px;
  vertical-align: 2px; letter-spacing: .04em;
}

/* ---- filtry tabule ----------------------------------------------------------
   Container queries: v úzkém kontejneru (HP karty, mobil) se filtry přeloží
   do ZÁMĚRNÉHO dvouřádkového kompaktu — segmenty přes celou šířku rovnoměrně,
   selecty přesně 50/50 — místo náhodného přetečení. */
.board-filters-zone { container-type: inline-size; }
.board-filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--gray-100);
  background: #fbfcfe;
}
.fseg {
  display: flex; gap: 2px; background: var(--gray-100);
  border-radius: 9px; padding: 3px; overflow-x: auto; scrollbar-width: none;
}
.fseg::-webkit-scrollbar { display: none; }
.fchip {
  border: 0; background: none; padding: 5px 10px; border-radius: 7px;
  font-size: 12.5px; font-weight: 600; color: var(--gray-500);
  white-space: nowrap; cursor: pointer;
}
.fchip:hover { color: var(--gray-800); }
.fchip.active { background: #fff; color: var(--sky-600); box-shadow: var(--shadow-sm); }
.fselects { display: flex; gap: 8px; margin-left: auto; }
.fselect {
  padding: 6px 10px; border: 1px solid var(--gray-200); border-radius: 8px;
  background: #fff; font-size: 12.5px; font-weight: 500; color: var(--gray-600);
  max-width: 170px;
}

@container (max-width: 640px) {
  .board-filters { gap: 7px; padding: 9px 12px; }
  /* řádek 1: segmenty přes celou šířku, položky rovnoměrně */
  .fseg { width: 100%; }
  .fchip { flex: 1; text-align: center; padding: 5px 4px; font-size: 11.5px; }
  /* řádek 2: selecty 50/50 */
  .fselects { margin-left: 0; width: 100%; }
  .fselect { flex: 1; max-width: none; }
}
/* fallback pro velmi úzké viewporty bez CQ podpory */
@media (max-width: 560px) {
  .fselects { margin-left: 0; width: 100%; }
  .fselect { flex: 1; max-width: none; }
}

/* ---- page headers -------------------------------------------------------- */
.page-head { padding: 24px 0 16px; }
@media (min-width: 640px) { .page-head { padding: 32px 0 20px; } }
.page-title { font-size: 22px; font-weight: 700; color: var(--gray-900); letter-spacing: -.01em; }
@media (min-width: 640px) { .page-title { font-size: 26px; } }
.page-sub { color: var(--gray-500); font-size: 14px; margin-top: 4px; }

.live-dot {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ok);
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .08em;
}
.live-dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  animation: blink 1.8s ease-in-out infinite;
}

/* ---- home hero -------------------------------------------------------- */
.hero { padding: 36px 0 8px; }
@media (min-width: 640px) { .hero { padding: 52px 0 12px; } }
.hero h1 {
  font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em;
  color: var(--gray-900); max-width: 22ch;
}
@media (min-width: 640px) { .hero h1 { font-size: 36px; } }
.hero .accent { color: var(--sky-500); }
.hero p { color: var(--gray-500); margin-top: 10px; max-width: 52ch; font-size: 15px; }

.home-boards {
  display: grid; gap: 16px; margin-top: 24px;
}
@media (min-width: 900px) { .home-boards { grid-template-columns: 1fr 1fr; gap: 20px; } }
.home-board-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 16px; border-bottom: 1px solid var(--gray-200);
}
.home-board-head h2 { font-size: 18px; font-weight: 800; color: var(--gray-900); letter-spacing: -.01em; }
.home-board-head a { font-size: 13px; }

/* ---- account / admin ---------------------------------------------------- */
.section-title { font-size: 17px; font-weight: 700; color: var(--gray-900); margin-bottom: 12px; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat {
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius);
  padding: 14px 16px;
}
.stat .k { font-size: 12px; color: var(--gray-500); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .v { font-size: 22px; font-weight: 700; color: var(--gray-900); margin-top: 2px; font-family: var(--font-mono); }
.stat .v.warn { color: var(--warn); }
.stat .v.ok { color: var(--ok); }

.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; padding: 9px 12px; font-size: 12px; text-transform: uppercase;
  letter-spacing: .05em; color: var(--gray-500); border-bottom: 1px solid var(--gray-200);
  white-space: nowrap;
}
.table td { padding: 11px 12px; border-bottom: 1px solid var(--gray-100); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }

.progress {
  height: 8px; background: var(--gray-100); border-radius: 100px; overflow: hidden;
}
.progress > div { height: 100%; background: var(--sky-500); border-radius: 100px; }
.progress > div.warn { background: var(--warn); }
.progress > div.bad { background: var(--bad); }

/* admin layout */
.admin-nav {
  display: flex; gap: 6px; overflow-x: auto; padding: 12px 0; scrollbar-width: none;
}
.admin-nav::-webkit-scrollbar { display: none; }

/* ---- utility -------------------------------------------------------------- */
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.text-sm { font-size: 13px; } .text-muted { color: var(--gray-500); }
.flex { display: flex; } .items-center { align-items: center; }
.justify-between { justify-content: space-between; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---- Záložky (bookmarky) ------------------------------------------------- */
.btn-bookmark {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 14px; border-radius: 8px; cursor: pointer;
  min-height: 42px; /* shodná výška s .btn (ikonová varianta) */
  border: 1px solid var(--gray-300); background: #fff;
  color: var(--gray-600); font-size: 14px; font-weight: 500;
  transition: all .15s ease;
}
.btn-bookmark svg { fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linejoin: round; }
.btn-bookmark:hover { border-color: var(--sky-400); color: var(--sky-600); }
.btn-bookmark.is-on {
  background: var(--sky-50); border-color: var(--sky-400); color: var(--sky-600);
}
.btn-bookmark.is-on svg { fill: currentColor; }   /* plnobarevná po označení */

/* číslo letu už sledováno — ztlumené „aktivní" ladění jako u záložky */
.js-nw-open.is-nw-on { background: var(--sky-50); border-color: var(--sky-400);
  color: var(--sky-600); }

/* akce v řádku tabule: zvoneček + záložka NAD SEBOU, úplně vpravo.
   Font Awesome 6 (CC BY 4.0): outline (ico-off) / solid (ico-on) pár,
   přepínaný třídou .is-on — jednotný styl, konzistentní vizuální váha. */
.row-actions {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  grid-column: -1;   /* poslední sloupec gridu */
}
.row-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px; cursor: pointer;
  border: none; background: transparent; color: var(--gray-400);
  transition: color .15s ease, background .15s ease;
}
.row-act svg { width: 15px; height: 15px; display: block; }
.row-act:hover { color: var(--sky-500); background: var(--sky-50); }
.row-act .ico-on { display: none; }
.row-act .ico-off { display: inline-flex; }
.row-act.is-on { color: var(--sky-500); }
.row-act.is-on .ico-on { display: inline-flex; }
.row-act.is-on .ico-off { display: none; }
/* tlačítko s ikonou (detail) */
.btn .btn-ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 2px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- Směrový štítek v řádku (jen smíšené seznamy: záložky) --------------- */
.dir-tag {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 11px; font-weight: 600; padding: 2px 8px 2px 6px;
  border-radius: 999px; margin-right: 8px; vertical-align: 2px;
  letter-spacing: .02em;
}
.dir-tag .dir-ico { width: 13px; height: 13px; stroke-width: 2.4; }
.dir-arr { background: var(--sky-50); color: var(--sky-600); }   /* přílet */
.dir-dep { background: #fff4e6; color: #c2620a; }                /* odlet */

/* ---- Statické stránky ----------------------------------------------------- */
.static-text h2 { font-size: 17px; margin: 22px 0 8px; }
.static-text h2:first-child { margin-top: 0; }
.static-text p { margin: 0 0 12px; line-height: 1.65; color: var(--gray-700); }
.static-text ul { margin: 0 0 12px 22px; line-height: 1.65; color: var(--gray-700); }
.static-text li { margin-bottom: 6px; }
/* patička: vzdušná, strukturovaná, s odsazením od okraje */
.site-footer {
  --footer-pad-b: 44px;
  margin-top: 56px; padding: 36px 0 var(--footer-pad-b);
  border-top: 1px solid var(--gray-200);
  background: #fff;
}
.site-footer .container { text-align: center; }
.foot-nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 28px; margin-bottom: 18px;
}
.foot-nav a {
  color: var(--gray-600); font-size: 13.5px; font-weight: 500;
  text-decoration: none;
}
.foot-nav a:hover { color: var(--sky-600); }
.foot-disclaimer {
  margin: 0 auto 14px; max-width: 560px;
  font-size: 12.5px; line-height: 1.55; color: var(--gray-400);
}
.foot-copy { margin: 0; font-size: 12.5px; color: var(--gray-500); }
.foot-sep { margin: 0 6px; color: var(--gray-300); }

/* kontakty aerolinky v detailu letu */
.airline-contact { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px;
  margin: 4px 0 0; font-size: 14px; }
.airline-contact dt { display: flex; align-items: center; gap: 6px;
  color: var(--gray-500); font-weight: 500; white-space: nowrap; }
.airline-contact dd { margin: 0; color: var(--gray-800); word-break: break-word; }
.airline-contact a { color: var(--sky-600); }
.airline-contact .ac-ico { width: 15px; height: 15px; fill: none;
  stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* admin: formulář kontaktů aerolinky */
.airline-contact-row td { border-top: none; background: var(--gray-50); }
.admin-contact-form { padding: 10px 0 4px; }
.cf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; }
.cf-grid label { display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; color: var(--gray-500); font-weight: 500; }
.cf-grid .cf-wide { grid-column: 1 / -1; }
.cf-grid .input { font-size: 13px; }
@media (max-width: 640px) { .cf-grid { grid-template-columns: 1fr; } }

.nw-history-list { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.nw-history-list li { padding: 4px 0; border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700); }
.nw-history-list li:last-child { border-bottom: none; }

/* přepínač preferovaného letiště na home — JEDINÉ místo pravdy.
   Label vlevo, chipy v horizontálně scrollovatelném pruhu (nikdy nelámat na
   víc řádků; na mobilu se přebytek odscrolluje). Dřív dvě kolidující definice
   (.airport-switch s flex-wrap:wrap přebíjela scrollovací variantu). */
.airport-switch { display: flex; align-items: center; gap: 8px; }
.switch-label { font-size: 13px; color: var(--gray-500); margin-right: 2px;
  flex: 0 0 auto; white-space: nowrap; }
.airport-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; min-width: 0; }
.airport-chips::-webkit-scrollbar { display: none; }
/* button varianta chipu na home: JEN doplňky pro <button> (cursor, font) —
   pozadí/rámeček/aktivní stav řídí výhradně základní .airport-chip(.active) */
.airport-chip.js-airport-pick { cursor: pointer; font: inherit; }
.airport-chip.js-airport-pick:not(.active):hover { border-color: var(--sky-400); }

/* historie letů na stránce letadla */
.ac-history tbody tr:hover { background: var(--gray-50); }
.js-row-link { transition: background .12s ease; }

/* ======== Virtuální dráha s frontou letadel ======== */
.runway-wrap { margin: 4px 0 18px; }
.runway-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.runway-title { font-size: 14px; font-weight: 700; color: var(--gray-800);
  letter-spacing: .02em; text-transform: uppercase; }
.runway-sub { font-size: 12.5px; color: var(--gray-500); }

.runway-strip { position: relative; border-radius: 12px; overflow-x: auto; overflow-y: hidden;
  background: linear-gradient(180deg, #2f3742 0%, #262d37 100%);
  padding: 10px 16px; min-height: 82px;
  box-shadow: inset 0 2px 8px rgba(0,0,0,.35); }
/* přerušovaná středová čára dráhy */
.runway-centerline { position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; transform: translateY(-50%);
  background: repeating-linear-gradient(90deg,
    rgba(255,255,255,.55) 0 26px, transparent 26px 52px); opacity: .5; }
/* práh dráhy (zebra) */
/* práh = flex položka ve frontě: scrolluje s obsahem, fronta ho nemůže překrýt */
.runway-threshold { flex: 0 0 30px; align-self: stretch; min-height: 58px;
  display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(180deg,
    rgba(255,255,255,.7) 0 6px, transparent 6px 12px);
  border-radius: 4px; }
.rt-num { font: 700 10px var(--font-mono); color: rgba(255,255,255,.85);
  writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: .1em; }

/* fronta letadel */
.runway-queue { position: relative; display: flex; gap: 14px; align-items: center;
  padding: 0 4px; min-height: 58px; width: max-content; min-width: 100%; }
.is-departure .runway-queue { justify-content: flex-end; }  /* fronta u pravého prahu */

.rq-plane { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center;
  gap: 1px; text-decoration: none; color: #fff;
  padding: 4px 8px; border-radius: 10px; transition: transform .15s, background .15s;
  animation: rq-in .4s ease both; animation-delay: calc(var(--i) * 40ms); }
.rq-plane:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
@keyframes rq-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }

.rq-icon { display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; }   /* pevný rámec, ať různě velké tvary drží řádek */
/* tvar letadla dle typu; --ac-scale (0.58–1.55) dělá proporci vůči narrowbody.
   Ikony jsou bílé přes filtr (SVG má fill=currentColor=black → invert na bílou). */
.rq-air { width: calc(30px * var(--ac-scale, 1));
  height: calc(30px * var(--ac-scale, 1));
  filter: brightness(0) invert(1) drop-shadow(0 2px 3px rgba(0,0,0,.4));
  transition: transform .15s; }
/* ikony míří špičkou nahoru (0°). Odlet stoupá vpravo, přílet klesá k prahu. */
.is-departure .rq-air { transform: rotate(35deg); }
.is-arrival .rq-air { transform: rotate(150deg); }

.rq-info { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.rq-reg { font-size: 12px; font-weight: 700; color: #fff; }
.rq-line { font-size: 11px; color: rgba(255,255,255,.7); }
.rq-eta { font-size: 12px; font-weight: 700; color: #7dd3fc;
  background: rgba(125,211,252,.12); padding: 1px 6px; border-radius: 999px; }
.rq-eta.is-soon { color: #fde047; background: rgba(253,224,71,.15); }
.rq-eta.is-imminent { color: #fca5a5; background: rgba(252,165,165,.18);
  animation: rq-pulse 1.2s ease-in-out infinite; }
@keyframes rq-pulse { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* dvě dráhy na homepage pod sebou */
.home-runways { margin: 8px 0 20px; }
.home-runways .runway-wrap:not(:last-child) { margin-bottom: 16px; }

/* =====================================================================
   Dnešní zajímavosti (/zajimavosti) — spotterská výkladní skříň.
   Paráda projektu: velké fotokarty, barevné odznaky kategorií.
   ===================================================================== */
.hl-hero { padding: 24px 0 8px; }
.hl-hero-top { display: flex; justify-content: space-between; align-items: center; }
.hl-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sky-600);
  background: var(--sky-50); padding: 4px 10px; border-radius: 999px; }
.hl-title { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -.02em;
  margin: 14px 0 6px; color: var(--gray-900); }
.hl-sub { color: var(--gray-500); max-width: 60ch; }
.hl-daynav { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.hl-daybtn { font-size: 13px; color: var(--gray-600); padding: 5px 10px;
  border: 1px solid var(--gray-200); border-radius: 8px; background: #fff; }
.hl-daybtn:hover { border-color: var(--sky-400); text-decoration: none; }
.hl-daybtn.is-disabled { color: var(--gray-300); pointer-events: none; }
.hl-daycur { font-size: 13px; font-weight: 700; color: var(--gray-800); }
.hl-count { margin: 20px 0 12px; color: var(--gray-500); font-size: 14px; }
.hl-count strong { color: var(--gray-900); font-size: 18px; }

.hl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px; margin-bottom: 24px; }
.hl-card { background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: box-shadow .2s, transform .2s;
  display: flex; flex-direction: column; }
.hl-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.hl-card-media { position: relative; display: block; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--gray-100), var(--gray-200)); overflow: hidden; }
.hl-card-media img { width: 100%; height: 100%; object-fit: cover; }
.hl-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.hl-noimg-shape { width: 96px; height: 96px; opacity: .35;
  filter: brightness(0) saturate(100%) invert(63%) sepia(9%) saturate(560%) hue-rotate(176deg); transform: rotate(45deg); }

.hl-badges { position: absolute; left: 10px; bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.hl-badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  color: #fff; backdrop-filter: blur(4px); box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.hl-badge-wide   { background: rgba(37,99,235,.92); }    /* širokotrupé — modrá */
.hl-badge-quad   { background: rgba(124,58,237,.92); }   /* čtyřmotorové — fialová */
.hl-badge-cargo  { background: rgba(217,119,6,.94); }    /* náklaďák — jantar */
.hl-badge-rare   { background: rgba(220,38,38,.92); }    /* vzácné — červená */
.hl-badge-vintage{ background: rgba(120,53,15,.94); }    /* veterán — hnědá */
.hl-badge-old    { background: rgba(146,64,14,.9); }
.hl-badge-prop   { background: rgba(15,118,110,.92); }   /* turboprop — teal */

.hl-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.hl-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.hl-reg { font-size: 19px; font-weight: 700; color: var(--gray-900); }
.hl-reg:hover { color: var(--sky-600); text-decoration: none; }
.hl-type { font-size: 13px; color: var(--gray-500); font-weight: 600; }
.hl-airline { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--gray-600); margin: 0; }
.hl-logo { width: 18px; height: 18px; object-fit: contain; border-radius: 3px; }

.hl-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.hl-spec { font-size: 12px; background: var(--gray-50); border: 1px solid var(--gray-100);
  padding: 3px 8px; border-radius: 7px; color: var(--gray-700); }
.hl-spec-k { color: var(--gray-400); }

.hl-moves { display: flex; flex-direction: column; gap: 5px; margin-top: 2px;
  border-top: 1px solid var(--gray-100); padding-top: 10px; }
.hl-move { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.hl-move-dir { font-weight: 700; font-size: 11px; padding: 2px 6px; border-radius: 5px; flex: 0 0 auto; }
.hl-move-arr { background: var(--ok-bg); color: var(--ok); }
.hl-move-dep { background: var(--air-bg); color: var(--air); }
.hl-move-ap { font-weight: 700; color: var(--gray-800); }
.hl-move-route { color: var(--gray-500); flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hl-move-time { color: var(--gray-600); flex: 0 0 auto; }

.hl-credit { font-size: 10.5px; color: var(--gray-400); margin: 2px 0 0; }

.hl-empty { text-align: center; padding: 40px 24px; max-width: 480px; margin: 24px auto; }
.hl-empty-ico { color: var(--gray-300); display: flex; justify-content: center; margin-bottom: 12px; }
.hl-empty-ico svg { width: 44px; height: 44px; }
.hl-empty h2 { font-size: 20px; margin-bottom: 6px; }

.hl-foot { margin: 8px 0 32px; max-width: 68ch; }

@media (max-width: 520px) {
  .hl-grid { grid-template-columns: 1fr; gap: 14px; }
}

/* spotterský odznak zajímavosti na tabuli — nenápadný, ale rozpoznatelný */
.f-interest { display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--sky-600);
  background: var(--sky-50); padding: 1px 7px; border-radius: 999px;
  margin-left: 4px; vertical-align: 1px; }
.fchip-interest { color: var(--sky-600); }
.fchip-interest.active { background: var(--sky-600); color: #fff; border-color: var(--sky-600); }

/* =====================================================================
   Admin — přehled sledování (/admin/sledovani)
   ===================================================================== */
.watch-chan-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wcs-head { display: block; font-size: 13px; margin-bottom: 12px; }
.wcs-bars { display: flex; flex-direction: column; gap: 8px; }
.wcs-bar { display: grid; grid-template-columns: 70px 1fr 32px; align-items: center; gap: 8px; }
.wcs-k { font-size: 12px; color: var(--gray-500); }
.wcs-track { height: 8px; background: var(--gray-100); border-radius: 999px; overflow: hidden; }
.wcs-track > span { display: block; height: 100%; background: var(--sky-500); border-radius: 999px; }
.wcs-v { font-size: 12px; text-align: right; color: var(--gray-700); }

.wd-legend { display: flex; gap: 16px; margin-bottom: 10px; }
.wd-dot { display: inline-block; width: 9px; height: 9px; border-radius: 2px; vertical-align: 0; margin-right: 4px; }
.wd-dot-rule { background: var(--sky-600); }
.wd-dot-single { background: var(--sky-300); }
.wd-rows { display: flex; flex-direction: column; gap: 4px; }
.wd-row { display: grid; grid-template-columns: 92px 1fr 30px; align-items: center; gap: 10px; }
.wd-day { font-size: 12px; color: var(--gray-500); }
.wd-track { display: flex; height: 14px; background: var(--gray-50); border-radius: 4px; overflow: hidden; }
.wd-seg { height: 100%; }
.wd-seg-rule { background: var(--sky-600); }
.wd-seg-single { background: var(--sky-300); }
.wd-num { font-size: 12px; text-align: right; color: var(--gray-700); font-weight: 600; }

.wtag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.wtag-email { background: var(--sky-50); color: var(--sky-600); }
.wtag-web { background: #f3e8ff; color: #7c3aed; }
.wtag-sms { background: var(--gray-100); color: var(--gray-600); }
.wtag-telegram { background: #e0f2fe; color: #0369a1; }
.ta-r { text-align: right; }

@media (max-width: 640px) {
  .watch-chan-split { grid-template-columns: 1fr; }
}

/* =====================================================================
   Detail letadla — klikatelná fotka + lightbox (zvětšení do plné velikosti)
   ===================================================================== */
.ac-photo-btn { display: block; position: relative; width: 100%; padding: 0;
  border: 0; background: none; cursor: zoom-in; border-radius: 10px;
  overflow: hidden; margin-bottom: 6px; }
.ac-photo { display: block; width: 100%; border-radius: 10px; }
/* náhled v administraci (seznam letadel) */
.ac-thumb-link { display: block; width: 72px; }
.ac-thumb {
  display: block; width: 72px; height: 48px; object-fit: cover;
  border-radius: 6px; background: var(--gray-100);
}
.ac-thumb-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--gray-400); border: 1px dashed var(--gray-200);
}
.ac-photo-zoom { position: absolute; right: 10px; bottom: 10px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  background: rgba(15,23,42,.6); color: #fff; border-radius: 8px;
  opacity: 0; transition: opacity .15s; }
.ac-photo-btn:hover .ac-photo-zoom, .ac-photo-btn:focus-visible .ac-photo-zoom { opacity: 1; }
.ac-photo-zoom svg { width: 18px; height: 18px; }

.ac-lightbox { position: fixed; inset: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; padding: 24px; }
.ac-lightbox[hidden] { display: none; }
.ac-lightbox-backdrop { position: absolute; inset: 0; background: rgba(6,10,20,.9);
  opacity: 0; transition: opacity .2s; }
.ac-lightbox.is-open .ac-lightbox-backdrop { opacity: 1; }
.ac-lightbox-img { position: relative; max-width: 100%; max-height: 100%;
  border-radius: 8px; box-shadow: 0 10px 50px rgba(0,0,0,.5);
  transform: scale(.96); opacity: 0; transition: transform .2s, opacity .2s;
  object-fit: contain; }
.ac-lightbox.is-open .ac-lightbox-img { transform: scale(1); opacity: 1; }
.ac-lightbox-close { position: absolute; top: 16px; right: 20px; z-index: 2;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background .15s; }
.ac-lightbox-close:hover { background: rgba(255,255,255,.25); }

/* upozornění na zajímavá letadla — výběr letišť v účtu */
.iw-airports { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.iw-airport { display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  border: 1px solid var(--gray-200); border-radius: 10px; cursor: pointer;
  font-size: 14px; font-weight: 600; user-select: none; transition: border-color .15s, background .15s; }
.iw-airport:hover { border-color: var(--sky-400); }
.iw-airport input { width: 18px; height: 18px; accent-color: var(--sky-600); cursor: pointer; }
.iw-airport:has(input:checked) { border-color: var(--sky-600); background: var(--sky-50); }

/* CTA na stránce zajímavostí */
.hl-alert-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  background: var(--sky-50); border: 1px solid var(--sky-100);
  border-radius: var(--radius-lg); padding: 14px 18px; margin: 8px 0 20px; }
.hl-alert-cta .hl-alert-ico { color: var(--sky-600); flex: 0 0 auto; }
.hl-alert-cta .hl-alert-txt { flex: 1 1 240px; font-size: 14px; color: var(--gray-700); }
.hl-alert-cta .hl-alert-txt strong { color: var(--gray-900); }

/* =====================================================================
   Statistika letiště (/statistika/{slug}) — přehled pro novináře
   ===================================================================== */
.stx-hero { padding: 24px 0 8px; }
.stx-hero-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sky-600);
  background: var(--sky-50); padding: 4px 10px; border-radius: 999px; }
.stx-title { font-size: clamp(26px, 5vw, 40px); font-weight: 800; letter-spacing: -.02em;
  margin: 14px 0 4px; color: var(--gray-900); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stx-iata { font-size: 20px; color: var(--gray-400); font-weight: 700; }
.stx-sub { color: var(--gray-500); margin: 0; }

.stx-period { margin-top: 32px; }
.stx-period-title { font-size: 20px; font-weight: 700; color: var(--gray-900);
  margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid var(--gray-100); }

.stx-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 24px; }
.stx-tile { border-radius: var(--radius-lg); padding: 20px; border: 1px solid var(--gray-200); }
.stx-tile-k { font-size: 13px; font-weight: 600; color: var(--gray-500); margin-bottom: 6px; }
.stx-tile-v { font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.stx-tile-total { background: linear-gradient(135deg, var(--sky-600), #1857b8); border: none; }
.stx-tile-total .stx-tile-k { color: rgba(255,255,255,.85); }
.stx-tile-total .stx-tile-v { color: #fff; }
.stx-tile-arr { background: var(--ok-bg); border-color: transparent; }
.stx-tile-arr .stx-tile-v { color: var(--ok); }
.stx-tile-dep { background: var(--air-bg); border-color: transparent; }
.stx-tile-dep .stx-tile-v { color: var(--air); }

.stx-h3 { font-size: 14px; font-weight: 700; color: var(--gray-700);
  text-transform: uppercase; letter-spacing: .04em; margin: 24px 0 12px; }

/* hodinový čárový graf */
.stx-chart { width: 100%; }
.stx-svg { width: 100%; height: auto; display: block; overflow: visible; }
.stx-grid { stroke: var(--gray-100); stroke-width: 1; }
.stx-line { stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.stx-line-arr { stroke: var(--ok); }
.stx-line-dep { stroke: var(--air); }
.stx-pt-arr { fill: var(--ok); }
.stx-pt-dep { fill: var(--air); }
.stx-val { font-size: 9px; font-weight: 700; text-anchor: middle;
  font-family: var(--font-mono, monospace); }
.stx-val-arr { fill: var(--ok); }
.stx-val-dep { fill: var(--air); }
.stx-xlbl { font-size: 9px; fill: var(--gray-400); text-anchor: middle;
  font-family: var(--font-mono, monospace); }

.stx-legend { display: flex; gap: 18px; margin-top: 10px; font-size: 13px; color: var(--gray-500); }
.stx-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: 0; margin-right: 5px; }
.stx-dot-arr { background: var(--ok); }
.stx-dot-dep { background: var(--air); }

/* aerolinky */
.stx-airlines { display: flex; flex-direction: column; gap: 8px; }
.stx-airline { display: grid; grid-template-columns: 160px 1fr 44px; align-items: center; gap: 12px; }
.stx-airline-name { font-size: 14px; font-weight: 600; color: var(--gray-800);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stx-airline-bar { height: 22px; background: var(--gray-100); border-radius: 6px; overflow: hidden; }
.stx-airline-fill { display: block; height: 100%;
  background: linear-gradient(90deg, var(--sky-500), var(--sky-600)); border-radius: 6px; }
.stx-airline-num { text-align: right; font-weight: 700; font-size: 14px; color: var(--gray-800); }

.stx-foot { margin: 28px 0 32px; max-width: 70ch; }

@media (max-width: 560px) {
  .stx-tiles { grid-template-columns: 1fr; }
  .stx-val { font-size: 11px; }
  .stx-xlbl { font-size: 11px; }
  .stx-airline { grid-template-columns: 110px 1fr 38px; gap: 8px; }
}

/* statistika — trend, rychlá fakta, destinace */
.stx-trend { margin-top: 8px; font-size: 13px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 4px; }
.stx-tile-total .stx-trend { color: rgba(255,255,255,.92); }
.stx-trend.up { }
.stx-trend.down { }

.stx-facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 8px; }
.stx-fact { flex: 1 1 200px; border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
  padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; background: var(--gray-50); }
.stx-fact-k { font-size: 12px; font-weight: 600; color: var(--gray-500);
  text-transform: uppercase; letter-spacing: .04em; }
.stx-fact-v { font-size: 20px; font-weight: 800; color: var(--gray-900); }
.stx-fact-n { font-size: 13px; color: var(--sky-600); font-weight: 600; }

.stx-route-fill { background: linear-gradient(90deg, #7c5cff, #5b3fd6) !important; }
.stx-route-note { margin: 8px 0 0; }

/* admin: nastavení odletů */
.dep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 14px; }
.dep-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.dep-field input { padding: 10px 12px; border: 1px solid var(--gray-300); border-radius: 8px;
  font-size: 16px; font-family: var(--font-mono, monospace); }
.dep-field input:focus { outline: none; border-color: var(--sky-500); }
@media (max-width: 560px) { .dep-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   Rada u odletu — „kdy vyrazit na letiště" (živý odpočet)
   ===================================================================== */
.dep-advice { display: flex; gap: 14px; align-items: flex-start;
  border-radius: var(--radius-lg); padding: 16px 18px; margin: 0 0 24px;
  border: 1px solid var(--sky-100); background: var(--sky-50); }
.dep-advice-ico { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sky-600); color: #fff; }
.dep-advice-ico svg { width: 19px; height: 19px; fill: #fff; stroke: none; color: #fff; }
/* outline ikona (šipka příletu) — bílý obrys místo výplně */
.dep-advice-ico.is-outline svg { fill: none; stroke: #fff; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.dep-advice-body { flex: 1 1 auto; min-width: 0; }
.dep-advice-head { font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: var(--gray-500); }
.dep-advice-count { font-size: 26px; font-weight: 800; letter-spacing: -.01em;
  color: var(--gray-900); margin: 2px 0 4px; line-height: 1.1; }
.dep-advice-sub { font-size: 14px; font-weight: 600; color: var(--gray-600); margin: 0 0 8px; }
.dep-advice-sub:empty { display: none; }
.dep-advice-note { font-size: 12.5px; color: var(--gray-500); line-height: 1.5; }

/* fáze: klid (before) = modrá, spěch (hurry) = oranžová, pozdě = červená */
.dep-advice-hurry { background: #fff7ed; border-color: #fed7aa; }
.dep-advice-hurry .dep-advice-ico { background: #ea580c; }
.dep-advice-hurry .dep-advice-count { color: #c2410c; }
.dep-advice-toolate { background: #fef2f2; border-color: #fecaca; }
.dep-advice-toolate .dep-advice-ico { background: #dc2626; }
.dep-advice-toolate .dep-advice-count { color: #b91c1c; }
.dep-advice-departed { background: var(--gray-50); border-color: var(--gray-200); }
.dep-advice-departed .dep-advice-ico { background: var(--gray-400); }
.dep-advice-departed .dep-advice-count { color: var(--gray-600); font-size: 18px; }

/* zvýrazněné datum v hlavičce detailu letu */
.fd-date { font-weight: 700; color: var(--gray-700); }

/* upozornění na starší let (návštěvník z Googlu na starém letu) */
.stale-warn { display: flex; align-items: center; gap: 12px; text-decoration: none;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius-lg);
  padding: 12px 16px; margin-bottom: 18px; transition: background .15s, border-color .15s; }
.stale-warn:hover { background: #fef3c7; border-color: #fcd34d; text-decoration: none; }
.stale-warn-ico { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: #f59e0b; color: #fff; }
.stale-warn-ico svg { width: 18px; height: 18px; fill: none; stroke: #fff;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stale-warn-body { flex: 1 1 auto; min-width: 0; font-size: 14px; color: #78350f; line-height: 1.45; }
.stale-warn-body strong { color: #92400e; }
.stale-warn-cta { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: #b45309; white-space: nowrap; }
@media (max-width: 560px) {
  .stale-warn { flex-wrap: wrap; }
  .stale-warn-cta { width: 100%; text-align: right; }
}

/* aktivní „Google vzor" varianta — CTA je samostatný odkaz uvnitř divu */
.stale-warn-redirect { cursor: default; }
.stale-warn-redirect .stale-warn-cta { text-decoration: none; padding: 6px 12px;
  border-radius: 8px; background: #f59e0b; color: #fff; transition: background .15s; }
.stale-warn-redirect .stale-warn-cta:hover { background: #d97706; }

/* řádek přepínacích chips na detailu letu — kompaktní, ať se na mobilu vejde */
.occ-row { display: flex; align-items: center; gap: 5px; flex-wrap: wrap;
  margin: 0 0 16px; padding: 1px 0; }
.occ-chip { display: inline-flex; align-items: baseline; gap: 4px;
  padding: 3px 8px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  border: 1px solid var(--gray-200); background: #fff; transition: border-color .15s, background .15s; }
.occ-chip:hover { border-color: var(--sky-400); background: var(--sky-50); text-decoration: none; }
.occ-dow { font-size: 10px; font-weight: 600; color: var(--gray-400); text-transform: uppercase; }
.occ-date { font-size: 12px; font-weight: 700; color: var(--gray-800); }
.occ-time { font-size: 10px; color: var(--gray-500); }
/* kompletní přehled termínů na stálé stránce spoje */
.occ-line-hidden { display: none; }
.occ-line-current { background: var(--sky-50); }
.occ-now { display: inline-block; margin-left: 6px; padding: 1px 6px;
  border-radius: 999px; background: var(--sky-600); color: #fff;
  font-size: 10px; font-weight: 600; vertical-align: middle; }

.occ-chip-active { border-color: var(--sky-600); background: var(--sky-600); cursor: default; }
.occ-chip-active .occ-dow { color: rgba(255,255,255,.75); }
.occ-chip-active .occ-date { color: #fff; }
.occ-chip-active .occ-time { color: rgba(255,255,255,.85); }
@media (max-width: 560px) {
  .occ-dow { display: none; }   /* na mobilu jen datum + čas, ať se vejde víc */
  .occ-date { font-size: 11px; }
  .occ-time { font-size: 9px; }
  .occ-chip { padding: 3px 7px; gap: 3px; }
}

/* karta letu bez časové osy (chybí data druhého konce) */
.fd-noleg { padding: 8px 0 4px; }
.fd-noleg-route { font-size: 20px; font-weight: 700; color: var(--gray-800); margin-bottom: 6px; }
.fd-noleg-arrow { color: var(--gray-400); margin: 0 4px; }
.fd-noleg-est { font-size: 14px; color: var(--gray-700); line-height: 1.5; }
.fd-noleg-est strong { color: var(--gray-900); font-variant-numeric: tabular-nums; }
.fd-noleg-note { color: var(--gray-400); font-size: 12.5px; }
