/* ====================================================
   parkovani.cz — v2 mobile-first design
   ==================================================== */

:root {
  /* Barvy */
  --c-primary: #2563EB;
  --c-primary-dark: #1E40AF;
  --c-primary-light: #DBEAFE;
  --c-night: #0F172A;
  --c-night-2: #1E293B;
  --c-accent: #F59E0B;
  --c-success: #10B981;
  --c-danger: #DC2626;
  --c-bg: #FFFFFF;
  --c-bg-alt: #F8FAFC;
  --c-bg-tint: #F1F5F9;
  --c-text: #0F172A;
  --c-text-2: #334155;
  --c-muted: #64748B;
  --c-border: #E2E8F0;
  --c-border-strong: #CBD5E1;

  /* Stíny — vícevrstvé pro hloubku */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 24px -8px rgba(15, 23, 42, 0.18), 0 4px 8px -4px rgba(15, 23, 42, 0.08);
  --shadow-xl: 0 24px 48px -16px rgba(30, 64, 175, 0.25);
  --shadow-blue: 0 8px 24px -8px rgba(37, 99, 235, 0.4);

  /* Gradienty */
  --grad-hero: linear-gradient(135deg, #1E40AF 0%, #2563EB 50%, #3B82F6 100%);
  --grad-night: linear-gradient(180deg, #0F172A 0%, #1E293B 100%);
  --grad-card-red: linear-gradient(135deg, #FEE2E2 0%, #FECACA 100%);
  --grad-card-orange: linear-gradient(135deg, #FEF3C7 0%, #FDE68A 100%);
  --grad-card-green: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Layout */
  --max-w: 680px;
  --max-w-wide: 1100px;
  --pad-x: 20px;

  /* Typo */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg-alt);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 96px;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--c-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ Skip link ============ */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--c-primary);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ============ Partner strip ============ */
.partner-strip {
  background: var(--grad-night);
  color: #CBD5E1;
  font-size: 12.5px;
  text-align: center;
  padding: 7px 16px;
  letter-spacing: 0.01em;
}
.partner-strip a {
  color: #FCD34D;
  font-weight: 600;
  margin-left: 4px;
}
.partner-strip a:hover { color: #FDE68A; text-decoration: underline; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
  padding: 12px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--c-night);
}
.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad-hero);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  box-shadow: var(--shadow-blue);
}
.logo__dot { color: var(--c-primary); }

.search-mini { flex: 1; max-width: 280px; }
.search-mini input {
  width: 100%;
  padding: 9px 14px;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  background: var(--c-bg-alt);
  transition: all 0.15s ease;
}
.search-mini input:focus {
  outline: none;
  border-color: var(--c-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* ============ Container ============ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 8px var(--pad-x) 24px;
}
.container--wide { max-width: var(--max-w-wide); }

/* ============ Typografie ============ */
h1 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
h2 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 40px 0 16px;
}
h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}
p { margin-bottom: 12px; color: var(--c-text-2); }
.lead {
  font-size: 17px;
  color: var(--c-text-2);
  margin-bottom: 8px;
  line-height: 1.5;
}

@media (min-width: 720px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .lead { font-size: 19px; }
}

/* ============ Breadcrumbs ============ */
.breadcrumbs {
  font-size: 13px;
  color: var(--c-muted);
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs a:hover { color: var(--c-primary); }
.breadcrumbs span { color: var(--c-text); font-weight: 500; }

/* ============ HERO — search (homepage) ============ */
.search-hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 40px var(--pad-x) 48px;
  overflow: hidden;
  isolation: isolate;
}
.search-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  z-index: -1;
}
.search-hero__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}
.search-hero h1 {
  color: #fff;
  font-size: 30px;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}
.search-hero p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  margin-bottom: 24px;
}
.search-hero__form {
  display: flex;
  gap: 6px;
  background: #fff;
  padding: 6px;
  border-radius: 999px;
  box-shadow: var(--shadow-xl);
}
.search-hero__form input {
  flex: 1;
  border: 0;
  padding: 12px 18px;
  font-size: 16px;
  font-family: inherit;
  background: transparent;
  color: var(--c-text);
  min-width: 0;
}
.search-hero__form input:focus { outline: none; }
.search-hero__form button {
  background: var(--c-night);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  height: 44px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s;
}
.search-hero__form button:hover { background: var(--c-night-2); }

.geo-suggest {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}
.geo-suggest a { color: #fff; text-decoration: underline; font-weight: 600; }

/* Dekorace — silueta města ve spodu hero */
.search-hero__skyline {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  opacity: 0.18;
  z-index: -1;
}

@media (min-width: 720px) {
  .search-hero { padding: 72px var(--pad-x) 96px; }
  .search-hero h1 { font-size: 44px; }
  .search-hero p { font-size: 18px; }
}

/* ============ HERO — město (CTA) ============ */
.hero-cta {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 28px var(--pad-x) 24px;
  border-radius: var(--r-lg);
  margin: 8px 0 28px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  isolation: isolate;
}
.hero-cta::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(255,255,255,0.18) 0%, transparent 70%);
  z-index: -1;
}
.hero-cta::after {
  content: "P";
  position: absolute;
  top: 50%;
  right: -30px;
  transform: translateY(-50%);
  font-size: 280px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.06);
  line-height: 1;
  letter-spacing: -0.05em;
  z-index: -1;
  pointer-events: none;
}
.hero-cta h1 { color: #fff; margin-bottom: 8px; }
.hero-cta p {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15.5px;
  margin-bottom: 20px;
  line-height: 1.45;
}
.hero-cta__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

/* ============ Tlačítka ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 14px 24px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 0.08s ease, box-shadow 0.15s ease, background 0.15s ease;
  position: relative;
  overflow: hidden;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }

.btn--primary {
  background: #fff;
  color: var(--c-primary-dark);
  width: 100%;
  box-shadow: var(--shadow-md), inset 0 0 0 1px rgba(255,255,255,0.1);
}
.btn--primary:hover { box-shadow: var(--shadow-lg); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  width: 100%;
  margin-top: 10px;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.2); }

.btn--secondary {
  background: var(--c-primary);
  color: #fff;
  width: 100%;
  box-shadow: var(--shadow-blue);
}
.btn--secondary:hover { background: var(--c-primary-dark); }

/* ============ Zóny ============ */
.zones {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.zone {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.zone:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.zone__badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: var(--c-primary);
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.1);
}
.zone--red .zone__badge { background: linear-gradient(135deg, #EF4444, #DC2626); }
.zone--orange .zone__badge { background: linear-gradient(135deg, #F59E0B, #D97706); }
.zone--green .zone__badge { background: linear-gradient(135deg, #10B981, #059669); }
.zone--blue .zone__badge { background: linear-gradient(135deg, #3B82F6, #2563EB); }

.zone__name { font-weight: 700; font-size: 15px; color: var(--c-text); }
.zone__desc { font-size: 13px; color: var(--c-muted); margin-top: 2px; line-height: 1.4; }
.zone__price {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

.info-strip {
  background: var(--c-bg-tint);
  border-radius: var(--r-md);
  padding: 12px 14px;
  font-size: 13px;
  color: var(--c-text-2);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.info-strip__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--c-primary);
  margin-top: 1px;
}
.legal-note {
  margin: 10px 0 20px;
  color: var(--c-muted);
  font-size: 12.5px;
  line-height: 1.5;
}
.legal-note a {
  color: var(--c-text-2);
  font-weight: 600;
}

/* ============ Mapa (Leaflet) ============ */
.map-wrap {
  margin-bottom: 16px;
}
.map {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  border: 1px solid var(--c-border);
  background: var(--c-bg-tint);
  overflow: hidden;
  position: relative;
}
.map__fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--c-muted);
  font-size: 14px;
  text-align: center;
  padding: 16px;
}
.map__legend {
  margin: 8px 4px 0;
}
/* Override Leaflet defaultů pro lepší vzhled */
.leaflet-container {
  font-family: var(--font);
  border-radius: var(--r-md);
}
.leaflet-popup-content-wrapper {
  border-radius: var(--r-sm);
}
.leaflet-popup-content {
  margin: 10px 14px;
  font-size: 13px;
  line-height: 1.4;
}
/* Label markery (kód zóny "A", "B"...) */
.zone-label {
  display: grid;
  place-items: center;
  border: 0 !important;
  background: transparent !important;
}
.zone-label span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.02em;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
/* Tap-to-zoom hint (mizí po prvním kliku — JS odebírá listener) */
.map::before {
  content: "Klepněte pro aktivaci scroll-zoomu";
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  z-index: 400;
  pointer-events: none;
  opacity: 0.85;
}

/* ============ Mapa — placeholder (pro města bez souřadnic) ============ */
.map-placeholder {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  color: var(--c-muted);
  font-size: 14px;
  margin-bottom: 8px;
  background-image:
    linear-gradient(rgba(37,99,235,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,.04) 1px, transparent 1px);
  background-size: 24px 24px;
  overflow: hidden;
  position: relative;
}
.map-placeholder__content {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-weight: 600;
  color: var(--c-text-2);
  box-shadow: var(--shadow-md);
}

/* ============ Steps ============ */
.steps {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.step:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.step__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--c-bg-tint);
  display: grid;
  place-items: center;
  color: var(--c-primary);
  flex-shrink: 0;
}
.step__icon svg { width: 24px; height: 24px; }
.step__body { padding-top: 2px; }
.step p { margin: 0; font-size: 14px; color: var(--c-muted); line-height: 1.5; }
.step code {
  background: var(--c-bg-tint);
  padding: 2px 6px;
  border-radius: 5px;
  font-size: 13px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  color: var(--c-text);
}

.step--recommended {
  background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
  border: 1px solid var(--c-primary);
  box-shadow: var(--shadow-blue);
}
.step--recommended .step__icon {
  background: var(--c-primary);
  color: #fff;
}
.step--recommended::after {
  content: "⭐ Doporučeno";
  position: absolute;
  top: -10px;
  right: 14px;
  background: var(--c-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}

/* ============ Hlavní CTA box ============ */
.cta-block {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 20px;
  margin: 24px 0;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-md);
}
.cta-block__title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  color: var(--c-text);
}
.cta-block__desc {
  font-size: 13px;
  color: var(--c-muted);
  margin-bottom: 14px;
}

/* ============ FAQ ============ */
.faq { display: grid; gap: 8px; margin-bottom: 16px; }
.faq details {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s;
}
.faq details[open] { box-shadow: var(--shadow-md); }
.faq summary {
  cursor: pointer;
  padding: 16px 50px 16px 18px;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  position: relative;
  color: var(--c-text);
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--c-muted);
  border-bottom: 2px solid var(--c-muted);
  transform: translateY(-65%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { background: var(--c-bg-alt); }
.faq details > div {
  padding: 0 18px 18px;
  color: var(--c-text-2);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ============ Partner card — gamepc.cz ============ */
.partner-card {
  background: linear-gradient(135deg, #FFFFFF 0%, #F1F5F9 100%);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 18px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.partner-card::before {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #DC2626, #F59E0B);
}
.partner-card__logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0F172A 0%, #DC2626 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 11px;
  text-align: center;
  flex-shrink: 0;
  letter-spacing: -0.04em;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}
.partner-card__body { flex: 1; min-width: 0; }
.partner-card__label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.partner-card__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.partner-card__title a { color: var(--c-text); }
.partner-card__title a:hover { color: var(--c-primary); }
.partner-card__desc {
  font-size: 13px;
  color: var(--c-muted);
  margin: 0;
  line-height: 1.45;
}

/* ============ Sticky CTA (mobil) ============ */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px var(--pad-x) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.95) 30%, #fff 100%);
  z-index: 40;
  transform: translateY(0);
  transition: transform 0.25s ease;
  pointer-events: none;
}
.sticky-cta.is-hidden { transform: translateY(120%); }
.sticky-cta .btn {
  margin: 0;
  pointer-events: auto;
  box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.5);
}

@media (min-width: 720px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 48px; }
}

/* ============ Cities grid (homepage + footer) ============ */
.cities-section { margin-top: -28px; position: relative; z-index: 2; }
.cities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.city-tile {
  display: block;
  padding: 16px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  color: var(--c-text);
  transition: all 0.15s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.city-tile::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: var(--c-primary);
  opacity: 0;
  transition: opacity 0.15s;
}
.city-tile:hover {
  border-color: var(--c-primary);
  background: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.city-tile:hover::before { opacity: 1; }
.city-tile__name {
  display: block;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.city-tile__zones {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--c-muted);
  margin-top: 3px;
}
.city-tile__arrow {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-border-strong);
  font-size: 16px;
  transition: color 0.15s, transform 0.15s;
}
.city-tile:hover .city-tile__arrow {
  color: var(--c-primary);
  transform: translateY(-50%) translateX(2px);
}

@media (min-width: 520px) {
  .cities-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 720px) {
  .cities-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ============ Trust badges ============ */
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0 8px;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  backdrop-filter: blur(8px);
}

/* ============ "How it works" cards (homepage) ============ */
.feature-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}
.feature {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}
.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature h3 { margin-bottom: 4px; font-size: 16px; }
.feature p { margin: 0; font-size: 14px; color: var(--c-muted); }

@media (min-width: 600px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============ Section heading ============ */
.section-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 36px 0 12px;
  gap: 12px;
}
.section-h h2 { margin: 0; }
.section-h__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-primary);
  white-space: nowrap;
}

/* ============ Footer ============ */
.site-footer {
  background: var(--c-night);
  color: #CBD5E1;
  padding: 40px var(--pad-x) 24px;
  margin-top: 56px;
  font-size: 14px;
}
.site-footer__inner {
  max-width: var(--max-w-wide);
  margin: 0 auto;
}
.site-footer__cols {
  display: grid;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #94A3B8;
  margin-bottom: 12px;
  font-weight: 700;
}
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #E2E8F0; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
  padding-top: 20px;
  border-top: 1px solid #334155;
  color: #94A3B8;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.02em;
}
.site-footer__brand .logo__mark { box-shadow: none; }

@media (min-width: 720px) {
  .site-footer__cols { grid-template-columns: 1.3fr 1fr 1fr 1fr; }
}

/* ============ Utility ============ */
.muted { color: var(--c-muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: 24px; }

/* ============ Autocomplete dropdown ============ */
.ac-wrap {
  flex: 1;
  position: relative;
  min-width: 0;
}
.ac-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  z-index: 100;
  max-height: 60vh;
  overflow-y: auto;
  padding: 6px;
  -webkit-overflow-scrolling: touch;
}
/* Když je dropdown v hero (světlém pozadí), drž bílý */
.search-hero .ac-dropdown {
  text-align: left;
  color: var(--c-text);
}
.ac-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--c-text) !important;
  text-decoration: none !important;
  transition: background 0.1s;
}
.ac-item:hover,
.ac-item.is-active {
  background: var(--c-primary-light);
  text-decoration: none !important;
}
.ac-item__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ac-item__name {
  font-weight: 700;
  font-size: 14.5px;
  color: var(--c-text);
  letter-spacing: -0.01em;
}
.ac-item__region {
  font-size: 12px;
  color: var(--c-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ac-badge {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ac-badge--detail { background: var(--c-primary); color: #fff; }
.ac-badge--list { background: var(--c-border); color: var(--c-text-2); }
.ac-empty {
  padding: 16px;
  color: var(--c-muted);
  font-size: 14px;
  text-align: center;
}
.ac-empty a { color: var(--c-primary); font-weight: 600; }

/* Hero search formulář potřebuje overflow visible pro dropdown */
.search-hero__form {
  overflow: visible;
  position: relative;
  z-index: 10;
}

/* ============ /mesta/ — directory ============ */
.directory-hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 32px var(--pad-x) 28px;
  text-align: center;
}
.directory-hero h1 {
  color: #fff;
  font-size: 28px;
  margin-bottom: 8px;
}
.directory-hero p {
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 18px;
  font-size: 15px;
}
.directory-hero__search {
  max-width: 480px;
  margin: 0 auto;
  position: relative;
}
.directory-hero__search input {
  width: 100%;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  font-size: 16px;
  font-family: inherit;
  box-shadow: var(--shadow-lg);
}
.directory-hero__search input:focus {
  outline: 3px solid rgba(255, 255, 255, 0.4);
}
.directory-meta {
  text-align: center;
  font-size: 13px;
  color: var(--c-muted);
  margin: 16px 0 24px;
}
.region-group {
  margin-bottom: 32px;
}
.region-group__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-muted);
  margin: 24px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}
.region-group__count {
  background: var(--c-bg-tint);
  color: var(--c-text-2);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
}
.city-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  margin-bottom: 6px;
  color: var(--c-text);
  transition: all 0.12s ease;
  scroll-margin-top: 80px;
}
.city-row:hover {
  border-color: var(--c-primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: translateX(2px);
}
.city-row:target {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}
.city-row__main { flex: 1; min-width: 0; }
.city-row__name { font-weight: 700; font-size: 15.5px; letter-spacing: -0.01em; }
.city-row__meta { font-size: 12.5px; color: var(--c-muted); margin-top: 2px; }
.city-row__platforms { display: flex; gap: 4px; margin-right: 8px; flex-shrink: 0; }
.platform-chip {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 5px;
  background: var(--c-bg-tint);
  color: var(--c-text-2);
}
.platform-chip--brnoparking { background: #FEE2E2; color: #991B1B; }
.platform-chip--parksimply { background: #DBEAFE; color: #1E40AF; }
.platform-chip--mpla { background: #CFFAFE; color: #155E75; }
.platform-chip--virtualni-parkovaci-hodiny { background: #EDE9FE; color: #5B21B6; }
.city-row__arrow {
  color: var(--c-border-strong);
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.15s, color 0.15s;
}
.city-row:hover .city-row__arrow { color: var(--c-primary); transform: translateX(2px); }
.city-row__badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
  margin-right: 4px;
}
.city-row__badge--detail { background: var(--c-primary); color: #fff; }

/* ============ /parkovaci-aplikace/ ============ */
.platform-card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.platform-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--platform-color, var(--c-primary));
}
.platform-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.platform-card__logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: var(--platform-color, var(--c-primary));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: -0.04em;
  flex-shrink: 0;
}
.platform-card__title { font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.platform-card__tagline { font-size: 13px; color: var(--c-muted); margin-top: 2px; }
.platform-card__desc { font-size: 14.5px; color: var(--c-text-2); margin-bottom: 16px; }
.platform-card__features {
  list-style: none;
  display: grid;
  gap: 6px;
  padding: 0;
  margin-bottom: 16px;
}
.platform-card__features li {
  font-size: 14px;
  padding-left: 24px;
  position: relative;
  color: var(--c-text-2);
}
.platform-card__features li::before {
  content: "✓";
  position: absolute;
  left: 4px;
  color: var(--c-success);
  font-weight: 800;
}
.platform-card__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.platform-card__actions .btn-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: var(--c-bg-tint);
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.platform-card__actions .btn-sm:hover { background: var(--c-border); text-decoration: none; }
.platform-card__actions .btn-sm--primary { background: var(--platform-color, var(--c-primary)); color: #fff; border-color: transparent; }
.platform-card__note {
  margin: 10px 0 0;
  color: var(--c-muted);
  font-size: 12.5px;
}
.platform-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--c-muted);
  margin-left: auto;
}
.platform-card__cities {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-muted);
}
.platform-card__cities strong { color: var(--c-text); font-weight: 700; }

/* ============ Textové stránky ============ */
.text-page {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.text-page h1 { margin-bottom: 12px; }
.text-page h2 {
  margin-top: 28px;
  margin-bottom: 8px;
}
.text-page p {
  color: var(--c-text-2);
  margin-bottom: 12px;
}
.text-page code {
  background: var(--c-bg-tint);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.92em;
}

/* ============ Animace ============ */
@media (prefers-reduced-motion: no-preference) {
  .hero-cta, .search-hero {
    animation: fadeUp 0.5s ease-out;
  }
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
