

/* Standalone vector basemap view (ADR 0004). Fixed-height, non-scrolling:
   the header sits on top and the MapLibre canvas fills the rest. */
#map-view {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - var(--safe-area-inset-bottom));
}

@media (max-width: 799px) {
  #map-view {
    height: calc(100dvh - var(--footer-height) - var(--safe-area-inset-bottom));
  }
}

#map-view .map-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
  background-color: var(--background-color);
}

/* MapLibre ships its own control CSS (vendored /css/maplibre-gl.css, linked
   lazily by the view). Only small fit-and-finish tweaks here. */
#map-view .maplibregl-ctrl-attrib {
  font-size: 10px;
}

#map-view .maplibregl-ctrl-attrib.maplibregl-compact {
  background-color: var(--background-color);
}

#map-view .maplibregl-ctrl-attrib a {
  color: var(--text-color-secondary);
}
