/* Filter Bar Styles */
.filter-bar {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 0;
    z-index: 90;
}
.filter-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px 24px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.filter-left {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.filter-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

/* Filter Button */
.filter-btn {
    position: relative;
    padding: 8px 12px;
    background: white;
    border: 1px solid #1a1a1a;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

.filter-btn.active {
    background: #1a1a1a;
    color: white;
}

.filter-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.filter-btn.active svg {
    transform: rotate(180deg);
}

/* Filter Dropdown */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: white;
    border: 1px solid #1a1a1a;
    border-radius: 24px;
    padding: 24px;
    min-width: 320px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    display: none;
    z-index: 1000;
}

.filter-dropdown.active {
    display: block;
}

.filter-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.filter-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
}

.filter-close:hover {
    opacity: 0.7;
}

/* Filter Options */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-option {
    position: relative;
}

.filter-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.filter-option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    color: #1a1a1a;
}

.filter-option-label:hover {
    background: #f8f9fa;
}

.filter-option input[type="radio"]:checked + .filter-option-label {
    background: #1a1a1a;
    color: white;
}

/* Radio button indicator */
.filter-option-label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a1a;
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.filter-option input[type="radio"]:checked + .filter-option-label::before {
    background: white;
    border-color: white;
    box-shadow: inset 0 0 0 4px #1a1a1a;
}

/* Price Range Inputs */
.price-inputs {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
    margin-bottom: 16px;
}

.price-input {
    padding: 12px 16px;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    font-size: 16px;
    width: 100%;
}

.price-input:focus {
    outline: none;
    background: #f8f9fa;
}


.size-input {
    padding: 12px 16px;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    font-size: 16px;
    width: 100%;
}

.size-input:focus {
    outline: none;
    background: #f8f9fa;
}


.art-type-option {
    position: relative;
}

.art-type-option input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.art-type-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    color: #1a1a1a;
}

.art-type-label:hover {
    background: #f8f9fa;
}

.art-type-option input[type="checkbox"]:checked + .art-type-label {
    background: #1a1a1a;
    color: white;
}

/* Checkbox indicator */
.art-type-label::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #1a1a1a;
    border-radius: 4px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.art-type-option input[type="checkbox"]:checked + .art-type-label::before {
    background: white;
    border-color: white;
}

.art-type-option input[type="checkbox"]:checked + .art-type-label::after {
    content: '✓';
    position: absolute;
    left: 24px;
    color: #1a1a1a;
    font-weight: bold;
    font-size: 14px;
}

/* Clear All Button */
.clear-filters-btn {
    margin-top: 16px;
    padding: 12px 24px;
    background: white;
    border: 2px solid #1a1a1a;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s ease;
}

.clear-filters-btn:hover {
    background: #f8f9fa;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-left {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .filter-left::-webkit-scrollbar {
        display: none;
    }

    .filter-right {
        width: 100%;
        justify-content: space-between;
    }

    .filter-dropdown {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100vw - 32px);
        max-width: 400px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* Price Range Slider */
.price-range-container {
    padding: 20px 0;
}

.price-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}

.price-display-box {
    position: relative;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.price-display-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: white;
    padding: 0 8px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.price-display-value {
    font-size: 0.875rem;
    color: #1a1a1a;
}

.price-separator {
    font-size: 20px;
    color: #666;
    font-weight: 300;
}

/* Range Slider Styles */
.range-slider-container {
    position: relative;
    padding: 0 10px;
}

.range-slider-track {
    position: relative;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
}

.range-slider-range {
    position: absolute;
    height: 4px;
    background: #1a1a1a;
    border-radius: 2px;
}

.range-slider {
    position: relative;
    height: 4px;
}

.range-input {
    position: absolute;
    width: 100%;
    height: 4px;
    top: -2px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.range-input::-webkit-slider-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #1a1a1a;
    cursor: pointer;
    pointer-events: all;
    -webkit-appearance: none;
    appearance: none;
}

.range-input::-moz-range-thumb {
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #1a1a1a;
    cursor: pointer;
    pointer-events: all;
    -moz-appearance: none;
    appearance: none;
}

.range-input::-webkit-slider-thumb:hover {
    background: #f8f9fa;
}

.range-input::-moz-range-thumb:hover {
    background: #f8f9fa;
}

/* Size Range Slider - Same styles */
.size-range-container {
    padding: 20px 0;
}

.size-display {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    margin-bottom: 32px;
}

.size-display-box {
    position: relative;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.size-display-label {
    position: absolute;
    top: -10px;
    left: 12px;
    background: white;
    padding: 0 8px;
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.size-display-value {
    font-size: 0.875rem;
    font-weight: 400;
    color: #1a1a1a;
}

/* Remove old input styles */
.price-inputs,
.size-inputs {
    display: none;
}

/* Sort Dropdown */
.sort-wrapper {
    position: relative;
}

.sort-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-width: 0px;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sort-trigger:hover {
    background: #f8f9fa;
}

.sort-trigger.active {
    background: #1a1a1a;
    color: white;
}

.sort-trigger svg {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.sort-trigger.active svg {
    transform: rotate(180deg);
}

.sort-current {
    font-weight: 700;
}

.sort-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid #1a1a1a;
    border-radius: 16px;
    min-width: 240px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1000;
    overflow: hidden;
    pointer-events: none;
}

.sort-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.sort-option {
    padding: 16px 20px;
    font-size: 16px;
    color: #1a1a1a;
    cursor: pointer;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.sort-option:last-child {
    border-bottom: none;
}

.sort-option:hover {
    background: #f8f9fa;
}

.sort-option.active {
    background: #e5e7eb;
    font-weight: 600;
}

.sort-option.active::before {
    content: '✓';
    font-weight: bold;
    color: #1a1a1a;
}

/* Mobile Responsive for Sort */
@media (max-width: 768px) {
    .sort-label {
        display: none;
    }

    .sort-trigger {
        padding: 10px 16px;
        font-size: 14px;
    }

    .sort-dropdown {
        right: 0;
        min-width: 200px;
    }

    .sort-option {
        padding: 14px 16px;
        font-size: 14px;
    }
}

/* Active Filter Tags */
.active-filters {
    background: #ffffff;
    padding: 16px 0;
    border-bottom: 1px solid #000000;
    display: none;
}

.active-filters.has-filters {
    display: block;
}

.active-filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e5e7eb;
    border-radius: 50px;
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #d1d5db;
}

.filter-tag-remove {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a1a1a;
    font-size: 18px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.filter-tag-remove:hover {
    transform: scale(1.2);
}

.clear-all-btn {
    padding: 8px 16px;
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    transition: opacity 0.2s ease;
}

.clear-all-btn:hover {
    opacity: 0.7;
}

.filter-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #1a1a1a;
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    margin-left: 4px;
}

/* Update filter button to show count badge */
.filter-btn.has-selection {
    position: relative;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .active-filters-container {
        padding: 0 16px;
    }

    .filter-tag {
        font-size: 13px;
        padding: 6px 12px;
    }
}

/* Location Search Styles */
.location-search-wrapper {
    margin-bottom: 16px;
}

.location-search-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #1a1a1a;
    border-radius: 50px;
    font-size: 16px;
    color: #1a1a1a;
    transition: all 0.2s ease;
    background: white;
}

.location-search-input:focus {
    outline: none;
    background: #f8f9fa;
}

.location-search-input::placeholder {
    color: #999;
}

/* Location Results */
.location-results {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d1d5db #f8f9fa;
}

.location-results::-webkit-scrollbar {
    width: 6px;
}

.location-results::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 3px;
}

.location-results::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.location-results::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.location-result-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s ease;
    border-radius: 12px;
    margin-bottom: 4px;
}

.location-result-item:hover {
    background: #f8f9fa;
}

.location-icon-wrapper {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.location-icon {
    width: 14px;
    height: 14px;
    color: #666;
}

.location-info {
    flex: 1;
}

.location-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 2px;
}

.location-region {
    font-size: 0.875rem;
    color: #666;
}

.no-results {
    text-align: center;
    padding: 32px 20px;
    color: #999;
}

.no-results-icon {
    font-size: 32px;
    margin-bottom: 8px;
}

.no-results-text {
    font-size: 14px;
}

/* Clear location button */
.clear-location-btn {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.clear-location-btn:hover {
    background: #e5e7eb;
    color: #1a1a1a;
}

.location-search-wrapper.has-value .clear-location-btn {
    display: flex;
}

.location-search-wrapper {
    position: relative;
}

.filter-wrapper {
    position: relative; /* Add this to ensure dropdown positions relative to its button */
}

/* Art Type Grid Pills */
.art-type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.art-type-pill {
    padding: 8px 12px;
    background: white;
    border: 1px solid #1a1a1a;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    white-space: nowrap;
    font-weight: 400;
}

.art-type-pill:hover {
    background: #f8f9fa;
}

.art-type-pill.active {
    background: #1a1a1a;
    color: white;
}

/* Mobile responsive for art type grid */
@media (max-width: 768px) {
    .art-type-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .art-type-pill {
        font-size: 14px;
        padding: 12px 16px;
    }
}