/**
 * ===============================================================================
 * TripTiles - Footprint-Map, Reise-Story, Live-Travelers
 * Developed by Toni Sciacca - mail@tonisciacca.com
 * ===============================================================================
 */

/* Footprint-Karte (Profil-Default) */
.fp-shell {
    background: var(--sh-card, #fff);
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--sh-border, #e8e8e8);
    margin-bottom: 24px;
}
.fp-head {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--sh-border, #e8e8e8);
}
.fp-head-title { font-size: 14px; font-weight: 700; color: var(--sh-text, #1a1a1a); }
.fp-head-stats { display: flex; gap: 14px; margin-left: auto; font-size: 12px; color: var(--sh-text2, #6b6b6b); }
.fp-head-stat b { color: var(--sh-text, #1a1a1a); font-weight: 700; }

.fp-map { height: 360px; width: 100%; position: relative; background: linear-gradient(to bottom, #f0f4f8, #e6ebf2); }
.fp-legend {
    position: absolute; bottom: 12px; left: 12px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 11px; color: var(--sh-text2, #6b6b6b);
    display: flex; gap: 12px; flex-wrap: wrap;
    z-index: 400;
}
.fp-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.fp-legend-dot { width: 10px; height: 10px; border-radius: 50%; }

/* Country fill colors per style */
.fp-c-kultur   { fill: #8b5cf6 !important; }
.fp-c-natur    { fill: #10b981 !important; }
.fp-c-bewegung { fill: #f59e0b !important; }
.fp-c-ruhe     { fill: #06b6d4 !important; }
.fp-c-genuss   { fill: #FF385C !important; }
.fp-c-familie  { fill: #ec4899 !important; }

.fp-tooltip {
    position: absolute; pointer-events: none;
    background: rgba(15,18,22,0.92);
    color: #fff; font-size: 12px;
    padding: 6px 10px; border-radius: 8px;
    z-index: 500; transform: translate(-50%, -110%);
    white-space: nowrap;
}

/* ───────────── Reise-Story (horizontale Insta-Story) ───────────── */
.rs-overlay {
    position: fixed; inset: 0; z-index: 9600;
    background: rgba(0,0,0,0.94);
    display: none; align-items: center; justify-content: center;
}
.rs-overlay.open { display: flex; }
.rs-stage {
    position: relative;
    width: 100%; max-width: 480px; aspect-ratio: 9 / 16;
    background: #000; border-radius: 14px; overflow: hidden;
    font-family: 'Outfit', sans-serif; color: #fff;
}
.rs-progress {
    position: absolute; top: 12px; left: 12px; right: 12px;
    display: flex; gap: 4px; z-index: 10;
}
.rs-progress-bar { flex: 1; height: 3px; background: rgba(255,255,255,0.3); border-radius: 999px; overflow: hidden; }
.rs-progress-fill { height: 100%; background: #fff; width: 0%; transition: width 0.1s linear; }
.rs-progress-bar.done .rs-progress-fill { width: 100%; }
.rs-progress-bar.active .rs-progress-fill { transition: width linear; }
.rs-meta { position: absolute; top: 28px; left: 16px; right: 16px; display: flex; align-items: center; gap: 10px; z-index: 10; }
.rs-meta-av { width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,0.2); overflow: hidden; }
.rs-meta-av img { width: 100%; height: 100%; object-fit: cover; }
.rs-meta-name { font-size: 13px; font-weight: 600; }
.rs-meta-day { font-size: 11px; opacity: 0.8; }
.rs-close { position: absolute; top: 28px; right: 16px; z-index: 10; background: rgba(0,0,0,0.5); border: none; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }

.rs-slide { position: absolute; inset: 0; display: none; }
.rs-slide.active { display: block; }
.rs-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rs-mini-map { position: absolute; top: 70px; right: 12px; width: 110px; height: 110px; border-radius: 12px; overflow: hidden; border: 2px solid rgba(255,255,255,0.4); }
.rs-mini-map .leaflet-container { background: #1a1a1a; }
.rs-foot {
    position: absolute; bottom: 0; left: 0; right: 0;
    padding: 60px 16px 16px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
    z-index: 5;
}
.rs-foot-title { font-size: 20px; font-weight: 700; line-height: 1.2; margin-bottom: 4px; }
.rs-foot-loc { font-size: 13px; opacity: 0.85; }
.rs-actions { position: absolute; bottom: 16px; right: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 6; }
.rs-action {
    width: 42px; height: 42px; border-radius: 50%;
    background: rgba(0,0,0,0.5); color: #fff;
    border: none; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.rs-action [data-lucide] { width: 18px; height: 18px; }
.rs-nav { position: absolute; top: 0; bottom: 0; width: 25%; z-index: 5; cursor: pointer; }
.rs-nav-prev { left: 0; }
.rs-nav-next { right: 0; }

/* ───────────── Live-Travelers Map-Layer ───────────── */
.lt-marker {
    width: 32px; height: 32px;
    border-radius: 50%; overflow: hidden;
    border: 3px solid var(--sh-pink, #FF385C);
    background: var(--sh-card, #fff);
    box-shadow: 0 4px 12px rgba(0,0,0,0.22);
}
.lt-marker img { width: 100%; height: 100%; object-fit: cover; }
.lt-marker::after {
    content: ''; position: absolute; width: 12px; height: 12px;
    background: #22c55e; border: 2px solid #fff; border-radius: 50%;
    bottom: -2px; right: -2px;
}
.lt-popup-card {
    background: var(--sh-card, #fff);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 180px;
    font-family: 'Outfit', sans-serif;
}
.lt-popup-name { font-size: 13px; font-weight: 700; color: var(--sh-text, #1a1a1a); }
.lt-popup-trip { font-size: 11px; color: var(--sh-text2, #6b6b6b); margin-top: 2px; }
.lt-popup-actions { display: flex; gap: 6px; margin-top: 8px; }
.lt-popup-btn {
    font: inherit; font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
    background: var(--sh-pink, #FF385C); color: #fff;
    border: none; cursor: pointer;
}
.lt-popup-btn.sec { background: var(--sh-bg, #f5f5f5); color: var(--sh-text, #1a1a1a); }

/* Toggle in der Discover-Karte */
.lt-toggle {
    position: absolute; top: 12px; left: 12px; z-index: 410;
    background: rgba(255,255,255,0.94);
    backdrop-filter: blur(6px);
    border: 1px solid var(--sh-border, #e8e8e8);
    border-radius: 999px;
    padding: 6px 14px;
    font: inherit; font-size: 12px; font-weight: 600;
    color: var(--sh-text2, #6b6b6b);
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 6px;
}
.lt-toggle.active { background: var(--sh-pink, #FF385C); color: #fff; border-color: var(--sh-pink, #FF385C); }
.lt-toggle [data-lucide] { width: 13px; height: 13px; }
