.mapapp { position: relative; height: 100dvh; min-height: 560px; overflow: hidden; background: #0b0d0f; isolation: isolate; }
.viewport { position: absolute; inset: 0; cursor: grab; touch-action: none; outline: none; }
.viewport.drag { cursor: grabbing; }
.layer { position: absolute; left: 0; top: 0; width: 3072px; height: 3072px; transform-origin: 0 0; will-change: transform; }
.layer img { width: 100%; height: 100%; user-select: none; -webkit-user-drag: none; image-rendering: auto; }
.viewport.smooth .layer { transition: transform 1.1s var(--ease); }
.grid { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; transition: opacity 0.6s var(--ease); }
.grid line { stroke: rgba(10, 20, 30, 0.28); stroke-width: 1; vector-effect: non-scaling-stroke; }
.grid text { fill: rgba(10, 20, 30, 0.55); font: 600 64px var(--f-mono); }
.grid.off { opacity: 0; }
.reticle { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); }
.reticle.show { opacity: 1; }
.reticle i { position: absolute; left: 0; top: 0; width: 64px; height: 64px; margin: -32px; border-radius: 50%; border: 2px solid var(--accent); transform: scale(var(--inv, 1)); }
.reticle i::before, .reticle i::after { content: ""; position: absolute; background: var(--accent); }
.reticle i::before { left: 50%; top: -14px; bottom: -14px; width: 2px; margin-left: -1px; background: linear-gradient(var(--accent) 0 14px, transparent 14px calc(100% - 14px), var(--accent) calc(100% - 14px)); }
.reticle i::after { top: 50%; left: -14px; right: -14px; height: 2px; margin-top: -1px; background: linear-gradient(90deg, var(--accent) 0 14px, transparent 14px calc(100% - 14px), var(--accent) calc(100% - 14px)); }
.reticle.show i { animation: lock 1s var(--ease-out); }
@keyframes lock { from { transform: scale(calc(var(--inv, 1) * 2.4)) rotate(45deg); opacity: 0; } to { transform: scale(var(--inv, 1)); opacity: 1; } }
.reticle span {
  position: absolute; left: 0; top: 0; white-space: nowrap; transform-origin: 0 0; transform: scale(var(--inv, 1)) translate(44px, -50%);
  padding: 8px 12px; border-radius: 10px; background: rgba(10, 10, 10, 0.88); color: var(--ink); font: 600 13px/1.2 var(--f-body); box-shadow: inset 0 0 0 1px var(--hair-2);
}
.reticle span small { display: block; margin-top: 3px; font: 400 11px/1 var(--f-mono); color: var(--ink-3); }
.places {
  position: absolute; z-index: 5; left: var(--gutter); top: 96px; width: 340px; max-height: calc(100dvh - 128px);
  display: flex; flex-direction: column; padding: 22px 8px 8px; border-radius: 26px;
  background: rgba(12, 12, 12, 0.84); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 30px 80px -30px rgba(0, 0, 0, 0.9);
}
.pl-head { display: flex; justify-content: space-between; align-items: center; padding: 0 14px; }
.pl-toggle { display: none; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(237, 237, 235, 0.07); font: 600 13px/1 var(--f-body); }
.pl-toggle i { width: 8px; height: 8px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: rotate(45deg) translateY(-2px); transition: transform 0.5s var(--ease); }
.places.closed .pl-toggle i { transform: rotate(-135deg) translateY(-2px); }
.pl-title { font-size: 64px; margin: 18px 14px 0; }
.pl-sub { margin: 12px 14px 18px; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.pl-sub kbd { height: 22px; min-width: 22px; font-size: 11px; }
.pl-list { overflow-y: auto; overscroll-behavior: contain; padding: 0 6px 6px; scrollbar-width: thin; scrollbar-color: var(--hair-2) transparent; }
.pl-group { margin: 16px 8px 8px; font: 500 11px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); }
.pl-item {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 12px; width: 100%; padding: 12px 14px; border-radius: 14px; text-align: left;
  transition: background-color 0.4s var(--ease);
}
.pl-item:hover, .pl-item[aria-current="true"] { background: rgba(237, 237, 235, 0.06); }
.pl-item[aria-current="true"] b { color: var(--accent-2); }
.pl-item b { font: 600 15px/1.2 var(--f-body); transition: color 0.4s var(--ease); }
.pl-item small { grid-column: 1; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.pl-item .xy { grid-row: 1 / span 2; grid-column: 2; font: 400 11px/1.5 var(--f-mono); color: var(--ink-3); text-align: right; }
.hud-xy { position: absolute; z-index: 4; left: calc(var(--gutter) + 356px); bottom: 24px; display: flex; gap: 6px; }
.hud-xy span { display: flex; gap: 8px; align-items: center; height: 38px; padding: 0 14px; border-radius: 99px; background: rgba(12, 12, 12, 0.82); box-shadow: inset 0 0 0 1px var(--hair-2); font-size: 12px; color: var(--ink-3); }
.hud-xy b { color: var(--ink); font-weight: 500; min-width: 5ch; font-variant-numeric: tabular-nums; }
.hud-xy .cell { color: var(--ink); }
.scale { position: absolute; z-index: 4; right: calc(var(--gutter) + 70px); bottom: 32px; display: grid; justify-items: end; gap: 6px; }
.scale i { display: block; height: 6px; border: 2px solid var(--ink); border-top: 0; transition: width 0.3s var(--ease); }
.scale span { font-size: 11px; color: var(--ink); text-shadow: 0 1px 4px #000; }
.ctrl { position: absolute; z-index: 4; right: var(--gutter); bottom: 24px; display: grid; gap: 2px; padding: 5px; border-radius: 99px; background: rgba(12, 12, 12, 0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px var(--hair-2); }
.ctrl button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--ink-2); transition: background-color 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease); }
.ctrl button:hover { background: rgba(237, 237, 235, 0.08); color: var(--ink); }
.ctrl button:active { transform: scale(0.92); }
.ctrl button[aria-pressed="false"] { color: var(--ink-4); }
.ctrl svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .places { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 56dvh; padding-top: 14px; transition: max-height 0.7s var(--ease); }
  .places.closed { max-height: 62px; overflow: hidden; }
  .pl-toggle { display: inline-flex; }
  .pl-title, .pl-sub { display: none; }
  .pl-head .eyebrow { display: none; }
  .pl-list { margin-top: 10px; }
  .hud-xy { left: 12px; top: 84px; bottom: auto; }
  .hud-xy span { height: 32px; padding: 0 11px; font-size: 11px; }
  .hud-xy .cell { display: none; }
  .ctrl { right: 12px; top: 84px; bottom: auto; }
  .ctrl button { width: 38px; height: 38px; }
  .scale { display: none; }
}
