.river-page .river-map {
  margin: 22px 0;
  border: 1px solid var(--shared-chrome-border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--shared-chrome-surface-raised);
}
.river-page .river-map a { display: block; cursor: zoom-in; }
.river-page .river-map img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; }
.river-page .river-map figcaption { padding: 12px 16px; font-size: 14px; color: var(--shared-chrome-muted); border-top: 1px solid var(--shared-chrome-border); }
.river-map-dialog { width: min(1600px, 96vw); height: 90vh; height: 90dvh; display: flex; flex-direction: column; background: var(--shared-chrome-surface); color: var(--shared-chrome-text); border-radius: 12px; overflow: hidden; }
.river-map-tools { display: flex; align-items: center; gap: 6px; padding: 6px 10px; flex-shrink: 0; border-bottom: 1px solid var(--shared-chrome-border); }
.river-map-tools button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; min-width: 44px; height: 44px; padding: 0 10px; border: 1px solid var(--shared-chrome-border); border-radius: 6px; background: transparent; color: inherit; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; }
.river-map-tools button:hover:not(:disabled) { background: var(--shared-chrome-surface-raised); border-color: var(--shared-chrome-border-strong); }
.river-map-tools [data-map-zoom-in], .river-map-tools [data-map-zoom-out], .river-map-tools [data-shared-modal-close] { width: 44px; padding: 0; font-family: system-ui, sans-serif; font-size: 22px; }
.river-map-tools [data-shared-modal-close] { margin-left: auto; border-color: transparent; }
.river-map-tools button:disabled { opacity: .5; cursor: default; }
.river-map-stage { min-height: 0; flex: 1; overflow: auto; overscroll-behavior: contain; }
.river-map-stage img { display: block; margin: auto; max-width: none; }
.river-page .river-map a:focus-visible, .river-map-dialog :focus-visible { outline: 3px solid var(--shared-chrome-focus); outline-offset: -3px; }
@media (max-width: 640px) { .river-map-dialog { width: 100%; height: 100dvh; border-radius: 0; } }
@media print { #river-map-viewer { display: none !important; } .river-page .river-map { break-inside: avoid; } }
