/* ── Map ── */
#map {
  width: 100%;
  height: 100%;
  min-height: 400px;
  z-index: 0;
}

/* ── Leaflet custom markers ── */
.marker-friend {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.2);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.marker-midpoint {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  font-size: 16px;
  box-shadow: 0 2px 12px rgba(255,180,84,.4);
}
.marker-submeetup {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--surface3);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 20px;
  line-height: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.marker-spot {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 2px 6px rgba(0,0,0,.4);
  cursor: pointer;
}
.marker-spot-inner {
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

.leaflet-popup-content-wrapper {
  background: var(--surface2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--r) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.5) !important;
}
.leaflet-popup-tip { background: var(--surface2) !important; }
.leaflet-popup-content { font-family: ui-sans-serif, system-ui, sans-serif; }
.popup-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.popup-type { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.popup-reason { font-size: 12px; color: var(--muted); font-style: italic; }
.popup-badge { display: inline-flex; align-items: center; gap: .3rem; font-size: 11px; font-weight: 700; border-radius: 20px; padding: .15rem .45rem; margin-top: 6px; }
.popup-actions { margin-top: 8px; display: flex; gap: .5rem; }
.popup-link { font-size: 12px; color: var(--accent); text-decoration: none; }
.popup-link:hover { text-decoration: underline; }

/* ── Leaflet route tooltip ── */
.route-tooltip {
  background: var(--surface2) !important;
  border: 1px solid var(--border) !important;
  color: var(--text) !important;
  font-size: 12px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.4) !important;
  padding: .3rem .6rem !important;
}
.route-tooltip::before { display: none !important; }
