:root {
  --gold: #b4894f;
  --ink: #171714;
  --paper: #fbfaf7;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body,
.tour-shell,
#panorama {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.is-tour-fullscreen,
html.is-tour-fullscreen body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.tour-shell {
  position: relative;
}

.tour-shell.is-app-fullscreen {
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  background: var(--ink);
}

.tour-topbar {
  position: absolute;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.tour-topbar > * {
  pointer-events: auto;
}

.tour-brand {
  min-width: 0;
}

.tour-logo {
  display: block;
  width: clamp(126px, 18vw, 168px);
  height: auto;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(20, 20, 18, 0.58);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(12px);
}

.tour-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tour-actions select,
.tour-actions button {
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  background: rgba(20, 20, 18, 0.72);
  backdrop-filter: blur(12px);
  font: inherit;
}

.tour-actions select {
  max-width: 220px;
}

.tour-actions button {
  cursor: pointer;
}

.tour-actions .icon-button {
  display: inline-grid;
  width: 38px;
  padding: 0;
  place-items: center;
}

.tour-actions .icon-button svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tour-actions .icon-button.is-active {
  border-color: rgba(180, 137, 79, 0.86);
  color: var(--gold);
}

/* Navigation points */

.psv-virtual-tour-arrows {
  filter: none;
}

.alma-tour-link {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.alma-tour-link-dot {
  position: relative;
  width: 34px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: rgba(180, 137, 79, 0.86);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.38);
  transition: transform 160ms ease, background-color 160ms ease;
}

.alma-tour-link-dot::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: inherit;
  background: #fff;
}

.alma-tour-link:hover .alma-tour-link-dot {
  transform: scale(1.12);
  background: rgba(180, 137, 79, 1);
}

.psv-tooltip {
  background: rgba(20, 20, 18, 0.86);
  backdrop-filter: blur(12px);
  font-family: inherit;
}

/* Loader: Alma Class mark spinning instead of the default progress ring */

.psv-loader {
  position: relative;
  width: 72px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(20, 20, 18, 0.74);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.psv-loader::before {
  content: "";
  position: absolute;
  inset: 14px;
  background: url("favicon.png") center / contain no-repeat;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.38));
  animation: alma-loader-spin 0.55s linear infinite;
}

.psv-loader-canvas,
.psv-loader-text {
  display: none !important;
}

@keyframes alma-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .tour-topbar {
    align-items: flex-start;
    padding: 12px;
  }

  .tour-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tour-actions select {
    max-width: 46vw;
  }

  .tour-actions button {
    width: 38px;
    overflow: hidden;
    padding: 0;
  }
}

@media (min-width: 721px) {
  #gyroButton {
    display: none !important;
  }
}
