.safdem-map,
.safdem-public__map {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #e5e7eb;
}

.safdem-div-icon {
    background: transparent !important;
    border: 0 !important;
}

.safdem-symbol {
    --safdem-colour: #2b6cb0;
    align-items: center;
    background: var(--safdem-colour);
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.36);
    color: #fff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    line-height: 1;
    overflow: hidden;
    position: relative;
    text-align: center;
    width: 34px;
}

.safdem-symbol::after {
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--safdem-colour);
    bottom: -8px;
    content: "";
    left: 50%;
    margin-left: -6px;
    position: absolute;
}

.safdem-symbol__glyph {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    letter-spacing: -0.4px;
    width: 100%;
}

.safdem-symbol__image,
.safdem-symbol__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.safdem-symbol--toilets,
.safdem-symbol--entrance,
.safdem-symbol--exit,
.safdem-symbol--water {
    font-size: 10px;
}

.safdem-permanent-label {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.28);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
    color: #111827;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    padding: 3px 6px;
    pointer-events: none;
    white-space: nowrap;
}

.safdem-permanent-label::before {
    display: none;
}

.safdem-popup {
    color: #1f2937;
    font-size: 13px;
    min-width: 230px;
}

.safdem-popup h3 {
    font-size: 17px;
    line-height: 1.25;
    margin: 0 0 8px;
}

.safdem-popup p {
    margin: 0 0 9px;
}

.safdem-popup__row,
.safdem-measurements__row {
    align-items: baseline;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 5px 0;
}

.safdem-popup__row span,
.safdem-measurements__row span {
    color: #4b5563;
}

.safdem-popup__row strong,
.safdem-measurements__row strong {
    color: #111827;
    font-weight: 650;
    text-align: right;
}

.safdem-popup__links {
    padding-top: 8px;
}

.safdem-popup__links a {
    font-weight: 650;
}

.safdem-summary h4 {
    font-size: 13px;
    margin: 15px 0 3px;
}

.safdem-error {
    background: #fff3f3;
    border-left: 4px solid #b91c1c;
    padding: 10px 14px;
}

.leaflet-control-layers-list {
    max-height: min(55vh, 470px);
    overflow: auto;
}

.safdem-permanent-label .leaflet-tooltip-content,
.safdem-permanent-label {
    align-items: center;
    display: inline-flex;
    gap: 4px;
}

.safdem-label-symbol {
    align-items: center;
    background: #1f2937;
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex: 0 0 18px;
    font-size: 9px;
    font-weight: 800;
    height: 18px;
    justify-content: center;
    overflow: hidden;
    width: 18px;
}

.safdem-label-symbol__image {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.safdem-label-text {
    display: inline-block;
}

/* Bundled operational, emergency-service and event-vehicle map symbols. */
.safdem-symbol--fire-engine .safdem-symbol__glyph,
.safdem-symbol--ambulance .safdem-symbol__glyph,
.safdem-symbol--police-car .safdem-symbol__glyph,
.safdem-symbol--motorbikes .safdem-symbol__glyph,
.safdem-symbol--army-truck .safdem-symbol__glyph,
.safdem-symbol--tank .safdem-symbol__glyph,
.safdem-symbol--helicopter .safdem-symbol__glyph,
.safdem-symbol--wheeled-cannon .safdem-symbol__glyph,
.safdem-symbol--parachutist .safdem-symbol__glyph,
.safdem-symbol--ice-cream-van .safdem-symbol__glyph,
.safdem-label-symbol--fire-engine .safdem-label-symbol__glyph,
.safdem-label-symbol--ambulance .safdem-label-symbol__glyph,
.safdem-label-symbol--police-car .safdem-label-symbol__glyph,
.safdem-label-symbol--motorbikes .safdem-label-symbol__glyph,
.safdem-label-symbol--army-truck .safdem-label-symbol__glyph,
.safdem-label-symbol--tank .safdem-label-symbol__glyph,
.safdem-label-symbol--helicopter .safdem-label-symbol__glyph,
.safdem-label-symbol--wheeled-cannon .safdem-label-symbol__glyph,
.safdem-label-symbol--parachutist .safdem-label-symbol__glyph,
.safdem-label-symbol--ice-cream-van .safdem-label-symbol__glyph {
    background-position: center;
    background-repeat: no-repeat;
    font-size: 0;
}

.safdem-symbol--fire-engine .safdem-symbol__glyph,
.safdem-symbol--ambulance .safdem-symbol__glyph,
.safdem-symbol--police-car .safdem-symbol__glyph,
.safdem-symbol--motorbikes .safdem-symbol__glyph,
.safdem-symbol--army-truck .safdem-symbol__glyph,
.safdem-symbol--tank .safdem-symbol__glyph,
.safdem-symbol--helicopter .safdem-symbol__glyph,
.safdem-symbol--wheeled-cannon .safdem-symbol__glyph,
.safdem-symbol--parachutist .safdem-symbol__glyph,
.safdem-symbol--ice-cream-van .safdem-symbol__glyph {
    background-size: 27px 27px;
}

.safdem-label-symbol--fire-engine .safdem-label-symbol__glyph,
.safdem-label-symbol--ambulance .safdem-label-symbol__glyph,
.safdem-label-symbol--police-car .safdem-label-symbol__glyph,
.safdem-label-symbol--motorbikes .safdem-label-symbol__glyph,
.safdem-label-symbol--army-truck .safdem-label-symbol__glyph,
.safdem-label-symbol--tank .safdem-label-symbol__glyph,
.safdem-label-symbol--helicopter .safdem-label-symbol__glyph,
.safdem-label-symbol--wheeled-cannon .safdem-label-symbol__glyph,
.safdem-label-symbol--parachutist .safdem-label-symbol__glyph,
.safdem-label-symbol--ice-cream-van .safdem-label-symbol__glyph {
    background-size: 14px 14px;
    display: block;
    height: 100%;
    width: 100%;
}

.safdem-symbol--fire-engine .safdem-symbol__glyph,
.safdem-label-symbol--fire-engine .safdem-label-symbol__glyph {
    background-image: url("../icons/fire-engine.svg");
}

.safdem-symbol--ambulance .safdem-symbol__glyph,
.safdem-label-symbol--ambulance .safdem-label-symbol__glyph {
    background-image: url("../icons/ambulance.svg");
}

.safdem-symbol--police-car .safdem-symbol__glyph,
.safdem-label-symbol--police-car .safdem-label-symbol__glyph {
    background-image: url("../icons/police-car.svg");
}

.safdem-symbol--motorbikes .safdem-symbol__glyph,
.safdem-label-symbol--motorbikes .safdem-label-symbol__glyph {
    background-image: url("../icons/motorbikes.svg");
}

.safdem-symbol--army-truck .safdem-symbol__glyph,
.safdem-label-symbol--army-truck .safdem-label-symbol__glyph {
    background-image: url("../icons/army-truck.svg");
}

.safdem-symbol--tank .safdem-symbol__glyph,
.safdem-label-symbol--tank .safdem-label-symbol__glyph {
    background-image: url("../icons/tank.svg");
}

.safdem-symbol--helicopter .safdem-symbol__glyph,
.safdem-label-symbol--helicopter .safdem-label-symbol__glyph {
    background-image: url("../icons/helicopter.svg");
}

.safdem-symbol--wheeled-cannon .safdem-symbol__glyph,
.safdem-label-symbol--wheeled-cannon .safdem-label-symbol__glyph {
    background-image: url("../icons/wheeled-cannon.svg");
}

.safdem-symbol--parachutist .safdem-symbol__glyph,
.safdem-label-symbol--parachutist .safdem-label-symbol__glyph {
    background-image: url("../icons/parachutist.svg");
}

.safdem-symbol--ice-cream-van .safdem-symbol__glyph,
.safdem-label-symbol--ice-cream-van .safdem-label-symbol__glyph {
    background-image: url("../icons/ice-cream-van.svg");
}

/* Google Map Tiles API attribution is separate from Leaflet's renderer credit. */
.safdem-google-attribution {
    background: rgba(255, 255, 255, 0.94);
    border-radius: 3px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.38);
    box-sizing: border-box;
    color: #202124;
    display: flex;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
    font-size: 11px;
    gap: 3px 8px;
    line-height: 1.35;
    margin: 0 10px 4px 0 !important;
    max-width: min(70vw, 680px);
    padding: 4px 7px;
}

.safdem-google-attribution[hidden] {
    display: none !important;
}

.safdem-google-attribution__brand {
    flex: 0 0 auto;
    font-weight: 700;
    white-space: nowrap;
}

.safdem-google-attribution__data {
    overflow-wrap: anywhere;
}

.safdem-google-attribution.has-error .safdem-google-attribution__data {
    font-style: italic;
}

@media (max-width: 600px) {
    .safdem-google-attribution {
        font-size: 10px;
        max-width: calc(100vw - 82px);
    }
}
