/* ===================== Real Estate Explorer ===================== */

.re_explorer {
    padding: 50px 0 30px;
    background: linear-gradient(180deg, #fffdf9 0%, var(--light-yellow) 100%);
}

.re_explorer .section_title h2 {
    margin-bottom: 6px;
}


/* ============================================================
   Buy / Sale Toggle Cards
   ============================================================ */

.re_type_cards {
    display: flex;
    gap: 24px;
    max-width: 680px;
    margin: 34px auto 46px;
    flex-wrap: wrap;
}

.re_type_card {
    flex: 1 1 280px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 24px 22px;
    text-align: left;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 4px 14px rgba(24,26,34,0.05);
}

.re_type_card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(24,26,34,0.09);
}

.re_type_card .re_type_icon {
    flex: none;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--light-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.re_type_card i {
    font-size: 24px;
    color: var(--red);
}

.re_type_card h6 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark-black);
}

.re_type_card p {
    font-size: 13px;
    color: var(--greay);
    margin: 0;
}

.re_type_card.active {
    border-color: var(--red);
    background: linear-gradient(135deg, #fff 0%, #fff5f5 100%);
    box-shadow: 0 10px 26px rgba(182,0,0,0.16);
}

.re_type_card.active .re_type_icon {
    background: var(--red);
}

.re_type_card.active i {
    color: var(--white);
}

.re_type_card.active h6 {
    color: var(--red);
}


/* ============================================================
   Category Cards - Vertical Sidebar
   ============================================================ */

.re_layout {
    display: flex;
    align-items: flex-start;
    gap: 26px;
    position: relative;
}

.re_cat_sidebar {
    flex: 0 0 190px;
    position: sticky;
    top: 110px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    padding-right: 4px;
    padding-top: 2px;
    z-index: 20;
}

.re_content {
    flex: 1 1 0%;
    min-width: 0;
}

.re_cat_heading {
    text-align: left;
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--dark-black);
    position: relative;
}

.re_cat_grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 0;
}

.re_cat_card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    text-align: left;
    cursor: pointer;
    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(24,26,34,0.04);
}

.re_cat_card:hover {
    transform: translateX(2px);
    border-color: var(--red);
    box-shadow: 0 6px 16px rgba(182,0,0,0.1);
}

.re_cat_card .re_cat_icon {
    flex: none;
    width: 34px;
    height: 34px;
    margin: 0;
    border-radius: 50%;
    background: var(--light-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
}

.re_cat_card i {
    font-size: 15px;
    color: var(--red);
}

.re_cat_card span {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--dark-black);
    line-height: 1.25;
}

.re_cat_card.active {
    border-color: var(--red);
    background: #fff5f5;
    box-shadow: 0 6px 16px rgba(182,0,0,0.14);
}

.re_cat_card.active .re_cat_icon {
    background: var(--red);
}

.re_cat_card.active i {
    color: var(--white);
}

.re_cat_card.active span {
    color: var(--red);
}


/* ============================================================
   Category Responsive
   ============================================================ */

@media (max-width: 900px) {

    .re_layout {
        flex-direction: column;
    }

    .re_cat_sidebar {
        flex: none;
        position: static;
        max-height: none;
        width: 100%;
        overflow: visible;
    }

    .re_cat_grid {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .re_cat_card {
        flex: 1 1 140px;
    }
}


/* ============================================================
   Search + Filters Bar
   Search is NOT sticky
   ============================================================ */

.re_search_bar {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    flex-wrap: wrap;

    /* Search scrolls normally with page */
    position: static !important;
    top: auto !important;
    z-index: auto !important;
}

.re_search_bar .re_search_wrap {
    flex: 1 1 260px;
    position: relative;
}

.re_search_bar .re_search_wrap i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--greay);
    font-size: 15px;
}

.re_search_bar input[type="text"] {
    width: 100%;
    padding: 15px 18px 15px 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: var(--white);
    box-shadow: 0 3px 10px rgba(24,26,34,0.04);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.re_search_bar input[type="text"]:focus {
    border-color: var(--red);
    box-shadow: 0 4px 14px rgba(182,0,0,0.12);
}

.re_filter_btn {
    background: var(--red);
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 15px 26px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(182,0,0,0.22);
    transition: background .2s ease, transform .2s ease;
}

.re_filter_btn:hover {
    background: var(--dark-red);
    transform: translateY(-2px);
}

.re_results_bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--greay);
}

.re_results_bar strong {
    color: var(--dark-black);
}


/* ============================================================
   Listing Area
   Normal Page Scroll
   2 Cards Per Row
   ============================================================ */

.re_listing_scroll {
    max-height: none !important;
    overflow: visible !important;
    padding-right: 0;
}

.re_listing_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}


/* ============================================================
   Listing Card
   ============================================================ */

.re_listing_card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(24,26,34,0.06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.re_listing_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(24,26,34,0.14);
}


/* ============================================================
   Listing Thumbnail
   ============================================================ */

.re_listing_card .re_thumb {
    position: relative;
    width: 100%;
    height: 193px;
    flex: none;
    overflow: hidden;
    background: var(--light-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.re_listing_card .re_thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.re_listing_card:hover .re_thumb img {
    transform: scale(1.08);
}

.re_listing_card .re_thumb i {
    font-size: 34px;
    color: var(--red);
    opacity: .5;
}


/* ============================================================
   Thumbnail Badge
   ============================================================ */

.re_thumb_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--white);
    color: var(--red);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 11px;
    border-radius: 30px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.12);
    text-transform: capitalize;
}


/* ============================================================
   Thumbnail Price
   ============================================================ */

.re_thumb_price {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(24,26,34,0.78);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 8px;
    backdrop-filter: blur(2px);
}


/* ============================================================
   Listing Information
   ============================================================ */

.re_listing_info {
    flex: 1;
    min-width: 0;
    padding: 12px 14px 2px;
}

.re_listing_info h6 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 6px;
    color: var(--dark-black);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.re_listing_info .re_meta {
    font-size: 12.5px;
    color: var(--greay);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.re_listing_info .re_meta i {
    color: var(--red);
    width: 14px;
    text-align: center;
    flex: none;
}


/* ============================================================
   Listing Tags
   ============================================================ */

.re_listing_tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 2px 14px 12px;
}

.re_listing_tag {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark-black);
    background: var(--light-yellow);
    border-radius: 7px;
    padding: 4px 8px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.re_listing_tag i {
    color: var(--red);
    font-size: 11px;
}


/* ============================================================
   Listing Footer
   Amount = LEFT
   View Details = RIGHT
   ============================================================ */

.re_listing_footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.re_listing_price {
    font-weight: 700;
    color: var(--red);
    font-size: 16px;
    margin: 0;
    text-align: left;
}

.re_listing_price small {
    display: block;
    font-weight: 500;
    color: var(--greay);
    font-size: 11px;
}

.re_listing_cta {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--red);
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    white-space: nowrap;
    margin-left: auto;
}

.re_listing_card:hover .re_listing_cta {
    text-decoration: underline;
}


/* ============================================================
   Empty / Loading State
   ============================================================ */

.re_empty_state,
.re_loading_state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 10px;
    color: var(--greay);
    background: var(--white);
    border-radius: 16px;
    border: 1px dashed var(--border);
}

.re_empty_state i,
.re_loading_state i {
    color: var(--red);
    opacity: .55;
}


/* ============================================================
   Load More
   ============================================================ */

.re_load_more {
    display: block;
    margin: 14px auto 0;
    background: var(--white);
    border: 2px solid var(--red);
    color: var(--red);
    padding: 12px 32px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all .2s ease;
}

.re_load_more:hover {
    background: var(--red);
    color: var(--white);
    box-shadow: 0 8px 18px rgba(182,0,0,0.2);
}

.re_load_more[hidden] {
    display: none;
}


/* ============================================================
   Filters Modal
   ============================================================ */

.re_modal_overlay {
    position: fixed;
    inset: 0;
    background: rgba(24,26,34,0.55);
    display: none;
    align-items: flex-end;
    justify-content: center;
    z-index: 9999;
    backdrop-filter: blur(2px);
}

.re_modal_overlay.open {
    display: flex;
}

.re_modal {
    background: var(--white);
    width: 100%;
    max-width: 500px;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 22px 22px 0 0;
    padding: 26px 24px 30px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}

@media(min-width: 768px) {

    .re_modal_overlay {
        align-items: center;
    }

    .re_modal {
        border-radius: 18px;
    }
}


/* ============================================================
   Filter Modal Header
   ============================================================ */

.re_modal_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.re_modal_head h5 {
    font-size: 19px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--dark-black);
}

.re_modal_head h5 i {
    color: var(--red);
}

.re_modal_close {
    background: var(--light-yellow);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    color: var(--dark-black);
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease;
}

.re_modal_close:hover {
    background: var(--red);
    color: var(--white);
}


/* ============================================================
   Filter Fields
   ============================================================ */

.re_field_label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-black);
    margin: 18px 0 8px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.re_field_label:first-of-type {
    margin-top: 0;
}

.re_modal select,
.re_modal input[type="number"] {
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    background: var(--white);
    transition: border-color .2s ease;
}

.re_modal select:focus,
.re_modal input[type="number"]:focus {
    border-color: var(--red);
}


/* ============================================================
   Range Fields
   ============================================================ */

.re_range_row {
    display: flex;
    gap: 14px;
}

.re_range_row > div {
    flex: 1;
}


/* ============================================================
   Offer Fields
   ============================================================ */

.re_offer_row {
    display: flex;
    gap: 14px;
    align-items: center;
}

.re_offer_row label {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all .2s ease;
}

.re_offer_row label:has(input:checked) {
    border-color: var(--red);
    background: #fff5f5;
    color: var(--red);
}


/* ============================================================
   Modal Actions
   ============================================================ */

.re_modal_actions {
    display: flex;
    gap: 12px;
    margin-top: 26px;
}

.re_reset_btn {
    flex: 1;
    background: var(--white);
    border: 2px solid var(--border);
    color: var(--dark-black);
    padding: 13px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .2s ease;
}

.re_reset_btn:hover {
    border-color: var(--dark-black);
}

.re_apply_btn {
    flex: 2;
    background: var(--red);
    border: none;
    color: var(--white);
    padding: 13px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(182,0,0,0.22);
    transition: background .2s ease;
}

.re_apply_btn:hover {
    background: var(--dark-red);
}


/* ============================================================
   Responsive - Tablet
   ============================================================ */

@media (max-width: 900px) {

    .re_listing_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .re_type_cards {
        max-width: 100%;
    }
}


/* ============================================================
   Responsive - Mobile
   ============================================================ */

@media (max-width: 600px) {

    .re_listing_grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .re_type_cards {
        gap: 14px;
        margin: 28px auto 36px;
    }

    .re_type_card {
        flex: 1 1 100%;
        padding: 20px 18px;
    }

    .re_search_bar {
        gap: 10px;
    }

    .re_search_bar .re_search_wrap {
        flex: 1 1 100%;
    }

    .re_filter_btn {
        width: 100%;
        justify-content: center;
    }

    .re_listing_card .re_thumb {
        height: 180px;
    }

    .re_listing_footer {
        padding: 10px 12px;
    }

    .re_listing_price {
        font-size: 15px;
    }

    .re_listing_cta {
        font-size: 12px;
    }
}


/* ============================================================
   Compact Real Estate Breadcrumb
   ============================================================ */

/*
   Only .bred_crumb_sm is affected.
   Other pages using the normal .bred_crumb are untouched.
*/

.bred_crumb.bred_crumb_sm {
    min-height: 230px;
    height: 150px;
    overflow: hidden;
    align-items: center;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.bred_crumb.bred_crumb_sm .bred_text {
    padding: 50px 0 8px;
}

.bred_crumb.bred_crumb_sm .bred_text h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 5px;
}

.bred_crumb.bred_crumb_sm .bred_text ul {
    margin: 0;
}

.bred_crumb.bred_crumb_sm .bred_text ul li a,
.bred_crumb.bred_crumb_sm .bred_text ul li span {
    font-size: 12px;
}


/* ============================================================
   Decorative House / Apartment Images
   ============================================================ */

.bred_crumb.bred_crumb_sm .inner_banner_object img {
    max-height: 150px;
    width: auto;
}


/* ============================================================
   Breadcrumb Responsive
   ============================================================ */

@media (max-width: 900px) {

    .bred_crumb.bred_crumb_sm {
        min-height: 190px;
        height: 190px;
    }

    .bred_crumb.bred_crumb_sm .inner_banner_object img {
        max-height: 130px;
    }
}

@media (max-width: 600px) {

    .bred_crumb.bred_crumb_sm {
        min-height: 170px;
        height: 170px;
        padding-bottom: 0 !important;
    }

    .bred_crumb.bred_crumb_sm .bred_text {
        padding: 6px 0;
    }

    .bred_crumb.bred_crumb_sm .bred_text h1 {
        font-size: 24px;
    }

    .bred_crumb.bred_crumb_sm .bred_text ul li a,
    .bred_crumb.bred_crumb_sm .bred_text ul li span {
        font-size: 11px;
    }

    .bred_crumb.bred_crumb_sm .inner_banner_object img {
        max-height: 100px;
    }
}


/* ============================================================
   FINAL REAL ESTATE CLEANUP
   ============================================================ */

/*
   Keep the original breadcrumb curve.
   No extra background.
   No extra straight line.
*/

.bred_crumb.bred_crumb_sm {
    margin-bottom: 0 !important;
}

.re_explorer {
    margin-top: 0 !important;
    border-top: none !important;
}



/* ============================================================
   REAL ESTATE - CENTER TITLE & BREADCRUMB
   ============================================================ */

.bred_crumb.bred_crumb_sm .bred_text {
    transform: none !important;
    position: relative;
    z-index: 5;
    text-align: center;
    width: 100%;
}

.bred_crumb.bred_crumb_sm .bred_text h1 {
    margin-bottom: 5px;
    text-align: center;
}

.bred_crumb.bred_crumb_sm .bred_text ul {
    margin: 0;
    justify-content: center;
    text-align: center;
}
/* ============================================================
   Responsive
   ============================================================ */
