.map-root {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #f8f9fa;
}
.leaflet-container { font: inherit; background: var(--mist); }
.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(--primary);
  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-pin.is-active span { color: var(--ink); }
.marker-me .marker-pin { background: var(--primary-hover); border-width: 3px; }
.marker-me .marker-pin span { font-size: 14px; }
.marker-me { pointer-events: none; }
.navigation-puck { position: relative; width: 24px; height: 24px; margin: 4px; border: 4px solid white; border-radius: 50%; background: #2563EB; box-shadow: 0 1px 7px rgb(0 0 0 / 55%); }
.marker-me.is-navigating .navigation-puck { box-shadow: 0 0 0 5px rgb(37 99 235 / 20%), 0 1px 7px rgb(0 0 0 / 55%); }
.marker-me.is-stale .navigation-puck { opacity: 0.55; box-shadow: 0 1px 7px rgb(0 0 0 / 35%); }
.puck-heading { display: none; position: absolute; inset: -12px; transform: rotate(var(--heading)); transition: transform 250ms ease; }
.has-heading .puck-heading { display: block; }
.puck-heading::before { content: ""; position: absolute; top: -3px; left: 12px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-bottom: 10px solid #2563EB; }
@media (prefers-reduced-motion: reduce) { .puck-heading { transition: none; } }
.route-line { stroke: #2563EB; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.selected-building-outline { animation: building-outline-pulse 2.4s ease-in-out infinite; }
.selected-room-outline { stroke-width: 4; }
@keyframes building-outline-pulse {
  0%, 100% { stroke-opacity: 0.68; stroke-width: 3.5; }
  50% { stroke-opacity: 1; stroke-width: 4.5; }
}
.place-selection-marker {
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
}
.place-selection-marker span {
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 50%;
  background: #166534;
  box-shadow: 0 1px 5px rgb(0 0 0 / 45%);
}
.place-selection-marker.is-room span { background: #2563EB; }
.place-selection-marker:focus-visible span { outline: 3px solid var(--ink); outline-offset: 2px; }
.place-map-tooltip {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: var(--shadow-1);
}
.place-map-tooltip::before { border-top-color: var(--paper); }
.fab-stack {
  position: fixed;
  right: calc(16px + var(--safe-r));
  bottom: var(--map-controls-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: var(--primary); color: var(--paper); border-color: var(--primary); }
.satellite-control { position: fixed; top: var(--satellite-top, 128px); right: calc(16px + var(--safe-r)); z-index: 1090; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.satellite-status { max-width: 104px; padding: 3px 6px; border-radius: 6px; background: var(--paper); color: var(--muted); font-size: 10px; text-align: right; }
.satellite-status[hidden] { display: none; }
body[data-searching="true"] .satellite-control { visibility: hidden; }
.campus-logo { position: fixed; right: calc(76px + var(--safe-r)); bottom: calc(72px + var(--safe-b)); width: 40px; height: auto; pointer-events: none; z-index: 800; }
.leaflet-bottom.leaflet-right { bottom: var(--safe-b); }
body[data-sheet-open="true"] .campus-logo { display: none; }
body[data-searching="true"] .campus-logo { visibility: hidden; }
body[data-map-controls-visible="false"] .fab-stack { visibility: hidden; pointer-events: none; }
@media (min-width: 900px) {
  .satellite-control { top: 132px; right: calc(28px + var(--safe-r)); }
  .fab-stack { right: calc(28px + var(--safe-r)); bottom: 126px; }
  .campus-logo { width: 76px; right: calc(16px + var(--safe-r)); bottom: calc(28px + var(--safe-b)); }
  body[data-sheet-open="true"] .campus-logo { display: block; }
}
@media (max-width: 899px) {
  .fab-stack { bottom: calc(var(--sheet-bottom, 0px) + var(--sheet-visible-height, 96px) + 36px); align-items: center; gap: 8px; transition: bottom 280ms ease-out; }
  .fab-stack .campus-logo { display: block; position: static; width: 40px; height: 40px; object-fit: contain; }
  body[data-sheet-open="true"] .campus-logo { display: block; }
  body[data-logo-visible="false"] .fab-stack .campus-logo { display: none; }
  body[data-searching="true"] .campus-logo { visibility: visible; }
  body[data-sheet-dragging="true"] .fab-stack { transition: none; }
  .leaflet-bottom.leaflet-right { bottom: calc(var(--sheet-bottom, 0px) + var(--sheet-visible-height, 96px)); }
  .satellite-control .fab { width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .fab-stack { transition: none; }
  .selected-building-outline { animation: none; stroke-opacity: 0.95; stroke-width: 4; }
}
