/* Linked-map additions only. Everything else comes from site.css, copied
   unchanged from the live maps project. */

/* The pan/zoom target is the stage (canvas + hotspots move as one), not the
   bare canvas the stock viewer transforms. */
#stage {
  position: absolute;
  top: 0; left: 0;
  transform-origin: 0 0;
}
#stage canvas { position: static; display: block; }

/* One clickable box per linked pin, positioned in map pixels so it scales
   with the stage. Transparent until hovered; the wine underline is the
   standing cue that a place is a link. */
.hotspot {
  position: absolute;
  display: block;
  border-radius: 6px;
  box-shadow: inset 0 -3px 0 rgba(125, 26, 46, 0.7);
  cursor: pointer;
  -webkit-user-drag: none;
  user-select: none;
}
.hotspot:hover,
.hotspot:focus-visible {
  outline: 3px solid var(--gold);
  background: rgba(198, 161, 91, 0.18);
  box-shadow: none;
}

.link-legend {
  position: absolute;
  left: 1.2em;
  bottom: 1.2em;
  z-index: 10;
  padding: 0.35em 0.8em;
  border: 1px solid var(--panel-line);
  border-radius: 999px;
  background: rgba(26, 20, 32, 0.88);
  color: var(--ink-dim);
  font-size: 0.7em;
  pointer-events: none;
}
.link-legend .swatch {
  display: inline-block;
  width: 1.6em;
  height: 0;
  margin-right: 0.5em;
  vertical-align: middle;
  border-bottom: 3px solid rgba(125, 26, 46, 0.9);
}

@media (max-width: 640px) {
  .link-legend { left: 0.8em; right: 5.5em; border-radius: 12px; }
}
