/* Commune specific styles matching regions */
.commune-header {
    padding: 140px 0 80px;
    background: var(--gradient-light);
    position: relative;
    text-align: center;
}

.commune-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.commune-header-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.commune-title-section {
    text-align: left;
}

.commune-emblem {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100px;
    height: 100px;
    background: var(--gradient-primary);
    color: var(--white);
    font-size: 3rem;
    border-radius: 24px;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.commune-title {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1rem;
    letter-spacing: -2px;
    color: var(--gray-900);
}

.commune-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    font-size: 1.2rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
    justify-content: flex-start;
}

.commune-metadata {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 1rem;
    text-align: center;
    opacity: 0.8;
}

.location-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.location-link:hover {
    color: var(--primary-dark);
}

.commune-location-separator {
    color: var(--gray-400);
    margin: 0 0.5rem;
}

/* Database Info Component */
.database-info {
    background: var(--gradient-light);
    border: 2px solid var(--primary-light);
    border-radius: 20px;
    padding: 2rem;
    margin: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-width: 280px;
}

.database-info::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(93, 63, 211, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.database-info-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.database-number {
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    animation: number-pulse 2s ease-in-out infinite;
}

@keyframes number-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.database-text {
    text-align: center;
}

.database-label {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 0.5rem;
}

.database-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    position: relative;
    z-index: 1;
}

.database-cta a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.database-cta a:hover {
    text-decoration: underline;
    color: var(--primary-dark);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.25rem 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    z-index: 998;
    max-width: 280px;
}

/* Override Leaflet interactive cursor */
.leaflet-interactive {
    cursor: default !important;
}

/* Override Leaflet marker cursor and accessibility */
.leaflet-marker-icon {
    cursor: default !important;
    pointer-events: none !important;
}

.leaflet-marker-icon.leaflet-interactive {
    pointer-events: none !important;
    cursor: default !important;
}

/* Custom marker icon without accessibility issues */
.commune-marker-icon {
    position: absolute;
    cursor: default !important;
    pointer-events: none !important;
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Ensure custom markers are not interactive */
.commune-marker-icon[tabindex],
.commune-marker-icon[role] {
    pointer-events: none !important;
    cursor: default !important;
}

/* Additional commune styles */
.commune-visualization-title {
    text-align: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--gray-900);
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.consent-checkbox-container {
    width: 100%;
    margin-top: 1rem;
}

.alternative-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.alternative-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .commune-header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .commune-title-section {
        text-align: center;
    }
    
    .commune-title {
        font-size: 2rem;
    }
    
    .commune-location {
        font-size: 1rem;
        justify-content: center;
    }
    
    .database-info {
        min-width: auto;
    }
    
    .database-number {
        font-size: 2.5rem;
    }
    
    .database-info-content {
        flex-direction: column;
        gap: 1rem;
    }

    .map-overlay {
        position: static;
        max-width: 100%;
    }
}