/******************************************************************************************************/
/******************************************************************************************************/
/******************************************************************************************************/
/******************************************************************************************************/
/* bhi_property_search css starts here */
.bhi-bar {
    background: #fff;
    padding: 8px 12px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    max-width: fit-content;
    margin: 0 auto 50px;
    border: 1px solid #dbdbdb;
}

/* FLEX */
#bhi-search-bar-form {
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

/* SEGMENTS */
.bhi-item {
    display: flex;
    flex-direction: column;
    padding: 6px 10px;
    border-right: 1px solid #dbdbdb;
}

.bhi-item:last-child {
    border-right: none;
}

.bhi-item label {
    font-size: 11px;
    color: #777;
}

.bhi-item input,
.bhi-item select {
    border: none;
    outline: none;
    font-size: 14px;
}


/* BUTTON */
#bhi-search-btn {
    background: #0073e6;
    color: #fff;
    border-radius: 999px;
    padding: 10px 20px;
    border: none;
    cursor: pointer;
}

/* CLEAR */
.bhi-clear {
    font-size: 12px;
    color: #777;
}

/* Button */
.bhi-amenities-btn {
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 6px 14px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* PANEL */
.bhi-amenities {
    position: absolute;
    top: 75px;
    left: 50%;
    width: 100%;
    /* max-width: fit-content; */
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    padding: 14px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateX(-50%);
    transition: all 0.3s ease;
    z-index: 101;
}

.bhi-amenities.show {
    max-height: 250px;
    opacity: 1;
}

/* HEADER */
.bhi-amenities-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
}

#closeAmenities,
#closeBedrooms {
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
}

/* ROW */
.bhi-amenities-row {
    display: flex;
    align-items: center;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 4px;
}

/* ITEM */
.bhi-amenity-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    cursor: pointer;
}

/* MINI SWITCH */
.bhi-switch-mini {
    position: relative;
    width: 30px;
    height: 16px;
    display: inline-block;
}

.bhi-switch-mini input {
    display: none;
}

/* Track */
.bhi-switch-mini .track {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 20px;
    transition: 0.25s;
}

/* Thumb */
.bhi-switch-mini .track::after {
    content: "";
    position: absolute;
    width: 12px;
    height: 12px;
    background: #fff;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    transition: 0.25s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* ACTIVE */
.bhi-switch-mini input:checked+.track {
    background: #0073e6;
}

.bhi-switch-mini input:checked+.track::after {
    transform: translateX(14px);
}














/* CONTROLS GRID */
.bhi-amenities-controls {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 10px;
}

/* CONTROL BLOCK */
.bhi-control {
    display: flex;
    flex-direction: column;
}

.bhi-control label {
    font-size: 11px;
    color: #777;
    margin-bottom: 2px;
}

.bhi-control select {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 6px;
    font-size: 13px;
}

/* DIVIDER */
.bhi-divider {
    height: 1px;
    background: #eee;
    margin: 10px 0;
}

/* IMPROVE MODAL */
.bhi-amenities {
    width: clamp(400px, 80vw, 750px);
    padding: 16px;
}

/* BETTER SCROLL */
.bhi-amenities-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}


.bhi-modal {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    padding: 16px;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: 0.3s;
    z-index: 100;
}

.bhi-modal.show {
    opacity: 1;
    max-height: 400px;
}

.bhi-bedrooms-modal {
    width: clamp(350px, 60vw, 500px);
}

.bhi-amenities {
    width: 420px;
}

/* bhi_property_search css end here */
/******************************************************************************************************/
/******************************************************************************************************/
/******************************************************************************************************/
/******************************************************************************************************/




















/******************************************************************************************************/
/******************************************************************************************************/
/******************************************************************************************************/
/******************************************************************************************************/
/* bhi_property_listing css start here */

.wowlex-container {
    position: relative;
}

.wowlex-grid {
    display: flex;
    gap: 20px;
}


#wowlex-map {
    border-radius: 12px;
}




#wowlex-map,
.wowlex-list {
    width: 50%;
    height: 563px;
}

.wowlex-list {
    overflow-y: auto;
}

/* Cards */
.wowlex-card {
    display: flex;
    gap: 15px;
    padding: 15px;
    border-radius: 12px;
    background: #fff;
    margin-bottom: 15px;
    text-decoration: none;
    color: #000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: 0.3s;
    border: 1px solid #dbdbdb;
}

.wowlex-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.wowlex-img {
    width: 250px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
}

/* Pagination */
.wowlex-pagination-wrapper {
    text-align: center;
    margin-top: 30px;
}

.wowlex-pagination button {
    margin: 5px;
    padding: 8px 14px;
    border: none;
    background: #eee;
    border-radius: 6px;
    cursor: pointer;
}

.wowlex-pagination button.active {
    background: #000;
    color: #fff;
}

/*  LOADER */
.wowlex-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.wowlex-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top-color: #4285F4;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.wowlex-content {
    flex: 1;
}

/* Title */
.wowlex-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

/* Numeric meta */
.wowlex-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

/* Badges */
.wowlex-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.wowlex-badges .badge {
    background: #f1f3f4;
    padding: 4px 8px;
    font-size: 12px;
    border-radius: 6px;
    color: #333;
}

/* Location */
.wowlex-location {
    font-size: 13px;
    color: #777;
}

/* =========================
   FILTER BAR RESPONSIVE
========================= */
.bhi-bar form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-end;
}

.bhi-item {
    display: flex;
    flex-direction: column;
}

/* Tablet */
@media (max-width: 1024px) {
    .bhi-item {
        width: 48%;
    }
}


/* =========================
   TABLET (≤ 1024px)
========================= */
@media (max-width: 1024px) {
    .wowlex-list {
        height: auto;
    }

    .bhi-bar {
        border-radius: 12px;
    }

    .bhi-item:nth-child(even) {
        border-right: 0;
    }

    .bhi-amenities {
        top: 187px;
    }

    .wowlex-grid {
        flex-direction: column;
    }

    .wowlex-list {
        width: 100%;
    }

    #wowlex-map {
        width: 100%;
        height: 400px;
        margin-top: 20px;
    }
}


/* =========================
   MOBILE (≤ 768px)
========================= */
@media (max-width: 768px) {
    .bhi-item {
        width: 100%;
    }

    .bhi-bar form {
        flex-direction: column;
    }

    .bhi-amenities,
    .bhi-bedrooms-modal {
        z-index: -1;
    }

    .bhi-amenities.show,
    .bhi-bedrooms-modal.show {
        z-index: 9999;
    }

    /* Cards stack better */
    .wowlex-card {
        flex-direction: column;
        gap: 10px;
    }

    .wowlex-img {
        width: 100%;
        height: 180px;
    }

    /* Meta spacing */
    .wowlex-meta {
        gap: 8px;
        font-size: 12px;
    }

    .wowlex-badges {
        gap: 5px;
    }

    .wowlex-badges .badge {
        font-size: 11px;
        padding: 3px 6px;
    }

    .wowlex-title {
        font-size: 15px;
    }

    /* Map smaller */
    #wowlex-map {
        height: 300px;
    }

    /* Pagination buttons */
    .wowlex-pagination button {
        padding: 6px 10px;
        font-size: 13px;
    }

    .bhi-bar {
        max-width: 100%;
    }

    .bhi-item {
        border-right: 0;
    }
}


/* =========================
   SMALL MOBILE (≤ 480px)
========================= */
@media (max-width: 480px) {

    .wowlex-container {
        padding: 0 10px;
    }

    .wowlex-card {
        padding: 10px;
    }

    .wowlex-title {
        font-size: 14px;
    }

    .wowlex-meta span {
        font-size: 11px;
    }

    .wowlex-location {
        font-size: 12px;
    }

    #wowlex-map {
        height: 250px;
    }
}

/* bhi_property_listing end here */
/******************************************************************************************************/
/******************************************************************************************************/
/******************************************************************************************************/
/******************************************************************************************************/