/* deck.gl canvas overlay — sits on top of OpenLayers, pointer-events handled via JS */
#deck-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Hover tooltip */
.deck-tooltip {
    position: absolute;
    z-index: 1000;
    pointer-events: none;
    background: rgba(20, 20, 20, 0.9);
    color: #f0f0f0;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    max-width: 240px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: none;
    transition: opacity 0.1s;
}

.deck-tooltip-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.deck-tooltip-label {
    color: #9ca3af;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deck-tooltip-value {
    font-weight: 600;
    font-size: 13px;
}

/* Layer panel badge for deck.gl layer type */
.deckgl-type-badge {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-left: 4px;
    vertical-align: middle;
}

.deckgl-type-badge.h3_hexagon { background: #7c3aed22; color: #7c3aed; }
.deckgl-type-badge.heatmap { background: #ef444422; color: #ef4444; }
.deckgl-type-badge.scatterplot { background: #3b82f622; color: #3b82f6; }
.deckgl-type-badge.arc { background: #f59e0b22; color: #f59e0b; }
.deckgl-type-badge.column { background: #10b98122; color: #10b981; }
.deckgl-type-badge.hexagon_bin { background: #8b5cf622; color: #8b5cf6; }
.deckgl-type-badge.trips { background: #f9731622; color: #f97316; }

/* Loading spinner for deck.gl layer toggle */
.deckgl-loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #4b5563;
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: deckgl-spin 0.6s linear infinite;
}

@keyframes deckgl-spin {
    to { transform: rotate(360deg); }
}

/* Error icon for failed deck.gl layer load */
.deckgl-error-icon {
    color: #ef4444;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
}

/* Layer settings panel — deck.gl specific controls */
.deckgl-settings-section {
    padding: 8px 0;
    border-top: 1px solid #374151;
}

.deckgl-settings-section label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 4px;
}

.deckgl-settings-section input[type="range"] {
    width: 100%;
}

.deckgl-color-scheme-preview {
    display: flex;
    height: 12px;
    border-radius: 2px;
    overflow: hidden;
    margin-top: 2px;
    cursor: pointer;
}

.deckgl-color-scheme-preview div {
    flex: 1;
}
