/* ═══════════════════════════════════════════
   ДРУГОЕ БЮРО — panorama.css
   360°-плеер: контейнер, стрелки, счётчик,
   хинт, лоадер, zoom-индикатор
   Подключать только на страницах с панорамами
═══════════════════════════════════════════ */

/* ── Контейнер ── */
.panorama-viewer {
  position: relative;
  width: min(85vw, 85vh);
  aspect-ratio: 1/1;
  margin: 0 auto;
  background: var(--black);
  overflow: hidden;
  cursor: grab;
}
.panorama-viewer:active {
  cursor: grabbing;
}
.panorama-viewer canvas {
  display: block;
}

/* ── Стрелки ── */
.pano-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition:
    background 0.25s,
    color 0.25s,
    opacity 0.3s;
  opacity: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.panorama-viewer:hover .pano-arrow,
.panorama-viewer:active .pano-arrow {
  opacity: 1;
}
.pano-arrow:hover {
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
}
.pano-arrow--left {
  left: 12px;
}
.pano-arrow--right {
  right: 12px;
}

/* ── Счётчик ── */
.pano-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px 12px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

/* ── Хинт «Вращайте» ── */
.pano-hint {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
  transition: opacity 0.6s;
  pointer-events: none;
}
.pano-hint.hidden {
  opacity: 0;
}

/* ── Лоадер ── */
.pano-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -16px 0 0 -16px;
  width: 32px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 2;
  pointer-events: none;
}
.pano-loader.visible {
  opacity: 1;
}

/* ── Zoom-индикатор ── */
.pano-zoom-hint {
  position: absolute;
  bottom: 60px;
  right: 24px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
  letter-spacing: 0.06em;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.8s;
  font-variant-numeric: tabular-nums;
}

/* ── Спиннер ── */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── Мобильные ── */
@media (max-width: 768px) {
  .panorama-viewer {
    width: 100%;
    aspect-ratio: 2/3;
  }
  .pano-arrow {
    width: 48px;
    height: 48px;
    opacity: 0.85;
  }
  .pano-arrow--left {
    left: 8px;
  }
  .pano-arrow--right {
    right: 8px;
  }
  .pano-counter {
    bottom: 16px;
    font-size: 11px;
    padding: 3px 10px;
  }
  .pano-hint {
    bottom: 48px;
    font-size: 11px;
  }
  .pano-zoom-hint {
    bottom: 48px;
    right: 16px;
    font-size: 12px;
  }
}
