/**
 * Advanced Home Filter - Integrated Styles
 * Version: 2.0.0
 */

/* Advanced Home Filter Wrapper */
.advanced-home-filter-wrapper {
    margin-bottom: 30px;
}

/* Form Grid Layout */
.ahf-form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: end;
}

.ahf-form-group {
    flex: 1;
    min-width: 200px;
}

.ahf-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Form Elements */
.ahf-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: #333;
}

.ahf-datepicker {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.3s ease;
}

.ahf-datepicker:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.ahf-help-text {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #666;
}

/* Buttons */
.ahf-button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.ahf-button-primary {
    background: #007cba;
    color: white;
}

.ahf-button-primary:hover {
    background: #005a87;
}

.ahf-button-secondary {
    background: #f7f7f7;
    color: #333;
    border: 1px solid #ddd;
}

.ahf-button-secondary:hover {
    background: #e7e7e7;
}

.ahf-icon {
    font-size: 16px;
}

/* Results Summary */
.ahf-results-summary {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

#ahf-results-count {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

#ahf-availability-info {
    margin-left: 10px;
    color: #666;
    font-size: 14px;
}

/* Loading Spinner */
.ahf-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007cba;
    border-radius: 50%;
    animation: ahf-spin 1s linear infinite;
    margin: 0 auto 15px;
}

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

/* Active Filters */
.ahf-active-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.ahf-active-filter {
    background: #e7f3ff;
    border: 1px solid #b3d9ff;
    color: #0066cc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.ahf-active-filter .remove {
    cursor: pointer;
    font-weight: bold;
    margin-left: 4px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ahf-form-grid {
        flex-direction: column;
    }
    
    .ahf-form-group {
        min-width: 100%;
    }
    
    .ahf-form-actions {
        justify-content: center;
        width: 100%;
    }
    
    .ahf-button {
        flex: 1;
        justify-content: center;
        min-width: 120px;
    }
}