/* Wherethru – sdílený styl, verze 4. Pravidla a tokeny viz DESIGN.md.
   Krémový podklad, olivová značka, oblé rohy, jemné stíny. Starší třídy z v2/v3 zůstávají a mají nový vzhled. */

:root {
  /* Značka */
  --brand-900: #3A4A34; --brand-700: #4E5F47; --brand-500: #7D8F76; --brand-300: #C3CDBC; --brand-200: #D9DED3; --brand-100: #EBEEE7;
  --on-brand: #FFFFFF;
  /* Plochy a text */
  --bg: #F7F7F5; --surface: #FFFFFF; --surface-2: #EFF1EC; --surface-3: #E3E7DF;
  --ink: #1F261C; --ink-2: #3C4638; --ink-3: #55604F; --heading: #3A4A34;
  --line: #E3E7DF; --line-strong: #B9C2B3;
  --inverse: #3A4A34; --on-inverse: #F7F7F5; --on-inverse-2: #D9DED3;
  --focus: #3A4A34;
  --chip-on: #3A4A34; --chip-on-ink: #FFFFFF;
  /* Stavy */
  --ok: #2E6B3A; --ok-soft: #E2EEE1;
  --part: #8A5A00; --part-soft: #F6EBD6;
  --warn: #8A5A00; --warn-soft: #F6EBD6;
  --no: #B3261E; --no-soft: #FBE4E1;
  --unk: #5D6A58; --unk-soft: #EBEEE7;
  /* Aliasy z v2/v3 (nepoužívat v novém kódu) */
  --rule: var(--line); --signal: var(--brand-200); --on-signal: var(--brand-900);
  --tape: var(--brand-200); --tape-ink: var(--brand-900); --tape-soft: var(--brand-100);
  --action: var(--brand-900); --action-hover: var(--brand-700); --action-soft: var(--brand-200); --on-action: var(--on-brand);
  --verified: var(--brand-900); --verified-soft: var(--brand-200);
  --community: var(--ink-2); --community-soft: var(--surface-2);
  --business: var(--ink-2); --business-soft: var(--surface-2);
  /* Stíny */
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .06);
  --shadow-md: 0 8px 24px rgb(0 0 0 / .08);
  --shadow: 0 1px 2px rgba(30, 40, 25, .06), 0 8px 24px rgba(30, 40, 25, .06);
  --shadow-lg: 0 2px 6px rgba(30, 40, 25, .06), 0 18px 48px rgba(30, 40, 25, .14);
  /* Písmo */
  /* v5: jediné písmo Figtree (400/500/600/700). Staré tokeny serif/hand/mono zůstávají jako aliasy na Figtree,
     čísla dostávají font-variant-numeric: tabular-nums. */
  --f-display: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-serif: var(--f-body);
  --f-hand: var(--f-body);
  --f-mono: var(--f-body);
  /* Tvary a rozměry */
  --r-sm: 10px; --r: 14px; --r-card: 16px; --r-panel: 20px; --r-lg: 28px; --r-pill: 999px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --header-h: 68px;
  --tabbar-h: 66px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand-900: #A9BBA0; --brand-700: #BCCBB4; --brand-500: #8FA287; --brand-300: #36412F; --brand-200: #2F3A2B; --brand-100: #262E23;
    --on-brand: #171C15;
    --bg: #171C15; --surface: #20271D; --surface-2: #262E23; --surface-3: #303A2C;
    --ink: #EEF1EA; --ink-2: #D3DACD; --ink-3: #AEB8A7; --heading: #EEF1EA;
    --line: #323C2E; --line-strong: #4A5745;
    --inverse: #2A3426; --on-inverse: #EEF1EA; --on-inverse-2: #C9D3C2;
    --focus: #C9D6BF;
    --chip-on: #D9DED3; --chip-on-ink: #1F261C;
    --ok: #7FCB8E; --ok-soft: #1D3322; --part: #E3B866; --part-soft: #3B2F14; --warn: #E3B866; --warn-soft: #3B2F14;
    --no: #FF9A8F; --no-soft: #431D1A; --unk: #AEB8A7; --unk-soft: #262E23;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .25); --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --brand-900: #A9BBA0; --brand-700: #BCCBB4; --brand-500: #8FA287; --brand-300: #36412F; --brand-200: #2F3A2B; --brand-100: #262E23;
  --on-brand: #171C15;
  --bg: #171C15; --surface: #20271D; --surface-2: #262E23; --surface-3: #303A2C;
  --ink: #EEF1EA; --ink-2: #D3DACD; --ink-3: #AEB8A7; --heading: #EEF1EA;
  --line: #323C2E; --line-strong: #4A5745;
  --inverse: #2A3426; --on-inverse: #EEF1EA; --on-inverse-2: #C9D3C2;
  --focus: #C9D6BF;
  --chip-on: #D9DED3; --chip-on-ink: #1F261C;
  --ok: #7FCB8E; --ok-soft: #1D3322; --part: #E3B866; --part-soft: #3B2F14; --warn: #E3B866; --warn-soft: #3B2F14;
  --no: #FF9A8F; --no-soft: #431D1A; --unk: #AEB8A7; --unk-soft: #262E23;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 8px 24px rgba(0, 0, 0, .25); --shadow-lg: 0 18px 48px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

/* ---------- Základ ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-wrap: break-word; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--brand-900); text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--brand-700); text-decoration-color: currentColor; }
@media (min-width: 768px) { body { font-size: 17px; } }
/* v5 typografická škála (desktop / 390 px): H1 40/30, H2 30/24, H3 20/18, H4 16. Prolnutí nikdy pod -0.02em. */
h1, h2, h3, h4 { font-family: var(--f-display); color: var(--heading); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; font-weight: 600; letter-spacing: -.01em; hyphens: manual; }
h1 { font-size: clamp(1.875rem, 1.45rem + 1.6vw, 2.5rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 1.28rem + .9vw, 1.875rem); }
h3 { font-size: clamp(1.125rem, 1.06rem + .25vw, 1.25rem); letter-spacing: 0; line-height: 1.3; }
h4 { font-size: 1rem; letter-spacing: 0; line-height: 1.4; }
p { margin: 0 0 1em; }
.lede { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.55; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: .875rem; line-height: 1.5; }
.mono, .num { font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.h-serif, .serif { font-family: var(--f-body); font-weight: 600; letter-spacing: -.01em; }
.kicker, .eyebrow { font: 600 .8125rem/1.35 var(--f-body); letter-spacing: .04em; color: var(--ink-3); display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-sm); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--inverse); color: var(--on-inverse); padding: 10px 14px; border-radius: var(--r); z-index: 600; font-weight: 700; }
.skip-link:focus { top: 8px; color: var(--on-inverse); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(48px, 7vw, 96px); }
.section-tight { padding-block: clamp(28px, 4vw, 48px); }
.section-alt { background: var(--brand-100); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head .more-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.grid > *, .row > * { min-width: 0; }

/* ---------- Proužek prototypu ---------- */
.demo-bar { background: var(--brand-200); color: var(--brand-900); font-size: .82rem; text-align: center; padding: 6px var(--gutter); }
.demo-bar a { color: var(--brand-900); font-weight: 700; }

/* ---------- Hlavička ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); border-bottom: 1px solid var(--line); }
.site-header .inner { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brand-900); font: 700 1.4rem/1 var(--f-display); letter-spacing: -.02em; white-space: nowrap; flex: none; min-height: 44px; }
.brand:hover { color: var(--brand-900); }
.brand-logo { height: 32px; width: auto; }
.brand-text b { font-weight: 700; }
.brand-text span { font-weight: 400; }
.brand-mark { width: 32px; height: 32px; flex: none; }
.brand .dom { display: none; }
/* Logo: světlá varianta logo.svg, v tmavém režimu logo-dark.svg */
.brand-logo.logo-dark { display: none; }
:root[data-theme="dark"] .brand-logo.logo-light { display: none; }
:root[data-theme="dark"] .brand-logo.logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo.logo-light { display: none; }
  :root:not([data-theme="light"]) .brand-logo.logo-dark { display: block; }
}

.main-nav { display: flex; gap: 2px; align-items: center; min-width: 0; }
.main-nav > a, .nav-drop > button { white-space: nowrap; color: var(--ink-2); text-decoration: none; font: 700 .97rem/1 var(--f-body); padding: 0 14px; min-height: 44px; border-radius: var(--r-pill); border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.main-nav > a:hover, .nav-drop > button:hover { background: var(--surface-2); color: var(--ink); }
.main-nav > a[aria-current="page"], .nav-drop > button.is-current { background: var(--brand-200); color: var(--brand-900); }
.nav-drop { position: relative; }
.nav-drop > button svg { width: 16px; height: 16px; transition: transform .15s; }
.nav-drop > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-menu, .more-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px; z-index: 120; }
.nav-menu a, .more-menu a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 700; }
.nav-menu a:hover, .more-menu a:hover { background: var(--surface-2); color: var(--ink); }
.nav-menu a[aria-current="page"], .more-menu a[aria-current="page"] { background: var(--brand-200); color: var(--brand-900); }
.nav-menu a svg, .more-menu a svg { width: 20px; height: 20px; color: var(--brand-500); flex: none; }
.nav-menu a small { display: block; font-weight: 400; color: var(--ink-3); font-size: .85rem; }
.more-btn { white-space: nowrap; }
.header-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.header-tools > * { flex: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; background: transparent; color: var(--ink-2); border-radius: var(--r-pill); cursor: pointer; position: relative; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn[aria-current="page"] { background: var(--brand-200); color: var(--brand-900); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand-500); border: 2px solid var(--surface); }
.icon-btn .count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand-900); color: var(--on-brand); font: 700 .7rem/18px var(--f-body); text-align: center; }
.needs-btn .lbl { margin-left: 2px; }
.mobile-only { display: none !important; }

/* ---------- Spodní lišta (mobil) ---------- */
.tabbar { display: none; }
@media (max-width: 899px) {
  :root { --header-h: 58px; }
  .main-nav, .hide-md { display: none !important; }
  .mobile-only { display: inline-grid !important; }
  .site-header .inner { gap: 4px; }
  .brand { font-size: 1.25rem; }
  .brand-logo { height: 28px; }
  .needs-btn .lbl { display: none; }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 150; background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(30, 40, 25, .05); padding: 4px 4px env(safe-area-inset-bottom, 0px); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: calc(var(--tabbar-h) - 4px); color: var(--ink-3); text-decoration: none; font: 700 .72rem/1.15 var(--f-body); border: 0; background: none; cursor: pointer; text-align: center; min-width: 0; overflow-wrap: anywhere; }
  .tabbar svg { width: 52px; height: 30px; padding: 4px 15px; border-radius: var(--r-pill); }
  .tabbar [aria-current="page"] { color: var(--brand-900); }
  .tabbar [aria-current="page"] svg { background: var(--brand-200); }
}
@media (max-width: 420px) { .hide-sm { display: none !important; } }

/* Spodní panel (menu, filtry na mobilu) */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20, 28, 18, .42); z-index: 400; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 401; background: var(--surface); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: var(--shadow-lg); max-height: 88dvh; display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom, 0px); }
.sheet .grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 4px; flex: none; }
.sheet header { display: flex; align-items: center; justify-content: space-between; padding: 8px 20px 12px; }
.sheet header h2 { font-size: 1.25rem; margin: 0; }
.sheet .body { overflow: auto; padding: 0 12px 16px; }
.sheet .menu-list { display: grid; gap: 2px; }
.sheet .menu-group { font: 600 .8125rem/1.3 var(--f-body); letter-spacing: .04em; color: var(--ink-3); padding: 14px 12px 6px; }
.sheet .menu-list a, .sheet .menu-list button { display: flex; align-items: center; gap: 14px; min-height: 48px; padding: 10px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font: 700 1rem var(--f-body); background: none; border: 0; width: 100%; text-align: left; cursor: pointer; }
.sheet .menu-list a:hover, .sheet .menu-list button:hover { background: var(--surface-2); }
.sheet .menu-list a[aria-current="page"] { background: var(--brand-200); color: var(--brand-900); }
.sheet .menu-list svg { width: 22px; height: 22px; color: var(--brand-500); flex: none; }
.sheet .menu-sep { height: 1px; background: var(--line); margin: 8px 12px; }
@media (min-width: 900px) { .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 48px)); border-radius: var(--r-lg); max-height: 80vh; } .sheet .grip { display: none; } }

/* ---------- Tlačítka ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: var(--r); border: 1.5px solid transparent; font: 600 1rem/1.15 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn-primary, .btn-action { background: var(--brand-900); color: var(--on-brand); border-color: var(--brand-900); }
.btn-primary:hover, .btn-action:hover { background: var(--brand-700); border-color: var(--brand-700); color: var(--on-brand); }
.btn-secondary, .btn-signal { background: var(--brand-200); color: var(--brand-900); border-color: var(--brand-200); }
.btn-secondary:hover, .btn-signal:hover { background: var(--brand-300); border-color: var(--brand-300); color: var(--brand-900); }
.btn-ghost { background: var(--surface); color: var(--brand-900); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--brand-500); color: var(--brand-900); }
.btn-soft { background: var(--surface-2); color: var(--ink); }
.btn-soft:hover { background: var(--surface-3); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--brand-900); padding-inline: 10px; text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 4px; }
.btn-quiet:hover { background: var(--surface-2); color: var(--brand-900); }
.btn-inverse { background: var(--on-inverse); color: var(--inverse); border-color: var(--on-inverse); }
.btn-inverse:hover { background: var(--brand-200); border-color: var(--brand-200); color: var(--brand-900); }
.btn-sm { min-height: 44px; padding: 6px 14px; font-size: .94rem; border-radius: 12px; }
.btn-lg { min-height: 56px; padding: 14px 26px; font-size: 1.08rem; }
.btn-block { width: 100%; }
/* Delší popisky v němčině a angličtině se na úzkém displeji zalomí místo přetečení */
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; max-width: 100%; } .badge { white-space: normal; max-width: 100%; } }

/* ---------- Formuláře ---------- */
label { font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field .hint, .hint { font-size: .88rem; color: var(--ink-3); font-weight: 400; }
input[type="text"], input[type="search"], input[type="email"], input[type="number"], input[type="tel"], input[type="url"], input[type="date"], input[type="time"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: 400 1rem/1.4 var(--f-body); max-width: 100%;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-900); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand-500) 35%, transparent); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none; }
.input-unit { position: relative; }
.input-unit input { padding-right: 46px; font-family: var(--f-mono); }
.input-unit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); font: 700 .9rem var(--f-mono); pointer-events: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; padding: 8px 0; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand-900); flex: none; }
input[type="range"] { width: 100%; accent-color: var(--brand-900); height: 28px; }
/* Vyhledávání (starší) */
.search-field { position: relative; }
.search-field svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--ink-3); pointer-events: none; }
.search-field input { padding-left: 46px; border-radius: var(--r); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
/* Vyhledávací lišta z mockupu: lupa, pole, tlačítko filtru */
.search-bar { display: flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-pill); box-shadow: var(--shadow-sm); padding: 0 2px 0 16px; min-height: 48px; }
.search-bar:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px var(--focus); }
.search-bar > svg { width: 20px; height: 20px; color: var(--ink-3); flex: none; }
.search-bar input { border: 0 !important; box-shadow: none !important; background: transparent; min-width: 0; flex: 1; min-height: 44px; padding-inline: 8px; }
.search-bar .search-filter { flex: none; width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--brand-900); cursor: pointer; position: relative; }
.search-bar .search-filter:hover { background: var(--brand-200); }
.search-bar .search-filter svg { width: 20px; height: 20px; }
.search-bar .btn { min-height: 44px; border-radius: var(--r-pill); }

/* ---------- Čipy, štítky ---------- */
/* v5 čip: pilulka 0 14px, Figtree 14/500, ikona 18, klid bílá + 1px linka, hover --surface-2, aktivní #3A4A34 s bílým textem
   (tmavý režim #D9DED3 s tmavým textem). Dotyková plocha 44 px. Počítadlo: <span class="chip-n">3</span>. */
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: 500 .875rem/1.2 var(--f-body); cursor: pointer; user-select: none; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s; }
.chip svg { width: 18px; height: 18px; flex: none; color: var(--brand-900); }
.chip:hover { background: var(--surface-2); border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.on { background: var(--chip-on); color: var(--chip-on-ink); border-color: var(--chip-on); }
.chip[aria-pressed="true"] svg, .chip[aria-selected="true"] svg, .chip.on svg { color: var(--chip-on-ink); }
.chip-n { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--chip-on); color: var(--chip-on-ink); font: 600 .75rem/1 var(--f-body); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .chip-n, .chip.on .chip-n { background: var(--chip-on-ink); color: var(--chip-on); }
.chip[aria-pressed="true"] .status i { outline: 2px solid var(--surface); outline-offset: 1px; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; }
.chip-row::-webkit-scrollbar { display: none; }
/* Segmentový filtr: Vše / Česko / Bavorsko */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg > button, .seg > a { min-height: 44px; padding: 6px 16px; border-radius: var(--r-pill); border: 0; background: transparent; color: var(--ink-2); font: 500 .875rem var(--f-body); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.seg > :hover { background: var(--surface-2); color: var(--ink); }
.seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > [aria-current] { background: var(--brand-900); color: var(--on-brand); }
/* Kategorie s ikonou nad textem */
/* Kategorie: v5 řada čipů s ikonou (stejný vzhled jako .chip) */
.cat-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); font: 500 .875rem/1.2 var(--f-body); text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s; }
.cat-chip svg { width: 18px; height: 18px; flex: none; color: var(--brand-900); }
.cat-chip:hover { background: var(--surface-2); color: var(--ink); }
.cat-chip[aria-pressed="true"], .cat-chip[aria-current] { background: var(--chip-on); border-color: var(--chip-on); color: var(--chip-on-ink); }
.cat-chip[aria-pressed="true"] svg, .cat-chip[aria-current] svg { color: var(--chip-on-ink); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font: 600 .8125rem/1.35 var(--f-body); white-space: nowrap; }
.badge svg { width: 14px; height: 14px; }
.badge-verified { background: var(--brand-900); color: var(--on-brand); }
.badge-community, .badge-business { background: var(--surface-2); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-part, .badge-warn { background: var(--part-soft); color: var(--part); }
.badge-no { background: var(--no-soft); color: var(--no); }
.badge-unk { background: var(--unk-soft); color: var(--unk); }
.badge-tape, .badge-signal, .badge-brand { background: var(--brand-200); color: var(--brand-900); }
.badge-soon { background: var(--surface-2); color: var(--ink-2); }

/* Štítek úrovně členství Free / Explorer / Traveller */
.tier-tag { display: inline-flex; align-items: center; padding: 2px 10px; border: 1.5px solid var(--line-strong); border-radius: var(--r-pill); font: 700 .76rem/1.35 var(--f-body); letter-spacing: .01em; color: var(--ink-2); background: var(--surface); white-space: nowrap; vertical-align: middle; }
.tier-tag.tier-plus { background: var(--brand-200); color: var(--brand-900); border-color: var(--brand-500); }
.tier-tag.tier-premium { background: var(--inverse); color: var(--on-inverse); border-color: var(--inverse); }
.tier-pill { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer; border-radius: var(--r-pill); }
.tier-pill:hover .tier-tag { box-shadow: 0 0 0 3px var(--brand-200); }
.tier-drawer .body { gap: 14px; }
.tier-foot { flex-wrap: wrap; }
.tier-foot .btn { flex: 1 1 auto; white-space: normal; text-align: center; }
.tier-options { display: grid; gap: 8px; }
.tier-opt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; min-height: 64px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.tier-opt:hover { background: var(--surface-2); }
.tier-opt[aria-pressed="true"] { border-color: var(--brand-500); background: var(--brand-100); box-shadow: inset 0 0 0 1px var(--brand-500); }
.tier-opt[aria-pressed="true"] .tier-opt-t b::after { content: " \2713"; }
.tier-opt-t { display: flex; flex-direction: column; min-width: 0; }
.tier-opt-t span { color: var(--ink-3); font-size: .9rem; }
.tier-opt-p { font: 700 .95rem/1.2 var(--f-display); white-space: nowrap; color: var(--heading); }
.sheet .menu-list .tier-tag { margin-left: auto; }
@media (max-width: 360px) { .tier-opt { grid-template-columns: auto minmax(0, 1fr); } .tier-opt-p { grid-column: 2; } }

/* ---------- Karty, dlaždice, řádky ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px; box-shadow: var(--shadow); }
.card-flat { box-shadow: none; }
.card-elev { box-shadow: var(--shadow); }
.panel { background: var(--brand-100); border-radius: var(--r-card); padding: 22px; }
a.card { color: inherit; text-decoration: none; display: block; transition: box-shadow .15s, transform .15s, border-color .15s; }
a.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-lg); }
a.card:hover h3 { color: var(--brand-700); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tile .k { font-size: .85rem; color: var(--ink-3); display: flex; align-items: center; gap: 6px; font-weight: 700; }
.tile .k svg { width: 18px; height: 18px; color: var(--brand-500); }
.tile .v { font-family: var(--f-display); font-size: 1.2rem; font-weight: 700; color: var(--heading); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.list-row, .rule-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.list-row:last-child, .rule-row:last-child { border-bottom: 0; }
.rule-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 18px; }
a.list-row:hover, a.rule-row:hover { background: var(--surface-2); border-radius: var(--r-sm); }

/* Karta místa: řádková (starší) */
.place-card { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); text-decoration: none; color: inherit; position: relative; box-shadow: var(--shadow-sm); }
.place-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); color: inherit; }
.place-card.is-active { border-color: var(--brand-500); box-shadow: 0 0 0 2px var(--brand-500); }
.place-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.place-card .meta { font-size: .88rem; color: var(--ink-3); margin-bottom: 8px; }
.place-card .facts { display: flex; flex-wrap: wrap; gap: 6px; }
/* Karta místa z mockupu: fotka 4:3, ikona přístupnosti, srdíčko */
.place-tile { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); color: inherit; text-decoration: none; min-width: 0; }
.place-tile:hover { box-shadow: var(--shadow-lg); color: inherit; }
.place-tile-media { position: relative; aspect-ratio: 4 / 3; background: var(--brand-100); overflow: hidden; }
.place-tile-media img { width: 100%; height: 100%; object-fit: cover; }
.place-tile-media.no-photo { display: grid; place-items: center; color: var(--brand-500); }
.place-tile-media.no-photo svg { width: 40px; height: 40px; }
.place-tile-access { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-900); color: var(--on-brand); box-shadow: var(--shadow-sm); }
.place-tile-access svg { width: 20px; height: 20px; }
.place-tile-access.part { background: var(--part); color: #fff; }
.place-tile-access.no { background: var(--no); color: #fff; }
.place-tile-access.unk { background: var(--surface); color: var(--unk); }
.place-tile-save { position: absolute; right: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 0; background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--brand-900); cursor: pointer; box-shadow: var(--shadow-sm); }
.place-tile-save svg { width: 22px; height: 22px; }
.place-tile-save[aria-pressed="true"] svg { fill: currentColor; }
.place-tile-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.place-tile-body h3 { font-size: 1.05rem; margin: 0; }
.place-tile-body h3 a { color: inherit; text-decoration: none; }
.place-tile-body h3 a::after { content: ""; position: absolute; inset: 0; } /* celá karta klikací, srdíčko má vyšší z-index */
.place-tile-save, .place-tile-access { z-index: 2; }
.place-tile .meta { font-size: .88rem; color: var(--ink-3); }
.place-tile .facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.place-tile .credit { font-size: .72rem; color: var(--ink-3); }
.place-tile-save ~ .place-tile-body > :last-child { padding-right: 44px; } /* poslední řádek nesmí vjet pod srdíčko */
.fact { display: inline-flex; align-items: center; gap: 4px; font: 700 .82rem/1.2 var(--f-body); padding: 4px 9px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); }
.fact svg { width: 14px; height: 14px; }
.fact.ok { background: var(--ok-soft); color: var(--ok); }
.fact.part { background: var(--part-soft); color: var(--part); }
.fact.no { background: var(--no-soft); color: var(--no); }
.match-pill { position: absolute; top: 12px; right: 12px; }

/* Seznam údajů přístupnosti: ikona + text + hodnota */
.detail-list { list-style: none; margin: 0; padding: 0; display: grid; }
.detail-list li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 48px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.detail-list li:last-child { border-bottom: 0; }
.detail-list svg { width: 22px; height: 22px; color: var(--brand-900); }
.detail-list .v { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.detail-list .src { grid-column: 2 / -1; font-size: .8rem; color: var(--ink-3); margin-top: -4px; }

/* Záložky */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs [role="tab"], .tabs > a { flex: none; min-height: 48px; padding: 10px 14px; border: 0; background: none; color: var(--ink-3); font: 700 .97rem var(--f-body); cursor: pointer; text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tabs [role="tab"]:hover, .tabs > a:hover { color: var(--ink); background: var(--surface-2); }
.tabs [aria-selected="true"], .tabs > a[aria-current] { color: var(--brand-900); border-bottom-color: var(--brand-900); }

/* Stav – tvar + barva + text */
.status { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: .92rem; }
.status i { width: 14px; height: 14px; display: inline-block; flex: none; }
.status.ok i { background: var(--ok); border-radius: 50%; }
.status.part i { background: var(--part); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.status.no i { background: var(--no); clip-path: polygon(20% 0, 50% 30%, 80% 0, 100% 20%, 70% 50%, 100% 80%, 80% 100%, 50% 70%, 20% 100%, 0 80%, 30% 50%, 0 20%); }
.status.unk i { border: 2.5px solid var(--unk); border-radius: 50%; }
.status.ok { color: var(--ok); } .status.part { color: var(--part); } .status.no { color: var(--no); } .status.unk { color: var(--unk); }
.chip[aria-pressed="true"] .status, .chip[aria-selected="true"] .status, .chip.on .status, .kf-pill .status { color: inherit; }

/* Měřidlo úplnosti */
.tape-meter { --v: 50; position: relative; height: 10px; border-radius: var(--r-pill); background: var(--surface-3); overflow: hidden; }
.tape-meter::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); background: var(--brand-500); border-radius: var(--r-pill); }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; }
.meter-row .num { font-weight: 700; }

/* Kóta */
.dim { display: inline-flex; align-items: center; gap: 8px; font: 700 .9rem var(--f-mono); color: var(--ink-2); }
.dim::before, .dim::after { content: ""; height: 10px; width: 1.5px; background: currentColor; }
.dim span { position: relative; padding-inline: 4px; }

/* Statistika, kroky */
.stat .n { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; display: block; color: var(--heading); }
.stat .l { color: var(--ink-3); font-size: .95rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.steps > li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start; counter-increment: step; }
.steps > li::before, .step-num { content: counter(step); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-900); color: var(--on-brand); font: 700 1rem var(--f-display); }
.step-num { content: none; }

/* Ceník */
.price-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: stretch; }
.price-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); }
.price-card h3 { font-size: 1.5rem; margin: 0; }
.price-card .price { font: 700 2.4rem/1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: var(--heading); }
.price-card .per { color: var(--ink-3); font-size: .95rem; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price-card li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.price-card li svg { width: 20px; height: 20px; color: var(--brand-900); margin-top: 2px; }
.price-card li.is-off { color: var(--ink-3); }
.price-card li.is-off svg { color: var(--line-strong); }
.price-card .btn { margin-top: auto; }
.price-card.is-sage { background: var(--brand-100); border-color: var(--brand-200); }
.price-card.is-dark { background: var(--inverse); border-color: var(--inverse); color: var(--on-inverse); }
.price-card.is-dark :is(h3, .price, li svg) { color: var(--on-inverse); }
.price-card.is-dark :is(.per, li.is-off) { color: var(--on-inverse-2); }
.price-flag { position: absolute; top: -13px; right: 20px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--brand-200); color: var(--brand-900); font: 600 .8125rem/1.3 var(--f-body); letter-spacing: .04em; }

/* Záhlaví stránek: drobečková navigace, H1, krátký úvod */
.page-head, .page-hero { padding-block: clamp(28px, 5vw, 64px) clamp(20px, 3vw, 36px); }
.page-head h1, .page-hero h1 { margin: 0 0 .3em; max-width: 22ch; }
.page-head .lede, .page-hero .lede { margin: 0; max-width: 62ch; }
.page-head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: .9rem; color: var(--ink-3); margin: 0 0 14px; padding: 0; list-style: none; }
.crumbs a { color: var(--ink-2); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--brand-900); text-decoration: underline; }
.crumbs li + li::before, .crumbs > a + a::before, .crumbs > a + span::before { content: "/"; margin-right: 8px; color: var(--line-strong); }
.crumbs [aria-current] { color: var(--ink-3); overflow-wrap: anywhere; }

/* Prázdný stav */
.empty, .empty-state { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 10px; background: var(--surface); border: 1.5px dashed var(--line-strong); border-radius: var(--r-card); }
.empty-state > svg, .empty-state .ic svg { width: 44px; height: 44px; color: var(--brand-500); }
.empty-state h3 { margin: 0; color: var(--heading); }
.empty-state p { margin: 0; max-width: 46ch; }

/* ---------- Patička ---------- */
.site-footer { background: var(--inverse); color: var(--on-inverse); margin-top: 0; --focus: #D9DED3; }
.site-footer .foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 20px 40px; padding-block: 48px 8px; }
.site-footer .foot-brand { max-width: 40ch; }
.site-footer .foot-claim { font: 600 .875rem/1.5 var(--f-body); letter-spacing: .02em; color: var(--on-inverse-2); margin: 12px 0 0; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); padding-block: 32px; }
@media (max-width: 899px) { .site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-footer h4 { font: 600 .875rem/1.3 var(--f-body); letter-spacing: .02em; color: var(--on-inverse-2); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.site-footer a { color: var(--on-inverse); text-decoration: none; display: inline-flex; align-items: center; min-height: 36px; }
.site-footer a:hover { color: var(--on-inverse); text-decoration: underline; }
.site-footer .brand { color: var(--on-inverse); }
.site-footer .muted, .site-footer .legal { color: var(--on-inverse-2); }
.site-footer .legal { border-top: 1px solid color-mix(in srgb, var(--on-inverse) 18%, transparent); padding-block: 20px 28px; font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer .legal a { min-height: 0; text-decoration: underline; }
.site-footer .btn-ghost { background: transparent; color: var(--on-inverse); border-color: color-mix(in srgb, var(--on-inverse) 40%, transparent); }
.site-footer .btn-ghost:hover { background: color-mix(in srgb, var(--on-inverse) 12%, transparent); color: var(--on-inverse); }
.partner-logos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.partner-logos span { font: 700 .78rem var(--f-body); padding: 4px 10px; border-radius: var(--r-pill); border: 1px solid color-mix(in srgb, var(--on-inverse) 35%, transparent); color: var(--on-inverse); }
.footer-tools { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.proto-tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--r-pill); background: var(--brand-200); color: var(--brand-900); font: 700 .78rem/1.4 var(--f-body); }

/* ---------- Drawer / toast / callout ---------- */
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20, 28, 18, .42); z-index: 400; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--surface); z-index: 401; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; padding-top: env(safe-area-inset-top, 0px); border-radius: var(--r-lg) 0 0 var(--r-lg); }
.drawer header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer header h2 { font-size: 1.3rem; margin: 0; }
.drawer .body { overflow: auto; padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 18px; }
.drawer footer { padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 10px; }
@media (max-width: 899px) { .drawer { top: auto; left: 0; width: 100%; max-height: 90dvh; border-radius: var(--r-lg) var(--r-lg) 0 0; } }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--inverse); color: var(--on-inverse); padding: 14px 20px; border-radius: var(--r); font-weight: 700; z-index: 500; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
@media (max-width: 899px) { .toast { bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); } }
.callout { background: var(--brand-100); padding: 14px 18px; border-radius: var(--r); border: 1px solid var(--brand-200); }
.callout.info { background: var(--brand-100); }
.callout.warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.signal-band { background: var(--brand-200); color: var(--brand-900); }
.signal-band a { color: var(--brand-900); }
.signal-band .kicker, .signal-band .eyebrow { color: var(--brand-900); }

/* ---------- Fotky a dekor ---------- */
.photo { margin: 0; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); background: var(--brand-100); }
.photo figcaption { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
/* Vlnitý výřez fotky (maska SVG, funguje bez vložených prvků) */
.wave-photo { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V84C84 97 68 76 50 86C32 96 16 93 0 82Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0H100V84C84 97 68 76 50 86C32 96 16 93 0 82Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.wave-photo-left { -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M16 0H100V100H30C16 98 24 80 12 66C2 54 14 38 8 24C4 13 8 3 16 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M16 0H100V100H30C16 98 24 80 12 66C2 54 14 38 8 24C4 13 8 3 16 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.wave-photo img, .wave-photo-left img { width: 100%; height: 100%; object-fit: cover; }
/* Čárkovaná cesta ke špendlíku (jen dekor, aria-hidden) */
.route-deco { display: block; width: 220px; max-width: 100%; aspect-ratio: 240 / 80; background: var(--brand-500); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 80'%3E%3Cpath d='M4 72C60 80 92 40 140 52S198 62 210 34' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='8 9'/%3E%3Cpath fill-rule='evenodd' d='M220 2a11 11 0 0 1 11 11c0 9-11 20-11 20s-11-11-11-20A11 11 0 0 1 220 2Zm0 6a5 5 0 1 0 0 10a5 5 0 1 0 0-10Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 80'%3E%3Cpath d='M4 72C60 80 92 40 140 52S198 62 210 34' fill='none' stroke='%23000' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='8 9'/%3E%3Cpath fill-rule='evenodd' d='M220 2a11 11 0 0 1 11 11c0 9-11 20-11 20s-11-11-11-20A11 11 0 0 1 220 2Zm0 6a5 5 0 1 0 0 10a5 5 0 1 0 0-10Z'/%3E%3C/svg%3E") center / contain no-repeat; }
.handnote { font: 600 1.125rem/1.3 var(--f-body); color: var(--brand-700); }

/* ---------- Mapa ---------- */
.map-canvas { width: 100%; height: 100%; background: var(--brand-100); }
.leaflet-container.leaflet-container, .leaflet-container .leaflet-control-attribution { font-family: var(--f-body); }
.leaflet-container { background: var(--brand-100); }
.leaflet-popup-content-wrapper { border-radius: var(--r); box-shadow: var(--shadow-lg); }
.leaflet-touch .leaflet-bar.leaflet-control-zoom { border: 0; border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.leaflet-bar.leaflet-control-zoom a { font: 700 20px/34px var(--f-body); width: 40px; height: 40px; color: var(--brand-900); background: var(--surface); border-bottom-color: var(--line); }
.leaflet-bar.leaflet-control-zoom a:hover { background: var(--brand-200); color: var(--brand-900); }
.marker-cluster-kp { background: #4E5F47; color: #fff; border: 3px solid color-mix(in srgb, #fff 70%, var(--brand-500)); border-radius: 50%; display: grid; place-items: center; font: 700 .9rem var(--f-display); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand-500) 30%, transparent), var(--shadow); }
.map-engine-note { position: absolute; left: 12px; bottom: 12px; z-index: 500; background: var(--surface); border-radius: var(--r-sm); padding: 6px 10px; font-size: .78rem; color: var(--ink-3); box-shadow: var(--shadow); max-width: calc(100% - 24px); }
/* Světlý tlumený podklad do zelenošeda (dlaždice OSM; zdroj i atribuce zůstávají) */
.leaflet-tile-pane .leaflet-tile { filter: grayscale(1) sepia(.28) hue-rotate(48deg) saturate(.75) brightness(1.05) contrast(.88); }
iframe.gmap, iframe.pl-gmap, .gmap iframe { filter: grayscale(.85) sepia(.15) hue-rotate(48deg) contrast(.95); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .leaflet-tile-pane .leaflet-tile { filter: grayscale(1) invert(1) sepia(.2) hue-rotate(48deg) saturate(.7) brightness(.82) contrast(.9); } }
:root[data-theme="dark"] .leaflet-tile-pane .leaflet-tile { filter: grayscale(1) invert(1) sepia(.2) hue-rotate(48deg) saturate(.7) brightness(.82) contrast(.9); }

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--line); border: 0; margin: 24px 0; }
.kbd { font: 700 .82rem var(--f-mono); border: 1px solid var(--line-strong); border-bottom-width: 2px; padding: 1px 6px; border-radius: 6px; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font: 700 .85rem var(--f-body); color: var(--ink-2); background: var(--brand-100); }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { text-align: right; }
@media (max-width: 520px) { table.data { font-size: .9rem; } table.data th, table.data td { padding: 10px; } .table-wrap > table.data:has(thead) { min-width: 30rem; } }

/* ---------- Přepínač jazyka CZ / DE / EN (i18n.js) ---------- */
.lang-switch { display: inline-flex; flex: none; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-2); }
.lang-switch a { min-width: 40px; min-height: 38px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); font: 700 .82rem var(--f-body); letter-spacing: .04em; color: var(--ink-2); text-decoration: none; }
.lang-switch a:hover { background: var(--surface); color: var(--ink); }
.lang-switch a[aria-current] { background: var(--surface); color: var(--brand-900); box-shadow: var(--shadow-sm); }
.site-footer .lang-switch { background: color-mix(in srgb, var(--on-inverse) 12%, transparent); }
.site-footer .lang-switch a { color: var(--on-inverse); min-height: 40px; }
.site-footer .lang-switch a:hover { background: color-mix(in srgb, var(--on-inverse) 18%, transparent); }
.site-footer .lang-switch a[aria-current] { background: var(--on-inverse); color: var(--inverse); }
.sheet .menu-lang { display: flex; align-items: center; gap: 14px; padding: 10px 12px; font: 700 1rem var(--f-body); flex-wrap: wrap; }
.sheet .menu-lang .lbl { flex: 1; }
.sheet .menu-lang svg { width: 22px; height: 22px; color: var(--brand-500); }
.more-menu .more-lang { display: none; align-items: center; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--line); margin-top: 4px; font-weight: 700; }
.more-menu .more-lang > span { flex: 1; }
.more-menu .more-lang svg { width: 20px; height: 20px; color: var(--brand-500); }
/* Hlavička na menších monitorech: jazyk se přesune do menu Více, aby se vešla i němčina */
/* Přepínač jazyka je v hlavičce vždy vidět; kde je málo místa (mobil, menší monitory), je zmenšený */
.hdr-lang { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 2px 2px 2px 10px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: var(--surface); }
.hdr-lang > svg { width: 18px; height: 18px; color: var(--brand-900); flex: none; }
.hdr-lang .lang-switch { background: transparent; }
@media (max-width: 479px) { .hdr-lang { padding: 0; border: 0; } .hdr-lang > svg { display: none; } .hdr-lang .lang-switch { background: var(--surface-2); } }
@media (max-width: 1279px) {
  .header-tools .needs-btn .lbl { display: none; }
  .hdr-lang .lang-switch { padding: 2px; gap: 0; }
  .hdr-lang .lang-switch a { min-width: 32px; min-height: 32px; padding: 0 5px; font-size: .72rem; letter-spacing: .02em; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
  html[lang="de"] .hdr-lang .lang-switch a { min-width: 34px; padding: 0 5px; }
}
@media (max-width: 899px) { .hdr-lang { margin-right: 2px; } }
@media (max-width: 379px) { .site-header .brand-logo { height: 24px; } .site-header .inner { gap: 6px; } .header-tools { gap: 0; } .hdr-lang .lang-switch a { min-width: 29px; padding: 0 3px; } }
@media (min-width: 900px) and (max-width: 1179px) {
  .main-nav > a, .nav-drop > button { padding-inline: 9px; font-size: .92rem; }
  .site-header .inner { gap: 10px; }
  .header-tools { gap: 2px; }
  .brand-logo { height: 28px; }
}
/* Pod 1080 px se Ubytování a Akce přesunou do menu Více, aby se hlavička vešla i v němčině */
.more-menu .more-opt { display: none; }
@media (min-width: 900px) and (max-width: 1079px) {
  html:not([lang="cs"]) .main-nav .nav-opt { display: none; }
  html:not([lang="cs"]) .more-menu .more-opt { display: flex; }
}
@media (min-width: 900px) and (max-width: 1009px) {
  html[lang="cs"] .main-nav .nav-opt { display: none; }
  html[lang="cs"] .more-menu .more-opt { display: flex; }
}

/* ---------- v5: čistý vzhled ---------- */
/* Ručně psaná poznámka a čárkovaná cesta v záhlaví plánovačů se už nezobrazují (dekor, aria-hidden). */
.pl-hero-deco { display: none !important; }
