/* Custom Houzez Search Form Styles */
.main-search-wrap {
    background-color: rgba(255, 255, 255, .95);
    padding: 30px 30px 15px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.nav-tabs {
    border-bottom: 1px solid #dce0e0;
    margin-bottom: 25px;
}

.nav-tabs .nav-item {
    margin-bottom: -1px;
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 2px solid transparent;
    color: #636363;
    padding: 0 0 10px 0;
    margin-right: 30px;
}

.nav-tabs .nav-link:hover {
    border: none;
    border-bottom: 2px solid #00aeff;
    color: #00aeff;
}

.nav-tabs .nav-link.active {
    border: none;
    border-bottom: 2px solid #00aeff;
    color: #00aeff;
    background-color: transparent;
}

.search-form {
    margin: 0 -10px;
}

.search-row {
    margin-bottom: 20px;
    padding: 0 10px;
}

.form-group {
    margin-bottom: 15px;
    padding: 0 10px;
}

.form-group {
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #666;
}

.form-control {
    height: 42px;
    padding: 6px 15px;
    border: 1px solid #dce0e0;
    border-radius: 4px;
    font-size: 15px;
    color: #636363;
}

.bootstrap-select .btn {
    height: 42px;
    padding: 6px 15px;
    border: 1px solid #dce0e0;
    border-radius: 4px;
    font-size: 15px;
    color: #636363;
    text-transform: none;
    background-color: #fff;
}

.bootstrap-select .btn:focus,
.bootstrap-select .btn:active {
    outline: none !important;
    box-shadow: none;
}

.price-range {
    grid-column: span 2;
}

.range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 10px;
}

.range-slider {
    padding: 10px 0;
}

#price-range-slider {
    height: 4px;
    background: #e5e5e5;
    border: none;
    border-radius: 2px;
    margin: 0 10px;
}

#price-range-slider .ui-slider-range {
    background: #007bff;
}

#price-range-slider .ui-slider-handle {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #007bff;
    top: -6px;
    cursor: pointer;
}

.btn-search {
    height: 42px;
    padding: 6px 20px;
    font-size: 15px;
    line-height: 30px;
    border-radius: 4px;
    background-color: #00aeff;
    color: #fff;
    border: 1px solid #00aeff;
}

.btn-search:hover {
    background-color: #33beff;
    border-color: #33beff;
    color: #fff;
}

.houzez-icon {
    margin-right: 5px;
    font-size: 16px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-search-wrap {
        padding: 15px;
    }

    .search-row {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
    }

    .price-range-wrap {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
    }
}

/* Bootstrap Select Customization */
.bootstrap-select .dropdown-toggle {
    background: #fff !important;
    border: 1px solid #ddd !important;
    padding: 10px 15px !important;
}

.bootstrap-select .dropdown-toggle:focus {
    outline: none !important;
    box-shadow: none !important;
}

.bootstrap-select .dropdown-menu {
    padding: 0;
    border-radius: 4px;
    border: 1px solid #ddd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bootstrap-select .dropdown-item {
    padding: 8px 15px;
    font-size: 14px;
}

.bootstrap-select .dropdown-item:hover {
    background: #f5f5f5;
}

/* Custom Scrollbar */
.bootstrap-select .dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.bootstrap-select .dropdown-menu::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.bootstrap-select .dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

/* Loading State */
.form-group.loading::after {
    content: '';
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}
