/* Main Filter Container */
.tea-filter-widget {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* Filter Sections */
.filter-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

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

/* Filter Titles */
.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Accordion header with chevron */
.filter-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    cursor: pointer;
}

.filter-toggle {
    background: transparent;
    border: 0;
    padding: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #2c3e50;
    /* sets currentColor for SVG stroke */
}

.tea-filter-widget .filter-toggle .chevron {
    display: inline-block;
    width: 18px;
    height: 18px;
    transform: rotate(0deg);
    /* down */
    transition: transform 0.2s ease;
    overflow: visible;
}

.tea-filter-widget .filter-toggle .chevron polyline {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tea-filter-widget .filter-section.open .filter-toggle .chevron {
    transform: rotate(180deg);
    /* up */
}

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

/* Individual Filter Options */
.filter-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    color: #495057;
    transition: all 0.2s ease;
    font-size: 14px;
}

.filter-option:hover {
    color: #1a73e8;
}

/* Checkbox and Radio Inputs */
.filter-option input[type="checkbox"],
.filter-option input[type="radio"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* Rating filter layout */
.rating-filter .rating-option {
    gap: 10px;
}

.rating-stars {
    display: inline-flex;
    font-size: 17px;
    line-height: 1;
    letter-spacing: 1px;
}

.rating-stars .full {
    color: #780a0a;
    /* deep red stars */
}

.rating-stars .empty {
    color: #d0d0d0;
    margin-left: 2px;
}

.rating-value {
    font-weight: 700;
    margin-left: 6px;
    color: #2c2c2c;
}

.rating-label {
    margin-left: 6px;
    color: #6c6c6c;
}

.rating-option input[type="radio"] {
    accent-color: #111;
    /* modern browsers */
}

.rating-option .any-rating {
    margin-left: 0;
}

/* Select2 Styling */
.select2-container {
    width: 100% !important;
    margin-bottom: 10px;
}

.select2-container--default .select2-selection--multiple {
    border: 1px solid #ced4da;
    border-radius: 4px;
    min-height: 40px;
    padding: 5px 10px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 2px 8px;
    margin-top: 5px;
}

/* Loading State */
.elementor-posts-container.loading {
    position: relative;
    min-height: 100px;
    opacity: 0.7;
}

.elementor-posts-container.loading:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    margin: -15px 0 0 -15px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* No Results Message */
.no-results {
    text-align: center;
    padding: 30px;
    color: #6c757d;
    font-style: italic;
}

/* Pagination */
.tea-pagination {
    margin-top: 30px;
    text-align: center;
}

.tea-pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 2px;
    border: 1px solid #dee2e6;
    color: #007bff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tea-pagination .page-numbers.current {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
}

.tea-pagination .page-numbers.dots {
    border: none;
}

.tea-pagination a.page-numbers:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tea-filter-widget {
        padding: 15px;
    }

    .filter-title {
        font-size: 15px;
    }

    .filter-option {
        font-size: 13px;
    }

    .filter-section-header {
        gap: 14px;
    }

    .tea-filter-widget .filter-toggle .chevron {
        width: 20px;
        height: 20px;
    }
}