/* Cameroon 2D Map Styles */

.cameroon-map-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cameroon-map {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: block;
}

.region-path {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.region-path:hover {
    filter: brightness(1.1) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.region-label {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    font-size: 12px;
}

.map-title {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Region Info Cards */
.region-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.region-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.region-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.region-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.region-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2d3436;
    margin: 0;
}

.region-card-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.region-card-description {
    color: #636e72;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.region-card-stats {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dfe6e9;
}

.region-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #636e72;
}

.region-stat-icon {
    width: 20px;
    height: 20px;
    color: #0984e3;
}

/* Map Legend */
.map-legend {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.map-legend-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 1rem;
}

.legend-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 2px solid #2d3436;
}

.legend-label {
    font-size: 0.875rem;
    color: #2d3436;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .cameroon-map-container {
        padding: 1.5rem;
    }
    
    .cameroon-map {
        max-width: 700px;
    }
    
    .region-label {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .cameroon-map-container {
        padding: 1rem;
        border-radius: 12px;
    }
    
    .cameroon-map {
        max-width: 100%;
    }

    .region-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .region-label {
        font-size: 10px;
    }

    .map-title {
        font-size: 20px;
    }
    
    .legend-items {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cameroon-map-container {
        padding: 0.75rem;
        border-radius: 8px;
    }
    
    .region-label {
        font-size: 8px;
    }
    
    .map-title {
        font-size: 18px;
    }
    
    .legend-items {
        grid-template-columns: 1fr;
    }
    
    .region-card {
        padding: 1rem;
    }
    
    .region-card-title {
        font-size: 1.1rem;
    }
}

/* Loading Animation */
.map-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
}

.map-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Tooltip */
.region-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    pointer-events: none;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.region-tooltip.show {
    opacity: 1;
}
