/**
 * Location Map Widget CSS
 * Includes styling for active states
 */

 .location-map-widget-container {
    margin: 20px 0;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.location-map-container {
    width: 100%;
    min-height: 400px;
    z-index: 1;
}

.leaflet-control-attribution {
    display: none;
}

/* Styling for the external location items */
.location-item {
    cursor: pointer;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.location-item:hover {
    background-color: #f5f5f5;
}

/* Active state styling */
.location-item.active {
    background-color: #eef7ff;
    border-left: 3px solid #3388ff;
    font-weight: bold;
}

/* Custom popup styling */
.custom-popup .leaflet-popup-content-wrapper {
    border-radius: 8px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 3px 14px rgba(0, 0, 0, 0.2);
}

.custom-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
}

.custom-popup .location-title {
    background-color: #f8f8f8;
    color: #333;
    font-weight: bold;
    padding: 12px 15px;
    font-size: 16px;
}

/* Make sure popup close button is visible */
.custom-popup .leaflet-popup-close-button {
    padding: 8px;
    font-size: 16px;
    color: #666;
}

#lage .wp-block-columns[id], #home_location {
    cursor: pointer;
}

#lage .wp-block-columns[id]:hover, #home_location:hover {
    color: #FF7423;
}

#lage .wp-block-columns[id].active, #home_location.active {
    color: #FF7423;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .location-map-container {
        min-height: 300px;
    }
}