:root {
  --ocean-mint: #6ECED6;
  --ad-pink: #F25C78;
  --cream: #FFF4D6;
  --tar-black: #1C1C1C;
  --spill-red: #B11226;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--cream);
  color: var(--tar-black);
}

#map {
  position: absolute;
  inset: 0;
}

#title-bar {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.75rem 1rem;
  z-index: 10;
}

#title-bar h1 {
  font-family: "Alfa Slab One", cursive;
  font-size: 1.6rem;
  margin: 0;
}

#title-bar h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  margin: 0;
}

.asterisk {
  cursor: help;
  font-size: 0.8em;
}

#legend-toggle {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  z-index: 20;
  font-family: "Bebas Neue";
  background: var(--tar-black);
  color: var(--cream);
  border: none;
  padding: 0.5rem 0.75rem;
}

#legend {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 260px;
  padding: 1rem;
  background: rgba(255, 244, 214, 0.95);
  font-size: 0.85rem;
  z-index: 15;
  transition: transform 0.3s ease;
}

#legend.collapsed {
  transform: translateY(100%);
}

.swatch {
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 6px;
}

.swatch.pink { background: var(--ad-pink); }
.swatch.cream { background: var(--cream); border: 1px solid #999; }
.swatch.red { background: var(--spill-red); }

#asterisk-tooltip {
  position: absolute;
  top: 3.5rem;
  left: 1rem;
  max-width: 260px;
  padding: 0.5rem;
  background: var(--tar-black);
  color: var(--cream);
  font-size: 0.75rem;
  display: none;
  z-index: 20;
}

.mapboxgl-popup.sip-popup .mapboxgl-popup-content {
  background: rgba(255, 244, 214, 0.96);
  border: 1px solid rgba(28,28,28,0.25);
  box-shadow: 0 10px 30px rgba(28,28,28,0.25);
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  padding: 10px 10px 8px 10px;
}

.popup-head {
  font-family: "Bebas Neue", system-ui, sans-serif;
  letter-spacing: 0.06em;
  font-size: 14px;
  margin-bottom: 6px;
  color: #1C1C1C;
}

.popup-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  line-height: 1.35;
  margin: 2px 0;
}

.popup-row .k {
  opacity: 0.75;
}

.popup-row .v {
  font-weight: 600;
}

.popup-fine {
  margin-top: 6px;
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 11px;
  opacity: 0.75;
}
