:root {
  --ink: #10253a;
  --ink-soft: #516373;
  --blue: #0b5da7;
  --blue-deep: #073d78;
  --accent: #c9003d;
  --accent-deep: #a90032;
  --surface: rgba(255, 255, 255, 0.92);
  --surface-strong: #ffffff;
  --line: rgba(16, 37, 58, 0.15);
  --shadow: 0 18px 55px rgba(7, 27, 45, 0.2);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #061522;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body,
button {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(201, 0, 61, 0.95);
  outline-offset: 3px;
}

a {
  color: inherit;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

#pano {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #071c2a;
}

.tour-header {
  position: fixed;
  z-index: 50;
  top: var(--safe-top);
  left: var(--safe-left);
  right: var(--safe-right);
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(18px, 3vw, 48px);
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.84));
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 34px rgba(4, 22, 36, 0.15);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.brand-lockup {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 188px;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-copy {
  display: grid;
  gap: 2px;
  white-space: nowrap;
}

.brand-copy small {
  color: var(--blue-deep);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.tour-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  gap: clamp(2px, 0.8vw, 14px);
}

.nav-group {
  position: relative;
}

.nav-link,
.utility-button,
.menu-toggle,
.panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: transparent;
}

.nav-link {
  min-height: 44px;
  padding: 0 12px;
  color: #344b5d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.075em;
  white-space: nowrap;
  border-radius: 10px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-link::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: -3px 0 0 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.nav-link:hover,
.nav-group:focus-within .nav-link,
.nav-group.is-open .nav-link,
.nav-link.is-current {
  color: var(--blue-deep);
  background: rgba(11, 93, 167, 0.09);
}

.nav-link.is-current {
  color: var(--accent-deep);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.nav-link-direct::after {
  display: none;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  z-index: 55;
  display: grid;
  min-width: 230px;
  padding: 7px;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -5px);
  transform-origin: top center;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(16, 37, 58, 0.1);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu,
.nav-group.is-open .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.menu-entry {
  display: block;
  width: 100%;
  padding: 11px 13px;
  color: #31495b;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  transition: color 160ms ease, background-color 160ms ease;
}

.menu-entry:hover,
.menu-entry.is-current {
  color: var(--blue-deep);
  background: rgba(11, 93, 167, 0.1);
}

.tour-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 5px;
}

.language-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 3px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(16, 37, 58, 0.12);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.language-button {
  min-width: 34px;
  min-height: 36px;
  padding: 0 7px;
  color: var(--ink-soft);
  background: transparent;
  border-radius: 9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.language-button:hover,
.language-button:focus-visible {
  color: var(--blue-deep);
  background: rgba(11, 93, 167, 0.1);
}

.language-button.is-active {
  color: #fff;
  background: var(--blue-deep);
  box-shadow: 0 4px 10px rgba(7, 61, 120, 0.22);
}

.language-divider {
  color: rgba(16, 37, 58, 0.24);
  font-size: 12px;
  line-height: 1;
  pointer-events: none;
}

.utility-button,
.menu-toggle,
.panel-close {
  min-width: 44px;
  min-height: 44px;
  border-radius: 12px;
}

.utility-button:hover,
.menu-toggle:hover,
.panel-close:hover {
  color: var(--blue-deep);
  background: rgba(11, 93, 167, 0.1);
}

.utility-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sound-icon {
  display: none;
}

.sound-toggle:not(.is-playing) .icon-sound-off,
.sound-toggle.is-playing .icon-sound-on {
  display: block;
}

#backgroundMusic {
  display: none;
}

.icon-play,
.icon-windowed {
  display: none;
}

.utility-button .icon-pause,
.utility-button .icon-fullscreen {
  display: block;
}

.utility-button .icon-play,
.utility-button .icon-windowed {
  display: none;
}

.utility-button:not(.enabled) .icon-pause,
.utility-button.enabled .icon-play,
.utility-button.enabled .icon-fullscreen,
.utility-button:not(.enabled) .icon-windowed {
  display: none;
}

.utility-button:not(.enabled) .icon-play,
.utility-button.enabled .icon-pause,
.utility-button:not(.enabled) .icon-fullscreen,
.utility-button.enabled .icon-windowed {
  display: block;
}

.menu-toggle {
  display: none;
  gap: 9px;
  padding: 0 12px;
  color: var(--blue-deep);
  background: rgba(11, 93, 167, 0.08);
}

.menu-toggle-lines {
  display: grid;
  gap: 4px;
  width: 17px;
}

.menu-toggle-lines span {
  display: block;
  height: 1.5px;
  background: currentColor;
  border-radius: 99px;
}

.menu-toggle-label {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.menu-backdrop {
  position: fixed;
  z-index: 59;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  background: rgba(3, 19, 31, 0.3);
  transition: opacity 180ms ease, visibility 180ms ease;
}

.menu-panel {
  position: fixed;
  z-index: 60;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(380px, 88vw);
  padding: calc(18px + var(--safe-top)) 20px var(--safe-bottom);
  visibility: hidden;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: -18px 0 55px rgba(4, 22, 36, 0.2);
  transform: translateX(100%);
  transition: transform 220ms ease, visibility 220ms ease;
}

.menu-open .menu-backdrop {
  visibility: visible;
  opacity: 1;
}

.menu-open .menu-panel {
  visibility: visible;
  transform: translateX(0);
}

.menu-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.scene-category,
.info-dialog-kicker,
.mobile-menu-group h3 {
  margin: 0;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.menu-panel-header h2 {
  margin: 7px 0 0;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
}

.panel-close {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 29px;
  font-weight: 300;
  line-height: 1;
}

.menu-panel-scroll {
  height: calc(100% - 95px);
  padding: 20px 0 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.mobile-menu-group + .mobile-menu-group {
  margin-top: 24px;
}

.mobile-menu-group h3 {
  margin-bottom: 8px;
}

.mobile-menu-list {
  display: grid;
  gap: 3px;
}

.mobile-menu-list .menu-entry {
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid transparent;
}

.mobile-menu-list .menu-entry.is-current {
  border-color: rgba(11, 93, 167, 0.2);
}

.scene-context {
  position: fixed;
  z-index: 20;
  left: calc(22px + var(--safe-left));
  bottom: calc(22px + var(--safe-bottom));
  max-width: min(420px, 62vw);
  padding: 12px 16px 13px;
  color: #fff;
  background: linear-gradient(120deg, rgba(7, 28, 43, 0.83), rgba(7, 28, 43, 0.53));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 13px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.16);
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scene-context .scene-category {
  color: #ff8eaa;
  font-size: 9px;
}

.scene-context .sceneName {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 650;
  line-height: 1.25;
}

/* Marzipano positions each root hotspot with its top-left corner. The
 * negative margins center each fixed hit target without transforming it. */
.hotspot {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.link-hotspot,
.info-hotspot {
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
}

.link-hotspot > *,
.info-hotspot > * {
  pointer-events: auto;
}

.link-hotspot {
  opacity: 0.93;
}

.link-hotspot-icon {
  position: absolute;
  inset: 0;
  width: 68px;
  height: 68px;
  overflow: visible;
  cursor: pointer;
  filter: drop-shadow(0 5px 12px rgba(3, 19, 31, 0.34));
  transition: transform 180ms ease, filter 180ms ease;
}

.link-hotspot-icon::before {
  content: "";
}

.link-hotspot-core {
  fill: rgba(7, 33, 52, 0.84);
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 1.3;
}

.link-hotspot-arrow {
  fill: none;
  stroke: #fff;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-hotspot::before {
  position: absolute;
  inset: 9px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  animation: navigation-ring 2.9s ease-out infinite;
}

.link-hotspot:hover .link-hotspot-icon,
.link-hotspot:focus-visible .link-hotspot-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 16px rgba(201, 0, 61, 0.46));
}

.hotspot-tooltip {
  position: absolute;
  z-index: 2;
  max-width: 240px;
  padding: 8px 10px;
  color: #fff;
  background: rgba(7, 28, 43, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  line-height: 1.25;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 160ms ease, visibility 160ms ease;
}

.info-hotspot-tooltip {
  top: 11px;
  left: 75px;
  max-width: 270px;
}

.info-hotspot:hover .hotspot-tooltip,
.info-hotspot:focus-within .hotspot-tooltip {
  visibility: visible;
  opacity: 1;
}

.info-hotspot-button {
  position: absolute;
  inset: 7px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  color: #fff;
  background: rgba(11, 93, 167, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(3, 29, 47, 0.42), 0 0 0 4px rgba(11, 93, 167, 0.24);
  cursor: pointer;
  transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.info-hotspot-button::before,
.info-hotspot-button::after {
  position: absolute;
  inset: -7px;
  content: "";
  border: 2px solid rgba(201, 0, 61, 0.88);
  border-radius: 50%;
  pointer-events: none;
  animation: info-ring 2.25s ease-out infinite;
}

.info-hotspot-button::after {
  animation-delay: 1.12s;
}

.info-hotspot-glyph {
  position: relative;
  z-index: 1;
  display: block;
  font-family: Georgia, serif;
  font-size: 30px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  transform: translateY(-1px);
}

.info-hotspot-button:hover,
.info-hotspot-button:focus-visible {
  background: var(--blue-deep);
  box-shadow: 0 7px 22px rgba(3, 29, 47, 0.5), 0 0 0 6px rgba(201, 0, 61, 0.32);
  transform: scale(1.08);
}

.info-hotspot-button:hover::before,
.info-hotspot-button:hover::after,
.info-hotspot-button:focus-visible::before,
.info-hotspot-button:focus-visible::after {
  border-color: rgba(255, 133, 164, 0.98);
}

.info-hotspot.is-open .info-hotspot-button::before,
.info-hotspot.is-open .info-hotspot-button::after {
  animation-play-state: paused;
  opacity: 0.25;
}

.info-hotspot.is-open .info-hotspot-button {
  box-shadow: 0 7px 22px rgba(3, 29, 47, 0.5), 0 0 0 5px rgba(11, 93, 167, 0.32);
}

@keyframes navigation-ring {
  0% { opacity: 0.45; transform: scale(0.72); }
  75%, 100% { opacity: 0; transform: scale(1.25); }
}

@keyframes info-ring {
  0% { opacity: 0.85; transform: scale(0.86); }
  72%, 100% { opacity: 0; transform: scale(1.7); }
}

.info-dialog {
  position: fixed;
  z-index: 90;
  inset: 0;
  display: grid;
  place-items: center;
  padding: calc(24px + var(--safe-top)) calc(24px + var(--safe-right)) calc(24px + var(--safe-bottom)) calc(24px + var(--safe-left));
}

.info-dialog-scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 19, 31, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.info-dialog-card {
  position: relative;
  width: min(800px, 100%);
  max-height: min(680px, 100%);
  overflow: auto;
  padding: clamp(20px, 3vw, 32px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 19px;
  box-shadow: 0 25px 85px rgba(1, 16, 28, 0.42);
}

.info-dialog-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}

.info-dialog-topline .panel-close {
  margin: -10px -10px 0 0;
}

.info-dialog-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 4vw, 38px);
  align-items: start;
}

.info-dialog:not(.has-image) .info-dialog-copy {
  grid-column: 1 / -1;
}

.info-dialog-image {
  width: 100%;
  max-height: 310px;
  object-fit: contain;
  border-radius: 12px;
  background: #eef3f5;
}

.info-dialog-copy h2 {
  margin: 0 0 13px;
  color: var(--blue-deep);
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.12;
}

.info-dialog-content {
  color: #405667;
  font-size: 15px;
  line-height: 1.65;
}

.info-dialog-content p {
  margin: 0;
}

.info-dialog-specs {
  display: grid;
  gap: 6px;
  margin: 18px 0 0;
  padding: 0 0 0 19px;
  color: #294a60;
  font-size: 13px;
  line-height: 1.45;
}

.info-dialog-note {
  margin: 18px 0 0;
  padding: 11px 13px;
  color: #6b4a16;
  background: #fff6e4;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1180px) {
  .tour-header { gap: 12px; }
  .brand-lockup { min-width: 178px; }
  .nav-link { padding-inline: 8px; font-size: 10px; }
  .brand-copy small { letter-spacing: 0.09em; }
}

@media (max-width: 900px) {
  .tour-header {
    min-height: 68px;
    padding: 10px 14px;
  }
  .brand-logo { width: 50px; height: 50px; }
  .brand-copy small { font-size: 7px; }
  .tour-nav { display: none; }
  .tour-actions { margin-left: auto; }
  .menu-toggle { display: inline-flex; }
  .scene-context { max-width: calc(100vw - 44px); }
}

@media (max-width: 560px) {
  .brand-copy { display: none; }
  .brand-lockup { min-width: 0; }
  .utility-button { min-width: 44px; }
  .language-toggle { min-height: 44px; }
  .language-button { min-width: 31px; min-height: 36px; padding-inline: 5px; }
  .menu-toggle-label { display: none; }
  .menu-toggle { padding: 0; width: 44px; }
  .scene-context {
    left: calc(12px + var(--safe-left));
    bottom: calc(12px + var(--safe-bottom));
    right: calc(12px + var(--safe-right));
    max-width: none;
    padding: 10px 12px;
  }
  .link-hotspot,
  .info-hotspot { width: 74px; height: 74px; margin: -37px 0 0 -37px; }
  .link-hotspot-icon { width: 74px; height: 74px; }
  .info-hotspot-button { width: 58px; height: 58px; }
  .info-dialog { padding: calc(12px + var(--safe-top)) calc(12px + var(--safe-right)) calc(12px + var(--safe-bottom)) calc(12px + var(--safe-left)); }
  .info-dialog-card { padding: 20px 17px; border-radius: 15px; }
  .info-dialog-layout { display: block; }
  .info-dialog-image { max-height: 170px; margin-bottom: 18px; }
  .info-dialog-content { font-size: 14px; }
  .hotspot-tooltip { max-width: 190px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
