/* Map styling */
.map-container {
    padding: 5px;
    background-color: white;
    border: 3px solid #2AAC32;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    margin-bottom: 10px;
    aspect-ratio: 1/1; /* Keep it square */
    max-width: 300px; /* Limit the width */
    max-height: 300px; /* Limit the height */
    overflow: hidden;
    margin: 0 auto; /* Center the map */
}

#barangay-map {
    height: 100%;
    width: 100%;
    border-radius: 6px;
    overflow: hidden;
}

/* Custom marker styling */
.marker-pin {
    position: relative;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.custom-div-icon {
    background: none;
    border: none;
}

/* Make the Leaflet attribution more readable */
.leaflet-control-attribution {
    background-color: rgba(255,255,255,0.8) !important;
    padding: 3px 5px !important;
    border-radius: 3px !important;
    font-size: 10px !important;
}

/* Style the popup */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.leaflet-popup-content {
    margin: 12px;
    font-family: inherit;
}

/* Mobile responsiveness */
@media (max-width: 767px) {
    .map-container {
        max-width: 200px; /* Smaller size on mobile */
        max-height: 200px;
    }
}