@import url('https://unpkg.com/leaflet@1.9.4/dist/leaflet.css');

.geoleg-map-section {
    margin-bottom: 40px;
}

.geoleg-container {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.geoleg-map-wrapper {
    flex: 2;
}

.geoleg-info-wrapper {
    flex: 1;
    min-width: 300px;
}

.geoleg-map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.geoleg-custom-tooltip {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 3px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.4);
    padding: 6px 8px;
    pointer-events: none;
}

.geoleg-year-info {
    font-size: 10px;
    color: #666;
    margin-top: 4px;
}

.geoleg-legislator-card {
    display: block;
    padding: 12px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.geoleg-legislator-card:hover {
    background-color: #f8f9fa;
    border-color: #0066cc;
    text-decoration: none;
    color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .geoleg-container {
        flex-direction: column;
        gap: 20px;
    }
    
    .geoleg-info-wrapper {
        min-width: auto;
    }
    
    #geoleg-map {
        height: 400px !important;
    }
}

@media (max-width: 576px) {
    .geoleg-container .card-header .row {
        flex-direction: column;
        gap: 10px;
    }
    
    .geoleg-container .card-header .col-6 {
        width: 100%;
        max-width: 100%;
    }
}

[data-bs-theme="dark"] .geoleg-custom-tooltip {
    background: rgba(33, 37, 41, 0.9);
    color: #fff;
}

[data-bs-theme="dark"] .geoleg-legislator-card:hover {
    background-color: #343a40;
}