
/* PANORAMA VIEWER */

.pano-view-section {
  border-top: 1px solid var(--line-strong);
  padding: 34px 0 0;
}

.pano-viewer-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.pano-viewer-header h2 {
  margin: 0 0 6px;
  color: var(--primary-dark);
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -0.015em;
}

.pano-counter,
.pano-help {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.pano-copy-link {
  flex: 0 0 auto;
}

.pano-viewer {
  width: 100%;
  height: min(72vh, 680px);
  min-height: 430px;
  background: #000;
}

.pano-help {
  margin-top: 12px;
}

.pano-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}

.pano-card {
  display: block;
  color: var(--primary);
  background: transparent;
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.pano-card:hover,
.pano-card.is-active {
  color: var(--light-accent);
  transform: translateY(-2px);
}

.pano-card.is-missing {
  opacity: 0.45;
}

.pano-thumb {
  display: block;
  overflow: hidden;
  background: var(--primary-soft);
}

.pano-thumb img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.pano-card:hover .pano-thumb img,
.pano-card.is-active .pano-thumb img {
  transform: scale(1.045);
  filter: contrast(1.05) saturate(1.05);
}

.pano-card-text {
  display: block;
  padding-top: 12px;
}

.pano-card-title {
  display: block;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.pano-card-id {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .pano-viewer {
    height: 64vh;
    min-height: 360px;
  }

  .pano-viewer-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .pano-viewer {
    height: 58vh;
    min-height: 300px;
  }

  .pano-gallery {
    grid-template-columns: 1fr;
  }
}
.pano-view-section {
  scroll-margin-top: 90px;
}
.pnlm-zoom-controls {
  display: none !important;
}
.pano-counter {
  display: flex;
  align-items: center;
  gap: 14px;
}

.pano-nav {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.pano-nav:hover {
  color: var(--light-accent);
  transform: translateY(-1px);
}

/* MOBILE PANORAMA CONTROLS */

.pano-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.pano-motion-btn {
  appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  cursor: pointer;
}

.pano-motion-btn.is-enabled,
.pano-motion-btn.is-unavailable {
  color: var(--muted);
}

.pano-motion-btn.is-unavailable {
  cursor: default;
}

.pnlm-fullscreen-toggle-button {
  display: block !important;
}

.pnlm-controls-container {
  z-index: 20;
}

@media (max-width: 820px) {
  .pano-actions {
    justify-content: flex-start;
  }

  .pano-motion-btn,
  .pano-copy-link,
  .pano-nav {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
  }

  .pano-viewer {
    height: 62vh;
    min-height: 340px;
    touch-action: none;
  }
}

@media (max-width: 560px) {
  .pano-viewer {
    height: 56vh;
    min-height: 320px;
  }

  .pano-viewer-header {
    margin-bottom: 14px;
  }
}
