/* Earthquake Tracker Styles */

.earthquake-marker-wrapper {
    pointer-events: auto;
    z-index: 501; /* Slightly above aircraft */
}

.earthquake-icon {
    width: 20px;
    height: 20px;
    background: rgba(239, 68, 68, 0.6);
    border: 2px solid #ef4444;
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
}

.earthquake-icon::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #ef4444;
    animation: earthquake-pulse 2s infinite;
}

@keyframes earthquake-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.earthquake-magnitude {
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Earthquake Toggle Button */
.earthquake-toggle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--color-text-primary);
    cursor: pointer;
    font-size: 0.75rem;
    font-weight: 600;
    min-width: 110px;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.earthquake-toggle-btn.active {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.4);
    color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}

.earthquake-toggle-icon {
    font-size: 1.1rem;
}

/* Earthquake Popup Styling */
.earthquake-popup .leaflet-popup-content-wrapper {
    background: rgba(15, 23, 42, 0.95);
    color: #fff;
    border-radius: 12px;
    padding: 5px;
}

.earthquake-popup .leaflet-popup-tip {
    background: rgba(15, 23, 42, 0.95);
}

.eq-popup-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 5px;
}

.eq-popup-detail {
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.eq-popup-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-right: 5px;
    font-size: 0.75rem;
}

.eq-popup-value {
    font-weight: 700;
}

.eq-popup-magnitude {
    font-size: 1.5rem;
    color: #ef4444;
    margin: 10px 0;
}
