/* Property Filter Styles */
.loader-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#property-ajax-response {
    position: relative;
    min-height: 400px;
}

/* Modern Filter Styles */
.property-filter-bar {
    background: #ffffff !important;
    border-radius: 16px !important;
    padding: 25px !important;
    font-family: 'Roboto', sans-serif !important;
}

.main-search-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.main-search-row input[name="f_city"] {
    flex: 1;
    min-width: 300px;
    padding: 14px 18px !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    transition: all 0.3s ease;
    background: #fafafa !important;
}

.main-search-row input[name="f_city"]:focus {
    outline: none;
    border-color: #F3B521 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(243, 181, 33, 0.1);
}

#submit-filter {
    background: #F3B521 !important;
    color: white !important;
    border: none !important;
    padding: 14px 32px !important;
    border-radius: 12px !important;
    font-weight: 500 !important;
    font-size: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(243, 181, 33, 0.2) !important;
}

#submit-filter:hover {
    background: #e0a318 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(243, 181, 33, 0.3) !important;
}

.filter-toggle-btn {
    background: #f5f5f5 !important;
    color: #333 !important;
    padding: 14px 18px !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-size: 16px !important;
}

.filter-toggle-btn:hover {
    background: #f5f5f5 !important;
    color: #F3B521 !important;
    border-color: #F3B521 !important;
    transform: translateY(-2px);
}

.filter-toggle-btn.active {
    background: #f5f5f5 !important;
    color: #F3B521 !important;
    border-color: #F3B521 !important;
}

#reset-filter {
    background: #ff4757 !important;
    color: white !important;
    border: none !important;
    padding: 14px 24px !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

#reset-filter:hover {
    background: #ee2f3f !important;
    transform: translateY(-2px);
}

#advanced-filters {
    display: block !important;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
}

#advanced-filters.show {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}

.property-filter-bar .filter-row {
    display: flex !important;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.property-filter-bar .filter-row:last-child {
    margin-bottom: 0;
}

#advanced-filters select,
#advanced-filters input[type="number"] {
    padding: 14px 18px !important;
    border: 2px solid #e8e8e8 !important;
    border-radius: 12px !important;
    font-size: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    background: #fafafa !important;
    transition: all 0.3s ease !important;
    min-width: 200px !important;
    flex: 1;
}

#advanced-filters select:focus,
#advanced-filters input[type="number"]:focus {
    outline: none;
    border-color: #F3B521 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(243, 181, 33, 0.1);
}

#advanced-filters input[type="number"]::placeholder {
    color: #999;
}
