:root{
    --green:#07951b;
    --dark:#10292f;
    --text:#5d686c;
    --border:#e5eeee;
}

*{
    box-sizing:border-box;
}

html,body{
    /* width:100%;
    overflow-x:hidden; */
}

.buy-page{
    background:#fff;
    padding:28px 0 70px;
}

.buy-container{
    width:100%;
    max-width:1460px;
    margin:0 auto;
    padding:0 30px;
}

.breadcrumb-row{
    display:flex;
    gap:10px;
    align-items:center;
    flex-wrap:wrap;
    margin-bottom:22px;
    font-size:14px;
}

.breadcrumb-row a,
.breadcrumb-row span{
    color:#718086;
    text-decoration:none;
}

.breadcrumb-row strong{
    color:var(--dark);
}

.buy-title-row{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:28px;
    border-bottom:1px solid #eef3f2;
    padding-bottom:22px;
}

.page-subtitle{
    color:var(--green);
    font-size:17px;
    font-weight:800;
    display:block;
    margin-bottom:8px;
}

.buy-title-row h1{
    font-size:46px;
    line-height:1.08;
    font-weight:900;
    letter-spacing:-1.5px;
    color:var(--dark);
    margin:0 0 10px;
}

.buy-title-row h1 span{
    color:var(--green);
}

.buy-title-row p{
    color:#637176;
    font-size:18px;
    line-height:1.6;
    margin:0;
}

.city-line-img{
    width:430px;
    max-width:36%;
    opacity:.55;
}

.buy-layout{
    display:grid;
    grid-template-columns:350px minmax(0,1fr);
    gap:34px;
}

.mobile-filter-btn,
.filter-mobile-head{
    display:none;
}

/* FILTER */

.filter-box{
    border:1px solid var(--border);
    border-radius:10px;
    padding:20px;
    height:fit-content;
    background:#fff;
    box-shadow:0 5px 20px rgba(16,41,47,.025);
}

.filter-head{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:18px;
}

.filter-head h3{
    font-size:20px;
    font-weight:900;
    margin:0;
    color:var(--dark);
}

.filter-head button{
    border:0;
    background:transparent;
    color:var(--green);
    font-weight:800;
    font-size:13px;
}

.filter-group{
    margin-bottom:18px;
}

.filter-group label{
    font-size:13px;
    font-weight:900;
    color:var(--dark);
    margin-bottom:9px;
    display:block;
}

.input-icon{
    height:42px;
    border:1px solid #dfe8e6;
    border-radius:6px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 12px;
}

.input-icon input{
    flex:1;
    min-width:0;
    border:0;
    outline:0;
    font-size:13px;
    font-weight:600;
    color:var(--dark);
}

.input-icon svg{
    width:17px;
    height:17px;
    stroke:#4f6066;
}

.type-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:8px;
}

.type-grid button{
    height:52px;
    border:1px solid #dfe8e6;
    background:#fff;
    border-radius:6px;
    font-size:11px;
    font-weight:700;
    color:#34464b;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
}

.type-grid button svg{
    width:18px;
    height:18px;
}

.type-grid button.active{
    background:#eefaf1;
    color:var(--green);
    border-color:#d7eadb;
}

.range-line{
    height:3px;
    background:#dfe5e5;
    border-radius:20px;
    margin:16px 6px;
    position:relative;
}

.range-line span{
    position:absolute;
    left:0;
    width:70%;
    height:3px;
    background:var(--green);
}

.range-line:before,
.range-line:after{
    content:"";
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:14px;
    height:14px;
    border-radius:50%;
    background:#fff;
    border:2px solid var(--green);
}

.range-line:before{left:0;}
.range-line:after{left:68%;}

.two-inputs{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
}

.two-inputs input,
.two-inputs select{
    width:100%;
    min-width:0;
    height:40px;
    border:1px solid #dfe8e6;
    border-radius:6px;
    padding:0 12px;
    font-size:12px;
    color:#657377;
    outline:0;
    background:#fff;
}

.pill-row{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
}

.pill-row button{
    height:30px;
    min-width:50px;
    padding:0 13px;
    border:1px solid #dfe8e6;
    border-radius:6px;
    background:#fff;
    color:#33464b;
    font-size:12px;
    font-weight:700;
}

.pill-row button.active{
    background:var(--green);
    color:#fff;
    border-color:var(--green);
}

.apply-btn{
    width:100%;
    height:42px;
    border:0;
    border-radius:6px;
    background:var(--green);
    color:#fff;
    font-size:14px;
    font-weight:900;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
}

.apply-btn svg{
    width:16px;
    height:16px;
}

/* RIGHT */

.listing-area{
    min-width:0;
}

.top-actions{
    display:grid;
    grid-template-columns:minmax(0,1fr) 390px;
    gap:26px;
    margin-bottom:18px;
}

.search-box,
.sort-box{
    border:1px solid var(--border);
    border-radius:8px;
    min-height:58px;
    display:flex;
    align-items:center;
    background:#fff;
    padding:0 14px;
}

.search-box{
    gap:12px;
}

.search-box svg{
    width:20px;
    height:20px;
    stroke:#51636a;
}

.search-box input{
    flex:1;
    min-width:0;
    border:0;
    outline:0;
    font-size:14px;
    color:#526269;
}

.search-box button{
    width:88px;
    min-width:88px;
    height:38px;
    border:0;
    border-radius:6px;
    background:var(--green);
    color:#fff;
    font-weight:900;
    font-size:13px;
}

.sort-box{
    justify-content:space-between;
    gap:12px;
}

.sort-box span{
    font-size:13px;
    color:#3d4f55;
    font-weight:700;
    white-space:nowrap;
}

.sort-box select{
    width:150px;
    height:38px;
    border:1px solid #dfe8e6;
    border-radius:6px;
    padding:0 12px;
    color:#58686e;
    background:#fff;
}

.sort-box button{
    width:34px;
    height:34px;
    border:0;
    background:#f5faf7;
    border-radius:6px;
}

.sort-box button svg{
    width:17px;
    height:17px;
    stroke:#66767b;
}

.sort-box button.active svg{
    stroke:var(--green);
}

.result-text{
    font-size:13px;
    color:#42545a;
    margin:0 0 18px;
}

.property-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:22px;
}

.listing-card{
    min-width:0;
    border:1px solid var(--border);
    border-radius:9px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 8px 20px rgba(16,41,47,.035);
}

.listing-img{
    height:140px;
    position:relative;
    overflow:hidden;
}

.listing-img img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.listing-img span{
    position:absolute;
    left:10px;
    top:10px;
    height:22px;
    padding:0 9px;
    background:var(--green);
    color:#fff;
    border-radius:4px;
    font-size:11px;
    font-weight:900;
    display:flex;
    align-items:center;
}

.listing-img button{
    position:absolute;
    right:10px;
    top:10px;
    width:28px;
    height:28px;
    border:0;
    background:transparent;
}

.listing-img button svg{
    width:26px;
    height:26px;
    stroke:#fff;
    stroke-width:2.2;
}

.listing-content{
    padding:14px 14px 12px;
}

.listing-content h4{
    color:var(--green);
    font-size:18px;
    font-weight:900;
    margin:0 0 8px;
}

.listing-content h3{
    color:var(--dark);
    font-size:14px;
    font-weight:900;
    margin:0 0 10px;
}

.listing-content p{
    display:flex;
    align-items:center;
    gap:6px;
    color:#637176;
    font-size:12.5px;
    margin:0;
}

.listing-content p svg{
    width:14px;
    height:14px;
    stroke:var(--green);
}

.listing-info{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    border-top:1px solid #edf1f1;
}

.listing-info span{
    padding:11px 5px;
    text-align:center;
    color:#52656b;
    font-size:11.5px;
    border-right:1px solid #edf1f1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.listing-info span:last-child{
    border-right:0;
}

.pagination-box{
    display:flex;
    justify-content:center;
    margin-top:28px;
}

.pagination-box button{
    width:42px;
    height:34px;
    border:1px solid #dfe8e6;
    background:#fff;
    color:#34484e;
    font-weight:700;
}

.pagination-box button.active{
    background:var(--green);
    color:#fff;
}

.pagination-box svg{
    width:15px;
    height:15px;
}

/* 1200 */

@media(max-width:1200px){
    .buy-layout{
        grid-template-columns:1fr;
    }

    .property-grid{
        grid-template-columns:repeat(3,minmax(0,1fr));
    }

    .city-line-img{
        display:none;
    }

    .filter-box{
        position:fixed;
        left:-100%;
        top:0;
        width:340px;
        max-width:90%;
        height:100vh;
        overflow-y:auto;
        z-index:9999;
        border-radius:0;
        transition:.35s ease;
    }

    body.filter-open .filter-box{
        left:0;
    }

    body.filter-open::after{
        content:"";
        position:fixed;
        inset:0;
        background:rgba(0,0,0,.35);
        z-index:9998;
    }

    .mobile-filter-btn{
        display:inline-flex;
        align-items:center;
        gap:8px;
        height:42px;
        padding:0 18px;
        border:0;
        border-radius:7px;
        background:var(--green);
        color:#fff;
        font-weight:900;
        margin-bottom:18px;
    }

    .mobile-filter-btn svg{
        width:17px;
        height:17px;
    }

    .filter-mobile-head{
        display:flex;
        justify-content:space-between;
        align-items:center;
        margin-bottom:18px;
    }

    .filter-mobile-head h3{
        margin:0;
        font-size:20px;
        font-weight:900;
    }

    .filter-mobile-head button{
        width:34px;
        height:34px;
        border:0;
        border-radius:50%;
        background:#f2f7f5;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .filter-mobile-head button svg{
        width:18px;
        height:18px;
    }

    .filter-head{
        display:none;
    }
}

/* TABLET */

@media(max-width:991px){
    .buy-container{
        padding:0 22px;
    }

    .buy-title-row h1{
        font-size:38px;
    }

    .buy-title-row p{
        font-size:15px;
    }

    .top-actions{
        grid-template-columns:1fr;
        gap:14px;
    }

    .property-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .sort-box{
        justify-content:flex-start;
        flex-wrap:wrap;
        height:auto;
        padding:12px;
    }
}

/* MOBILE */

@media(max-width:575px){
    .buy-page{
        padding-top:22px;
    }

    .buy-container{
        padding:0 16px;
    }

    .buy-title-row{
        margin-bottom:20px;
        padding-bottom:18px;
    }

    .page-subtitle{
        font-size:14px;
    }

    .buy-title-row h1{
        font-size:30px;
        letter-spacing:-.8px;
    }

    .buy-title-row p{
        font-size:14px;
        line-height:1.6;
    }

    .search-box{
        flex-wrap:wrap;
        height:auto;
        padding:12px;
    }

    .search-box input{
        width:100%;
        flex:unset;
        height:36px;
    }

    .search-box button{
        width:100%;
    }

    .sort-box select{
        width:100%;
    }

    .property-grid{
        grid-template-columns:1fr;
        gap:18px;
    }

    .listing-img{
        height:190px;
    }

    .type-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .two-inputs{
        grid-template-columns:1fr;
    }

    .filter-box{
        width:320px;
    }
}