:root {
  --bg:        #0e1210;
  --bg-2:      #161c19;
  --bg-3:      #1f2724;
  --bg-card:   #1a201d;
  --line:      #2a322e;
  --green:     #009e3d;
  --green-2:   #00b745;
  --green-dk:  #007a2f;
  --yellow:    #fdc300;
  --yellow-2:  #ffd633;
  --blue:      #005ca9;
  --red:       #e23b3b;
  --text:      #f4f6f4;
  --text-dim:  #9aa39d;
  --text-mute: #6b736f;
  --topbar-h:  56px;
  --tabs-h:    64px;
  --shadow-1:  0 2px 8px rgba(0,0,0,0.4);
  --shadow-2:  0 6px 18px rgba(0,0,0,0.55);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%; width: 100%;
  font-family: 'Barlow', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overscroll-behavior: none;
  -webkit-user-select: none; user-select: none;
  font-size: 15px; line-height: 1.4;
}
h1, h2, h3, h4 { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; letter-spacing: 0.2px; }
button { font-family: inherit; }

.hidden { display: none !important; }

/* ========================= SPLASH ========================= */
.splash {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 24px;
  text-align: center;
  background: radial-gradient(ellipse at top, #0e3a1a 0%, #0e1210 60%);
  overflow: hidden;
}
.splash-bg { position: absolute; inset: 0; pointer-events: none; }
.splash-glow {
  position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
  width: 80vw; height: 60vh;
  background: radial-gradient(ellipse, rgba(0,158,61,0.30) 0%, transparent 70%);
  filter: blur(40px);
}
.splash-mountains {
  position: absolute; bottom: 0; left: 0; right: 0; height: 35%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,158,61,0.25) 50%, rgba(0,158,61,0.40) 100%);
  clip-path: polygon(0 100%, 0 70%, 8% 50%, 18% 65%, 28% 30%, 38% 55%, 48% 20%, 58% 50%, 68% 35%, 78% 60%, 88% 40%, 100% 65%, 100% 100%);
}
.splash-mountains::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(14,18,16,0.85) 100%);
  clip-path: polygon(0 100%, 0 80%, 12% 60%, 22% 75%, 35% 45%, 50% 70%, 62% 50%, 75% 78%, 88% 55%, 100% 70%, 100% 100%);
}
.splash-content {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  max-width: 420px; width: 100%;
}
.splash-logo {
  width: 80px; height: 80px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,158,61,0.15);
  border: 2px solid rgba(0,158,61,0.4);
  border-radius: 24px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-2);
}
.splash-title {
  font-size: 38px; line-height: 1.05;
  letter-spacing: -0.5px;
  margin-top: 4px;
}
.splash-subtitle {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 500;
  color: var(--yellow);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.splash-org {
  font-size: 12px; color: var(--text-dim);
  letter-spacing: 0.4px;
  margin-bottom: 24px;
}
.splash-stats {
  display: flex; gap: 28px;
  margin: 12px 0 28px;
}
.splash-stats .stat { display: flex; flex-direction: column; align-items: center; }
.splash-stats .stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 36px; font-weight: 800;
  color: var(--white, #fff);
  line-height: 1;
}
.splash-stats .stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-top: 4px;
}
.splash-hint {
  font-size: 12px; color: var(--text-mute);
  margin-top: 18px;
}

/* ========================= BUTTONS ========================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px;
  border: 0; border-radius: 12px;
  font-size: 15px; font-weight: 600;
  cursor: pointer;
  transition: transform 0.08s, background 0.15s, box-shadow 0.15s;
  font-family: 'Barlow', sans-serif;
}
.btn:active { transform: scale(0.97); }
.btn-large { padding: 14px 32px; font-size: 16px; min-width: 200px; }
.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0,158,61,0.35);
}
.btn-primary:active { background: var(--green-dk); }
.btn-ghost {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:active { background: var(--bg-2); }

.icon-btn {
  background: transparent; border: 0; color: var(--text);
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  cursor: pointer;
}
.icon-btn:active { background: rgba(255,255,255,0.08); }

/* ========================= APP SHELL ========================= */
.app { position: relative; min-height: 100%; padding-bottom: var(--tabs-h); }

#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(14,18,16,0.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0);
}
.topbar-inner {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 8px 0 16px;
}
.topbar-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px; font-weight: 700;
  letter-spacing: 0.3px;
}

/* ========================= VIEWS ========================= */
.view { display: none; }
.view.active { display: block; }

#view-map.active {
  display: block;
  position: fixed;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0));
  left: 0; right: 0;
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0));
}
#map { position: absolute; inset: 0; background: var(--bg-2); }
.leaflet-container { background: #1a201d; font-family: 'Barlow', sans-serif; }
.leaflet-control-attribution {
  background: rgba(14,18,16,0.85) !important;
  color: var(--text-dim) !important;
  font-size: 10px !important;
}
.leaflet-control-attribution a { color: var(--green-2) !important; }

.map-fab-stack {
  position: absolute; top: 16px; right: 12px; z-index: 600;
  display: flex; flex-direction: column; gap: 8px;
}
.fab {
  width: 46px; height: 46px;
  border: 0; border-radius: 50%;
  background: rgba(14,18,16,0.92);
  color: var(--text);
  box-shadow: var(--shadow-2);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  border: 1px solid var(--line);
}
.fab:active { transform: scale(0.94); background: var(--bg-2); }
.fab.active { background: var(--green); color: #fff; border-color: var(--green); }
.fab.active svg { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%,100%{transform:scale(1);} 50%{transform:scale(1.18);} }

.leaflet-control-zoom { border: 0 !important; box-shadow: var(--shadow-2) !important; margin-top: 16px !important; margin-left: 12px !important; }
.leaflet-control-zoom a { background: rgba(14,18,16,0.92) !important; color: var(--text) !important; border: 1px solid var(--line) !important; border-radius: 6px !important; margin-bottom: 4px; }

/* ========================= TRAILS LIST ========================= */
#view-trails {
  padding: calc(var(--topbar-h) + env(safe-area-inset-top, 0) + 12px) 16px 16px;
  min-height: 100vh;
}
#view-trails.active { display: block; }
.trails-list { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; }
.empty-state { color: var(--text-dim); text-align: center; padding: 40px 16px; }

.trail-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s;
}
.trail-card:hover { border-color: var(--green); }
.trail-card:active { transform: scale(0.99); box-shadow: var(--shadow-2); }

.trail-hero {
  position: relative;
  height: 200px;
  background:
    linear-gradient(180deg, transparent 0%, rgba(14,18,16,0.92) 100%),
    linear-gradient(135deg, var(--green-dk) 0%, var(--green) 60%, #003d18 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.trail-hero:not(.has-cover)::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 60%;
  background: rgba(0,0,0,0.35);
  clip-path: polygon(0 100%, 0 60%, 12% 40%, 24% 65%, 38% 25%, 52% 55%, 65% 35%, 80% 60%, 100% 45%, 100% 100%);
}
.trail-hero-badges {
  position: absolute; top: 14px; left: 14px; display: flex; gap: 6px; z-index: 2;
}
.trail-hero-name {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 800;
  color: #fff;
  letter-spacing: 0.2px;
  line-height: 1.05;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.trail-card-body { padding: 14px 16px 18px; }
.trail-card-desc {
  font-size: 13px; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
  line-height: 1.45;
}
.trail-card-stats {
  display: flex; gap: 16px;
  font-size: 13px; color: var(--text-dim);
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.trail-card-stats .cs { display: inline-flex; align-items: center; gap: 6px; }
.trail-card-stats .cs-ico { font-size: 16px; opacity: 0.9; }
.trail-card-stats .cs strong {
  color: var(--text);
  font-weight: 700;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 16px;
  letter-spacing: 0.2px;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: rgba(0,0,0,0.35);
  color: #fff;
  backdrop-filter: blur(4px);
}
.badge.easy     { background: var(--green); }
.badge.moderate { background: #e58a00; color: #fff; }
.badge.hard     { background: var(--red); color: #fff; }

/* ========================= DETAIL VIEW ========================= */
.detail-view { display: none; padding-bottom: 24px; }
.detail-view.active { display: block; }

.detail-hero {
  position: relative;
  height: 320px;
  background:
    linear-gradient(180deg, rgba(14,18,16,0.0) 30%, rgba(14,18,16,0.95) 100%),
    linear-gradient(135deg, var(--green-dk) 0%, var(--green) 60%, #003d18 100%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-top: env(safe-area-inset-top, 0);
}
.detail-hero.has-cover {
  animation: heroKenBurns 18s ease-in-out infinite alternate;
}
@keyframes heroKenBurns {
  0%   { background-size: 105% auto; background-position: center 50%; }
  100% { background-size: 115% auto; background-position: center 45%; }
}
.detail-hero:not(.has-cover)::before {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 70%;
  background: rgba(0,0,0,0.35);
  clip-path: polygon(0 100%, 0 50%, 10% 30%, 22% 60%, 36% 18%, 50% 50%, 64% 28%, 80% 55%, 100% 38%, 100% 100%);
}
.detail-back {
  position: absolute; top: calc(env(safe-area-inset-top, 0) + 8px); left: 8px; z-index: 2;
  background: rgba(14,18,16,0.65) !important;
  backdrop-filter: blur(6px);
}
.detail-hero-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 16px 20px 18px; z-index: 2;
}
.detail-hero-meta { margin-bottom: 6px; }
.detail-title {
  font-size: 32px; line-height: 1.05;
  letter-spacing: -0.3px;
}
.detail-subtitle {
  font-size: 13px; color: var(--text-dim);
  margin-top: 4px;
}

.detail-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 16px;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}
.dstat { text-align: center; padding: 8px 4px; }
.dstat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 22px; font-weight: 700; line-height: 1;
}
.dstat-label {
  font-size: 10px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-top: 6px;
}

.detail-section { padding: 16px; }
.section-title {
  font-size: 18px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}
.detail-poi-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.detail-poi-list li {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.detail-poi-list li:active { background: var(--bg-3); }
.detail-poi-list .ico {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
}
.detail-poi-list .name { flex: 1; font-size: 14px; }
.detail-poi-list .typ { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.8px; }

.detail-actions {
  padding: 8px 16px 24px;
  display: flex; flex-direction: column; gap: 10px;
}
.detail-actions .btn { width: 100%; }

/* ========================= NAV HUD ========================= */
.nav-hud {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0) + 8px);
  left: 12px; right: 12px;
  z-index: 1800;
  background: rgba(14,18,16,0.96);
  border: 1px solid var(--yellow);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 10px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-hud.off-track {
  border-color: var(--red);
  box-shadow: 0 6px 20px rgba(226,59,59,0.4);
  animation: hudPulse 1.6s ease-in-out infinite;
}
@keyframes hudPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(226,59,59,0.4); }
  50%      { box-shadow: 0 6px 28px rgba(226,59,59,0.7); }
}
.nav-hud-target {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--yellow);
  letter-spacing: 0.3px;
  overflow: hidden;
}
.nav-hud-target span:last-child {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-hud-arrow { font-size: 20px; flex-shrink: 0; }
.nav-hud-row {
  display: flex; align-items: center; gap: 12px;
}
.nav-hud-stats {
  flex: 1;
  display: grid; grid-template-columns: 2fr 1fr; gap: 12px;
}
.nav-hud .nv { text-align: left; }
.nav-hud .nv-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; line-height: 1;
  color: var(--text);
}
.nav-hud .nv-label {
  font-size: 9px; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: 1.2px;
  margin-top: 4px;
}
.nav-hud .nv-main .nv-num { font-size: 28px; color: var(--yellow); }
.nav-hud .nv:not(.nv-main) .nv-num { font-size: 16px; }
.nav-hud.off-track .nv-main .nv-num { color: var(--red); }
.nav-hud .btn {
  padding: 8px 16px; font-size: 13px;
  background: var(--red); color: #fff; border: 0;
  flex-shrink: 0;
}

/* Marcador de destino ampliado/pulsando */
.poi-pin-target {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  border: 4px solid var(--yellow);
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(253,195,0,0.4), 0 4px 12px rgba(0,0,0,0.6);
  font-size: 26px;
  color: #fff;
  animation: targetPulse 1.4s ease-in-out infinite;
}
@keyframes targetPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(253,195,0,0.4), 0 4px 12px rgba(0,0,0,0.6); }
  50%      { box-shadow: 0 0 0 14px rgba(253,195,0,0.0), 0 4px 12px rgba(0,0,0,0.6); }
}

/* Hint na detail-actions */
.detail-hint {
  font-size: 13px; color: var(--text-dim);
  text-align: center;
  padding: 8px 4px;
}

/* Setas verdes na lista de POIs do detalhe */
.detail-poi-list .go-arrow {
  color: var(--green-2);
  font-size: 14px;
  flex-shrink: 0;
  margin-left: 4px;
}

/* Thumbnail de foto na lista de POIs (substitui o ícone emoji) */
.detail-poi-list .ico-photo {
  width: 56px; height: 56px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 2px solid var(--line);
  flex-shrink: 0;
}
.detail-poi-list .ico-overlay {
  position: relative;
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.detail-poi-list .ico-overlay::after {
  content: attr(data-emoji);
  position: absolute; bottom: 2px; right: 2px;
  width: 22px; height: 22px;
  background: rgba(0,0,0,0.7);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
}
.detail-poi-list .ico-overlay .ico-photo {
  width: 100%; height: 100%; border: 0;
}

/* ========================= POPUP PHOTO ========================= */
.leaflet-popup-content .popup-photo {
  display: block;
  width: 100%;
  max-width: 240px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: zoom-in;
  border: 1px solid var(--line);
}
.leaflet-popup-content .popup-photo-count {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}
.leaflet-popup-content .popup-photo-wrap {
  position: relative;
}

/* ========================= LIGHTBOX ========================= */
.lightbox {
  position: fixed; inset: 0; z-index: 5000;
  background: rgba(0,0,0,0.96);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px;
  -webkit-user-select: none; user-select: none;
}
.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}
.lightbox-caption {
  color: #fff;
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  max-width: 600px;
  font-family: 'Barlow', sans-serif;
}
.lightbox-close {
  position: absolute !important;
  top: calc(env(safe-area-inset-top, 0) + 12px); right: 12px;
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  font-size: 18px !important;
  width: 44px !important; height: 44px !important;
}
.lightbox-nav {
  position: absolute !important;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15) !important;
  color: #fff !important;
  font-size: 32px !important;
  width: 48px !important; height: 64px !important;
  font-family: 'Barlow Condensed', sans-serif !important;
}
.lightbox-prev { left: 12px; }
.lightbox-next { right: 12px; }
.lightbox-nav.hidden { display: none !important; }

/* ========================= TABS ========================= */
#tabs {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
  height: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0));
  background: rgba(14,18,16,0.96);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  display: flex;
  padding-bottom: env(safe-area-inset-bottom, 0);
}
#tabs .tab {
  flex: 1;
  background: transparent; border: 0;
  color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px; padding: 8px 0;
  cursor: pointer;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.15s;
}
#tabs .tab.active { color: var(--green-2); }
#tabs .tab.active svg { transform: scale(1.05); }
#tabs .tab:active { background: rgba(255,255,255,0.04); }

/* ========================= PANELS ========================= */
.panel {
  position: fixed; left: 0; right: 0;
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0));
  z-index: 1500;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px 20px;
  max-height: 60vh; overflow-y: auto;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
  animation: slideUp 0.22s ease-out;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }

.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.panel-header h3 { font-size: 18px; }
.muted-h { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-dim); margin: 14px 0 6px; }

.menu-list { list-style: none; }
.menu-list li {
  padding: 10px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px;
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.menu-list li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-list li button {
  border: 0; background: var(--green); color: #fff;
  padding: 6px 14px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer;
  flex-shrink: 0;
}
.menu-actions { margin-top: 14px; }
.menu-actions .btn { width: 100%; }

.filter-row {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 4px; border-bottom: 1px solid var(--line);
  font-size: 14px; cursor: pointer;
}
.filter-row input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--green);
  cursor: pointer;
}
.filter-row span { flex: 1; }

/* ========================= PROGRESS / TOAST ========================= */
.progress-overlay {
  position: fixed;
  top: calc(var(--topbar-h) + env(safe-area-inset-top, 0));
  left: 0; right: 0; z-index: 2000;
  background: var(--green-dk); color: #fff;
  padding: 10px 16px;
  display: flex; align-items: center; gap: 12px;
}
.progress-track {
  flex: 1; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; overflow: hidden;
}
.progress-fill { height: 100%; background: var(--yellow); width: 0%; transition: width 0.2s; }
.progress-text { font-size: 12px; min-width: 80px; text-align: right; font-weight: 600; }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0) + 16px);
  z-index: 2500;
  background: rgba(0,158,61,0.95); color: #fff;
  padding: 10px 18px; border-radius: 24px;
  font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow-2);
  animation: toastIn 0.22s;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ========================= POI MARKERS ========================= */
.poi-marker { background: transparent !important; border: 0 !important; }
.poi-pin-admin {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.6);
  font-size: 16px;
  color: #fff;
}

/* Popup styling (light leaflet popup → dark) */
.leaflet-popup-content-wrapper {
  background: var(--bg-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--line);
  border-radius: 12px !important;
  box-shadow: var(--shadow-2) !important;
}
.leaflet-popup-tip { background: var(--bg-2) !important; border: 1px solid var(--line); }
.leaflet-popup-content { font-size: 13px; line-height: 1.4; min-width: 160px; color: var(--text); }
.leaflet-popup-content strong { color: var(--green-2); font-family: 'Barlow Condensed', sans-serif; font-size: 16px; }
.leaflet-popup-content em { color: var(--text-dim); font-style: normal; text-transform: uppercase; font-size: 11px; letter-spacing: 0.6px; }
.leaflet-popup-content a { color: var(--yellow); }
.leaflet-popup-close-button { color: var(--text-dim) !important; }

/* ========================= RESPONSIVE ========================= */
@media (min-width: 768px) {
  .panel { left: auto; right: 12px; bottom: calc(var(--tabs-h) + 12px); max-width: 380px; border-radius: 14px; }
}
