.nl-mission-map {
    width: 100%;
    margin: 28px 0;
}

.nl-mission-map__canvas {
    width: 100%;
    height: var(--nl-map-height, 520px);
    min-height: 280px;
    border: 1px solid #d7dee7;
    border-radius: 10px;
    overflow: hidden;
    background: #eef2f6;
}

.nl-mission-map .leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(18, 35, 55, 0.16);
}

.nl-mission-map .leaflet-popup-content {
    margin: 14px 16px;
    min-width: 190px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.nl-map-popup__title {
    display: block;
    margin: 0 0 4px;
    color: #17243a;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;
}

.nl-map-popup__meta {
    display: block;
    margin: 0 0 10px;
    color: #667085;
    font-size: 14px;
    line-height: 1.4;
}

.nl-map-popup__link {
    display: inline-block;
    color: #17365d !important;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
    text-decoration: none !important;
}

.nl-map-popup__link:hover {
    text-decoration: underline !important;
}

.nl-mission-map .marker-cluster-small,
.nl-mission-map .marker-cluster-medium,
.nl-mission-map .marker-cluster-large {
    background: rgba(23, 54, 93, 0.20);
}

.nl-mission-map .marker-cluster-small div,
.nl-mission-map .marker-cluster-medium div,
.nl-mission-map .marker-cluster-large div {
    background: #17365d;
    color: #ffffff;
    font-weight: 700;
}

@media (max-width: 600px) {
    .nl-mission-map__canvas {
        height: min(var(--nl-map-height, 520px), 430px);
        border-radius: 8px;
    }
}


.nl-mission-map .leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

.nl-mission-map--tile-error .nl-mission-map__canvas::after {
    content: "Map background could not be loaded.";
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 500;
    padding: 7px 10px;
    border-radius: 5px;
    background: rgba(255,255,255,.92);
    color: #667085;
    font-size: 13px;
}

/* Address fallback for individual mission pages without stored coordinates. */
.nl-mission-map__iframe {
    display: block;
    width: 100%;
    height: var(--nl-map-height, 520px);
    min-height: 280px;
    border: 1px solid #d7dee7;
    border-radius: 10px;
    background: #eef2f6;
}

@media (max-width: 600px) {
    .nl-mission-map__iframe {
        height: min(var(--nl-map-height, 520px), 430px);
        border-radius: 8px;
    }
}
