/* Leaflet overrides — Piauí for Free (OpenStreetMap) */

/* divIcon pins: transparent root (Leaflet defaults add a white box + border) */
.piaui-map-pin {
  background: transparent;
  border: none;
}

/* Map canvas background matches the app card color while tiles load */
.leaflet-container {
  background: #f5f5f0;
  font-family: inherit;
}

/* Popup look close to the previous Google InfoWindow */
.piaui-map-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
}
.piaui-map-popup .leaflet-popup-content {
  margin: 0;
  line-height: 1.3;
}
.piaui-map-popup .leaflet-popup-tip {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

/* OSM attribution (required) — discreet */
.leaflet-control-attribution {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px 0 0 0;
}

/* ── MapLibre GL (OpenFreeMap) ─────────────────────────────────────────── */

/* Map canvas background matches the app card color while tiles load */
.maplibregl-map {
  background: #f5f5f0;
  font-family: inherit;
}

/* Marker root: transparent, sized by the component */
.piaui-map-pin {
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Popup look close to the previous Google InfoWindow */
.piaui-map-popup .maplibregl-popup-content {
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.18);
  padding: 0;
  overflow: hidden;
}
.piaui-map-popup .maplibregl-popup-tip {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}
.piaui-map-popup .maplibregl-popup-close-button {
  font-size: 18px;
  line-height: 1;
  padding: 2px 6px;
  color: #6b7280;
}

/* Attribution (required) — discreet */
.maplibregl-ctrl-attrib {
  font-size: 10px;
  background: rgba(255, 255, 255, 0.7);
}
