.avm > p { margin: .4rem 0 .8rem; }
.avm-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; }
.avm-side, .avm-layout figure { min-width: 0; margin: 0; }
.avm-toolbar { margin-bottom: .5rem; }
.avm-toolbar div { display: flex; gap: .35rem; flex-wrap: wrap; }
.avm-toolbar button { min-height: 36px; padding: .35rem .7rem; border: 1px solid #9cb8d8; border-radius: .4rem; background: #fff; color: #143f68; font: inherit; font-size: .86rem; cursor: pointer; }
.avm-toolbar button[aria-pressed="true"] { background: #16497c; color: #fff; border-color: #16497c; }
.avm-plot { overflow: hidden; border: 1px solid #b5d1e2; border-radius: .7rem; background: #cae6f4; }
.avm-layer { position: relative; aspect-ratio: 9 / 5; transform-origin: 50% 50%; transition: transform .2s ease-out; }
.avm-layer[data-view="west"] { transform: scale(1.5); transform-origin: 28% 65%; }
.avm-layer[data-view="east"] { transform: scale(1.5); transform-origin: 77% 36%; }
.avm-layer[data-view="west"] .avm-pin[data-avm-region="east"], .avm-layer[data-view="east"] .avm-pin[data-avm-region="west"] { visibility: hidden; }
.avm-layer svg { display: block; width: 100%; height: 100%; }
.avm-land { fill: #e9efda; stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.avm-label, .avm-north { fill: #294c63; font-size: 18px; font-weight: 700; text-anchor: middle; paint-order: stroke; stroke: #f7fbfd; stroke-width: 4; stroke-linejoin: round; }
.avm-label-district { font-size: 23px; }
.avm-label-water { font-style: italic; fill: #286586; }
.avm-north path { stroke: #294c63; stroke-width: 2; fill: none; }
.avm a.avm-pin { position: absolute; left: var(--pin-x); top: var(--pin-y); z-index: 1; transform: translate(-50%, -50%); display: grid; place-items: center; width: 34px; height: 34px; text-decoration: none; color: #fff; }
.avm-pin:is(:hover, :focus-visible, [aria-current]) { z-index: 2; }
.avm-dot, .avm-legend-dot { display: grid; place-items: center; flex: none; width: 1.55rem; aspect-ratio: 1; border-radius: 50%; background: #125bb6; color: #fff; font-weight: 750; line-height: 1; }
.avm-pin .avm-dot { width: 100%; height: 100%; border: 2px solid #fff; box-shadow: 0 2px 7px #17406166; }
.avm-reported .avm-dot, .avm-legend-report { background: #774813; border: 1px dashed #fff; }
.avm-pin[aria-current] .avm-dot { box-shadow: 0 0 0 3px #192f47, 0 2px 7px #17406166; }
.avm-pin-label { position: absolute; top: calc(100% + 3px); width: max-content; max-width: 128px; padding: 2px 5px; border-radius: 4px; background: #fff; color: #143452; font-size: clamp(.63rem, .9vw, .82rem); font-weight: 750; line-height: 1.16; text-align: center; box-shadow: 0 1px 4px #17406133; pointer-events: none; }
.avm-pin.avm-reported .avm-pin-label, .avm-layer[data-view="west"] .avm-pin[href="#ap26-venue-apec-ceo-welcome-reception-2026"] .avm-pin-label { top: auto; bottom: calc(100% + 3px); }
.avm-layer[data-view="east"] .avm-pin[href="#ap26-venue-apec-leaders-week-press-centre-2026"] .avm-pin-label { right: 0; }
.avm-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding: 0; margin: .65rem 0 .3rem; list-style: none; font-size: .86rem; }
.avm-legend li { display: flex; align-items: center; gap: .35rem; }
.avm-legend-dot { width: .9rem; }
.avm-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .35rem; margin-bottom: .65rem; }
.avm a.avm-choice { display: flex; gap: .55rem; align-items: center; min-height: 50px; min-width: 0; padding: .45rem; border: 1px solid #c6dbed; border-radius: .5rem; text-decoration: none; background: #fff; color: #143452; line-height: 1.2; }
.avm-choice:is(:hover, [aria-current]) { background: #edf5ff !important; border-color: #558ec4 !important; }
.avm-choice small { display: block; margin-top: .18rem; font-size: .73rem; }
.avm-detail { margin-bottom: .45rem; }
.avm-detail [href].ap26-primary { color: #fff; }
.avm :is(button, a):focus-visible { outline: 3px solid #1b426c; outline-offset: 2px; }
.avm [hidden] { display: none !important; }
@media (max-width: 820px) { .avm-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 480px) {
  .avm-pin-label { display: none; }
  .avm-toolbar button { font-size: .76rem; padding: .25rem .4rem; }
  .avm a.avm-pin { width: 29px; height: 29px; }
  .avm-label { font-size: 23px; }
  .avm-label-district { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) { .avm-layer { transition: none; } }
