/* 🚨 SOS / Panic Emergency Overlay */
.panic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(127, 29, 29, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: panic-flash 1s infinite alternate;
}

@keyframes panic-flash {
    0% {
        background: rgba(127, 29, 29, 0.4);
    }

    100% {
        background: rgba(220, 38, 38, 0.6);
    }
}

.panic-card {
    background: #111827;
    border: 4px solid #ef4444;
    border-radius: 20px;
    padding: 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 0 50px rgba(239, 68, 68, 0.5);
    color: white;
}

.panic-icon {
    font-size: 5rem;
    color: #ef4444;
    margin-bottom: 1rem;
    animation: panic-icon-pulse 0.5s infinite alternate;
}

@keyframes panic-icon-pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

.panic-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.panic-msg {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.panic-btn-attended {
    background: #ef4444;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 800;
    cursor: pointer;
}

/* SOS Map Marker Pulse Animation */
.sos-marker-pulse {
    background: #ef4444;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 rgba(239, 68, 68, 0.4);
    animation: sos-pulse 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible !important;
    z-index: 1000;
}

.sos-marker-pulse i {
    color: white;
    font-size: 10px;
}

@keyframes sos-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(239, 68, 68, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
    }
}

/* Ensure Leaflet marker container doesn't clip the pulse */
.polaris-marker {
    overflow: visible !important;
}