:root {
  color-scheme: light;
  font-family: Arial, Helvetica, sans-serif;
  background: #eceae5;
  color: #1e1e1c;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  padding: 24px;
}

.tour-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d6d3cb;
  border-radius: 6px;
  box-shadow: 0 8px 30px rgb(0 0 0 / 10%);
}

.tour-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px 20px;
}

#panorama {
  position: relative;
  width: 100%;
  height: min(58vh, 650px);
  min-height: 410px;
  background: #161616;
}

.tour-footer {
  border-top: 1px solid #e2dfd8;
  color: #615d55;
  font-size: 0.86rem;
}

#scene-title {
  text-align: center;
  white-space: nowrap;
}

.tour-footer span:last-child {
  text-align: right;
}

.pnlm-title-box {
  display: none;
}

.pnlm-hotspot-base.pnlm-scene {
  width: 34px;
  height: 34px;
}

.pnlm-hotspot-base.door-hotspot {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(18 18 18 / 82%);
  box-shadow: 0 3px 14px rgb(0 0 0 / 55%);
  color: #fff;
  cursor: pointer;
  text-align: center;
}

.door-hotspot::before {
  content: "\2191";
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 38px;
}

.door-hotspot-left::before {
  content: "\2190";
}

.door-hotspot-right::before {
  content: "\2192";
}

.door-hotspot-magnify::before {
  content: "\1F50D";
  font-size: 23px;
  line-height: 38px;
}

.door-hotspot-info::before {
  content: "i";
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 36px;
}

.pnlm-hotspot-base.info-hotspot {
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgb(18 18 18 / 82%);
  background-image: none;
  box-shadow: 0 3px 12px rgb(0 0 0 / 45%);
  color: #fff;
  text-align: center;
}

.info-hotspot::before {
  content: "i";
  display: block;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 36px;
}

.door-hotspot:hover,
.door-hotspot:focus-visible {
  background: #fff;
  color: #171717;
  outline: none;
}

.tour-nav {
  position: absolute;
  z-index: 20;
  bottom: 18px;
  left: 50%;
  display: flex;
  gap: 10px;
  transform: translateX(-50%);
  pointer-events: none;
}

.tour-nav-button {
  min-width: 122px;
  padding: 11px 18px;
  border: 2px solid rgb(255 255 255 / 88%);
  border-radius: 999px;
  background: rgb(18 18 18 / 86%);
  box-shadow: 0 3px 12px rgb(0 0 0 / 35%);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  pointer-events: auto;
}

.tour-nav-button:hover,
.tour-nav-button:focus-visible {
  background: #fff;
  color: #171717;
  outline: none;
}

.tour-nav-button:disabled {
  opacity: 0.4;
  cursor: default;
}

.tour-nav-button:disabled:hover {
  background: rgb(18 18 18 / 86%);
  color: #fff;
}

.tour-rotate-button {
  min-width: 104px;
}

.fullscreen-toggle {
  position: absolute;
  z-index: 20;
  right: 18px;
  bottom: 18px;
  min-width: 138px;
}

.tour-shell:fullscreen {
  display: flex;
  width: 100vw;
  max-width: none;
  height: 100vh;
  flex-direction: column;
  border: 0;
  border-radius: 0;
}

.tour-shell:fullscreen .tour-footer {
  flex: 0 0 auto;
}

.tour-shell:fullscreen #panorama {
  height: auto;
  min-height: 0;
  max-height: none;
  flex: 1 1 auto;
}

@media (max-width: 700px) {
  body {
    padding: 0;
  }

  .tour-shell {
    border: 0;
    border-radius: 0;
  }

  .tour-footer {
    align-items: flex-start;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  #scene-title,
  .tour-footer span:last-child {
    text-align: left;
  }

  #panorama {
    height: 60vh;
    min-height: 380px;
  }

  .tour-nav {
    right: 10px;
    bottom: 12px;
    left: 10px;
    gap: 5px;
    transform: none;
  }

  .tour-nav-button {
    min-width: 0;
    padding: 9px 8px;
    font-size: 0.78rem;
    flex: 1 1 0;
  }

  .fullscreen-toggle {
    right: 12px;
    bottom: 68px;
    min-width: 126px;
    font-size: 0.86rem;
    flex: none;
  }
}
