html, body {
  height: 100%;
  margin: 0;
  background-color: #86C400;
}

body {
  font-family: 'Questrial', sans-serif;
  color: #ffffff;
}

/* OPTIONAL: FORCE LANDSCAPE START */
.force-landscape {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: none;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(24px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(24px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
  background-color: #86C400;
  color: #ffffff;
  text-align: center;
}

@media screen and (orientation: portrait) and (max-width: 1024px) {
  .force-landscape {
    display: flex;
  }
}

.force-landscape__content {
  max-width: 22rem;
}

.force-landscape__icon-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.force-landscape__phone {
  color: #ffffff;
  animation: force-landscape-rotate 2.4s ease-in-out infinite;
}

.force-landscape__title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 400;
}

.force-landscape__desc {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.95;
}

@keyframes force-landscape-rotate {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(-90deg);
  }
  50% {
    transform: rotate(-90deg);
  }
  75% {
    transform: rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .force-landscape__phone {
    animation: none;
    transform: rotate(-90deg);
  }
}
/* OPTIONAL: FORCE LANDSCAPE END */

#panorama {
  width: 100%;
  height: 100%;
  background-color: #86C400;
}

#back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  width: 46px;
  height: 46px;
  padding: 0;
  z-index: 1201;
  background-color: #86C400;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 999px;
  box-sizing: border-box;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#back-button svg {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#back-button:hover,
#back-button:focus-visible {
  background-color: color-mix(in srgb, #86C400 75%, #ffffff 25%);
}

#back-button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.pnlm-panorama-info {
  background-color: #86C400;
  color: #ffffff;
  bottom: 20px;
  left: 20px;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border: 2px solid #ffffff;
  border-radius: 16px;
}

.pnlm-title-box {
  padding: 0;
  margin: 0;
  font-family: 'Questrial', sans-serif;
}


/* Styled info hotspot flags */
.pnlm-hotspot-base.custom-hotspot.hotspot-info {
  position: absolute;
  transform: translate(-50%, -50%);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 80px;
  background-color: #ffffff;
  transform: translateX(-1px);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #86C400;
  border: 2px solid #ffffff;
  transform: translateX(-50%);
  box-sizing: border-box;
}

.pnlm-hotspot-base.custom-hotspot.hotspot-info.pnlm-tooltip > span {
  visibility: visible !important;
  position: absolute !important;
  bottom: 80px !important;
  left: -1px !important;
  padding: 4px 12px;
  background-color: #86C400;
  border: 2px solid #ffffff;
  color: #ffffff;
  white-space: nowrap;
  border-top-right-radius: 999px;
  border-bottom-right-radius: 999px;
}

/* Pulsing scene hotspot */
.pnlm-hotspot-base.custom-hotspot.hotspot-scene {
  position: absolute;
  width: 32px;
  height: 32px;
  transform: translate(-50%, -50%);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background-color: #86C400;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.pnlm-hotspot-base.custom-hotspot.hotspot-scene::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
  animation: hotspot-scene-pulse 1.6s ease-out infinite;
}

@keyframes hotspot-scene-pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.7;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
}

/* Scene tooltip: transparent background and no pointer arrow.*/
.pnlm-hotspot-base.custom-hotspot.hotspot-scene.pnlm-tooltip > span {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  bottom: 20px !important;
  font-size: 1.5rem;
  font-family: 'Questrial', sans-serif;
  font-weight: 400;
  white-space: nowrap;
  z-index: 1100;
  pointer-events: none;
  text-shadow:
    0 0 1px rgba(0, 0, 0, 0.95),
    0 0 3px rgba(0, 0, 0, 0.85),
    0 0 10px rgba(0, 0, 0, 0.55),
    0 1px 2px rgba(0, 0, 0, 0.55);
}
.pnlm-hotspot-base.custom-hotspot.hotspot-scene.pnlm-tooltip > span::after {
  display: none !important;
  content: none !important;
}

/* OPTIONAL: SCENE NAV START */
.scene-nav-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1201;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background-color: #86C400;
  color: #ffffff;
  font: inherit;
  box-sizing: border-box;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.scene-nav-toggle svg {
  display: block;
}

.scene-nav-toggle:hover,
.scene-nav-toggle:focus-visible,
.scene-nav-toggle.is-open {
  background-color: color-mix(in srgb, #86C400 75%, #ffffff 25%);
}

.scene-nav-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.scene-nav {
  position: fixed;
  top: 76px;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  width: 280px;
  max-width: calc(100vw - 40px);
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  background: color-mix(in srgb, #86C400 50%, transparent);
  box-sizing: border-box;
  color: #ffffff;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(calc(100% + 24px));
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.scene-nav.is-open {
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
}

.scene-nav__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  padding: 12px;
  overflow-y: auto;
  box-sizing: border-box;
  list-style: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scene-nav__list::-webkit-scrollbar {
  display: none;
}

.scene-nav__arrow {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0;
  border: none;
  background: linear-gradient(to bottom, color-mix(in srgb, #86C400 95%, transparent) 0%, color-mix(in srgb, #86C400 80%, transparent) 60%, transparent 100%);
  color: #ffffff;
  cursor: pointer;
  pointer-events: none;
}

.scene-nav__arrow.is-visible {
  display: flex;
  pointer-events: auto;
}

.scene-nav__arrow--up {
  top: 0;
}

.scene-nav__arrow--down {
  bottom: 0;
  background: linear-gradient(to top, color-mix(in srgb, #86C400 95%, transparent) 0%, color-mix(in srgb, #86C400 80%, transparent) 60%, transparent 100%);
}

.scene-nav__arrow:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -2px;
}

.scene-nav__arrow svg {
  display: block;
}

.scene-nav__item {
  margin: 0;
}

.scene-nav__button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.scene-nav__button:hover,
.scene-nav__button:focus-visible,
.scene-nav__button.is-active {
  border-color: #ffffff;
}

.scene-nav__button:not(.scene-nav__button--thumb):hover,
.scene-nav__button:not(.scene-nav__button--thumb):focus-visible,
.scene-nav__button:not(.scene-nav__button--thumb).is-active {
  background: rgba(255, 255, 255, 0.24);
}

.scene-nav__button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.scene-nav__button--thumb {
  position: relative;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0;
  min-height: 88px;
  padding: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.28);
}

.scene-nav__button--thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: background 0.2s ease;
}

.scene-nav__button--thumb:hover::after,
.scene-nav__button--thumb:focus-visible::after,
.scene-nav__button--thumb.is-active::after {
  background: rgba(255, 255, 255, 0.1);
}

.scene-nav__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
}

.scene-nav__button--thumb .scene-nav__thumb {
  position: absolute;
  inset: 0;
  flex: none;
  width: 100%;
  height: 100%;
  border-radius: 0;
  z-index: 0;
  pointer-events: none;
}

.scene-nav__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-nav__button--thumb .scene-nav__label {
  position: relative;
  z-index: 2;
  padding: 9px 10px;
  background: color-mix(in srgb, #86C400 88%, transparent);
  text-transform: uppercase;
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}

@media (max-width: 700px) {
  .scene-nav {
    top: 76px;
    right: 12px;
    bottom: 12px;
    width: 320px;
    max-width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scene-nav,
  .scene-nav__button {
    transition: none;
  }
}
/* OPTIONAL: SCENE NAV END */

/* OPTIONAL: VIDEO OVERLAY START */
.video-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
}

.video-overlay.is-open {
  display: flex;
}

.video-overlay__inner {
  position: relative;
  width: 90vw;
  max-width: 960px;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-overlay__inner iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-overlay__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
}
/* OPTIONAL: VIDEO OVERLAY END */

/* OPTIONAL: SCENE CONTENT PANEL START */
.scene-content-panel {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1200;
  box-sizing: border-box;
  width: min(340px, calc(100vw - 40px));
  max-width: calc(100vw - 40px);
  background-color: #86C400;
  color: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 16px;
  font-family: 'Questrial', sans-serif;
  overflow: hidden;
}

.scene-content-panel__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.25rem 0.25rem 0.25rem 0.75rem;
}

.scene-content-panel__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.3;
}

.scene-content-panel__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background-color: #86C400;
  color: #ffffff;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.scene-content-panel__toggle:hover,
.scene-content-panel__toggle:focus-visible {
  background-color: color-mix(in srgb, #86C400 75%, #ffffff 25%);
}

.scene-content-panel__toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.scene-content-panel__toggle-icon {
  display: block;
}

.scene-content-panel__toggle-icon--expand {
  display: none;
}

.scene-content-panel.is-collapsed .scene-content-panel__toggle-icon--collapse {
  display: none;
}

.scene-content-panel.is-collapsed .scene-content-panel__toggle-icon--expand {
  display: block;
}

.scene-content-panel.is-title-only {
  width: fit-content;
  max-width: calc(100vw - 40px);
}

.scene-content-panel.is-title-only .scene-content-panel__toggle {
  display: none;
}

.scene-content-panel.is-title-only .scene-content-panel__header {
  padding-right: 0.75rem;
}

.scene-content-panel.is-title-only .scene-content-panel__title {
  flex: 0 1 auto;
}

.scene-content-panel__body {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 0.75rem;
  transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease;
}

.scene-content-panel.is-expanded {
  max-height: 60vh;
}

.scene-content-panel.is-expanded .scene-content-panel__body {
  max-height: calc(60vh - 48px);
  opacity: 1;
  overflow-y: auto;
  padding: 0 0.75rem 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.9) rgba(255, 255, 255, 0.2);
}

.scene-content-panel.is-expanded .scene-content-panel__body::-webkit-scrollbar {
  width: 8px;
}

.scene-content-panel.is-expanded .scene-content-panel__body::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.scene-content-panel.is-expanded .scene-content-panel__body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.75);
  border-radius: 4px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.scene-content-panel.is-expanded .scene-content-panel__body::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
  background-clip: padding-box;
}

.scene-content-panel__images {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.scene-content-panel__images[hidden] {
  display: none;
}

.scene-content-panel__images--layout-side-by-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.scene-content-panel__image {
  display: block;
  width: 100%;
  max-height: min(240px, 32vh);
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: rgba(0, 0, 0, 0.12);
}

.scene-content-panel__images--count-1 .scene-content-panel__image--portrait {
  width: auto;
  max-width: 100%;
  max-height: min(320px, 40vh);
  margin-left: auto;
  margin-right: auto;
}

.scene-content-panel__images--layout-stacked .scene-content-panel__image {
  max-height: min(200px, 28vh);
}

.scene-content-panel__images--layout-stacked .scene-content-panel__image--portrait {
  max-height: min(260px, 36vh);
}

.scene-content-panel__images--layout-side-by-side .scene-content-panel__image {
  max-height: min(160px, 24vh);
}

.scene-content-panel__text {
  margin: 0;
  line-height: 1.5;
  font-size: 0.95rem;
}

/* Match scene-nav height (top: 76px, bottom: 20px) on phone/tablet landscape */
@media screen and (orientation: landscape) and (max-width: 1024px) {
  :root {
    --tour-chrome-top: 76px;
    --tour-chrome-bottom: 20px;
    --tour-sidebar-height: calc(100vh - var(--tour-chrome-top) - var(--tour-chrome-bottom));
    --tour-side-panel-max-width: min(340px, calc(50vw - 36px));
  }

  .scene-nav.is-open {
    max-width: min(320px, var(--tour-side-panel-max-width));
  }

  .scene-content-panel {
    bottom: var(--tour-chrome-bottom);
    width: var(--tour-side-panel-max-width);
    max-width: var(--tour-side-panel-max-width);
  }

  .scene-content-panel.is-title-only {
    width: fit-content;
    max-width: var(--tour-side-panel-max-width);
  }

  .scene-content-panel.is-expanded {
    top: var(--tour-chrome-top);
    bottom: var(--tour-chrome-bottom);
    display: flex;
    flex-direction: column;
    max-height: none;
  }

  .scene-content-panel.is-expanded .scene-content-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    max-height: none;
  }

  .scene-content-panel__image {
    max-height: min(240px, calc(var(--tour-sidebar-height) - 7rem));
  }

  .scene-content-panel__images--count-1 .scene-content-panel__image--portrait {
    max-height: min(320px, calc(var(--tour-sidebar-height) - 5rem));
  }

  .scene-content-panel__images--layout-stacked .scene-content-panel__image {
    max-height: min(200px, calc((var(--tour-sidebar-height) - 6rem) / 2));
  }

  .scene-content-panel__images--layout-stacked .scene-content-panel__image--portrait {
    max-height: min(260px, calc((var(--tour-sidebar-height) - 5rem) / 2));
  }

  .scene-content-panel__images--layout-side-by-side .scene-content-panel__image {
    max-height: min(160px, calc(var(--tour-sidebar-height) - 7rem));
  }
}

@media screen and (orientation: landscape) and (max-width: 700px) {
  :root {
    --tour-chrome-bottom: 12px;
  }
}
/* OPTIONAL: SCENE CONTENT PANEL END */
