.property-card-slider{position:relative;overflow:hidden;height:auto;aspect-ratio:16/9}
.property-card-slider .swiper,.property-card-slider .swiper-wrapper,.property-card-slider .swiper-slide{height:100%}
.property-card-slider .swiper-slide{overflow:hidden}
.property-card-slider .property-card-image{width:100%;height:100%;object-fit:cover;display:block;aspect-ratio:16/9}

.homeya-box.list-style-1 .property-card-slider{aspect-ratio:auto;height:100%;min-height:220px}
.homeya-box.list-style-1 .property-card-slider .property-card-image{aspect-ratio:auto}

.property-card-image-fallback{aspect-ratio:16/9;background:#eef1f5;display:flex;align-items:center;justify-content:center;color:#5c6368;font-weight:600}
.homeya-box.list-style-1 .property-card-image-fallback{height:100%;aspect-ratio:auto;min-height:220px}

.property-card-slider .pcs-nav{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:42px;height:56px;border:0;background:transparent;display:flex;align-items:center;justify-content:center;color:#fff;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .2s ease,color .2s ease;padding:0}
.property-card-slider .pcs-prev{left:8px}
.property-card-slider .pcs-next{right:8px}
.property-card-slider .pcs-nav svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.property-card-slider .pcs-nav:hover{color:#f3f5f7}
.property-card-slider:hover .pcs-nav{opacity:1;pointer-events:auto}
.property-card-slider .pcs-nav:disabled,.property-card-slider .pcs-nav[aria-disabled="true"]{opacity:0!important;pointer-events:none!important;cursor:default}
.property-card-slider:hover .pcs-nav:disabled,.property-card-slider:hover .pcs-nav[aria-disabled="true"]{opacity:.35!important}

.property-card-slider .pcs-dots{position:absolute;left:50%;bottom:10px;transform:translateX(-50%);display:flex;align-items:center;gap:6px;z-index:4}
.property-card-slider .pcs-dot{width:7px;height:7px;border-radius:999px;border:0;background:rgba(255,255,255,.55);transition:all .2s ease;opacity:.95;padding:0}
.property-card-slider .pcs-dot.active{width:18px;background:#fff}
.property-card-slider .pcs-dots.is-shifting .pcs-dot{transform:scale(.92);opacity:.72}

.property-card-slider .pcs-counter{display:none!important}

.property-item.homeya-box.property-card-compact .images-group .top{
    top:var(--pc-overlay-inset,4px);
    left:var(--pc-overlay-inset,4px);
    right:var(--pc-overlay-inset,4px);
    z-index:6;
}

.property-item.homeya-box.property-card-compact .images-group .top .flag-tag.style-2{
    margin:0;
    background-color:#14fa8e;
    color:#fff;
}

.property-item.homeya-box.property-card-compact .images-group .top .box-icon{
    margin:0;
}

.property-item.homeya-box.property-card-compact .images-group .bottom{
    display:block!important;
}

.property-item.homeya-box.property-card-compact .images-group .bottom .flag-tag.style-1{
    margin:0;
    background-color:#fff;
    color:#161e2d;
    font-size:14px;
    line-height:24px;
}

.property-item.homeya-box.property-card-compact .images-group .bottom .flag-tag.style-1:hover{
    background-color:var(--primary-color);
    color:#fff;
}

/* Compact Zillow-inspired property card layout */
.property-cards-row{
    --bs-gutter-x:6px;
    --bs-gutter-y:6px;
    margin-bottom:8px;
}

.property-cards-row>.col{
    display:flex;
}

.property-cards-row>.col>.property-item.homeya-box.property-card-compact{
    width:100%;
    margin-bottom:0;
}

/* Keep card widths stable in "Recommended For You" tabs (avoid stretching when few items are returned) */
.flat-tab-recommended [data-bb-toggle="properties-tab-slot"] .property-cards-row{
    justify-content:flex-start;
}

.flat-tab-recommended [data-bb-toggle="properties-tab-slot"] .property-cards-row>.col{
    flex:0 0 auto;
    width:100%;
    max-width:100%;
}

@media (min-width:576px){
    .flat-tab-recommended [data-bb-toggle="properties-tab-slot"] .property-cards-row>.col{
        width:50%;
        max-width:50%;
    }
}

@media (min-width:1200px){
    .flat-tab-recommended [data-bb-toggle="properties-tab-slot"] .property-cards-row>.col{
        width:33.333333%;
        max-width:33.333333%;
    }
}

.property-item.homeya-box.property-card-compact{
    display:flex;
    flex-direction:column;
    height:100%;
    background:#fff;
    border-radius:10px;
    box-shadow:0 2px 10px rgba(22,30,45,.08);
    --pc-image-aspect:16/7.8;
    --pc-overlay-inset:clamp(4px,.24vw,8px);
    --pc-nav-inset:clamp(4px,.4vw,8px);
    --pc-dots-bottom:clamp(5px,.45vw,9px);
    --pc-content-gap:clamp(1px,.14vw,3px);
    --pc-content-pad-y:clamp(5px,.4vw,9px);
    --pc-content-pad-x:clamp(8px,.5vw,12px);
    --pc-content-pad-bottom:clamp(3px,.3vw,6px);
    --pc-title-size:clamp(1.1rem,.9rem + .55vw,1.46rem);
    --pc-address-size:clamp(1rem,.84rem + .32vw,1.16rem);
    --pc-address-icon-size:clamp(16px,13px + .36vw,20px);
    --pc-feature-icon-size:clamp(19px,15px + .45vw,24px);
    --pc-feature-size:clamp(1rem,.84rem + .32vw,1.14rem);
    --pc-features-col-gap:clamp(12px,8px + .45vw,18px);
    --pc-features-row-gap:clamp(2px,.22vw,6px);
    --pc-feature-item-gap:clamp(6px,4px + .22vw,9px);
    --pc-price-size:clamp(1.32rem,.98rem + .72vw,1.82rem);
    --pc-agent-size:clamp(.92rem,.78rem + .32vw,1.1rem);
    --pc-agent-name-size:clamp(.92rem,.78rem + .32vw,1.08rem);
    --pc-footer-pad-y:clamp(0px,.1vw,2px);
    --pc-footer-pad-x:clamp(8px,.5vw,12px);
    --pc-footer-min-h:clamp(28px,1.9vw,38px);
}

.property-item.homeya-box.property-card-compact:not(.list-style-1) .property-card-slider{
    aspect-ratio:var(--pc-image-aspect);
    height:auto;
}

.property-item.homeya-box.property-card-compact:not(.list-style-1) .images-style img{
    aspect-ratio:var(--pc-image-aspect);
    object-position:center;
}

.property-item.homeya-box.property-card-compact .property-card-slider .pcs-prev{
    left:var(--pc-nav-inset);
}

.property-item.homeya-box.property-card-compact .property-card-slider .pcs-next{
    right:var(--pc-nav-inset);
}

.property-item.homeya-box.property-card-compact .property-card-slider .pcs-dots{
    bottom:var(--pc-dots-bottom);
}

.property-item.homeya-box.property-card-compact:not(.list-style-1) .archive-top{
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
}

.property-item.homeya-box.property-card-compact .property-card-content{
    display:flex;
    flex-direction:column;
    gap:var(--pc-content-gap);
    padding:var(--pc-content-pad-y) var(--pc-content-pad-x) var(--pc-content-pad-bottom);
    border-bottom:0;
    min-height:0;
}

.property-item.homeya-box.property-card-compact .content{
    min-height:0;
}

.property-item.homeya-box.property-card-compact .property-card-main{
    padding-bottom:0;
    margin-bottom:0;
}

/* Responsive cards-map relationship for listing page */
.wrapper-layout.layout-2 .box-title-listing{
    margin-bottom:12px;
}

.wrapper-layout.layout-2 .property-cards-row.row-cols-sm-2{
    --equal-card-space:6px;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:var(--equal-card-space);
    margin:0 !important;
    padding:0 var(--equal-card-space) !important;
}

.wrapper-layout.layout-2 .property-cards-row.row-cols-sm-2 > .col{
    width:auto;
    max-width:none;
    padding-left:0;
    padding-right:0;
}

@media (max-width:575.98px){
    .wrapper-layout.layout-2 .property-cards-row.row-cols-sm-2{
        grid-template-columns:1fr;
    }
}

@media (max-width:1200px){
    .wrapper-layout.layout-2{
        display:block !important;
        height:auto !important;
        min-height:0;
    }

    .wrapper-layout.layout-2 .wrap-left,
    .wrapper-layout.layout-2 .wrap-right{
        position:static !important;
        width:100% !important;
        max-width:100% !important;
        left:auto !important;
        right:auto !important;
        margin:0 !important;
        transform:none !important;
    }

    .wrapper-layout.layout-2 .wrap-left{
        height:auto !important;
        overflow:visible;
        padding:12px 0 0 !important;
    }

    .wrapper-layout.layout-2 .wrap-right{
        height:clamp(280px,48vh,460px) !important;
        margin-top:8px !important;
    }

    .wrapper-layout.layout-2 .wrap-right #map{
        position:relative !important;
        top:auto !important;
        left:auto !important;
        width:100% !important;
        height:100% !important;
        min-height:100% !important;
    }

    .wrapper-layout.layout-2 .property-item.homeya-box.property-card-compact .property-card-content{
        min-height:0;
    }
}

@media (min-width:1200.02px){
    .wrapper-layout.layout-2{
        --listing-layout-height:calc(100vh - 178px);
        --listing-card-content-height:clamp(56px,4vw,84px);
        --listing-cards-col-width:clamp(740px,50vw,1060px);
        display:grid;
        grid-template-columns:minmax(740px,var(--listing-cards-col-width)) minmax(0,1fr);
        align-items:stretch;
        gap:0;
        height:var(--listing-layout-height);
    }

    .wrapper-layout.layout-2 .property-item.homeya-box.property-card-compact{
        --pc-image-aspect:16/8;
        --pc-content-gap:clamp(1px,.12vw,3px);
        --pc-content-pad-y:clamp(5px,.35vw,8px);
        --pc-content-pad-bottom:clamp(1px,.16vw,3px);
        --pc-footer-min-h:clamp(22px,1.5vw,30px);
    }

    .wrapper-layout.layout-2 .box-title-listing{
        padding-inline-end:12px;
    }

    .wrapper-layout.layout-2 .wrap-left{
        width:auto !important;
        height:100% !important;
        overflow-y:auto;
        overflow-x:hidden;
        padding-left:0 !important;
        padding-right:0 !important;
    }

    .wrapper-layout.layout-2 .wrap-right{
        position:sticky !important;
        top:0;
        right:auto !important;
        width:auto !important;
        height:100% !important;
    }

    .wrapper-layout.layout-2 .wrap-right #map{
        position:relative !important;
        top:auto !important;
        left:auto !important;
        width:100% !important;
        height:100% !important;
        min-height:100% !important;
    }

    .wrapper-layout.layout-2 .property-item.homeya-box.property-card-compact .property-card-content{
        min-height:var(--listing-card-content-height);
    }
}

@media (min-width:1600px){
    .wrapper-layout.layout-2{
        --listing-cards-col-width:clamp(800px,52vw,1140px);
    }
}

@media (min-width:2000px){
    .wrapper-layout.layout-2{
        --listing-cards-col-width:clamp(860px,54vw,1240px);
    }
}

.property-item.homeya-box.property-card-compact .property-card-title{
    margin:0;
    line-height:1.2;
}

.property-item.homeya-box.property-card-compact .property-card-title .link{
    font-size:var(--pc-title-size);
    line-height:1.2;
}

.property-item.homeya-box.property-card-compact .property-card-address{
    margin-top:0;
    gap:5px;
    align-items:flex-start;
}

.property-item.homeya-box.property-card-compact .property-card-address .icon{
    margin-top:2px;
    font-size:var(--pc-address-icon-size);
}

.property-item.homeya-box.property-card-compact .property-card-address p{
    margin:0;
    font-size:var(--pc-address-size);
    line-height:1.3;
    color:#5c6368;
}

.property-item.homeya-box.property-card-compact .property-card-features{
    margin-top:0;
    margin-bottom:0;
    column-gap:var(--pc-features-col-gap);
    row-gap:var(--pc-features-row-gap);
}

.property-item.homeya-box.property-card-compact .property-card-features .item{
    gap:var(--pc-feature-item-gap);
    line-height:1.2;
}

.property-item.homeya-box.property-card-compact .property-card-features .item .icon{
    font-size:var(--pc-feature-icon-size);
}

.property-item.homeya-box.property-card-compact .property-card-features .item span{
    font-size:var(--pc-feature-size);
    line-height:1.2;
}

.property-item.homeya-box.property-card-compact .property-card-footer{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:4px;
    flex-wrap:nowrap;
    padding:var(--pc-footer-pad-y) var(--pc-footer-pad-x);
    min-height:var(--pc-footer-min-h);
    margin-top:-1px;
}

.property-item.homeya-box.property-card-compact .property-card-price{
    flex:0 0 auto;
    align-items:center;
}

.property-item.homeya-box.property-card-compact .property-card-price-value{
    margin:0;
    padding-bottom:4px;
    font-size:var(--pc-price-size);
    font-weight:800;
    line-height:1.05;
    letter-spacing:-.01em;
}

.property-item.homeya-box.property-card-compact .property-card-agent{
    margin-inline-start:auto;
    flex:0 1 auto;
    min-width:0;
    display:inline-flex;
    align-items:center;
    flex-wrap:nowrap;
    row-gap:0;
    column-gap:2px;
    justify-content:flex-end;
    text-align:right;
    font-size:var(--pc-agent-size);
    line-height:1.1;
}

.property-item.homeya-box.property-card-compact .property-card-agent .listed-by-label,
.property-item.homeya-box.property-card-compact .property-card-agent .listed-by-name{
    display:inline-flex;
    align-items:center;
    white-space:nowrap;
}

.property-item.homeya-box.property-card-compact .property-card-agent .listed-by-label{
    font-size:clamp(.76rem,.95vw,.92rem);
}

.property-item.homeya-box.property-card-compact .property-card-agent .listed-by-name{
    font-size:var(--pc-agent-name-size);
    font-weight:600;
    gap:3px;
}

.property-item.homeya-box.property-card-compact .property-card-agent .listed-by-name svg,
.property-item.homeya-box.property-card-compact .property-card-agent .listed-by-name img,
.property-item.homeya-box.property-card-compact .property-card-agent .listed-by-name i{
    vertical-align:middle;
}

.property-item.homeya-box.property-card-compact .property-card-agent .avatar{
    width:32px;
    height:32px;
    min-width:32px;
}

.property-item.homeya-box.property-card-compact .property-card-agent span{
    min-width:0;
    display:inline;
    white-space:nowrap;
    overflow:visible;
    text-overflow:clip;
    overflow-wrap:normal;
    word-break:normal;
    font-size:var(--pc-agent-name-size);
    line-height:1.1;
}

.property-item.homeya-box.property-card-compact.list-style-1 .property-card-content{
    padding:8px 10px 3px;
    gap:3px;
}

.property-item.homeya-box.property-card-compact.list-style-1 .property-card-main{
    padding-bottom:0;
    margin-bottom:0;
}

@media (max-width:767.98px){
    .wrapper-layout.layout-2{
        display:block !important;
        height:auto !important;
        min-height:0 !important;
    }

    .wrapper-layout.layout-2 .wrap-right{
        display:block !important;
        position:static !important;
        width:100% !important;
        max-width:100% !important;
        height:320px !important;
        margin-top:10px !important;
    }

    .wrapper-layout.layout-2 .wrap-left{
        width:100% !important;
        height:auto !important;
        overflow:visible !important;
        padding:8px 0 0 !important;
    }

    .wrapper-layout.layout-2 .wrap-right #map{
        position:relative !important;
        width:100% !important;
        height:100% !important;
        min-height:100% !important;
        top:auto !important;
        left:auto !important;
    }

    .wrapper-layout.layout-2 .property-cards-row.row-cols-sm-2{
        --equal-card-space:8px;
        display:block !important;
        gap:var(--equal-card-space);
        padding:0 var(--equal-card-space) !important;
    }

    .wrapper-layout.layout-2 .property-cards-row.row-cols-sm-2 > .col{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
    }

    .property-item.homeya-box.property-card-compact{
        display:block;
        height:auto;
        min-height:0;
    }

    .property-item.homeya-box.property-card-compact{
        --pc-image-aspect:16/7.6;
    }

    .property-item.homeya-box.property-card-compact:not(.list-style-1) .property-card-slider{
        aspect-ratio:16/9;
        min-height:170px;
    }

    .property-item.homeya-box.property-card-compact .images-group .top{
        top:var(--pc-overlay-inset,4px);
        left:var(--pc-overlay-inset,4px);
        right:var(--pc-overlay-inset,4px);
    }

    .property-item.homeya-box.property-card-compact .property-card-content{
        padding:5px 7px 2px;
    }

    .property-item.homeya-box.property-card-compact .property-card-footer{
        gap:3px;
        padding:1px 7px;
    }

    .property-item.homeya-box.property-card-compact .property-card-price-value{
        font-size:clamp(1.15rem,4.8vw,1.35rem);
    }

    .property-item.homeya-box.property-card-compact .property-card-agent{
        font-size:clamp(.8rem,2.9vw,.94rem);
        line-height:1.1;
    }

    .property-item.homeya-box.property-card-compact .property-card-agent span{
        font-size:clamp(.8rem,2.8vw,.94rem);
    }
}
