/* Advanced Tour Filter Widget Styles */

.advanced-filter-widget {
    max-width: 100%;
    margin: 0 auto;
    font-family: inherit;
}

/* Form Container */
.filter-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Filter Group Styling */
.filter-group {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
    margin: 0;
    background: #fafafa;
}

.filter-label {
    font-weight: 600;
    font-size: 16px;
    color: #333;
    margin-bottom: 12px;
    padding: 0;
    border: none;
    display: block;
}

/* Filter Options Container */
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Individual Filter Option */
.filter-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.filter-option:hover {
    background-color: #f0f0f0;
}

/* Input Styling */
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin: 0;
    cursor: pointer;
    accent-color: #0073aa;
}

.option-label {
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

/* Select Dropdown Styling */
.filter-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

/* Submit Button */
.filter-submit {
    margin-top: 10px;
}

.submit-button {
    background-color: #0073aa;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    width: 100%;
}

.submit-button:hover {
    background-color: #005a87;
}

.submit-button:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.3);
}

/* Responsive Design */
@media (min-width: 768px) {
    .filter-form {
        flex-direction: column;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    
    .filter-group {
        flex: 1;
        min-width: 250px;
        margin-right: 15px;
    }
    
    .filter-group:last-of-type {
        margin-right: 0;
    }
    
    .filter-submit {
        margin-top: 0;
        align-self: flex-start;
    }
    
    .submit-button {
        width: auto;
        min-width: 150px;
    }
    
    .filter-options {
        max-height: 200px;
        overflow-y: auto;
    }
}

@media (min-width: 1024px) {
    .filter-form {
        gap: 25px;
    }
    
    .filter-group {
        min-width: 300px;
    }
}

/* Custom Scrollbar for Filter Options */
.filter-options::-webkit-scrollbar {
    width: 6px;
}

.filter-options::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Focus States for Accessibility */
.filter-option input:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Loading State (Optional) */
.filter-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.filter-form.loading .submit-button::after {
    content: "...";
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: white;
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow:
            .25em 0 0 white,
            .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 white,
            .5em 0 0 white;
    }
}