.agent-filter-bar {
    display: flex;  
    gap: 15px;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.filter-group {
    display: flex;
    align-items: center;
}

.agent-filter-bar input,
.agent-filter-bar select {
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 100px;
    transition: 0.2s ease;
}

.agent-filter-bar input:focus,
.agent-filter-bar select:focus {
    border-color: #C9A227;
    outline: none;
}

.filter-btn {
    background: #C9A227;
    color: #fff;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s ease;
}

.filter-btn:hover {
    background: #a8841c;
}

.filter-dropdown {
    position: relative;
}

.dropdown-trigger {
    padding: 10px 14px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    min-width: 150px;
    text-align: left;
}

.dropdown-panel {
    position: absolute;
    top: 110%;
    left: 0;
    width: 240px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 15px;
    display: none;
    z-index: 100;
}

.checkbox-item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 14px;
    cursor: pointer;
}

.option-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0px auto;
    font-size: 14px;
    cursor: pointer;
    align-content: flex-start;
    flex-direction: row;
}
.checkbox-item input {
    accent-color: #C9A227;
}

.dropdown-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.clear-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
}

.apply-btn {
    background: #C9A227;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}
/* css for the active filter chip*/
 .active-filters {
    margin: 20px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-label {
    font-weight: 600;
    color: #444;
}

.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background-color: #f1f3f5;
    border-radius: 20px;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

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

.chip-close {
    font-weight: bold;
    font-size: 14px;
}

.clear-all {
    font-size: 14px;
    color: #c79a00;
    font-weight: 500;
    text-decoration: none;
}
.mobile-filter-bar {
    display: none;
}
/*for mobile responsiveness*/
/*mobile for filter bar*/

@media (max-width: 768px) {

    .agent-filter-bar {
        display: none;
    }

@media (max-width: 768px) {

    .filter-sort-buttons {
        display: flex;
        justify-content: center;
        flex-direction: row;
        gap: 15px;
        padding: 15px 20px;
        background: #fff;
    }

    .mobile-filter-btn,
    .mobile-sort-btn {
        display: flex;
        justify-content: center;
        gap:15px;
        height: 44px;
        border-radius: 8px;
        border: 1px solid #ddd;
        background: white;
        font-weight: 500;
        cursor: pointer;
    }

}

}

/* filter drawer css for mobile */
.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 90;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -100%;
    background: white;
    padding: 20px;
    transition: 0.35s ease;
    z-index: 100;
    max-height: 85vh;
    overflow-y: auto;
}

.mobile-drawer.small {
    max-height: 40vh;
}

.mobile-drawer.active {
    bottom: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.drawer-close {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
}

@media screen and (max-width: 767.98px) {

    .mobile-filter-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-group, .dropdown-panel  {
        width: 100%;
    }
    .mobile-filter-bar input, .mobile-filter-bar select, 
    .mobile-filter-bar button{
    width: 100%;
}

.filter-group input {
    width: 20%;
}

} 

@media screen and (max-width: 380px) {

.mobile-filter-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .filter-group, .dropdown-panel  {
        width: 100%;
    }
    .mobile-filter-bar input, .mobile-filter-bar select, 
    .mobile-filter-bar button, .filter-group input{
    width: 100%;
}

}