/* CSS Document */
#map {
    height: 500px;
    width: 100%;
    border: solid 1px #000;
}
#mapLoading {
    transition: opacity 0.2s ease;
}
/* ===== Feature labels (Ref) ===== */
.feature-label {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    pointer-events: none;
}
/* ===== Locate toggle button (image sprite) ===== */
.leaflet-control-locate a {
    background: #fff url("../img/crosshair.png") no-repeat 0 0;
    background-size: 26px 52px;
}
.leaflet-touch .leaflet-control-locate a {
    background-position: 2px 2px;
}
.leaflet-touch .leaflet-control-locate.active a {
    background-position: 2px -24px;
}
/* ===== Google Maps–style blue dot (iOS + Android safe) ===== */
.user-location {
    position: relative; /* REQUIRED for Android */
    width: 14px;
    height: 14px;
    background: #1a73e8;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(26, 115, 232, 0.8);
    transform: translateZ(0);
    will-change: transform;
}
.user-location::after {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    left: -15px;
    top: -15px;
    background: rgba(26, 115, 232, 0.25);
    border-radius: 50%;
    animation: userPulse 2s infinite;
    pointer-events: none;
}
@keyframes userPulse {
    0% {
        transform: scale(0.6);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}
/* iOS: avoid animation throttling glitches */
@supports (-webkit-touch-callout: none) {
    .user-location::after {
        animation: none;
        opacity: 0.35;
    }
}
/* ===== Legend ===== */
.legend {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
}
.legend-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
}
.legend-swatch {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}