/**
 * Trip Finder 3.0 — Mobile Wizard (Airbnb-style)
 * Desktop: unverändert (v1 Sidebar-Layout)
 * Mobile: Fullscreen-Overlay mit Accordion-Sektionen
 */

/* ─── FOUC-Schutz ─────────────────────────────────────────── */
[x-cloak] { display: none !important; }

/* ─── Desktop-Sidebar: scrollbarer Inhalt + sticky Footer ── */

/* Sidebar-Karte: Höhe auf Viewport deckeln */
.tf3-sidebar-card {
    max-height: calc(100vh - 9.5rem); /* top-32 = 8rem + ~1.5rem Puffer */
}

/* Inset-Fade am unteren Rand: zeigt an, dass mehr Content scrollbar ist */
.tf3-sidebar-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
    box-shadow: inset 0 -3rem 2rem -1.5rem rgba(0, 0, 0, 0.45);
}

.tf3-sidebar-scroll::-webkit-scrollbar           { width: 4px; }
.tf3-sidebar-scroll::-webkit-scrollbar-track     { background: transparent; }
.tf3-sidebar-scroll::-webkit-scrollbar-thumb     { background: rgba(255,255,255,0.15); border-radius: 2px; }
.tf3-sidebar-scroll::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.28); }

/* Sticky Footer: subtiler Hintergrund, der den Übergang betont */
.tf3-sidebar-footer {
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0, rgba(0,0,0,0.18) 1rem);
}

/* ─── Chatbase: Launcher beim Wizard verstecken ───────────── */
/* Kein JS an Chatbase-DOM: nur body-Klasse toggeln, CSS erledigt den Rest */
body.tf3-wizard-open #chatbase-bubble-button,
body.tf3-wizard-open #chatbase-message-bubbles,
body.tf3-wizard-open chatbase-bubble {
    display: none !important;
}

/* ─── Wizard-Overlay ──────────────────────────────────────── */

.tf3-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647; /* above Chatbase (max 2147483646) */
    display: flex;
    flex-direction: column;
    background: rgba(5, 14, 28, 0.92);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    /* Safe Area auf iOS */
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overscroll-behavior: contain;
}

/* ─── Overlay-Header ──────────────────────────────────────── */

.tf3-overlay__header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tf3-overlay__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}

.tf3-overlay__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tf3-overlay__close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ─── Scrollbarer Sektions-Bereich ───────────────────────── */

.tf3-overlay__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.75rem 1rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

/* ─── Accordion-Sektion ───────────────────────────────────── */

.tf3-section {
    border-radius: 1.125rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    transition: border-color 0.2s;
    /* Verhindert, dass Sektionen gequetscht werden wenn Wann-Sektion sich öffnet */
    flex-shrink: 0;
}

.tf3-section--active {
    border-color: rgba(99, 179, 237, 0.45);
    background: rgba(255, 255, 255, 0.07);
}

/* Kollabierte Sektion: tappbarer Header */
.tf3-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.tf3-section__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tf3-section__value {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #fff;
    margin-top: 0.125rem;
}

.tf3-section__value--placeholder {
    font-size: 0.9375rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.125rem;
}

.tf3-section__chevron {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.25s;
}

.tf3-section--active .tf3-section__chevron {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.7);
}

/* Expandierter Inhalt */
.tf3-section__body {
    padding: 0 1.25rem 1.25rem;
}

/* ─── Törnart-Karten (Step 1) ─────────────────────────────── */

.tf3-type-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.625rem;
}

.tf3-type-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.25rem 0.75rem 1.125rem;
    border-radius: 0.875rem;
    border: 2px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    color: #fff;
}

.tf3-type-card:active {
    transform: scale(0.97);
}

.tf3-type-card--selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.18);
}

.tf3-type-card__icon {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    color: #93c5fd;
}

.tf3-type-card--selected .tf3-type-card__icon {
    background: rgba(59, 130, 246, 0.25);
    color: #93c5fd;
}

.tf3-type-card__name {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.tf3-type-card__desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.3;
}

.tf3-type-card--selected .tf3-type-card__desc {
    color: rgba(255, 255, 255, 0.7);
}

/* Check-Mark */
.tf3-type-card__check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #3b82f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ─── Destination-Chips (Step 2) ──────────────────────────── */

/* Multi-select hint */
.tf3-multiselect-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 0.875rem;
    line-height: 1.4;
}
.tf3-multiselect-hint__icon {
    width: 0.875rem;
    height: 0.875rem;
    flex-shrink: 0;
    margin-top: 0.0625rem;
    opacity: 0.6;
}

/* Section footer — "Weiter →" */
.tf3-section__footer {
    margin-top: 1rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: flex-end;
}
.tf3-next-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5625rem 1.125rem;
    border-radius: 9999px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
}
.tf3-next-btn:active {
    transform: scale(0.97);
    background: #2563eb;
}
.tf3-next-btn__arrow {
    width: 1rem;
    height: 1rem;
}

.tf3-dest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tf3-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 0.875rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.15s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.tf3-chip:active {
    transform: scale(0.96);
}

.tf3-chip--selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
    color: #fff;
}

.tf3-chip--all {
    border-style: dashed;
}

/* Flag-Emoji in Chip */
.tf3-chip__flag {
    font-size: 1.0625rem;
    line-height: 1;
}

/* ─── KW-Gruppen (Step 3) ─────────────────────────────────── */

/* "Egal"-Chip — volle Breite, gestrichelt */
.tf3-chip--egal {
    width: 100%;
    justify-content: center;
    border-style: dashed;
    margin-bottom: 0.875rem;
}

/* Monats-Gruppe */
.tf3-week-group {
    margin-bottom: 0.625rem;
}

.tf3-week-group__header {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: rgba(255, 255, 255, 0.38);
    margin-bottom: 0.3125rem;
}

/* KW-Chip-Reihe */
.tf3-week-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3125rem;
}

.tf3-week-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3125rem 0.5625rem;
    border-radius: 0.375rem;
    border: 1.5px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s, transform 0.12s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.tf3-week-chip:active {
    transform: scale(0.94);
}

.tf3-week-chip--selected {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.22);
    color: #fff;
}

/* ─── Flexibilitäts-Chips ─────────────────────────────────── */

.tf3-flexibility-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-wrap: wrap;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tf3-flex-label {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    white-space: nowrap;
}

.tf3-flex-chips {
    display: flex;
    gap: 0.375rem;
}

.tf3-flex-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.13);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.tf3-flex-chip--selected {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.18);
    color: #86efac;
}

/* ─── Overlay-Footer ──────────────────────────────────────── */

.tf3-overlay__footer {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.875rem 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tf3-footer__reset {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
    -webkit-tap-highlight-color: transparent;
    padding: 0.5rem;
}

.tf3-footer__reset:hover {
    color: #fff;
}

.tf3-footer__submit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8125rem 1.5rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    box-shadow: 0 4px 18px rgba(59, 130, 246, 0.4);
    -webkit-tap-highlight-color: transparent;
    border: none;
    white-space: nowrap;
}

.tf3-footer__submit:active {
    transform: scale(0.97);
    opacity: 0.9;
}

/* ─── Fake-Suchfeld (Trigger, sticky, Mobile) ─────────────── */

.tf3-search-trigger {
    position: sticky;
    top: 5rem; /* unterhalb des Headers ohne Banner (Nav = 70px) */
    z-index: 30;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8125rem 1.125rem;
    /* Dunkler, solider — gut erkennbar gegen Hero-Bilder */
    background: rgba(8, 18, 34, 0.78);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border: 1.5px solid rgba(255, 255, 255, 0.28);
    border-radius: 9999px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
    margin-bottom: 1.25rem;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Mit Top-Banner: Banner (40px) + Nav (70px) = 110px → mehr Abstand nötig */
.has-top-banner .tf3-search-trigger {
    top: 7.5rem; /* 40px Banner + 70px Nav + ~10px Puffer = 120px */
}

/* Auf Desktop (≥ lg = 1024px) ist der Mobile-Trigger nicht sichtbar */
@media (min-width: 1024px) {
    .tf3-search-trigger { display: none !important; }
}

.tf3-search-trigger:active {
    background: rgba(8, 18, 34, 0.92);
}

.tf3-search-trigger__placeholder {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 400;
}

.tf3-search-trigger__count {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    white-space: nowrap;
}

.tf3-search-trigger__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    border-radius: 9999px;
    background: #3b82f6;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0 0.25rem;
}

.tf3-search-trigger__filter-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    flex-shrink: 0;
}

/* ─── Aktive-Filter-Chips (Ergebnis-Zeile) ────────────────── */

.tf3-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.tf3-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
    background: rgba(59, 130, 246, 0.45);
    border: 1px solid rgba(99, 165, 255, 0.65);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.tf3-active-chip__remove {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    color: #fff;
    margin-left: 0.125rem;
}

/* ─── Enter/Leave-Transition für das Overlay ──────────────── */

.tf3-overlay-enter {
    animation: tf3SlideUp 0.3s cubic-bezier(0.32, 0.72, 0, 1);
}

.tf3-overlay-leave {
    animation: tf3SlideDown 0.25s ease-in forwards;
}

@keyframes tf3SlideUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

@keyframes tf3SlideDown {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

/* ── Desktop Sidebar — kompakte Elemente ──────────────────── */

/* Sailing-Type-Switch (Join-in | Private Yacht) */
.tf3-type-switch {
    display: flex;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.25rem;
    gap: 0.25rem;
}

.tf3-type-switch__btn {
    flex: 1;
    padding: 0.4375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    transition: background 0.2s, color 0.2s;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
}

.tf3-type-switch__btn--active {
    background: #3b82f6;
    color: #fff;
}

/* Sidebar filter label */
.tf3-filter-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.42);
    margin-bottom: 0.375rem;
}

/* Category list in sidebar */
.tf3-sidebar-cat {
    display: flex;
    align-items: center;
    width: 100%;
    text-align: left;
    padding: 0.4375rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: background 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
    gap: 0.375rem;
}

.tf3-sidebar-cat:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.tf3-sidebar-cat--active {
    background: rgba(59, 130, 246, 0.22);
    color: #fff;
}

.tf3-sidebar-cat__arrow {
    margin-left: auto;
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s;
}

.tf3-sidebar-cat__arrow--open {
    transform: rotate(180deg);
}

/* Sub-categories */
.tf3-sidebar-subcat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    text-align: left;
    padding: 0.3125rem 0.5rem 0.3125rem 1.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.55);
    border-radius: 0.375rem;
    transition: color 0.15s, background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.tf3-sidebar-subcat:hover { color: #fff; background: rgba(255,255,255,0.06); }

.tf3-sidebar-subcat__radio {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.15s;
}

.tf3-sidebar-subcat--active .tf3-sidebar-subcat__radio {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.2);
}

.tf3-sidebar-subcat--active { color: #fff; }

/* Destination dropdown button */
.tf3-dest-btn {
    width: 100%;
    text-align: left;
    padding: 0.4375rem 0.625rem;
    border-radius: 0.5rem;
    font-size: 0.8125rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.tf3-dest-btn:hover { background: rgba(255,255,255,0.13); }

.tf3-dest-btn--has-value { color: #fff; }

/* Destination dropdown panel — inline (no absolute) so it works inside sticky sidebar */
.tf3-dest-panel {
    background: rgba(10, 20, 38, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.625rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    max-height: 200px;
    overflow-y: auto;
    padding: 0.25rem;
    margin-top: 0.25rem;
}

.tf3-dest-panel::-webkit-scrollbar { width: 4px; }
.tf3-dest-panel::-webkit-scrollbar-track { background: transparent; }
.tf3-dest-panel::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}

.tf3-dest-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    cursor: pointer;
    color: rgba(255,255,255,0.75);
    transition: background 0.12s, color 0.12s;
}
.tf3-dest-item:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tf3-dest-item--selected { color: #fff; }

.tf3-dest-item__check {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 0.25rem;
    border: 1.5px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tf3-dest-item--selected .tf3-dest-item__check {
    border-color: #3b82f6;
    background: #3b82f6;
}

/* View mode toggle (Grid / List) */
.tf3-view-toggle {
    display: flex;
    border-radius: 0.5rem;
    border: 1px solid rgba(255,255,255,0.15);
    overflow: hidden;
}
.tf3-view-toggle__btn {
    padding: 0.375rem 0.625rem;
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    transition: background 0.15s, color 0.15s;
    display: flex;
    align-items: center;
}
.tf3-view-toggle__btn:hover { color: rgba(255,255,255,0.8); }
.tf3-view-toggle__btn--active {
    background: rgba(59,130,246,0.25);
    color: #fff;
}

/* Sidebar select element (date + sort) */
.tf3-sidebar-select {
    width: 100%;
    padding: 0.4375rem 2rem 0.4375rem 0.625rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.8125rem;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='rgba(255,255,255,0.45)' viewBox='0 0 24 24'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.4rem center;
    background-size: 1.1rem;
}
.tf3-sidebar-select:focus {
    outline: none;
    border-color: rgba(59, 130, 246, 0.6);
}
.tf3-sidebar-select option {
    background: #0f172a;
    color: #fff;
}

/* Active filter chips row (Desktop) */
.tf3-desktop-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

/* ─── Empty State (identisch mit V1/V2) ───────────────────── */

.trip-finder-empty-state {
    position: relative;
    width: 100%;
    max-width: 50rem;
    margin: 0 auto;
    padding: 1.65rem 1.7rem 1.75rem;
    border-radius: 1.375rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.032)),
        rgba(5, 16, 31, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.13);
    box-shadow:
        0 22px 54px -28px rgba(0, 0, 0, 0.48),
        inset 0 1px 0 rgba(255, 255, 255, 0.065);
    backdrop-filter: blur(16px) saturate(155%);
    -webkit-backdrop-filter: blur(16px) saturate(155%);
    text-align: center;
    overflow: hidden;
}

.trip-finder-empty-state::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top center, rgba(34, 197, 94, 0.12), transparent 40%),
        radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.14), transparent 36%);
    pointer-events: none;
}

.trip-finder-empty-state > * {
    position: relative;
    z-index: 1;
}

.trip-finder-empty-state__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.42rem 0.8rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.095);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.trip-finder-empty-state__description {
    max-width: 37rem;
    margin: 0 auto;
    color: rgba(226, 232, 240, 0.88);
    line-height: 1.78;
}

.trip-finder-empty-state__tips {
    display: grid;
    gap: 0.55rem;
    max-width: 29rem;
    margin: 1.45rem auto 0;
    text-align: left;
}

.trip-finder-empty-state__tip {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3rem;
    padding: 0.7rem 0.85rem;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.trip-finder-empty-state__tip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 9999px;
    background: rgba(34, 197, 94, 0.14);
    color: #86efac;
    font-size: 0.82rem;
    font-weight: 700;
    flex-shrink: 0;
}

.trip-finder-empty-state__tip-icon svg {
    width: 0.9rem;
    height: 0.9rem;
}

.trip-finder-empty-state__actions {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 1.6rem;
}

.trip-finder-empty-state__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    min-height: 3.3rem;
    padding: 0.88rem 1.35rem;
    border-radius: 9999px;
    font-weight: 700;
    transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.trip-finder-empty-state__button:hover {
    transform: translateY(-1px);
}

.trip-finder-empty-state__button--primary {
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    box-shadow: 0 16px 32px -20px rgba(29, 78, 216, 0.52);
}

.trip-finder-empty-state__button--primary:hover {
    background: linear-gradient(135deg, #2563eb, #1e40af);
}

.trip-finder-empty-state__button--secondary {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.trip-finder-empty-state__button--secondary:hover {
    background: rgba(255, 255, 255, 0.085);
    border-color: rgba(255, 255, 255, 0.2);
}

.trip-finder-empty-state__contact {
    margin-top: 1.65rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.trip-finder-empty-state__contact-label {
    color: rgba(226, 232, 240, 0.82);
    margin-bottom: 0.8rem;
}

.trip-finder-empty-state__contact-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: color 180ms ease, transform 180ms ease;
}

.trip-finder-empty-state__contact-link:hover {
    color: #bfdbfe;
    transform: translateY(-1px);
}

.trip-finder-empty-state__contact-link svg {
    flex-shrink: 0;
}

@media (min-width: 640px) {
    .trip-finder-empty-state__actions {
        flex-direction: row;
        align-items: center;
    }

    .trip-finder-empty-state__actions .trip-finder-empty-state__button {
        min-width: 14rem;
    }
}

@media (max-width: 639px) {
    .trip-finder-empty-state {
        padding: 1.35rem 1.05rem 1.45rem;
        border-radius: 1.15rem;
    }

    .trip-finder-empty-state__tip {
        min-height: 2.8rem;
        padding: 0.68rem 0.78rem;
    }
}
