/**
 * Custom Styles for SCF Leaflet Map
 */

/* 1. Responsive Map Container */
.et-map-container {
    width: 100%;
    height: 500px; /* Default height */
    background-color: #f4f4f4; /* Placeholder color while tiles load */
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Prevent Leaflet from overlapping sticky site headers or dropdowns */
    z-index: 1; 
    position: relative;
}

/* Adjust map height for smaller screens */
@media screen and (max-width: 768px) {
    .et-map-container {
        height: 350px;
    }
}

/* 2. Modernize the Leaflet Popups */
.leaflet-popup-content-wrapper {
    border-radius: 4px;
    box-shadow: 0 3px 14px rgba(0,0,0,0.15);
}

.leaflet-popup-content {
    margin: 16px;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
    font-family: inherit; /* Inherits your theme's typography */
}

/* 3. Map Section Spacing (Used in single-event.php) */
.event-map-section {
    margin-top: 3rem;
    margin-bottom: 3rem;
}

.event-map-section h2 {
    margin-bottom: 1.5rem;
}