/* Main Container */
.advanced-property-search {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    max-width: 1200px;
    margin: 0 auto;
}

/* Tabs */
.property-tabs-wrapper {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 20px;
}

.property-tabs {
    display: flex;
    gap: 30px;
    overflow-x: auto;
}

.property-tabs .tab-link {
    padding: 12px 0;
    color: #666;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
    white-space: nowrap;
}

.property-tabs .tab-link:hover,
.property-tabs .tab-link.active {
    color: #ff5a3c;
    border-bottom-color: #ff5a3c;
}

/* Search Container */
.search-container {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.search-input-group {
    position: relative;
    flex: 1;
    min-width: 200px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-input-group i {
    color: #666;
    font-size: 18px;
}

.search-input-group input[type="text"] {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
}

/* Custom Select */
.custom-select {
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.select-trigger span {
    font-size: 14px;
    color: #333;
}

.select-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 20px;
    display: none;
    z-index: 1000;
    max-height: 500px;
    overflow-y: auto;
}

.custom-select.active .select-dropdown {
    display: block;
    z-index: 9;
}

/* Dropdown Categories */
.dropdown-category {
    margin-bottom: 20px;
}

.dropdown-category h6 {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.type-option {
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s;
}

.type-option input {
    display: none;
}

.type-option:hover,
.type-option.active {
    background: #fff5f3;
    border-color: #ff5a3c;
    color: #ff5a3c;
}

/* Bedroom Filter */
.bedroom-filter {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.bedroom-option {
    cursor: pointer;
    padding: 8px 16px;
    background: #f5f5f5;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
}

.bedroom-option input {
    display: none;
}

.bedroom-option:hover,
.bedroom-option.active {
    background: #fff5f3;
    color: #ff5a3c;
    font-weight: 600;
}

/* Budget Dropdown */
.budget-dropdown {
    width: 300px;
}

.budget-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.budget-inputs input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 14px;
    width: 50px;
}

.budget-presets {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.budget-option {
    cursor: pointer;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 6px;
    display: block;
    transition: all 0.3s;
}

.budget-option input {
    display: none;
}

.budget-option:hover,
.budget-option.active {
    background: #fff5f3;
    color: #ff5a3c;
}

/* Location Dropdown */
.location-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    padding: 20px;
    display: none;
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
}

.location-dropdown.show {
    display: block;
}

.dropdown-section {
    margin-bottom: 20px;
}

.dropdown-section label {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin-bottom: 10px;
    display: block;
}

.city-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pill {
    padding: 6px 14px;
    background: #f5f5f5;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.pill:hover,
.pill.active {
    background: #ff5a3c;
    color: white;
}

/* Search Button */
.search-btn {
    background: linear-gradient(135deg, #ff5a3c 0%, #ff8566 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 90, 60, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .search-container {
        flex-direction: column;
    }
    
    .search-input-group {
        min-width: 100%;
    }
    
    .budget-dropdown {
        width: 100%;
    }
}

/* ======================================================================================================================================================================== */
/* Add to public/css/property-search.css */

/* Active Filters */
.active-filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
}

.active-filters h6 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 600;
}

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

.filter-tag {
    background: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    border: 1px solid #e0e0e0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.filter-tag a {
    color: #999;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
}

.filter-tag a:hover {
    color: #ff5a3c;
}

.clear-all {
    color: #ff5a3c;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}

.clear-all:hover {
    text-decoration: underline;
}

/* Results Header */
.results-header h4 {
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.sort-options select {
    min-width: 200px;
    border-radius: 6px;
    border: 1px solid #e0e0e0;
    padding: 8px 12px;
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.property-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.badge-featured {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #ff5a3c;
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.property-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-price {
    font-size: 24px;
    font-weight: 700;
    color: #ff5a3c;
}

.property-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.property-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.property-title a:hover {
    color: #ff5a3c;
}

.property-location {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-features {
    font-size: 13px;
    color: #666;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-features i {
    color: #ff5a3c;
}

.property-footer {
    margin-top: auto;
}

/* No Results */
.no-results i {
    opacity: 0.3;
}

/* Responsive */
@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start !important;
    }
    
    .sort-options select {
        width: 100%;
    }
}

/* ================================================================================================================================= */
/* Add to public/css/property-search.css */

.filter-sidebar {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-section h6 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #666;
}

.filter-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.filter-checkbox:hover {
    color: #ff5a3c;
}

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

.range-slider input[type="range"] {
    width: 100%;
    margin-bottom: 10px;
}

.range-values {
    text-align: center;
    font-size: 14px;
    color: #666;
    font-weight: 600;
}