/* Wanderthemen Filter Styles */

.tmt-wanderthemen-filter {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Filter States - wichtig für korrekte Anzeige/Versteckung */
.jet-listing-grid__item,
.tmt-termin-item {
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.tmt-filtered-hidden:not(.taxo-grid .tmt-filtered-hidden) {
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tmt-filtered-visible {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Button Style Filter */
.tmt-wanderthemen-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* Chip Style Filter */
.tmt-wanderthemen-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tmt-filter-button {
    padding: 0.625rem 1.25rem;
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    color: #495057;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tmt-filter-button:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #212529;
}

.tmt-filter-button.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
}

.tmt-filter-button .tmt-count {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Chip Filter Elements */
.tmt-filter-chip {
    padding: 0.5rem 1rem;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 50px;
    color: #495057;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease-in-out;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tmt-filter-chip:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tmt-filter-chip.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.3);
}

.tmt-filter-chip.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(102, 126, 234, 0.4);
}

.tmt-chip-icon {
    font-size: 0.75rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease-in-out;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.tmt-filter-chip.active .tmt-chip-icon {
    opacity: 1;
    transform: scale(1);
}

.tmt-chip-label {
    line-height: 1;
}

.tmt-chip-count {
    font-size: 0.75rem;
    opacity: 0.7;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.125rem 0.5rem;
    border-radius: 50px;
    line-height: 1;
}

.tmt-filter-chip.active .tmt-chip-count {
    background: rgba(255, 255, 255, 0.25);
    opacity: 0.9;
}

/* Dropdown Style Filter */
.tmt-wanderthemen-dropdown {
    width: 100%;
    max-width: 400px;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #dee2e6;
    border-radius: 6px;
    background: #ffffff;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.tmt-wanderthemen-dropdown:hover {
    border-color: #adb5bd;
}

.tmt-wanderthemen-dropdown:focus {
    outline: none;
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Empty State Message */
.tmt-filter-empty-message {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    text-align: center;
}

.tmt-no-filter {
    color: #6c757d;
    font-style: italic;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tmt-wanderthemen-buttons {
        flex-direction: column;
    }
    
    .tmt-filter-button {
        width: 100%;
        justify-content: center;
    }

    .tmt-wanderthemen-chips {
        justify-content: center;
    }

    .tmt-filter-chip {
        font-size: 0.8125rem;
        padding: 0.45rem 0.875rem;
    }
    
    .tmt-wanderthemen-dropdown {
        max-width: 100%;
    }
}
