/* Lead Heatmap – Leaflet overrides for dark mode and tooltips */

.lead-heatmap-tooltip {
    background: rgba(23, 23, 23, 0.92) !important;
    color: #e5e5e5 !important;
    border: 1px solid rgba(115, 115, 115, 0.3) !important;
    border-radius: 8px !important;
    padding: 6px 10px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    font-family: Inter, sans-serif !important;
}

.lead-heatmap-tooltip::before {
    border-top-color: rgba(23, 23, 23, 0.92) !important;
}

.lead-heatmap-label span {
    font-family: Inter, sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #d1d5db;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 6px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    pointer-events: none;
}

html:not(.dark) .lead-heatmap-tooltip {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1f2937 !important;
    border: 1px solid rgba(209, 213, 219, 0.6) !important;
}

html:not(.dark) .lead-heatmap-tooltip::before {
    border-top-color: rgba(255, 255, 255, 0.95) !important;
}

html:not(.dark) .lead-heatmap-label span {
    color: #374151;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.7);
}

/* Leaflet container overrides for Preline dark mode */
.dark .leaflet-container {
    background: #171717;
}

/* Make Leaflet controls fit theme */
.dark .leaflet-control-zoom a {
    background: #262626 !important;
    color: #d1d5db !important;
    border-color: #404040 !important;
}

.dark .leaflet-control-attribution {
    background: rgba(23, 23, 23, 0.7) !important;
    color: #6b7280 !important;
}

.dark .leaflet-control-attribution a {
    color: #9ca3af !important;
}
