/* Modern Listings Filter Widget Styles */
.modern-listings-filter-widget {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.modern-filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    align-items: end;
}

.modern-filter-field {
    position: relative;
    margin-bottom: 20px;
}

.modern-filter-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #2c3e50;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modern-form-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e8ecef;
    border-radius: 12px;
    font-size: 16px;
    background: #f8f9fb;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    color: #2c3e50;
    box-shadow: none;
}

.modern-form-input:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.modern-form-input::placeholder {
    color: #a0a7b0;
    font-weight: 400;
}

/* Select Styling */
.modern-select-wrapper {
    position: relative;
}

.modern-select-wrapper::after {
    content: '▼';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: #667eea;
    font-size: 12px;
    font-weight: bold;
}

select.modern-form-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    padding-right: 50px;
}

/* Location Cascade */
.location-cascade {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Price Range */
.price-range-group {
    grid-column: 1 / -1;
}

.price-slider-container {
    margin: 20px 0;
}

.price-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e8ecef;
    outline: none;
    margin: 20px 0;
}

.price-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.price-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.price-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    border: 3px solid #667eea;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.price-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Submit Button */
.modern-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    width: 100%;
    text-decoration: none;
}

.modern-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    color: white;
    text-decoration: none;
}

.modern-submit-btn:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .modern-listings-filter-widget {
        padding: 20px;
        border-radius: 12px;
    }
    
    .modern-filter-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .modern-form-input {
        padding: 14px 16px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .price-display {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Animation */
.modern-filter-field {
    animation: fadeInUp 0.6s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}