/* The village plan block. Plain CSS beside its script, like the piste map,
   so it needs no Tailwind build. */

.village-plan-open {
  cursor: zoom-in;
}
.village-plan-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgb(17 17 16 / 0.8);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  pointer-events: none;
}

/* ------------------------------------------------------------ the viewer */

.vp-dialog {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f4f3f0;
  overflow: hidden;
}
.vp-dialog::backdrop {
  background: rgb(17 17 16 / 0.85);
}
.vp-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.vp-stage.is-dragging {
  cursor: grabbing;
}
.vp-stage img {
  position: absolute;
  top: 0;
  left: 0;
  max-width: none;
  transform-origin: 0 0;
  will-change: transform;
  -webkit-user-drag: none;
}
.vp-controls {
  position: absolute;
  top: max(0.75rem, env(safe-area-inset-top));
  right: max(0.75rem, env(safe-area-inset-right));
  display: flex;
  gap: 0.5rem;
}
.vp-controls button {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: #111110;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.25);
}
.vp-controls button:hover {
  background: #2e2e2c;
}
.vp-controls button:focus-visible {
  outline: 3px solid #19b3a6;
  outline-offset: 2px;
}
