#map {
    height: 600px; 
    width: 100%; 
    border-radius: 12px; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.flashing-danger {
    animation: flashRed 1s infinite alternate ease-in-out;
}

@keyframes flashRed {
    0% { stroke-opacity: 1; stroke: #ff0000; stroke-width: 6; }
    100% { stroke-opacity: 0.3; stroke: #8b0000; stroke-width: 8; }
}

.hex-alert-container {
    position: relative;
    width: 26px !important;
    height: 30px !important;
    margin-left: -13px !important;
    margin-top: -15px !important;  
}

.hex-solid {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(192, 57, 43, 1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 2;
}

.hex-pulse {
    position: absolute;
    top: -5px; left: -5px;
    width: 36px;
    height: 40px;
    background: rgba(192, 57, 43, 0.6);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    z-index: 1;
    animation: pulseAnim 1.5s infinite ease-out;
}

@keyframes pulseAnim {
    0% { transform: scale(0.8); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.dark-mode-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: #333;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

body.dark-mode {
    background: #121212 !important;
}

body.dark-mode .header-container h4,
body.dark-mode .header-container h6 {
    color: #e0e0e0 !important;
}

body.dark-mode .dark-mode-btn {
    background: #1a1a2e;
    color: #e0e0e0;
    border: 1px solid #4a4a6a;
}

body.dark-mode .leaflet-popup-content-wrapper,
body.dark-mode .leaflet-popup-tip {
    background: #1a1a2e;
    color: #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
}

body.dark-mode .leaflet-popup-content {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-mode .leaflet-popup-close-button {
    color: #aaa !important;
}

body.dark-mode .leaflet-popup-close-button:hover {
    color: #fff !important;
}

body.dark-mode .leaflet-bar,
body.dark-mode .leaflet-control-zoom a {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #4a4a6a;
}

body.dark-mode .leaflet-bar a:hover {
    background: #2a2a4e;
}

body.dark-mode .leaflet-control-attribution {
    background: rgba(26, 26, 46, 0.85);
    color: #888;
}

body.dark-mode .leaflet-control-attribution a {
    color: #7eb8da;
}

body.dark-mode .leaflet-container {
    background: #1a1a2e;
}
