/* ═══════════════════════════════════════════════════════════════
   SEARCH BAR - Airbnb Style
   Developed by Toni Sciacca - mail@tonisciacca.com
   ═══════════════════════════════════════════════════════════════ */

/* BACKDROP - erweitert app.css */
.search-backdrop.active {
    display: block;
}

/* SEARCH SECTION - erweitert app.css (Positioning kommt aus app.css) */
.search-section.expanded {
    height: auto;
    padding: 20px 24px;
}

/* ═══════════════ COLLAPSED BAR ═══════════════ */
.search-bar-collapsed {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #DDDDDD;
    border-radius: 40px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    cursor: pointer;
    height: 56px;
    padding: 0 8px 0 24px;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    max-width: 720px;
    overflow: visible;
}
.search-bar-collapsed:hover {
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
    transform: scale(1.01);
}
.search-section.expanded .search-bar-collapsed {
    display: none;
}

.search-pill-section {
    display: flex;
    flex-direction: column;
    padding: 8px 20px;
    gap: 2px;
    min-width: 100px;
    position: relative;
    border-radius: 24px;
    overflow: visible;
}
.search-pill-section:hover {
    background: transparent !important;
}
.search-pill-section.has-value .pill-value {
    color: #FF385C;
    font-weight: 600;
}
.pill-label {
    font-size: 11px;
    font-weight: 700;
    color: #222222;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.pill-value {
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}
.search-pill-divider {
    width: 1px;
    height: 24px;
    background: #DDDDDD;
    flex-shrink: 0;
}
.search-pill-btn {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.search-pill-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(227, 28, 95, 0.4);
}
.search-pill-btn i {
    width: 18px;
    height: 18px;
}

/* ═══════════════ EXPANDED BAR ═══════════════ */
.search-bar-expanded {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 850px;
    position: relative;
}
.search-section.expanded .search-bar-expanded {
    display: flex;
}

.search-expanded-inner {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #DDDDDD;
    border-radius: 40px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    width: 100%;
}

.search-tab {
    flex: 1;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    padding: 14px 24px;
    gap: 2px;
    cursor: pointer;
    border-radius: 40px;
    position: relative;
    background: transparent !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.search-tab:hover {
    background: transparent !important;
}
.search-tab.active {
    background: transparent !important;
    box-shadow: none !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}
.search-tab-content {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
}
.search-tab-label {
    font-size: 11px;
    font-weight: 700;
    color: #222222;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    display: block !important;
    visibility: visible !important;
}
.search-tab.active .search-tab-label {
    color: #FF385C;
}
.search-tab-value {
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block !important;
    visibility: visible !important;
}
.search-tab.active .search-tab-value {
    color: #FF385C;
    font-weight: 600;
}
.search-tab-divider {
    width: 1px;
    height: 32px;
    background: #DDDDDD;
    align-self: center;
    flex-shrink: 0;
    opacity: 1 !important;
    display: block !important;
}

.search-expanded-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: linear-gradient(135deg, #FF385C 0%, #E31C5F 100%);
    border: none;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 9px 0 0;
    flex-shrink: 0;
    align-self: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.search-expanded-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(227, 28, 95, 0.4);
}
.search-expanded-btn i {
    width: 18px;
    height: 18px;
}

/* ═══════════════ PANELS ═══════════════ */
.search-panel {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-radius: 32px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    padding: 28px 32px;
    z-index: 10;
    animation: panelSlideIn 0.2s ease;
}
.search-panel.active {
    display: block;
}
@keyframes panelSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.panel-title {
    font-size: 22px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 20px 0;
}

/* ═══════════════ REGION SLIDER ═══════════════ */
.region-slider-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.region-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 8px 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
    flex: 1;
}
.region-slider::-webkit-scrollbar {
    display: none;
}
.region-slider-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}
.region-slider-btn:hover {
    border-color: #222222;
    background: #F7F7F7;
}
.region-slider-btn i {
    width: 16px;
    height: 16px;
    color: #222222;
}
.region-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.region-card:hover {
    transform: scale(1.03);
}
.region-card .region-img {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.region-card:hover .region-img {
    border-color: #DDDDDD;
}
.region-card.active .region-img {
    border-color: #222222;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.region-card .region-name {
    font-size: 14px;
    font-weight: 500;
    color: #222222;
    transition: font-weight 0.15s ease;
}
.region-card.active .region-name {
    font-weight: 600;
}

/* ═══════════════ DURATION PANEL ═══════════════ */
.duration-mode-tabs {
    display: flex;
    justify-content: center;
    background: #F0F0F0;
    border-radius: 32px;
    padding: 4px;
    margin: 0 auto 24px auto;
    width: fit-content;
}
.duration-mode-tab {
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 28px;
    background: transparent;
    font-size: 14px;
    font-weight: 600;
    color: #717171;
    cursor: pointer;
    transition: all 0.15s ease;
}
.duration-mode-tab:hover {
    color: #222222;
}
.duration-mode-tab.active {
    background: #FFFFFF;
    color: #222222;
    border-color: #FF385C;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.duration-mode-content {
    display: none;
}
.duration-mode-content.active {
    display: block;
}
.duration-title {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 24px 0;
}

/* ═══════════════ CALENDAR ═══════════════ */
.calendar-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}
.calendar-nav {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border: none;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 40px;
    transition: background 0.15s ease;
}
.calendar-nav:hover {
    background: #F7F7F7;
}
.calendar-nav i {
    width: 16px;
    height: 16px;
    color: #222222;
}
.calendar-months {
    display: flex;
    gap: 40px;
}
.calendar-month {
    width: 280px;
}
.calendar-month-title {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    margin: 0 0 16px 0;
}
.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
}
.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #717171;
    padding: 8px 0;
}
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
}
.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    color: #222222;
    border-radius: 50%;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all 0.15s ease;
    position: relative;
}
.calendar-day:hover:not(.disabled):not(.selected) {
    background: #F7F7F7;
}
.calendar-day.today {
    font-weight: 700;
}
.calendar-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #222222;
    border-radius: 50%;
}
.calendar-day.disabled {
    color: #DDDDDD;
    cursor: default;
}
.calendar-day.selected {
    background: #FF385C;
    color: #FFFFFF;
}
.calendar-day.in-range {
    background: #fef2f2;
    border-radius: 0;
}
.calendar-day.range-start {
    background: #FF385C;
    color: #FFFFFF;
    border-radius: 50% 0 0 50%;
}
.calendar-day.range-end {
    background: #FF385C;
    color: #FFFFFF;
    border-radius: 0 50% 50% 0;
}
.calendar-day.range-start.range-end {
    border-radius: 50%;
}

/* ═══════════════ FLEXIBILITY CHIPS ═══════════════ */
.flexibility-chips {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.flex-chip {
    padding: 10px 16px;
    border: 1px solid #DDDDDD;
    border-radius: 24px;
    background: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    color: #222222;
    cursor: pointer;
    transition: all 0.15s ease;
}
.flex-chip:hover {
    border-color: #222222;
}
.flex-chip.active {
    background: #222222;
    border-color: #222222;
    color: #FFFFFF;
}

/* ═══════════════ DURATION CHIPS ═══════════════ */
.duration-chips {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}
.dur-chip {
    padding: 16px 28px;
    border: 1px solid #DDDDDD;
    border-radius: 32px;
    background: #FFFFFF;
    font-size: 15px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    transition: all 0.15s ease;
}
.dur-chip:hover {
    border-color: #222222;
    background: #FAFAFA;
}
.dur-chip.active {
    background: #222222;
    border-color: #222222;
    color: #FFFFFF;
}

/* ═══════════════ MONTHS GRID ═══════════════ */
.months-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.month-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 18px 14px;
    border: 1px solid #DDDDDD;
    border-radius: 16px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s ease;
}
.month-card:hover {
    border-color: #222222;
    background: #FAFAFA;
}
.month-card.active {
    border-color: #222222;
    background: #222222;
    color: #FFFFFF;
}
.month-card i {
    width: 28px;
    height: 28px;
    color: inherit;
}
.month-card span {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
}
.month-card.active i,
.month-card.active span {
    color: #FFFFFF;
}

/* ═══════════════ TYPE GRID ═══════════════ */
.type-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}
.type-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px 14px;
    border: 1px solid #DDDDDD;
    border-radius: 16px;
    background: #FFFFFF;
    cursor: pointer;
    transition: all 0.15s ease;
}
.type-chip:hover {
    border-color: #222222;
    background: #FAFAFA;
}
.type-chip.active {
    border-color: #222222;
    background: #222222;
}
.type-chip i {
    width: 28px;
    height: 28px;
    color: #222222;
    transition: color 0.15s ease;
}
.type-chip span {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    transition: color 0.15s ease;
}
.type-chip.active i,
.type-chip.active span {
    color: #FFFFFF;
}

/* ═══════════════ MAP TOGGLE ═══════════════ */
.map-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid #DDDDDD;
    border-radius: 24px;
    background: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    color: #222222;
    cursor: pointer;
    transition: all 0.15s ease;
    position: absolute;
    right: 24px;
}
.map-toggle:hover {
    border-color: #222222;
    background: #F7F7F7;
}
.map-toggle i {
    width: 18px;
    height: 18px;
}

/* ═══════════════ RESPONSIVE ═══════════════ */
@media (max-width: 900px) {
    .search-bar-collapsed {
        padding: 0 8px 0 16px;
    }
    .search-pill-section {
        padding: 8px 12px;
        min-width: auto;
    }
    .pill-value {
        max-width: 80px;
        font-size: 13px;
    }
    .calendar-months {
        flex-direction: column;
        gap: 24px;
    }
    .calendar-month {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
    .type-grid,
    .months-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .search-panel {
        padding: 20px;
        border-radius: 24px;
    }
    .panel-title {
        font-size: 18px;
    }
    .map-toggle {
        display: none;
    }
    .region-card .region-img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 600px) {
    .search-bar-collapsed {
        height: 48px;
    }
    .search-pill-divider:last-of-type,
    .search-pill-section:last-of-type {
        display: none;
    }
    .search-expanded-inner {
        flex-wrap: wrap;
        border-radius: 24px;
    }
    .search-tab {
        padding: 10px 16px;
    }
    .search-tab-divider {
        display: none;
    }
    .duration-chips {
        gap: 8px;
    }
    .dur-chip {
        padding: 12px 20px;
        font-size: 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   LIVE SEARCH (Freitext-Feld + Autocomplete + Keyword-Chips)
   Developed by Toni Sciacca - mail@tonisciacca.com
   ═══════════════════════════════════════════════════════════════════ */
.search-live-wrap {
    margin-bottom: 8px;
}
.search-live-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.search-live-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: #94a3b8;
    pointer-events: none;
}
.search-live-input {
    width: 100%;
    padding: 14px 44px 14px 44px;
    border: 1px solid #DDDDDD;
    border-radius: 40px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    font-weight: 500;
    color: #1e293b;
    background: #fff;
    outline: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-live-input:focus {
    border-color: #222222;
    box-shadow: 0 2px 4px rgba(0,0,0,0.18);
}
.search-live-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}
.search-live-clear {
    position: absolute;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    background: #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, transform 0.15s;
}
.search-live-clear:hover {
    background: #cbd5e1;
    transform: scale(1.1);
}
.search-live-clear i {
    width: 14px;
    height: 14px;
    color: #475569;
}

/* Erkannte Keywords */
.search-detected-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 4px 4px;
}
.search-detected-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.search-detected-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: #FF385C;
    animation: chipPop 0.25s ease;
    cursor: default;
    position: relative;
    overflow: visible;
}
.search-detected-chip i.chip-icon {
    width: 12px;
    height: 12px;
}
.search-detected-chip .chip-close {
    position: absolute;
    right: -5px;
    top: -5px;
    width: 16px;
    height: 16px;
    min-width: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    padding: 0;
    margin: 0;
    transition: transform 0.15s;
    box-shadow: 0 0 0 2px #fff;
    z-index: 2;
}
.search-detected-chip .chip-close:hover {
    transform: scale(1.2);
}
.search-detected-chip .chip-close i,
.search-detected-chip .chip-close svg {
    width: 11px;
    height: 11px;
    color: #fff !important;
    stroke: #fff !important;
    stroke-width: 3px !important;
}

@keyframes chipPop {
    0% { transform: scale(0.7); opacity: 0; }
    70% { transform: scale(1.08); }
    100% { transform: scale(1); opacity: 1; }
}

/* Live-Ergebnisse Dropdown */
.search-live-results {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    max-height: 380px;
    overflow-y: auto;
    z-index: 20;
    animation: resultsSlide 0.2s ease;
}
@keyframes resultsSlide {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.search-live-results-inner {
    padding: 8px;
}
.search-live-group {
    margin-bottom: 4px;
}
.search-live-group-title {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px 4px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.search-live-group-title i {
    width: 13px;
    height: 13px;
}
.search-live-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s;
    font-family: 'Outfit', sans-serif;
}
.search-live-item:hover {
    background: #f1f5f9;
}
.search-live-item-icon {
    width: 28px;
    height: 28px;
    min-width: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-radius: 8px;
}
.search-live-item-icon i {
    width: 13px;
    height: 13px;
    color: #64748b;
}
.search-live-item-icon--route {
    background: #fef2f2;
}
.search-live-item-icon--route i {
    color: #FF385C;
}
.search-live-item-info {
    flex: 1;
    min-width: 0;
}
.search-live-item-name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-live-item-meta {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.search-live-item-arrow {
    width: 14px;
    height: 14px;
    color: #cbd5e1;
    flex-shrink: 0;
}
.search-live-match {
    padding: 2px 7px;
    background: #FF385C;
    color: #fff;
    border-radius: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    flex-shrink: 0;
}
.search-live-empty {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 16px;
    color: #94a3b8;
    font-size: 0.88rem;
}
.search-live-empty i {
    width: 18px;
    height: 18px;
}
.search-live-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 12px;
    border: none;
    border-top: 1px solid #f1f5f9;
    background: transparent;
    color: #FF385C;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: background 0.15s;
    border-radius: 0 0 16px 16px;
}
.search-live-all:hover {
    background: #fef2f2;
}
.search-live-all i {
    width: 15px;
    height: 15px;
}

/* Panel Divider + Quick-Pick Label */
.search-panel-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 16px 0;
}
.search-quickpick-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 12px;
}

/* Live-Wrap relativ fuer Dropdown */
.search-live-wrap {
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   ROUTE SEARCH RESULTS
   Developed by Toni Sciacca - mail@tonisciacca.com
   ═══════════════════════════════════════════════════════════════════ */
.route-search-section {
    padding: 24px 0 16px;
    margin-bottom: 16px;
}
.route-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 16px;
}
.route-search-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
}
.route-search-title i {
    width: 20px;
    height: 20px;
    color: #FF385C;
}
.route-search-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #FF385C;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 22px;
    height: 22px;
    border-radius: 11px;
    padding: 0 6px;
}
.route-search-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.route-search-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #475569;
    font-weight: 500;
}
.route-search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 0 16px;
}

/* Route Card - Einzelroute (unterscheidbar von Trip-Card) */
.route-card--single {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.route-card--single:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}
.route-card--single .card-image {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.route-card--single .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.route-card--single .card-badge--route {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}
.route-card--single .card-badge--route i {
    width: 12px;
    height: 12px;
}
.route-card--single .route-match-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 8px;
    background: #FF385C;
    color: #fff;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
}
.route-card--single .route-match-badge i {
    width: 11px;
    height: 11px;
}
.route-card--single .card-diff {
    position: absolute;
    bottom: 10px;
    left: 10px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}
.card-diff--easy { background: #22c55e; }
.card-diff--moderate { background: #f59e0b; }
.card-diff--challenging { background: #ef4444; }

.route-card--single .card-body {
    padding: 14px;
}
.route-card--single .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.route-card--single .card-location {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #64748b;
    margin: 0 0 8px;
}
.route-card--single .card-location i {
    width: 13px;
    height: 13px;
    color: #FF385C;
}
.route-card--single .card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.78rem;
    color: #64748b;
    margin: 0 0 8px;
}
.route-card--single .card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.route-card--single .card-meta i {
    width: 13px;
    height: 13px;
    color: #94a3b8;
}

/* Score Badges */
.route-card-scores {
    display: flex;
    gap: 5px;
    margin-top: 6px;
}
.route-score-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
}
.route-score-badge i {
    width: 11px;
    height: 11px;
}
.score-culture { background: #8b5cf6; }
.score-nature { background: #22c55e; }
.score-movement { background: #f97316; }
.score-enjoyment { background: #ec4899; }
.score-family { background: #06b6d4; }
.score-relaxation { background: #6366f1; }

/* Attribute Tags */
.route-card-attrs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 6px;
}
.route-attr-tag {
    padding: 2px 7px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 500;
}

@media (max-width: 640px) {
    .route-search-grid {
        grid-template-columns: 1fr;
        padding: 0 12px;
    }
    .route-search-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 0 12px;
    }
}

/* ═══════════════════════════════════════════════════════════════════
   DURATION PANEL - Festes Datum / Zeitraum / Spontan
   Developed by Toni Sciacca - mail@tonisciacca.com
   ═══════════════════════════════════════════════════════════════════ */
.duration-subtitle {
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #222;
    margin: 0 0 16px;
}

/* Date Range Display (Hin- / Rueckreise) */
.date-range-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}
.date-range-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    min-width: 120px;
    transition: border-color 0.2s, background 0.2s;
}
.date-range-box.active {
    border-color: #222;
    background: #f8fafc;
}
.date-range-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.date-range-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2px;
}
.date-range-arrow {
    color: #cbd5e1;
}
.date-range-arrow i {
    width: 18px;
    height: 18px;
}
.date-range-duration {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #FF385C;
    color: #fff;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-left: 8px;
    animation: chipPop 0.3s ease;
}
.date-range-duration i {
    width: 14px;
    height: 14px;
}

/* Period Timeline (Zeitleiste) */
.period-timeline-wrap {
    padding: 0 8px;
}
.period-timeline {
    position: relative;
    height: 56px;
    margin: 0 0 8px;
    user-select: none;
}
.period-timeline-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 2px;
    background: #e2e8f0;
    border-radius: 1px;
    pointer-events: none;
}
.period-timeline-fill {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: #FF385C;
    border-radius: 3px;
    opacity: 0.3;
    display: none;
    pointer-events: none;
    transition: left 0.2s, width 0.2s;
}
.period-dot {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s;
    z-index: 2;
    font-family: 'Outfit', sans-serif;
    padding: 0;
}
.period-dot:hover {
    border-color: #FF385C;
    transform: translate(-50%, -50%) scale(1.12);
    color: #FF385C;
}
.period-dot.active {
    background: #FF385C;
    border-color: #FF385C;
    color: #fff;
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 3;
    box-shadow: 0 2px 8px rgba(255, 56, 92, 0.3);
}
.period-dot.in-range {
    background: #fef2f2;
    border-color: #fecaca;
    color: #FF385C;
}
.period-info-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin: 8px 0 0;
    position: relative;
}
.period-info-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: #FF385C;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    position: relative;
    overflow: visible;
}
.period-reset-btn {
    position: absolute;
    right: -5px;
    top: -8px;
    width: 16px;
    height: 16px;
    background: #000;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s;
    z-index: 4;
    padding: 0;
    border: none;
    box-shadow: 0 0 0 2px #fff;
}
.period-reset-btn:hover {
    transform: scale(1.2);
}
.period-reset-btn i,
.period-reset-btn svg {
    width: 11px;
    height: 11px;
    color: #fff !important;
    stroke: #fff !important;
    stroke-width: 3px !important;
}
.duration-hint {
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
    margin: -8px 0 16px;
}

/* Spontan Grid */
.spontan-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.spontan-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 20px 12px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: all 0.15s;
    font-family: 'Outfit', sans-serif;
}
.spontan-card:hover {
    border-color: #222;
    background: #fafafa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.spontan-card.active {
    border-color: #222;
    background: #222;
    color: #fff;
}
.spontan-card i {
    width: 24px;
    height: 24px;
    color: #FF385C;
    transition: color 0.15s;
}
.spontan-card.active i {
    color: #fff;
}
.spontan-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: inherit;
}
.spontan-days {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 500;
}
.spontan-card.active .spontan-days {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 600px) {
    .spontan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .period-month {
        width: 48px;
        height: 48px;
        font-size: 0.72rem;
    }
    .date-range-display {
        flex-wrap: wrap;
        gap: 8px;
    }
    .date-range-box {
        min-width: 100px;
        padding: 8px 14px;
    }
}
