.rex-property-wrapper{--rex-primary:#111827;--rex-accent:#b37a4c;--rex-card-bg:#fff;--rex-card-radius:18px;--rex-image-height:245px;--rex-card-title-size:20px;--rex-card-title-font:inherit;--rex-card-title-weight:700;--rex-single-title-size:42px;--rex-single-title-font:inherit;--rex-single-title-weight:800;--rex-single-heading-font:inherit;--rex-single-heading-size:24px;--rex-single-heading-weight:700;--rex-single-heading-line-height:1.25;--rex-single-heading-colour:#111827;width:100%}
.rex-filter-modern{display:flex;align-items:center;gap:14px;margin:0 0 28px;padding:12px;border:1px solid rgba(17,24,39,.08);border-radius:999px;background:linear-gradient(180deg,#fff,#fafafa);box-shadow:0 12px 35px rgba(0,0,0,.06);overflow-x:auto;white-space:nowrap}.rex-filter-heading{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;padding:8px 12px;border-radius:999px;background:#f9fafb;color:var(--rex-primary)}.rex-filter-icon{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:var(--rex-primary);color:#fff;font-size:14px}.rex-filter-title{font-weight:800;color:var(--rex-primary);font-size:14px}.rex-filter-pills{display:flex;align-items:center;gap:8px;flex:1 1 auto}.rex-filter-pill,.rex-reset-filter{display:inline-flex;align-items:center;justify-content:center;min-height:40px;border:1px solid #e5e7eb;border-radius:999px;padding:9px 16px;background:#fff;color:#374151!important;text-decoration:none;font-size:14px;font-weight:700;transition:.22s ease;box-shadow:0 4px 12px rgba(0,0,0,.03)}.rex-filter-pill:hover,.rex-reset-filter:hover{transform:translateY(-1px);border-color:var(--rex-accent);color:var(--rex-primary)!important}.rex-filter-pill.is-active{background:var(--rex-primary);border-color:var(--rex-primary);color:#fff!important;box-shadow:0 8px 22px rgba(17,24,39,.18)}.rex-open-pill.is-active{background:var(--rex-accent);border-color:var(--rex-accent)}.rex-reset-filter{background:#f3f4f6;color:#4b5563!important}
.rex-pill,.rex-status-badge,.rex-single-status{background:var(--rex-accent);color:#fff;border-radius:999px;padding:6px 12px;font-size:12px;text-transform:uppercase;letter-spacing:.04em}.rex-property-grid{display:grid;gap:28px}.rex-columns-1{grid-template-columns:1fr}.rex-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}.rex-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}.rex-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}.rex-property-card{background:var(--rex-card-bg);border:1px solid #eee;border-radius:var(--rex-card-radius);overflow:hidden;box-shadow:0 12px 40px rgba(0,0,0,.06);transition:.25s ease}.rex-property-card:hover{transform:translateY(-4px);box-shadow:0 18px 55px rgba(0,0,0,.10)}.rex-thumb{display:block;position:relative;height:var(--rex-image-height);background:#f4f4f4;overflow:hidden}.rex-thumb img{width:100%;height:100%;object-fit:cover;display:block;transition:.4s ease}.rex-property-card:hover .rex-thumb img{transform:scale(1.04)}.rex-status-badge{position:absolute;top:14px;left:14px;font-weight:800}.rex-no-image{display:flex;height:100%;align-items:center;justify-content:center;color:#777}.rex-card-body{padding:22px}.rex-type{font-size:12px;text-transform:uppercase;color:var(--rex-accent);font-weight:700;letter-spacing:.08em;margin-bottom:8px}.rex-property-wrapper .rex-property-card .rex-card-body h3.rex-card-title,.rex-property-wrapper .rex-property-card .rex-card-body h3.rex-card-title a{font-size:var(--rex-card-title-size)!important;line-height:1.3!important;font-family:var(--rex-card-title-font)!important;font-weight:var(--rex-card-title-weight)!important}.rex-property-wrapper .rex-property-card .rex-card-body h3.rex-card-title{margin:0 0 10px!important}.rex-property-wrapper .rex-property-card .rex-card-body h3.rex-card-title a{text-decoration:none!important;color:var(--rex-primary)!important}.rex-address{color:#6b7280;margin:0 0 12px}.rex-price{font-size:22px;font-weight:800;color:var(--rex-primary);margin:0 0 14px}.rex-specs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}.rex-specs span{background:#f8f5f2;border-radius:999px;padding:7px 11px;font-size:13px;color:#374151}.rex-view-btn{display:inline-block;background:var(--rex-primary);color:#fff!important;text-decoration:none;border-radius:999px;padding:11px 18px;font-weight:700}.rex-pagination{text-align:center;margin:32px 0}.rex-pagination a,.rex-pagination span{display:inline-block;margin:3px;padding:8px 12px;border:1px solid #e5e7eb;border-radius:8px;text-decoration:none}.rex-pagination .current{background:var(--rex-primary);color:#fff}.rex-empty{grid-column:1/-1;text-align:center;padding:30px;background:#fff;border:1px solid #eee;border-radius:14px}
.rex-single{max-width:1240px;margin:0 auto;padding:30px 20px}.rex-single-header{margin:0 0 22px;padding:0 4px}.rex-single-kicker{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.rex-single-kicker>span:first-child{display:inline-flex;background:rgba(179,122,76,.12);color:var(--rex-accent,#b37a4c);border:1px solid rgba(179,122,76,.25);padding:7px 12px;border-radius:999px;font-size:12px;text-transform:uppercase;font-weight:800;letter-spacing:.05em}.rex-single-status-chip{display:inline-flex;padding:8px 14px;border-radius:999px;background:var(--rex-primary,#111827);color:#fff;font-size:12px;text-transform:uppercase;font-weight:900;letter-spacing:.05em;box-shadow:0 8px 20px rgba(17,24,39,.18)}.rex-status-sold,.rex-status-leased,.rex-status-withdrawn,.rex-status-unavailable{background:#991b1b!important}.rex-status-under_offer{background:#92400e!important}.rex-status-current{background:#166534!important}.rex-single .rex-single-header h1.rex-single-title{font-size:var(--rex-single-title-size)!important;line-height:1.08!important;margin:0 0 10px!important;color:var(--rex-primary,#111827)!important;letter-spacing:-.03em!important;font-family:var(--rex-single-title-font)!important;font-weight:var(--rex-single-title-weight)!important}.rex-single-address{font-size:17px;color:#6b7280;margin:0 0 8px}.rex-single-price{display:block;font-size:30px;color:var(--rex-primary,#111827);margin-top:8px}.rex-single-hero{position:relative;min-height:480px;border-radius:24px;overflow:hidden;background:#111;box-shadow:0 18px 55px rgba(0,0,0,.12)}.rex-single-hero>img{width:100%;height:540px;object-fit:cover;display:block}.rex-single-grid{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:34px;margin-top:34px}.rex-spec-panel{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:28px}.rex-spec-panel span{display:block;background:#fff;border:1px solid #eee;border-radius:16px;padding:18px;text-align:center;font-size:26px;font-weight:800;box-shadow:0 10px 30px rgba(0,0,0,.04)}.rex-spec-panel small{display:block;font-size:12px;text-transform:uppercase;color:#6b7280;margin-top:6px}.rex-single section,.rex-side-card{background:#fff;border:1px solid #eee;border-radius:18px;padding:24px;margin-bottom:24px;box-shadow:0 10px 35px rgba(0,0,0,.04)}.rex-single h2,.rex-side-card h3{margin-top:0!important;color:var(--rex-single-heading-colour,#111827)!important;font-family:var(--rex-single-heading-font)!important;font-size:var(--rex-single-heading-size)!important;font-weight:var(--rex-single-heading-weight)!important;line-height:var(--rex-single-heading-line-height)!important}.rex-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.rex-gallery img{width:100%;height:180px;object-fit:cover;border-radius:12px}.rex-feature-list{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.rex-feature-list li{display:flex;justify-content:space-between;gap:12px;background:#f9fafb;padding:12px 14px;border-radius:10px}.rex-side-card a{color:var(--rex-accent,#b37a4c)}
@media(max-width:900px){.rex-filter-modern{border-radius:22px;align-items:flex-start;flex-direction:column;white-space:normal}.rex-filter-pills{width:100%;overflow-x:auto;padding-bottom:2px}.rex-columns-2,.rex-columns-3,.rex-columns-4,.rex-single-grid{grid-template-columns:1fr}.rex-spec-panel{grid-template-columns:repeat(2,1fr)}.rex-single .rex-single-header h1.rex-single-title{font-size:calc(var(--rex-single-title-size) * .78)!important}.rex-single-hero>img{height:440px}.rex-gallery{grid-template-columns:repeat(2,1fr)}}@media(max-width:560px){.rex-property-grid,.rex-columns-2,.rex-columns-3,.rex-columns-4{grid-template-columns:1fr}.rex-filter-pills{display:flex;flex-wrap:nowrap}.rex-filter-pill,.rex-reset-filter{flex:0 0 auto}.rex-spec-panel,.rex-gallery,.rex-feature-list{grid-template-columns:1fr}.rex-single-hero>img{height:360px}.rex-single .rex-single-header h1.rex-single-title{font-size:30px!important}}

/* v1.4.0 mobile typography controls */
@media(max-width:900px){
  .rex-property-wrapper .rex-property-card .rex-card-body h3.rex-card-title,
  .rex-property-wrapper .rex-property-card .rex-card-body h3.rex-card-title a{
    font-size:var(--rex-mobile-card-title-size,var(--rex-card-title-size))!important;
    font-family:var(--rex-mobile-card-title-font,var(--rex-card-title-font))!important;
    font-weight:var(--rex-mobile-card-title-weight,var(--rex-card-title-weight))!important;
  }
  .rex-single .rex-single-header h1.rex-single-title{
    font-size:var(--rex-mobile-single-title-size,var(--rex-single-title-size))!important;
    font-family:var(--rex-mobile-single-title-font,var(--rex-single-title-font))!important;
    font-weight:var(--rex-mobile-single-title-weight,var(--rex-single-title-weight))!important;
  }
  .rex-single h2,
  .rex-side-card h3{
    color:var(--rex-mobile-single-heading-colour,var(--rex-single-heading-colour,#111827))!important;
    font-family:var(--rex-mobile-single-heading-font,var(--rex-single-heading-font))!important;
    font-size:var(--rex-mobile-single-heading-size,var(--rex-single-heading-size))!important;
    font-weight:var(--rex-mobile-single-heading-weight,var(--rex-single-heading-weight))!important;
    line-height:var(--rex-mobile-single-heading-line-height,var(--rex-single-heading-line-height))!important;
  }
}
@media(max-width:560px){
  .rex-single .rex-single-header h1.rex-single-title{
    font-size:var(--rex-mobile-single-title-size,30px)!important;
  }
}


/* v1.4.1 - Mobile responsive filter bar */
.rex-filter-modern,
.rex-filter-modern *{
    box-sizing:border-box;
}

@media (max-width: 767px){
    .rex-filter-modern{
        width:100%;
        max-width:100%;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:12px !important;
        padding:14px !important;
        border-radius:18px !important;
        overflow:visible !important;
        white-space:normal !important;
    }

    .rex-filter-heading{
        width:100% !important;
        justify-content:center !important;
        border-radius:14px !important;
        padding:10px 12px !important;
    }

    .rex-filter-pills{
        width:100% !important;
        display:grid !important;
        grid-template-columns:1fr 1fr !important;
        gap:8px !important;
        overflow:visible !important;
        padding:0 !important;
    }

    .rex-filter-pill,
    .rex-reset-filter{
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        flex:none !important;
        white-space:normal !important;
        text-align:center !important;
        padding:10px 8px !important;
        font-size:13px !important;
        line-height:1.2 !important;
        min-height:42px !important;
    }
}

@media (max-width: 420px){
    .rex-filter-pills{
        grid-template-columns:1fr !important;
    }
}


/* v1.4.2 - Mobile-only filter toggle */
.rex-mobile-filter-toggle{
    display:none;
}

@media (max-width: 767px){
    .rex-filter-modern{
        background:transparent !important;
        border:none !important;
        box-shadow:none !important;
        padding:0 !important;
        margin-bottom:22px !important;
    }

    .rex-mobile-filter-toggle{
        display:flex !important;
        width:100% !important;
        align-items:center !important;
        justify-content:center !important;
        gap:8px !important;
        min-height:48px !important;
        border:1px solid rgba(17,24,39,.12) !important;
        border-radius:14px !important;
        background:var(--rex-primary,#111827) !important;
        color:#fff !important;
        font-size:15px !important;
        font-weight:800 !important;
        cursor:pointer !important;
        box-shadow:0 10px 28px rgba(17,24,39,.15) !important;
    }

    .rex-mobile-filter-icon{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:24px !important;
        height:24px !important;
        border-radius:999px !important;
        background:rgba(255,255,255,.16) !important;
        font-size:13px !important;
        line-height:1 !important;
    }

    .rex-filter-modern .rex-filter-heading,
    .rex-filter-modern .rex-filter-pills{
        display:none !important;
    }

    .rex-filter-modern.rex-mobile-filters-open .rex-filter-heading{
        display:flex !important;
        margin-top:12px !important;
        background:#fff !important;
        border:1px solid #eef0f3 !important;
        box-shadow:0 8px 20px rgba(0,0,0,.04) !important;
    }

    .rex-filter-modern.rex-mobile-filters-open .rex-filter-pills{
        display:grid !important;
        margin-top:10px !important;
        padding:12px !important;
        border:1px solid #eef0f3 !important;
        border-radius:16px !important;
        background:#fff !important;
        box-shadow:0 12px 30px rgba(0,0,0,.06) !important;
    }
}

/* v1.4.3 - Correct mobile-only filter toggle visibility */
.rex-property-wrapper .rex-mobile-filter-toggle{
    display:none !important;
    visibility:hidden !important;
}

/* Desktop and tablet: keep original filter bar visible and no toggle button */
@media (min-width: 768px){
    .rex-property-wrapper .rex-mobile-filter-toggle{
        display:none !important;
        visibility:hidden !important;
    }
    .rex-property-wrapper .rex-filter-modern .rex-filter-heading{
        display:inline-flex !important;
        visibility:visible !important;
    }
    .rex-property-wrapper .rex-filter-modern .rex-filter-pills{
        display:flex !important;
        visibility:visible !important;
    }
}

/* Mobile only: show modern filter button and hide options until clicked */
@media (max-width: 767px){
    .rex-property-wrapper .rex-filter-modern{
        width:100% !important;
        max-width:100% !important;
        display:flex !important;
        flex-direction:column !important;
        align-items:stretch !important;
        gap:0 !important;
        padding:0 !important;
        margin:0 0 22px !important;
        background:transparent !important;
        border:0 !important;
        border-radius:0 !important;
        box-shadow:none !important;
        overflow:visible !important;
        white-space:normal !important;
    }

    .rex-property-wrapper .rex-mobile-filter-toggle{
        display:flex !important;
        visibility:visible !important;
        width:100% !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:12px !important;
        min-height:54px !important;
        padding:14px 18px !important;
        border:1px solid rgba(17,24,39,.10) !important;
        border-radius:18px !important;
        background:linear-gradient(135deg,var(--rex-primary,#111827),#2f3747) !important;
        color:#fff !important;
        font-size:15px !important;
        font-weight:800 !important;
        letter-spacing:.01em !important;
        cursor:pointer !important;
        box-shadow:0 14px 34px rgba(17,24,39,.18) !important;
        appearance:none !important;
        -webkit-appearance:none !important;
    }

    .rex-property-wrapper .rex-mobile-filter-toggle span:last-child{
        flex:1 1 auto !important;
        text-align:left !important;
    }

    .rex-property-wrapper .rex-mobile-filter-toggle::after{
        content:'+' !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:28px !important;
        height:28px !important;
        border-radius:999px !important;
        background:rgba(255,255,255,.16) !important;
        font-size:20px !important;
        line-height:1 !important;
        font-weight:500 !important;
    }

    .rex-property-wrapper .rex-filter-modern.rex-mobile-filters-open .rex-mobile-filter-toggle::after{
        content:'−' !important;
    }

    .rex-property-wrapper .rex-mobile-filter-icon{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        width:30px !important;
        height:30px !important;
        flex:0 0 30px !important;
        border-radius:999px !important;
        background:rgba(255,255,255,.16) !important;
        font-size:14px !important;
        line-height:1 !important;
    }

    .rex-property-wrapper .rex-filter-modern .rex-filter-heading,
    .rex-property-wrapper .rex-filter-modern .rex-filter-pills{
        display:none !important;
        visibility:hidden !important;
    }

    .rex-property-wrapper .rex-filter-modern.rex-mobile-filters-open .rex-filter-heading{
        display:flex !important;
        visibility:visible !important;
        width:100% !important;
        justify-content:center !important;
        margin-top:12px !important;
        padding:11px 14px !important;
        border-radius:16px !important;
        background:#fff !important;
        border:1px solid #eef0f3 !important;
        box-shadow:0 8px 20px rgba(0,0,0,.04) !important;
    }

    .rex-property-wrapper .rex-filter-modern.rex-mobile-filters-open .rex-filter-pills{
        display:grid !important;
        visibility:visible !important;
        grid-template-columns:1fr 1fr !important;
        gap:9px !important;
        width:100% !important;
        margin-top:10px !important;
        padding:12px !important;
        border:1px solid #eef0f3 !important;
        border-radius:18px !important;
        background:#fff !important;
        box-shadow:0 12px 30px rgba(0,0,0,.06) !important;
        overflow:visible !important;
    }

    .rex-property-wrapper .rex-filter-pill,
    .rex-property-wrapper .rex-reset-filter{
        width:100% !important;
        min-width:0 !important;
        justify-content:center !important;
        white-space:normal !important;
        text-align:center !important;
    }
}

@media (max-width: 420px){
    .rex-property-wrapper .rex-filter-modern.rex-mobile-filters-open .rex-filter-pills{
        grid-template-columns:1fr !important;
    }
}

/* v1.5.0 - Homepage selected properties module */
.rex-home-properties,
.rex-home-properties *{
    box-sizing:border-box;
}

.rex-home-properties{
    width:100%;
    margin:0 auto;
}

.rex-home-filter{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    width:max-content;
    max-width:100%;
    margin:0 auto 28px;
    padding:6px;
    border:1px solid #edf0f3;
    border-radius:999px;
    background:#fff;
    box-shadow:0 14px 38px rgba(17,24,39,.08);
}

.rex-home-filter-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:112px;
    min-height:42px;
    padding:10px 20px;
    border-radius:999px;
    color:#374151;
    font-size:14px;
    font-weight:800;
    line-height:1;
    text-decoration:none!important;
    transition:all .2s ease;
}

.rex-home-filter-btn:hover,
.rex-home-filter-btn.is-active{
    background:var(--rex-primary,#111827);
    color:#fff!important;
    box-shadow:0 10px 24px rgba(17,24,39,.16);
}

.rex-home-grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:24px;
}

.rex-home-card{
    position:relative;
    overflow:hidden;
    border:1px solid #edf0f3;
    border-radius:24px;
    background:#fff;
    box-shadow:0 18px 52px rgba(17,24,39,.09);
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}

.rex-home-card:hover{
    transform:translateY(-4px);
    border-color:rgba(179,122,76,.35);
    box-shadow:0 24px 68px rgba(17,24,39,.13);
}

.rex-home-thumb{
    position:relative;
    display:block;
    height:235px;
    overflow:hidden;
    background:#f3f4f6;
}

.rex-home-thumb img{
    width:100%;
    height:100%;
    display:block;
    object-fit:cover;
    transition:transform .35s ease;
}

.rex-home-card:hover .rex-home-thumb img{
    transform:scale(1.04);
}

.rex-home-type{
    position:absolute;
    left:16px;
    top:16px;
    z-index:2;
    display:inline-flex;
    align-items:center;
    min-height:32px;
    padding:7px 12px;
    border-radius:999px;
    background:rgba(255,255,255,.94);
    color:#111827;
    font-size:12px;
    font-weight:900;
    line-height:1;
    box-shadow:0 10px 22px rgba(0,0,0,.12);
}

.rex-home-card-body{
    padding:20px 20px 22px;
}

.rex-home-card-title{
    margin:0 0 10px!important;
    font-family:var(--rex-card-title-font,inherit)!important;
    font-size:var(--rex-card-title-size,20px)!important;
    font-weight:var(--rex-card-title-weight,700)!important;
    line-height:1.22!important;
    letter-spacing:-.02em;
}

.rex-home-card-title a{
    color:#111827!important;
    font-family:inherit!important;
    font-size:inherit!important;
    font-weight:inherit!important;
    line-height:inherit!important;
    text-decoration:none!important;
}

.rex-home-card-title a:hover{
    color:var(--rex-accent,#b37a4c)!important;
}

.rex-home-address{
    position:relative;
    margin:0 0 15px!important;
    padding-left:20px;
    color:#6b7280;
    font-size:14px;
    line-height:1.45;
}

.rex-home-address:before{
    content:'⌖';
    position:absolute;
    left:0;
    top:0;
    color:var(--rex-accent,#b37a4c);
    font-weight:900;
}

.rex-home-amenities{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:0 0 16px;
}

.rex-home-amenities span{
    display:inline-flex;
    align-items:center;
    min-height:30px;
    padding:7px 10px;
    border-radius:999px;
    background:#f8fafc;
    color:#374151;
    font-size:12px;
    font-weight:800;
    line-height:1;
}

.rex-home-price{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding-top:16px;
    border-top:1px solid #eef0f3;
    color:var(--rex-accent,#b37a4c);
    font-size:20px;
    font-weight:900;
    line-height:1.1;
}

@media(max-width:1024px){
    .rex-home-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:767px){
    .rex-home-filter{
        width:100%;
        margin-bottom:22px;
        border-radius:18px;
        padding:6px;
    }
    .rex-home-filter-btn{
        flex:1 1 0;
        min-width:0;
        min-height:44px;
        padding:11px 12px;
    }
    .rex-home-grid{
        grid-template-columns:1fr;
        gap:18px;
    }
    .rex-home-thumb{
        height:220px;
    }
    .rex-home-card{
        border-radius:20px;
    }
    .rex-home-card-body{
        padding:18px;
    }
    .rex-home-card-title{
        font-family:var(--rex-mobile-card-title-font,var(--rex-card-title-font,inherit))!important;
        font-size:var(--rex-mobile-card-title-size,var(--rex-card-title-size,18px))!important;
        font-weight:var(--rex-mobile-card-title-weight,var(--rex-card-title-weight,700))!important;
    }
}

/* v1.5.1 - Automatic homepage properties and modern sale/rental toggle */
.rex-home-toggle-filter{
    position:relative;
    isolation:isolate;
    display:grid!important;
    grid-template-columns:1fr 1fr;
    gap:0!important;
    width:min(100%,360px)!important;
    padding:7px!important;
    border:1px solid rgba(17,24,39,.08)!important;
    border-radius:999px!important;
    background:linear-gradient(180deg,#ffffff,#f8fafc)!important;
    box-shadow:0 16px 42px rgba(17,24,39,.10)!important;
    overflow:hidden;
}

.rex-home-toggle-filter:before{
    content:'';
    position:absolute;
    inset:7px auto 7px 7px;
    width:calc(50% - 7px);
    border-radius:999px;
    background:linear-gradient(135deg,var(--rex-primary,#111827),#303849);
    box-shadow:0 12px 24px rgba(17,24,39,.18);
    z-index:-1;
    transition:transform .22s ease;
}

.rex-home-toggle-filter:has(.rex-home-filter-btn:nth-of-type(2).is-active):before{
    transform:translateX(100%);
}

.rex-home-toggle-bg{display:none!important;}

.rex-home-toggle-filter .rex-home-filter-btn{
    position:relative;
    z-index:1;
    min-width:0!important;
    min-height:46px!important;
    border-radius:999px!important;
    background:transparent!important;
    color:#6b7280!important;
    box-shadow:none!important;
}

.rex-home-toggle-filter .rex-home-filter-btn span{
    display:inline-flex;
    align-items:center;
    gap:8px;
}

.rex-home-toggle-filter .rex-home-filter-btn:first-of-type span:before{content:'🏠';font-size:14px;}
.rex-home-toggle-filter .rex-home-filter-btn:nth-of-type(2) span:before{content:'🔑';font-size:14px;}

.rex-home-toggle-filter .rex-home-filter-btn.is-active{
    color:#fff!important;
}

.rex-home-toggle-filter .rex-home-filter-btn:hover{
    color:var(--rex-primary,#111827)!important;
    transform:none!important;
}

.rex-home-toggle-filter .rex-home-filter-btn.is-active:hover{
    color:#fff!important;
}

@supports not selector(:has(*)){
    .rex-home-toggle-filter:before{display:none;}
    .rex-home-toggle-filter .rex-home-filter-btn.is-active{
        background:linear-gradient(135deg,var(--rex-primary,#111827),#303849)!important;
        box-shadow:0 12px 24px rgba(17,24,39,.18)!important;
    }
}

@media(max-width:767px){
    .rex-home-toggle-filter{
        width:100%!important;
        max-width:100%!important;
        border-radius:18px!important;
    }
    .rex-home-toggle-filter:before,
    .rex-home-toggle-filter .rex-home-filter-btn{
        border-radius:14px!important;
    }
}

/* v1.5.2 - Ajax-free homepage tab switching, no page reload */
.rex-home-panel{display:none!important;}
.rex-home-panel.is-active{display:grid!important;}
.rex-home-filter-btn[type="button"]{
    appearance:none!important;
    -webkit-appearance:none!important;
    border:0!important;
    cursor:pointer!important;
    font-family:inherit!important;
}
.rex-home-toggle-filter .rex-home-filter-btn[type="button"]:focus{
    outline:2px solid rgba(17,24,39,.22)!important;
    outline-offset:3px!important;
}

/* v1.5.3 - Homepage dynamic view more button */
.rex-home-view-more-wrap{
    display:flex;
    justify-content:center;
    align-items:center;
    margin:30px auto 0;
    width:100%;
}
.rex-home-view-more{
    display:none!important;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:14px 28px;
    border-radius:999px;
    background:linear-gradient(135deg,var(--rex-primary,#111827),#303849);
    color:#fff!important;
    font-size:14px;
    font-weight:900;
    line-height:1;
    text-decoration:none!important;
    box-shadow:0 16px 36px rgba(17,24,39,.18);
    transition:transform .22s ease,box-shadow .22s ease,background .22s ease;
}
.rex-home-view-more.is-active{
    display:inline-flex!important;
}
.rex-home-view-more span{
    display:inline-flex;
    align-items:center;
    gap:10px;
}
.rex-home-view-more span:after{
    content:'→';
    font-size:16px;
    line-height:1;
    transition:transform .22s ease;
}
.rex-home-view-more:hover{
    transform:translateY(-2px);
    box-shadow:0 20px 46px rgba(17,24,39,.24);
    color:#fff!important;
}
.rex-home-view-more:hover span:after{
    transform:translateX(3px);
}
@media(max-width:767px){
    .rex-home-view-more-wrap{
        margin-top:22px;
    }
    .rex-home-view-more{
        width:100%;
        min-height:50px;
        padding:15px 20px;
        border-radius:16px;
    }
}

/* Sale price replacement text - additive only, no layout changes */
.rex-sale-price-text{
    font-family:var(--rex-sale-price-font, inherit) !important;
    font-weight:var(--rex-sale-price-weight, 800) !important;
    font-style:var(--rex-sale-price-style, normal) !important;
    color:var(--rex-sale-price-colour, #111827) !important;
    line-height:var(--rex-sale-price-line-height, 1.2) !important;
}
.rex-sale-price-text-archive{font-size:var(--rex-sale-price-archive-size, 22px) !important;}
.rex-sale-price-text-single{font-size:var(--rex-sale-price-single-size, 30px) !important;}
.rex-sale-price-text-home{font-size:var(--rex-sale-price-home-size, 20px) !important;}


/* v2.0.3 - Mobile single listing containment fix only */
.rex-single,
.rex-single *,
.rex-single *:before,
.rex-single *:after{
    box-sizing:border-box;
}
.rex-single{
    width:100%;
    max-width:1240px;
    overflow-x:hidden;
}
.rex-single img,
.rex-gallery img{
    max-width:100%;
}
.rex-single-grid > main,
.rex-single-grid > aside,
.rex-single section,
.rex-side-card,
.rex-single-header,
.rex-single-hero{
    min-width:0;
    max-width:100%;
}
.rex-single-title,
.rex-single-address,
.rex-description,
.rex-feature-list li,
.rex-side-card,
.rex-side-card p{
    overflow-wrap:anywhere;
    word-break:normal;
}
@media(max-width:767px){
    .rex-single{
        width:100% !important;
        max-width:100% !important;
        padding-left:14px !important;
        padding-right:14px !important;
        margin-left:auto !important;
        margin-right:auto !important;
    }
    .rex-single-grid{
        width:100% !important;
        max-width:100% !important;
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:22px !important;
    }
    .rex-single-hero{
        width:100% !important;
        max-width:100% !important;
        min-height:0 !important;
    }
    .rex-single-hero > img{
        width:100% !important;
        max-width:100% !important;
        height:auto !important;
        max-height:420px !important;
        object-fit:cover !important;
    }
    .rex-spec-panel,
    .rex-gallery,
    .rex-feature-list{
        width:100% !important;
        max-width:100% !important;
        grid-template-columns:1fr !important;
    }
    .rex-spec-panel span,
    .rex-feature-list li,
    .rex-single section,
    .rex-side-card{
        width:100% !important;
        max-width:100% !important;
    }
}
