/* website/public/styles/coverage-map.css */
/* AML Coverage Map Styles */

.coverage-hero {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.coverage-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.coverage-hero .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto;
}

.coverage-map-section {
    padding: 60px 0;
    background: #f9fafb;
}

.map-container {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-bottom: 2rem;
}

#coverage-map {
    width: 100%;
    height: 600px;
    min-height: 400px;
}

.map-legend {
    position: absolute;
    top: 20px;
    right: 20px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    min-width: 180px;
}

.map-legend h3 {
    font-size: 0.9rem;
    margin: 0 0 0.75rem 0;
    font-weight: 600;
    color: #1f2937;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-dot {
    display: inline-block;
    border-radius: 50%;
    background-color: rgba(34, 197, 94, 0.7);
    border: 2px solid #22c55e;
    margin-right: 0.5rem;
}

.legend-dot.large {
    width: 24px;
    height: 24px;
}

.legend-dot.medium {
    width: 16px;
    height: 16px;
}

.legend-dot.small {
    width: 10px;
    height: 10px;
}

/* Map Markers */
.coverage-marker {
    background: transparent !important;
    border: none !important;
}

.marker-dot {
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.marker-dot:hover {
    transform: scale(1.2);
}

.marker-large {
    width: 24px;
    height: 24px;
}

.marker-medium {
    width: 16px;
    height: 16px;
}

.marker-small {
    width: 10px;
    height: 10px;
}

/* Map Popup */
.map-popup {
    min-width: 200px;
}

.map-popup h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.1rem;
    color: #1f2937;
    font-weight: 600;
}

.popup-stats {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #4b5563;
}

.popup-stats .total {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
    font-weight: 600;
    color: #1f2937;
}

.click-hint {
    margin: 0.5rem 0 0 0;
    font-size: 0.8rem;
    color: #6b7280;
    font-style: italic;
}

/* Country Details Panel */
.country-details-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
}

.close-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.close-panel:hover {
    background-color: #f3f4f6;
    color: #1f2937;
}

.country-details-panel h2 {
    margin: 0 0 1.5rem 0;
    font-size: 2rem;
    color: #1f2937;
    font-weight: 700;
}

.coverage-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    transition: all 0.2s ease;
}

.stat-item:hover {
    border-color: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-item.total {
    background: linear-gradient(135deg, #22c55e 0%, #15803d 100%);
    color: white;
    border-color: #15803d;
}

.stat-item.total .stat-label,
.stat-item.total .stat-value {
    color: white;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
}

/* Loading Indicator */
.loading-indicator {
    text-align: center;
    padding: 3rem;
}

.spinner {
    border: 4px solid #f3f4f6;
    border-top: 4px solid #22c55e;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-indicator p {
    color: #6b7280;
    font-size: 1rem;
}

/* Error Message */
.error-message {
    text-align: center;
    padding: 2rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    color: #991b1b;
}

/* Info Section */
.coverage-info {
    padding: 60px 0;
    background: white;
}

.coverage-info h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #1f2937;
    font-weight: 700;
}

.coverage-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #4b5563;
    margin-bottom: 1.5rem;
}

.coverage-info ul {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.coverage-info li {
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: #f9fafb;
    border-left: 4px solid #22c55e;
    border-radius: 4px;
    font-size: 1rem;
    line-height: 1.6;
    color: #4b5563;
}

.coverage-info li strong {
    color: #1f2937;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .coverage-hero h1 {
        font-size: 2rem;
    }

    .coverage-hero .hero-subtitle {
        font-size: 1rem;
    }

    #coverage-map {
        height: 400px;
    }

    .map-legend {
        position: relative;
        top: auto;
        right: auto;
        margin: 1rem;
    }

    .coverage-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .country-details-panel {
        padding: 1.5rem;
    }

    .country-details-panel h2 {
        font-size: 1.5rem;
        padding-right: 2rem;
    }
}

@media (max-width: 480px) {
    .coverage-stats {
        grid-template-columns: 1fr;
    }
}

