/**
 * ===============================================================================
 * wezunu - Mini-Routes Layer (Leaflet)
 * Drei Intensitaeten:
 *   hint    — sehr dezent, fuer Discover-Karte (zoom>=11)
 *   suggest — kraeftiger, fuer Workbench (Vorschlag im Tagesplan)
 *   live    — am praesentesten, fuer Live-Modus (User on the road)
 * Developed by Toni Sciacca - mail@tonisciacca.com
 * ===============================================================================
 */

/* SVG path-styling via className (Leaflet weist es dem <path> zu) */
.mr-line { transition: stroke-opacity 0.18s, stroke-width 0.18s; cursor: pointer; }
.mr-line:hover, .mr-line.focused { stroke: #FF385C !important; stroke-opacity: 1 !important; stroke-width: 4.5 !important; }

/* hint: graue dünne Linien */
.mr-line.mr-hint    { stroke: #6b7280; stroke-opacity: 0.42; stroke-width: 2.5; stroke-dasharray: 3 3; }

/* suggest: rosa, sichtbarer, gestrichelt */
.mr-line.mr-suggest { stroke: #FF385C; stroke-opacity: 0.72; stroke-width: 3.5; stroke-dasharray: 6 4; }

/* live: voll präsent */
.mr-line.mr-live    { stroke: #FF385C; stroke-opacity: 0.95; stroke-width: 4.5; }

/* Modus-Marker am Startpunkt */
.mr-marker {
    width: 22px; height: 22px; border-radius: 50%;
    background: #fff; border: 2px solid #FF385C;
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.22);
    font-family: 'Outfit', sans-serif;
}
.mr-marker [data-lucide], .mr-marker svg { width: 12px; height: 12px; color: #FF385C; stroke: #FF385C; }
.mr-marker.mr-m-wandern { border-color: #10b981; }
.mr-marker.mr-m-wandern [data-lucide], .mr-marker.mr-m-wandern svg { color: #10b981; stroke: #10b981; }
.mr-marker.mr-m-rad     { border-color: #3b82f6; }
.mr-marker.mr-m-rad [data-lucide], .mr-marker.mr-m-rad svg { color: #3b82f6; stroke: #3b82f6; }
.mr-marker.mr-m-auto    { border-color: #f59e0b; }
.mr-marker.mr-m-auto [data-lucide], .mr-marker.mr-m-auto svg { color: #f59e0b; stroke: #f59e0b; }
.mr-marker.mr-m-unbekannt { border-color: #9ca3af; }
.mr-marker.mr-m-unbekannt [data-lucide], .mr-marker.mr-m-unbekannt svg { color: #9ca3af; stroke: #9ca3af; }

/* Popup Karte */
.mr-popup {
    font-family: 'Outfit', sans-serif;
    min-width: 220px;
    padding: 4px;
}
.mr-popup-title {
    font-size: 14px; font-weight: 700; color: #1a1a1a;
    margin-bottom: 4px; line-height: 1.25;
}
.mr-popup-meta {
    display: flex; gap: 10px; font-size: 11px; color: #6b6b6b; margin-bottom: 8px;
}
.mr-popup-meta strong { color: #1a1a1a; font-weight: 600; }
.mr-popup-conf {
    display: inline-flex; align-items: center; gap: 4px;
    background: #f5f5f5; padding: 2px 6px; border-radius: 4px;
    font-size: 10px; color: #6b6b6b;
}
.mr-popup-actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 8px; }
.mr-popup-btn {
    font: inherit; font-size: 11px; font-weight: 600;
    padding: 5px 10px; border-radius: 999px;
    background: #FF385C; color: #fff; border: none; cursor: pointer;
}
.mr-popup-btn.sec { background: #f5f5f5; color: #1a1a1a; }
.mr-popup-modus {
    display: inline-block;
    font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px;
    padding: 2px 7px; border-radius: 4px;
    margin-right: 6px;
}
.mr-popup-modus.m-wandern   { background: rgba(16,185,129,0.15); color: #047857; }
.mr-popup-modus.m-rad       { background: rgba(59,130,246,0.15); color: #1d4ed8; }
.mr-popup-modus.m-auto      { background: rgba(245,158,11,0.15); color: #b45309; }
.mr-popup-modus.m-unbekannt { background: rgba(148,163,184,0.18); color: #475569; }

/* Toggle in Discover-Karte */
.mr-toggle {
    position: absolute; bottom: 16px; left: 16px; z-index: 410;
    background: rgba(255,255,255,0.95); backdrop-filter: blur(6px);
    border: 1px solid #e8e8e8; border-radius: 999px;
    padding: 8px 16px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px; font-weight: 600; color: #6b6b6b;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    user-select: none;
}
.mr-toggle:hover { background: #fff; }
.mr-toggle.active { background: #FF385C; color: #fff; border-color: #FF385C; }
.mr-toggle [data-lucide] { width: 13px; height: 13px; }

/* Live-Banner (eingeblendet im Live-Modus, wenn Mini-Route in der Nähe) */
.mr-live-banner {
    margin-top: 12px;
    background: linear-gradient(135deg, #fff, #fff5f8);
    border: 1px solid var(--sh-pink, #FF385C);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex; gap: 14px; align-items: center;
    box-shadow: 0 4px 16px rgba(255, 56, 92, 0.15);
    animation: mrBannerIn 0.3s ease-out;
}
@keyframes mrBannerIn { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }
.mr-live-banner-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--sh-pink-lt, rgba(255,56,92,0.1)); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mr-live-banner-icon [data-lucide] { width: 20px; height: 20px; color: var(--sh-pink, #FF385C); }
.mr-live-banner-body { flex: 1; min-width: 0; font-family: 'Outfit', sans-serif; }
.mr-live-banner-pre { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--sh-pink, #FF385C); }
.mr-live-banner-title { font-size: 14px; font-weight: 700; color: #1a1a1a; margin-top: 2px; line-height: 1.3; }
.mr-live-banner-meta { font-size: 12px; color: #6b6b6b; margin-top: 4px; }
.mr-live-banner-btn { font: inherit; font-size: 12px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: var(--sh-pink, #FF385C); color: #fff; border: none; cursor: pointer; flex-shrink: 0; }
