/* Radar events map (Leaflet) */

.radar-map-wrap {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 0, 0, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    background: #0d0d0d;
}

.radar-map {
    width: 100%;
    min-height: 320px;
    z-index: 1;
}

/* Keep Leaflet controls readable on the dark theme */
.radar-map .leaflet-control-attribution {
    background: rgba(0, 0, 0, 0.6);
    color: #aaa;
}
.radar-map .leaflet-control-attribution a {
    color: #ff4d4d;
}
.radar-map .leaflet-bar a {
    background: #1a1a1a;
    color: #fff;
    border-bottom-color: #333;
}
.radar-map .leaflet-bar a:hover {
    background: #2a2a2a;
}

/* Custom event pin */
.radar-pin {
    background: transparent;
    border: none;
}
.radar-pin-dot {
    display: block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ff0000;
    border: 2px solid #fff;
    box-shadow: 0 0 0 rgba(255, 0, 0, 0.6);
    animation: radar-pin-pulse 2s infinite;
}

@keyframes radar-pin-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.6); }
    70%  { box-shadow: 0 0 0 12px rgba(255, 0, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 0, 0, 0); }
}

/* Popup styling */
.radar-map .leaflet-popup-content-wrapper {
    background: #161616;
    color: #f0f0f0;
    border-radius: 10px;
    border: 1px solid rgba(255, 0, 0, 0.3);
}
.radar-map .leaflet-popup-tip {
    background: #161616;
}
.radar-popup-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    margin-bottom: 4px;
}
.radar-popup-title:hover {
    color: #ff4d4d;
}
.radar-popup-date {
    color: #ff4d4d;
    font-size: 0.8rem;
    font-weight: 600;
}
.radar-popup-venue {
    color: #ddd;
    font-size: 0.82rem;
    margin-top: 2px;
}
.radar-popup-place {
    color: #999;
    font-size: 0.78rem;
}

/* Empty state overlay */
.radar-map-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(13, 13, 13, 0.92);
    color: #888;
    text-align: center;
    padding: 20px;
    z-index: 2;
}

/* The display:flex above would otherwise override the `hidden` attribute
   (which only takes effect via the low-priority UA stylesheet), keeping the
   overlay permanently on top of the map. This restores hidden behaviour. */
.radar-map-empty[hidden] {
    display: none;
}
.radar-map-empty i {
    font-size: 2rem;
    color: #ff0000;
    opacity: 0.7;
}
.radar-map-empty p {
    margin: 0;
    font-size: 0.95rem;
}
