/* Fire marker wrapper & element styling */
.fire-marker-wrapper {
    pointer-events: auto;
    z-index: 501; /* Above earthquake and aircraft, slightly below volcanoes */
}

.fire-icon {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff9800 0%, #ff5722 70%, rgba(244, 67, 54, 0.3) 100%);
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #ff5722, 0 0 20px rgba(255, 87, 34, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    /* NO animations to prevent lag when zoomed out */
}

/* Different styling based on confidence level */
.fire-icon.confidence-high {
    background: radial-gradient(circle, #ff5722 0%, #d32f2f 70%, rgba(183, 28, 28, 0.3) 100%);
    box-shadow: 0 0 12px #d32f2f, 0 0 24px rgba(211, 47, 47, 0.6);
}

.fire-icon.confidence-low {
    background: radial-gradient(circle, #ffe082 0%, #ffb300 70%, rgba(255, 179, 0, 0.2) 100%);
    box-shadow: 0 0 8px #ffb300, 0 0 16px rgba(255, 179, 0, 0.4);
}

/* Fire label text inside icon if any */
.fire-symbol {
    font-size: 10px;
    line-height: 1;
    user-select: none;
}


/* Toggle Button */
.fire-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);
}

.fire-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.fire-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.3);
}

/* Popup specific styling */
.fire-popup {
    padding: 2px;
    color: var(--color-text-secondary);
}

.fire-popup-title {
    font-weight: 700;
    font-size: 0.875rem;
    color: #ef4444;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(239, 68, 68, 0.2);
    padding-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fire-popup-confidence {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--color-text-primary);
    margin-bottom: 8px;
}

.fire-popup-detail {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 4px;
}

.fire-popup-label {
    color: var(--color-text-muted);
}

.fire-popup-value {
    font-weight: 600;
    color: var(--color-text-secondary);
}

/* Confidence badges */
.confidence-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-left: 6px;
    vertical-align: middle;
}
.confidence-badge.high {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.confidence-badge.medium {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
    border: 1px solid rgba(249, 115, 22, 0.3);
}
.confidence-badge.low {
    background: rgba(234, 179, 8, 0.15);
    color: #facc15;
    border: 1px solid rgba(234, 179, 8, 0.3);
}
