/* ============================================================================================
   BydliHub: vzhled
   Moderní a barevný, ale ne jako cestovní portál: bílý základ, tmavě zelená (důvěra, domov, značka) a jedna sytá
   oranžová pro hlavní akci na každé obrazovce (Hledat, Otevřít původní inzerát), velké tučné písmo, fotky bez
   rámečků a plnošířkové barevné pásy. Pastelové plochy jen v odstínech značky (mátová, broskvová, písková).
   Pohyb: jedna úvodní animace, plynulé hover efekty, počítadla a jemné odkrývání při rolování.
   Kdo má v systému vypnuté animace, nehýbe se nic (viz poslední blok souboru).
   ============================================================================================ */

/* ===== 1. FONTY (vlastní soubory ve vendor/fonts, licence jsou tam taky) ===== */
@font-face { font-family: "BydliText"; src: url("vendor/fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "BydliText"; src: url("vendor/fonts/inter-600.woff") format("woff"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "BydliText"; src: url("vendor/fonts/inter-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BydliDisplay"; src: url("vendor/fonts/inter-display-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "BydliDisplay"; src: url("vendor/fonts/inter-display-800.woff") format("woff"); font-weight: 800; font-style: normal; font-display: swap; }

/* ===== 2. ZÁKLAD: světlý a tmavý vzhled (přepíná tlačítko v hlavičce, výchozí podle systému) ===== */
/* Barvy: --btn a --accent jsou zelená (tlačítka, odkazy), --sun je oranžová (hlavní akce), --deep je tmavě zelený pás a patička.
   Názvy zůstaly z dřívějších verzí, proto se zelená jmenuje --btn a oranžová --sun.
   Role (28. 10. 2026): oranžová = jedna hlavní akce na obrazovce (.btn.primary), zelená = značka, vybrané volby a vedlejší
   tlačítka, tónová zelená (.btn.tonal) = opakovaná tlačítka v kartách, tmavě zelené piny na mapě. */
:root, :root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;             /* pozadí stránky */
  --surface: #ffffff;        /* karty, panely, dialogy */
  --surface-2: #f2f5f3;      /* klidné plochy: popisky, štítky */
  --tint: #e4f1ea;           /* světle zelená plocha: aktivní položky, pás s důvody */
  --field: #ffffff;
  --text: #0f1a15;           /* tmavý inkoust se zeleným nádechem */
  --muted: #46534c;
  --border: #ccd7d0;
  --line: #e1e8e3;
  --accent: #0a5a41;         /* odkazy a zvýraznění */
  --on-accent: #ffffff;
  --btn: #0d6a4d;            /* zelená tlačítka */
  --btn-hover: #09543c;
  --on-btn: #ffffff;
  --deep: #0b3a2b;           /* tmavě zelený pás s čísly a patička */
  --deep-glow: rgba(52, 190, 130, .28);
  --sun: #ff6a2b;            /* oranžová: hlavní akce (hledat), oranžové plochy, čísla kroků */
  --sun-hover: #ff8250;
  --on-sun: #0f1a15;
  --pin: #0b3a2b;            /* špendlíky s cenou na mapě: barva značky, ne červená (ta působí jako chyba) */
  --on-pin: #ffffff;
  --header-bg: rgba(255, 255, 255, .88);
  --warn: #8a4600;
  --warn-bg: #fff3dc;
  --ok: #0b6b4a;
  --ok-bg: #dcf4e8;
  --chip-on-bg: #0d6a4d;
  --chip-on-fg: #ffffff;
  /* pastelové dlaždice (čísla, ikony): jen odstíny značky, vždy dvojice pozadí + tmavší text stejného odstínu (kontrast nad 7 : 1) */
  --t-mint-bg: #d4efe1;  --t-mint: #08513a;
  --t-peach-bg: #ffe0d1; --t-peach: #7c2c06;
  --t-sand-bg: #f2e9d8;  --t-sand: #4f3c14;
  --shadow: 0 1px 2px rgba(15, 26, 21, .05), 0 4px 14px rgba(15, 26, 21, .05);
  --shadow-hover: 0 2px 4px rgba(15, 26, 21, .06), 0 18px 40px rgba(15, 26, 21, .15);
  --shadow-pop: 0 30px 80px rgba(8, 20, 14, .38);
  --map-filter: none;
  --map-bg: #e2ebe5;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b6b4a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6.5L9.5 17 4 11.5'/%3E%3C/svg%3E");
  --check-icon-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f1a15' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6.5L9.5 17 4 11.5'/%3E%3C/svg%3E");
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2346534c' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  --sans: "BydliText", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "BydliDisplay", "BydliText", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: var(--sans);
  --r: 20px;                 /* karty a panely */
  --r-sm: 12px;              /* tlačítka, pole */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #070a09;             /* zelenočerná: tmavý vzhled patří ke značce (dříve neutrální černá podle cizího webu) */
  --surface: #0e1311;
  --surface-2: #141a17;
  --tint: #0f1c17;
  --field: #0a0e0c;
  --text: #e3e5e9;           /* o stupeň tlumenější než čistě bílá: při delším čtení méně oslňuje */
  --heading: #f4f5f7;
  --muted: #9ba7a1;
  --border: #2f3a35;
  --line: #1a221e;
  --accent: #6fdfb0;
  --on-accent: #060708;
  --btn: #1a7d5c;
  --btn-hover: #14684c;
  --on-btn: #ffffff;
  --deep: #0a1611;
  --deep-glow: rgba(255, 106, 43, .16);
  --sun: #ff6a2b;
  --sun-hover: #ff8553;
  --on-sun: #0f1a15;
  --pin: #f4f5f7;            /* na tmavé mapě světlé špendlíky */
  --on-pin: #0b0f0d;
  --header-bg: rgba(7, 10, 9, .86);
  --warn: #ffb866;
  --warn-bg: rgba(255, 184, 102, .1);
  --ok: #7fdca0;
  --ok-bg: rgba(127, 220, 160, .13);
  --chip-on-bg: #1a7d5c;
  --chip-on-fg: #ffffff;
  --t-mint-bg: rgba(90, 220, 160, .14);   --t-mint: #92e8bc;
  --t-peach-bg: rgba(255, 120, 70, .16);  --t-peach: #ffb393;
  --t-sand-bg: rgba(240, 220, 180, .1);   --t-sand: #e9d9b6;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-hover: 0 2px 4px rgba(0, 0, 0, .35), 0 18px 40px rgba(0, 0, 0, .5);
  --shadow-pop: 0 30px 80px rgba(0, 0, 0, .6);
  --map-filter: invert(1) hue-rotate(180deg) brightness(.82) contrast(.88) saturate(.3);
  --map-bg: #0a0e0c;
  --check-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fdca0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6.5L9.5 17 4 11.5'/%3E%3C/svg%3E");
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a7b6ad' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

body {
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.035em; color: var(--heading, var(--text)); }
h3, h4 { margin: 0; font-family: var(--sans); font-weight: 600; letter-spacing: -.01em; }
a { color: var(--accent); text-underline-offset: 3px; }
code { padding: 1px 6px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); border-radius: 5px; }
button, select, input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); font-size: 14px; }


/* ===== 3. HLAVIČKA A PATIČKA ===== */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s ease, border-color .3s ease;
}
.scrolled header { border-color: transparent; box-shadow: 0 6px 24px rgba(15, 26, 21, .09); }
.hdr {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px 20px;
  min-height: 68px;
}
.logo {
  display: inline-flex; align-items: center; gap: 10px; padding: 4px 6px 4px 0; text-decoration: none;
  font: 700 21px/1.1 var(--display); letter-spacing: -.02em; color: var(--text);
  background: none; border: 0; cursor: pointer;
}
.logo-text > span { color: var(--accent); }
.logo svg { flex: none; width: 32px; height: 32px; transition: transform .35s var(--ease); }
.logo:hover svg { transform: rotate(-6deg) scale(1.06); }
.logo .lm-smile, .logo .lm-eyes { transform-box: fill-box; transform-origin: center; transition: transform .35s var(--ease); }
.logo:hover .lm-smile { transform: scale(1.14, 1.2); }
.logo:hover .lm-eyes { animation: lm-blink .45s .1s var(--ease); }
@keyframes lm-blink { 40% { transform: scaleY(.15); } }
.logo:focus-visible { outline-offset: 3px; border-radius: 8px; }

.nav { display: flex; gap: 2px 4px; align-items: center; }
.navlink {
  position: relative; display: inline-block; text-decoration: none;
  padding: 8px 11px;
  font-size: 15px; font-weight: 500;
  color: var(--muted);
  background: none;
  border: 0; border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.navlink:hover { color: var(--text); background: var(--surface-2); }
.navlink[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--tint); }
/* „Přidat si nabídku“ je vedlejší akce (nabídka se zatím ukládá jen do prohlížeče), proto jen obrys, ne plná černá */
.navlink.primary { margin-left: auto; padding: 8px 16px; color: var(--text); font-weight: 600; background: transparent; border: 1px solid var(--border); border-radius: 12px; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.navlink.primary::before { content: "+"; margin-right: 7px; font-weight: 700; color: var(--sun); }
.navlink.primary:hover { color: var(--accent); background: var(--tint); border-color: var(--accent); }
.navlink.primary[aria-current="page"] { color: var(--accent); background: var(--tint); border-color: var(--accent); }

.tools { display: flex; gap: 8px; align-items: center; }

/* spodní lišta (jen pod 1100 px, viz blok responzivních pravidel) */
.tabbar { display: none; }
.tab {
  flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; text-decoration: none;
  padding: 4px 2px 2px; font-size: 11.5px; font-weight: 500; letter-spacing: -.01em; color: var(--muted);
  background: none; border: 0; border-radius: 12px; cursor: pointer;
}
.tab-ico { position: relative; display: grid; place-items: center; width: 52px; height: 30px; border-radius: 999px; transition: background-color .2s ease, color .2s ease; }
.tab-l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab[aria-current="page"] { color: var(--accent); font-weight: 600; }
.tab[aria-current="page"] .tab-ico { background: var(--tint); }
.tab:active .tab-ico { background: var(--surface-2); }
.tab-n { position: absolute; top: -3px; right: 8px; min-width: 17px; height: 17px; padding: 0 4px; font: 700 11px/17px var(--sans); text-align: center; color: var(--on-sun); background: var(--sun); border-radius: 999px; }
.tab-n[hidden] { display: none; }
.lang-select {
  width: auto; margin: 0; padding: 6px 28px 6px 12px; font-size: 14px;
  color: var(--text); background-color: var(--field); background-position: right 10px center;
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  transition: border-color .2s ease;
}
.lang-select:hover { border-color: var(--accent); }
.cur-select { padding-right: 26px; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0;
  color: var(--text); background: var(--field); border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
  transition: border-color .2s ease, transform .35s var(--ease);
}
.theme-btn:hover { border-color: var(--accent); transform: rotate(18deg); }

footer { margin-top: 112px; padding: 64px 0 52px; color: #c3d9ce; font-size: 14px; background: #0a2f23; }
:root[data-theme="dark"] footer { background: #0a0c0e; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 32px; }   /* 170 px: na počítači se vejde i sloupec „Pro studenty a pronajímatele“ */
footer .foot-h { margin: 0 0 12px; font: 600 15px var(--sans); letter-spacing: normal; color: #fff; }
footer p { margin: 0 0 6px; }
footer a { color: #8fe3bf; }
footer .linklike { display: block; padding: 4px 0; color: #c3d9ce; background: none; border: 0; cursor: pointer; text-align: left; font-size: 14px; text-decoration: none; transition: color .2s ease, transform .2s var(--ease); }
footer .linklike:hover { color: #fff; transform: translateX(3px); }
footer :focus-visible { outline-color: var(--sun); }
/* odkazy na stránky měst: v patičce ve dvou až třech sloupcích, ať sloupec není dlouhý přes celou výšku */
footer .foot-cities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; align-content: start; }
footer .foot-cities .foot-h { grid-column: 1 / -1; }
footer .foot-cities .linklike { padding: 2px 0; }
@media (min-width: 900px) { footer .foot-cities { grid-column: span 2; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.linklike { padding: 3px 0; color: var(--accent); background: none; border: 0; cursor: pointer; text-decoration: underline; }
.foot-trans { margin-top: 8px; color: #8fe3bf; font-size: 13px; }


/* ===== 4. TLAČÍTKA A FORMULÁŘE ===== */
.btn {
  display: inline-block;
  padding: 11px 20px;
  font: 600 14px/1.4 var(--sans);
  text-align: center;
  text-decoration: none;
  color: var(--on-btn);
  background: var(--btn);
  border: 1px solid var(--btn);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--ease), box-shadow .2s ease;
}
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(13, 106, 77, .3); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
/* hlavní akce obrazovky (Hledat, Otevřít původní inzerát, Zobrazit nabídky): oranžová s tmavým textem (kontrast 6,2 : 1) */
.btn.primary { color: var(--on-sun); background: var(--sun); border-color: var(--sun); }
.btn.primary:hover { color: var(--on-sun); background: var(--sun-hover); border-color: var(--sun-hover); box-shadow: 0 8px 20px rgba(255, 106, 43, .32); }
/* tónové tlačítko: opakuje se v každé kartě, proto ne plná zelená (26 plných tlačítek pod sebou je těžkých) */
.btn.tonal { color: var(--accent); background: var(--tint); border-color: transparent; }
.btn.tonal:hover { color: var(--on-btn); background: var(--btn); border-color: var(--btn); }
.btn.outline { color: var(--text); background: transparent; border-color: var(--border); }
.btn.outline:hover { color: var(--accent); background: var(--tint); border-color: var(--accent); box-shadow: none; }
.btn.big { padding: 14px 26px; font-size: 15px; }
.btn:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }

label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
label.check { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 14px; font-weight: 400; color: var(--text); cursor: pointer; }
label.check input { flex: none; width: 24px; height: 24px; margin: 0; padding: 0; accent-color: var(--accent); }

select, input, textarea {
  width: 100%;
  padding: 11px 13px;
  background: var(--field);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
select:hover, input:hover, textarea:hover { border-color: var(--muted); }
select:focus, input:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); outline: none; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }

select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 36px;
  background-image: var(--select-arrow);
  background-repeat: no-repeat;
  background-position: right 13px center;
}
select option, select optgroup { color: #111; background: #fff; }

fieldset { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--r-sm); }
legend { padding: 0 6px; font-size: 13px; color: var(--muted); }
.contact-fs { display: grid; gap: 8px; }


/* ===== 5. ÚVODNÍ STRÁNKA ===== */
/* úvod: bílý, vlevo velký nadpis, hledání a rychlé odkazy; vpravo fotka města s oranžovou plochou za ní */
.hero { position: relative; margin-top: 0; padding: 72px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 72px; align-items: center; }
.hero-grid:not(.has-photo) { grid-template-columns: minmax(0, 1fr); }
.hero-copy { min-width: 0; }
.hero h1 { max-width: 10.5em; font-size: clamp(36px, 5.6vw, 76px); line-height: 1.04; letter-spacing: -.04em; word-spacing: .05em; color: var(--text); }
.hero .subtitle { max-width: 48ch; margin: 24px 0 0; font-size: 19px; line-height: 1.55; color: var(--muted); }

.hero-photo { position: relative; margin: 0; min-width: 0; }
.hero-photo-frame { position: relative; isolation: isolate; aspect-ratio: 4 / 5; background: var(--tint); border-radius: 28px; }
.hero-photo-frame::before { content: ""; position: absolute; z-index: -1; inset: 26px -20px -20px 26px; background: var(--sun); border-radius: 28px; }
.hero-photo-frame img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 28px; outline: 1px solid rgba(15, 26, 21, .12); outline-offset: -1px; }
/* klepnutí na fotku ukáže další město: celé pole je tlačítko, nová fotka se rozlije od místa klepnutí */
.hero-photo-btn { position: absolute; inset: 0; display: block; width: 100%; padding: 0; border: 0; border-radius: 28px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.hero-photo-btn:focus-visible { outline: 3px solid var(--text); outline-offset: 5px; }
.hero-slides { position: absolute; inset: 0; transition: transform .7s var(--ease); }
.hero-photo-btn:hover .hero-slides { transform: scale(1.03); }
.hero-slide-in { z-index: 1; clip-path: circle(0 at var(--cx, 50%) var(--cy, 50%)); transition: clip-path .85s cubic-bezier(.3, .7, .2, 1); }
.hero-slide-in.go { clip-path: circle(150% at var(--cx, 50%) var(--cy, 50%)); }
.hero-photo-tag { position: absolute; z-index: 2; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 16px; padding: 9px 9px 9px 18px; background: var(--bg); color: var(--text); border-radius: 999px; box-shadow: 0 8px 24px rgba(11, 26, 19, .22); pointer-events: none; }
.hp-text { display: grid; gap: 1px; }
.hp-city { font: 800 17px/1.15 var(--display, inherit); letter-spacing: -.02em; }
.hp-sub { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.hp-n { font-variant-numeric: tabular-nums; }
.hp-go { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); color: var(--on-sun); transition: transform .35s var(--ease); }
.hero-photo-btn:hover .hp-go, .hero-photo-btn:focus-visible .hp-go { transform: translateX(3px); }
.hero-photo-btn:active .hp-go { transform: scale(.92); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.hero-photo .city-credit { display: block; margin-top: 32px; padding: 4px 0; font-size: 12px; line-height: 16px; text-align: right; color: var(--muted); text-decoration: none; }
.hero-photo .city-credit:hover, .hero-photo .city-credit:focus-visible { color: var(--accent); text-decoration: underline; }

.hero-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  max-width: 660px;
  margin-top: 40px;
}
.hero-search .search-hint, .hero-search .finder-msg { grid-column: 1 / -1; }
.hero-search .search-hint { margin: -2px 0 0; font-size: 13.5px; }
.hero-search .finder-msg { margin: -4px 0 0; }
.hero-search label { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--text); }
.hero-search input { height: 56px; padding: 0 18px; font-size: 16px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 14px; }
.hero-search input:hover { border-color: var(--border); }
.hero-search input:focus { background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px var(--tint); }
.hero-search .btn { height: 56px; padding: 0 32px; font-size: 16px; color: var(--on-sun); background: var(--sun); border-color: var(--sun); border-radius: 14px; }
.hero-search .btn:hover { background: var(--sun-hover); border-color: var(--sun-hover); box-shadow: 0 10px 24px rgba(255, 106, 43, .36); }

/* políčko "škola nebo město" s našeptávačem */
.finder { position: relative; }
.finder-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
  max-height: min(52vh, 420px); overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-hover);
  animation: pop .18s var(--ease);
}
.finder-list[hidden] { display: none; }
.finder-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 12px; border-radius: 9px; cursor: pointer; transition: background-color .15s ease; }
.finder-list li.on, .finder-list li:hover { background: var(--tint); }
.finder-list li.on { outline: 2px solid var(--accent); outline-offset: -2px; }
.finder-list .f-l { font-weight: 600; color: var(--text); }
.finder-list .f-s { min-width: 0; font-size: 13px; color: var(--muted); text-align: right; }
.finder-list .f-city { margin-top: 2px; }
.finder-list .f-city .f-l { font-weight: 700; }
.finder-list .f-school { padding-left: 24px; }
.finder-msg { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.finder-msg:empty { display: none; }

.quick { display: flex; flex-wrap: wrap; gap: 8px; max-width: 660px; margin-top: 20px; }
.qlink {
  padding: 8px 13px; font-size: 14px; color: var(--text); background: var(--surface-2);
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s var(--ease);
 text-decoration: none;}
.qlink:hover { color: var(--accent); background: var(--tint); border-color: var(--accent); transform: translateY(-2px); }

.section { padding: 104px 0 0; }
.cities-sec { padding-top: 96px; }
.sec-title { margin: 0 0 36px; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; }

/* karty měst jako na Airbnb: fotka bez rámečku s názvem, pod ní počet nabídek a kruh se šipkou, úplně dole podpis autora */
.cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.city-card { position: relative; min-width: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
.city-open { display: block; width: 100%; padding: 0; text-align: left; color: var(--text); text-decoration: none; background: none; border: 0; cursor: pointer; }
.city-open:focus-visible { outline: none; }
.city-open:focus-visible .city-media { outline: 3px solid var(--accent); outline-offset: 3px; }
.city-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); border-radius: 22px; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.city-card:hover .city-media, .city-card:focus-within .city-media { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.city-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 22, 15, .78) 0%, rgba(6, 22, 15, .26) 36%, rgba(6, 22, 15, 0) 64%); pointer-events: none; }
.city-art, .city-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.city-art svg { display: block; width: 100%; height: 100%; filter: saturate(.6); }   /* ilustrace (jen když fotka chybí) je tlumená */
.city-photo { object-fit: cover; transition: transform .8s var(--ease); }
.city-card:hover .city-photo, .city-card:hover .city-art svg { transform: scale(1.06); }
.city-art svg { transition: transform .8s var(--ease); }
.city-name { position: absolute; z-index: 1; left: 20px; bottom: 16px; max-width: calc(100% - 40px); font: 800 30px/1.05 var(--display); letter-spacing: -.035em; color: #fff; overflow-wrap: anywhere; }
.city-foot { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 2px 2px; }
.city-card .ct { display: block; min-width: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.city-go { position: relative; flex: none; width: 36px; height: 36px; background: var(--tint); border-radius: 50%; transition: background-color .3s ease, transform .35s var(--ease); }
.city-go::before { content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: translate(-70%, -50%) rotate(45deg); transition: border-color .3s ease; }
.city-card:hover .city-go { background: var(--sun); transform: translateX(3px); }
.city-card:hover .city-go::before { border-color: var(--on-sun); }
.city-credit { display: block; margin-top: 0; padding: 4px 2px; font-size: 12px; line-height: 16px; color: var(--muted); text-decoration: none; }
.city-credit:hover, .city-credit:focus-visible { color: var(--accent); text-decoration: underline; }
/* na kartě města je autor fotky malý štítek v rohu fotky (odkaz na stránku souboru), ne další řádek pod kartou */
.city-card .city-credit {
  position: absolute; z-index: 2; top: 10px; right: 10px; max-width: calc(100% - 20px); padding: 4px 9px;
  font-size: 11px; line-height: 16px; color: #fff; background: rgba(6, 12, 9, .5); border-radius: 999px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: .85; transition: opacity .2s ease;
}
.city-card .city-credit:hover, .city-card .city-credit:focus-visible { color: #fff; opacity: 1; }

/* další města: menší karty, čtyři v řadě */
.more-head { margin-top: 64px; }
.more-head h3 { margin: 0 0 4px; font: 800 26px/1.15 var(--display); letter-spacing: -.03em; }
.more-head > p { margin: 0 0 22px; max-width: 64ch; }
.cities-sm { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
.city-card.sm .city-media { border-radius: 18px; }
.city-card.sm .city-name { left: 14px; bottom: 12px; max-width: calc(100% - 28px); font-size: 21px; }
.city-card.sm .city-foot { padding-top: 10px; }
.city-card.sm .ct { font-size: 13.5px; }
.city-card.sm .city-go { width: 30px; height: 30px; }
.all-schools { margin-top: 28px; }

/* poctivá poznámka a čísla: tmavě zelený pás přes celou šířku okna, čísla v barevných dlaždicích */
.data-band {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; align-items: center;
  margin-top: 120px; padding: 88px 0;
  color: #fff; background: var(--deep);
  box-shadow: 0 0 0 100vmax var(--deep); clip-path: inset(0 -100vmax);
}
.honest { margin: 0; }
.honest::before { content: ""; display: block; width: 52px; height: 52px; margin-bottom: 24px; background: var(--sun) var(--check-icon-ink) center / 26px no-repeat; border-radius: 16px; }
.honest p { margin: 0 0 16px; max-width: 44ch; font-size: 21px; line-height: 1.5; font-weight: 500; color: #fff; }
.honest a { display: inline-block; padding: 3px 0; font-weight: 600; color: #8fe3bf; }
.honest :focus-visible, .data-band :focus-visible { outline-color: var(--sun); }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; }
.stats > div { display: block; padding: 26px 26px 24px; border-radius: 22px; background: var(--t-mint-bg); color: var(--t-mint); transition: transform .35s var(--ease); }
/* dvě barvy značky do šachovnice: mátová a broskvová */
.stats > div:nth-child(2), .stats > div:nth-child(3) { background: var(--t-peach-bg); color: var(--t-peach); }
.stats > div:hover { transform: translateY(-4px); }
.stats dt { margin: 0; font: 800 64px/1 var(--display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: inherit; }
.stats dt.stat-date { font-size: 30px; padding-top: 17px; letter-spacing: -.03em; }
.stats dd { margin: 10px 0 0; color: inherit; font-size: 14.5px; line-height: 1.4; }

/* proč BydliHub: světle zelený pás, čtyři krátké odstavce, každý s ikonou v pastelovém čtverci */
.section.tinted { margin-top: 104px; padding: 88px 0 96px; background: var(--tint); box-shadow: 0 0 0 100vmax var(--tint); clip-path: inset(0 -100vmax); }
.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 72px; }
.ledger-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-content: start; gap: 0 22px; }
.ledger-row .ico { grid-row: 1 / span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--t-mint-bg); color: var(--t-mint); transition: transform .35s var(--ease); }
.ledger-row:nth-child(2) .ico, .ledger-row:nth-child(3) .ico { background: var(--t-peach-bg); color: var(--t-peach); }
.ledger-row:hover .ico { transform: rotate(-6deg) scale(1.08); }
.ledger-row .ico svg { width: 27px; height: 27px; }
.ledger-row h3 { margin: 2px 0 6px; font-size: 20px; line-height: 1.3; }
.ledger-row p { max-width: 52ch; margin: 0; color: var(--muted); }

/* Čím BydliHub nikdy nebude: vlevo nadpis s vysvětlením, vpravo pět přeškrtnutých názvů s jednou větou pod každým.
   Přeškrtnutí je jen ozdoba textu (oranžová čára), význam nese nadpis sekce. */
.never { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px 72px; align-items: start; }
.never-head .sec-title { margin: 0 0 14px; }
.never-lead { max-width: 30ch; margin: 0 0 18px; font-size: 19px; line-height: 1.45; color: var(--muted); }
.never-more { display: inline-block; padding: 3px 0; font-weight: 600; }   /* samostatný odkaz: aspoň 24 px na výšku */
.never-list { margin: 0; padding: 0; list-style: none; }
.never-list li { padding: 22px 0 24px; border-top: 1px solid var(--line); }
.never-list li:first-child { padding-top: 0; border-top: 0; }
.never-list h3 { margin: 0 0 6px; font: 700 clamp(22px, 2.3vw, 28px)/1.2 var(--display); letter-spacing: -.03em; }
.never-list p { max-width: 54ch; margin: 0; color: var(--muted); }
.strike { text-decoration: line-through; text-decoration-color: var(--sun); text-decoration-thickness: .1em; text-decoration-skip-ink: none; }

/* tři kroky jdou opravdu po sobě, proto jsou číslované a spojené čárou */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; margin: 0; padding: 0; list-style: none; }
.how-item { position: relative; padding: 0; }
.how-item .num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px;
  font: 800 22px/1 var(--display); color: var(--on-sun); background: var(--sun); border-radius: 16px;
  box-shadow: 0 0 0 6px var(--bg), 0 10px 22px rgba(255, 106, 43, .32);
}
.how-item:not(:last-child)::after { content: ""; position: absolute; top: 25px; left: 70px; right: -28px; border-top: 2px dashed var(--border); transform-origin: left center; }
.how-item h3 { margin: 0 0 6px; font-size: 20px; }
.how-item p { max-width: 36ch; margin: 0; color: var(--muted); }

.cta {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center;
  margin-top: 104px; padding: 48px 52px; color: var(--on-sun); background: var(--sun); border-radius: 32px;
}
.cta h2 { margin-bottom: 6px; font-size: 32px; color: var(--on-sun); }
.cta p { margin: 0; color: var(--on-sun); }
.cta .btn { color: var(--bg); background: var(--text); border-color: var(--text); }
.cta .btn:hover { color: var(--bg); background: #25362e; border-color: #25362e; box-shadow: 0 8px 22px rgba(15, 26, 21, .3); }
.cta :focus-visible { outline-color: var(--text); }


/* ===== 6. HLEDÁNÍ: PANEL FILTRŮ A VÝSLEDKY ===== */
.search-head { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; justify-content: space-between; padding: 32px 0 16px; }
.page-title { font-size: clamp(30px, 3.8vw, 42px); line-height: 1.08; }
.search-head .count { font: 500 14px var(--sans); font-variant-numeric: tabular-nums; color: var(--muted); }

.toolbar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.tb-note { margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 6px 14px; font-size: 14px; color: var(--text); background: transparent;
  border: 1px solid var(--border); border-radius: 999px; cursor: pointer; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s var(--ease);
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--tint); }
.chip:active { transform: scale(.96); }
.chip.on { color: var(--chip-on-fg); background: var(--chip-on-bg); border-color: var(--chip-on-bg); font-weight: 600; }

.row2 { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; }
.qbar { display: flex; gap: 8px; align-items: center; flex: 1 1 280px; min-width: 0; max-width: 440px; margin-left: auto; }
.qbar input { flex: 1 1 0; width: 0; min-width: 0; padding: 9px 13px; }
.qbar .btn { padding: 10px 18px; }
.head-r { display: flex; gap: 6px 16px; align-items: baseline; }
.head-r .linklike { font-size: 13px; }
.viewbar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 14px; }
.viewbar .chip { padding: 5px 15px; font-size: 13px; }
.sortbox { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.sortbox select { width: auto; min-width: 150px; padding: 7px 34px 7px 12px; font-size: 14px; color: var(--text); border-radius: 999px; }
.city-row { flex-wrap: nowrap; justify-content: flex-start; gap: 10px; }
.city-row .tabs { flex: 0 1 auto; }
.city-more { width: auto; max-width: 190px; flex: 0 0 auto; padding: 6px 30px 6px 14px; font-size: 14px; border-radius: 999px; background-position: right 12px center; }
.city-more.on { color: var(--chip-on-fg); background-color: var(--chip-on-bg); border-color: var(--chip-on-bg); font-weight: 600; }

.tabs { min-width: 0; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; align-items: end; padding: 12px 0 2px; }
.controls label { display: grid; gap: 6px; min-width: 0; }
.controls input, .controls select { width: 100%; min-width: 0; }
.help-btn { margin-left: auto; font-size: 13px; color: var(--muted); }
.school-row { justify-content: flex-start; }

.fineprint { max-width: 90ch; margin: 10px 0 20px; font-size: 13px; }
.note { margin: 0 0 14px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

.card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card-image { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: var(--surface-2); }
.card-image svg { display: block; width: 100%; height: 100%; filter: saturate(.65); }
.card-image img, .card-image svg { transition: transform .7s var(--ease); }
.card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card:hover .card-image img, .card:hover .card-image svg { transform: scale(1.05); }

.art-tag { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; font: 500 12px var(--sans); color: #fff; background: rgba(10, 22, 56, .8); border-radius: 999px; }

.card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 18px 18px; }
.card-body h3 { font-size: 17px; line-height: 1.3; font-weight: 600; }
.price { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--text); }
.card-body .price { margin-top: 2px; }
/* cena na dva řádky: cena z inzerátu a pod ní menším písmem orientační přepočet */
.price .p-main { display: block; }
.price .p-conv { display: block; margin-top: 3px; font: 500 13px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
.card-body .price .p-main { font-size: 23px; }
.facts { font-size: 14px; color: var(--text); }
.meta { font-size: 13px; }
p.badge.warn.local-note { display: block; max-width: 640px; margin: 10px 0 0; padding: 9px 12px; }

.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.card-actions .btn { flex: 1; }
.card-actions .fav { flex: 0 0 46px; padding: 0; }
.card-actions .fav[aria-pressed="true"] { color: var(--sun); border-color: var(--sun); }
.card-actions.row { margin-top: 10px; padding-top: 0; }
.card-actions.row .btn { flex: 0 1 auto; }

.badge {
  display: inline-block; margin: 0 4px 4px 0; padding: 2px 10px;
  font: 600 12px/1.55 var(--sans);
  color: var(--muted); background: var(--surface-2); border: 1px solid transparent; border-radius: 999px;
}
.badge.src::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--sc, var(--muted)); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.ok-badge { color: var(--ok); background: var(--ok-bg); }
.badge.comm.yes { color: var(--warn); background: var(--warn-bg); }
.badge.comm.no { color: var(--ok); background: var(--ok-bg); }
.badge.st-pending { color: var(--warn); background: var(--warn-bg); }
.badge.st-approved { color: var(--ok); background: var(--ok-bg); }
.badge.st-rejected, .badge.st-removed { color: var(--muted); border-style: dashed; border-color: var(--border); background: transparent; }
p.badge.warn { margin: 12px 0 16px; padding: 10px 14px; font: 400 13px/1.5 var(--sans); border-radius: var(--r-sm); }
p.ok.bad { color: var(--warn); }
p.badge { display: block; }

.empty { padding: 56px 20px; text-align: center; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--r); }
.empty h2 { margin-bottom: 6px; font: 600 19px var(--sans); letter-spacing: -.01em; }
.empty .card-actions { max-width: 380px; margin: 0 auto; }
/* prázdný výsledek: odkazy na velké portály jako hlavní akce, „Zobrazit vše“ pod nimi */
.empty .empty-portals { max-width: 520px; padding-top: 18px; }
.empty .empty-portals + .card-actions { padding-top: 10px; }


/* ===== 7. DETAIL, DIALOGY, FORMULÁŘE ===== */
.box { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.form-narrow { max-width: 640px; }

dialog {
  width: calc(100% - 24px); max-width: 620px; padding: 28px;
  color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-pop);
}
dialog[open] { animation: pop .28s var(--ease); }
dialog::backdrop { background: rgba(8, 16, 40, .62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
dialog[open]::backdrop { animation: fade .28s ease; }
dialog h3 { font: 700 23px/1.2 var(--display); letter-spacing: -.02em; }

dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; margin: 14px 0; }
dt, dd { overflow-wrap: anywhere; }
dt { color: var(--muted); }
dd { margin: 0; }

.description { margin: 12px 0; padding: 16px; background: var(--surface-2); border-radius: var(--r-sm); }
.contact { margin: 12px 0; padding: 16px; border: 1px solid var(--border); border-radius: var(--r-sm); }
.contact p { margin: 2px 0; }
.detail-img { width: 100%; max-height: 280px; margin: 8px 0; object-fit: cover; border-radius: 14px; }
.detail-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.detail-actions .primary { grid-column: 1 / -1; padding: 14px 18px; }
/* Detail: křížek vpravo nahoře i tlačítka dole zůstávají vidět i při posouvání dlouhého detailu.
   Spodní okraj okna dělá lišta tlačítek (přilepená ke spodní hraně), proto #detail nemá spodní odsazení. */
#detail { padding-bottom: 0; }
.detail-x {
  position: sticky; top: 0; z-index: 3; float: right; display: grid; place-items: center;
  width: 40px; height: 40px; margin: -12px -12px 0 12px; padding: 0;
  font: 400 26px/1 var(--sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
}
.detail-x:hover, .detail-x:focus-visible { color: var(--accent); border-color: var(--accent); }
.detail-actions {
  position: sticky; bottom: 0; z-index: 3; margin: 16px -28px 0; padding: 12px 28px 20px;
  background: var(--surface); border-top: 1px solid var(--line);
}
.share-url { grid-column: 1 / -1; width: 100%; font-size: 13px; }
.loc-how { margin: 8px 0 4px; font-size: 14px; }
.loc-how summary { color: var(--muted); cursor: pointer; }
.loc-how p { margin: 6px 0 0; }
@media (max-width: 640px) {
  .detail-x { margin: -8px -6px 0 10px; }
  .detail-actions { margin: 14px -18px 0; padding: 10px 18px 14px; }
}
.ok { color: var(--ok); font-weight: 600; }
#report-none { margin: 10px 0 14px; }


/* ===== 8. POLOHA, VZDÁLENOSTI A MAPA ===== */
.sub { margin: 30px 0 14px; font-size: 19px; }
.hint { margin: 4px 0 0; }

.loc { display: grid; gap: 3px; margin: 2px 0 4px; padding: 9px 0; font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loc-addr { color: var(--text); }
.loc-dist { display: flex; flex-wrap: wrap; gap: 2px 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.u { white-space: nowrap; }
.u::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--uc, var(--muted)); }
.u b { color: var(--text); font-weight: 600; }

.prec {
  display: inline-block; margin-left: 8px; padding: 1px 9px;
  font: 600 12px/1.5 var(--sans); white-space: nowrap;
  color: var(--muted); background: var(--surface-2); border-radius: 999px;
}
.prec.house { color: var(--ok); background: var(--ok-bg); }
.prec.street, .prec.area { color: var(--warn); background: var(--warn-bg); }

.loc-box { margin: 14px 0; padding: 16px; border: 1px solid var(--border); border-radius: 14px; }
.loc-box h4 { margin: 0 0 6px; font: 600 16px var(--sans); }
.loc-box p { margin: 6px 0; }
.loc-links { font-size: 14px; }
.dist-table { width: 100%; margin: 12px 0 4px; border-collapse: collapse; font-size: 14px; }
.dist-table td { padding: 6px 10px 6px 0; vertical-align: baseline; border-top: 1px solid var(--line); }
.dist-table td.num { text-align: right; padding-right: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.more-sites { margin: 6px 0 10px; font-size: 14px; }
.more-sites summary { cursor: pointer; color: var(--muted); }
.more-sites ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }

.map-box {
  position: relative; z-index: 0; isolation: isolate;
  height: min(68vh, 560px); min-height: 360px; margin-bottom: 8px; overflow: hidden;
  background: var(--map-bg); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
}
.map-box.mini { height: 260px; min-height: 0; border-radius: 14px; box-shadow: none; }

/* Mapa výsledků: na telefonu a tabletu mapa nahoře a karty pod ní, na počítači karty vlevo a mapa vpravo,
   přilepená pod hlavičkou, ať je vidět při posouvání seznamu. */
.map-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.map-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-content: start; }
.map-list .card { transition: box-shadow .3s ease, outline-color .3s ease; outline: 2px solid transparent; outline-offset: 2px; }
.map-list .card:hover, .map-list .card.flash { outline-color: var(--sun); }
@media (min-width: 1101px) {
  .map-split { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); align-items: start; }
  .map-col { order: 2; position: sticky; top: 76px; }
  .map-col .map-box { height: calc(100vh - 130px); min-height: 420px; margin-bottom: 6px; }
  .map-list { order: 1; grid-template-columns: minmax(0, 1fr); }
}

/* kroužek se slitými piny: počet nabídek, na najetí (nebo když je kurzor nad kartou) oranžový */
.pin-cluster span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); display: grid; place-items: center;
  min-width: 38px; height: 38px; padding: 0 8px; font: 800 14px/1 var(--sans); color: var(--on-pin);
  background: var(--pin); border-radius: 999px; box-shadow: 0 0 0 3px var(--on-pin), 0 6px 14px rgba(0, 0, 0, .32);
  cursor: pointer; transition: transform .25s var(--ease), background-color .2s ease, color .2s ease;
}
.pin-cluster:hover span, .pin-cluster.hl span { color: var(--on-sun); background: var(--sun); transform: translate(-50%, -50%) scale(1.1); }
.pin-cluster:hover, .pin-cluster.hl, .pin.hl { z-index: 1000 !important; }
.pin.hl span { color: var(--on-sun); background: var(--sun); transform: translate(-50%, -100%) scale(1.12); }
.pin.hl span::after { border-top-color: var(--sun); }
.pop-hr { margin: 10px 0; border: 0; border-top: 1px solid var(--line); }
.leaflet-container { font: 12px/1.5 var(--sans); background: var(--map-bg); }
.leaflet-tile-pane { filter: var(--map-filter); }
.leaflet-container a { color: var(--accent); }

.leaflet-bar a, .leaflet-bar a:hover { color: var(--text); background: var(--surface); border-color: var(--border); }
.leaflet-bar a:hover { background: var(--surface-2); }
.leaflet-touch .leaflet-bar { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.leaflet-control-attribution { color: var(--muted); background: var(--header-bg) !important; }

.leaflet-popup-content-wrapper, .leaflet-popup-tip { color: var(--text); background: var(--surface); box-shadow: var(--shadow-hover); border: 1px solid var(--line); }
.leaflet-popup-content-wrapper { border-radius: 14px; }
.leaflet-popup-content { margin: 14px 16px; font-size: 14px; line-height: 1.45; }
.leaflet-popup-content .dists { display: grid; gap: 1px; margin: 6px 0 10px; color: var(--muted); }
.leaflet-popup-content .btn { padding: 8px 16px; font-size: 13px; color: var(--on-btn); }
.leaflet-container a.leaflet-popup-close-button { color: var(--muted); }

.leaflet-tooltip.site-tip { padding: 2px 8px; font: 600 11px var(--sans); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: none; }
.leaflet-tooltip.site-tip::before { display: none; }

/* špendlík s cenou: tmavě zelená „pilulka“ s bílým okrajem (v tmavém vzhledu světlá), na najetí oranžová a větší */
.pin span {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -100%); margin-top: -8px; padding: 4px 11px;
  font: 700 13px/1.2 var(--sans); color: var(--on-pin); white-space: nowrap;
  background: var(--pin); border-radius: 999px; box-shadow: 0 0 0 2px var(--on-pin), 0 6px 14px rgba(0, 0, 0, .32);
  transition: transform .25s var(--ease), background-color .2s ease, color .2s ease;
}
.pin span::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; margin-left: -5px;
  border: 5px solid transparent; border-top-color: var(--pin); border-bottom: 0; transition: border-color .2s ease;
}
.pin:hover span { transform: translate(-50%, -100%) scale(1.1); color: var(--on-sun); background: var(--sun); }
.pin:hover span::after { border-top-color: var(--sun); }
.pin:hover { z-index: 1000 !important; }   /* pin pod kurzorem nad ostatními, ať jde přečíst cena */
.pin:focus-visible { outline: none; }
.pin:focus-visible span { outline: 2px solid var(--text); outline-offset: 3px; }
.detail-photo { margin: 14px 0; }
.detail-photo img { margin: 0; }
.detail-photo figcaption { margin-top: 4px; }


/* ===== 9. STRÁNKY S TEXTEM: PRŮVODCE, ZAHRANIČNÍ STUDENTI, O PROJEKTU, SKUPINY ===== */
.page-head { padding: 44px 0 26px; }
.page-head .page-title { margin: 0 0 12px; }
.page-head .lead { max-width: 64ch; margin: 0 0 16px; font-size: 17px; }
.page-head .tabs { margin-top: 14px; }
.page-head .logged { margin: 8px 0 0; }
.band-art { display: none; }

.guide { max-width: 740px; }
.g-sec { margin-bottom: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.g-sec { scroll-margin-top: 20px; }

/* obsah stránky: na úzkém displeji řada odkazů nad textem, na širokém lepkavý sloupec vlevo */
.toc { margin: 0 0 28px; padding: 14px 18px; background: var(--surface-2); border-radius: var(--r-sm); }
.toc-h { margin: 0 0 8px; font: 600 13px/1.3 var(--sans); color: var(--muted); }
.toc ol { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 3px 0; font-size: 14px; color: var(--text); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 1101px) {
  .guide.has-toc { display: grid; grid-template-columns: 220px minmax(0, 700px); column-gap: 56px; max-width: none; align-items: start; }
  .guide.has-toc > * { grid-column: 2; }
  .guide.has-toc > .toc {
    grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 88px; margin: 0; padding: 0 0 0 16px;
    background: none; border-left: 2px solid var(--line); border-radius: 0; max-height: calc(100vh - 120px); overflow: auto;
  }
  .toc ol { display: block; }
  .toc li { margin: 0; }
  .toc a { display: block; padding: 6px 0; font-size: 14px; line-height: 1.35; }
  .g-sec { scroll-margin-top: 88px; }
}
.g-sec h2 { margin-bottom: 12px; font-size: 26px; line-height: 1.2; }
.g-sec ul, .g-sec ol { margin: 0 0 10px; padding-left: 22px; }
.g-sec li { margin-bottom: 8px; }
.g-sec p { margin: 6px 0; }
.g-sec .sources { list-style: none; padding: 0; }
.g-sec .sources li { margin-bottom: 4px; }

.g-sec .never-list { margin: 0; padding-left: 0; }   /* přebíjí .g-sec ul (odsazení seznamu) */
.g-sec .never-list li { margin: 0; }
.guide .never-list h3 { font-size: 22px; }
.guide .never-list li { padding: 18px 0 20px; }
.g-sec .maker-note { max-width: 38ch; margin: 4px 0 14px; padding-left: 18px; border-left: 4px solid var(--sun); font: 700 21px/1.4 var(--display); letter-spacing: -.02em; }

.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item > summary { display: flex; gap: 12px; align-items: center; justify-content: space-between; min-height: 48px; padding: 12px 2px; font: 600 17px/1.35 var(--sans); cursor: pointer; list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "▾"; flex: none; color: var(--muted); transition: transform .3s var(--ease); }
.faq-item[open] > summary::after { transform: rotate(180deg); }
.faq-item[open] > p { animation: fade .3s ease; }
.g-sec .faq-item > p { max-width: 62ch; margin: 0 0 16px; padding: 0 2px; color: var(--muted); }

.rules { display: block; margin: 12px 0 0; border-top: 1px solid var(--line); }   /* display: block přebíjí obecné pravidlo pro dl (dvousloupcová mřížka) */
.rule { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rule dt { color: var(--muted); }
.rule dd { margin: 0; font-weight: 600; }

.log-day { margin: 0 0 16px; }
.log-day h3 { margin: 14px 0 6px; font: 700 16px var(--sans); color: var(--accent); }
.g-sec .log-note { margin-top: 10px; font-size: 14px; }

.add-rules { max-width: 640px; margin: 0 0 18px; padding: 14px 18px; background: var(--surface-2); border-radius: var(--r-sm); }
.add-rules h2 { margin: 0 0 6px; font: 700 16px/1.4 var(--sans); letter-spacing: 0; }
.add-rules ul { margin: 0; padding-left: 22px; }
.add-rules li { margin: 3px 0; }
.add-rules li::marker { content: "× "; color: var(--warn); font-weight: 700; }
.jumps { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.jumps .jump { padding: 5px 13px; font-size: 14px; color: var(--accent); background: var(--tint); border: 0; border-radius: 999px; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s var(--ease); }
.jumps .jump:hover { color: var(--on-btn); background: var(--btn); transform: translateY(-2px); }

.intl .tabs { margin: 12px 0 16px; }
.schools { display: grid; gap: 12px; }
.school { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); transition: box-shadow .3s var(--ease), border-color .3s ease; }
.school:hover { box-shadow: var(--shadow-hover); border-color: transparent; }
.school > summary {
  display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; justify-content: space-between;
  padding: 16px 20px; cursor: pointer; list-style: none;
}
.school > summary::-webkit-details-marker { display: none; }
.school > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .3s var(--ease); }
.school[open] > summary::after { transform: rotate(180deg); }
.school[open] .s-body { animation: fade .3s ease; }
.s-name { font: 600 17px var(--sans); }
.s-cities { display: inline-flex; gap: 4px; }
.s-cities .badge { margin: 0; }
.s-body { padding: 0 20px 20px; }
.s-body h3 { margin: 16px 0 2px; font: 600 14px var(--sans); color: var(--accent); }
.s-body p { margin: 0; }

.mine { margin-top: 40px; }
.mine-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: center; padding: 14px 16px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.mine-main { display: grid; gap: 1px; }
.mine-state { grid-column: 1; }
.mine-state .badge { margin: 0 4px 0 0; }
.mine-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.mine-actions .btn { padding: 8px 15px; font-size: 13px; }


/* ===== 10. SLOVNÍČEK, SBALITELNÉ FILTRY, STARŠÍ ÚDAJE ===== */
abbr.gl { text-decoration: underline dotted var(--accent); text-underline-offset: 3px; cursor: help; }
abbr.gl:hover, abbr.gl:focus-visible { color: var(--accent); }
.gl-pop {
  position: fixed; z-index: 1000; max-width: min(340px, calc(100vw - 20px)); padding: 12px 14px;
  font: 400 13.5px/1.45 var(--sans); color: var(--text); background: var(--surface);
  border: 1px solid var(--accent); border-radius: 12px; box-shadow: var(--shadow-hover);
  animation: pop .18s var(--ease);
}
.gl-pop b { color: var(--accent); }

.gl-group { margin: 28px 0 4px; font: 700 18px var(--display); color: var(--text); }
.gl-list { margin: 4px 0 12px; }
.gl-list dt { margin-top: 12px; font-weight: 600; color: var(--text); }
.gl-list dd { margin: 2px 0 0; color: var(--muted); }
.school-help { padding-top: 2px; }
.school-help .gl-list { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin-top: 10px; font-size: 14px; }
.school-help .gl-list dt, .school-help .gl-list dd { margin: 0; }
.school-help .gl-list dt { color: var(--text); }
.school-help .gl-list dd { color: var(--muted); }

.badge.stale { color: var(--muted); border-style: dashed; border-color: var(--border); background: transparent; }
.price-note { margin: 4px 0 10px; font-size: 13px; }
.price-link { margin: 2px 0 8px; font-size: 14px; }

/* panel dalších filtrů: sbalený, tlačítko vedle přepínače Seznam / Mapa s počtem zapnutých filtrů */
.vb-l { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; font-size: 13px; font-weight: 500; color: var(--text);
  background: transparent; border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.more-btn::after { content: "▾"; font-size: 12px; color: var(--muted); transition: transform .3s var(--ease); }
.more-btn[aria-expanded="true"]::after { transform: rotate(180deg); }
.more-btn:hover, .more-btn[aria-expanded="true"] { color: var(--accent); border-color: var(--accent); background: var(--tint); }
.filter-panel { margin-top: 10px; padding: 8px 16px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.filter-panel[hidden] { display: none; }
.f-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; font: 700 12px/1 var(--sans); color: var(--on-sun); background: var(--sun); border-radius: 999px; }

/* Telefon: volby hledání (města, typy, školy, text i další filtry) jsou sbalené pod jedním tlačítkem „Filtry“ v řadě
   se Seznam / Mapa, aby výsledky začínaly hned na první obrazovce. Rozbalené pokračují pod tou řadou a končí
   tlačítkem „Zobrazit N nabídek“. Na širších displejích se tlačítko neukazuje a pořadí zůstává. */
.mf-btn, .mf-done { display: none; }
@media (max-width: 640px) {
  .search-ctrl { display: flex; flex-direction: column; }
  .search-ctrl .viewbar { order: -1; margin-top: 0; }
  .search-ctrl .toolbar { margin-top: 12px; }
  .search-ctrl:not(.mf-open) .toolbar, .search-ctrl:not(.mf-open) .filter-panel { display: none; }
  .search-ctrl.mf-open .filter-panel { display: block; }
  .search-ctrl .more-btn:not(.mf-btn) { display: none; }
  .mf-btn { display: inline-flex; }
  .search-ctrl.mf-open .mf-done { display: block; width: 100%; margin-top: 12px; padding: 13px 18px; }
}

.portals { margin: 48px 0 8px; padding-top: 28px; border-top: 1px solid var(--line); }
.portals h3 { margin: 0 0 8px; font-size: 19px; }
.portals p { max-width: 70ch; margin: 0 0 16px; }
.portals .card-actions { justify-content: flex-start; flex-wrap: wrap; margin-top: 0; padding-top: 0; }
.portals .card-actions .btn { flex: 0 1 auto; }
.portals a.btn { text-decoration: none; }


/* ===== 11. POHYB ===== */
@keyframes rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes unveil { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* úvod: jedna sestavená animace při otevření stránky; fotka se odkryje shora dolů a oranžová plocha za ní naskočí */
.hero h1 { animation: rise .85s var(--ease) .05s backwards; }
.hero .subtitle { animation: rise .85s var(--ease) .18s backwards; }
.hero-photo-frame { animation: unveil 1.1s var(--ease) .12s backwards; }
.hero-photo-frame::before { animation: pop .8s var(--ease) 1.2s backwards; }
.hero-photo .city-credit { animation: fade .8s ease 1s backwards; }
.hero-search { animation: rise .85s var(--ease) .32s backwards; }
.hero .quick { animation: rise .85s var(--ease) .44s backwards; }

.no-intro .hero h1, .no-intro .hero .subtitle, .no-intro .hero-photo-frame, .no-intro .hero-photo-frame::before,
.no-intro .hero-photo .city-credit, .no-intro .hero-search, .no-intro .hero .quick { animation: none; }

/* výsledky hledání: karty naskočí postupně (jen prvních devět, zbytek rovnou) */
.grid > .card { animation: rise .55s var(--ease) backwards; }   /* backwards, ať animace po doběhu nepřebíjí najetí myší */
.grid > .card:nth-child(2) { animation-delay: .05s; }
.grid > .card:nth-child(3) { animation-delay: .1s; }
.grid > .card:nth-child(4) { animation-delay: .15s; }
.grid > .card:nth-child(5) { animation-delay: .2s; }
.grid > .card:nth-child(6) { animation-delay: .25s; }
.grid > .card:nth-child(7) { animation-delay: .3s; }
.grid > .card:nth-child(8) { animation-delay: .35s; }
.grid > .card:nth-child(n+9) { animation-delay: .4s; }
.page-head, .search-head { animation: fade .5s ease backwards; }

/* odkrývání při rolování: skript přidá .rv jen prvkům pod okrajem obrazovky a .in, jakmile se objeví;
   bez skriptu zůstává všechno rovnou vidět */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.rv.in { opacity: 1; transform: none; }
.how-item:not(:last-child)::after { transition: transform 1s var(--ease) .3s; }
.how.rv .how-item:not(:last-child)::after { transform: scaleX(0); }
.how.rv.in .how-item:not(:last-child)::after { transform: scaleX(1); }

/* plynulé přepnutí světlého a tmavého vzhledu (třídu na chvíli přidá skript) */
.theming, .theming *, .theming *::before, .theming *::after { transition: background-color .35s ease, color .35s ease, border-color .35s ease, fill .35s ease, box-shadow .35s ease !important; }


/* ===== ukázka v sekci Jak to funguje: okno aplikace se samo přehrává (kroky vlevo se rozsvěcují podle něj) =====
   Základní stav prvků = hotový obraz (karty vidět, první rozbalená). Pohyb se přidává jen přes [data-step],
   takže bez animací (nebo bez skriptu) zůstane statický obrázek. Rozměry v okně jsou v px na plátně 560 × 430,
   které skript zmenšuje podle šířky (--s). */
.how-wrap.has-demo { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 64px; align-items: center; }
.has-demo .how { grid-template-columns: minmax(0, 1fr); gap: 10px; }
.has-demo .how-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 20px; align-items: start; padding: 20px 24px 24px; border-radius: 22px; overflow: hidden; transition: background-color .45s var(--ease); }
.has-demo .how-item::after { display: none; }
.has-demo .how-item .num { grid-row: 1 / span 2; margin-bottom: 0; color: var(--accent); background: var(--tint); box-shadow: none; transition: background-color .4s, color .4s, box-shadow .4s; }
.has-demo .how-item.on { background: var(--tint); }
.has-demo .how-item.on .num { color: var(--on-sun); background: var(--sun); box-shadow: 0 8px 18px rgba(255, 106, 43, .3); }
.how-prog { grid-column: 2; position: relative; height: 3px; margin-top: 14px; border-radius: 3px; overflow: hidden; }
.how-prog::before { content: ""; position: absolute; inset: 0; background: var(--sun); transform: scaleX(0); transform-origin: left center; }
.how-item.on .how-prog { background: rgba(10, 90, 65, .16); }
.how-item.on .how-prog::before { animation: prog var(--dur, 4.6s) linear forwards; }
.how-item:nth-child(1) { --dur: var(--d1, 4.6s); } .how-item:nth-child(2) { --dur: var(--d2, 4.4s); } .how-item:nth-child(3) { --dur: var(--d3, 4.8s); }
@keyframes prog { to { transform: scaleX(1); } }

.how-side { min-width: 0; }
.how-demo { padding: 22px; overflow: hidden; background: var(--tint); border-radius: 30px; pointer-events: none; user-select: none; }
.demo-stage { position: relative; width: 100%; aspect-ratio: 560 / 430; }
.demo-canvas { position: absolute; left: 0; top: 0; width: 560px; height: 430px; overflow: hidden; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 24px 60px rgba(8, 30, 20, .22); transform: scale(var(--s, 1)); transform-origin: 0 0; transition: opacity .4s ease; }
.demo-canvas.out { opacity: 0; }
.demo-bar { display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border); }
.demo-body { position: relative; height: 393px; padding: 18px 20px 0; overflow: hidden; }
.demo-search { display: flex; gap: 10px; height: 46px; }
.demo-field { position: relative; flex: 1; display: flex; align-items: center; min-width: 0; padding: 0 14px; gap: 10px; font-size: 15px; background: var(--surface-2); border: 1.5px solid transparent; border-radius: 12px; }
.demo-field svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.demo-typed { font-weight: 700; white-space: nowrap; }
.demo-caret { width: 2px; height: 19px; margin-left: -8px; background: var(--text); opacity: 0; }
.demo-ph { position: absolute; left: 42px; color: var(--muted); white-space: nowrap; }
.demo-typed:not(:empty) ~ .demo-ph { display: none; }
.demo-go { display: grid; place-items: center; padding: 0 22px; font-size: 15px; font-weight: 700; color: var(--on-sun); background: var(--sun); border-radius: 12px; }
.demo-drop { position: absolute; z-index: 3; left: 20px; top: 70px; width: 320px; margin: 0; padding: 6px; list-style: none; background: var(--bg); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 14px 34px rgba(11, 26, 19, .22); opacity: 0; visibility: hidden; transform-origin: 20px 0; }
.demo-drop li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 12px; font-size: 14.5px; border-radius: 9px; }
.demo-drop li span { font-size: 13px; color: inherit; opacity: .72; }
.demo-count { margin: 18px 2px 10px; font: 800 17px/1.2 var(--display); letter-spacing: -.02em; }
.demo-cards { display: grid; gap: 10px; }
.demo-card { padding: 11px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.demo-row { display: flex; align-items: center; gap: 12px; }
.demo-tile { flex: none; display: grid; place-items: center; width: 42px; height: 42px; color: var(--sc); background: var(--surface-2); background: color-mix(in srgb, var(--sc) 14%, var(--bg)); border-radius: 12px; }
.demo-tile svg { width: 22px; height: 22px; }
.demo-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.demo-main b { overflow: hidden; font-size: 14.5px; white-space: nowrap; text-overflow: ellipsis; }
.demo-main span { overflow: hidden; font-size: 12.5px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.demo-price { flex: none; max-width: 170px; margin: -3px -8px -3px 0; padding: 3px 8px; overflow: hidden; font: 800 15px/1.3 var(--display); letter-spacing: -.01em; white-space: nowrap; text-overflow: ellipsis; border-radius: 8px; }
.demo-more { max-height: 0; overflow: hidden; }
.demo-card:first-child .demo-more { max-height: 56px; }
.demo-src { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--border); }
.demo-src > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.demo-open { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 12.5px; font-weight: 700; color: var(--text); background: var(--surface-2); border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--border); }
.demo-open svg { width: 13px; height: 13px; }
.demo-cursor { position: absolute; z-index: 5; left: 0; top: 0; width: 26px; height: 26px; opacity: 0; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); translate: 540px 410px; }

.demo-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; }
.demo-note { font-size: 13.5px; color: var(--muted); }
.demo-pause { flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 50%; cursor: pointer; transition: border-color .2s, background-color .2s; }
.demo-pause:hover { border-color: var(--accent); background: var(--tint); }
.demo-pause[hidden] { display: none; }
.demo-pause svg { width: 20px; height: 20px; }
.demo-pause .ic-play { display: none; }
.demo-pause[aria-pressed="true"] .ic-pause { display: none; }
.demo-pause[aria-pressed="true"] .ic-play { display: block; }

/* krok 1: kurzor klikne do pole, napíše se město, v nabídce se vybere, klikne se na Hledat */
[data-step="1"] .demo-field { animation: demoFocus 3.5s ease both; }
[data-step="1"] .demo-caret { animation: demoBlink 1s steps(1) infinite; }
[data-step="1"] .demo-count, [data-step="1"] .demo-cards { opacity: 0; }
[data-step="1"] .demo-drop { animation: demoDrop 1.6s var(--ease) 1.75s both; }
[data-step="1"] .demo-drop li { animation: demoPick 1.6s linear 1.75s both; }
[data-step="1"] .demo-go { animation: demoPress .5s ease 3.95s both; }
[data-step="1"] .demo-cursor { animation: demoCur1 var(--d1, 4.6s) both; }
/* krok 2: nabídky naskočí, ceny se postupně zvýrazní (porovnání) */
[data-step="2"] .demo-count { animation: demoRise .5s var(--ease) .15s backwards; }
[data-step="2"] .demo-card { animation: demoRise .6s var(--ease) calc(.3s + var(--i) * .16s) backwards, demoLift .8s ease calc(1.15s + var(--i) * .4s) both; }
[data-step="2"] .demo-card:first-child .demo-more { max-height: 0; }
[data-step="2"] .demo-price { animation: demoFlash .9s ease calc(1.5s + var(--i) * .35s) both; }
[data-step="2"] .demo-cursor { animation: demoCur2 var(--d2, 4.4s) both; }
/* krok 3: první nabídka se rozbalí a klikne se na odkaz na původní inzerát */
[data-step="3"] .demo-card:first-child .demo-more { animation: demoExpand .6s var(--ease) 1s both; }
[data-step="3"] .demo-card:first-child { animation: demoRing 1.4s ease 2.55s both; }
[data-step="3"] .demo-open { animation: demoOpen .7s ease 2.5s both; }
[data-step="3"] .demo-cursor { animation: demoCur3 var(--d3, 4.8s) both; }
.how-wrap.paused .how-demo *, .how-wrap.paused .how-prog::before { animation-play-state: paused !important; }

@keyframes demoFocus { 0%, 18% { border-color: transparent; } 24%, 88% { border-color: var(--accent); } 100% { border-color: transparent; } }
@keyframes demoBlink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes demoDrop { 0% { opacity: 0; visibility: visible; transform: translateY(-6px) scale(.98); } 8% { opacity: 1; visibility: visible; transform: none; } 90% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
@keyframes demoPick { 0%, 44% { background: transparent; } 50%, 66% { background: var(--tint); } 72%, 100% { background: var(--sun); color: var(--on-sun); } }
@keyframes demoPress { 0%, 100% { transform: none; } 40% { transform: scale(.94); box-shadow: 0 0 0 6px rgba(255, 106, 43, .3); } }
@keyframes demoRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes demoLift { 0%, 100% { box-shadow: var(--shadow); border-color: var(--line); } 30%, 70% { box-shadow: var(--shadow-hover); border-color: var(--border); } }
@keyframes demoFlash { 0%, 100% { background: transparent; } 30%, 70% { background: rgba(255, 106, 43, .3); } }
@keyframes demoExpand { from { max-height: 0; opacity: 0; } to { max-height: 56px; opacity: 1; } }
@keyframes demoRing { 0%, 100% { border-color: var(--line); } 30%, 100% { border-color: var(--sun); } }
@keyframes demoOpen { 0% { transform: none; } 35% { transform: scale(.92); } 100% { transform: none; color: var(--on-sun); background: var(--sun); box-shadow: inset 0 0 0 1.5px var(--sun); } }
@keyframes demoCur1 {
  0% { opacity: 0; translate: 540px 410px; scale: 1; animation-timing-function: ease-out; }
  4% { opacity: 1; translate: 520px 380px; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
  17% { opacity: 1; translate: 150px 66px; }
  47% { translate: 150px 66px; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
  60% { translate: 118px 124px; }
  63% { translate: 118px 124px; scale: 1; }
  65% { scale: .82; }
  68% { scale: 1; translate: 118px 124px; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
  84% { translate: 492px 66px; scale: 1; }
  86% { scale: 1; }
  88% { scale: .82; }
  91%, 100% { opacity: 1; translate: 492px 66px; scale: 1; }
}
@keyframes demoCur2 {
  0% { opacity: 1; translate: 492px 66px; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
  25% { translate: 300px 170px; }
  27% { translate: 300px 170px; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
  34% { translate: 300px 246px; }
  36% { translate: 300px 246px; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
  43% { translate: 300px 322px; }
  47% { translate: 300px 322px; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
  72%, 100% { opacity: 1; translate: 300px 170px; }
}
@keyframes demoCur3 {
  0% { opacity: 1; translate: 300px 170px; scale: 1; }
  14% { translate: 300px 170px; animation-timing-function: cubic-bezier(.4, .1, .2, 1); }
  40% { translate: 456px 246px; scale: 1; }
  50% { translate: 456px 246px; scale: 1; }
  52% { scale: .82; }
  55% { scale: 1; }
  100% { opacity: 1; translate: 456px 246px; scale: 1; }
}


/* ===== 12. RESPONZIVNÍ PRAVIDLA ===== */
/* hlavička: logo + menu + výběry se vejdou vedle sebe až od ~1100 px; níže jde menu na druhý řádek
   a když se nevejdou ani logo s výběry (úzký telefon, ukrajinština), výběry skočí pod logo */
/* v hlavičce je šest položek (od 3. 11. 2026 vždy i „Přidat inzerát“) + jazyk + měna + tmavý režim: zúžíme mezery, ať se vejdou
   bez posunu. Platí pro celý počítač: hlavička je nejvýš 1160 px široká, takže na velké obrazovce není víc místa než při 1210 px. */
@media (min-width: 1101px) {
  .hdr { gap: 8px 12px; }
  .nav { gap: 0 2px; }
  .navlink { padding: 8px 8px; font-size: 14.5px; }
  .navlink.primary { padding: 8px 12px; }
  .navlink.primary::before { margin-right: 5px; }
  .tools { gap: 6px; }
  html[lang="uk"] .navlink { padding: 8px 5px; font-size: 14px; }
}
@media (min-width: 1101px) and (max-width: 1180px) {
  .navlink { padding: 8px 6px; font-size: 14px; }
  .navlink.primary { padding: 8px 10px; }
  .hdr { gap: 8px 8px; }
  /* ukrajinské popisky jsou nejdelší („Додати оголошення“): ještě o kousek užší, ať výběry nenarazí na okraj */
  html[lang="uk"] .navlink { padding: 8px 4px; font-size: 13.5px; }
  html[lang="uk"] .navlink.primary { padding: 8px 8px; }
}
@media (max-width: 1100px) {
  header { position: static; }
  .hdr { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 60px; }
  .logo { flex: none; white-space: nowrap; }
  .tools { margin-left: auto; }
  /* menu se přesouvá do spodní lišty (jedna řada v hlavičce, palec dosáhne na položky) */
  .nav { display: none; }
  .tabbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
    display: flex; justify-content: space-around; gap: 2px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(15, 26, 21, .08);
  }
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}

@media (max-width: 960px) {
  .how-wrap.has-demo { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .has-demo .how-item { padding: 18px 20px 22px; }
  .hero { padding: 44px 0 0; }
  .hero-grid, .hero-grid.has-photo { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-photo { width: calc(100% - 20px); max-width: 420px; margin: 0 auto 0 0; }
  .cities { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .cities-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .data-band { grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 64px 0; }
  .section.tinted { padding: 64px 0 72px; }
  .ledger { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .how { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .how-item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 0 20px; }
  .how-item .num { grid-row: 1 / span 2; margin-bottom: 0; }
  .how-item:not(:last-child)::after { top: 62px; bottom: -34px; left: 25px; right: auto; border-top: 0; border-left: 2px dashed var(--border); transform-origin: top center; }
  .how.rv .how-item:not(:last-child)::after { transform: scaleY(0); }
  .how.rv.in .how-item:not(:last-child)::after { transform: scaleY(1); }
  .section { padding-top: 80px; }
  .data-band { margin-top: 80px; }
  .section.tinted { margin-top: 80px; }
  .never { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .never-lead { max-width: 52ch; }
}

@media (max-width: 640px) {
  .how-demo { padding: 12px; border-radius: 22px; }
  .demo-canvas { border-radius: 16px; }
  .wrap { padding: 0 16px; }
  .tools { gap: 6px; }
  .lang-select { font-size: 13px; padding-left: 10px; }

  .hero { padding: 28px 0 0; }
  .hero h1 { font-size: clamp(34px, 10.4vw, 46px); }
  .hero .subtitle { margin-top: 16px; font-size: 16.5px; }
  .hero-grid, .hero-grid.has-photo { gap: 48px; }
  .hero-photo { width: calc(100% - 14px); max-width: 340px; }
  .hero-photo-frame { aspect-ratio: 5 / 4; border-radius: 22px; }   /* na telefonu nižší fotka: výběr měst je o ~150 px výš */
  .hero-photo-frame img { border-radius: 22px; }
  .hero-photo-frame::before { inset: 18px -14px -14px 18px; border-radius: 22px; }
  .hero-photo-btn { border-radius: 22px; }
  .hero-photo-tag { left: 10px; bottom: 10px; gap: 12px; padding: 7px 7px 7px 14px; }
  .hp-city { font-size: 15px; }
  .hp-sub { font-size: 12px; gap: 8px; }
  .hp-go { width: 36px; height: 36px; }
  .hero-photo .city-credit { margin-top: 24px; }
  .hero-search { gap: 10px; margin-top: 28px; }
  .hero-search input { height: 52px; }
  .hero-search .btn { height: 52px; padding: 0 22px; }
  .quick { margin-top: 16px; }
  .section { padding-top: 64px; }
  .cities-sec { padding-top: 56px; }
  .sec-title { margin-bottom: 24px; }
  .cities { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .cities-sm { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .city-card.sm .city-media { aspect-ratio: 4 / 3; border-radius: 16px; }
  .city-card.sm .city-name { left: 12px; bottom: 10px; font-size: 18px; }
  .city-card.sm .ct { font-size: 12.5px; }
  .city-card.sm .city-go { display: none; }
  .more-head { margin-top: 48px; }
  .more-head h3 { font-size: 22px; }
  .city-name { left: 16px; bottom: 14px; font-size: 26px; }
  .city-media { aspect-ratio: 16 / 10; border-radius: 20px; }
  .data-band { margin-top: 64px; padding: 52px 0; }
  .honest p { font-size: 18px; }
  .stats { gap: 10px; }
  .stats > div { padding: 18px 16px 16px; border-radius: 18px; }
  .stats dt { font-size: 42px; }
  .stats dt.stat-date { font-size: 22px; padding-top: 10px; }
  .stats dd { font-size: 13.5px; }
  .section.tinted { margin-top: 64px; padding: 52px 0 60px; }
  .never-lead { font-size: 17px; }
  .never-list li { padding: 18px 0 20px; }
  .rule { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .add-rules { padding: 12px 14px; }
  .ledger-row { grid-template-columns: 48px minmax(0, 1fr); gap: 0 16px; }
  .ledger-row .ico { width: 48px; height: 48px; border-radius: 15px; }
  .cta { margin-top: 64px; padding: 32px 24px; border-radius: 26px; }
  footer { margin-top: 80px; }

  .search-head { padding-top: 20px; }
  .toolbar { padding: 12px; gap: 8px; }
  .city-row { flex-wrap: wrap; }
  .city-row .tabs { flex: 1 1 100%; }
  .city-more { max-width: none; }
  .sortbox select { min-width: 0; }
  .sb-l { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
  .controls { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .controls label:last-child { grid-column: 1 / -1; }
  .help-btn { margin-left: 0; }
  .map-box { height: 62vh; min-height: 320px; }
  .loc-dist { gap: 2px 12px; }
  .grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }


  /* každý řádek voleb je jeden posuvný pruh, ne tři řádky tlačítek */
  .tabs .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .tabs .chips::-webkit-scrollbar { display: none; }
  .tabs .chip { flex: 0 0 auto; }
  .qbar { max-width: none; margin-left: 0; flex-basis: 100%; }
  .gl-list, .school-help .gl-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gl-list dt { margin-top: 10px; }
  .school-help .gl-list dd { margin-bottom: 8px; }
  .mine-row { grid-template-columns: 1fr; }
  .mine-actions { grid-column: 1; grid-row: auto; justify-content: flex-start; }
  .page-head { padding-top: 28px; }
  dialog { padding: 22px 18px; border-radius: 20px; }
}

/* telefony (iPhone 402–440 px, úzké Androidy 360 px): logo, dva výběry a tlačítko motivu se musí vejít do jedné řady */
/* velmi úzký telefon (360 px a méně): logo a výběry se do jedné řady nevejdou, výběry skočí pod logo */
@media (max-width: 400px) {
  .hdr { flex-wrap: wrap; padding-top: 8px; padding-bottom: 6px; min-height: 0; }
}

@media (max-width: 440px) {
  .logo { gap: 7px; font-size: 18px; }
  .logo svg { width: 28px; height: 28px; }
  .tools { gap: 5px; }
  .lang-select { padding: 5px 20px 5px 8px; font-size: 12.5px; background-position: right 6px center; }
  .cur-select { padding-right: 20px; }
  .theme-btn { width: 32px; height: 32px; }
}

/* dotyková zařízení: ovládací prvky mají aspoň 40 px na výšku (palec je větší než kurzor) */
@media (pointer: coarse) {
  .navlink { min-height: 40px; }
  .navlink.primary { min-height: 40px; }
  .tab { min-height: 48px; }
  .filter-panel > summary, .city-more { min-height: 40px; }
  .theme-btn { width: 40px; height: 40px; }
  .lang-select, .cur-select { min-height: 40px; }
  .chip, .viewbar .chip { min-height: 40px; }
  .more-btn { min-height: 40px; }
  footer .linklike { padding: 10px 0; }
  .linklike { padding: 8px 0; }
  .city-credit, .hero-photo .city-credit { padding-top: 10px; padding-bottom: 10px; }
  .city-card .city-credit { padding-top: 4px; padding-bottom: 4px; }   /* štítek na fotce: 24 px na výšku stačí */
  .logo { min-height: 40px; }
  .jumps .jump { min-height: 40px; }
  .never-more, .honest a { padding: 10px 0; }
}

/* kdo má v systému vypnuté animace, nic se nehýbe a vše je hned vidět */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
  .card:hover, .city-card:hover, .city-card:focus-within, .stats > div:hover, .btn:hover, .navlink.primary:hover, .qlink:hover, .jumps .jump:hover { transform: none; }
  .city-card:hover .city-media, .city-card:focus-within .city-media { transform: none; }
  .hero-photo-btn:hover .hero-slides, .hero-photo-btn:hover .hp-go, .hero-photo-btn:focus-visible .hp-go { transform: none; }
  .city-card:hover .city-photo, .city-card:hover .city-art svg, .card:hover .card-image img, .card:hover .card-image svg { transform: none; }
}

/* ===== Autor: avatar (ilustrace) a text "proč jsem to udělal" ===== */
.why { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 20px 32px; align-items: start; }
.why-fig { margin: 0; text-align: center; }
.avatar-art { display: block; width: 132px; height: 132px; border-radius: 50%; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--sun); }
.why-fig figcaption { margin-top: 14px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.why-title { margin: 0 0 8px; font: 800 clamp(22px, 2.4vw, 28px)/1.15 var(--display); letter-spacing: -.035em; }
.why-body p { max-width: 62ch; margin: 0 0 12px; }
.g-sec .why { margin: 4px 0 24px; }
.g-sec .why-body p { margin: 0 0 12px; }
@media (max-width: 720px) {
  .why { grid-template-columns: 1fr; }
  .why-fig { display: flex; align-items: center; gap: 16px; text-align: left; }
  .why-fig figcaption { margin: 0; }
  .avatar-art { width: 96px; height: 96px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--sun); }
}


/* ===== 12. VYSOKÉ ŠKOLY (stránka Školy), DALŠÍ MĚSTA, JINÉ MĚSTO ===== */
/* uvítání a jedno políčko „škola nebo město“ (od 3. 11. 2026 místo filtrů a celého seznamu) */
.sch-hello { display: grid; justify-items: center; max-width: 780px; margin: 0 auto; padding: 56px 0 32px; text-align: center; }
.sch-hello-ico { display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px; color: var(--accent); background: var(--tint); border-radius: 20px; transform: rotate(-6deg); }
.sch-hello-ico svg { width: 34px; height: 34px; }
.sch-hello h1 { margin: 0 0 14px; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.sch-hello .lead { max-width: 60ch; margin: 0 0 28px; font-size: 17.5px; color: var(--muted); text-wrap: pretty; }
.sch-search { width: 100%; max-width: 640px; }
.sch-box { position: relative; }
.sch-box svg { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.sch-box input {
  width: 100%; height: 64px; margin: 0; padding: 0 22px 0 58px; font-size: 18px;
  color: var(--text); background: var(--surface); border: 1.5px solid var(--border); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(15, 26, 21, .08); transition: border-color .2s ease, box-shadow .2s ease;
}
.sch-box input:hover { border-color: var(--accent); }
.sch-box input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 28%, transparent), 0 10px 30px rgba(15, 26, 21, .08); }
.sch-try { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 14px; color: var(--muted); }
.sch-try span { margin-right: 2px; }
.sch-try .qlink { font: inherit; }
.sch-count:empty { display: none; }
.sch-list > .empty { grid-column: 1 / -1; }
.sch-src { max-width: 72ch; margin: 44px auto 0; font-size: 13.5px; text-align: center; color: var(--muted); }
@media (max-width: 640px) {
  .sch-hello { padding: 36px 0 24px; }
  .sch-hello-ico { width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; }
  .sch-hello-ico svg { width: 28px; height: 28px; }
  .sch-hello .lead { font-size: 16px; margin-bottom: 22px; }
  .sch-box input { height: 56px; padding-left: 50px; font-size: 16.5px; }
  .sch-box svg { left: 18px; }
}
.sch-page { padding-top: 0; }

.sch-count { margin: 4px 2px 12px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.sch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 18px; align-items: start; }
.sch-more { display: flex; justify-content: center; margin: 24px 0 8px; }

.sc { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.sc-head { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; }
.sc-head h3 { margin: 0; font-size: 20px; line-height: 1.2; overflow-wrap: anywhere; }
.sc-sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.sc-type { flex: none; padding: 4px 12px; font-size: 12.5px; font-weight: 600; border-radius: 999px; border: 1px solid transparent; white-space: nowrap; }
.sc-type.t-public { color: var(--ok); background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.sc-type.t-state { color: var(--warn); background: var(--warn-bg); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.sc-type.t-foreign { color: var(--muted); background: var(--surface-2); border-color: var(--border); }
.sc-note { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.sc-housing { display: block; margin: 14px 0 4px; }

/* průvodce: tabulka cen podle měst a kontrolní seznam před podpisem */
.table-wrap { overflow-x: auto; margin: 12px 0 18px; }
.costs { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.costs th, .costs td { padding: 8px 12px 8px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); white-space: nowrap; }
.costs thead th { font-size: 13px; font-weight: 600; color: var(--muted); }
.costs tbody th { font-weight: 600; }
.costs td.num { text-align: right; padding-right: 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background: var(--tint) var(--check-icon) center / 14px no-repeat; border-radius: 5px; }
.sc-type.t-private { color: var(--t-sand); background: var(--t-sand-bg); border-color: color-mix(in srgb, var(--t-sand) 30%, transparent); }

.sc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px 16px; margin: 0; padding: 12px 14px; background: var(--surface-2); border-radius: var(--r-sm); }
.sc-facts dt { color: var(--muted); font-size: 12.5px; }
.sc-facts dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sc-facts .sub, .sc-facts .na { font-weight: 400; color: var(--muted); font-size: 13px; }

.pc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 640px) { .pc { grid-template-columns: minmax(0, 1fr); } }
.pc h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; }
.pc h4 span { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 50%; font-size: 15px; line-height: 1; font-weight: 700; }
.pc-pro h4 span { color: var(--ok); background: var(--ok-bg); }
.pc-con h4 span { color: var(--warn); background: var(--warn-bg); }
.pc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pc li { position: relative; padding-left: 14px; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.pc li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; }
.pc-pro li::before { background: var(--ok); }
.pc-con li::before { background: var(--warn); }
.pc-empty { margin: 0; color: var(--muted); font-size: 14px; }

.sc-unk { font-size: 14px; color: var(--muted); }
.sc-unk summary { cursor: pointer; padding: 4px 0; font-weight: 500; }
.sc-unk ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.sc-also, .sc-addr { margin: 0; color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.sc-foot { display: flex; flex-wrap: wrap; gap: 4px 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.sc-link { display: inline-block; padding: 4px 0; font-size: 14px; font-weight: 600; }

.sch-notes { margin-top: 36px; padding: 22px 24px; background: var(--tint); border-radius: var(--r); }
.sch-notes h2 { margin: 0 0 10px; font-size: 18px; }
.sch-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; max-width: 80ch; font-size: 14.5px; }

.more-cities { margin-top: 28px; padding: 22px 24px; background: var(--surface-2); border-radius: var(--r); }
.more-cities h3 { margin: 0 0 4px; font-size: 18px; }
.more-cities > p { margin: 0 0 12px; max-width: 64ch; }
.city-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; }
.city-chip { display: inline-block; padding: 7px 15px; font-size: 14.5px; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 999px; }
.city-chip:hover { color: var(--accent); border-color: var(--accent); background: var(--tint); }

.portal-other { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.portal-other label { margin: 0 0 2px; font-size: 14px; font-weight: 600; color: var(--text); }
.portal-other > .muted { margin: 0 0 10px; max-width: 60ch; }
.po-row { display: flex; flex-wrap: wrap; gap: 10px; max-width: 460px; }
.po-row input { flex: 1 1 200px; min-width: 0; }
.po-note { flex-basis: 100%; margin: 6px 0 0; max-width: 64ch; }
#po-out { margin-top: 12px; }
#po-out:empty { display: none; }
.field-err { margin: 0; color: var(--warn); font-size: 14px; font-weight: 500; }

/* Ověření nabídky (pro pronajímatele) */
.vf-kicker { margin: 0 0 8px; font-size: 14px; font-weight: 600; letter-spacing: .02em; color: var(--accent); }
.vf-price { margin: 0 0 18px; font-size: 16px; }
.vf-note { display: block; max-width: 760px; margin: 0 0 18px; padding: 10px 14px; font: 500 14px/1.5 var(--sans); border-radius: var(--r-sm); }
.vf-ref { max-width: 760px; margin: 0 0 24px; } .vf-ref h2 { margin: 0 0 8px; font-size: 18px; } .vf-ref code { overflow-wrap: anywhere; }
.vf-form { display: grid; gap: 6px; max-width: 640px; }
.vf-form label:not(.check) { margin-top: 10px; }
.vf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.vf-help { margin: 2px 0 4px; font-size: 13px; }
.vf-submit { margin-top: 10px; }

/* ===== Přidat inzerát bez serveru (renderAddInbox, od 3. 11. 2026) ===== */
.ad-steps { display: flex; flex-wrap: wrap; gap: 14px 32px; margin: 6px 0 4px; padding: 0; list-style: none; counter-reset: ad; }
.ad-steps li { counter-increment: ad; display: grid; grid-template-columns: 36px minmax(0, 1fr); column-gap: 12px; align-items: center; max-width: 270px; font-size: 14.5px; line-height: 1.35; }
.ad-steps li::before { content: counter(ad); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; font-weight: 800; color: var(--accent); background: var(--tint); border-radius: 50%; }
.ad-steps b { color: var(--text); }
.ad-steps span { color: var(--muted); }
.ad-layout { display: grid; grid-template-columns: minmax(0, 680px) minmax(0, 300px); gap: 24px 40px; align-items: start; }
.ad-layout .add-rules { position: sticky; top: 96px; margin: 0; }
.ad-form { display: grid; gap: 26px; }
.ad-form fieldset { display: grid; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ad-form fieldset + fieldset { padding-top: 24px; border-top: 1px solid var(--line); }
/* float: legenda pak není „v rámečku“ fieldsetu, takže čára nad sekcí jde celou šířkou nad ní (ne přes její řádek) */
.ad-form legend { float: left; width: 100%; margin: 0; padding: 0; font: 800 20px/1.25 var(--display); letter-spacing: -.02em; }
.ad-form label:not(.check) { display: block; margin: 0 0 6px; }
.ad-form .vf-row { gap: 14px; }
.ad-form .vf-help { margin: 6px 0 0; }
.ad-form textarea { min-height: 150px; resize: vertical; }
.ad-form label.check { padding: 2px 0; }
.ad-row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ad-done { max-width: 680px; }
.ad-done h2 { margin: 0 0 8px; }
.ad-done .badge { display: block; margin: 0 0 10px; }
.ad-done textarea { width: 100%; margin-top: 14px; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; }
@media (max-width: 900px) {
  .ad-layout { grid-template-columns: minmax(0, 1fr); }
  .ad-layout .add-rules { position: static; order: -1; max-width: none; }
}
@media (max-width: 640px) { .ad-row3 { grid-template-columns: minmax(0, 1fr); } }

/* tlačítko „+ Přidat inzerát“ v hlavičce na telefonu a tabletu (hlavní menu je tam ve spodní liště, kde se už nevejde) */
.hdr-add { display: none; }
@media (max-width: 1100px) {
  .hdr-add {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 36px; height: 36px; color: var(--on-sun); background: var(--sun); border-radius: 50%;
    transition: transform .25s var(--ease);
  }
  .hdr-add:hover { transform: rotate(90deg); }
}
@media (max-width: 440px) { .hdr-add { width: 32px; height: 32px; } }
@media (pointer: coarse) and (max-width: 1100px) { .hdr-add { width: 40px; height: 40px; } }
@media (prefers-reduced-motion: reduce) { .hdr-add:hover { transform: none; } }
@media (max-width: 640px) { .vf-row { grid-template-columns: minmax(0, 1fr); gap: 0; } }

@media (max-width: 600px) {
  .sc { padding: 18px 16px; }
  .sc-head { flex-direction: column; gap: 8px; }
  .more-cities { padding: 18px 16px; }
}
.portals-schools { margin: 0 0 14px; font-weight: 600; }

/* pixel-art postava autora: zaoblený čtverec na černém pozadí, pixely zůstanou ostré */
.avatar-px { aspect-ratio: 1; object-fit: cover; border-radius: 22%; background: #000; image-rendering: pixelated; image-rendering: crisp-edges; image-rendering: pixelated; }
/* mřížka portrétu má 96 x 96 bodů: velikosti jsou násobky 96, ať má každý bod stejný počet pixelů (192 = 2 px, 96 = 1 px) */
.avatar-art.avatar-px { width: 192px; height: 192px; box-shadow: 0 0 0 4px var(--bg), 0 0 0 7px var(--accent); }
.why-px { grid-template-columns: 192px minmax(0, 1fr); }
@media (max-width: 720px) {
  .why-px { grid-template-columns: 1fr; }
  .avatar-art.avatar-px { width: 96px; height: 96px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
}
.why-noava { grid-template-columns: minmax(0, 1fr); }
/* obrázek autora (SITE.avatar "photo"): kruhový výřez s obličejem, kliknutím celý obrázek */
.why-photo { grid-template-columns: 160px minmax(0, 1fr); }
.avatar-link { display: block; width: max-content; margin: 0 auto; border-radius: 50%; }
.avatar-art.avatar-photo { width: 160px; height: 160px; object-fit: cover; transition: transform .3s var(--ease); }
.avatar-link:hover .avatar-photo { transform: scale(1.04) rotate(-2deg); }
@media (max-width: 720px) {
  .why-photo { grid-template-columns: 1fr; }
  .avatar-link { margin: 0; }
  .avatar-art.avatar-photo { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) { .avatar-link:hover .avatar-photo { transform: none; } }
