/* Leaflet map z-index fix — prevent map from overlapping sticky header */
.mapa-ubicacio {
  position: relative;
  z-index: 0;
}

.mapa-ubicacio .leaflet-container {
  z-index: 0;
}

/* Leaflet top pane (controls) */
.mapa-ubicacio .leaflet-top,
.mapa-ubicacio .leaflet-bottom {
  z-index: 400;
}

/* Popup pane needs to be above all map layers (tiles=200, overlay=400, marker=600) */
.mapa-ubicacio .leaflet-pane.leaflet-popup-pane {
  z-index: 700;
}

/* Ensure popup is visible above the map card container */
.mapa-ubicacio .leaflet-popup {
  z-index: 700;
}

/* Leaflet popup styling — subtle, minimal */
.consell-map-popup .leaflet-popup-content-wrapper {
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.consell-map-popup .leaflet-popup-content {
  margin: 10px 14px;
  line-height: 1.4;
}

.consell-map-popup .leaflet-popup-tip {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.consell-map-popup .leaflet-popup-close-button {
  display: none;
}
