:root{
    --green:#2563C4;
    --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;
    }
}

:root{
    --green:#2563C4;
    --green-light:#eefaf1;
    --dark:#10292f;
    --text:#5d686c;
    --border:#e5eeee;
}

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

.type-grid label{
    min-height:52px;
    border:1px solid #dfe8e6;
    background:#fff;
    border-radius:8px;
    font-size:12px;
    font-weight:800;
    color:#34464b;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    cursor:pointer;
    transition:.25s ease;
}

.type-grid label svg{
    width:18px;
    height:18px;
    stroke:currentColor;
}

.type-grid label input,
.pill-row label input{
    display:none;
}

.type-grid label:hover,
.type-grid label.active{
    background:var(--green-light);
    color:var(--green);
    border-color:#bfe6c6;
}

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

.pill-row label,
.pill-row a{
    min-height:32px;
    padding:7px 13px;
    border:1px solid #dfe8e6;
    border-radius:7px;
    background:#fff;
    color:#33464b;
    font-size:12px;
    font-weight:800;
    cursor:pointer;
    transition:.25s ease;
    text-decoration:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
}

.pill-row label:hover,
.pill-row a:hover,
.pill-row label.active,
.pill-row a.active{
    background:var(--green);
    color:#fff;
    border-color:var(--green);
    box-shadow:0 8px 18px rgba(7,149,27,.16);
}

.range-values{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:10px;
    font-size:13px;
    color:var(--dark);
    font-weight:900;
}

.range-values span{
    background:#eefaf1;
    color:var(--green);
    padding:6px 10px;
    border-radius:7px;
}

.price-range-wrap{
    position:relative;
    height:34px;
    margin:6px 0 8px;
}

.price-range-wrap input[type="range"]{
    position:absolute;
    left:0;
    top:8px;
    width:100%;
    pointer-events:none;
    appearance:none;
    background:transparent;
}

.price-range-wrap input[type="range"]::-webkit-slider-runnable-track{
    height:4px;
    background:#dfe8e6;
    border-radius:30px;
}

.price-range-wrap input[type="range"]::-webkit-slider-thumb{
    pointer-events:auto;
    appearance:none;
    width:16px;
    height:16px;
    border-radius:50%;
    background:#fff;
    border:3px solid var(--green);
    margin-top:-6px;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.12);
}

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

.two-inputs input{
    width:100%;
    height:40px;
    border:1px solid #dfe8e6;
    border-radius:7px;
    padding:0 12px;
    font-size:12px;
    color:#34464b;
    outline:0;
}

.two-inputs input:focus{
    border-color:var(--green);
    box-shadow:0 0 0 3px rgba(7,149,27,.08);
}

.filter-head a{
    color:var(--green);
    font-weight:900;
    font-size:13px;
    text-decoration:none;
}

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

.apply-btn:hover{
    background:#067d17;
}

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

.sort-box select:focus{
    border-color:var(--green);
}

.listing-card{
    text-decoration:none;
    color:inherit;
}

.listing-card:hover{
    transform:translateY(-3px);
    box-shadow:0 12px 28px rgba(16,41,47,.08);
    transition:.25s ease;
}

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

@media(max-width:575px){
    .type-grid{
        grid-template-columns:repeat(2,1fr);
    }

    .two-inputs{
        grid-template-columns:1fr;
    }
}
.type-grid label,
.pill-row label {
    user-select: none;
}

.type-grid input,
.pill-row input {
    display: none !important;
}

.type-grid label.active,
.type-grid label:has(input:checked) {
    background: #eefaf1 !important;
    color: var(--green) !important;
    border-color: #bfe6c6 !important;
}

.pill-row label.active,
.pill-row label:has(input:checked),
.pill-row a.active {
    background: var(--green) !important;
    color: #fff !important;
    border-color: var(--green) !important;
}

.buy-hero{
    position:relative;
    display:grid;
    grid-template-columns:minmax(0,1.25fr) 430px;
    gap:34px;
    align-items:stretch;
    min-height:330px;
    padding:34px;
    margin-bottom:28px;
    border:1px solid #e7f0ec;
    border-radius:22px;
    background:
        radial-gradient(circle at top left, rgba(7,149,27,.10), transparent 34%),
        linear-gradient(135deg, #ffffff 0%, #f7fff9 100%);
    overflow:hidden;
}

.buy-hero::after{
    content:"";
    position:absolute;
    right:-80px;
    bottom:-90px;
    width:260px;
    height:260px;
    border-radius:50%;
    background:rgba(7,149,27,.08);
}

.buy-hero-content{
    position:relative;
    z-index:2;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

.hero-breadcrumb{
    margin-bottom:24px;
}

.page-subtitle{
    color:var(--green);
    font-size:16px;
    font-weight:900;
    margin-bottom:10px;
}

.buy-hero h1{
    max-width:720px;
    font-size:48px;
    line-height:1.05;
    font-weight:950;
    letter-spacing:-1.6px;
    color:var(--dark);
    margin:0 0 14px;
}

.buy-hero p{
    max-width:650px;
    color:#5f6b6f;
    font-size:17px;
    line-height:1.7;
    margin:0;
}

.hero-stats{
    display:flex;
    gap:14px;
    margin-top:26px;
    flex-wrap:wrap;
}

.hero-stats div{
    min-width:120px;
    padding:14px 16px;
    border:1px solid #dff0e3;
    border-radius:14px;
    background:#fff;
    box-shadow:0 10px 26px rgba(16,41,47,.05);
}

.hero-stats b{
    display:block;
    color:var(--green);
    font-size:22px;
    font-weight:950;
    line-height:1;
    margin-bottom:5px;
}

.hero-stats span{
    color:#536267;
    font-size:12px;
    font-weight:800;
}

.buy-hero-image{
    position:relative;
    z-index:2;
    min-height:260px;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 20px 45px rgba(16,41,47,.12);
}

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

@media(max-width:991px){
    .buy-hero{
        grid-template-columns:1fr;
        padding:24px;
    }

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

    .buy-hero-image{
        min-height:230px;
    }
}

@media(max-width:575px){
    .buy-hero{
        padding:20px;
        border-radius:18px;
        min-height:auto;
    }

    .hero-breadcrumb{
        margin-bottom:18px;
    }

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

    .buy-hero p{
        font-size:14px;
    }

    .hero-stats{
        gap:10px;
    }

    .hero-stats div{
        flex:1;
        min-width:90px;
        padding:12px;
    }
}
/* Pagination - clean UI */
.pagination-box{
    margin-top:34px;
    display:flex;
    justify-content:center;
}

.pagination-box nav{
    width:auto;
}

.pagination-box nav > div:first-child{
    display:none !important;
}

.pagination-box nav > div:last-child{
    display:flex;
    align-items:center;
    justify-content:center;
}

.pagination-box nav span,
.pagination-box nav a{
    min-width:38px;
    height:38px;
    padding:0 13px !important;
    margin:0 4px;
    border:1px solid #dfe8e6 !important;
    border-radius:10px !important;
    background:#fff !important;
    color:#34484e !important;
    font-size:13px;
    font-weight:800;
    display:inline-flex !important;
    align-items:center;
    justify-content:center;
    box-shadow:none !important;
}

.pagination-box nav span[aria-current="page"] span{
    background:var(--green) !important;
    color:#fff !important;
    border-color:var(--green) !important;
}

.pagination-box nav a:hover{
    background:#eefaf1 !important;
    color:var(--green) !important;
    border-color:#bfe6c6 !important;
}

.pagination-box svg{
    width:16px !important;
    height:16px !important;
}

/* Mobile hero image hide */
@media(max-width:575px){
    .buy-hero{
        grid-template-columns:1fr;
    }

    .buy-hero-image{
        display:none !important;
    }

    .hero-stats{
        margin-top:20px;
    }
}

.full-width{
    grid-column:1 / -1;
}

.extra-details-grid{
    display:grid;
    grid-template-columns:repeat(2, minmax(0,1fr));
    gap:14px;
}

.extra-detail-item{
    border:1px solid #e5eeee;
    border-radius:10px;
    padding:13px 14px;
    background:#fff;
}

.extra-detail-item span{
    display:block;
    font-size:12px;
    font-weight:800;
    color:#6b777b;
    margin-bottom:5px;
}

.extra-detail-item b{
    display:block;
    font-size:14px;
    font-weight:900;
    color:#10292f;
}

.property-social-links{
    display:flex;
    gap:10px;
    margin-top:16px;
}

.property-social-links a{
    width:36px;
    height:36px;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#eefaf1;
    color:#2563C4;
    text-decoration:none;
    font-size:17px;
    transition:.25s ease;
}

.property-social-links a:hover{
    background:#2563C4;
    color:#fff;
    transform:translateY(-2px);
}

@media(max-width:575px){
    .extra-details-grid{
        grid-template-columns:1fr;
    }
}

.seo-keyword-section {
    margin-top: 45px;
    padding: 28px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(0,0,0,0.06);
}

.seo-keyword-section h2 {
    font-size: 24px;
    font-weight: 800;
    color: #111;
    margin-bottom: 18px;
    line-height: 1.3;
}

.seo-keyword-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.seo-keyword-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fafafa;
    border: 1px solid #eee;
    color: #222;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.25s ease;
}

.seo-keyword-card:hover {
    background: #111;
    color: #fff;
    transform: translateY(-2px);
}

.seo-keyword-card svg {
    width: 17px;
    height: 17px;
}

@media (max-width: 991px) {
    .seo-keyword-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .seo-keyword-section {
        padding: 20px;
    }

    .seo-keyword-grid {
        grid-template-columns: 1fr;
    }

    .seo-keyword-section h2 {
        font-size: 20px;
    }
}

/* Pagination mobile fix */
.pagination-box{
    width:100%;
    overflow:hidden;
}

.pagination-box nav{
    max-width:100%;
}

.pagination-box nav > div:last-child{
    display:flex !important;
    flex-wrap:wrap;
    justify-content:center;
    gap:6px;
}

.pagination-box nav span,
.pagination-box nav a{
    min-width:36px;
    height:36px;
    padding:0 10px !important;
    margin:0 !important;
}


/* Mobile */
@media(max-width:575px){

    .pagination-box{
        margin-top:25px;
        padding:0 10px;
    }

    .pagination-box nav > div:last-child{
        gap:5px;
    }

    .pagination-box nav span,
    .pagination-box nav a{
        min-width:34px;
        height:34px;
        font-size:12px;
        padding:0 8px !important;
    }

}