html, body { margin: 0; height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#map { position: absolute; top: 0; bottom: 0; width: 100%; }
.panel {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: #fff; padding: 14px 16px; border-radius: 6px;
  box-shadow: 0 1px 6px rgba(0,0,0,.25); max-width: 300px; font-size: 13px; line-height: 1.4;
}
.tabs { display: flex; gap: 4px; margin-bottom: 10px; border-bottom: 1px solid #ddd; }
.tab {
  flex: 1; padding: 6px 4px; border: none; background: none; cursor: pointer;
  font: inherit; font-size: 12px; color: #555; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab:hover { color: #111; }
.tab.active { color: #111; font-weight: 600; border-bottom-color: #2166ac; }
.panel h1 { font-size: 16px; margin: 0 0 6px; }
.panel p { margin: 6px 0 0; color: #444; }
.legend { margin-top: 10px; }
.legend-row { display: flex; align-items: center; margin: 3px 0; }
.swatch { width: 18px; height: 14px; margin-right: 8px; border: 1px solid rgba(0,0,0,.15); }
.mapboxgl-popup-content { font-size: 13px; line-height: 1.4; padding: 10px 12px; }
.popup-title { font-weight: 600; font-size: 14px; }
