.map-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--mist);
}
.leaflet-container { font: inherit; }
.marker-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px 999px 999px 2px;
  transform: rotate(-45deg);
  background: var(--teal);
  border: 2px solid var(--paper);
  box-shadow: var(--shadow-1);
}
.marker-pin span {
  transform: rotate(45deg);
  color: var(--paper);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.marker-pin.is-active { background: var(--amber); }
.marker-me .marker-pin { background: var(--teal-dark); border-width: 3px; }
.marker-me .marker-pin span { font-size: 14px; }
.route-line { stroke: var(--teal); stroke-width: 4; stroke-linecap: round; }
.fab-stack {
  position: fixed;
  right: 16px;
  bottom: calc(88px + var(--safe-b));
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fab {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--map-control-accent);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-20);
  transition: transform 120ms ease, background 120ms ease;
}
.fab:hover { background: var(--mist); }
.fab:active { transform: scale(0.94); }
.fab.is-toggled { background: #0f6e63; color: var(--paper); border-color: #0f6e63; }
.map-style-switcher {
  position: fixed;
  right: 16px;
  bottom: calc(172px + var(--safe-b));
  z-index: 1080;
  display: flex;
  gap: 8px;
}
.map-style-thumb {
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 64px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow-1);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}
.map-style-thumb.is-active { border-color: var(--teal); }
.map-style-thumb.is-unavailable { color: var(--text-muted); }
.map-style-preview { display: block; height: 38px; border-radius: 5px; }
.map-style-preview-default {
  background: linear-gradient(135deg, #d7ead0 0 40%, #b9d4ef 40% 49%, #f6e7c7 49% 100%);
}
.map-style-preview-satellite {
  background: linear-gradient(135deg, #496d41 0 30%, #9eaf59 30% 60%, #716647 60% 100%);
}
@media (min-width: 900px) {
  .fab-stack { right: 28px; bottom: 110px; }
  .map-style-switcher { right: 28px; bottom: 24px; }
}
