/* ── TOKENS ─────────────────────────────────────────── */
:root {
  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body:    'Barlow', 'Helvetica Neue', sans-serif;

  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-hero: clamp(3.5rem,   1rem    + 7vw,    9rem);

  --space-1: .25rem; --space-2: .5rem;  --space-3: .75rem;
  --space-4: 1rem;   --space-5: 1.25rem;--space-6: 1.5rem;
  --space-8: 2rem;   --space-10:2.5rem; --space-12:3rem;
  --space-16:4rem;

  --radius-sm: .375rem; --radius-md: .5rem;
  --radius-lg: .75rem;  --radius-xl: 1rem; --radius-full: 9999px;
  --transition: 180ms cubic-bezier(.16,1,.3,1);

  /* ── LIGHT PALETTE (default) ── */
  --bg:       #eef3f6;
  --surface:  #ffffff;
  --surface2: #e7edf1;
  --border:   rgba(19,24,28,.10);
  --text:     #13181c;
  --muted:    #5f6b75;
  --faint:    #cfd9df;

  --accent:       #84cc16;
  --accent-h:     #6fb10c;
  --accent-dim:   rgba(132,204,22,.14);
  --accent-glow:  0 0 24px rgba(132,204,22,.22);

  --green:  #22c55e;
  --red:    #ef4444;
  --blue:   #3b82f6;

  --shadow-sm: 0 1px 3px rgba(19,24,28,.06);
  --shadow-md: 0 4px 16px rgba(19,24,28,.09);
  --shadow-lg: 0 12px 40px rgba(19,24,28,.12);

  --content-default: 1160px;
  --content-narrow:  640px;
}

[data-theme="dark"] {
  --bg:       #0f172a; /* Slate 900 */
  --surface:  #1e293b; /* Slate 800 */
  --surface2: #334155; /* Slate 700 */
  --border:   rgba(255,255,255,.08);
  --text:     #f8fafc; /* Slate 50 */
  --muted:    #94a3b8; /* Slate 400 */
  --faint:    #475569; /* Slate 600 */

  --accent:       #84cc16; /* Lime 500 */
  --accent-h:     #a3e635; /* Lime 400 */
  --accent-dim:   rgba(132,204,22,.15);
  --accent-glow:  0 0 24px rgba(132,204,22,.3);

  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.5);
}

/* ── BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ── SCROLLBAR ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--faint); border-radius: 3px; }

/* ── TOPBAR ─────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
  padding: 0 var(--space-6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--transition), border-color var(--transition);
}
.topbar-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  width: 100%;
  display: flex; align-items: center; gap: var(--space-4);
}
.logo {
  display: flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -.01em;
  text-transform: uppercase;
  flex-shrink: 0;
}
.logo-mark {
  width: 32px; height: 32px;
  background: var(--accent);
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-mark svg { width: 18px; height: 18px; color: #fff; }
.logo-text { color: var(--text); }
.logo-text span { color: var(--accent); }

.topbar-filters {
  display: flex; align-items: center; gap: var(--space-2);
  flex: 1; overflow-x: auto; padding-inline: var(--space-2);
}
.topbar-filters::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface);
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  cursor: pointer;
}
.chip:hover { color: var(--text); border-color: var(--faint); }
.chip.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}
.chip-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: .7;
}

.topbar-actions { display: flex; align-items: center; gap: var(--space-3); flex-shrink: 0; }

.btn-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.btn-icon:hover { color: var(--text); border-color: var(--faint); }
.btn-icon svg { width: 16px; height: 16px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-size: var(--text-sm);
  font-weight: 600;
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-primary:hover { background: var(--accent-h); box-shadow: var(--accent-glow); }
.btn-primary svg { width: 14px; height: 14px; }

/* ── INFO BAR ────────────────────────────────────────── */
.info-bar {
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  z-index: 999;
  background: rgba(120, 53, 15, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  padding: 7px var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  overflow: hidden;
  max-height: 60px;
  transition: max-height 300ms ease, opacity 300ms ease;
}
[data-theme="light"] .info-bar {
  background: rgba(255, 251, 235, 0.95);
  border-bottom-color: rgba(251, 191, 36, 0.4);
}
.info-bar-inner {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: rgba(254, 243, 199, 0.9);
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}
[data-theme="light"] .info-bar-inner {
  color: #92400e;
}
.info-bar-inner svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  color: #fbbf24;
  opacity: 0.9;
}
[data-theme="light"] .info-bar-inner svg { color: #d97706; }
.info-bar-inner strong { color: #fbbf24; letter-spacing: .03em; }
[data-theme="light"] .info-bar-inner strong { color: #b45309; }
.info-bar-inner a {
  color: #fbbf24;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  transition: color var(--transition);
}
[data-theme="light"] .info-bar-inner a { color: #b45309; }
.info-bar-inner a:hover { color: #fde68a; }
[data-theme="light"] .info-bar-inner a:hover { color: #92400e; }
.info-bar-close {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: var(--radius-sm);
  color: rgba(254, 243, 199, 0.6);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), background var(--transition);
}
.info-bar-close:hover {
  color: #fde68a;
  background: rgba(255,255,255,.1);
}
[data-theme="light"] .info-bar-close { color: #a16207; }
[data-theme="light"] .info-bar-close:hover { background: rgba(0,0,0,.06); color: #78350f; }

@media (max-width: 768px) {
  .info-bar { padding: 6px var(--space-4); }
  .info-bar-inner a { display: none; }
}

/* ── DISCLAIMER HERO BAR ────────────────────────────── */
.disclaimer-hero-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) var(--space-6);
  position: relative;
  z-index: 10;
}
.disclaimer-hero-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--muted);
}
.disclaimer-hero-bar-inner p { margin: 0; }
.disclaimer-hero-bar-inner p strong {
  color: var(--text);
}
@media (max-width: 768px) {
  .disclaimer-hero-bar {
    padding: var(--space-3) var(--space-4);
  }
}

/* ── HERO ───────────────────────────────────────────── */
.hero {
  min-height: 80svh;
  height: 80svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  position: relative;
  overflow: hidden;
  padding-top: 90px; /* topbar 56px + info bar ~34px */
}
.hero-map {
  position: absolute; inset: 90px 0 0 0; /* match hero padding-top */
  z-index: 0;
}
#map { width: 100%; height: 100%; z-index: 1; }
[data-theme="dark"] #map .leaflet-tile {
  filter: brightness(1.05) contrast(1.08) saturate(1.05);
}

/* map overlay — lekki, żeby mapa była przejrzysta */
.hero-map::after {
  content: '';
  position: absolute; inset: 0; z-index: 5;
  background: linear-gradient(to top, rgba(15,17,23,.62) 0%, rgba(15,17,23,.12) 45%, transparent 100%);
  pointer-events: none;
  transition: background var(--transition), opacity 220ms cubic-bezier(.16,1,.3,1);
}
[data-theme="light"] .hero-map::after {
  background: linear-gradient(to top, rgba(238,243,246,.58) 0%, rgba(238,243,246,.1) 45%, transparent 100%);
}
.hero.is-compact .hero-map::after {
  opacity: 0.12;
  background: linear-gradient(to top, rgba(15,17,23,.35) 0%, transparent 60%);
}
[data-theme="light"] .hero.is-compact .hero-map::after {
  background: linear-gradient(to top, rgba(238,243,246,.3) 0%, transparent 60%);
}

.hero-content {
  position: relative; z-index: 10;
  padding: var(--space-12) var(--space-6) var(--space-8);
  max-width: var(--content-default);
  margin-inline: auto;
  width: 100%;
  pointer-events: none; /* Let clicks pass through to map where there are no interactive elements */
}
.hero-content * { pointer-events: auto; } /* Re-enable pointer events for text and buttons */

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  background: var(--accent-dim);
  border: 1px solid rgba(132,204,22,.3);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--space-5);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
  max-width: none;
  color: var(--text);
  text-shadow: 0 1px 6px rgba(0,0,0,0.12);
}
[data-theme="dark"] .hero-title {
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
}
.hero-title em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  font-size: var(--text-base);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
  line-height: 1.65;
}
[data-theme="dark"] .hero-sub {
  color: #cbd5e1;
}

.hero-cta {
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
}
.btn-cta {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}
.btn-cta:active { transform: scale(.97); }
.btn-cta-primary {
  background: var(--accent);
  color: #fff;
}
.btn-cta-primary:hover { background: var(--accent-h); box-shadow: var(--accent-glow); }
.btn-cta-secondary {
  background: rgba(255,255,255,.08);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.btn-cta-secondary:hover { background: rgba(255,255,255,.13); }
[data-theme="light"] .btn-cta-secondary {
  background: rgba(0,0,0,.06);
  border-color: rgba(0,0,0,.12);
}
[data-theme="light"] .btn-cta-secondary:hover { background: rgba(0,0,0,.10); }

.hero-stats {
  display: flex; align-items: center; gap: var(--space-8); margin-left: var(--space-2);
  flex-wrap: wrap;
}
.hero-stat-n {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.hero-stat-l { font-size: var(--text-xs); color: var(--muted); margin-top: 2px; text-transform: uppercase; letter-spacing: .06em; }

/* ── PLACES SECTION ─────────────────────────────────── */
.section {
  max-width: var(--content-default);
  margin-inline: auto;
  padding: var(--space-10) var(--space-6);
}

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: var(--space-6); gap: var(--space-3); flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.section-title span { color: var(--accent); }
.section-subtitle { color: var(--muted); font-size: var(--text-sm); max-width: 40ch; }

/* ── PLACE CARDS ─────────────────────────────────────── */
.places-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px,100%), 1fr));
  gap: var(--space-4);
}

.place-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex; flex-direction: column; gap: var(--space-4);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  cursor: pointer;
}
.place-card:hover {
  border-color: rgba(132,204,22,.35);
  box-shadow: 0 0 0 1px rgba(132,204,22,.12), var(--shadow-md);
  transform: translateY(-2px);
}

.place-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-3); }
.place-card-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.01em;
}
.place-card-address { font-size: var(--text-sm); color: var(--muted); margin-top: 2px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge-open   { background: rgba(34,197,94,.12);  color: #22c55e; border: 1px solid rgba(34,197,94,.25); }
.badge-24     { background: rgba(240,112,0,.15);   color: #f07000; border: 1px solid rgba(240,112,0,.3); }
.badge-type   { background: var(--surface2); color: var(--muted); border: 1px solid var(--border); }
.gdpr-clause  { font-size: 11px; color: var(--muted); margin-bottom: var(--space-4); line-height: 1.4; }

.place-card-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); }

.place-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: var(--text-xs); color: var(--muted);
  gap: var(--space-2);
}
.place-card-hours { display: flex; align-items: center; gap: var(--space-1); }
.place-card-hours svg { width: 12px; height: 12px; opacity: .5; }
.place-card-dist { font-weight: 600; color: var(--text); }

.btn-xs {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  transition: background var(--transition), color var(--transition);
}
.btn-red {
  background: rgba(239,68,68,.12);
  color: #ef4444;
  border: 1px solid rgba(239,68,68,.2);
}
.btn-red:hover {
  background: #ef4444;
  color: #fff;
}

/* ── CITY SEARCH BAR (pod mapą, nad „Jak działa”) ──── */
.city-search-bar {
  position: relative;
  z-index: 15;
  flex-shrink: 0;
  width: 100%;
  padding: 8px var(--space-4);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.city-search-bar-inner {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
}
.city-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--muted);
  pointer-events: none;
}
.city-search-input {
  width: 100%;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 14px 0 34px;
  font-size: 0.8125rem;
  color: var(--text);
}
.city-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.city-search-input::placeholder { color: var(--muted); }

.locate-bar {
  border-bottom: 1px solid var(--border);
}
.city-locate-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: var(--font-body);
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}
.city-locate-btn:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.city-locate-btn:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-dim);
}
.city-locate-btn svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── HOW IT WORKS ────────────────────────────────────── */
.how-section {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: var(--space-4);
  transition: background var(--transition), border-color var(--transition);
}
.how-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  padding-inline: var(--space-6);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-12);
  align-items: center;
}
@media (max-width: 768px) { .how-inner { grid-template-columns: 1fr; } }

.how-steps { display: flex; flex-direction: column; gap: var(--space-6); }
.how-step { display: flex; gap: var(--space-4); align-items: flex-start; }
.how-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--accent-dim);
  border: 1px solid rgba(132,204,22,.3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--accent);
}
.how-step-title { font-weight: 600; margin-bottom: 2px; }
.how-step-body  { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }

/* ── DISCLAIMER ─────────────────────────────────────── */
.disclaimer {
  background: rgba(239,68,68,.06);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex; gap: var(--space-4); align-items: flex-start;
  margin-block: var(--space-10);
}
.disclaimer svg { width: 20px; height: 20px; color: #ef4444; flex-shrink: 0; margin-top: 2px; }
.disclaimer-text { font-size: var(--text-sm); color: var(--muted); line-height: 1.65; }
.disclaimer-text strong { color: var(--text); }

/* ── SEARCH BAR ─────────────────────────────────────── */
.search-wrap {
  position: relative; max-width: 460px; width: 100%;
}
.search-input {
  width: 100%;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0 var(--space-5) 0 44px;
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; color: var(--muted); pointer-events: none;
}

/* ── FOOTER ─────────────────────────────────────────── */
footer {
  background: #ffffff;
  color: #13181c;
  border-top: 1px solid rgba(19, 24, 28, 0.1);
  padding: var(--space-8) var(--space-6);
}
.footer-inner {
  max-width: var(--content-default);
  margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: var(--space-4);
  align-items: center; justify-content: space-between;
}
.footer-copy { font-size: var(--text-xs); color: #5f6b75; }
.footer-links { display: flex; gap: var(--space-5); }
.footer-links a { font-size: var(--text-xs); color: #5f6b75; transition: color var(--transition); }
.footer-links a:hover { color: #13181c; }
footer .footer-inner p {
  color: #5f6b75 !important;
  border-top-color: rgba(19, 24, 28, 0.1) !important;
}
footer .footer-inner p strong { color: #13181c; }

/* ── MAP POPUP ───────────────────────────────────────── */
.leaflet-popup-content-wrapper {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-lg) !important;
  padding: 0 !important;
}
.leaflet-popup-content { margin: 0 !important; }
.leaflet-popup-tip { background: var(--surface) !important; }
.map-popup { padding: var(--space-4) var(--space-5); min-width: 220px; }
.map-popup-name { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 4px; }
.map-popup-addr { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.map-popup-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.map-popup-hours { font-size: 12px; color: var(--muted); }

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .topbar { padding: 10px 12px; }
  .logo-text { font-size: .95rem; }
  .topbar-filters { display: none; }
  .topbar-actions { gap: 8px; }
  .hero { min-height: 72svh; height: 72svh; }
  .hero-map::after {
    background: linear-gradient(to top, rgba(15,17,23,.38) 0%, rgba(15,17,23,.06) 38%, transparent 100%);
  }
  [data-theme="light"] .hero-map::after {
    background: linear-gradient(to top, rgba(238,243,246,.42) 0%, rgba(238,243,246,.06) 38%, transparent 100%);
  }
  .hero-content {
    padding: var(--space-4) var(--space-4) var(--space-4);
    gap: var(--space-2);
    align-self: stretch;
  }
  .hero-eyebrow {
    margin-bottom: var(--space-2);
    padding: 2px 10px;
    font-size: 0.65rem;
  }
  .hero-title {
    font-size: clamp(1.75rem, 7.5vw, 2.65rem);
    line-height: 1.0;
    letter-spacing: -.03em;
    max-width: none;
    margin-bottom: var(--space-2);
    color: #0f172a;
    text-shadow: 0 1px 4px rgba(255,255,255,.85);
  }
  [data-theme="dark"] .hero-title {
    color: #f1f5f9;
    text-shadow: 0 1px 6px rgba(0,0,0,.55);
  }
  .hero-title em { color: #4d7c0f; }
  [data-theme="dark"] .hero-title em { color: #a3e635; }
  .hero-sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    font-size: 0.68rem;
    line-height: 1.4;
    max-width: 100%;
    margin-bottom: var(--space-3);
    color: #334155;
  }
  [data-theme="dark"] .hero-sub { color: #94a3b8; }
  .hero-cta {
    gap: var(--space-3);
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
    margin-top: 0;
  }
  .hero-cta .btn-cta-secondary {
    min-height: 34px;
    padding: 6px 14px;
    font-size: 0.68rem;
    flex-shrink: 0;
    order: 2;
  }
  .hero-stats {
    display: flex;
    gap: var(--space-3);
    margin-left: 0;
    padding: 6px 10px;
    flex-shrink: 1;
    min-width: 0;
    order: 1;
    background: rgba(15, 23, 42, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow:
      0 2px 10px rgba(0, 0, 0, 0.45),
      0 0 18px rgba(0, 0, 0, 0.3);
  }
  .hero-stat { text-align: center; }
  .hero-stat-n {
    font-size: 0.9rem;
    color: #ffffff;
    text-shadow:
      0 1px 6px rgba(0, 0, 0, 0.65),
      0 0 10px rgba(0, 0, 0, 0.45);
  }
  .hero-stat-l {
    font-size: 0.58rem;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, 0.78);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.55);
  }
  .section { padding-inline: var(--space-4); }
  .how-inner { gap: var(--space-8); }
}

/* ── MODAL ──────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(6px);
  align-items: flex-end;
}
.modal-overlay.open { display: flex; }
@media (min-width: 640px) { .modal-overlay { align-items: center; justify-content: center; } }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 520px;
  padding: var(--space-8) var(--space-6) var(--space-6);
  position: relative;
  animation: slideUp .25s cubic-bezier(.16,1,.3,1);
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
}
@media (min-width: 640px) {
  .modal { border-radius: var(--radius-xl); }
}
@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.modal-close {
  position: absolute; top: var(--space-4); right: var(--space-4);
  width: 32px; height: 32px; border-radius: var(--radius-full);
  background: var(--surface2); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--transition), background var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-close svg { width: 14px; height: 14px; }
.modal-title {
  font-family: var(--font-display);
  font-size: var(--text-xl); font-weight: 800;
  text-transform: uppercase; margin-bottom: var(--space-6);
}
.field { margin-bottom: var(--space-5); }
.field label { display: block; font-size: var(--text-sm); font-weight: 600; margin-bottom: var(--space-2); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 10px var(--space-4);
  font-size: var(--text-sm);
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field textarea { min-height: 80px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.field-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
}
.field-checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  cursor: pointer;
}

.form-success {
  display: none; text-align: center; padding: var(--space-8);
  font-family: var(--font-display); font-size: var(--text-xl);
  font-weight: 800; text-transform: uppercase; color: var(--accent);
}

/* ── COMPACT HERO ───────────────────────────────────── */
.hero-content { transition: transform 220ms cubic-bezier(.16,1,.3,1), opacity 220ms cubic-bezier(.16,1,.3,1), padding 220ms cubic-bezier(.16,1,.3,1); }
.hero-title,
.hero-sub,
.hero-cta,
.hero-stats,
.hero-eyebrow,
.hero-map::after { transition: opacity 220ms cubic-bezier(.16,1,.3,1), transform 220ms cubic-bezier(.16,1,.3,1), margin 220ms cubic-bezier(.16,1,.3,1), font-size 220ms cubic-bezier(.16,1,.3,1), gap 220ms cubic-bezier(.16,1,.3,1), background 220ms cubic-bezier(.16,1,.3,1); }

.hero.is-compact .hero-content,
.hero.hero-point-selected .hero-content {
  padding-top: var(--space-4);
  padding-bottom: var(--space-2);
  transform: translateY(4px);
}
.hero.is-compact .hero-eyebrow,
.hero.hero-point-selected .hero-eyebrow {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
  padding: 0;
  border: none;
}
.hero.is-compact .hero-title,
.hero.hero-point-selected .hero-title {
  font-size: clamp(0.95rem, 2.2vw, 1.25rem);
  line-height: 1.15;
  margin-bottom: var(--space-1);
  max-width: none;
  letter-spacing: -.01em;
}
.hero.is-compact .hero-title em,
.hero.hero-point-selected .hero-title em {
  display: inline;
  font-size: 0.92em;
}
.hero.is-compact .hero-sub,
.hero.hero-point-selected .hero-sub {
  opacity: 0;
  transform: translateY(6px);
  max-height: 0;
  overflow: hidden;
  margin-bottom: 0;
}
.hero.is-compact .hero-cta,
.hero.hero-point-selected .hero-cta {
  transform: scale(0.88);
  transform-origin: left center;
  gap: var(--space-2);
}
.hero.is-compact .hero-cta .btn-cta,
.hero.hero-point-selected .hero-cta .btn-cta {
  padding: 8px 16px;
  font-size: 0.7rem;
}
.hero.is-compact .hero-stats,
.hero.hero-point-selected .hero-stats {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  margin: 0;
  gap: 0;
}

.place-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

@media (max-width: 768px) {
  .hero.is-compact .hero-content,
  .hero.hero-point-selected .hero-content { padding-top: var(--space-2); padding-bottom: var(--space-2); }
  .hero.is-compact .hero-title,
  .hero.hero-point-selected .hero-title { font-size: clamp(0.85rem, 3.5vw, 1.05rem); margin-bottom: 0; }
  .hero.is-compact .hero-cta,
  .hero.hero-point-selected .hero-cta {
    transform: none;
    transform-origin: right center;
    justify-content: flex-end;
    align-items: center;
    gap: var(--space-2);
  }
  .hero.is-compact .hero-cta .btn-cta,
  .hero.hero-point-selected .hero-cta .btn-cta {
    padding: 5px 12px;
    font-size: 0.65rem;
    min-height: 30px;
  }
  .hero.is-compact .hero-stats,
  .hero.hero-point-selected .hero-stats {
    opacity: 1;
    max-height: none;
    overflow: visible;
    margin: 0;
    gap: var(--space-2);
    padding: 5px 8px;
    box-shadow:
      0 2px 8px rgba(0, 0, 0, 0.4),
      0 0 14px rgba(0, 0, 0, 0.28);
  }
  .hero.is-compact .hero-stat-n,
  .hero.hero-point-selected .hero-stat-n { font-size: 0.75rem; }
  .hero.is-compact .hero-stat-l,
  .hero.hero-point-selected .hero-stat-l { font-size: 0.52rem; }
}

/* ── FORM PRIVACY CLAUSE ─────────────────────────────── */
.form-privacy-clause {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: var(--space-4);
  line-height: 1.45;
}
.form-privacy-clause a {
  color: var(--accent);
  text-decoration: underline;
}
.form-privacy-clause a:hover {
  color: var(--accent-h);
}

/* ── COOKIE BANNER ───────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 700px;
  background: rgba(30, 41, 59, 0.75);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-banner-text {
  font-size: var(--text-sm);
  color: #ffffff;
  line-height: 1.5;
}

.cookie-banner-text a {
  color: #bbf7d0;
  text-decoration: underline;
  font-weight: 500;
}

.cookie-banner-text a:hover {
  color: #ffffff;
}

@media (max-width: 640px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    bottom: 12px;
    padding: var(--space-4);
    text-align: center;
  }
}