.leaflet-popup-content img {
    max-width: 100%;
    height: auto;
}

.leaflet-draw-toolbar {
    margin: 5px 25px !important;
    transform: translateY(250px) !important;
    /* adjust to keep proper centering */
}

.leaflet-draw-actions {
    top: 0 !important;
    margin: 5px 30px !important;
    transform: translateY(250px) !important;
}

.leaflet-control-zoom {
    margin: 0 25px !important;
    transform: translateY(-100px) !important;
    /* adjust to keep proper centering */
}

.leaflet-marker-icon {
    z-index: 1000 !important;
}

.leaflet-marker-pane .leaflet-marker-icon {
    z-index: 1000 !important;
}

.leaflet-marker-cluster {
    z-index: 1100 !important; /* cluster icons */
}

#properties-map-hint {
    transition: opacity 0.5s ease;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 14px;
    padding: 8px 14px;
    border-radius: 6px;
    max-width: 90%;
    text-align: center;
    z-index: 10000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    animation: fadeIn 0.3s ease-in-out;
}

#showAllResultsBtn {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
}

#showAllResultsBtn {
    display: none;
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
}

/* Optional fade-in animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

#properties-map-hint.fade-out {
    opacity: 0;
}

#propertiesArchive {
    /* display: none; */
}

#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 9999;
    flex-direction: column;
    gap: 10px;
}

#properties-map {
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
}

#properties-map-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 30px;
    border-radius: 8px;
    font-weight: bold;
    color: #333;
    z-index: 1000;
    text-align: center;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

#properties-map-loader-spinner {
    border: 6px solid #f3f3f3;
    /* Light gray */
    border-top: 6px solid #3498db;
    /* Blue */
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}