.panorama-viewer {
  position: relative;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border-radius: 6px;
  background: #202020;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  touch-action: none;
}

.panorama-viewer:focus {
  outline: 3px solid #0b7285;
  outline-offset: 3px;
}

.panorama-viewer canvas,
.panorama-fallback,
.panorama-viewer noscript img {
  display: block;
  width: 100%;
  height: 100%;
}

.panorama-viewer canvas {
  cursor: grab;
}

.panorama-viewer.is-dragging canvas {
  cursor: grabbing;
}

.panorama-fallback,
.panorama-viewer noscript img {
  object-fit: cover;
}

.panorama-controls {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.panorama-control {
  min-width: 40px;
  min-height: 40px;
  padding: 5px 10px;
  border: 1px solid rgba(0, 0, 0, 0.35);
  border-radius: 4px;
  color: #111;
  background: rgba(255, 255, 255, 0.92);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.panorama-control:hover,
.panorama-control:focus {
  background: #fff;
  outline: 3px solid #0b7285;
  outline-offset: 1px;
}

.panorama-fullscreen {
  font-size: 14px;
}

.panorama-status {
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 2;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 6px 10px;
  border-radius: 4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  font-size: 14px;
  text-align: center;
  transform: translateX(-50%);
}

.panorama-status[hidden] {
  display: none;
}

.panorama-viewer:fullscreen {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

@media (max-width: 575px) {
  .panorama-viewer {
    aspect-ratio: 3 / 2;
  }

  .panorama-controls {
    top: 6px;
    left: 6px;
  }

  .panorama-control {
    min-width: 38px;
    min-height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .panorama-viewer canvas {
    scroll-behavior: auto;
  }
}
