.search-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
    margin: 0 auto;
}

.search-card {
    border-radius: 16px;
}

.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-main {
    position: relative;
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.search-main:focus-within {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

#categorySelect {
    border: none;
    border-right: 2px solid #e2e8f0;
    border-radius: 0;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    outline: none;
    box-shadow: none;
}

#categorySelect:focus {
    border-color: #e2e8f0;
    background: #f8f9fa;
    box-shadow: none;
}

#categorySelect.has-selection {
    background: #fee;
    color: #e53e3e;
    font-weight: 600;
}

#categoriesDropdown.disabled {
    pointer-events: none;
    opacity: 0.5;
}

.selected-categories-display {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e53e3e;
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 8px 12px;
    display: none;
    flex-wrap: wrap;
    gap: 6px;
    z-index: 1000;
}

.selected-categories-display.show {
    display: flex;
}

.mini-tag {
    background: #e53e3e;
    color: white;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-tag .remove-mini {
    cursor: pointer;
    width: 14px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}



.search-input {
    flex: 1;
    padding: 14px 16px;

    font-size: 15px;
    height: 50px;
    transition: all 0.2s ease;

}

.search-input:focus {
    outline: none;
    border-color: #e53e3e;
    background: white;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.search-icon {
    color: #e53e3e;
    font-size: 18px;
}

.filters-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.filter-item {
    position: relative;
}

.filter-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #4a5568;
}

.filter-button:hover {
    border-color: #e53e3e;
    background: #fef5f5;
}


.filter-button-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-button i {
    font-size: 14px;
}

.arrow {
    transition: transform 0.2s ease;
    font-size: 12px;
}

.filter-button.open .arrow {
    transform: rotate(180deg);
}

.filter-button.disabled {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

.filter-button.disabled:hover {
    border-color: #e2e8f0 !important;
    background: white !important;
}





.price-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 16px;
}

.price-option {
    flex: 1 1 calc(33.33% - 8px);
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.price-option:hover {
    background: #e0e0e0;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    z-index: 99999;
    padding: 16px;
    margin-top: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-title {
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 13px;
}

.date-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
}

.date-input:focus {
    outline: none;
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.price-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e2e8f0;
    outline: none;
    margin: 12px 0;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e53e3e;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e53e3e;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.price-display {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #718096;
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 8px;
    padding: 0 16px 12px;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}

.option-item:hover {
    background: #fef5f5;
    border-color: #e53e3e;
}

.option-item.selected {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
}

.option-checkbox,
.option-radio {
    display: none;
}

.date-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    padding: 0 16px;
}

.date-option {
    flex: 1 1 calc(50% - 8px);
    padding: 8px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.date-option:hover {
    background: #e0e0e0;
}

.dropdown-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e2e8f0;
}

.btn-small {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
}

.btn-clear {
    background: #f7fafc;
    color: #718096;
}

.btn-clear:hover {
    background: #edf2f7;
}

.btn-apply {
    background: #e53e3e;
    color: white;
}

.btn-apply:hover {
    background: #c53030;
}

.active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.filter-tag {
    background: #e53e3e;
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tag .remove {
    cursor: pointer;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
}

.filter-tag .remove:hover {
    background: rgba(255, 255, 255, 0.5);
}

.search-actions {
    display: flex;
    gap: 2px;
    justify-content: center;

}

.btn {
    padding: 5px 10px;
    border: none;
    /* border-radius: 10px; */
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #e53e3e;
    color: white;
}

.btn-primary:hover {
    background: #c53030;
}

.btn-secondary {
    color: #718096;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}



@media (max-width: 768px) {
    .search-container {
        padding: 12px;
    }

    .search-card {
        padding: 20px;
    }

    .search-main {
        flex-direction: column;
        gap: 12px;
    }

    .filters-container {
        grid-template-columns: 1fr;
    }

    .dropdown {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90vw;
        max-width: 400px;
        max-height: 70vh;
        border-radius: 16px;
    }

    .dropdown.open {
        transform: translate(-50%, -50%);
    }

    .search-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .options-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .search-header h1 {
        font-size: 1.5rem;
    }

    .filter-tag {
        font-size: 11px;
    }

    .active-filters {
        margin-bottom: 12px;
    }
}

@media (max-width: 640px) {
    .filters-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

.dropdown::-webkit-scrollbar {
    width: 6px;
}

.dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.dropdown::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.dropdown::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}
