/* Figma-first map shell */
.mtb-map-shell--figma {
  background: radial-gradient(ellipse at 35% 55%, #160a00 0%, #08070d 50%, #000 100%);
  border-radius: 20px;
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 1px rgba(255,122,47,0.07), 0 48px 160px rgba(0,0,0,0.96);
}
.mtb-map-shell--figma .leaflet-control-zoom,
.mtb-map-shell--figma .mtb-sidebar-rail,
.mtb-map-shell--figma .mtb-map-rail,
.mtb-map-shell--figma .mtb-sidebar-detail,
.mtb-map-shell--figma [data-section="layers"] {
  display: none !important;
}
/* Desktop: sidebar sits in the grid column alongside the map (NOT overlay) */
.mtb-map-shell--figma .mtb-panel-map-sidebar {
  position: relative;
  inset: auto;
  width: 360px;
  min-width: 280px;
  max-width: 420px;
  height: 100%;
  max-height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  background: linear-gradient(180deg, rgba(18,16,28,0.92), rgba(8,6,18,0.95));
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  resize: none;
  overflow: hidden;
  z-index: 4;
  /* Fly in from left on initial render */
  animation: mtbDockFlyInLeft 480ms cubic-bezier(0.22, 0.7, 0.2, 1) both;
}

/* ── Full-shell loading overlay (covers entire map + sidebar during boot) ── */
.mtb-map-shell--figma { background: #000 !important; }
.mtb-map-shell--figma .omtb-embed-wrap,
.omtb-embed-wrap { background: #000; }
.mtb-map-shell--figma .mtb-map-canvas { background: #000 !important; }
.mtb-map-shell--figma .mtb-map-canvas .leaflet-container { background: #000 !important; }


/* ── List loading spinner ─────────────────────────────────────────────── */
.mtb-map-shell--figma .mtb-panel-map-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.01) 28%, rgba(255,255,255,0.02) 100%),
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 38%);
  opacity: 0.9;
}
.mtb-map-shell--figma.mtb-map-shell--split-left .mtb-panel-map-sidebar {
  width: 308px;
}
/* Desktop only: show the sidebar scroll. On mobile (≤1220px) the inline
   style="display:none" on the element hides it; Svelte owns the mobile UI. */
@media (min-width: 1221px) {
  .mtb-map-shell--figma .mtb-sidebar-scroll {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    gap: 0;
    padding: 0 12px 14px;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
  }
}
.mtb-map-shell--figma .mtb-sidebar-scroll *,
.mtb-map-shell--figma .mtb-sidebar-scroll *::before,
.mtb-map-shell--figma .mtb-sidebar-scroll *::after {
  box-sizing: border-box;
}
.mtb-map-shell--figma .mtb-sidebar-header {
  position: sticky;
  top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.mtb-map-shell--figma .mtb-sidebar-header::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,122,47,0.32), transparent);
}
.mtb-map-shell--figma .mtb-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.mtb-map-shell--figma .mtb-brand-kicker {
  letter-spacing: 0.12em;
}
.mtb-map-shell--figma .mtb-status-chip {
  margin-left: auto;
}
.mtb-map-shell--figma .mtb-sidebar-header,
.mtb-map-shell--figma .mtb-top-band,
.mtb-map-shell--figma .mtb-filter-summary,
.mtb-map-shell--figma .mtb-beginner-help__body,
.mtb-map-shell--figma .mtb-activity-chip-row {
  display: none;
}
.mtb-map-shell--figma .mtb-filters-form--sidebar {
  display: grid;
  gap: 12px;
}
.mtb-map-shell--figma .mtb-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}
.mtb-map-shell--figma .mtb-search-pill {
  position: relative;
  min-width: 0;
  min-height: 72px;
  padding: 0 18px 0 44px;
  align-items: center;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
}
.mtb-map-shell--figma .mtb-search-pill span:not(.mtb-search-pill__icon) {
  display: none;
}
.mtb-map-shell--figma .mtb-search-pill__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.28);
  font-size: 18px;
  line-height: 1;
}
.mtb-map-shell--figma .mtb-search-pill input {
  height: 100%;
  padding: 0 42px 0 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.92);
  font-size: 14px;
}
.mtb-map-shell--figma .mtb-search-pill input::placeholder {
  color: rgba(255,255,255,0.42);
}
.mtb-map-shell--figma .mtb-suggestion-list {
  display: none !important;
}
.mtb-map-shell--figma .mtb-search-pill .pill-clear {
  right: 12px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.mtb-map-shell--figma .mtb-filter-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.025);
  color: rgba(255,255,255,0.92);
  cursor: pointer;
}
.mtb-map-shell--figma .mtb-filter-icon-btn__bars,
.mtb-map-shell--figma .mtb-filter-icon-btn__bars::before,
.mtb-map-shell--figma .mtb-filter-icon-btn__bars::after {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform: translateX(-50%);
}
.mtb-map-shell--figma .mtb-filter-icon-btn__bars {
  top: 20px;
}
.mtb-map-shell--figma .mtb-filter-icon-btn__bars::before {
  top: -6px;
  width: 12px;
}
.mtb-map-shell--figma .mtb-filter-icon-btn__bars::after {
  top: 6px;
  width: 10px;
}
.mtb-map-shell--figma .mtb-filter-icon-btn[aria-expanded="true"] {
  border-color: rgba(255,122,47,0.34);
  background: rgba(255,122,47,0.14);
  color: #ff7a2f;
}
.mtb-map-shell--figma .mtb-route-list-count {
  font-size: 13px;
  color: rgba(255,255,255,0.54);
  padding-left: 6px;
}
.mtb-map-shell--figma .mtb-route-list-count [data-route-count] {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}
.mtb-map-shell--figma .mtb-shell-hidden-controls {
  display: none;
}
.mtb-map-shell--figma .mtb-filter-panel {
  display: grid;
  gap: 10px;
  margin-top: -2px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.02);
}
.mtb-map-shell--figma .mtb-filter-panel[hidden] {
  display: none;
}
.mtb-map-shell--figma .mtb-filter-panel__native-activities {
  display: none;
}
.mtb-map-shell--figma .mtb-list-stack {
  display: grid;
  gap: 10px;
  padding: 0 4px 16px;
  margin-top: 0;
  min-width: 0;
  overflow-x: hidden;
}
.mtb-map-shell--figma .mtb-map-list {
  display: grid;
  gap: 12px;
  min-width: 0;
  overflow-x: hidden;
}
.mtb-map-shell--figma .mtb-route-card--figma {
  margin: 0;
  width: 100%;
  min-width: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(34,34,36,0.26), rgba(18,18,20,0.18));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.15s ease;
}
.mtb-map-shell--figma .mtb-route-card--figma.is-active,
.mtb-map-shell--figma .mtb-route-card--figma:hover {
  border-color: rgba(255,122,47,0.32);
  box-shadow: inset 0 0 0 1px rgba(255,122,47,0.16);
}
.mtb-map-shell--figma .mtb-route-card__trigger {
  width: 100%;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.mtb-map-shell--figma .mtb-route-card__chevron {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.28);
  font-size: 16px;
}
.mtb-map-shell--figma .mtb-route-card__visual {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
  position: relative;
}
.mtb-map-shell--figma .mtb-route-card__visual.has-photo-count::after {
  content: attr(data-photo-count);
  position: absolute;
  right: 6px;
  bottom: 6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(0,0,0,0.82);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}
.mtb-map-shell--figma .mtb-route-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mtb-map-shell--figma .mtb-route-card__summary {
  min-width: 0;
  align-self: center;
  padding-right: 0;
}
.mtb-map-shell--figma .mtb-route-card__title {
  font-size: 16px;
  line-height: 1.16;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  margin-bottom: 6px;
}
.mtb-map-shell--figma .mtb-route-card__location {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.36);
  margin-bottom: 10px;
}
.mtb-map-shell--figma .mtb-route-card__chips,
.mtb-map-shell--figma .mtb-route-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mtb-map-shell--figma .mtb-route-card__chip,
.mtb-map-shell--figma .mtb-route-card__metrics span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}
.mtb-map-shell--figma .mtb-route-card__metrics {
  margin-top: 10px;
}
.mtb-map-shell--figma .mtb-route-card__metrics span {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.72);
}
.mtb-map-shell--figma .mtb-route-card__chip--activity {
  color: #ffb37e;
  border-color: rgba(255,122,47,0.32);
  background: rgba(120,58,18,0.26);
}
.mtb-map-shell--figma .mtb-photo-feed {
  display: grid;
  gap: 8px;
}
.mtb-map-shell--figma .mtb-photo-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.025);
}
.mtb-map-shell--figma .mtb-photo-card__media {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.mtb-map-shell--figma .mtb-photo-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mtb-map-shell--figma .mtb-photo-card__title {
  font-size: 12.5px;
  color: rgba(255,255,255,0.92);
  margin-bottom: 5px;
}
.mtb-map-shell--figma .mtb-photo-card__meta {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  margin-bottom: 8px;
}
.mtb-map-shell--figma .mtb-photo-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mtb-map-shell--figma .mtb-map-right-stack {
  position: absolute;
  top: 64px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.mtb-map-shell--figma .mtb-map-right-stack,
.mtb-map-shell--figma .mtb-map-right-stack * {
  box-sizing: border-box;
}
.mtb-map-shell--figma .mtb-map-zoom-stack,
.mtb-map-shell--figma .mtb-map-tool-stack {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 44px;
  background: rgba(12,11,16,0.78);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.5);
}
.mtb-map-shell--figma .mtb-map-tool-btn {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.7);
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.mtb-map-shell--figma .mtb-map-tool-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mtb-map-shell--figma .mtb-map-tool-btn:hover,
.mtb-map-shell--figma .mtb-map-tool-btn.is-active {
  background: rgba(255,122,47,0.15);
  color: #ff7a2f;
}
.mtb-map-shell--figma .mtb-map-tool-btn[data-map-tool="layers"] {
  color: rgba(255,255,255,0.82);
}
.mtb-map-shell--figma .mtb-map-right-panel {
  display: none;
}
.mtb-map-shell--figma .mtb-map-tools-wrap {
  position: relative;
}
.mtb-map-shell--figma .mtb-map-layers-menu {
  position: absolute;
  top: 0;
  right: calc(100% + 10px);
  width: 220px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(12,11,16,0.78);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 8px 32px rgba(0,0,0,0.5);
}
.mtb-map-shell--figma .mtb-map-layers-menu[hidden] {
  display: none;
}
.mtb-map-shell--figma .mtb-map-layers-menu__section + .mtb-map-layers-menu__section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mtb-map-shell--figma .mtb-map-layers-menu__label,
.mtb-map-shell--figma .mtb-map-right-panel__label {
  margin-bottom: 8px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.28);
}
.mtb-map-shell--figma .mtb-map-layer-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mtb-map-shell--figma .mtb-map-layer-toggle {
  min-height: 30px;
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.54);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
}
.mtb-map-shell--figma .mtb-map-layer-toggle.is-active {
  border-color: rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.92);
}
.mtb-map-shell--figma .mtb-map-layer-toggle__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  min-width: 0;
}
.mtb-map-shell--figma .mtb-map-layer-toggle__dot {
  width: 13px;
  height: 13px;
  border-radius: 999px;
  flex: 0 0 13px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
}
.mtb-map-shell--figma .mtb-map-layer-toggle__dot.is-heat {
  background: linear-gradient(135deg, rgba(255,122,47,0.88), rgba(255,255,255,0.88));
}
.mtb-map-shell--figma .mtb-map-layer-toggle__dot.is-glow {
  background: linear-gradient(135deg, rgba(255,122,47,0.92), rgba(255,193,7,0.84));
}
.mtb-map-shell--figma .mtb-map-layer-toggle__dot.is-routes {
  background: rgba(255,255,255,0.82);
}
.mtb-map-shell--figma .mtb-map-layer-toggle__dot.is-photos {
  background: rgba(182,182,182,0.84);
}
.mtb-map-shell--figma .mtb-map-layer-toggle__dot.is-activity {
  background: rgba(128,128,128,0.84);
}
.mtb-map-shell--figma .mtb-map-layer-toggle__switch {
  position: relative;
  width: 32px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.1);
  transition: background 0.18s ease, border-color 0.18s ease;
}
.mtb-map-shell--figma .mtb-map-layer-toggle__switch span {
  position: absolute;
  top: 1px;
  left: 1px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.35);
  transition: left 0.18s ease;
}
.mtb-map-shell--figma .mtb-map-layer-toggle.is-active .mtb-map-layer-toggle__switch {
  border-color: rgba(255,122,47,0.48);
  background: rgba(255,122,47,0.78);
}
.mtb-map-shell--figma .mtb-map-layer-toggle.is-active .mtb-map-layer-toggle__switch span {
  left: 17px;
}
.mtb-map-shell--figma .mtb-map-cluster-control {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mtb-map-shell--figma .mtb-map-cluster-control input[type="range"] {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #ff7a2f 27%, rgba(255,255,255,0.12) 27%);
}
.mtb-map-shell--figma .mtb-map-cluster-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff7a2f;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(255,122,47,0.5), 0 1px 3px rgba(0,0,0,0.4);
}
.mtb-map-shell--figma .mtb-map-cluster-control input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ff7a2f;
  border: 2px solid rgba(255,255,255,0.9);
  box-shadow: 0 2px 8px rgba(255,122,47,0.5), 0 1px 3px rgba(0,0,0,0.4);
}
.mtb-map-shell--figma .mtb-map-cluster-control__value {
  min-width: 38px;
  text-align: right;
  font-size: 11px;
  color: rgba(255,255,255,0.54);
}
.mtb-map-shell--figma .mtb-map-right-panel__section + .mtb-map-right-panel__section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.mtb-map-shell--figma .mtb-map-coords {
  font-family: monospace;
  font-size: 10px;
  color: rgba(255,255,255,0.92);
}
.mtb-map-shell--figma .mtb-map-right-panel__label--with-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mtb-map-shell--figma .mtb-map-copy-btn {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.28);
  cursor: pointer;
  line-height: 1;
}
.mtb-map-shell--figma .mtb-map-copy-btn:hover {
  color: rgba(255,255,255,0.82);
  background: rgba(255,255,255,0.06);
}
.mtb-map-shell--figma .mtb-map-compass-rose {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.mtb-map-shell--figma .mtb-map-compass-rose__ring {
  position: absolute;
  inset: 2px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
}
.mtb-map-shell--figma .mtb-map-compass-rose__needle {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -3px;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
}
.mtb-map-shell--figma .mtb-map-compass-rose__needle--north {
  top: 6px;
  border-bottom: 18px solid #ff7a2f;
}
.mtb-map-shell--figma .mtb-map-compass-rose__needle--south {
  bottom: 6px;
  border-top: 18px solid rgba(255,255,255,0.28);
}
.mtb-map-shell--figma .mtb-map-compass-rose__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  margin-left: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.14);
}
.mtb-map-shell--figma .mtb-map-compass-rose__dir {
  position: absolute;
  font-size: 7px;
  color: rgba(255,255,255,0.26);
}
.mtb-map-shell--figma .mtb-map-compass-rose__dir--n {
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  color: #ff7a2f;
}
.mtb-map-shell--figma .mtb-map-compass-rose__dir--s {
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
}
.mtb-map-shell--figma .mtb-map-compass-rose__dir--w {
  top: 50%;
  left: -2px;
  transform: translateY(-50%);
}
.mtb-map-shell--figma .mtb-map-compass-rose__dir--e {
  top: 50%;
  right: -2px;
  transform: translateY(-50%);
}
.mtb-map-shell--figma .mtb-map-shortcuts {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
}
.mtb-map-shell--figma .mtb-map-shortcuts__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mtb-map-shell--figma .mtb-map-shortcuts__row span:first-child {
  font-size: 8.5px;
  color: rgba(255,255,255,0.54);
  padding: 1px 4px;
  border-radius: 4px;
  background: rgba(255,255,255,0.07);
}
.mtb-map-shell--figma .mtb-map-shortcuts__row span:last-child {
  font-size: 8px;
  color: rgba(255,255,255,0.22);
}
.mtb-map-shell--figma .mtb-map-active-route__title {
  font-size: 10.5px;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
}
.mtb-map-shell--figma .mtb-map-active-route__meta,
.mtb-map-shell--figma .mtb-map-active-route__stats span,
.mtb-map-shell--figma .mtb-map-utility__meta {
  font-size: 9px;
  color: rgba(255,255,255,0.28);
}
.mtb-map-shell--figma .mtb-map-active-route__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}
.mtb-map-shell--figma .mtb-map-active-route__stats span {
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
}
.mtb-map-shell--figma .mtb-map-help-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.28);
  color: rgba(255,255,255,0.64);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.mtb-map-shell--figma .mtb-map-help-btn__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mtb-map-shell--figma .mtb-map-help-btn__icon svg,
.mtb-map-shell--figma .mtb-map-help-btn:hover {
  color: #ff7a2f;
  border-color: rgba(255,122,47,0.3);
  background: rgba(255,122,47,0.1);
}
.mtb-map-shell--figma .mtb-map-help-dialog[hidden] {
  display: none;
}
.mtb-map-shell--figma .mtb-map-help-dialog {
  position: absolute;
  inset: 0;
  z-index: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mtb-map-shell--figma .mtb-map-help-dialog__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mtb-map-shell--figma .mtb-map-help-dialog__panel {
  position: relative;
  z-index: 2;
  width: min(390px, calc(100% - 32px));
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(10,8,18,0.3);
  backdrop-filter: blur(80px) saturate(200%);
  -webkit-backdrop-filter: blur(80px) saturate(200%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12), 0 40px 120px rgba(0,0,0,0.8);
}
.mtb-map-shell--figma .mtb-map-help-dialog__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
}
.mtb-map-shell--figma .mtb-map-help-dialog__body {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}
.mtb-map-shell--figma .mtb-map-help-dialog__item strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
}
.mtb-map-shell--figma .mtb-map-help-dialog__item p {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.38);
}
.mtb-map-shell--figma .mtb-map-heat-legend {
  position: absolute;
  bottom: 16px;
  left: calc(308px + 28px);
  z-index: 500;
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(10,8,18,0.22);
  backdrop-filter: blur(64px) saturate(180%);
  -webkit-backdrop-filter: blur(64px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}
.mtb-map-shell--figma .mtb-map-heat-legend span:first-child {
  font-size: 8.5px;
  color: rgba(255,255,255,0.3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}
.mtb-map-shell--figma .mtb-map-heat-legend__bar {
  height: 5px;
  width: 96px;
  border-radius: 999px;
  background: linear-gradient(to right, rgba(148,163,184,0.12), rgba(210,222,232,0.5), rgba(255,255,255,0.96));
}
.mtb-map-shell--figma .mtb-map-heat-legend__labels {
  display: flex;
  justify-content: space-between;
}
.mtb-map-shell--figma .mtb-map-heat-legend__labels span {
  font-size: 8px;
  color: rgba(255,255,255,0.22);
}
.mtb-map-shell--figma .mtb-map-stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(8,7,13,0.5);
  backdrop-filter: blur(48px) saturate(200%) brightness(0.85);
  -webkit-backdrop-filter: blur(48px) saturate(200%) brightness(0.85);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.09);
}
.mtb-map-shell--figma .mtb-map-stat-pill span {
  font-size: 8.5px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mtb-map-shell--figma .mtb-map-stat-pill strong {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}
.mtb-map-shell--figma .mtb-map-view-pill {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 600;
  display: flex;
  gap: 3px;
  padding: 4px;
  transform: translateX(-50%);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(10,8,20,0.56);
  backdrop-filter: blur(32px) saturate(180%);
  -webkit-backdrop-filter: blur(32px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 8px 32px rgba(0,0,0,0.6);
}
.mtb-map-shell--figma .mtb-map-view-pill__btn {
  min-height: 34px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: transparent;
  color: rgba(255,255,255,0.38);
  font-size: 12px;
  cursor: pointer;
}
.mtb-map-shell--figma .mtb-map-view-pill__btn.is-active {
  border-color: rgba(255,122,47,0.34);
  background: linear-gradient(135deg, rgba(255,122,47,0.25) 0%, rgba(255,122,47,0.11) 100%);
  box-shadow: 0 0 18px rgba(255,122,47,0.22), inset 0 1px 0 rgba(255,122,47,0.25);
  color: rgba(255,255,255,0.95);
}
.mtb-map-shell--figma .mtb-map-gallery-surface {
  position: absolute;
  inset: 12px;
  z-index: 90;
  padding: 20px 20px 86px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(8,8,11,0.94), rgba(10,10,13,0.96)),
    radial-gradient(circle at top right, rgba(255,122,47,0.08), transparent 30%);
  overflow: auto;
}
.mtb-map-shell--figma .mtb-map-gallery-surface[hidden] {
  display: none;
}
.mtb-map-shell--figma .mtb-map-gallery-surface__header {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
}
.mtb-map-shell--figma .mtb-map-gallery-surface__eyebrow {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
}
.mtb-map-shell--figma .mtb-map-gallery-surface__title {
  font-size: 28px;
  line-height: 1.05;
  font-weight: 700;
  color: rgba(255,255,255,0.94);
}
.mtb-map-shell--figma .mtb-map-gallery-surface__meta {
  font-size: 14px;
  color: rgba(255,255,255,0.56);
}
.mtb-map-shell--figma .mtb-map-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.mtb-map-shell--figma .mtb-map-gallery-card {
  display: grid;
  gap: 12px;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  text-align: left;
  cursor: pointer;
}
.mtb-map-shell--figma .mtb-map-gallery-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.04);
}
.mtb-map-shell--figma .mtb-map-gallery-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mtb-map-shell--figma .mtb-map-gallery-card__body {
  display: grid;
  gap: 6px;
  padding: 0 14px 14px;
}
.mtb-map-shell--figma .mtb-map-gallery-card__title {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
}
.mtb-map-shell--figma .mtb-map-gallery-card__location {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.mtb-map-shell--figma .mtb-map-gallery-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mtb-map-shell--figma .mtb-map-gallery-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,122,47,0.32);
  background: rgba(120,58,18,0.22);
  color: #ffb37e;
  font-size: 12px;
  font-weight: 600;
}
.mtb-map-shell--figma .mtb-map-gallery-card__count {
  font-size: 12px;
  color: rgba(255,255,255,0.54);
}
.mtb-map-shell--figma .mtb-map-gallery-empty {
  margin-top: 18px;
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.64);
  background: rgba(255,255,255,0.03);
}
.mtb-map-shell--figma.is-gallery-view .mtb-map-canvas,
.mtb-map-shell--figma.is-gallery-view .mtb-map-right-stack,
.mtb-map-shell--figma.is-gallery-view .mtb-map-layers-menu,
.mtb-map-shell--figma.is-gallery-view .mtb-map-help-btn,
.mtb-map-shell--figma.is-gallery-view .mtb-map-heat-legend {
  opacity: 0;
  pointer-events: none;
}
.mtb-map-shell--figma .mtb-sidebar-rail,
.mtb-map-shell--figma .mtb-sidebar-detail,
.mtb-map-shell--figma .mtb-panel-map-sidebar {
  left: 12px;
  top: 12px;
  bottom: 12px;
  width: 308px;
  min-width: 220px;
  max-width: 80vw;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: linear-gradient(180deg, rgba(28,28,30,0.1), rgba(8,8,10,0.18));
  backdrop-filter: blur(46px) saturate(150%);
  -webkit-backdrop-filter: blur(46px) saturate(150%);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14), inset -1px 0 0 rgba(255,255,255,0.06), 8px 0 32px rgba(0,0,0,0.36);
  overflow: hidden;
}
.mtb-map-shell--figma .mtb-panel-map-sidebar,
.mtb-map-shell--figma .mtb-panel-map-sidebar button,
.mtb-map-shell--figma .mtb-panel-map-sidebar input,
.mtb-map-shell--figma .mtb-panel-map-sidebar select,
.mtb-map-shell--figma .mtb-panel-map-sidebar label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.mtb-map-shell--figma .mtb-sidebar-scroll {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}
.mtb-map-shell--figma .mtb-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}
.mtb-map-shell--figma .mtb-search-pill {
  display: flex;
  align-items: center;
  width: 100%;
  position: relative;
  min-width: 0;
  min-height: 58px;
  padding: 0 16px 0 46px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.028));
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 8px 24px rgba(0,0,0,0.18);
  overflow: hidden;
}
.mtb-map-shell--figma .mtb-search-pill__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.28);
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mtb-map-shell--figma .mtb-search-pill__icon svg,
.mtb-map-shell--figma .mtb-filter-icon-btn__bars svg,
.mtb-map-shell--figma .mtb-search-pill__icon svg,
.mtb-map-shell--figma .mtb-filter-icon-btn__bars svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.mtb-map-shell--figma .mtb-search-pill input {
  width: 100%;
  min-width: 0;
  height: 56px;
  margin: 0;
  padding: 0 36px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(255,255,255,0.92);
  font-size: 15px !important;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: 0 !important;
  text-indent: 0 !important;
  font-family: inherit !important;
  caret-color: #ff7a2f;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.mtb-map-shell--figma .mtb-search-pill input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}
.mtb-map-shell--figma .mtb-search-pill input::placeholder {
  color: rgba(255,255,255,0.46);
}
.mtb-map-shell--figma .mtb-search-pill input:placeholder-shown + .pill-clear {
  opacity: 0;
  pointer-events: none;
}
.mtb-map-shell--figma .mtb-search-pill .pill-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  min-width: 30px;
  min-height: 30px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}
.mtb-map-shell--figma .mtb-filter-icon-btn {
  position: relative;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  padding: 0;
  border-radius: 16px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.mtb-map-shell--figma .mtb-filter-icon-btn__bars {
  position: static;
  left: auto;
  top: auto;
  transform: none;
  width: 18px;
  height: 18px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mtb-map-shell--figma .mtb-filter-icon-btn__bars::before,
.mtb-map-shell--figma .mtb-filter-icon-btn__bars::after {
  content: none;
  display: none;
}
.mtb-map-shell--figma .mtb-filters-form--sidebar {
  display: block;
  margin: 0;
}
.mtb-map-shell--figma .mtb-route-list-count {
  padding: 2px 6px 0;
  font-size: 11px;
  line-height: 1.2;
  color: rgba(255,255,255,0.28);
}
.mtb-map-shell--figma .mtb-route-list-count [data-route-count] {
  color: rgba(255,255,255,0.92);
  font-weight: 600;
}
.mtb-map-shell--figma .mtb-list-stack {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 14px 14px;
  overflow-y: auto;
  overflow-x: hidden;
}
.mtb-map-shell--figma .mtb-map-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.mtb-map-shell--figma .mtb-route-card--figma {
  display: block;
  min-height: 0;
  padding: 0;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: none;
}
.mtb-map-shell--figma .mtb-route-card--figma:hover {
  border-color: rgba(255,255,255,0.11);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
.mtb-map-shell--figma .mtb-route-card--figma.is-active {
  background: linear-gradient(135deg, rgba(255,122,47,0.14), rgba(255,122,47,0.035));
  border-color: rgba(255,122,47,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(255,122,47,0.1);
}
.mtb-map-shell--figma .mtb-route-card--figma.is-active:hover {
  border-color: rgba(255,122,47,0.28);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(255,122,47,0.1);
}
.mtb-map-shell--figma .mtb-route-card__trigger {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 20px;
  align-items: start;
  gap: 10px;
  padding: 12px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}
.mtb-map-shell--figma .mtb-route-card__visual {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}
.mtb-map-shell--figma .mtb-route-card__visual.has-photo-count::after {
  right: 4px;
  bottom: 4px;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  font-size: 10px;
}
.mtb-map-shell--figma .mtb-route-card__title {
  font-size: 13px;
  line-height: 1.25;
  margin-bottom: 3px;
  font-weight: 700;
  color: rgba(255,255,255,0.94);
}
.mtb-map-shell--figma .mtb-route-card__location {
  font-size: 10px;
  font-weight: 400;
  margin-bottom: 6px;
  color: rgba(255,255,255,0.42);
}
.mtb-map-shell--figma .mtb-route-card__chips {
  gap: 5px;
}
.mtb-map-shell--figma .mtb-route-card__chip {
  min-height: 0;
  padding: 3px 7px;
  border-radius: 6px;
  font-size: 9px;
}
.mtb-map-shell--figma .mtb-route-card__metrics {
  gap: 4px 12px;
  margin-top: 7px;
}
.mtb-map-shell--figma .mtb-route-card__metrics span {
  font-size: 10px;
  font-weight: 600;
}
.mtb-map-shell--figma .mtb-route-card__chevron {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font-size: 12px;
  color: rgba(255,255,255,0.34);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mtb-map-shell--figma .mtb-route-card__expanded {
  display: grid;
  gap: 12px;
  padding: 0 12px 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
  min-width: 0;
}
.mtb-map-shell--figma .mtb-route-detail-card {
  display: flex;
  gap: 10px;
  padding: 14px;
  border-radius: 13px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
}
.mtb-map-shell--figma .mtb-route-detail-card__bar {
  width: 4px;
  border-radius: 3px;
  background: #ff7a2f;
  flex: 0 0 auto;
}
.mtb-map-shell--figma .mtb-route-detail-card__content {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.mtb-map-shell--figma .mtb-route-detail-card__title {
  font-size: 15px;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
  font-weight: 700;
}
.mtb-map-shell--figma .mtb-route-detail-card__location {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
}
.mtb-map-shell--figma .mtb-route-detail-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.mtb-map-shell--figma .mtb-route-detail-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.mtb-map-shell--figma .mtb-route-detail-stat {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(255,255,255,0.09);
}
.mtb-map-shell--figma .mtb-route-detail-stat span {
  display: block;
  margin-bottom: 6px;
  font-size: 9px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.mtb-map-shell--figma .mtb-route-detail-stat strong {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
}
.mtb-map-shell--figma .mtb-route-detail-section {
  display: grid;
  gap: 8px;
}
.mtb-map-shell--figma .mtb-route-detail-section__label {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mtb-map-shell--figma .mtb-route-detail-section__meta {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
}
.mtb-map-shell--figma .mtb-route-detail-elev {
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.11);
}
.mtb-map-shell--figma .mtb-route-detail-elev svg {
  display: block;
}
.mtb-map-shell--figma .mtb-route-detail-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.mtb-map-shell--figma .mtb-route-detail-thumb {
  aspect-ratio: 1 / 1;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
}
.mtb-map-shell--figma .mtb-route-detail-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mtb-map-shell--figma .mtb-photo-feed {
  display: grid;
  gap: 8px;
}
.mtb-map-shell--figma .mtb-photo-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.035);
}
.mtb-map-shell--figma .mtb-photo-card__media {
  width: 96px;
  height: 96px;
  border: 1px solid rgba(255,255,255,0.08);
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
}
.mtb-map-shell--figma .mtb-photo-card__body {
  min-width: 0;
}
.mtb-map-shell--figma .mtb-photo-card__title {
  font-size: 12.5px;
  line-height: 1.25;
  margin-bottom: 4px;
}
.mtb-map-shell--figma .mtb-photo-card__meta {
  font-size: 10px;
  color: rgba(255,255,255,0.28);
  margin-bottom: 8px;
}
.mtb-map-shell--figma .mtb-photo-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.mtb-map-shell--figma .mtb-photo-card__actions .mtb-btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 10px;
}
.mtb-map-shell--figma .mtb-elev-overlay,
.mtb-map-shell--figma .mtb-elev-overlay-toggle {
  display: none !important;
}
.mtb-map-shell--figma .mtb-sidebar-resizer {
  position: absolute;
  top: 0;
  right: -7px;
  bottom: 0;
  width: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: col-resize;
  z-index: 6;
}
.mtb-map-shell--figma .mtb-sidebar-resizer__thumb {
  width: 3px;
  height: 44px;
  border-radius: 99px;
  background: rgba(255,255,255,0.16);
}
.mtb-map-shell--figma .mtb-sidebar-resizer:hover .mtb-sidebar-resizer__thumb,
.mtb-map-shell--figma .mtb-sidebar-resizer.is-dragging .mtb-sidebar-resizer__thumb {
  background: #ff7a2f;
  box-shadow: 0 0 14px rgba(255,122,47,0.55);
}
@media (max-width: 1220px) {
  .mtb-map-shell--figma .mtb-map-gallery-surface {
    inset: 0;
    padding: 16px 14px 24px;
    border-radius: 0;
  }
  /* Legacy translateY bottom-drawer block removed — Svelte owns mobile UI */
  .mtb-map-shell--figma .mtb-panel-map-sidebar:not(.is-open) .mtb-list-stack,
  .mtb-map-shell--figma .mtb-panel-map-sidebar:not(.is-open) .mtb-filter-panel {
    display: none;
  }
  .mtb-map-shell--figma .mtb-panel-map-sidebar.is-open .mtb-list-stack {
    display: grid;
  }
  .mtb-map-shell--figma .mtb-route-list-count {
    padding: 0 8px;
  }
  .mtb-map-shell--figma .mtb-mobile-drawer-toggle__icon,
  .mtb-map-shell--figma .mtb-mobile-drawer-toggle__icon svg {
    width: 16px;
    height: 16px;
    display: block;
  }
  .mtb-map-shell--figma .mtb-mobile-drawer-toggle__icon svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
  }
  .mtb-map-shell--figma .mtb-sidebar-resizer,
  .mtb-map-shell--figma .mtb-sidebar-detail {
    display: none !important;
  }
  .mtb-map-shell--figma .mtb-map-right-stack {
    top: 64px;
    right: 12px;
  }
  .mtb-map-shell--figma .mtb-map-help-btn {
    top: 12px;
    right: 12px;
  }
  .mtb-map-shell--figma .mtb-map-view-pill {
    display: none !important;
  }
  .mtb-map-shell--figma .mtb-map-view-pill--dock {
    display: none !important;
  }
}
/* Tray elements hidden by default — shown by media query on ≤1220 (tablet+mobile) */
@media (max-width: 1220px) {
}

@media (max-width: 1220px) {
  .mtb-map-shell--figma {
    height: 90vh !important;
    height: 90dvh !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;
    min-height: 90vh !important;
    min-height: 90dvh !important;
    overflow: hidden !important;
  }
  /* pan-y: browser owns single-finger vertical scroll (page scrolls natively).
     Leaflet pinch-zoom still works. JS enables Leaflet drag only on 2+ fingers. */
  .mtb-map-shell--figma .mtb-map-canvas,
  .mtb-map-shell--figma .mtb-map-canvas .leaflet-container {
    touch-action: pan-y !important;
  }
  .mtb-map-shell--figma .mtb-map-gallery-surface__title {
    font-size: 22px;
  }
  .mtb-map-shell--figma .mtb-map-gallery-surface {
    inset: 0;
    padding: 16px 14px calc(122px + env(safe-area-inset-bottom, 0px));
    border-radius: 0;
  }
  .mtb-map-shell--figma .mtb-map-gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
  }
  .mtb-map-shell--figma .mtb-map-view-pill:not(.mtb-map-view-pill--dock) {
    display: none !important;
  }
  /* Dock — hidden on mobile; tray toolbar replaces all dock functions */
  .mtb-map-shell--figma .mtb-map-view-pill--dock {
    display: none !important;
  }

  /* ── Mobile/tablet: floating card strip + fixed bottom dock (no sliding sheet) ── */
  .mtb-map-shell--figma .mtb-panel-map-sidebar {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: 92vh !important;
    max-height: 92dvh !important;
    border-radius: 0 !important;
    transform: none !important;
    transition: none !important;
    overflow: visible !important;
    pointer-events: none !important; /* let touches pass to map except on children */
    display: block !important;
    z-index: 400 !important;
    padding: 0 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    border: none !important;
    animation: none !important;
  }
  .mtb-map-shell--figma .mtb-panel-map-sidebar::before { display: none; }

  /* Panel becomes a full-screen list when expanded */
  .mtb-map-shell--figma .mtb-panel-map-sidebar.is-open {
    background: rgba(10,8,20,0.96) !important;
    backdrop-filter: blur(36px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(36px) saturate(150%) !important;
    pointer-events: auto !important;
    top: 0 !important;
    height: auto !important;
  }

  /* Hide old sidebar-top (mobile-drawer-toggle, mode toggle, search form, route count) */
  .mtb-map-shell--figma .mtb-filters-form--sidebar,
  .mtb-map-shell--figma .mtb-route-list-count {
    display: none !important;
  }

  /* Sidebar scroll: hidden by default, shows only in full/open state */
  .mtb-map-shell--figma .mtb-sidebar-scroll {
    display: none !important;
  }
  .mtb-map-shell--figma .mtb-panel-map-sidebar.is-open .mtb-sidebar-scroll {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    left: 0; right: 0;
    top: 0;
    bottom: calc(96px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 24px 16px 24px;
    pointer-events: auto;
  }

  /* ── Horizontal card strip (floats above the dock) ── */
  /* Minimize: slide the strip down behind the dock instead of hiding instantly */
  /* Flip the minimize-button chevron to point up when the strip is minimized */

  /* ── Full-bleed route card ── */

  /* ── Bottom dock (fixed at bottom of viewport, compact) ── */
  /* Center expand button — highlighted orange pill, bulges up */

  /* ── Full-screen search overlay — covers entire viewport ── */

  /* Hide on mobile: things the tray toolbar replaces */
  .mtb-map-shell--figma .mtb-map-help-btn { display: none !important; }
  .mtb-map-shell--figma .mtb-map-right-stack {
    top: 60px;
    right: 12px;
    left: auto;
    width: min(300px, calc(100vw - 24px));
    max-height: calc(100% - 84px);
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(12,11,16,0.82);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 18px 42px rgba(0,0,0,0.44);
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px) scale(0.98);
    transition: opacity 180ms ease, transform 180ms ease;
    gap: 10px;
    z-index: 510;
  }
  .mtb-map-shell--figma.is-mobile-tools-open .mtb-map-right-stack {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .mtb-map-shell--figma .mtb-map-zoom-stack,
  .mtb-map-shell--figma .mtb-map-tool-stack {
    width: 100%;
    flex-direction: row;
  }
  .mtb-map-shell--figma .mtb-map-tool-btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
  .mtb-map-shell--figma .mtb-map-tool-btn[data-map-tool="layers"] {
    display: none;
  }
  .mtb-map-shell--figma .mtb-map-tools-wrap {
    width: 100%;
  }
  .mtb-map-shell--figma .mtb-map-layers-menu {
    position: static;
    right: auto;
    top: auto;
    width: 100%;
    margin-top: 2px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}
@media (max-width: 720px) {
  .mtb-map-shell--figma .mtb-route-card__trigger,
  .mtb-map-shell--figma .mtb-photo-card {
    grid-template-columns: 1fr;
    display: grid;
  }
  .mtb-map-shell--figma .mtb-route-card__visual,
  .mtb-map-shell--figma .mtb-photo-card__media {
    width: 100%;
    height: 140px;
  }
  .mtb-map-shell--figma .mtb-route-card__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ── Desktop ctrl+scroll overlay ──────────────────────────────────────── */
.mtb-scroll-trap-overlay {
  position: absolute;
  inset: 0;
  z-index: 450;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: inherit;
}
.mtb-scroll-trap-overlay.is-visible { opacity: 1; }
.mtb-scroll-trap-overlay span {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-align: center;
  padding: 12px 20px;
  background: rgba(0,0,0,0.6);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.15);
}
.mtb-scroll-trap-overlay kbd {
  display: inline-block;
  padding: 1px 6px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 5px;
  font-family: inherit;
  font-size: 13px;
}
@media (max-width: 1220px) {
  /* Hide the desktop ctrl+scroll variant on tablet/mobile, keep the touch one */
  .mtb-scroll-trap-overlay:not(.mtb-scroll-trap-overlay--touch) { display: none !important; }
}
.mtb-scroll-trap-overlay--touch { display: none; }
@media (max-width: 1220px) {
  .mtb-scroll-trap-overlay--touch { display: flex; }
}

/* ═══════════════════════════════════════════════════════════════════════
   Visual audit fixes — apply globally (not media-query-gated)
   ═══════════════════════════════════════════════════════════════════════ */

/* Kill the legacy info/camera mode-toggle pills on every sidebar variant */

/* Kill the white "Clear filters" / .mtb-btn light theme inside the map shell —
   reskin to dark glass */
html body .mtb-map-shell .mtb-list-empty,
html body .mtb-map-shell--figma .mtb-list-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 18px;
  color: rgba(255,255,255,0.62);
  font-size: 13px;
  text-align: center;
  border-radius: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px dashed rgba(255,255,255,0.1);
}
html body .mtb-map-shell .mtb-list-empty .mtb-btn,
html body .mtb-map-shell--figma .mtb-list-empty .mtb-btn,
html body .mtb-map-shell .mtb-list-empty button,
html body .mtb-map-shell--figma .mtb-list-empty button {
  background: rgba(255,255,255,0.06) !important;
  color: rgba(255,255,255,0.88) !important;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 12px !important;
  padding: 10px 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: background 0.14s, border-color 0.14s;
  box-shadow: none !important;
  min-width: 0 !important;
  width: auto !important;
}
html body .mtb-map-shell .mtb-list-empty .mtb-btn:hover,
html body .mtb-map-shell--figma .mtb-list-empty .mtb-btn:hover {
  background: rgba(255,122,47,0.18) !important;
  border-color: rgba(255,122,47,0.5) !important;
  color: #fff !important;
}

/* Kill browser autofill white background on any search/filter inputs inside the map */
.mtb-map-shell input:-webkit-autofill,
.mtb-map-shell input:-webkit-autofill:hover,
.mtb-map-shell input:-webkit-autofill:focus,

/* The stray orange vertical bar on route cards was an ::before accent. Kill it. */
html body .mtb-map-shell--figma .mtb-route-card--figma::before,
html body .mtb-map-shell--figma .mtb-route-card--figma .mtb-route-card__trigger::before {
  display: none !important;
}

/* ── Compact map popup — overrides the base map-shell-core.css popup styles ── */
.leaflet-popup.mtb-popup-wrapper,
.leaflet-popup-content-wrapper:has(.mtb-popup) {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 16px !important;
}
.leaflet-popup-content-wrapper {
  background: rgba(10,8,20,0.96) !important;
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid rgba(255,255,255,0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.7), 0 8px 22px -6px rgba(0,0,0,0.55) !important;
  padding: 6px !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 240px !important;
  line-height: 1.3 !important;
}
.leaflet-popup-tip {
  background: rgba(10,8,20,0.96) !important;
  border: 1px solid rgba(255,255,255,0.1) !important;
  box-shadow: none !important;
}
.leaflet-popup-close-button {
  color: rgba(255,255,255,0.75) !important;
  font-size: 20px !important;
  padding: 6px 8px !important;
  top: 2px !important;
  right: 2px !important;
  z-index: 3;
}

.mtb-popup {
  color: #fff !important;
  font-size: 12px !important;
  min-width: 0 !important;
  max-width: 240px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.mtb-popup__media-wrap {
  position: relative !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: rgba(0,0,0,0.4) !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  margin: 0 0 8px !important;
  aspect-ratio: 16/10;
}
.mtb-popup__media {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  cursor: pointer;
}
.mtb-popup__media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}
.mtb-popup__count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
  z-index: 2;
}
.mtb-popup__count-badge svg { flex-shrink: 0; }
.mtb-popup__navbtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  transition: background 0.12s;
}
.mtb-popup__navbtn:hover { background: rgba(255,122,47,0.85); }
.mtb-popup__navbtn--prev { left: 6px; }
.mtb-popup__navbtn--next { right: 6px; }
.mtb-popup__dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.mtb-popup__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.12s, width 0.12s;
}
.mtb-popup__dot.is-active {
  background: #fff;
  width: 14px;
  border-radius: 99px;
}
.mtb-popup__head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 2px 4px 0;
  margin: 0 0 6px;
}
.mtb-popup__title {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: #fff !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mtb-popup__chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.mtb-popup__chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(255,122,47,0.88);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.22);
}
.mtb-popup__elev {
  padding: 0 4px;
  margin: 0 0 8px;
}
.mtb-popup__elev svg {
  display: block;
  border-radius: 6px;
}
.mtb-popup__elevmeta {
  display: flex;
  gap: 12px;
  padding: 4px 4px 0;
  color: rgba(255,255,255,0.72);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
/* Stats grid (preview_type=stats) */
.mtb-popup__statgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 4px;
  margin: 0 0 8px;
}
.mtb-popup__statcell {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.mtb-popup__statcell strong {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.mtb-popup__statlabel {
  color: rgba(255,255,255,0.5);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
/* Blurb / custom text (preview_type=excerpt|custom) */
.mtb-popup__blurb {
  padding: 4px 6px 6px;
  margin: 0 0 8px;
  color: rgba(255,255,255,0.84);
  font-size: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mtb-popup__openrow { padding: 4px; }
.mtb-popup__open-post {
  display: block;
  text-align: center;
  padding: 9px 12px;
  background: linear-gradient(180deg, #ffb050, #ff7a2f);
  color: #1a0f02 !important;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none !important;
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 4px 12px -3px rgba(255,122,47,0.4);
  transition: transform 0.1s;
}
.mtb-popup__open-post:hover { transform: translateY(-1px); }
/* Hide all the legacy popup noise in compact mode */
.mtb-popup .mtb-popup__stats,
.mtb-popup .mtb-popup__excerpt:not(.mtb-popup__openrow),
.mtb-popup .mtb-popup__actions,
.mtb-popup .mtb-popup__carousel,
.mtb-popup .mtb-popup__count:not(.mtb-popup__count-badge),
.mtb-popup .mtb-popup__status,
.mtb-popup .mtb-popup__editor,
.mtb-popup .mtb-popup__gallery { display: none !important; }

/* Single loading spinner — hide the inline list spinner when the full-shell loader is visible */
/* Also make the two spinner sources mutually exclusive at the DOM level */

/* ═══════════════════════════════════════════════════════════════════════
   GRAYSCALE + ORANGE THEME ENFORCEMENT
   Nuke every blue/slate/sky/navy tint that leaked in from Tailwind defaults
   ═══════════════════════════════════════════════════════════════════════ */

/* Kill the sidebar resizer on mobile (it was showing as a horizontal bar
   below the sidebar because the sidebar is now position:absolute) */
@media (max-width: 1220px) {
  html body .mtb-map-shell--figma .mtb-sidebar-resizer,
  html body .mtb-map-shell--figma .mtb-sidebar-resizer__thumb {
    display: none !important;
  }
}

/* Kill any Leaflet attribution + controls that render bottom-edge bars */
html body .mtb-map-shell .leaflet-control-attribution,
html body .mtb-map-shell--figma .leaflet-control-attribution {
  display: none !important;
}
@media (max-width: 1220px) {
  html body .mtb-map-shell .leaflet-bottom.leaflet-right,
  html body .mtb-map-shell .leaflet-bottom.leaflet-left,
  html body .mtb-map-shell--figma .leaflet-bottom.leaflet-right,
  html body .mtb-map-shell--figma .leaflet-bottom.leaflet-left {
    display: none !important;
  }
}

/* Kill pull-to-refresh bounce background on mobile body when map is visible */
@media (max-width: 1220px) {
  html body .mtb-map-shell--figma {
    background: #000 !important;
  }
  html body .mtb-map-shell--figma::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -100px;
    height: 100px;
    background: #000;
    z-index: 0;
  }
}

/* Hunt down and neutralize every slate-blue (#94a3b8, #cbd5e1, #64748b, #475569)
   that was being used for "muted text" inside the map shell. Convert to neutral
   grays so nothing reads as blue. */
html body .mtb-map-shell *,
html body .mtb-map-shell--figma * {
  /* Only override inline-derived text colors that resolve to the slate palette. */
}
html body .mtb-map-shell *[style*="#94a3b8"],
html body .mtb-map-shell *[style*="#cbd5e1"],
html body .mtb-map-shell *[style*="#64748b"],
html body .mtb-map-shell *[style*="#475569"],
html body .mtb-map-shell *[style*="#0f172a"],
html body .mtb-map-shell *[style*="#1e293b"],
html body .mtb-map-shell *[style*="#334155"] {
  color: rgba(255,255,255,0.62) !important;
}

/* Dashed borders that used slate-blue rgba(148,163,184,...) — neutralize to
   pure white-alpha */
html body .mtb-map-shell .mtb-detail-stat-row,
html body .mtb-map-shell--figma .mtb-detail-stat-row {
  border-bottom-color: rgba(255,255,255,0.12) !important;
}

/* Muted text — #94a3b8 inside map-shell-core. Neutralize. */
.mtb-map-shell .mtb-route-meta,
.mtb-map-shell--figma .mtb-route-meta {
  color: rgba(255,255,255,0.55) !important;
}

/* Any element still rendering a non-orange accent color that's in the blue
   family — catch them via CSS variable override */
.mtb-map-shell,
.mtb-map-shell--figma {
  --mtb-text-muted: rgba(255,255,255,0.56) !important;
  --mtb-border-soft: rgba(255,255,255,0.08) !important;
  --mtb-accent: #ff7a2f !important;
  --mtb-accent-soft: rgba(255,122,47,0.18) !important;
}
