.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* FILTER SECTION - START */
.filter-panel {
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    display: flex;
    gap: 25px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-panel h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
}

.filter-options {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.filter-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.hidden {
    background-color: #10b981;
}

.status-dot.kept {
    background-color: #3b82f6;

}

/* FILTER SECTION - END */

/* MAP SECTION - START */
#map {
    width: 100%;
    height: 500px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Custom cluster styling */
.marker-cluster-small {
    background-color: rgba(181, 226, 140, 0.6);
}
.marker-cluster-small div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-medium {
    background-color: rgba(110, 204, 57, 0.6);
}
.marker-cluster-medium div {
    background-color: rgba(110, 204, 57, 0.6);
}

.marker-cluster-large {
    background-color: rgba(110, 204, 57, 0.6);
}
.marker-cluster-large div {
    background-color: rgba(110, 204, 57, 0.6);
}

/* This is the main cluster icon container */
.marker-cluster {
    border: 3px solid rgba(255, 255, 255, 0.8);
    /* Use flexbox to center the child div */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* This is the inner circle that contains the number */
.marker-cluster div {
    width: 30px;
    height: 30px;
    
    /* Remove the default margins that cause the offset */
    margin-left: 0;
    margin-top: 0;
    
    color: white;
    font-weight: bold;
    font-size: 14px;
    border-radius: 50%;

    /* Use flexbox to center the number (span) inside this circle */
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Override the default line-height on the number span */
.marker-cluster span {
    line-height: normal;
}

/* Custom marker icons */
.custom-marker {
    background-size: cover;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.marker-hidden {
    background-color: #10b981;
}

.marker-kept {
    background-color: #3b82f6;
}

/* MAP SECTION - END */

.info {
    margin-top: 20px;
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.info h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 18px;
}

.info p {
    color: #666;
    line-height: 1.6;
}

.status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 5px;
}

.status-badge.hidden {
    background-color: #10b981;
    color: white;
}

.status-badge.kept {
    background-color: #3b82f6;
    color: white;
}

.popup-spinner {
    border: 3px solid #f3f3f3; /* Light grey */
    border-top: 3px solid #3b82f6; /* Blue */
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    position: absolute; /* Center it in the container */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Ensure the image is hidden initially until loaded */
.popup-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none; /* Hidden by default, shown via JS */
}

/* Ensure container positions the spinner correctly */
.popup-image-container {
    position: relative; 
    /* Your existing styles... */
    width: 220px;       
    height: 150px;      
    background-color: #f3f4f6;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- IMAGE MODAL / LIGHTBOX --- */
.image-modal-overlay {
    display: none; /* Hidden by default */
    position: fixed; 
    z-index: 99999; /* Sit on top of everything, including Leaflet */
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0,0,0,0.85); /* Dark background */
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.image-modal-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}