/* Sidebar Filters - ETS Tur Style Redesign */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

.sidebar-filters-container {
    font-family: 'Montserrat', sans-serif;
}

/* Group Card Styling */
.filter-group-card {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid #eef2f6;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.filter-group-header {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: #212529;
    background: #ffffff;
    border-bottom: 1px solid #f8fafc;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group-content {
    padding: 16px 20px;
}

/* Custom Checkbox Design */
.filter-item-row {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    transition: all 0.2s;
}

.filter-item-row:hover .filter-checkbox-custom {
    border-color: #007bff;
}

.filter-checkbox-input {
    display: none;
}

.filter-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #DBE0E0;
    border-radius: 4px;
    margin-right: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    flex-shrink: 0;
}

.filter-checkbox-input:checked+.filter-checkbox-custom {
    background-color: #007bff;
    border-color: #007bff;
}

.filter-checkbox-custom svg {
    width: 12px;
    height: 12px;
    color: white;
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-checkbox-input:checked+.filter-checkbox-custom svg {
    transform: scale(1);
}

.filter-label-text {
    font-size: 13.5px;
    color: #4a5568;
    user-select: none;
    line-height: 1.4;
    font-weight: 400;
}

.filter-count-badge {
    margin-left: auto;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
}

/* Price Range Section */
.price-range-inputs {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.price-input-styled {
    width: 100%;
    height: 40px;
    background-color: #F6F9FD;
    border: 0.8px solid #DBE0E0;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 13px;
    color: #212529;
    font-weight: 500;
    transition: border-color 0.2s;
}

.price-input-styled:focus {
    outline: none;
    border-color: #007bff;
    background-color: #ffffff;
}

.price-search-btn {
    height: 40px;
    background-color: #00A99D;
    /* ETS Tur Teal */
    color: white;
    padding: 0 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.price-search-btn:hover {
    background-color: #008f85;
}

/* Show More Link */
.filter-show-more {
    display: block;
    margin-top: 12px;
    font-size: 12.5px;
    color: #007bff;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-show-more:hover {
    color: #0056b3;
}

/* Search Input inside groups */
.filter-group-search {
    position: relative;
    margin-bottom: 15px;
}

.filter-group-search input {
    width: 100%;
    height: 42px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding-left: 40px;
    padding-right: 15px;
    font-size: 13.5px;
    transition: all 0.3s;
}

.filter-group-search input:focus {
    background: #fff;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-group-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 14px;
}

/* Mobile Collapsible Filters */
@media (max-width: 699px) {
    .mobile-collapsible-filters {
        overflow: hidden;
        transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, transform 0.3s ease, margin 0.3s ease;
        display: block !important;
        /* Always block, controlled by transition classes */
    }

    .mobile-collapsible-filters.is-closed {
        max-height: 0;
        opacity: 0;
        transform: translateY(-10px);
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        pointer-events: none;
    }

    .mobile-collapsible-filters.is-open {
        max-height: 5000px;
        /* Large enough to fit all filters */
        opacity: 1;
        transform: translateY(0);
        margin-top: 1.25rem !important;
        margin-bottom: 1.25rem !important;
        pointer-events: auto;
    }
}