/* ═══════════════════════════════════════════════════════════════════
   TripTiles – Trip Detail View  ·  Premium Split Modal · v1772751522
   Developed by Toni Sciacca - mail@tonisciacca.com
   ═══════════════════════════════════════════════════════════════════ */

/* ══ OVERLAY ══ */
.modal-overlay#tripDetailModal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: rgba(15,15,20,0.65);
    backdrop-filter: blur(4px);
    padding: 0;
}
.modal-overlay#tripDetailModal.active { display: block; }

/* ══ SHELL ══ */
.tdv-shell {
    isolation: isolate;
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    border-radius: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 400px 1fr;
    background: #fff;
    box-shadow: none;
    animation: tdvIn 0.36s cubic-bezier(0.16,1,0.3,1);
}
@keyframes tdvIn {
    from { opacity:0; transform:translateY(24px) scale(0.972); }
    to   { opacity:1; transform:translateY(0) scale(1); }
}

/* ══════════════════════════════
   LINKE SEITE
══════════════════════════════ */
.tdv-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background: #fff;
    border-right: 1px solid rgba(0,0,0,0.06);
}

/* ── Header mit Cover-Gradient ── */
.tdv-header {
    flex-shrink: 0;
    padding: 28px 26px 20px;
    background: linear-gradient(160deg,#fff8f8 0%,#fff 60%);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
}

.tdv-label {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #FF385C;
    background: rgba(255,56,92,0.08);
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.tdv-title {
    font-family: 'Outfit', Georgia, serif;
    font-size: 1.55rem;
    font-weight: 800;
    color: #0f0f12;
    line-height: 1.16;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tdv-desc {
    font-size: 0.82rem;
    line-height: 1.65;
    color: #9ca3af;
    margin: 0 0 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Stats ── */
.tdv-stats {
    display: flex;
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #fafafa;
}
.tdv-stat {
    flex: 1;
    text-align: center;
    padding: 11px 4px;
    border-right: 1px solid rgba(0,0,0,0.06);
    transition: background 0.15s;
}
.tdv-stat:last-child { border-right: none; }
.tdv-stat:hover { background: #f5f5f5; }
.tdv-stat-val {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    color: #111;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}
.tdv-stat-lbl {
    display: block;
    font-size: 0.56rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c8c8cc;
    margin-top: 3px;
}

/* ── Reise-Profil ── */
.tdv-profile {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tdv-profile:empty { display: none; }
.tdv-profile-row { display: flex; align-items: center; gap: 8px; }
.tdv-profile-icon { font-size: 0.7rem; width: 14px; text-align: center; flex-shrink: 0; }
.tdv-profile-icon i, .tdv-profile-icon svg { width: 11px; height: 11px; }
.tdv-profile-label {
    font-size: 0.7rem; color: #6b7280;
    width: 64px; flex-shrink: 0;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 6px;
}
.tdv-profile-bar-wrap {
    flex: 1; height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 2px; overflow: hidden;
}
.tdv-profile-bar {
    height: 100%; border-radius: 2px;
    transition: width 0.8s cubic-bezier(0.16,1,0.3,1);
}
.tdv-profile-pct {
    font-size: 0.63rem; font-weight: 700;
    color: #c8c8cc; width: 26px; text-align: right; flex-shrink: 0;
}

/* ── Routen-Kopf ── */
.tdv-routes-wrap {
    flex-shrink: 0;
}
.tdv-routes-nav { display: none; }

/* ── Hidden Helper ── */
.tdv-hidden { display: none !important; }

/* ── Tages-Timeline ── */
.tdv-day-timeline {
    padding: 20px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.tdv-tl-item {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: auto auto;
    column-gap: 14px;
    cursor: pointer;
    position: relative;
}
.tdv-tl-item:hover .tdv-tl-dot {
    transform: scale(1.2);
    box-shadow: 0 3px 12px rgba(255,56,92,0.3);
}
.tdv-tl-item:hover .tdv-tl-name { color: #0f0f12; }
.tdv-tl-dot {
    grid-column: 1; grid-row: 1;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 0.72rem; font-weight: 800;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    z-index: 2;
    transition: transform 0.16s, box-shadow 0.16s;
}
.tdv-tl-line {
    grid-column: 1; grid-row: 2;
    width: 3px; min-height: 20px;
    background: linear-gradient(to bottom, #e5e7eb, #e5e7eb);
    margin: 0 auto;
    border-radius: 2px;
}
.tdv-tl-info {
    grid-column: 2; grid-row: 1 / span 2;
    padding: 4px 0 16px;
    min-width: 0;
}
.tdv-tl-day {
    font-size: 0.58rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: #d1d5db; line-height: 1;
    margin-bottom: 3px;
}
.tdv-tl-name {
    font-size: 0.92rem; font-weight: 700;
    color: #374151; line-height: 1.2;
    transition: color 0.14s;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tdv-tl-meta {
    font-size: 0.65rem; color: #9ca3af;
    margin-top: 3px;
}

/* ── Zurueck-Button im Route-Detail ── */
.tdv-rd-back {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 600; color: #6b7280;
    cursor: pointer; transition: all 0.16s;
    font-family: inherit;
    margin-bottom: 14px;
}
.tdv-rd-back:hover {
    background: #e5e7eb; color: #374151;
}
.tdv-rd-back i, .tdv-rd-back svg { width: 12px; height: 12px; }

/* ── Route Detail (scrollbarer Bereich) ── */
.tdv-route-detail {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
.tdv-route-detail::-webkit-scrollbar { width: 3px; }
.tdv-route-detail::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

.tdv-route-detail-inner { padding: 0 0 24px; }
.tdv-route-hint {
    color: #d1d5db; font-size: 0.78rem;
    text-align: center; padding: 48px 26px;
}

/* ── Sticky Header (Hero + Meta + Text + Gewichtung) ── */
.tdv-rd-sticky-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
}
.tdv-rd-sticky-body {
    padding: 0 26px 12px;
}

/* ── Route Hero ── */
.tdv-rd-hero {
    width: 100%;
    margin: 0 0 14px;
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}
.tdv-rd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.15) 0%,
        rgba(0,0,0,0.6) 100%);
}

/* ── Zurueck-Button IM Hero ── */
.tdv-rd-back-hero {
    position: absolute; top: 12px; left: 14px;
    z-index: 3;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 14px;
    background: #FF385C;
    border: none;
    border-radius: 999px;
    font-size: 0.72rem; font-weight: 600; color: white;
    cursor: pointer; transition: all 0.16s;
    font-family: inherit;
    box-shadow: 0 2px 10px rgba(255,56,92,0.35);
}
.tdv-rd-back-hero:hover {
    background: #e6304f;
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(255,56,92,0.4);
}
.tdv-rd-back-hero i, .tdv-rd-back-hero svg { width: 12px; height: 12px; }

/* ── Hero Bottom Info ── */
.tdv-rd-hero-bottom {
    position: absolute; bottom: 14px; left: 16px; right: 16px;
    z-index: 2; color: white;
}
.tdv-rd-hero-badge {
    display: inline-block;
    font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.2px;
    color: rgba(255,255,255,0.8);
    background: rgba(0,0,0,0.3);
    padding: 3px 9px; border-radius: 5px;
    backdrop-filter: blur(6px);
    margin-bottom: 4px;
}
.tdv-rd-hero-title {
    font-size: 1.26rem; font-weight: 700;
    color: white; margin: 0;
    font-family: 'Outfit', sans-serif;
    text-shadow: 0 2px 6px rgba(0,0,0,0.3);
    line-height: 1.2;
}

.tdv-rd-title {
    font-size: 1.26rem; font-weight: 700;
    color: #0f0f12; margin: 0 0 5px;
    font-family: 'Outfit', sans-serif;
}
.tdv-rd-meta {
    display: flex; gap: 10px; flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 0.7rem; color: #9ca3af;
}
.tdv-rd-meta span { display: flex; align-items: center; gap: 3px; }
.tdv-rd-meta  i,
.tdv-rd-meta  svg { width: 10px; height: 10px; }

.tdv-rd-desc {
    font-size: 0.81rem; line-height: 1.65;
    color: #6b7280; margin-bottom: 14px;
}

/* ── Gewichtung ── */
.tdv-rd-weight {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: linear-gradient(135deg,#fafafa,#f5f5f5);
    border-radius: 10px; margin-bottom: 14px;
    border: 1px solid rgba(0,0,0,0.05);
}
.tdv-rd-weight-label {
    font-size: 0.68rem; color: #9ca3af;
    display: flex; align-items: center; gap: 5px;
}
.tdv-rd-weight-label  i,
.tdv-rd-weight-label  svg { width: 11px; height: 11px; }
.tdv-rd-weight-val {
    font-size: 0.8rem; font-weight: 700; color: #FF385C;
    background: rgba(255,56,92,0.08);
    padding: 2px 9px; border-radius: 6px;
}

/* ── Attribute ── */
.tdv-rd-attrs { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.tdv-rd-attrs-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(0,0,0,0.06); }
.tdv-rd-attrs-label {
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: #d1d5db;
    display: flex; align-items: center; gap: 5px; margin-bottom: 8px;
}
.tdv-rd-attrs-label i, .tdv-rd-attrs-label svg { width: 10px; height: 10px; color: #FF385C; }
.tdv-rd-attr-row { display: flex; align-items: center; gap: 6px; }
.tdv-rd-attr-icon { font-size: 0.7rem; width: 14px; text-align: center; }
.tdv-rd-attr-icon i, .tdv-rd-attr-icon svg { width: 11px; height: 11px; }

/* ── POI Timeline im Route-Detail ── */
.tdv-rd-poi-timeline { margin-top: 8px; padding: 0 26px; }
.tdv-rd-poi-timeline .dd-timeline-wrap { margin-bottom: 0; }
.tdv-rd-no-pois {
    font-size: 0.75rem; color: #c8c8cc; text-align: center;
    padding: 16px 0;
}

.tdv-attr-icon {
    width: 24px; height: 24px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tdv-attr-icon i, .tdv-attr-icon svg { width: 12px; height: 12px; }
.tdv-rd-attr-name { font-size: 0.68rem; color: #6b7280; width: 64px; flex-shrink: 0; }
.tdv-rd-attr-bar-wrap { flex: 1; height: 4px; background: rgba(0,0,0,0.06); border-radius: 2px; overflow: hidden; }
.tdv-rd-attr-bar { height: 100%; border-radius: 2px; transition: width 0.6s ease; }
.tdv-rd-attr-val { font-size: 0.62rem; font-weight: 700; color: #d1d5db; width: 26px; text-align: right; }

/* ── POI Liste ── */
.tdv-rd-pois-title {
    font-size: 0.58rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.4px;
    color: #d1d5db; margin-bottom: 8px;
    display: flex; align-items: center; gap: 5px;
}
.tdv-rd-pois-title  i,
.tdv-rd-pois-title  svg { width: 10px; height: 10px; color: #FF385C; }
.tdv-rd-poi-list { display: flex; flex-direction: column; gap: 3px; }

.tdv-rd-poi-row {
    display: flex; align-items: center; gap: 9px;
    padding: 7px 8px; border-radius: 10px;
    cursor: pointer;
    transition: background 0.14s, border-color 0.14s;
    border: 1px solid transparent;
}
.tdv-rd-poi-row:hover,
.tdv-rd-poi-row.hovered {
    background: #fff5f6;
    border-color: rgba(255,56,92,0.14);
}
.tdv-rd-poi-row.must-see {
    background: #fffbf0;
    border-color: rgba(245,158,11,0.16);
}
.tdv-rd-poi-thumb {
    width: 38px; height: 38px; border-radius: 8px;
    background-size: cover; background-position: center;
    background-color: #f3f4f6; flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.tdv-rd-poi-body { flex: 1; min-width: 0; }
.tdv-rd-poi-name {
    font-size: 0.8rem; font-weight: 600; color: #1f2937;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tdv-rd-poi-type { font-size: 0.65rem; color: #c8c8cc; margin-top: 1px; }
.tdv-rd-poi-dot {
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.58rem; font-weight: 800; color: white; flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

/* ── Detail Button ── */
.tdv-rd-detail-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; width: 100%; margin-top: 16px;
    padding: 11px;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 600; color: #374151;
    cursor: pointer; transition: all 0.18s;
    font-family: inherit; letter-spacing: 0.2px;
}
.tdv-rd-detail-btn:hover {
    background: #fff5f6;
    border-color: #FF385C;
    color: #FF385C;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255,56,92,0.12);
}
.tdv-rd-detail-btn  i,
.tdv-rd-detail-btn  svg { width: 13px; height: 13px; }

/* ── Footer ── */
.tdv-footer {
    display: flex; gap: 5px;
    padding: 10px 16px 12px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: #fafafa;
    flex-shrink: 0;
}
.tdv-ftr-btn {
    flex: 1;
    display: flex; align-items: center; justify-content: center;
    gap: 5px; padding: 9px 4px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.7rem; font-weight: 600; color: #6b7280;
    cursor: pointer; transition: all 0.16s;
    white-space: nowrap; font-family: inherit;
}
.tdv-ftr-btn  i,
.tdv-ftr-btn  svg { width: 12px; height: 12px; }
.tdv-ftr-btn:hover {
    border-color: #FF385C; color: #FF385C;
    background: #fff8f8;
}
.tdv-ftr-btn.tdv-ftr-primary {
    background: #FF385C;
    border-color: #FF385C;
    color: white;
}
.tdv-ftr-btn.tdv-ftr-primary:hover {
    background: #e6304f;
    border-color: #e6304f;
    color: white;
}
.tdv-ftr-btn  i,
.tdv-ftr-btn  svg { width: 12px; height: 12px; }
.tdv-ftr-btn:hover {
    border-color: #FF385C; color: #FF385C;
    background: #fff8f8;
}

/* ── Footer: Route individualisieren ── */
.tdv-ftr-individualize {
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border-color: #c7d7f9;
    color: #3b5bdb;
}
.tdv-ftr-individualize:hover {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: white;
}
.tdv-ftr-individualize.pulsing {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: white;
    animation: btnPulse 1.5s ease-in-out infinite;
}

/* ══════════════════════════════
   RECHTE SEITE
══════════════════════════════ */
.tdv-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

/* ── Day-Bar ── */
.tdv-day-bar {
    display: flex;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.07);
    overflow-x: auto;
    scrollbar-width: none;
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}
.tdv-day-bar::-webkit-scrollbar { display: none; }
.tdv-day-bar:empty { display: none; }

.tdv-day-tab {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 11px 20px;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.16s;
    flex-shrink: 0;
    gap: 2px;
    min-width: 88px;
    font-family: inherit;
    position: relative;
}
.tdv-day-tab::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: var(--tdv-day-color, #FF385C);
    border-radius: 3px 3px 0 0;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}
.tdv-day-tab.active::after { transform: scaleX(1); }
.tdv-day-tab:hover { background: rgba(0,0,0,0.02); }

.tdv-day-tab-label {
    font-size: 0.58rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: #d1d5db; transition: color 0.16s; line-height: 1;
}
.tdv-day-tab.active .tdv-day-tab-label { color: var(--tdv-day-color, #FF385C); }

.tdv-day-tab-name {
    font-size: 0.78rem; font-weight: 600; color: #6b7280;
    max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    line-height: 1.2; transition: color 0.16s;
}
.tdv-day-tab.active .tdv-day-tab-name { color: #0f0f12; }

/* ── Karte ── */
.tdv-map {
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

/* ── Close Button ── */
/* Close Button - siehe Override unten */

/* ── POI Hover Panel ── */
.tdv-poi-panel {
    position: absolute;
    bottom: 20px; left: 16px;
    width: 268px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(0,0,0,0.05);
    overflow: hidden;
    z-index: 30;
    display: none;
    animation: tdvPanelUp 0.14s ease;
}
.tdv-poi-panel.visible { display: block; }
@keyframes tdvPanelUp {
    from { opacity:0; transform:translateY(6px); }
    to   { opacity:1; transform:translateY(0); }
}
.tdv-poi-panel-img {
    width: 100%; height: 94px;
    background-size: cover; background-position: center;
    background-color: #f3f4f6;
}
.tdv-poi-panel-body { padding: 10px 12px 12px; }
.tdv-poi-panel-name { font-size: 0.84rem; font-weight: 700; color: #0f0f12; margin-bottom: 2px; }
.tdv-poi-panel-type {
    font-size: 0.67rem; color: #9ca3af;
    display: flex; align-items: center; gap: 3px; margin-bottom: 4px;
}
.tdv-poi-panel-type  i,
.tdv-poi-panel-type  svg { width: 10px; height: 10px; }
.tdv-poi-panel-desc {
    font-size: 0.72rem; color: #6b7280; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.tdv-poi-panel-must {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.72rem; font-weight: 700;
    background: #fef3c7; color: #92400e;
    padding: 2px 7px; border-radius: 5px; margin-bottom: 5px;
}

/* ── Leaflet Marker ── */
.tdv-marker {
    width: 28px; height: 28px; border-radius: 50%;
    border: 2.5px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.24);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 800; color: white;
    cursor: pointer; transition: transform 0.14s;
    position: relative;
}
.tdv-marker:hover { transform: scale(1.35) !important; }

/* ── Marker Plus/Minus Badge ── */
.tdv-marker-badge {
    position: absolute;
    top: -6px; right: -6px;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1.5px solid white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    z-index: 2;
}
.tdv-marker-badge i, .tdv-marker-badge svg {
    width: 9px; height: 9px; color: white;
}
.tdv-marker-badge-plus { background: #22c55e; }
.tdv-marker-badge-minus { background: #FF385C; }

/* ── Map Popup mit Plus/Minus neben dem Namen ── */
.tdv-map-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
.tdv-map-popup .leaflet-popup-content {
    margin: 8px 10px;
    font-size: 0.82rem;
}
.tdv-map-popup .leaflet-popup-tip {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.tdv-map-popup-row {
    display: flex; align-items: center; gap: 10px;
    white-space: nowrap;
}
.tdv-map-popup-row strong {
    flex: 1; min-width: 0;
    overflow: hidden; text-overflow: ellipsis;
    font-size: 0.82rem; color: #1f2937;
}
.tdv-map-poi-btn {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1.5px solid white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    box-shadow: 0 1px 6px rgba(0,0,0,0.2);
    transition: transform 0.14s, box-shadow 0.14s;
}
.tdv-map-poi-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 12px rgba(0,0,0,0.25);
}
.tdv-map-poi-btn i, .tdv-map-poi-btn svg { width: 13px; height: 13px; color: white; }
.tdv-map-poi-add { background: #22c55e; }
.tdv-map-poi-add:hover { background: #16a34a; }
.tdv-map-poi-remove { background: #FF385C; }
.tdv-map-poi-remove:hover { background: #e6304f; }

/* ══════════════════════════════
   DEEP DIVE  (überschreibt ganzes Shell)
══════════════════════════════ */

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ── Toast ── */
.toast-container {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 10000;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 12px 18px; border-radius: 12px;
    font-size: 0.87rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    animation: toastIn 0.28s cubic-bezier(0.2,0.9,0.3,1);
}
.toast-success { background: rgba(22,163,74,0.96); }
.toast-error   { background: rgba(220,38,38,0.96); }
.toast-info    { background: rgba(15,15,20,0.92); }
@keyframes toastIn {
    from { opacity:0; transform:translateX(32px); }
    to   { opacity:1; transform:translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .tdv-shell {
        grid-template-columns: 1fr;
        border-radius: 0;
        max-height: 100vh;
        height: 100vh;
    }
    .tdv-right { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   DEEP DIVE  —  Route Detail Ansicht
   Klassen müssen 1:1 mit renderDeepDive() im JS übereinstimmen
   ══════════════════════════════════════════════════════════════════ */

/* ── Shell ── */
.route-deep-dive {
    position: absolute;
    inset: 0;
    background: #f8fafc;
    z-index: 400;
    transform: translateX(102%);
    transition: transform 0.42s cubic-bezier(0.16,1,0.3,1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 24px;
}
.tdv-shell.is-deep-dive-active .route-deep-dive {
    transform: translateX(0);
}

/* ── Back Button ── */
.deep-dive-back-btn {
    display: inline-flex; align-items: center; gap: 6px;
    margin: 14px 0 0 16px;
    padding: 8px 18px;
    background: #f3f4f6;
    border: none;
    border-radius: 999px;
    font-size: 0.82rem; font-weight: 600; color: #1f2937;
    cursor: pointer;
    transition: all 0.16s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
    z-index: 500;
}
.deep-dive-back-btn:hover {
    background: #e5e7eb;
}
.deep-dive-back-btn  i,
.deep-dive-back-btn  svg { width: 15px; height: 15px; }

/* ── Loading ── */
.deep-dive-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.deep-dive-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.88rem;
    color: #9ca3af;
}

/* ═══════════════════════════
   LAYOUT: Links + Rechts
═══════════════════════════ */
.dd-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    height: 100%;
    overflow: hidden;
}

/* ── LINKS: Timeline + Info ── */
.dd-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(0,0,0,0.06);
    background: #fff;
}

/* ── Hero Bild ── */
.dd-hero {
    flex-shrink: 0;
    height: 190px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.dd-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom,
        rgba(0,0,0,0.0) 0%,
        rgba(0,0,0,0.45) 100%);
}
.dd-hero-content {
    position: absolute;
    bottom: 16px; left: 20px; right: 20px;
    color: white; z-index: 2;
}
.dd-country-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    margin-bottom: 6px;
}
.dd-title {
    font-size: 1.55rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 8px;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.dd-hero-stats {
    display: flex; gap: 12px; flex-wrap: wrap;
}
.dd-hero-stats span {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.74rem; color: rgba(255,255,255,0.88);
    font-weight: 500;
}
.dd-hero-stats  i,
.dd-hero-stats  svg { width: 11px; height: 11px; }

/* ── Body (scrollbar) ── */
.dd-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 18px 20px 12px;
    scrollbar-width: thin;
    scrollbar-color: #e5e7eb transparent;
}
.dd-body::-webkit-scrollbar { width: 3px; }
.dd-body::-webkit-scrollbar-thumb { background: #e5e7eb; border-radius: 2px; }

/* ── Tags ── */
.dd-tags {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 14px;
}
.dd-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.72rem; font-weight: 500; color: #374151;
    transition: all 0.14s;
}
.dd-tag:hover {
    border-color: #FF385C;
    background: #fff5f6;
    color: #FF385C;
}

/* ── Beschreibung ── */
.dd-description {
    font-size: 0.84rem;
    line-height: 1.7;
    color: #6b7280;
    margin-bottom: 18px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
}

/* ═══════════════════════════
   TIMELINE  —  Kernstück
═══════════════════════════ */
.dd-timeline-wrap {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

/* ── Einzelner Stop ── */
.dd-stop {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px;
    position: relative;
}

/* Verbindungslinie */
.dd-stop-line {
    grid-column: 1;
    grid-row: 2;
    width: 2px;
    min-height: 12px;
    background: linear-gradient(to bottom, #e5e7eb, #e5e7eb);
    margin: 0 auto;
    flex-shrink: 0;
}
.dd-stop:last-child .dd-stop-line { display: none; }

/* ── Dot ── */
.dd-stop-dot {
    grid-column: 1;
    grid-row: 1;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 800; color: white;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
    border: 2.5px solid white;
    z-index: 1;
}
.dd-dot-green  { background: #22c55e; }
.dd-dot-red    { background: #ef4444; }
.dd-dot-pink   { background: #FF385C; }
.dd-dot-gold   { background: #f59e0b; }

/* ── Stop Body (Start/Ziel einfach) ── */
.dd-stop-body {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-bottom: 4px;
    min-width: 0;
}
.dd-stop-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-weight: 700;
    color: #9ca3af;
    line-height: 1;
}
.dd-stop-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #111;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── Km Anzeige ── */
.dd-stop-km {
    grid-column: 3;
    grid-row: 1;
    font-size: 0.65rem;
    font-weight: 600;
    color: #d1d5db;
    align-self: center;
    white-space: nowrap;
    padding-bottom: 4px;
}

/* ── POI Card (innerhalb dd-stop) ── */
.dd-stop-card {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: white;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.16s;
    margin-bottom: 2px;
    min-width: 0;
}
.dd-stop-card:hover {
    border-color: rgba(255,56,92,0.25);
    background: #fff5f6;
    box-shadow: 0 3px 10px rgba(255,56,92,0.08);
}
.dd-stop.hovered .dd-stop-card {
    border-color: rgba(255,56,92,0.4);
    background: #fff5f6;
    box-shadow: 0 4px 14px rgba(255,56,92,0.14);
}
.dd-stop-must .dd-stop-card {
    border-color: rgba(245,158,11,0.25);
    background: #fffbf0;
}
.dd-stop-must .dd-stop-card:hover {
    border-color: #f59e0b;
    box-shadow: 0 3px 10px rgba(245,158,11,0.12);
}

.dd-stop-thumb {
    width: 42px; height: 42px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: #f3f4f6;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.dd-stop-info {
    flex: 1;
    min-width: 0;
}
.dd-stop-info .dd-stop-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dd-stop-meta {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}
.dd-stop-meta span {
    display: flex; align-items: center; gap: 3px;
    font-size: 0.65rem; color: #9ca3af;
}
.dd-stop-meta  i,
.dd-stop-meta  svg { width: 9px; height: 9px; }
.dd-stop-chevron {
    width: 14px; height: 14px;
    color: #d1d5db; flex-shrink: 0;
}

/* ── Plus/Minus Buttons in der POI-Timeline ── */
.dd-stop-action {
    width: 26px; height: 26px; border-radius: 50%;
    border: 1.5px solid white;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    transition: transform 0.14s, box-shadow 0.14s;
}
.dd-stop-action:hover {
    transform: scale(1.15);
    box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}
.dd-stop-action i, .dd-stop-action svg { width: 12px; height: 12px; color: white; }
.dd-stop-remove { background: #FF385C; }
.dd-stop-remove:hover { background: #e6304f; }
.dd-stop-add { background: #22c55e; }
.dd-stop-add:hover { background: #16a34a; }

/* Abstand zwischen POI-Stops und dem Linienelement */
.dd-stop:not(.dd-stop-start):not(.dd-stop-end) {
    padding: 3px 0;
}

/* ── Spacing für Start/Ziel ── */
.dd-stop-start,
.dd-stop-end {
    padding: 5px 0;
}

/* ── Actions ── */
.dd-footer {
    display: flex;
    gap: 8px;
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(0,0,0,0.06);
    background: #fff;
    flex-shrink: 0;
}
.dd-btn-back {
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.16s;
    font-family: inherit;
    white-space: nowrap;
    flex-shrink: 0;
}
.dd-btn-back:hover { background: #e5e7eb; }
.dd-btn-back i, .dd-btn-back svg { width: 13px; height: 13px; }
.dd-btn-primary {
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 9px 16px;
    background: #FF385C;
    color: white;
    border: none;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.16s;
    font-family: inherit;
    white-space: nowrap;
}
.dd-btn-primary:hover {
    background: #e63e5c;
    box-shadow: 0 4px 14px rgba(255,56,92,0.35);
    transform: translateY(-1px);
}
.dd-btn-primary  i,
.dd-btn-primary  svg { width: 13px; height: 13px; }
.dd-btn-sec {
    display: flex; align-items: center; justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    font-size: 0.8rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.16s;
    font-family: inherit;
}
.dd-btn-sec:hover {
    background: #e5e7eb;
    color: #374151;
}
.dd-btn-sec  i,
.dd-btn-sec  svg { width: 13px; height: 13px; }

/* ── RECHTS: Fullsize Karte ── */
.dd-right {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #e8ecf0;
}

.dd-map {
    flex: 1;
    min-height: 0;
    position: relative;
    z-index: 1;
}

/* ── Karten-Legende ── */
.dd-map-legend {
    display: flex;
    gap: 14px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.dd-map-legend span {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.67rem; font-weight: 600; color: #6b7280;
}
.dd-legend-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1.5px solid white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    display: inline-block; flex-shrink: 0;
}

/* ── Leaflet Marker (Deep Dive) ── */
.dd-marker {
    width: 26px; height: 26px;
    border-radius: 50%;
    border: 2.5px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.22);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; font-weight: 800; color: white;
    cursor: pointer;
    transition: transform 0.12s;
}
.dd-marker:hover { transform: scale(1.35); }

/* ── Karte leer ── */
.dd-map-empty {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; color: #9ca3af; font-size: 0.85rem;
    height: 100%;
}
.dd-map-empty  i,
.dd-map-empty  svg { width: 20px; height: 20px; }

/* ══════════════════════════════════════════════════════════════════
   POI DETAIL LAYER  (pdl)  —  Split: Links Info, Rechts Map
   ══════════════════════════════════════════════════════════════════ */

.dd-poi-detail-layer {
    position: absolute;
    inset: 0;
    z-index: 600;
    display: flex;
    align-items: stretch;
    border-radius: 24px;
    overflow: hidden;
    animation: pdlIn 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes pdlIn {
    from { opacity:0; transform:scale(0.98); }
    to   { opacity:1; transform:scale(1); }
}

.pdl-backdrop {
    display: none; /* kein halbtransparentes backdrop — Panel füllt alles */
}

/* ── Panel: Grid Links/Rechts ── */
.pdl-panel {
    display: grid;
    grid-template-columns: 400px 1fr;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 24px;
    overflow: hidden;
}

/* ══ LINKS ══ */
.pdl-left {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border-right: 1px solid rgba(0,0,0,0.06);
    border-radius: 24px 0 0 24px;
}

/* ── Hero Bild ── */
.pdl-hero {
    flex-shrink: 0;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.pdl-hero-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0%, rgba(0,0,0,0.68) 100%);
    border-radius: 24px 0 0 0;
}
.pdl-close {
    position: absolute; top: 12px; right: 12px;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255,255,255,0.92); border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.16);
    transition: transform 0.14s;
}
.pdl-close:hover { transform: scale(1.1); }
.pdl-close  i,
.pdl-close  svg { width: 13px; height: 13px; }
.pdl-must {
    position: absolute; top: 12px; left: 12px;
    background: #FF385C; color: white;
    padding: 3px 10px; border-radius: 5px;
    font-size: 0.64rem; font-weight: 700; z-index: 5;
}
.pdl-hero-info {
    position: absolute; bottom: 14px; left: 16px; right: 16px;
    color: white; z-index: 5;
}
.pdl-cat {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 0.62rem; text-transform: uppercase; letter-spacing: 1px;
    opacity: 0.8; margin-bottom: 4px;
}
.pdl-cat  i,
.pdl-cat  svg { width: 10px; height: 10px; }
.pdl-title {
    font-size: 1.4rem; font-weight: 800;
    font-family: 'Outfit', sans-serif;
    margin: 0 0 6px; line-height: 1.15;
    letter-spacing: -0.3px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* ── Sterne ── */
.pdl-stars {
    display: flex; align-items: center; gap: 3px;
}
.pdl-stars  i,
.pdl-stars  svg { width: 11px; height: 11px; }
.pdl-stars .s-full { color: #f59e0b; }
.pdl-stars .s-half { color: #f59e0b; }
.pdl-stars .s-empty { color: rgba(255,255,255,0.4); }
.pdl-stars > span { font-size: 0.78rem; font-weight: 700; margin-left: 4px; }
.pdl-rcnt { font-size: 0.68rem; opacity: 0.7; }

/* ── Body ── */
.pdl-body {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    padding: 14px 18px 8px;
    scrollbar-width: thin; scrollbar-color: #e5e7eb transparent;
}
.pdl-body::-webkit-scrollbar { width: 3px; }
.pdl-body::-webkit-scrollbar-thumb { background: #e5e7eb; }

/* ── Chips ── */
.pdl-chips {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.pdl-chip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 0.7rem; font-weight: 500; color: #374151;
}
.pdl-chip i,
.pdl-chip svg { width: 10px; height: 10px; color: #FF385C; flex-shrink: 0; }

/* ── Adresse ── */
.pdl-addr {
    display: flex; align-items: flex-start; gap: 6px;
    font-size: 0.8rem; color: #6b7280;
    margin-bottom: 10px; line-height: 1.4;
}
.pdl-addr  i,
.pdl-addr  svg { width: 12px; height: 12px; color: #FF385C; flex-shrink: 0; margin-top: 2px; }

/* ── Beschreibung ── */
.pdl-desc {
    font-size: 0.84rem; line-height: 1.68; color: #4b5563;
    margin: 0 0 12px;
}

/* ── Tipp ── */
.pdl-tip {
    display: flex; gap: 9px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 10px;
    margin-bottom: 12px;
}
.pdl-tip-ic {
    width: 26px; height: 26px; flex-shrink: 0;
    background: #fef3c7; border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
}
.pdl-tip-ic  i,
.pdl-tip-ic  svg { width: 12px; height: 12px; color: #d97706; }
.pdl-tip strong { display: block; font-size: 0.7rem; font-weight: 700; color: #92400e; margin-bottom: 2px; }
.pdl-tip p { font-size: 0.78rem; line-height: 1.5; color: #78350f; margin: 0; }

/* ── CTAs (Website, Telefon, etc.) ── */
.pdl-ctas {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 8px;
}
.pdl-cta {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.74rem; font-weight: 600; color: #374151;
    text-decoration: none;
    transition: all 0.14s;
}
.pdl-cta  i,
.pdl-cta  svg { width: 11px; height: 11px; color: #6b7280; }
.pdl-cta:hover { border-color: #FF385C; color: #FF385C; background: #fff5f6; }
.pdl-cta:hover i { color: #FF385C; }
.pdl-cta-ticket { border-color: #FF385C; color: #FF385C; }
.pdl-cta-ticket  i,
.pdl-cta-ticket  svg { color: #FF385C; }
.pdl-cta-ticket:hover { background: #FF385C; color: white; }
.pdl-cta-ticket:hover i { color: white; }

/* ── Footer ── */
.pdl-footer {
    display: flex; gap: 8px; flex-wrap: wrap;
    padding: 10px 16px 14px;
    border-top: 1px solid rgba(0,0,0,0.05);
    background: white;
    flex-shrink: 0;
    border-radius: 0 0 0 24px;
}
/* ── Pill-Basis ── */
.pdl-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 600;
    cursor: pointer; transition: all 0.15s;
    font-family: inherit; border: none; white-space: nowrap;
}
.pdl-pill  i,
.pdl-pill  svg { width: 13px; height: 13px; flex-shrink: 0; }
/* Navigation – primär rot */
.pdl-pill-primary {
    background: #FF385C; color: white;
    box-shadow: 0 2px 10px rgba(255,56,92,0.25);
}
.pdl-pill-primary:hover { background: #e6304f; box-shadow: 0 4px 14px rgba(255,56,92,0.35); transform: translateY(-1px); }
/* Zurück – ghost */
.pdl-pill-ghost {
    background: #f3f4f6; color: #6b7280;
    border: 1px solid #e5e7eb;
}
.pdl-pill-ghost:hover { background: #e5e7eb; color: #374151; }

/* ══ RECHTS: Karte ══ */
.pdl-right {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #e8ecf0;
    border-radius: 0 24px 24px 0;
}
.pdl-map {
    width: 100%; height: 100%;
    position: relative; z-index: 1;
}

/* ── Leaflet Rich Popup ── */
.pdl-popup .leaflet-popup-content-wrapper {
    padding: 0; border-radius: 14px;
    overflow: hidden; box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    min-width: 240px; max-width: 280px; border: none;
}
.pdl-popup .leaflet-popup-content { margin: 0; width: 100% !important; }
.pdl-popup .leaflet-popup-tip-container { margin-top: -1px; }
.pdl-popup-img {
    width: 100%; height: 130px;
    background-size: cover; background-position: center;
    position: relative;
}
.pdl-popup-img-grad {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.55));
}
.pdl-popup-must {
    position: absolute; top: 8px; left: 8px;
    background: #FF385C; color: white;
    padding: 2px 8px; border-radius: 99px;
    font-size: 0.72rem; font-weight: 700;
}
.pdl-popup-body { padding: 10px 12px 12px; }
.pdl-popup-cat {
    font-size: 0.6rem; text-transform: uppercase;
    letter-spacing: 1px; color: #9ca3af; font-weight: 700; margin-bottom: 3px;
}
.pdl-popup-name {
    font-size: 0.92rem; font-weight: 800; color: #111827;
    margin: 0 0 6px; line-height: 1.2; font-family: 'Outfit', sans-serif;
}
.pdl-popup-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.pdl-popup-chip {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 0.66rem; color: #6b7280; font-weight: 500;
}
.pdl-popup-chip i,
.pdl-popup-chip svg { width: 10px; height: 10px; flex-shrink: 0; }
.pdl-popup-rating {
    display: flex; align-items: center; gap: 4px;
    font-size: 0.7rem; font-weight: 600; color: #f59e0b;
}
.pdl-popup-rating span { color: #374151; font-weight: 500; }

/* ── Spinner ── */
@keyframes spin { to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ── Toast ── */
.toast-container {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 10000;
    display: flex; flex-direction: column; gap: 8px;
}
.toast {
    padding: 12px 18px; border-radius: 12px;
    font-size: 0.87rem; font-weight: 500;
    display: flex; align-items: center; gap: 10px;
    color: white;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14);
    animation: toastIn 0.28s cubic-bezier(0.2,0.9,0.3,1);
}
.toast-success { background: rgba(22,163,74,0.96); }
.toast-error   { background: rgba(220,38,38,0.96); }
.toast-info    { background: rgba(15,15,20,0.92); }
@keyframes toastIn {
    from { opacity:0; transform:translateX(32px); }
    to   { opacity:1; transform:translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 860px) {
    .tdv-shell {
        grid-template-columns: 1fr;
        border-radius: 0;
        max-height: 100vh; height: 100vh;
    }
    .tdv-right { display: none; }
    .dd-layout { grid-template-columns: 1fr; }
    .dd-right { display: none; }
}

/* ══════════════════════════════════════════════════════════════════
   ROUTE INDIVIDUALISIERUNG  —  Panel über der Karte
   ══════════════════════════════════════════════════════════════════ */

/* ── Button im Route-Detail ── */
.tdv-rd-individualize-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 6px; width: 100%; margin-top: 8px;
    padding: 11px;
    background: linear-gradient(135deg, #f0f4ff, #e8f0fe);
    border: 1.5px solid #c7d7f9;
    border-radius: 999px;
    font-size: 0.78rem; font-weight: 600; color: #3b5bdb;
    cursor: pointer; transition: all 0.18s;
    font-family: inherit; letter-spacing: 0.2px;
}
.tdv-rd-individualize-btn:hover {
    background: #3b5bdb;
    border-color: #3b5bdb;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(59,91,219,0.25);
}
.tdv-rd-individualize-btn i,
.tdv-rd-individualize-btn svg { width: 13px; height: 13px; }

/* ── Panel (über der rechten Karte) ── */
.tdv-individualize-panel {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 200;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.16);
    max-height: 72%;
    display: flex; flex-direction: column;
    overflow-x: visible; overflow-y: auto;
    animation: indPanelUp 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes indPanelUp {
    from { transform: translateY(100%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ── Panel Header ── */
.tdv-ind-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    flex-shrink: 0;
}
.tdv-ind-title {
    font-size: 0.84rem; font-weight: 700; color: #1f2937;
    display: flex; align-items: center; gap: 6px;
}
.tdv-ind-title i,
.tdv-ind-title svg { width: 14px; height: 14px; color: #3b5bdb; }
.tdv-ind-close {
    width: 28px; height: 28px; border-radius: 50%;
    background: #f3f4f6; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.14s;
}
.tdv-ind-close:hover { background: #e5e7eb; }
.tdv-ind-close i,
.tdv-ind-close svg { width: 13px; height: 13px; }

/* ── Dimensions Buttons ── */
.tdv-ind-dims {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 10px 14px 8px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.tdv-dim-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 999px;
    background: white;
    font-size: 0.72rem; font-weight: 600;
    color: #6b7280; cursor: pointer;
    transition: all 0.16s;
    font-family: inherit;
}
.tdv-dim-btn i,
.tdv-dim-btn svg { width: 11px; height: 11px; }
.tdv-dim-btn:hover {
    border-color: var(--dim-color);
    color: var(--dim-color);
    background: color-mix(in srgb, var(--dim-color) 8%, white);
}
.tdv-dim-btn.active {
    background: var(--dim-color);
    border-color: var(--dim-color);
    color: white;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--dim-color) 35%, transparent);
}

/* ── Hint ── */
.tdv-ind-hint {
    font-size: 0.72rem; color: #c8c8cc; text-align: center;
    padding: 18px 14px; width: 100%;
    flex-shrink: 0;
}

/* ── POI Liste (horizontal scrollbar) ── */
.tdv-ind-pois {
    flex: 1; min-height: 80px; overflow-x: scroll; overflow-y: hidden;
    padding: 8px 12px 12px;
    scrollbar-width: none;
    display: flex; flex-direction: row; gap: 8px;
    align-items: flex-start;
}
.tdv-ind-pois::-webkit-scrollbar { display: none; }

/* ── Loading / Empty ── */
.tdv-ind-loading,
.tdv-ind-empty {
    display: flex; align-items: center; justify-content: center;
    gap: 8px; color: #9ca3af; font-size: 0.8rem;
    padding: 28px 0;
}
.tdv-ind-loading i, .tdv-ind-loading svg,
.tdv-ind-empty i,   .tdv-ind-empty svg { width: 16px; height: 16px; }

/* ── POI Kandidaten-Kachel ── */
.tdv-ind-poi-card {
    position: relative;
    flex-shrink: 0;
    width: 110px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #f0f0f0;
    cursor: pointer;
    transition: box-shadow 0.16s, border-color 0.16s, transform 0.16s;
    display: flex; flex-direction: column;
}
.tdv-ind-poi-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.13);
    border-color: var(--tile-color, #FF385C);
    transform: translateY(-2px);
}
.tdv-ind-poi-thumb {
    position: relative;
    width: 100%; height: 72px;
    background-size: cover; background-position: center;
    background-color: #f3f4f6; flex-shrink: 0;
}
.tdv-ind-poi-dot {
    position: absolute; top: 5px; left: 5px;
    width: 18px; height: 18px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.55rem; font-weight: 800; color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.tdv-ind-poi-add {
    position: absolute; top: 5px; right: 5px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #22c55e; border: 1.5px solid #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 1; z-index: 2;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.tdv-ind-poi-add i,
.tdv-ind-poi-add svg { width: 11px; height: 11px; color: #fff; }
.tdv-ind-poi-add {
    position: absolute; top: 5px; right: 5px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #22c55e; border: 1.5px solid #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 1; z-index: 2;
    transition: background 0.15s, transform 0.15s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.tdv-ind-poi-add:hover i,
.tdv-ind-poi-add:hover svg { color: #fff; }
.tdv-ind-poi-info { flex: 1; padding: 5px 7px 4px; min-width: 0; }
.tdv-ind-poi-name {
    font-size: 0.72rem; font-weight: 700; color: #1f2937;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tdv-ind-poi-meta {
    display: flex; gap: 4px; margin-top: 2px;
    font-size: 0.6rem; color: #9ca3af; flex-wrap: wrap;
}
.tdv-ind-poi-meta span { display: flex; align-items: center; gap: 3px; }
.tdv-ind-poi-meta i,
.tdv-ind-poi-meta svg { width: 9px; height: 9px; }
.tdv-ind-poi-bar {
    height: 3px; width: 100%; flex-shrink: 0; opacity: 0.7;
}

/* ── Route-POIs oben im Panel ── */
.tdv-ind-route-pois {
    border-bottom: 1px solid rgba(0,0,0,0.05);
    padding: 8px 12px; flex-shrink: 0;
}
.tdv-ind-route-pois-scroll {
    display: flex; flex-direction: row; gap: 8px;
    overflow-x: scroll; overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.tdv-ind-route-pois-scroll::-webkit-scrollbar { display: none; }
.tdv-ind-section-label {
    font-size: 0.6rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 1.2px; color: #d1d5db;
    display: flex; align-items: center; gap: 5px; margin-bottom: 6px;
}
.tdv-ind-section-label i,
.tdv-ind-section-label svg { width: 10px; height: 10px; color: #FF385C; }
.tdv-ind-empty-small { font-size: 0.72rem; color: #c8c8cc; padding: 8px 0; }
.tdv-ind-poi-remove {
    position: absolute; top: 5px; right: 5px;
    width: 22px; height: 22px; border-radius: 50%;
    background: #FF385C; border: 1.5px solid #fff;
    color: white; cursor: pointer; z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.15s; box-shadow: 0 1px 4px rgba(0,0,0,0.18);
}
.tdv-ind-poi-remove:hover { background: #e6304f; transform: scale(1.15); }
.tdv-ind-poi-remove i, .tdv-ind-poi-remove svg { width: 11px; height: 11px; }
.tdv-ind-wiggle { will-change: transform; }
@keyframes markerPulse { 0%{transform:scale(1)} 50%{transform:scale(1.5)} 100%{transform:scale(1)} }
.tdv-marker-pulse { animation: markerPulse 0.8s ease-in-out infinite; }
@keyframes btnPulse { 0%{box-shadow:0 0 0 0 rgba(59,91,219,0.5)} 70%{box-shadow:0 0 0 8px rgba(59,91,219,0)} 100%{box-shadow:0 0 0 0 rgba(59,91,219,0)} }
.tdv-rd-individualize-btn.pulsing { background:#3b5bdb; border-color:#3b5bdb; color:white; animation:btnPulse 1.5s ease-in-out infinite; }

/* ── POI Kandidaten-Detail (kleiner Overlay) ── */
.tdv-poi-candidate-detail {
    position: absolute;
    top: 16px; right: 16px;
    width: 300px;
    z-index: 300;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.2);
    animation: tdvPanelUp 0.2s ease;
}

/* ── Individualisieren: Aktions-Buttons ── */
.tdv-ind-actions {
    display: flex; gap: 8px; padding: 8px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.tdv-ind-action-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
    padding: 7px 10px; border-radius: 8px; border: 1.5px solid #e5e7eb;
    background: #fff; font-size: 0.72rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.15s;
}
.tdv-ind-action-btn i, .tdv-ind-action-btn svg { width: 13px; height: 13px; }
.tdv-ind-btn-reset { color: #6b7280; }
.tdv-ind-btn-reset:hover { border-color: #f59e0b; color: #f59e0b; background: #fffbeb; }
.tdv-ind-btn-save { color: #FF385C; border-color: #FF385C; }
.tdv-ind-btn-save:hover { background: #FF385C; color: #fff; }

/* ── Scroll-Buttons ── */
.tdv-ind-scroll-btns {
    position: sticky; bottom: 0; z-index: 10;
    display: flex; justify-content: center; gap: 6px;
    padding: 6px 0 8px; background: linear-gradient(transparent, #fff 30%);
    pointer-events: none;
}
.tdv-ind-scroll-btn {
    pointer-events: all;
    width: 32px; height: 32px; border-radius: 50%;
    border: 1.5px solid #e5e7eb; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: all 0.15s;
}
.tdv-ind-scroll-btn:hover { border-color: #FF385C; color: #FF385C; }
.tdv-ind-scroll-btn i, .tdv-ind-scroll-btn svg { width: 16px; height: 16px; }

/* ── Individualisieren: Sektionen mit Scroll-Arrows ── */
.tdv-ind-section { padding: 0 12px; }
.tdv-ind-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 0 6px;
}
.tdv-ind-section-label {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.72rem; font-weight: 700; color: #374151; text-transform: uppercase; letter-spacing: 0.03em;
}
.tdv-ind-section-label i, .tdv-ind-section-label svg { width: 13px; height: 13px; }
.tdv-ind-section-scroll { display: flex; gap: 4px; }
.tdv-ind-arr {
    width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid #e5e7eb;
    background: #fff; display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
}
.tdv-ind-arr:hover { border-color: #FF385C; color: #FF385C; background: #fff5f6; }
.tdv-ind-arr i, .tdv-ind-arr svg { width: 14px; height: 14px; }

.tdv-ind-route-pois-scroll, .tdv-ind-pois-scroll {
    display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 10px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.tdv-ind-route-pois-scroll::-webkit-scrollbar, .tdv-ind-pois-scroll::-webkit-scrollbar { display: none; }

/* ── Aktions-Bar (Zuruecksetzen + Speichern) ── */
.tdv-ind-actions-bar {
    display: flex; gap: 8px; padding: 6px 12px 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.tdv-ind-act {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 12px; border-radius: 10px; border: none;
    font-size: 0.73rem; font-weight: 600; font-family: inherit;
    cursor: pointer; transition: all 0.18s;
}
.tdv-ind-act i, .tdv-ind-act svg { width: 14px; height: 14px; }
.tdv-ind-act-reset {
    background: #f3f4f6; color: #6b7280;
}
.tdv-ind-act-reset:hover { background: #fef3c7; color: #d97706; }
.tdv-ind-act-save {
    background: #FF385C; color: #fff; box-shadow: 0 2px 8px rgba(255,56,92,0.25);
}
.tdv-ind-act-save:hover { background: #e6304f; box-shadow: 0 4px 12px rgba(255,56,92,0.35); }

/* ── Alte Styles entfernen/ueberschreiben ── */
.tdv-ind-scroll-btns { display: none; }
.tdv-ind-actions { display: none; }

/* ── Individualisieren Header Buttons ── */
.tdv-ind-header-btns {
    display: flex; align-items: center; gap: 6px;
}
.tdv-ind-hdr-btn {
    width: 30px; height: 30px; border-radius: 50%;
    border: 1.5px solid #e5e7eb; background: #fff;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s; color: #6b7280;
}
.tdv-ind-hdr-btn i, .tdv-ind-hdr-btn svg { width: 14px; height: 14px; }
.tdv-ind-hdr-reset:hover { border-color: #f59e0b; color: #f59e0b; background: #fffbeb; }
.tdv-ind-hdr-save:hover { border-color: #22c55e; color: #22c55e; background: #f0fdf4; }

/* ── ALLE Close-Buttons: Pink mit weissem X ── */
.tdv-ind-hdr-close {
    width: 30px; height: 30px; border-radius: 50%;
    border: none; background: #FF385C;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.15s;
    color: #fff; box-shadow: 0 2px 6px rgba(255,56,92,0.3);
}
.tdv-ind-hdr-close:hover { background: #e6304f; box-shadow: 0 3px 10px rgba(255,56,92,0.4); transform: scale(1.05); }
.tdv-ind-hdr-close i, .tdv-ind-hdr-close svg { width: 15px; height: 15px; color: #fff; }

/* Trip-Detail Close-Button (X oben rechts auf Karte) - wie Smart Route Modal */
.tdv-x {
    position: absolute;
    top: 12px; right: 14px;
    z-index: 50;
    width: 40px;
    height: 40px;
    background: #fff !important;
    border-radius: 50%;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.tdv-x:hover {
    border-color: #aaa !important;
    background: #fafafa !important;
    transform: none;
}
.tdv-x i, .tdv-x svg {
    width: 20px !important;
    height: 20px !important;
    color: #374151 !important;
    transition: transform 0.3s ease;
}
.tdv-x:hover i, .tdv-x:hover svg {
    transform: rotate(90deg);
}

/* Alte Close-Styles ueberschreiben */
.tdv-ind-close { display: none; }
.tdv-ind-actions-bar { display: none; }
