/* Map built on MapLibre GL + OpenFreeMap — replaces Google Maps.
   Tile colours live in vendor/maplibre/style-bcd.json; this file covers the container and popup. */

.main #map {
  height: 490px;
  /* land colour from the style, so it does not flash white before the tiles load */
  background-color: #f6f6f6;
  /* own stacking context, so the map controls never cover the header */
  position: relative;
  z-index: 0;
}

.main #map .maplibregl-canvas:focus {
  outline: none;
}

/* popup styled like the former InfoWindow */
.main #map .maplibregl-popup-content {
  background-color: #191975;
  border-radius: 0;
  padding: 10px;
  min-width: 280px;
  min-height: 45px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.3);
}

.main #map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip {
  border-top-color: #191975;
}

.main #map .maplibregl-popup-anchor-top .maplibregl-popup-tip {
  border-bottom-color: #191975;
}

.main #map .maplibregl-popup-close-button {
  display: none;
}

.main #map #content-infowindow p {
  margin: 0;
}

/* attribution — required by the OpenStreetMap / OpenMapTiles terms */
.main #map .maplibregl-ctrl-attribution {
  font-size: 10px;
}

.main #map .maplibregl-ctrl-attribution a {
  color: #191975;
}

@media (max-width: 768px) {
  .main #map .maplibregl-popup-content {
    min-width: 220px;
  }
}
