:root {
  --bg-dark: #000;
  --bg-surface: #fff8ef;
  --bg-card: #fff;
  --text-dark: #000;
  --text-light: #fff;
  --text-muted: #3f3f3f;
  --accent-yellow: #ffb638;
  --accent-yellow-dark: #e57a00;
  --accent-yellow-bright: #ffd277;
  --border: #000;
  --shadow-sm: 3px 3px 0 rgba(0, 0, 0, 1);
  --shadow-md: 6px 6px 0 rgba(0, 0, 0, 1);
  --shadow-lg: 10px 10px 0 rgba(0, 0, 0, 1);
  --font-main: 'Inter', 'Arial Black', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background: var(--bg-dark);
  color: var(--text-light);
  height: 100vh;
  overflow: hidden;
}

#map {
  width: 100%;
  height: 100%;
  filter: saturate(1.1);
}

#brand-mark {
  position: absolute;
  top: 24px;
  left: 88px;
  padding: 10px 22px;
  background: var(--accent-yellow);
  color: var(--text-dark);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: 0.08em;
  border: 4px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 500;
}

#location-count-container {
  position: absolute;
  top: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  z-index: 500;
}

#location-count {
  min-width: 68px;
  padding: 10px 18px;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  border: 4px solid var(--border);
  background: var(--accent-yellow);
  color: var(--text-dark);
  box-shadow: var(--shadow-md);
}

#category-counts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.category-count-item {
  background: var(--bg-card);
  color: var(--text-dark);
  padding: 6px 12px;
  border: 3px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  max-width: 240px;
}

#timeline-panel {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  width: min(460px, 70vw);
  background: var(--bg-card);
  border: 4px solid var(--border);
  padding: 16px 18px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 500;
}

.timeline-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
}

.meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.meta-value {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 4px;
}

.visible-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  color: var(--text-dark);
}

.summary-count,
.summary-total {
  font-size: 22px;
  font-weight: 800;
}

#timeline-slider {
  -webkit-appearance: none;
  width: 100%;
  background: transparent;
}

#timeline-slider:focus {
  outline: none;
}

#timeline-slider::-webkit-slider-runnable-track {
  height: 10px;
  background: var(--accent-yellow);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#timeline-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  background: var(--accent-yellow-dark);
  border: 3px solid var(--border);
  margin-top: -9px;
  cursor: pointer;
}

#timeline-slider::-moz-range-track {
  height: 10px;
  background: var(--accent-yellow);
  border: 3px solid var(--border);
  box-shadow: var(--shadow-sm);
}

#timeline-slider::-moz-range-thumb {
  width: 26px;
  height: 26px;
  background: var(--accent-yellow-dark);
  border: 3px solid var(--border);
  cursor: pointer;
}

.leaflet-control-attribution {
  display: none !important;
}

.leaflet-popup-content-wrapper {
  background: var(--accent-yellow);
  border: 4px solid var(--border);
  border-radius: 0;
  box-shadow: var(--shadow-md);
  color: var(--text-dark);
}

.leaflet-popup-content {
  margin: 8px 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.leaflet-popup-tip {
  background: var(--accent-yellow);
  border: 4px solid var(--border);
}

.map-marker {
  background: transparent !important;
  border: none !important;
}

.marker-pin {
  width: 30px;
  height: 30px;
  background: var(--accent-yellow);
  border: 4px solid var(--border);
  box-shadow: var(--shadow-md);
}

@media (max-width: 640px) {
  #brand-mark {
    left: 16px;
  }

  #timeline-panel {
    width: calc(100vw - 32px);
    left: 16px;
    transform: none;
  }

  .meta-value {
    font-size: 22px;
  }
}



