* {
  box-sizing: border-box;
}

:root {
  --bg-fallback: #f7f7f8;
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-panel: rgba(255, 255, 255, 0.52);
  --glass-border: rgba(255, 255, 255, 0.7);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
  --text: #18181b;
  --muted: #71717a;
  --accent: #0066cc;
  --accent-gold: #c9a84c;
  --accent-soft: rgba(0, 102, 204, 0.12);
  --accent-gold-soft: rgba(201, 168, 76, 0.12);
  --good: #22c55e;

  --classical: linear-gradient(135deg, #8ec5fc, #e0c3fc);
  --rapid: linear-gradient(135deg, #f6d365, #fda085);
  --blitz: linear-gradient(135deg, #ff758c, #ff7eb3);
  --bullet: linear-gradient(135deg, #84fab0, #8fd3f4);
  --team: linear-gradient(135deg, #d4dde3, #eef2f6);
  --fischer: linear-gradient(135deg, #a18cd1, #fbc2eb);
  --other: linear-gradient(135deg, #c3cfe2, #e2ebf0);
}

body.theme-dark {
  --bg-fallback: #09090b;
  --glass-bg: rgba(18, 18, 24, 0.78);
  --glass-panel: rgba(22, 22, 30, 0.62);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-gold: #d4b65a;
  --accent-soft: rgba(56, 189, 248, 0.15);
  --accent-gold-soft: rgba(212, 182, 90, 0.15);
  --good: #4ade80;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  background: var(--bg-fallback);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

body {
  overflow-wrap: break-word;
  word-break: break-word;
}

.app-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
}

.map-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

#map {
  width: 100%;
  height: 100%;
}

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(32px) saturate(1.4);
  -webkit-backdrop-filter: blur(32px) saturate(1.4);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 20px;
  pointer-events: auto;
  animation: panelFadeIn 0.45s ease both;
}

@keyframes panelFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.glass-ui-layer {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  padding-bottom: 116px;
  pointer-events: none;
}

.maps-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-radius: 100px;
}

.maps-topbar::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), transparent);
  opacity: 0.3;
}

.maps-search-shell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  border: 1.5px solid var(--accent-gold-soft);
  box-shadow: 0 0 12px rgba(201, 168, 76, 0.25);
  flex-shrink: 0;
}

.maps-title-block {
  min-width: 0;
}

.maps-title-block h1 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.maps-title-block p {
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 260px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maps-topbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.top-header__meta {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.hamburger-btn {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  background: var(--glass-panel);
  color: var(--text);
  cursor: pointer;
  font-size: 1rem;
}

.lang-toggle {
  text-decoration: none;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
  transform: translateY(-1px);
  background: rgba(0, 102, 204, 0.22);
}

.panels-container {
  position: relative;
  flex: 1;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
}

.maps-sidebar {
  width: 360px;
  max-height: 100%;
  overflow-y: auto;
  padding: 20px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.15);
  border-radius: 10px;
}

.inner-panel {
  position: relative;
  padding: 18px;
  background: var(--glass-panel);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 16px;
}

.inner-panel:first-child::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-gold), var(--accent));
  border-radius: 2px;
  opacity: 0.5;
}

.inner-panel h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
}

.inner-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  color: var(--text);
  font-size: 0.84rem;
  font-family: inherit;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.button-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.btn {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.84rem;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  text-align: center;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255,255,255,0.6), rgba(255,255,255,0.3));
  border: 1px solid rgba(255,255,255,0.4);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.helper-text {
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 10px;
}

.result-list {
  display: grid;
  gap: 8px;
  max-height: 30vh;
  overflow-y: auto;
  padding-right: 4px;
}

.result-card {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 14px;
  padding: 14px;
  cursor: pointer;
}

.result-card__head {
  display: flex;
  gap: 10px;
  align-items: center;
}

.result-card h3 {
  margin: 0 0 4px;
  font-size: 0.88rem;
  font-weight: 700;
}

.result-card .meta {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.result-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1d1d1f;
  font-size: 0.8rem;
}

.bottom-ticker {
  position: absolute;
  left: 400px;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px 8px 20px;
  border-radius: 100px;
  pointer-events: auto;
  overflow: hidden;
}

.bottom-ticker::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-gold), var(--accent), transparent);
  opacity: 0.4;
}

.ticker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  border-right: 1px solid rgba(0,0,0,0.1);
  padding-right: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(0, 102, 204, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 102, 204, 0); }
}

.ticker-viewport {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.ticker-viewport::-webkit-scrollbar {
  display: none;
}

.ticker-track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker-item {
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.5);
  flex-shrink: 0;
}

.ticker-meta {
  color: var(--muted);
  font-size: 0.78rem;
}

.ticker-controls {
  display: flex;
  gap: 4px;
  border-left: 1px solid rgba(0,0,0,0.1);
  padding-left: 12px;
}

.ticker-btn {
  background: transparent;
  border: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.count-bubble {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.t-marker {
  width: 36px;
  height: 36px;
  border-radius: 14px 14px 14px 4px;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  border: 2px solid #fff;
}

.t-marker__core {
  transform: rotate(-45deg);
  font-size: 1rem;
  font-weight: 700;
  color: #1d1d1f;
}

.t-marker__mini {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  border: 1px solid #fff;
  display: grid;
  place-items: center;
  font-size: 0.6rem;
  font-weight: 700;
  transform: rotate(-45deg);
}

.drawer.hidden {
  display: none;
}

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  z-index: 1200;
  display: flex;
  justify-content: flex-end;
}

.drawer-inner {
  width: min(480px, 100%);
  height: 100%;
  padding: 24px;
  overflow: auto;
  position: relative;
  border-radius: 24px 0 0 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(40px);
  border-left: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.drawer-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: rgba(0,0,0,0.05);
  width: 32px;
  height: 32px;
  border-radius: 16px;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.drawer-hero,
.engagement-row {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.drawer-marker {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  position: relative;
  color: #1d1d1f;
  font-size: 1.2rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.drawer-marker small {
  position: absolute;
  right: 4px;
  bottom: 2px;
  font-size: 0.65rem;
  font-weight: 700;
}

.popup-card {
  padding: 12px 8px;
}

.popup-card h3 {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 1.05rem;
}

.popup-row {
  margin: 4px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.badge,
.tag-strip .badge,
.badge-row .badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.04);
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
}

.tag-strip,
.badge-row,
.popup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.panel-lite {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,0.58);
  border: 1px solid rgba(255,255,255,0.45);
}

.panel-lite h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.comment {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.comment:last-child {
  border-bottom: none;
}

.comment-meta {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.75rem;
}

.event-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  margin-top: 4px;
}

.classical { background: var(--classical); }
.rapid { background: var(--rapid); }
.blitz { background: var(--blitz); }
.bullet { background: var(--bullet); }
.team { background: var(--team); }
.fischer { background: var(--fischer); }
.other { background: var(--other); }

.site-footer {
  position: static;
  width: 100%;
  padding: 12px 20px;
  text-align: center;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -2px 12px rgba(0,0,0,0.05);
}

body.theme-dark .site-footer {
  background: rgba(9,9,11,0.88);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.cookie-consent {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%) translateY(calc(100% + 24px));
  z-index: 9999;
  width: min(600px, calc(100vw - 24px));
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.35s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.cookie-consent.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cookie-text {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.4;
}

.cookie-text a {
  color: var(--accent);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cookie-btn {
  min-width: 120px;
  min-height: 44px;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}

.theme-toggle-btn {
  background: var(--glass-panel);
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-toggle {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--glass-panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  background: var(--glass-panel);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 12px;
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 1000;
  padding: 8px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown-toggle:focus + .nav-dropdown-menu,
.nav-dropdown-menu:focus-within {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  border-radius: 8px;
}

.nav-dropdown-item i {
  width: 20px;
  text-align: center;
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.esri-leaflet-logo {
  display: none !important;
}

.leaflet-control-attribution {
  font-size: 10px;
  opacity: 0.1;
}

.leaflet-control-layers {
  background: var(--glass-panel) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--glass-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--glass-shadow) !important;
  color: var(--text) !important;
  overflow: hidden;
}

.leaflet-control-layers-expanded {
  padding: 12px 16px !important;
  background: var(--glass-bg) !important;
}

.leaflet-control-layers-list {
  margin-bottom: 0 !important;
}

.leaflet-control-layers label {
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 4px;
}

.leaflet-bottom.leaflet-right {
  margin-bottom: 90px;
  margin-right: 24px;
  z-index: 900;
}

.leaflet-bar {
  border: none !important;
  box-shadow: var(--glass-shadow) !important;
  border-radius: 12px !important;
  overflow: hidden;
}

.leaflet-bar a {
  background: var(--glass-panel) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  color: var(--text) !important;
  border-bottom: 1px solid var(--glass-border) !important;
  width: 36px !important;
  height: 36px !important;
  line-height: 36px !important;
}

.leaflet-bar a:last-child {
  border-bottom: none !important;
}

.leaflet-popup-content-wrapper {
  background: var(--glass-panel) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: var(--glass-shadow) !important;
  border-radius: 20px !important;
  color: var(--text) !important;
  padding: 4px;
}

.leaflet-popup-content {
  margin: 12px 14px;
}

.leaflet-popup-tip {
  background: var(--glass-panel) !important;
  backdrop-filter: blur(24px) !important;
  -webkit-backdrop-filter: blur(24px) !important;
  border: 1px solid var(--glass-border) !important;
  box-shadow: none !important;
}

.leaflet-popup-tip-container {
  overflow: visible !important;
}

.leaflet-popup-close-button {
  color: var(--text) !important;
  font-size: 1.4rem !important;
  padding: 12px 14px 0 0 !important;
  font-weight: 300 !important;
}

@media (max-width: 900px) {
  .app-container {
    height: auto;
    min-height: auto;
    overflow: visible;
  }

  .map-bg {
    position: relative;
    height: 38vh;
    min-height: 280px;
    z-index: 0;
  }

  #map {
    min-height: 280px;
  }

  .glass-ui-layer {
    position: static;
    pointer-events: auto;
    padding: 10px;
    padding-bottom: 10px;
    gap: 8px;
    background: var(--bg-fallback);
  }

  .maps-topbar {
    border-radius: 16px;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
  }

  .maps-topbar::after {
    display: none;
  }

  .maps-search-shell {
    flex: 1;
    min-width: 0;
  }

  .maps-title-block h1 {
    font-size: 0.95rem;
  }

  .maps-title-block p {
    max-width: 180px;
    font-size: 0.72rem;
  }

  .hamburger-btn {
    display: grid;
    place-items: center;
  }

  .maps-topbar__actions {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--glass-border);
  }

  .maps-topbar__actions.nav-open {
    display: flex;
  }

  .top-header__meta {
    display: none;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-toggle {
    width: 100%;
    justify-content: center;
    border-radius: 12px;
  }

  .nav-dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 4px;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .panels-container {
    flex-direction: column;
    gap: 8px;
    overflow: visible;
  }

  .maps-sidebar {
    width: 100%;
    max-height: none;
    padding: 12px;
    padding-bottom: 0;
    gap: 10px;
  }

  .glass-panel {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }

  .inner-panel {
    padding: 10px;
  }

  .inner-panel h2 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .inner-panel p {
    font-size: 0.8rem;
  }

  .form-grid {
    gap: 6px;
  }

  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  .button-row {
    margin-top: 8px;
  }

  .stats-panel {
    gap: 6px;
  }

  .stat {
    padding: 6px 4px;
  }

  .result-list {
    max-height: 24vh;
  }

  .bottom-ticker {
    position: static;
    width: 100%;
    left: auto;
    right: auto;
    bottom: auto;
    border-radius: 16px;
    flex-direction: column;
    padding: 10px;
    gap: 6px;
    margin-top: 6px;
  }

  .bottom-ticker::before {
    display: none;
  }

  .ticker-label {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    padding-bottom: 8px;
    width: 100%;
    justify-content: center;
  }

  .ticker-controls {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 8px;
    width: 100%;
    justify-content: center;
  }

  .ticker-item {
    font-size: 0.8rem;
  }

  .ticker-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .ticker-track {
    width: max-content;
    min-width: max-content;
    flex-wrap: nowrap;
  }

  .site-footer {
    margin-top: 12px;
    padding: 10px 16px;
    box-shadow: none;
  }

  .footer-links {
    gap: 10px;
  }

  .footer-links a {
    font-size: 0.75rem;
  }

  .site-footer p {
    font-size: 0.7rem !important;
  }

  .cookie-consent {
    width: calc(100vw - 16px);
    max-width: none;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%) translateY(calc(100% + 20px));
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
  }

  .cookie-consent.show {
    transform: translateX(-50%) translateY(0);
  }

  .cookie-text {
    font-size: 0.8rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .drawer-inner {
    width: 100%;
    border-radius: 20px 20px 0 0;
    height: min(88vh, 100%);
    margin-top: auto;
  }

  .leaflet-bottom.leaflet-right {
    margin-bottom: 20px;
    margin-right: 12px;
  }

  .leaflet-popup-content {
    margin: 10px 12px;
  }

  .leaflet-container {
    touch-action: pan-x pan-y;
  }
}

@media (max-width: 420px) {
  .maps-title-block p {
    max-width: 140px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .stat .label {
    font-size: 0.6rem;
  }
}