/*==================================================
        PROPERTY LISTING LAYOUT
==================================================*/

.listing-section{
    padding:60px 0;
    background:#f5f7fb;
}

.listing-wrapper{
    display:grid;
    grid-template-columns:330px 1fr;
    gap:30px;
    align-items:start;
}

/*==================================================
        FILTER SIDEBAR
==================================================*/

.filter-sidebar{

    position:sticky;
    top:90px;

    background:#fff;

    border-radius:18px;

    padding:25px;

    box-shadow:0 10px 35px rgba(0,0,0,.08);

    max-height:calc(100vh - 120px);

    overflow-y:auto;

}

.filter-sidebar::-webkit-scrollbar{

    width:6px;

}

.filter-sidebar::-webkit-scrollbar-thumb{

    background:#d2d2d2;
    border-radius:20px;

}

.filter-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:25px;

    padding-bottom:18px;

    border-bottom:1px solid #ececec;

}

.filter-header h3{

    font-size:24px;
    color:#222;

}

.clear-filter{

    background:none;

    border:none;

    color:#6c2bd9;

    cursor:pointer;

    font-weight:600;

}

/*==================================================
        FILTER BOX
==================================================*/

.filter-box{

    margin-bottom:28px;

}

.filter-box h4{

    font-size:17px;

    margin-bottom:15px;

    color:#222;

}

.filter-box input[type="text"],
.filter-box input[type="number"],
.filter-box select{

    width:100%;

    height:46px;

    border:1px solid #ddd;

    border-radius:10px;

    padding:0 15px;

    outline:none;

    transition:.3s;

}

.filter-box input:focus,
.filter-box select:focus{

    border-color:#6c2bd9;

}

.budget-inputs{

    display:grid;

    grid-template-columns:1fr 1fr;

    gap:12px;

}

/*==================================================
        CHECKBOXES
==================================================*/

.filter-box label{

    display:flex;

    align-items:center;

    gap:10px;

    margin-bottom:12px;

    cursor:pointer;

    color:#555;

    transition:.25s;

}

.filter-box label:hover{

    color:#6c2bd9;

}

.filter-box input[type="checkbox"]{

    width:18px;

    height:18px;

    accent-color:#6c2bd9;

}

/*==================================================
        BHK BUTTONS
==================================================*/

.bhk-buttons{

    display:flex;

    flex-wrap:wrap;

    gap:10px;

}

.bhk-buttons button{

    border:1px solid #ddd;

    background:#fff;

    padding:10px 18px;

    border-radius:30px;

    cursor:pointer;

    transition:.3s;

    font-size:14px;

}

.bhk-buttons button:hover,
.bhk-buttons button.active{

    background:#6c2bd9;

    border-color:#6c2bd9;

    color:#fff;

}

/*==================================================
        APPLY BUTTON
==================================================*/

.apply-filter{

    width:100%;

    height:52px;

    border:none;

    background:#6c2bd9;

    color:#fff;

    border-radius:12px;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

.apply-filter:hover{

    background:#5620b5;

}

/*==================================================
        PROPERTY LIST AREA
==================================================*/

.property-list{

    min-height:600px;

}

/*==================================================
        FILTER BOX HOVER
==================================================*/

.filter-box{

    padding-bottom:18px;

    border-bottom:1px solid #f0f0f0;

}

.filter-box:last-child{

    border:none;

    padding-bottom:0;

}

/*==================================================
        INPUT PLACEHOLDER
==================================================*/

.filter-box input::placeholder{

    color:#999;

}

/*==================================================
        SELECT
==================================================*/

.filter-box select{

    cursor:pointer;

}

/*==================================================
        TRANSITIONS
==================================================*/

.filter-sidebar,
.filter-box,
.apply-filter,
.bhk-buttons button{

    transition:.3s;

}
/*=========================================
        PROPERTY TOOLBAR
=========================================*/

.property-toolbar{

    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:30px;

}

.toolbar-right{

    display:flex;
    gap:15px;
    align-items:center;

}

.sort-select{

    height:45px;
    padding:0 15px;
    border:1px solid #ddd;
    border-radius:10px;

}

.view-switch{

    display:flex;
    gap:8px;

}

.view-switch button{

    width:45px;
    height:45px;
    border:none;
    background:#fff;
    border-radius:10px;
    cursor:pointer;

}

.view-switch .active{

    background:#6c2bd9;
    color:#fff;

}

/*=========================================
        PROPERTY GRID
=========================================*/

.property-grid{

    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:25px;

}

.listing-card{

    background:#fff;
    border-radius:18px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,.08);
    transition:.3s;

}

.listing-card:hover{

    transform:translateY(-6px);

}

.listing-image{

    position:relative;

}

.listing-image img{

    width:100%;
    height:240px;
    object-fit:cover;

}

.featured-badge{

    position:absolute;
    top:15px;
    left:15px;
    background:#6c2bd9;
    color:#fff;
    padding:6px 14px;
    border-radius:20px;
    font-size:13px;

}

.save-property{

    position:absolute;
    top:15px;
    right:15px;

    width:42px;
    height:42px;

    border:none;
    border-radius:50%;

    background:#fff;

    cursor:pointer;

}

.listing-content{

    padding:25px;

}

.property-price{

    font-size:28px;
    font-weight:700;
    color:#6c2bd9;
    margin-bottom:12px;

}

.property-location{

    color:#666;
    margin:12px 0;

}

.property-info{

    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin:18px 0;

}

.property-info span{

    background:#f3f1ff;
    color:#6c2bd9;
    padding:8px 14px;
    border-radius:20px;
    font-size:13px;

}

.property-footer{

    display:flex;
    gap:12px;

}

.view-btn,
.contact-btn{

    flex:1;
    text-align:center;
    padding:12px;
    border-radius:10px;
    text-decoration:none;
    font-weight:600;

}

.view-btn{

    background:#6c2bd9;
    color:#fff;

}

.contact-btn{

    border:1px solid #6c2bd9;
    color:#6c2bd9;

}

/*=========================================
        PAGINATION
=========================================*/

.pagination{

    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:40px;

}

.pagination a{

    width:45px;
    height:45px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:10px;

    text-decoration:none;

    background:#fff;

    color:#333;

}

.pagination .active{

    background:#6c2bd9;
    color:#fff;

}
/*=====================================
      PROPERTY HERO
=====================================*/

.listing-hero{

    position:relative;

    background:url("images/banner.jpg") center/cover;

    padding:110px 0 80px;

    color:#fff;

}

.hero-overlay{

    position:absolute;

    inset:0;

    background:rgba(0,0,0,.55);

}

.listing-hero .container{

    position:relative;

    z-index:2;

}

.breadcrumb{

    margin-bottom:35px;

    font-size:14px;

}

.breadcrumb a{

    color:#fff;

    text-decoration:none;

}

.breadcrumb span{

    margin:0 8px;

}

.hero-content{

    max-width:750px;

}

.hero-content h1{

    font-size:52px;

    margin-bottom:15px;

}

.hero-content p{

    font-size:18px;

    color:#ddd;

    margin-bottom:40px;

}

.hero-search{

    background:#fff;

    border-radius:18px;

    padding:20px;

    box-shadow:0 15px 40px rgba(0,0,0,.15);

}

.search-grid{

    display:grid;

    grid-template-columns:2fr 1fr 1fr auto;

    gap:15px;

}

.search-field{

    position:relative;

}

.search-field i{

    position:absolute;

    left:15px;

    top:50%;

    transform:translateY(-50%);

    color:#6c2bd9;

}

.search-field input,
.search-field select{

    width:100%;

    height:56px;

    border:1px solid #ddd;

    border-radius:10px;

    padding-left:45px;

    outline:none;

    font-size:15px;

}

.hero-search-btn{

    background:#6c2bd9;

    color:#fff;

    border:none;

    border-radius:10px;

    padding:0 28px;

    cursor:pointer;

    font-size:16px;

    font-weight:600;

    transition:.3s;

}

.hero-search-btn:hover{

    background:#5320b0;

}

.quick-filters{

    display:flex;

    flex-wrap:wrap;

    gap:12px;

    margin-top:30px;

}

.quick-filters button{

    border:none;

    background:rgba(255,255,255,.18);

    color:#fff;

    padding:10px 18px;

    border-radius:30px;

    cursor:pointer;

    transition:.3s;

    backdrop-filter:blur(10px);

}

.quick-filters button.active,
.quick-filters button:hover{

    background:#6c2bd9;

}
/* ===========================================
   Property Overview Table
=========================================== */

.table-responsive{
    width:100%;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    border-radius:15px;
}

.property-table{
    width:100%;
    min-width:850px;
    border-collapse:collapse;
    background:#fff;
    border-radius:15px;
    overflow:hidden;
    box-shadow:0 10px 35px rgba(0,0,0,.08);
}

.property-table tr{
    transition:.3s;
}

.property-table tr:nth-child(even){
    background:#fcfcfc;
}

.property-table tr:hover{
    background:#f8fbff;
}

.property-table td{
    padding:18px 20px;
    border:1px solid #ececec;
    font-size:15px;
    color:#444;
    vertical-align:middle;
}

.property-table td:nth-child(odd){
    width:22%;
    font-weight:600;
    background:#fafafa;
    color:#222;
}

.property-table td:nth-child(even){
    width:28%;
    font-weight:500;
    color:#666;
}

/* ===========================
   Icon Design
=========================== */

.icon{
    display:inline-flex;
    justify-content:center;
    align-items:center;
    width:36px;
    height:36px;
    margin-right:10px;
    border-radius:10px;
    color:#fff;
    font-size:15px;
    vertical-align:middle;
    box-shadow:0 5px 15px rgba(0,0,0,.10);
}

/* Icon Colors */

.blue{
    background:#2563eb;
}

.purple{
    background:#7c3aed;
}

.green{
    background:#16a34a;
}

.orange{
    background:#ea580c;
}

.red{
    background:#dc2626;
}

.cyan{
    background:#0891b2;
}

.pink{
    background:#db2777;
}

.yellow{
    background:#ca8a04;
}

.teal{
    background:#0f766e;
}

.indigo{
    background:#4f46e5;
}

.emerald{
    background:#059669;
}

.brown{
    background:#92400e;
}

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

@media (max-width:991px){

    .table-responsive{
        margin:0 -15px;
        padding:0 15px;
    }

    .property-table{
        min-width:750px;
    }

}

@media (max-width:768px){

    .property-table{
        min-width:700px;
    }

    .property-table td{
        padding:14px 16px;
        font-size:14px;
    }

    .icon{
        width:30px;
        height:30px;
        font-size:13px;
        border-radius:8px;
        margin-right:8px;
    }

}

@media (max-width:480px){

    .property-table{
        min-width:650px;
    }

    .property-table td{
        padding:12px;
        font-size:13px;
    }

    .icon{
        width:28px;
        height:28px;
        font-size:12px;
    }

}
