/**
 * Leaflet control reset.
 *
 * premium-theme.css styles every button and anchor through a very deep
 * :not() chain, which outranks Leaflet's own rules and turns the zoom
 * controls into oversized brand-green pills sitting on the map. These put
 * them back. Shared, because every page with a map needs it and the copies
 * had already started to drift.
 */
/* Leaflet nuclear reset — prevents global CSS from breaking map controls */
.leaflet-container img { max-width: none !important; max-height: none !important; }
/* Zoom buttons */
.leaflet-control-zoom {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18) !important;
}
.leaflet-control-zoom a {
    width: 34px !important;
    height: 34px !important;
    line-height: 34px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    background: white !important;
    color: #333 !important;
    display: block !important;
    text-align: center !important;
    text-decoration: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    transform: none !important;
    gap: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
}
.leaflet-control-zoom a:hover { background: #f4f4f4 !important; }
/* Attribution */
.leaflet-control-attribution {
    background: rgba(255,255,255,0.7) !important;
    color: #555 !important;
    padding: 0 4px !important;
    font-size: 10px !important;
    box-shadow: none !important;
    display: block !important;
    opacity: 0.7 !important;
    font-weight: normal !important;
}
.leaflet-control-attribution a {
    background: transparent !important;
    color: #444 !important;
    padding: 0 !important;
    font-size: 10px !important;
    display: inline !important;
    font-weight: normal !important;
    box-shadow: none !important;
    transform: none !important;
    border-radius: 0 !important;
    min-width: 0 !important;
    min-height: 0 !important;
    gap: 0 !important;
    width: auto !important;
    height: auto !important;
}

/* Attribution and popups also pick up the global link styling. */
.leaflet-container a.leaflet-popup-close-button {
    background: transparent !important;
    box-shadow: none !important;
    padding: 4px 4px 0 0 !important;
    min-width: 0 !important;
}
.leaflet-control-attribution {
    font-size: 10px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    color: #6C7573 !important;
    border-radius: 6px 0 0 0 !important;
    padding: 2px 6px !important;
}
.leaflet-control-attribution a {
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    min-width: 0 !important;
    color: #145E4A !important;
}

/* ── Marker and popup ──────────────────────────────────────────────
   The default marker is an <img>, and the global image rules were giving it
   a background, a border-radius and a shadow — so the pin rendered as a
   green rounded rectangle instead of a pin. */
.leaflet-marker-icon,
.leaflet-marker-shadow {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    max-width: none !important;
    max-height: none !important;
}

.leaflet-marker-shadow {
    opacity: 0.4;
}

/* The popup matches the cards around it rather than Leaflet's own bubble. */
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
    background: #ffffff !important;
    color: #1A1D1C !important;
    box-shadow: 0 8px 26px rgba(11, 42, 34, 0.18) !important;
}

.leaflet-popup-content-wrapper {
    border-radius: 10px !important;
    border: 1px solid #E2E6EC !important;
}

.leaflet-popup-content {
    margin: 10px 14px !important;
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #6C7573 !important;
}

/* The tiles used to be dimmed so a bright map would not read as a hole in a
   dark card. The card is light now, so they are left alone. */

.map-placeholder,
#mapPlaceholder {
    border-radius: 12px;
    overflow: hidden;
}

/* Leaflet's default is a hard swap between zoom levels when animation is off;
   these keep the transitions it does run feeling continuous. */
.leaflet-fade-anim .leaflet-tile {
    will-change: opacity;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
    will-change: transform;
}
