:root {
  --bg: #050607;
  --panel: rgba(12, 14, 18, 0.92);
  --border: #1f2937;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #e5e7eb;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'D-DIN', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

#map {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
}

.panel {
  position: fixed;
  top: 20px;
  left: 20px;
  width: 320px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  z-index: 5;
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease;
}

.panel.hidden {
  transform: translateX(-110%);
}

.panel-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12,14,18,0.9);
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
}

.brand-title { font-weight: 700; font-size: 1.05rem; }
.brand-sub { color: var(--muted); font-size: 0.85rem; margin-top: 2px; }

.section { margin-top: 16px; padding-top: 12px; border-top: 1px solid #1b2330; }
.section h3 { margin: 0 0 10px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }

.check { display: block; margin: 8px 0; color: var(--text); }
.check input { margin-right: 8px; }

.stat { display: flex; justify-content: space-between; padding: 6px 0; }
.stat span { color: var(--muted); }

.small { color: var(--muted); font-size: 0.8rem; }

.legend {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 5;
  background: rgba(12,14,18,0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

.legend-bar {
  width: 160px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, #38bdf8, #22d3ee, #f59e0b, #ef4444);
  margin: 8px 0 4px;
}

.legend-labels { display: flex; justify-content: space-between; color: var(--muted); }

@media (max-width: 700px) {
  .panel { width: calc(100% - 40px); }
}

@font-face {
  font-family: 'D-DIN';
  src: url('fonts/D-DIN.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'D-DIN';
  src: url('fonts/D-DIN-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'D-DIN';
  src: url('fonts/D-DIN-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
