.site-360-experience {
  width: min(1480px, calc(100vw - 2rem));
  margin: 0 50% clamp(1.5rem, 4vw, 2.8rem);
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid #28424d;
  border-radius: 8px;
  background: #071720;
  color: var(--white);
  box-shadow: var(--shadow);
}

.site-360-toolbar,
.site-360-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: #102d37;
}

.site-360-title-block {
  min-width: 0;
}

.site-360-title-block span,
.site-360-title-block strong {
  display: block;
}

.site-360-title-block span {
  color: #b9d5d4;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-360-title-block strong {
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.site-360-step-controls,
.site-360-actions,
.site-360-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.site-360-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #77979a;
  border-radius: 4px;
  background: transparent;
  color: var(--white);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.site-360-button:hover,
.site-360-button:focus-visible {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--navy);
}

.site-360-button.primary {
  border-color: var(--teal);
  background: var(--teal);
}

.site-360-button.primary:hover,
.site-360-button.primary:focus-visible {
  border-color: var(--sand);
  background: var(--sand);
  color: var(--navy);
}

.site-360-button:disabled {
  border-color: #546d72;
  color: #80979b;
  cursor: not-allowed;
}

.site-360-button:disabled:hover {
  background: transparent;
  color: #80979b;
}

.site-360-stage {
  position: relative;
  width: 100%;
  height: clamp(30rem, 70vh, 54rem);
  overflow: hidden;
  background: #061116;
}

.site-360-stage .pnlm-container,
.site-360-stage .pnlm-render-container,
.site-360-stage canvas {
  width: 100%;
  height: 100%;
}

.site-360-stage .pnlm-container {
  background-color: #061116;
}

.site-360-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  background: #071720;
  color: #dceceb;
  font-weight: 800;
  pointer-events: none;
}

.site-360-loading.is-hidden {
  display: none;
}

.site-360-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-360-footer {
  align-items: flex-start;
}

.site-360-meta {
  color: #c9dcdd;
  font-size: 0.86rem;
}

.site-360-meta a {
  color: #b7dedc;
}

.site-360-status {
  margin: 0;
  padding: 0.65rem 1rem;
  border-top: 1px solid #28424d;
  background: #0a2029;
  color: #c6d9da;
  font-size: 0.86rem;
}

.site-360-index {
  display: grid;
  grid-template-columns: minmax(18rem, 0.72fr) minmax(0, 1.28fr);
  gap: 1rem;
  align-items: start;
}

.site-360-trail-panel {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-left: 4px solid var(--teal);
  background: var(--white);
}

.site-360-trail-panel h2,
.site-360-trail-panel p {
  margin-top: 0;
}

.site-360-trail-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.site-360-trail {
  position: relative;
  width: 100%;
  aspect-ratio: 693 / 694;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #08151f url("../img/windemere-skatepark-google-map.png") center / cover no-repeat;
}

.site-360-trail button {
  position: absolute;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  transform: translate(-50%, -50%);
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 4px 10px rgba(16, 36, 51, 0.24);
  cursor: pointer;
}

.site-360-trail button:hover,
.site-360-trail button:focus-visible,
.site-360-trail button[aria-pressed="true"] {
  background: var(--sand);
  color: var(--navy);
}

.site-360-thumbnails {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  align-content: start;
}

.site-360-thumb {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 6px;
  background: var(--white);
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.site-360-thumb:hover,
.site-360-thumb:focus-visible,
.site-360-thumb[aria-pressed="true"] {
  border-color: var(--teal);
}

.site-360-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--concrete-2);
}

.site-360-thumb span {
  position: absolute;
  right: 0.3rem;
  bottom: 0.3rem;
  left: 0.3rem;
  display: block;
  padding: 0.28rem 0.34rem;
  border-radius: 4px;
  background: rgba(16, 36, 51, 0.88);
  color: var(--white);
  overflow-wrap: normal;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
}

.site-360-flat-details {
  margin-top: 1rem;
  border-top: 1px solid var(--border);
  padding-top: 0.85rem;
}

.site-360-flat-details summary {
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.site-360-flat-strip {
  margin-top: 0.8rem;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #071720;
}

.site-360-flat-strip img {
  display: block;
  width: auto;
  max-width: none;
  height: min(22rem, 50vw);
}

@media (max-width: 900px) {
  .site-360-index {
    grid-template-columns: 1fr;
  }

  .site-360-thumbnails {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .site-360-experience {
    width: calc(100% + 2rem);
    margin-left: -1rem;
    margin-right: -1rem;
    transform: none;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
  }

  .site-360-toolbar,
  .site-360-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .site-360-step-controls,
  .site-360-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-360-actions .site-360-button:last-child {
    grid-column: 1 / -1;
  }

  .site-360-stage {
    height: 62svh;
    min-height: 23rem;
    max-height: 40rem;
  }

  .site-360-thumbnails {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media print {
  .site-360-experience,
  .site-360-trail,
  .site-360-actions,
  .site-360-step-controls {
    display: none !important;
  }
}
