/* 3D Map Styling */
.map-3d-popup {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.4;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

.map-3d-popup strong {
    color: #2c3e50;
}

#uk-map {
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Loading indicator for 3D map */
.map-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 600px;
    background: #f8f9fa;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 18px;
    color: #666;
}

.map-loading::before {
    content: "Loading 3D Map...";
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Enhanced legend styling */
.card-header h5 {
    color: #2c3e50;
    font-weight: 600;
}

.list-group-item {
    border-left: none;
    border-right: none;
    padding: 0.75rem 1rem;
}

.list-group-item:first-child {
    border-top: none;
}

.list-group-item:last-child {
    border-bottom: none;
}

.badge {
    font-size: 1.2em;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #uk-map {
        height: 400px !important;
    }
    
    .map-3d-popup {
        max-width: 250px !important;
        font-size: 12px !important;
    }
}

/* Map section background - restored original */
.uk-map-section {
    background: linear-gradient(135deg, #87CEEB 0%, #4682B4 100%);
    position: relative;
}

