/* Auction Filters AJAX - CSS */

/* Filter Form Styles */
#auction-ajax-filters {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #eaeaea;
}

#auction-ajax-filters label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

#auction-ajax-filters select,
#auction-ajax-filters input {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 10px 14px;
    width: 100%;
    transition: all 0.2s ease;
    background-color: #f9f9f9;
    font-size: 14px;
}

#auction-ajax-filters select:focus,
#auction-ajax-filters input:focus {
    border-color: #4a90e2;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background-color: #fff;
}

#auction-ajax-filters .input-group-text {
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    color: #555;
    border-radius: 8px;
}

/* Button Styles */
.button-filters {
    display: flex;
    justify-content: flex-end;
    margin-top: 24px;
}

.button-result {
    display: flex;
    gap: 12px;
}

.btn-result {
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.apply-filter {
    background-color: #4a90e2;
    color: white;
}

.apply-filter:hover {
    background-color: #3a80d2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.reset-filter {
    background-color: #f0f0f0;
    color: #555;
    border: 1px solid #e0e0e0;
}

.reset-filter:hover {
    background-color: #e5e5e5;
    color: #333;
}

/* Selected Filters */
.selected-filters {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 16px;
    margin-top: 24px;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    background-color: #eef5fd;
    border-radius: 30px;
    padding: 6px 14px;
    margin-right: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    border: 1px solid #d9e8f6;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: #e1eeff;
    transform: translateY(-1px);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.06);
}

.tag-label {
    font-weight: 600;
    margin-right: 5px;
    color: #4a90e2;
}

.tag-value {
    color: #333;
}

.tag-remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    color: #999;
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tag-remove:hover {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
}

/* Loading Indicator */
#loading-indicator {
    padding: 50px 0;
    text-align: center;
}

#loading-indicator .spinner-border {
    color: #4a90e2;
    width: 3rem;
    height: 3rem;
}

/* Results Container */
#auction-results-container {
    margin-top: 30px;
}

.result-count {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
    padding-left: 8px;
    border-left: 3px solid #4a90e2;
}

/* Auction Item Styles */
.auction-items {
    display: flex;
    flex-wrap: wrap;
}

.auction-item-wrapper {
    margin-bottom: 30px;
    transition: transform 0.3s ease;
}

.auction-item {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.auction-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
    border-color: #d9e8f6;
}

.auction-image {
    height: 200px;
    overflow: hidden;
    background-color: #f8f9fa;
    position: relative;
}

.auction-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.auction-item:hover .auction-image img {
    transform: scale(1.08);
}

.auction-details {
    padding: 18px;
}

.auction-details h3 {
    margin-top: 0;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #222;
    line-height: 1.3;
}

.auction-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.auction-lot, .auction-house, .auction-date {
    font-size: 14px;
    margin-bottom: 6px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 6px;
}

.auction-lot i, .auction-house i, .auction-date i {
    color: #4a90e2;
    font-size: 12px;
}

/* Pagination Styles */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    margin-bottom: 40px;
}

.pagination {
    display: flex;
    padding-left: 0;
    list-style: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.page-item {
    margin: 0;
}

.page-link {
    position: relative;
    display: block;
    padding: 10px 16px;
    margin-left: -1px;
    line-height: 1.25;
    color: #4a90e2;
    background-color: #fff;
    border: 1px solid #eaeaea;
    transition: all 0.2s ease;
}

.page-item.active .page-link {
    z-index: 3;
    color: #fff;
    background-color: #4a90e2;
    border-color: #4a90e2;
    font-weight: 600;
}

.page-item.disabled .page-link {
    color: #aaa;
    pointer-events: none;
    cursor: auto;
    background-color: #f9f9f9;
    border-color: #eaeaea;
}

.page-link:hover {
    background-color: #f5f5f5;
    border-color: #e0e0e0;
    color: #3a80d2;
}

.page-item.active .page-link:hover {
    background-color: #3a80d2;
    border-color: #3a80d2;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .button-filters {
        justify-content: center;
    }
    
    .auction-image {
        height: 160px;
    }
}

/* Select2 Customization */
.select2-container {
    width: 100% !important;
    margin-bottom: 10px;
}

.select2-container--default .select2-selection--single {
    height: auto;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: none;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: #4a90e2;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #333;
    line-height: 1.5;
    padding-left: 0;
    height: auto;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
    top: 0;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #999 transparent transparent transparent;
    border-width: 6px 4px 0 4px;
    transition: transform 0.2s ease;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #4a90e2 transparent;
    border-width: 0 4px 6px 4px;
}

.select2-search--dropdown {
    padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    background-color: #f9f9f9;
    transition: all 0.2s ease;
    background-image: none!important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background-color: #fff;
}

.select2-container--default .select2-results__option {
    padding: 10px 14px;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #4a90e2;
    color: white;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: #eef5fd;
    color: #4a90e2;
    font-weight: 500;
}

.select2-dropdown {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    background-color: #fff;
}

/* Select2 for Multiple Select */
.select2-container--default .select2-selection--multiple {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    min-height: 42px;
    padding: 4px 10px;
    background-color: #f9f9f9;
}

.select2-container--default.select2-container--focus .select2-selection--multiple {
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background-color: #fff;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #eef5fd;
    border: 1px solid #d9e8f6;
    border-radius: 30px;
    padding: 5px 10px;
    margin-top: 5px;
    margin-right: 5px;
    font-size: 13px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #999;
    margin-right: 6px;
    font-weight: bold;
    border-right: 1px solid #d9e8f6;
    padding-right: 6px;
    transition: color 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #f44336;
}

/* Mobile Filter Specific Styles */
@media (max-width: 768px) {
    .mobile-filter-container {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1050;
        background-color: #fff;
        overflow-y: auto;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        width: 100%;
        height: 100%;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
    }
    
    .mobile-filter-container.show {
        display: block !important;
        transform: translateX(0) !important;
    }
    
    .filter-overlay {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        background-color: rgba(0, 0, 0, 0.5);
        z-index: 1040;
    }
    
    .filter-overlay.show {
        display: block;
    }
    
    .mobile-filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 20px;
        border-bottom: 1px solid #eaeaea;
        background-color: #fff;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }
    
    .mobile-filter-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 700;
        color: #333;
    }
    
    .mobile-filter-section {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        max-height: 70vh;
        padding: 0;
        background-color: #f8f9fa;
    }
    
    .mobile-filter-search {
        padding: 15px 20px;
        background-color: #fff;
        border-bottom: 1px solid #eaeaea;
    }
    
    .mobile-filter-search input {
        border-radius: 30px;
        padding: 12px 20px;
        background-color: #f5f5f5;
        border: 1px solid #eaeaea;
        font-size: 15px;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
        transition: all 0.3s ease;
    }
    
    .mobile-filter-search input:focus {
        background-color: #fff;
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }
    
    .close-filter {
        background: none;
        border: none;
        font-size: 24px;
        color: #777;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.2s ease;
    }
    
    .close-filter:active {
        background-color: #f0f0f0;
        transform: scale(0.95);
    }
    
    .mobile-filter-actions {
        display: flex;
        justify-content: space-between;
        padding: 15px 20px;
        background-color: #fff;
        border-top: 1px solid #eaeaea;
        position: sticky;
        bottom: 0;
        z-index: 10;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    }
    
    .btn-reset-filter {
        background-color: #f5f5f5;
        border: 1px solid #e0e0e0;
        border-radius: 30px;
        padding: 12px 16px;
        font-weight: 600;
        color: #666;
        flex: 1;
        margin-right: 12px;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        transition: all 0.2s ease;
    }
    
    .btn-reset-filter:active {
        background-color: #e8e8e8;
        transform: scale(0.98);
    }
    
    .btn-apply-filter {
        background-color: #4a90e2;
        border: none;
        border-radius: 30px;
        padding: 12px 16px;
        font-weight: 600;
        color: #fff;
        flex: 1;
        font-size: 14px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 2px 10px rgba(74, 144, 226, 0.3);
        transition: all 0.2s ease;
    }
    
    .btn-apply-filter:active {
        background-color: #3a80d2;
        transform: scale(0.98);
        box-shadow: 0 1px 5px rgba(74, 144, 226, 0.2);
    }
    
    .open-mobile-filter {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1000;
        background-color: #007bff;
        color: white;
        border: none;
        border-radius: 50%;
        width: 60px;
        height: 60px;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
        cursor: pointer;
    }
    
    .open-mobile-filter:hover {
        background-color: #0069d9;
    }
    
    .open-mobile-filter i {
        font-size: 24px;
    }
    
    .mobile-selected-filters {
        background-color: #fff;
        padding: 15px 20px;
        margin: 15px;
        border-radius: 12px;
        border: 1px solid #eaeaea;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    }
    
    .selected-filters-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }
    
    .selected-filters-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #333;
    }
    
    .clear-all-filters {
        background: none;
        border: none;
        color: #4a90e2;
        font-size: 14px;
        font-weight: 600;
        padding: 5px 10px;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    .clear-all-filters:active {
        background-color: rgba(74, 144, 226, 0.1);
        transform: scale(0.98);
    }
    
    .mobile-filter-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .mobile-filter-tags .filter-tag {
        margin: 0;
    }
    
    /* Mobile Accordion Styles */
    .accordion-button {
        padding: 15px 20px;
        font-size: 15px;
        font-weight: 600;
        background-color: #fff;
        color: #333;
        border-bottom: 1px solid #eaeaea;
        transition: all 0.2s ease;
    }
    
    .accordion-button:not(.collapsed) {
        background-color: #f0f7ff;
        color: #4a90e2;
        border-bottom: none;
    }
    
    .accordion-button::after {
        background-size: 14px;
        transition: transform 0.3s ease;
    }
    
    .accordion-body {
        padding: 20px;
        background-color: #fff;
        border-bottom: 1px solid #eaeaea;
    }
}

/* Enhanced Select2 Mobile Styles */
@media (max-width: 768px) {
    /* Larger form elements for better mobile touch targets */
    .mobile-filter-container select,
    .mobile-filter-container input {
        font-size: 16px;
        padding: 12px 16px;
        height: auto;
        background-color: #f5f5f5;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .mobile-filter-container select:focus,
    .mobile-filter-container input:focus {
        background-color: #fff;
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }
    
    /* Adjust Select2 container for mobile */
    .mobile-filter-container .select2-container {
        margin-bottom: 15px;
    }
    
    /* Adjust Select2 single selection for mobile */
    .mobile-filter-container .select2-container--default .select2-selection--single {
        padding: 14px 16px;
        height: 48px;
        font-size: 16px;
        background-color: #f5f5f5;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        transition: all 0.2s ease;
    }
    
    .mobile-filter-container .select2-container--default.select2-container--open .select2-selection--single,
    .mobile-filter-container .select2-container--default.select2-container--focus .select2-selection--single {
        background-color: #fff;
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }
    
    .mobile-filter-container .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 20px;
        color: #333;
        padding-left: 0;
    }
    
    .mobile-filter-container .select2-container--default .select2-selection--single .select2-selection__placeholder {
        color: #999;
    }
    
    .mobile-filter-container .select2-container--default .select2-selection--single .select2-selection__arrow {
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Ensure the dropdown is above the fixed container */
    .select2-container--open .select2-dropdown {
        z-index: 1060;
    }
    
    /* Ensure the dropdown is fully visible */
    .select2-container--open .select2-dropdown--below {
        margin-top: 3px;
        border-radius: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        border: 1px solid #e0e0e0;
    }
    
    /* Make dropdown options larger for touch */
    .mobile-filter-container .select2-results__option {
        padding: 14px 16px;
        font-size: 16px;
        transition: background-color 0.2s ease;
    }
    
    /* Improve the search field on mobile */
    .select2-search--dropdown .select2-search__field {
        padding: 12px 16px;
        font-size: 16px;
        height: 48px;
        border-radius: 8px;
        background-color: #f5f5f5;
        border: 1px solid #e0e0e0;
        transition: all 0.2s ease;
    }
    
    .select2-search--dropdown .select2-search__field:focus {
        background-color: #fff;
        border-color: #4a90e2;
        box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    }
    
    /* Fix dropdown positioning for fixed containers */
    .select2-container--open .select2-dropdown {
        width: auto !important;
        left: 15px !important;
        right: 15px !important;
        max-width: calc(100% - 30px) !important;
    }
    
    /* Fix for mobile scrolling issues */
    .select2-results {
        max-height: 50vh;
    }
}

/* Additional Select2 Customizations */
.select2-container--default .select2-selection--single {
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    margin-right: 10px;
    font-size: 16px;
    color: #999;
    transition: color 0.2s ease;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #f44336;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #999;
}

/* Make dropdown overlay proper */
.select2-dropdown {
    z-index: 1060;
}

/* Enhance mobile dropdown spacing */
@media (max-width: 768px) {
    .mobile-filter-container .mb-3 {
        margin-bottom: 20px !important;
    }
    
    .mobile-filter-container label.form-label {
        font-weight: 600;
        margin-bottom: 8px;
        font-size: 14px;
        color: #333;
    }
    
    /* Improved row spacing in mobile filters */
    .mobile-filter-container .row {
        margin-left: -10px;
        margin-right: -10px;
    }
    
    .mobile-filter-container .row > [class*="col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    /* Enhanced style for "Any" option in dropdowns */
    .mobile-filter-container select option:first-child {
        font-weight: 500;
        color: #999;
    }
    
    /* Active accordion section styling */
    .accordion-item {
        background-color: #fff;
        overflow: hidden;
    }
    
    .accordion-collapse {
        transition: all 0.3s ease-out;
    }
    
    /* Badge for selected options count */
    .accordion-button .badge {
        margin-left: 8px;
        background-color: #4a90e2;
        color: white;
        border-radius: 20px;
        font-size: 12px;
        padding: 3px 8px;
        font-weight: 600;
    }
}

/* Search Input Styles */
.search-keyward {
    margin-bottom: 5px;
}

.search-keyward .from-control {
    position: relative;
    display: flex;
}

.search-input {
    border-radius: 30px !important;
    padding: 12px 20px !important;
    padding-right: 50px !important;
    background-color: #f5f5f5;
    border: 1px solid #eaeaea;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    font-size: 15px;
    height: auto !important;
}

.search-input:focus {
    background-color: #fff;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #4a90e2;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.2);
    z-index: 5;
}

.search-button:hover {
    background-color: #3a80d2;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    transform: translateY(-50%) scale(1.05);
}

.search-button:active {
    transform: translateY(-50%) scale(0.95);
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.15);
}

/* Media queries for responsive behavior */
@media (min-width: 992px) {
    /* On desktop, hide mobile elements */
    .mobile-filter-container {
        display: none !important;
    }
    
    .open-mobile-filter {
        display: none !important;
    }
    
    /* Make desktop filter visible */
    .auction-filter-form {
        display: block !important;
    }
}

@media (max-width: 991px) {
    /* On mobile, hide desktop elements */
    .auction-filter-form:not(.mobile-filter-container) {
        display: none !important;
    }
    
    /* Make mobile filter toggle visible */
    .open-mobile-filter {
        display: flex !important;
    }
    
    /* Mobile filter container - hidden by default */
    .mobile-filter-container {
        display: none;
        z-index: 9999;
    }
    
    /* Mobile filter container - shown when .show class is applied */
    .mobile-filter-container.show {
        display: block !important;
    }
}

/* Ensure the filter shows when the .show class is applied */
.mobile-filter-container.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateX(0) !important;
}

/* Mobile Filter Button */
.open-mobile-filter {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 50px;
    width: auto;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-weight: 600;
    transition: all 0.3s ease;
}

.open-mobile-filter:hover {
    background-color: #3a80d2;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.open-mobile-filter i {
    margin-right: 8px;
}

/* Mobile Filter Container */
.mobile-filter-container {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    max-width: 380px;
    background-color: #fff;
    z-index: 1050;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.filter-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1049;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.filter-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Auction Filter Styles */
.filter-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

/* Filter Form */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Filter Sections */
.filter-section {
    margin-bottom: 15px;
}

.filter-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

/* Filter Inputs */
.filter-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-input:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* Select2 Customization */
.select2-container {
    width: 100% !important;
}

.select2-container--default .select2-selection--single {
    height: 38px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Range Inputs */
.range-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.range-inputs .filter-input {
    flex: 1;
}

.range-separator {
    color: #666;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.filter-button {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.apply-filter {
    background-color: #4a90e2;
    color: white;
    border: none;
}

.apply-filter:hover {
    background-color: #357abd;
}

.reset-filter {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.reset-filter:hover {
    background-color: #e8e8e8;
}

/* Selected Filters */
.selected-filters {
    margin-top: 15px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #e3f2fd;
    border-radius: 4px;
    font-size: 13px;
}

.tag-label {
    font-weight: 500;
    margin-right: 4px;
}

.tag-value {
    color: #666;
}

.tag-remove {
    margin-left: 6px;
    cursor: pointer;
    color: #999;
    font-weight: bold;
}

.tag-remove:hover {
    color: #666;
}

/* Loading State */
.loading-indicator {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-indicator.show {
    display: flex;
}

/* Filter Toggle for Mobile */
.filter-toggle {
    display: none;
    padding: 10px 16px;
    background-color: #4a90e2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .filter-toggle {
        display: block;
    }
    
    .filter-container {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: white;
        z-index: 1000;
        margin: 0;
        padding: 20px;
        overflow-y: auto;
        border-radius: 0;
    }
    
    .filter-container.active {
        display: block;
    }
    
    .filter-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .filter-title {
        font-size: 18px;
        font-weight: 600;
    }
    
    .close-filter {
        background: none;
        border: none;
        font-size: 24px;
        color: #666;
        cursor: pointer;
        padding: 0;
    }
    
    .filter-actions {
        position: sticky;
        bottom: 0;
        background-color: white;
        padding: 15px 0;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .filter-button {
        flex: 1;
    }
    
    .range-inputs {
        flex-direction: column;
        gap: 8px;
    }
    
    .range-separator {
        text-align: center;
    }
    
    .selected-filters {
        margin-bottom: 15px;
    }
} 