/* Scéna: plátno spinu přes celé okno, jemný stín pod hlavičkou, štítek u kurzoru, maják A01.1, štítky bytů. */
.stage { position: absolute; inset: 0; background: var(--stage-bg); }
.stage__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab;
  -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
}
.stage__canvas.is-dragging { cursor: grabbing; }
.stage__canvas:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 6px var(--gold); }
.shade { position: absolute; pointer-events: none; }
.shade--top { inset: 0 0 auto 0; height: 150px; background: linear-gradient(rgba(7, 25, 58, .42), rgba(7, 25, 58, .14) 55%, rgba(7, 25, 58, 0)); }

.spin-loader {
  position: absolute; left: 50%; top: 96px; z-index: 30; transform: translateX(-50%); margin: 0; padding: 8px 16px;
  background: rgba(255, 255, 255, .94); border-radius: 99px; box-shadow: var(--sh-1); font-size: 13px; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.no-spin .stage__canvas { cursor: default; }

/* štítek u kurzoru: malý, bílý, vzdušný; u A01.1 zlatá patka s výzvou */
.callout {
  position: absolute; left: 0; top: 0; z-index: 25; width: 236px; padding: 13px 16px 0; background: #fff; border-radius: 16px;
  box-shadow: var(--sh-2); pointer-events: none; opacity: 0; transition: opacity .16s, transform .12s linear; overflow: hidden;
}
.callout.is-on { opacity: 1; }
.co__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.co__id { font-size: 24px; line-height: 1; }
.co__meta { margin-top: 7px; font-size: 14px; font-weight: 600; }
.co__price { margin-top: 4px; font-size: 13px; color: var(--ink-3); }
.co__price .num { font-size: 18px; color: var(--navy); }
.co__foot {
  display: flex; align-items: center; gap: 6px; margin: 11px -16px 0; padding: 9px 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}
.co__foot svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.co__foot--tour { border-top: 0; background: var(--gold); color: var(--navy); }
.co__foot--tour svg { width: 16px; height: 16px; stroke-width: 1.8; }

/* štítky nad fotkou (polohu píše pins.js do transform) */
.pins { position: absolute; inset: 0; z-index: 8; pointer-events: none; }
.pin, .beacon { position: absolute; left: 0; top: 0; pointer-events: auto; transition: opacity .25s; will-change: transform; }
.pin.is-off, .beacon.is-off { opacity: 0; pointer-events: none; }
.pins.is-moving .pin { opacity: 0; pointer-events: none; }
.pin__in {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 11px 0 10px; transform: translate(-50%, -50%);
  background: #fff; border-radius: 99px; box-shadow: var(--sh-1); white-space: nowrap; animation: pinIn .35s var(--ease) both;
}
.pin__in b { font-size: 15px; line-height: 1; }
.pin__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--free); }
.pin.is-reserved .pin__dot, .pin.is-sold .pin__dot {
  background: repeating-linear-gradient(-45deg, var(--res) 0 2px, transparent 2px 4px); box-shadow: inset 0 0 0 1.5px var(--res);
}
.pin.is-reserved .pin__in { color: var(--ink-2); }
.pin:hover .pin__in, .pin.is-hover .pin__in { box-shadow: 0 0 0 2px var(--navy), var(--sh-1); }
.pin--sel .pin__in {
  position: relative; height: 34px; padding: 0 14px; background: var(--navy); color: #fff; transform: translate(-50%, calc(-100% - 12px));
}
.pin--sel .pin__in::after {
  content: ''; position: absolute; left: 50%; bottom: -6px; margin-left: -6px; border: 6px solid transparent; border-bottom: 0;
  border-top-color: var(--navy);
}
.pin--sel.is-tour .pin__in::after { border-top-color: var(--gold); }
.pin--sel .pin__dot { display: none; }
.pin--sel.is-tour .pin__in { background: var(--gold); color: var(--navy); }
.pin--sel .pin__in { animation-name: pinSel; }
@keyframes pinSel { from { opacity: 0; transform: translate(-50%, -80%); } }
@keyframes pinIn { from { opacity: 0; transform: translate(-50%, -30%); } }

.beacon { z-index: 2; }
.beacon__dot {
  position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px #fff, 0 4px 14px rgba(7, 25, 58, .4);
}
.beacon__ring {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gold);
  animation: ring 2.4s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .9; } to { transform: scale(2.4); opacity: 0; } }
.beacon__tag {
  position: absolute; left: 20px; top: -19px; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 14px 0 12px;
  background: #fff; border-radius: 12px; box-shadow: var(--sh-1); white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.beacon__tag b { font-size: 18px; line-height: 1; color: var(--navy); }
.beacon.is-left .beacon__tag { left: auto; right: 20px; }
.beacon:hover .beacon__tag, .beacon.is-hover .beacon__tag { box-shadow: 0 0 0 2px var(--gold), var(--sh-1); }
.app[data-view="card"] .beacon { opacity: 0; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .beacon__ring { animation: none; opacity: .6; }
  .pin__in { animation: none; }
  .callout { transition: none; }
}
.is-shot .beacon__ring { animation: none; opacity: .7; transform: scale(1.5); }

/* štítky na fotce: dlouhý stisk nevybírá text ani neotevírá menu, tažení z nich otáčí dům (spin/input.js) */
.stage, .pins, .pin, .beacon, .callout { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pin, .beacon { touch-action: none; -webkit-tap-highlight-color: transparent; }
