/* Cesium Map Container Styles */
.cesium-map-container {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.cesium-container {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Override Cesium widget styles for better integration */
.cesium-viewer {
    border-radius: 12px;
}

.cesium-viewer-bottom {
    display: none; /* Hide Cesium credits bar - consider showing in production */
}

/* Map Controls */
.map-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 12px 12px 0 0;
    margin-bottom: -1px;
}

.map-controls label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 500;
}

.map-controls input[type="color"] {
    width: 40px;
    height: 30px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    padding: 0;
}

.map-controls input[type="color"]::-webkit-color-swatch-wrapper {
    padding: 2px;
}

.map-controls input[type="color"]::-webkit-color-swatch {
    border-radius: 4px;
    border: none;
}

/* View Mode Controls */
.view-mode-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.4rem 1rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: #ffffff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.view-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

/* Cesium InfoBox Styling */
.cesium-infoBox {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.cesium-infoBox-title {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border-radius: 8px 8px 0 0 !important;
}

.cesium-infoBox-close {
    background: transparent !important;
}

/* Cesium Selection Indicator */
.cesium-selection-wrapper {
    pointer-events: none;
}

/* Loading indicator */
.cesium-viewer .cesium-widget-credits {
    display: none !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .cesium-container {
        height: 300px;
    }

    .map-controls {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }

    .view-mode-controls {
        width: 100%;
        justify-content: center;
    }

    .view-btn {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .cesium-container {
        height: 250px;
        border-radius: 0 0 8px 8px;
    }

    .map-controls {
        border-radius: 8px 8px 0 0;
    }
}
