/* =========================================
TOP ACTIVE FILTER BAR
========================================= */

.project-filter-bar{
    background:#fff;
    padding:5px 0;
    border-bottom:1px solid #eee;
    position:sticky;
    top:0;
    z-index:9;
}
/* =========================================
PROJECT TOPBAR
========================================= */

.project-list-topbar{

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:20px;

    margin-bottom:30px;

    padding:0;

    background:#fff;

    border:1px solid #f8f9fa;

    border-radius:10px;
}

/* =========================================
PROJECT COUNT
========================================= */

.project-count{

    font-size:15px;

    color:#555;
    padding-left: 10px;
}

.project-count strong{

    font-size:18px;

    color:#111;
}

/* =========================================
SORT DROPDOWN
========================================= */

.project-sort1 select{

    height:46px;

    padding:0 16px;

    border:1px solid #ddd;

    border-radius:10px;

    font-size:14px;

    min-width:230px;

    background:#fff;

    outline:none;

    cursor:pointer;
}

/* =========================================
MOBILE
========================================= */

@media(max-width:768px){

    .project-list-topbar{

        flex-direction:column;

        align-items:stretch;
    }

    .project-sort1 select{

        width:100%;
    }
}
/* =========================================
ACTIVE FILTER CHIPS
========================================= */

.active-filters{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.filter-chip{
    background:#f3f3f3;
    padding:5px 12px;
    border-radius:30px;
    text-decoration:none;
    color:#111;
    font-size:14px;
    font-weight:600;
    display:flex;
    align-items:center;
    gap:8px;
    transition:.2s;
}

.filter-chip:hover{
    background:#111;
    color:#fff;
}

.filter-chip span{
    color:red;
    font-size:16px;
}

/* =========================================
MAIN PROJECT LAYOUT
========================================= */

.project-layout{
    display:flex;
    gap:10px;
    align-items:flex-start;
    padding: 20px 0
}
.active-filter{
    background:#0d4db8 !important;
    color:#fff !important;
    border-color:#0d4db8 !important;
}
.filter-options-scroll{

    max-height:220px;
    overflow-y:auto;
    padding-right:0px;
}

/* scrollbar */

.filter-options-scroll::-webkit-scrollbar{
    width:6px;
}

.filter-options-scroll::-webkit-scrollbar-thumb{
    background:#d4d4d4;
    border-radius:20px;
}
/* =========================================
DESKTOP FILTER SIDEBAR
========================================= */

.filter-drawer{

    width:320px;

    min-width:320px;

    background:#fff;

    border:1px solid #eee;

    border-radius:12px;

    padding:20px;

    position:sticky;

    top:50px;

    left:0;

    z-index:1;

    box-shadow:0 5px 20px rgba(0,0,0,.05);

    /*
    =========================================
    SIDEBAR SCROLL
    =========================================
    */

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

    overflow-y:auto;

    overflow-x:hidden;

    scrollbar-width:thin;

    scrollbar-color:#d0d0d0 transparent;
}
/* =========================================
SIDEBAR SCROLLBAR
========================================= */

.filter-drawer::-webkit-scrollbar{

    width:6px;
}

.filter-drawer::-webkit-scrollbar-track{

    background:transparent;
}

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

    background:#d5d5d5;

    border-radius:20px;
}

.filter-drawer::-webkit-scrollbar-thumb:hover{

    background:#bdbdbd;
}
.project-price{
    min-width:0;
    flex:1;
}

.project-price strong{

    font-size:18px;
    line-height:1.3;

    display:block;

    white-space:normal;
    word-break:break-word;
}

.project-footer{

    display:flex;
    gap:15px;
    align-items:flex-end;
}

.project-footer .btn{

    min-width:auto;
    text-align:center;
}
/* =========================================
FILTER HEADER
========================================= */

.filter-drawer-header{

    display:flex;

    justify-content:space-between;

    align-items:center;

    margin-bottom:15px;

    border-bottom:1px solid #eee;

    padding-bottom:15px;

    position:sticky;

    top:-20px;

    background:#fff;

    z-index:5;
}
.filter-drawer-header h4{
    font-size:22px;
    font-weight:700;
    margin:0;
}

.close-filter{
    border:none;
    background:none;
    font-size:28px;
    cursor:pointer;
    display:none;
}

/* =========================================
FILTER GROUPS
========================================= */
.filter-group{

    padding-bottom:20px;

    border-bottom:1px solid #f1f1f1;
}

.filter-group:last-child{

    border-bottom:none;
}




.filter-group h5{
    margin: 10px 0;
    font-size: 16px;
    font-weight: 700;
    color: #555;
}

/* =========================================
FILTER LINKS
========================================= */

.filter-group a{
   display: inline-block;
    margin:8px 0 0 0;
    padding:5px 8px;
    background:#f5f5f5;
    border-radius:30px;
    text-decoration:none;
    color:#111;
    font-size:14px;
    transition:.2s;
    border:1px solid transparent;
}

.filter-group a:hover{
    background:#111;
    color:#fff;
}

/* =========================================
PROJECT LIST AREA
========================================= */

.project-listing-area{
    flex:1;
    min-width:0;
}

/* =========================================
MOBILE FILTER BUTTON
========================================= */

.mobile-filter-header{
    display:none;
}

/* =========================================
MOBILE VIEW
========================================= */

@media(max-width:768px){

    .project-layout{
        display:block;
    }

    .mobile-filter-header{
        display:block;
        margin-bottom:15px;
    }

    .open-filter-btn{
        border:none;
        background:#111;
        color:#fff;
        padding:12px 20px;
        border-radius:8px;
        font-size:15px;
        font-weight:600;
    }

  .filter-drawer{

    position:fixed;

    top:0;

    left:-100%;

    width:320px;

    max-width:90%;

    height:100vh;
max-height: fit-content;
    overflow-y:auto;

    overflow-x:hidden;

    z-index:99999;

    transition:.3s;

    border-radius:0;

    background:#fff;

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

    -webkit-overflow-scrolling:touch;
}
    .filter-drawer.active{
        left:0;
    }

    .close-filter{
        display:block;
    }

    .project-filter-bar{
        padding:10px 0;
    }

    .active-filters{
        overflow:auto;
        flex-wrap:nowrap;
        padding-bottom:5px;
    }

    .filter-chip{
        white-space:nowrap;
    }
}