#houzez-properties-map {
    width: 100%;
    height: 600px;
    min-height: 520px;
    margin: 0;
    position: relative;
}

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

#custom-map-loader,
#custom-list-loader {
    display: flex;
    justify-content: center;
    align-items: center;
}

#custom-map-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.72);
    z-index: 9999;
    pointer-events: all;
}

/* Keep the current cards visible while the replacement page is loading. */
#custom-list-loader {
    position: absolute;
    inset: 0;
    min-height: 180px;
    background: rgba(255, 255, 255, 0.68);
    z-index: 30;
    pointer-events: all;
}

.bpl-spinner-map,
.bpl-spinner-list {
    border-style: solid;
    border-color: #ccc;
    border-top-color: #333;
    border-radius: 50%;
    animation: bpl-spin 1s linear infinite;
}

.bpl-spinner-map {
    width: 50px;
    height: 50px;
    border-width: 5px;
}

.bpl-spinner-list {
    width: 30px;
    height: 30px;
    border-width: 4px;
}

#ui-disable-overlay {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 10000;
    pointer-events: all;
    cursor: not-allowed;
}

div#houzez_ajax_container {
    padding-bottom: 150px;
}

.bpl-popup-loading-text {
    margin-top: 5px;
    opacity: .65;
    font-size: 12px;
}

/* Houzez search-form layout retained from the previous plugin version. */
#desktop-search-form .row.row-cols-2.row-cols-lg-4.g-2 > .col:nth-child(-n+2) {
    flex: 0 0 50% !important;
    max-width: 50% !important;
}

#desktop-search-form .row.row-cols-2.row-cols-lg-4.g-2 > .col:nth-child(-n+2) .form-group {
    width: 100%;
}

#bpl-debug-download {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 2147483647;
    display: none;
    padding: 9px 12px;
    border: 0;
    border-radius: 6px;
    background: #222;
    color: #fff;
    font: 12px/1.2 Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,.25);
}

@media (max-width: 991px) {
    #houzez-properties-map {
        min-height: 420px;
        margin: 0;
    }

    body.hz-lock-scroll,
    html.hz-lock-scroll {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100%;
    }

    div#houzez_ajax_container {
        max-height: 90vh;
        overflow-y: auto !important;
    }
}
