/* Scope all changes to the local Leaflet maps; no global site styles change. */
.contact-map .contact-map-canvas {
    width: 100%;
    height: 100%;
    min-height: 100%;
}

.contact-map .leaflet-container,
.nn-map-modal-box [data-profile-map-canvas].leaflet-container,
.location-modal-box #locationMap.leaflet-container {
    font-family: var(--font-family, inherit);
}

/*
 * Keep OpenStreetMap credit readable and linked, as required by the ODbL
 * attribution guidelines, but remove the wide white footer-like appearance.
 */
.contact-map .leaflet-control-attribution,
.nn-map-modal-box .leaflet-control-attribution,
.location-modal-box #locationMap .leaflet-control-attribution {
    background: rgba(255, 255, 255, .82);
    border: 0;
    border-radius: 5px;
    box-shadow: none;
    color: #263143;
    font-size: 11px;
    line-height: 1.45;
    margin: 0 6px 6px 0;
    padding: 2px 6px;
    direction: ltr;
    text-align: left;
    max-width: calc(100vw - 30px);
}

.contact-map .leaflet-control-attribution a,
.nn-map-modal-box .leaflet-control-attribution a,
.location-modal-box #locationMap .leaflet-control-attribution a {
    color: #25364b;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-map .leaflet-control-attribution a:focus-visible,
.nn-map-modal-box .leaflet-control-attribution a:focus-visible,
.location-modal-box #locationMap .leaflet-control-attribution a:focus-visible {
    outline: 2px solid #345ccb;
    outline-offset: 2px;
}

.nn-map-modal-box [data-profile-map-canvas] {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}
