.entry-content.has-local-map #entry-overview,
.entry-content.has-local-map #entry-local-map,
.entry-content.has-local-map #entry-narrative { grid-column: 1 / -1; }
.entry-content.has-local-map #entry-overview { grid-row: 1; }
.entry-content.has-local-map #entry-local-map { grid-row: 2; }
.entry-content.has-local-map #entry-narrative { grid-row: 3; }
.local-map-section { padding: clamp(14px, 2vw, 26px); overflow: hidden; }
.local-map-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 16px; }
.local-map-heading h2 { margin: 0; }
.local-map-heading button,
.local-map-controls button { border: 1px solid var(--line); background: var(--inset); color: var(--ink); cursor: pointer; font: inherit; }
.local-map-heading button { padding: 9px 14px; font-size: 12px; white-space: nowrap; }
.local-map-heading button:hover,
.local-map-controls button:hover:not(:disabled) { border-color: var(--teal); color: var(--teal); }
.local-map-stage { position: relative; width: 100%; height: clamp(390px, 67vh, 700px); overflow: hidden; border: 1px solid var(--line); background: #0d2936; touch-action: none; cursor: grab; user-select: none; }
.local-map-stage.is-dragging { cursor: grabbing; }
.local-map-stage:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.local-map-plane { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.local-map-plane img { display: block; width: 100%; height: 100%; max-width: none; pointer-events: none; }
.local-map-hotspot { position: absolute; z-index: 1; display: grid; place-items: center; width: 42px; height: 42px; transform: translate(-50%, -50%) scale(var(--inverse-map-scale)); transform-origin: center; border-radius: 50%; text-decoration: none; outline: none; }
.local-map-hotspot--pyramid { width: 20px; height: 20px; }
.local-map-hotspot-dot { width: 7px; height: 7px; border-radius: 50%; border: 1px solid #ecede4; background: #376b68b8; box-shadow: 0 0 0 1px #102735b8; transition: box-shadow .15s ease, transform .15s ease; }
.local-map-hotspot:hover .local-map-hotspot-dot,
.local-map-hotspot:focus-visible .local-map-hotspot-dot { transform: scale(1.5); box-shadow: 0 0 0 5px #a1c9b977, 0 0 0 7px #102735a8; }
.local-map-tooltip { position: absolute; z-index: 3; bottom: calc(100% - 1px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 220px; padding: 6px 9px; border: 1px solid #a1c9b9; background: #102735; color: #eeede2; font-size: 12px; line-height: 1.3; text-align: center; box-shadow: 0 4px 12px #071d28a8; opacity: 0; visibility: hidden; pointer-events: none; }
.local-map-hotspot:hover .local-map-tooltip,
.local-map-hotspot:focus-visible .local-map-tooltip { opacity: 1; visibility: visible; }
.local-map-controls { position: absolute; z-index: 5; top: 12px; left: 12px; display: flex; gap: 5px; }
.local-map-controls button { width: 37px; height: 37px; background: #102735e8; font-size: 19px; }
.local-map-controls button:disabled { opacity: .45; cursor: default; }
.local-map-index { margin-top: 12px; border-top: 1px solid var(--line); font-size: 13px; }
.local-map-index summary { padding: 9px 2px; cursor: pointer; color: var(--ink); }
.local-map-index ul { max-height: 180px; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 4px 14px; margin: 0; padding: 4px 0 10px; list-style: none; }
.local-map-index a { display: block; padding: 6px 8px; color: var(--ink); border: 1px solid transparent; text-decoration: none; }
.local-map-index a:hover, .local-map-index a:focus-visible { color: var(--teal); border-color: var(--line); }
body.local-map-open { overflow: hidden; }
.local-map-section.is-expanded { position: fixed; z-index: 100; inset: 0; display: flex; flex-direction: column; margin: 0; padding: 14px clamp(14px, 2vw, 30px); border: 0; background: #102735; }
.local-map-section.is-expanded .local-map-heading { flex: none; }
.local-map-section.is-expanded .local-map-stage { flex: 1; min-height: 0; height: auto; }
.local-map-section.is-expanded .local-map-index { flex: none; }
@media (max-width: 600px) {
  .local-map-heading { align-items: flex-start; }
  .local-map-heading h2 { font-size: 25px; }
  .local-map-heading button { padding: 8px 10px; white-space: normal; }
  .local-map-stage { height: min(70vh, 540px); min-height: 330px; }
  .local-map-section.is-expanded .local-map-stage { min-height: 0; }
  .local-map-hotspot { width: 46px; height: 46px; }
  .local-map-hotspot--pyramid { width: 20px; height: 20px; }
}
