/* =============================================================
   Tour Active — full-screen running navigation
   ============================================================= */

/* ── Root overlay ───────────────────────────────────────────── */
#nav-view-root {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: block;
  overflow: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#nav-view-root[hidden] { display: none; }

/* ── Tokens (scoped so they don't bleed into app) ─────────── */
#nav-view-root {
  --nav-primary:          #006d37;
  --nav-primary-deep:     #00552b;
  --nav-orange:           #fd8b00;
  --nav-orange-deep:      #c46500;
  --nav-surface:          #faf9f5;
  --nav-surface-low:      #f4f4f0;
  --nav-surface-mid:      #efeeea;
  --nav-surface-high:     #e9e8e4;
  --nav-on-surface:       #1b1c1a;
  --nav-on-variant:       #3d4a3e;
  --nav-outline:          #6c7b6d;
  --nav-outline-var:      #bbcbbb;
  --nav-error:            #ba1a1a;

  --r-md:   8px;
  --r-lg:   16px;
  --r-xl:   20px;
  --r-2xl:  24px;
  --r-3xl:  32px;
  --r-full: 9999px;
}

/* ── Screen container ───────────────────────────────────────── */
.active {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #e8ebe4;
  color: var(--nav-on-surface);
}

/* ── Map fills the screen ───────────────────────────────────── */
.active__map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Soft top fade for legibility over map */
.active__top-fade {
  position: absolute; top: 0; left: 0; right: 0;
  height: 110px; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(250,249,245,0.65) 0%,
    rgba(250,249,245,0.35) 50%,
    rgba(250,249,245,0) 100%);
}

/* ── Top bar ────────────────────────────────────────────────── */
.topbar {
  position: absolute; top: 12px; left: 12px; right: 12px; z-index: 30;
  display: flex; align-items: center; gap: 8px;
}
.topbar__btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(27,28,26,0.08);
  box-shadow: 0 4px 14px rgba(27,28,26,0.10), 0 1px 2px rgba(27,28,26,0.05);
  display: flex; align-items: center; justify-content: center;
  color: var(--nav-on-surface);
  cursor: pointer; flex-shrink: 0; padding: 0;
  font-family: inherit;
}
.topbar__btn:active { transform: scale(0.94); }

.topbar__title-pill {
  flex: 1; height: 40px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(27,28,26,0.08);
  border-radius: var(--r-full);
  box-shadow: 0 4px 14px rgba(27,28,26,0.10);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; padding: 0 14px; line-height: 1;
}
.topbar__title-pill--active {
  background: rgba(255,245,229,0.96);
  border-color: rgba(253,139,0,0.30);
  box-shadow: 0 4px 14px rgba(253,139,0,0.18);
}
.topbar__title-pill__name {
  font-size: 13px; font-weight: 700;
  color: var(--nav-on-surface);
  letter-spacing: -0.01em;
  display: flex; align-items: center; gap: 6px;
  max-width: 220px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.topbar__title-pill__sub {
  font-size: 10px; font-weight: 600;
  color: var(--nav-outline);
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px;
}
.topbar__title-pill--active .topbar__title-pill__sub { color: var(--nav-orange); }
.topbar__title-pill__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--nav-orange); flex-shrink: 0;
  animation: titlePillDot 1.4s ease-in-out infinite;
}
@keyframes titlePillDot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(253,139,0,0.45); }
  50%      { box-shadow: 0 0 0 5px rgba(253,139,0,0.05); }
}

/* ── Map rail ───────────────────────────────────────────────── */
.map-rail {
  position: absolute; right: 12px; z-index: 20;
  display: flex; flex-direction: column; gap: 8px;
  transition: bottom 0.32s cubic-bezier(.4,1,.4,1);
}
.map-rail__btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border: 1px solid rgba(27,28,26,0.08);
  box-shadow: 0 4px 14px rgba(27,28,26,0.10);
  display: flex; align-items: center; justify-content: center;
  color: var(--nav-on-surface); cursor: pointer; padding: 0;
  font-family: inherit;
}
.map-rail__btn:active { transform: scale(0.94); }
.map-rail__btn.is-on {
  background: var(--nav-primary); color: #fff;
  border-color: var(--nav-primary);
  box-shadow: 0 6px 16px rgba(0,109,55,0.35);
}

/* ── Bottom sheet ───────────────────────────────────────────── */
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 40;
  background:
    linear-gradient(150deg,
      rgba(64,198,179,0.22) 0%,
      rgba(180,230,215,0.15) 18%,
      rgba(250,249,245,0.96) 48%,
      rgba(253,200,150,0.10) 78%,
      rgba(253,139,0,0.20) 100%),
    var(--nav-surface);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -8px 28px rgba(27,28,26,0.10), 0 -2px 8px rgba(27,28,26,0.06);
  transition: height 0.36s cubic-bezier(.4,1,.4,1);
  overflow: hidden;
  display: flex; flex-direction: column;
  touch-action: pan-y;
  /* sheet height controlled by JS via inline style */
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Tab bar ────────────────────────────────────────────── */
.sheet__tabs {
  display: flex; flex-shrink: 0;
  padding: 8px 10px 10px;
  border-bottom: 1px solid rgba(187,203,187,0.35);
}
.sheet__tab {
  flex: 1; height: 36px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  background: transparent; border: none; border-radius: var(--r-lg);
  font-family: inherit; font-size: 12px; font-weight: 700; letter-spacing: 0.01em;
  color: var(--nav-outline); cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.sheet__tab:active { background: var(--nav-surface-low); }
.sheet__tab .material-symbols-outlined { font-size: 16px !important; }
.sheet__tab.is-on {
  color: var(--nav-primary);
  background: rgba(0,109,55,0.08);
}

/* ── Navigation content ────────────────────────────────── */
#nav-nav-content { overflow-y: auto; }

/* ── Überspringen text-link ─────────────────────────────── */
.nav-skip-link {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  width: 100%; padding: 4px 14px 10px;
  background: transparent; border: none;
  font-family: inherit; font-size: 12px; font-weight: 600;
  color: var(--nav-outline); cursor: pointer;
  text-decoration: underline; text-decoration-color: rgba(108,123,109,0.4);
  text-underline-offset: 2px;
}
.nav-skip-link:active { color: var(--nav-on-variant); }
.nav-skip-link .material-symbols-outlined { font-size: 14px !important; }

/* ── Weiter inline-link ─────────────────────────────────── */
.nav-weiter-link {
  display: inline-flex; align-items: center; gap: 2px;
  background: transparent; border: none; border-radius: var(--r-md);
  padding: 2px 6px; margin-right: -4px;
  font-family: inherit; font-size: 11px; font-weight: 700;
  color: var(--nav-primary); cursor: pointer;
  transition: background 0.12s ease;
}
.nav-weiter-link:active { background: rgba(0,109,55,0.10); }

/* ── Skipped stop row ───────────────────────────────────── */
.stop-row.is-skipped { opacity: 0.55; }
.stop-row__skipped-badge {
  display: inline-flex; align-items: center;
  padding: 1px 6px;
  background: var(--nav-surface-high);
  color: var(--nav-outline);
  border-radius: var(--r-full);
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
}

/* ── Compass hub (peek stage) ───────────────────────────────── */
.compass-row {
  display: flex; align-items: stretch; gap: 10px;
  padding: 0 14px 8px; flex-shrink: 0;
}
.compass {
  display: flex; align-items: center; gap: 12px;
  flex: 1; min-width: 0;
}
.compass__pivot {
  position: relative; flex-shrink: 0; width: 72px; height: 72px;
}
.compass__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(0,109,55,0.06) 0%, rgba(0,109,55,0) 60%),
    conic-gradient(from -90deg,
      var(--nav-primary) 0deg,
      var(--nav-primary) calc(var(--prog, 0) * 360deg),
      rgba(0,109,55,0.10) calc(var(--prog, 0) * 360deg),
      rgba(0,109,55,0.10) 360deg);
  -webkit-mask: radial-gradient(circle, transparent 38%, #000 40%);
          mask: radial-gradient(circle, transparent 38%, #000 40%);
}
.compass__core {
  position: absolute; inset: 12px; border-radius: 50%;
  background: var(--nav-primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 18px rgba(0,109,55,0.30), inset 0 -2px 0 rgba(0,0,0,0.10);
}
.compass__arrow {
  display: block; width: 32px; height: 32px; color: #fff;
  transition: transform 0.5s cubic-bezier(.4,1,.4,1);
}
.compass__arrow svg { display: block; }
.compass__north {
  position: absolute; top: -2px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; font-weight: 800; color: var(--nav-error);
  letter-spacing: 0.1em; background: #fff;
  padding: 1px 4px; border-radius: 3px; z-index: 2;
}
.compass__copy { flex: 1; min-width: 0; overflow: hidden; }
.compass__dist {
  font-size: 30px; font-weight: 800;
  color: var(--nav-on-surface);
  letter-spacing: -0.02em; line-height: 1;
}
.compass__dist-unit {
  font-size: 16px; font-weight: 600; color: var(--nav-outline);
  margin-left: 3px; letter-spacing: -0.01em;
}
.compass__instr {
  display: flex; align-items: center; gap: 5px;
  margin-top: 4px; font-size: 12px; font-weight: 600;
  color: var(--nav-on-variant);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.compass__instr .material-symbols-outlined {
  font-size: 13px !important; color: var(--nav-primary);
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 20;
}
.compass__street {
  font-size: 11px; font-weight: 600; color: var(--nav-outline);
  margin-top: 1px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px;
}

.nav-audio-play {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 52px;
  height: 52px;
  background: #006d37;
  border: none;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 109, 55, 0.35);
  transition: background 0.15s, transform 0.1s;
}
.nav-audio-play:active { transform: scale(0.93); }
.nav-audio-play.is-speaking { background: #40c6b3; }
.nav-audio-play .material-symbols-outlined { font-size: 22px !important; }
.nav-audio-play__label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

/* ── Progress bar ───────────────────────────────────────────── */
.progress {
  padding: 0 18px 8px; flex-shrink: 0;
}
.progress__meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; font-weight: 700; color: var(--nav-outline);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.progress__meta-left { color: var(--nav-on-variant); }
.progress__bar {
  position: relative; height: 6px; border-radius: 3px;
  background: var(--nav-surface-high); overflow: hidden;
}
.progress__fill {
  position: absolute; top: 0; left: 0; bottom: 0;
  background: linear-gradient(90deg, var(--nav-primary) 0%, #40c6b3 100%);
  border-radius: 3px;
  transition: width 0.6s cubic-bezier(.4,1,.4,1);
}
.progress__dot {
  position: absolute; top: 50%;
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff; border: 2px solid var(--nav-primary);
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 6px rgba(0,109,55,0.35);
}

/* ── Next-stop card ─────────────────────────────────────────── */
.next-card {
  margin: 0 14px 8px; padding: 10px;
  display: flex; gap: 12px; align-items: stretch;
  background: #fff;
  border: 1px solid rgba(187,203,187,0.55);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 14px rgba(27,28,26,0.06);
  flex-shrink: 0; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.next-card:active { transform: scale(0.99); }
.next-card__photo {
  width: 78px; flex-shrink: 0;
  border-radius: var(--r-lg);
  background-size: cover; background-position: center;
  background-color: var(--nav-surface-mid);
  position: relative; overflow: hidden;
}
.next-card__photo::after {
  content: ''; position: absolute; inset: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.45);
}
.next-card__num {
  position: absolute; top: 6px; left: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--nav-orange); color: #fff;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 12px; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(253,139,0,0.40);
}
.next-card__copy {
  flex: 1; min-width: 0;
  display: flex; flex-direction: column; gap: 4px; padding: 2px 0;
}
.next-card__head {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--nav-primary);
}
.next-card__head-cat {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 2px 7px;
  background: var(--cat-bg, #e6f4ed);
  color: var(--cat-text, var(--nav-primary));
  border-radius: var(--r-full);
  font-size: 9px; font-weight: 800; letter-spacing: 0.1em;
}
.next-card__title {
  font-size: 15px; font-weight: 800; letter-spacing: -0.015em; line-height: 1.2;
  color: var(--nav-on-surface); margin: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.next-card__desc {
  display: none;
}
.next-card__more {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 10px; font-weight: 700; color: var(--nav-primary); margin-top: 1px;
}
.next-card__more .material-symbols-outlined { font-size: 12px !important; }

/* ── Arrived card (replaces next-card when arrived) ─────────── */
.arrived-card {
  margin: 10px 14px 12px; padding: 12px;
  background: linear-gradient(160deg, rgba(255,245,229,0.92), rgba(255,236,206,0.78));
  border: 1px solid rgba(253,139,0,0.24);
  border-radius: var(--r-xl);
  display: flex; gap: 12px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(253,139,0,0.10);
  flex-shrink: 0;
}
.arrived-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(253,139,0,0.16);
}
.arrived-card__photo {
  width: 88px; height: 88px;
  border-radius: var(--r-lg);
  background-color: var(--nav-surface-mid);
  background-size: cover; background-position: center;
  position: relative; flex-shrink: 0;
}
.arrived-card__num {
  position: absolute; top: 6px; left: 6px;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--nav-orange); color: #fff;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 13px; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(27,28,26,0.30);
}
.arrived-card__check {
  position: absolute; bottom: 6px; right: 6px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--nav-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 6px rgba(0,109,55,0.40);
}
.arrived-card__check .material-symbols-outlined {
  font-size: 16px !important;
  font-variation-settings: 'FILL' 1, 'wght' 800, 'GRAD' 0, 'opsz' 24;
}
.arrived-card__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.arrived-card__head {
  display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
}
.arrived-card__chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 8px 3px 6px;
  background: var(--nav-orange); color: #fff;
  border-radius: var(--r-full);
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 10px; letter-spacing: 0.08em;
}
.arrived-card__chip-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #fff; animation: arrivedChipDot 1.4s ease-in-out infinite;
}
@keyframes arrivedChipDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.55; transform: scale(0.8); }
}
.arrived-card__cat {
  font-size: 10px; font-weight: 700; color: var(--nav-on-variant);
  text-transform: uppercase; letter-spacing: 0.08em;
}
.arrived-card__title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 18px; line-height: 1;
  color: var(--nav-on-surface); letter-spacing: 0.01em; margin-bottom: 4px;
}
.arrived-card__desc {
  display: none;
}
.arrived-card__more {
  display: flex; align-items: center; gap: 2px; margin-top: 6px;
  font-size: 12px; font-weight: 700; color: var(--nav-orange);
}
.arrived-card__more .material-symbols-outlined { font-size: 16px !important; }

/* ── Arrive / next CTA ──────────────────────────────────────── */
.arrive-cta { margin: 0 14px 14px; flex-shrink: 0; }
.arrive-cta__btn {
  width: 100%; height: 52px; border: none; border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--nav-orange) 0%, #ff9a26 100%);
  color: #fff; font-family: inherit; font-size: 15px; font-weight: 800;
  letter-spacing: -0.01em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 10px 24px rgba(253,139,0,0.40), 0 2px 6px rgba(253,139,0,0.25);
  cursor: pointer; position: relative; overflow: hidden;
}
.arrive-cta__btn::after {
  content: ''; position: absolute; inset: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: ctaShine 2.4s linear infinite;
}
@keyframes ctaShine {
  0%   { transform: translateX(0); }
  100% { transform: translateX(350%); }
}
.arrive-cta__btn:active { transform: scale(0.98); }
.arrive-cta__btn .material-symbols-outlined {
  font-size: 22px !important;
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 24;
}
.arrive-cta__btn--next {
  background: var(--nav-primary); color: #fff;
  box-shadow: 0 6px 14px rgba(0,109,55,0.30);
}
.arrive-cta__btn--finish {
  background: linear-gradient(135deg, var(--nav-orange) 0%, #ffa733 100%);
  box-shadow: 0 8px 20px rgba(253,139,0,0.45);
}

/* ── Mid stage — story ──────────────────────────────────────── */
.mid-content {
  padding: 4px 18px 14px;
  flex: 1 1 auto; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.mid-content::-webkit-scrollbar { display: none; }

.mid-hero { display: flex; gap: 14px; padding: 4px 0 14px; }
.mid-hero__photo {
  width: 96px; height: 96px; flex-shrink: 0;
  border-radius: var(--r-xl);
  background-size: cover; background-position: center;
  background-color: var(--nav-surface-mid);
  box-shadow: 0 6px 16px rgba(27,28,26,0.12); position: relative;
}
.mid-hero__num {
  position: absolute; top: -8px; left: -8px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--nav-orange); color: #fff;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 16px; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
  border: 3px solid var(--nav-surface);
  box-shadow: 0 2px 6px rgba(253,139,0,0.35);
}
.mid-hero__copy { flex: 1; min-width: 0; padding-top: 4px; }
.mid-hero__cat {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; color: var(--nav-primary);
  background: #e6f4ed;
  padding: 3px 9px; border-radius: var(--r-full);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 6px;
}
.mid-hero__title {
  font-size: 22px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  margin: 0 0 6px; color: var(--nav-on-surface);
}
.mid-hero__meta {
  display: flex; gap: 10px; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--nav-outline);
}
.mid-hero__meta-item { display: inline-flex; align-items: center; gap: 3px; }
.mid-hero__meta-item .material-symbols-outlined {
  font-size: 13px !important; color: var(--nav-primary);
}
.mid-section-h {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--nav-outline); margin: 14px 0 6px;
}
.mid-desc {
  font-size: 14px; line-height: 1.5;
  color: var(--nav-on-variant); text-wrap: pretty;
}
.mid-tip {
  margin-top: 12px; display: flex; gap: 10px; padding: 12px;
  background: rgba(253,139,0,0.08);
  border-left: 3px solid var(--nav-orange);
  border-radius: var(--r-md);
}
.mid-tip__icon {
  flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--nav-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.mid-tip__icon .material-symbols-outlined {
  font-size: 14px !important;
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 20;
}
.mid-tip__text {
  font-family: 'Caveat', cursive;
  font-size: 16px; line-height: 1.3; color: var(--nav-on-surface); font-weight: 600;
}

/* ── Actions bar (mid + full) ───────────────────────────────── */
.actions-bar {
  display: flex; gap: 8px; padding: 0 14px 14px; flex-shrink: 0;
}
.actions-bar__btn {
  flex: 1; height: 44px; border-radius: var(--r-lg);
  font-family: inherit; font-size: 13px; font-weight: 700;
  letter-spacing: -0.01em; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1.5px solid transparent;
  background: var(--nav-surface-low);
  color: var(--nav-on-variant);
  border-color: rgba(187,203,187,0.55);
}
.actions-bar__btn:active { transform: scale(0.97); }
.actions-bar__btn--danger {
  color: var(--nav-error); border-color: rgba(186,26,26,0.30); background: transparent;
}
.actions-bar__btn .material-symbols-outlined { font-size: 16px !important; }

/* ── Full stage — stop list ─────────────────────────────────── */
.stops-list {
  padding: 4px 14px 18px; flex: 1; overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.stops-list::-webkit-scrollbar { display: none; }
.stops-list__heading {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 10px;
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--nav-outline);
}
.stops-list__heading-right {
  font-size: 11px; font-weight: 700; color: var(--nav-primary);
  letter-spacing: 0.02em;
}
.stop-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 8px; border-radius: var(--r-lg);
  position: relative; transition: background 0.15s ease;
}
.stop-row:active { background: var(--nav-surface-low); }
.stop-row + .stop-row { border-top: 1px solid rgba(187,203,187,0.45); }
.stop-row.is-current {
  background: rgba(253,139,0,0.08);
  border: 1.5px solid rgba(253,139,0,0.30); margin: 4px 0;
}
.stop-row.is-current + .stop-row,
.stop-row + .stop-row.is-current { border-top: none; }
.stop-row.is-done { opacity: 0.55; }
.stop-row__num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 14px; letter-spacing: 0.04em;
  background: var(--nav-surface-mid); color: var(--nav-on-variant);
  border: 2px solid transparent;
}
.stop-row.is-current .stop-row__num {
  background: var(--nav-orange); color: #fff;
  border-color: #fff; box-shadow: 0 2px 8px rgba(253,139,0,0.40);
}
.stop-row.is-done .stop-row__num {
  background: var(--nav-primary); color: #fff;
}
.stop-row__photo {
  flex-shrink: 0; width: 44px; height: 44px;
  border-radius: var(--r-md);
  background-size: cover; background-position: center;
  background-color: var(--nav-surface-mid);
}
.stop-row__copy { flex: 1; min-width: 0; }
.stop-row__title {
  font-size: 14px; font-weight: 700; color: var(--nav-on-surface);
  letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.stop-row__meta {
  display: flex; gap: 8px; align-items: center; margin-top: 2px;
  font-size: 11px; font-weight: 600; color: var(--nav-outline);
}
.stop-row__cat-dot {
  width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.stop-row__remove {
  flex-shrink: 0; width: 36px; height: 36px;
  background: transparent; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--nav-outline); cursor: pointer; padding: 0;
  font-family: inherit;
}
.stop-row__remove:hover, .stop-row__remove:active {
  background: rgba(186,26,26,0.10); color: var(--nav-error);
}
.stop-row__remove .material-symbols-outlined { font-size: 20px !important; }

/* ── Confirm overlay ────────────────────────────────────────── */
.confirm-scrim {
  position: absolute; inset: 0; z-index: 200;
  background: rgba(27,28,26,0.55);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: scrimIn 0.2s ease-out;
}
@keyframes scrimIn { from { opacity: 0; } to { opacity: 1; } }
.confirm {
  width: 100%; max-width: 320px;
  background: var(--nav-surface);
  border-radius: 24px; padding: 22px 20px 16px;
  box-shadow: 0 30px 60px rgba(27,28,26,0.30);
  animation: confirmIn 0.28s cubic-bezier(.34,1.4,.64,1);
  text-align: center;
}
@keyframes confirmIn {
  from { transform: scale(0.92) translateY(8px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}
.confirm__icon {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: rgba(186,26,26,0.10); color: var(--nav-error);
  display: flex; align-items: center; justify-content: center;
}
.confirm__icon--warn {
  background: rgba(253,139,0,0.12); color: var(--nav-orange);
}
.confirm__icon--green {
  background: rgba(0,109,55,0.10); color: var(--nav-primary);
}
.confirm__icon .material-symbols-outlined {
  font-size: 30px !important;
  font-variation-settings: 'FILL' 1, 'wght' 600, 'GRAD' 0, 'opsz' 24;
}
.confirm__title {
  font-size: 18px; font-weight: 800; letter-spacing: -0.015em;
  color: var(--nav-on-surface); margin: 0 0 6px;
}
.confirm__body {
  font-size: 13px; line-height: 1.5;
  color: var(--nav-on-variant); margin: 0 0 18px; text-wrap: pretty;
}
.confirm__btns { display: flex; flex-direction: column; gap: 8px; }
.confirm__btn {
  height: 46px; border-radius: var(--r-lg);
  border: 1.5px solid transparent;
  font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.confirm__btn:active { transform: scale(0.98); }
.confirm__btn--primary {
  background: var(--nav-error); color: #fff; border-color: var(--nav-error);
}
.confirm__btn--primary-green {
  background: var(--nav-primary); color: #fff; border-color: var(--nav-primary);
}
.confirm__btn--ghost {
  background: transparent; color: var(--nav-on-surface);
  border-color: rgba(187,203,187,0.5);
}

/* ── Tour-done overlay ──────────────────────────────────────── */
.tour-done {
  position: absolute; inset: 0; z-index: 200;
  background: linear-gradient(170deg, #fff8ec 0%, #fff5e5 50%, #ffead0 100%);
  display: flex; flex-direction: column;
  padding: 60px 24px 32px;
  overflow-y: auto;
  animation: tourDoneIn 0.4s cubic-bezier(0.2,0.9,0.3,1);
}
@keyframes tourDoneIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.tour-done__inner {
  display: flex; flex-direction: column; gap: 20px;
  flex: 1; max-width: 360px; margin: 0 auto; width: 100%;
}
.tour-done__crown {
  width: 84px; height: 84px; border-radius: 50%;
  background: var(--nav-orange); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(253,139,0,0.35);
  align-self: flex-start;
  animation: crownPop 0.6s cubic-bezier(0.2,0.9,0.3,1.4);
}
@keyframes crownPop {
  from { transform: scale(0.4) rotate(-8deg); opacity: 0; }
  to   { transform: scale(1) rotate(0); opacity: 1; }
}
.tour-done__crown .material-symbols-outlined {
  font-size: 44px !important;
  font-variation-settings: 'FILL' 1, 'wght' 700, 'GRAD' 0, 'opsz' 48;
}
.tour-done__eyebrow {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 13px; letter-spacing: 0.14em; color: var(--nav-orange);
  text-transform: uppercase;
}
.tour-done__title {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 38px; line-height: 0.96; letter-spacing: -0.01em;
  color: var(--nav-on-surface); margin: 0;
}
.tour-done__sub {
  font-size: 14px; line-height: 1.5; color: var(--nav-on-variant);
  margin: 0; text-wrap: pretty;
}
.tour-done__sub b { color: var(--nav-on-surface); font-weight: 700; }
.tour-done__stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 4px;
}
.tour-done__stat {
  background: rgba(255,255,255,0.65);
  border: 1px solid rgba(253,139,0,0.18);
  border-radius: var(--r-lg); padding: 12px 8px; text-align: center;
}
.tour-done__stat-num {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 28px; line-height: 1; color: var(--nav-on-surface); letter-spacing: 0.01em;
}
.tour-done__stat-num span {
  font-size: 13px; color: var(--nav-on-variant); margin-left: 2px;
  font-family: 'Inter', sans-serif;
}
.tour-done__stat-lbl {
  font-size: 10px; font-weight: 600; color: var(--nav-on-variant);
  text-transform: uppercase; letter-spacing: 0.08em; margin-top: 4px;
}
.tour-done__cta-row {
  display: flex; flex-direction: column; gap: 8px;
  margin-top: auto; padding-top: 16px;
}
.tour-done__cta {
  width: 100%; height: 52px; border-radius: var(--r-full);
  font-family: inherit; font-size: 15px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; transition: transform 0.15s ease; border: 1px solid transparent;
}
.tour-done__cta:active { transform: scale(0.98); }
.tour-done__cta--primary {
  background: var(--nav-primary); color: #fff;
  border-color: var(--nav-primary);
  box-shadow: 0 8px 18px rgba(0,109,55,0.25);
}
.tour-done__cta--ghost {
  background: transparent; color: var(--nav-on-surface);
  border-color: rgba(27,28,26,0.18);
}
.tour-done__cta .material-symbols-outlined { font-size: 20px !important; }

/* ── Top-bar dropdown menu ──────────────────────────────────── */
.menu-scrim {
  position: absolute; inset: 0; z-index: 80; background: transparent;
}
.nav-menu {
  position: absolute; top: 64px; right: 12px; z-index: 90;
  width: 240px; background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 16px 36px rgba(27,28,26,0.18), 0 2px 6px rgba(27,28,26,0.10);
  border: 1px solid rgba(27,28,26,0.06);
  overflow: hidden; padding: 6px;
  animation: menuIn 0.18s ease-out; transform-origin: top right;
}
@keyframes menuIn {
  from { opacity: 0; transform: scale(0.94) translateY(-4px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.menu__item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 10px 12px;
  background: transparent; border: none; border-radius: 8px;
  font-family: inherit; font-size: 14px; font-weight: 600;
  color: var(--nav-on-surface); text-align: left; cursor: pointer;
  transition: background 0.12s ease;
}
.menu__item:hover { background: var(--nav-surface-low); }
.menu__item .material-symbols-outlined { font-size: 20px !important; color: var(--nav-on-variant); }
.menu__item--accent { color: var(--nav-orange); }
.menu__item--accent .material-symbols-outlined { color: var(--nav-orange); }
.menu__item--danger { color: #c53030; }
.menu__item--danger .material-symbols-outlined { color: #c53030; }
.menu__div { height: 1px; background: rgba(27,28,26,0.08); margin: 4px 8px; }

/* ── Toast ──────────────────────────────────────────────────── */
.nav-toast {
  position: absolute; bottom: 100px; left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--nav-on-surface); color: #faf9f5;
  padding: 10px 20px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: toastIn 250ms ease;
  pointer-events: auto;
}
.nav-toast[hidden] { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(8px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.nav-undo-btn {
  background: none; border: none; color: #9ed8b8;
  font-weight: 700; font-size: 13px; cursor: pointer; padding: 0;
  text-decoration: underline; font-family: inherit;
}

/* ── Map marker — user position ─────────────────────────────── */
.me-marker { position: relative; width: 28px; height: 28px; }
.me-marker--pin { width: 40px; height: 52px; }
.me-marker__pin-img { display: block; width: 40px; height: 52px; pointer-events: none; }
.me-marker__cone {
  position: absolute; top: -28px; left: 50%;
  width: 70px; height: 70px;
  transform: translateX(-50%);
  background: conic-gradient(from 175deg at 50% 100%,
    transparent 0deg,
    rgba(0,109,55,0.45) 5deg,
    rgba(0,109,55,0.20) 5deg,
    rgba(0,109,55,0) 25deg,
    transparent 30deg);
  -webkit-mask: radial-gradient(circle at 50% 100%, #000 60%, transparent 70%);
          mask: radial-gradient(circle at 50% 100%, #000 60%, transparent 70%);
  pointer-events: none; transform-origin: 50% 100%;
  transition: transform 0.5s ease;
}
.me-marker__dot {
  position: absolute; inset: 4px; border-radius: 50%;
  background: var(--nav-primary); border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0,109,55,0.55);
}
.me-marker__pulse {
  position: absolute; inset: -2px; border-radius: 50%;
  background: var(--nav-primary); opacity: 0.35;
  animation: mePulse 2s ease-out infinite;
}
@keyframes mePulse {
  0%   { transform: scale(1); opacity: 0.35; }
  100% { transform: scale(2.2); opacity: 0; }
}
.leaflet-marker-icon.me-pin { background: transparent !important; border: 0 !important; }

/* ── Map marker — target stop pin ──────────────────────────── */
.target-pin {
  display: flex; flex-direction: column; align-items: center;
  width: 100%; height: 100%; position: relative;
}
.target-pin__halo {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 36px; height: 36px; border-radius: 50%; pointer-events: none; opacity: 0;
}
.target-pin--arrived .target-pin__halo {
  opacity: 1; background: var(--nav-orange);
  animation: arrivedHalo 1.6s ease-out infinite;
}
.target-pin--arrived .target-pin__body {
  background: var(--nav-orange);
  animation: arrivedBody 1.6s ease-in-out infinite;
}
@keyframes arrivedHalo {
  0%   { transform: translate(-50%, -50%) scale(0.9); opacity: 0.55; }
  100% { transform: translate(-50%, -50%) scale(2.4); opacity: 0; }
}
@keyframes arrivedBody {
  0%, 100% { box-shadow: 0 4px 12px rgba(253,139,0,0.55); transform: scale(1); }
  50%      { box-shadow: 0 6px 16px rgba(253,139,0,0.70); transform: scale(1.06); }
}
.target-pin__body {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--nav-orange); border: 3px solid #fff; color: #fff;
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 16px; letter-spacing: 0.04em;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(253,139,0,0.50);
  animation: targetPulse 1.6s ease-in-out infinite;
}
.target-pin__stem {
  width: 2px; height: 8px; background: #fff; margin-top: -1px;
  box-shadow: 0 2px 4px rgba(27,28,26,0.25);
}
@keyframes targetPulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(253,139,0,0.50); }
  50%      { box-shadow: 0 4px 14px rgba(253,139,0,0.60), 0 0 0 8px rgba(253,139,0,0.10); }
}
.leaflet-marker-icon.target { background: transparent !important; border: 0 !important; }

/* ── Small stop pins (all other stops) ─────────────────────── */
.leaflet-marker-icon.small-stop-pin { background: transparent !important; border: 0 !important; }

/* ── Stop marker pulse (active stop) ──────────────────────── */
.nav-stop-pulse {
  transform-origin: center;
  animation: navPulse 2s ease-out infinite;
}
@keyframes navPulse {
  0%   { opacity: 0.45; transform: scale(0.8); }
  70%  { opacity: 0;    transform: scale(1.6); }
  100% { opacity: 0;    transform: scale(1.6); }
}

/* ── Leaflet overrides ──────────────────────────────────────── */
#nav-view-root .leaflet-control-attribution {
  font-size: 9px; opacity: 0.45;
}
#nav-view-root .leaflet-control-zoom { display: none; }

/* ── Strecke stats grid ─────────────────────────────────── */
#nav-strecke-content {
  overflow-y: auto; flex: 1;
  padding: 12px 0 8px;
}
.strecke-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0 14px;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid rgba(187,203,187,0.45);
}
.strecke-stat {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 8px;
  background: #fff;
  text-align: center;
  border-bottom: 1px solid rgba(187,203,187,0.30);
  border-right: 1px solid rgba(187,203,187,0.30);
}
.strecke-stat:nth-child(even) { border-right: none; }
.strecke-stat--full {
  grid-column: 1 / -1;
  border-right: none;
  border-bottom: none;
  background: rgba(0,109,55,0.04);
}
.strecke-stat__val {
  font-family: 'Bebas Neue', 'Inter', sans-serif;
  font-size: 20px; line-height: 1; letter-spacing: 0.03em;
  color: var(--nav-on-surface);
}
.strecke-stat__lbl {
  font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--nav-outline); margin-top: 3px;
}
