/* Тур Digital Twins поверх старого SuperSplat Viewer (masterland/zip_phone, разметка #ui/#controlsWrap):
   точки с карточками, автоэкскурсия. Внешний вид — как у надстройки tour-viewer (src/tour/extras.ts),
   акцент — --dtwins-accent из dtwins-viewer.css (набор _dtwins-branding-kit). Слои — в <body>, не в #ui:
   у #ui правило «#ui * { pointer-events: auto }» сделало бы слой точек непрозрачным для мыши. */
.gx-actions { position: fixed; z-index: 20; top: max(16px, env(safe-area-inset-top)); right: max(16px, env(safe-area-inset-right));
  display: flex; gap: 8px; }
.gx-btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 0; border-radius: 6px;
  font: 500 13px/1 Inter, system-ui, sans-serif; letter-spacing: .02em; color: #fff; background: rgba(0,0,0,.38);
  cursor: pointer; text-decoration: none; white-space: nowrap; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .15s ease, color .15s ease; }
.gx-btn:hover { background: rgba(0,0,0,.6); }
.gx-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.gx-btn[aria-pressed='false'] { color: rgba(255,255,255,.55); }
.gx-btn.gx-accent { background: var(--dtwins-accent, #A9754C); color: #fff; font-weight: 600; }
.gx-btn.gx-accent:hover { background: #fff; color: #1E1F1A; }
@media (max-width: 640px) {
  .gx-actions .gx-label { display: none; }
  .gx-actions .gx-btn { padding: 0 9px; }
  .gx-actions .gx-accent .gx-label { display: inline; }
  .gx-actions { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 170px); }
  .gx-actions .gx-accent { order: 1; }
}

.gx-caption { position: fixed; z-index: 30; left: 50%; top: 9%; transform: translate(-50%, 8px); opacity: 0;
  pointer-events: none; text-align: center; color: #fff; transition: opacity .8s ease, transform .8s ease;
  text-shadow: 0 2px 18px rgba(0,0,0,.45); width: max-content; max-width: calc(100% - 32px); }
.gx-caption[data-show='true'] { opacity: 1; transform: translate(-50%, 0); }
.gx-caption small { display: block; margin-bottom: 10px; font: 600 11px/1 Inter, system-ui, sans-serif; letter-spacing: .32em;
  text-transform: uppercase; color: var(--dtwins-accent, #A9754C); }
.gx-caption div { font: 300 clamp(26px, 4.4vw, 44px)/1.1 Inter, system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.gx-caption i { display: block; width: 44px; height: 2px; margin: 14px auto 0; background: var(--dtwins-accent, #A9754C); }

.gx-hotspots { position: fixed; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.gx-hs { position: absolute; left: 0; top: 0; width: 30px; height: 30px; margin: -15px 0 0 -15px; padding: 0; border: 0;
  border-radius: 50%; background: transparent; cursor: pointer; pointer-events: auto; opacity: 0; transition: opacity .3s ease; }
.gx-hs[data-visible='true'] { opacity: 1; }
.gx-hs[data-visible='false'] { pointer-events: none; }
.gx-hs::before { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 3px var(--dtwins-accent, #A9754C), 0 2px 10px rgba(0,0,0,.35); }
.gx-hs::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255,255,255,.85); opacity: 0; }
.gx-hs[data-visible='true']::after { animation: gx-pulse 2.4s ease-out infinite; }
.gx-hs[data-active='true']::before { background: var(--dtwins-accent, #A9754C); box-shadow: 0 0 0 3px #fff, 0 2px 10px rgba(0,0,0,.35); }
@keyframes gx-pulse { 0% { transform: scale(.45); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.gx-hs span { position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); padding: 6px 10px; border-radius: 5px;
  font: 500 12px/1 Inter, system-ui, sans-serif; white-space: nowrap; color: #fff; background: rgba(0,0,0,.62);
  opacity: 0; transition: opacity .15s ease; pointer-events: none; }
.gx-hs:hover span { opacity: 1; }
@media (pointer: coarse) {
  .gx-btn, .gx-card { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .gx-btn { background: rgba(0,0,0,.55); }
}

.gx-card { position: fixed; z-index: 25; width: min(320px, calc(100% - 32px)); padding: 18px 18px 16px; border-radius: 10px;
  color: #fff; background: rgba(22,22,20,.86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 18px 50px rgba(0,0,0,.4); font: 14px/1.5 Inter, system-ui, sans-serif; display: none; }
.gx-card[data-show='true'] { display: block; animation: gx-in .2s ease; }
@keyframes gx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gx-card small { display: block; margin-bottom: 8px; font: 600 10px/1 Inter, system-ui, sans-serif; letter-spacing: .28em;
  text-transform: uppercase; color: var(--dtwins-accent, #A9754C); }
.gx-card h3 { margin: 0 28px 8px 0; font: 600 17px/1.25 Inter, system-ui, sans-serif; }
.gx-card p { margin: 0; color: rgba(255,255,255,.78); }
.gx-card dl { display: grid; grid-template-columns: auto 1fr; margin: 12px 0 0; font-size: 12.5px; }
.gx-card dt, .gx-card dd { margin: 0; padding: 6px 0; border-top: 1px solid rgba(255,255,255,.1); }
.gx-card dt { color: rgba(255,255,255,.5); padding-right: 14px; }
.gx-card dd { text-align: right; color: #fff; }
.gx-card .gx-close { position: absolute; top: 10px; right: 10px; width: 28px; height: 28px; padding: 5px; border: 0; border-radius: 6px;
  color: rgba(255,255,255,.7); background: transparent; cursor: pointer; }
.gx-card .gx-close:hover { color: #fff; background: rgba(255,255,255,.1); }
.gx-card .gx-bar { height: 2px; margin: 14px -18px -16px; border-radius: 0 0 10px 10px; overflow: hidden; display: none; }
.gx-guided .gx-card .gx-bar { display: block; }
.gx-card .gx-bar i { display: block; height: 100%; width: 0; background: var(--dtwins-accent, #A9754C); }
@media (max-width: 640px) {
  .gx-card { left: 16px !important; right: 16px; top: auto !important; bottom: 88px; width: auto; }
}

.gx-toast { position: fixed; z-index: 45; left: 50%; bottom: 150px; transform: translate(-50%, 8px); opacity: 0;
  padding: 10px 16px; border-radius: 6px; font: 500 13px/1 Inter, system-ui, sans-serif; color: #fff;
  background: var(--dtwins-accent, #A9754C); pointer-events: none; transition: opacity .25s ease, transform .25s ease; }
.gx-toast[data-show='true'] { opacity: 1; transform: translate(-50%, 0); }

/* экскурсия — чистый пролёт: точки и карточки скрыты */
.gx-guided .gx-hotspots, .gx-guided .gx-card { opacity: 0 !important; pointer-events: none !important; }
