/**
 * OpenStreetMap (Leaflet) op de SKG-site.
 * Styling van de speld en het informatievenster volgt de oude Google Maps-weergave.
 */

.acf-map {
    position: relative;
    z-index: 0;
    background-color: #e9e5de;
    overflow: hidden;
}

/* De marker-blokken zijn alleen data voor het venster, geen zichtbare inhoud. */
.acf-map .marker {
    display: none;
}

.acf-map .leaflet-container {
    font-family: inherit;
    background-color: #e9e5de;
}

/* ---------- Speld ---------- */

.skg-marker {
    background: transparent;
    border: 0;
}

.skg-marker__pin {
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35));
    transform-origin: 50% 100%;
    animation: skg-speld-drop 0.35s ease-out both;
}

@keyframes skg-speld-drop {
    from {
        transform: translateY(-18px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: none;
        opacity: 1;
    }
}

/* ---------- Informatievenster (zoals Google's InfoWindow) ---------- */

.skg-infowindow .leaflet-popup-content-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    padding: 12px 0;
}

.skg-infowindow .leaflet-popup-content {
    margin: 0 18px;
    line-height: 1.5;
    min-width: 180px;
}

.skg-infowindow .leaflet-popup-content p {
    margin: 0 0 8px;
}

.skg-infowindow .leaflet-popup-content h3 {
    margin: 0 0 8px;
    color: #002f87;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
}

.skg-infowindow .leaflet-popup-content a {
    color: #002f87;
    text-decoration: underline;
}

.skg-infowindow .leaflet-popup-content a:hover {
    color: #ff8300;
}

.skg-infowindow .leaflet-popup-tip {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.skg-infowindow a.leaflet-popup-close-button {
    color: #5f6368;
    font-size: 22px;
    line-height: 1;
    padding: 8px 10px 0 0;
}

.skg-infowindow a.leaflet-popup-close-button:hover {
    color: #202124;
}

/* ---------- Naamsvermelding ---------- */

.acf-map .leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 4px 0 0 0;
    font-size: 10px;
    line-height: 1.4;
    padding: 1px 6px;
}

.acf-map .leaflet-control-attribution a {
    color: #002f87;
    text-decoration: none;
}
