/* ─── Map containers ────────────────────────────────────────── */

.map-full {
  width: 100%;
  height: calc(100vh - 200px);
  min-height: 560px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}

.map-legend {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255,255,255,0.95);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12px;
  z-index: 5;
  max-height: 240px;
  overflow-y: auto;
  min-width: 180px;
}

.map-legend__title {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.map-legend__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 0;
}

.map-legend__swatch {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  border: 1px solid var(--ink);
  flex-shrink: 0;
}

.map-popup {
  font-family: 'Inter', system-ui, sans-serif;
}

.map-popup h4 {
  font-family: 'Fraunces', Georgia, serif;
  margin: 0 0 4px;
  font-size: 16px;
}

.map-popup .meta {
  font-size: 12px;
  color: var(--muted);
}

/* Override mapbox/maplibre controls to match coldcaked style */
.maplibregl-ctrl-group,
.mapboxgl-ctrl-group {
  border: 1.5px solid var(--ink) !important;
  border-radius: 8px !important;
  box-shadow: 2px 2px 0 var(--ink) !important;
  background: var(--white) !important;
}

.maplibregl-ctrl-group button,
.mapboxgl-ctrl-group button {
  border-color: rgba(0,0,0,0.1) !important;
}
