.psv-container {
  --tour-map-h: min(26rem, 100cqh - (90px + 2 * 15px + 1px + 10px) - 4.75rem);
  --psv-core-loader-color: #e7b635;
  --psv-core-loader-bg-color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-ui);
  background: #223828;
}

.psv-gallery {
  --psv-gallery-breakpoint: 0px;
  background: rgba(255, 255, 255, 0.96);
  transform: none !important;
}

@container psv-container (max-width: 500px) {
  .psv-gallery {
    top: auto;
  }

  .psv-gallery-container {
    flex-wrap: nowrap;
    height: auto;
    margin-top: 0;
    padding: 15px;
    overflow: auto hidden;
  }

  .psv-gallery-item {
    width: 160px !important;
    margin-bottom: 0;
  }

  .psv-gallery .psv-panel-close-button {
    display: none;
  }
}

.psv-map {
  width: auto !important;
  height: var(--tour-map-h) !important;
  margin-bottom: calc(90px + 2 * 15px + 1px + 10px) !important;
  aspect-ratio: 0.46;
}

.psv-map--square {
  border-radius: 0;
  /* not "none": with no radius and no shadow Chrome leaves a transparent hole above the map */
  box-shadow: 0 0 0 transparent;
}

.psv-map__toolbar {
  display: none;
}

.tour-caption {
  position: absolute;
  top: 1rem;
  left: 50%;
  z-index: 50;
  width: max-content;
  max-width: calc(100% - 2rem);
  margin: 0;
  padding: 0.45rem 0.9rem;
  background: rgba(255, 255, 255, 0.94);
  color: #24211c;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 450;
  line-height: 1.3;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  transform: translateX(-50%);
}

.tour-caption:empty {
  display: none;
}

.psv-gallery-item-title {
  font-family: var(--font-ui);
  font-style: normal;
}

.psv-gallery-item--active {
  outline: 2px solid #e7b635;
}

.psv-map__container {
  background: #faf6ee;
}

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

.tour-marker {
  cursor: pointer;
}

.tour-hotspot {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  cursor: pointer;
}

.tour-hotspot__ring {
  position: absolute;
  inset: 0;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: rgba(36, 33, 28, 0.28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.tour-hotspot__ring::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: #e7b635;
  box-shadow: 0 0 0 4px rgba(231, 182, 53, 0.35);
  animation: tour-hotspot-pulse 2.4s ease-out infinite;
}

.tour-hotspot:hover .tour-hotspot__ring {
  transform: scale(1.12);
}

.tour-hotspot__label {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  padding: 0.2rem 0.6rem 0.3rem;
  background: #ffffff;
  color: #24211c;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 450;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transform: translateX(-50%);
}

@media (hover: hover) {
  .tour-hotspot__label {
    display: none;
  }
}

@keyframes tour-hotspot-pulse {
  0% {
    transform: scale(0.8);
    opacity: 1;
  }

  70% {
    transform: scale(1.25);
    opacity: 0.6;
  }

  100% {
    transform: scale(0.8);
    opacity: 1;
  }
}

.psv-tooltip {
  max-width: none;
  padding: 0;
  border-radius: 0;
  background: #ffffff;
  color: #24211c;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5);
}

.psv-tooltip-content {
  padding: 0;
  color: #24211c;
  font: inherit;
  text-shadow: none;
}

.psv-tooltip-arrow {
  display: none;
}

.tour-tip {
  display: grid;
  width: max-content;
  max-width: 15rem;
  margin: 0;
}

.tour-tip figcaption {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.85rem 0.8rem;
}

.tour-tip__name {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 450;
  line-height: 1.2;
}

.tour-page {
  margin: 0;
  height: 100svh;
  overflow: hidden;
  background: #223828;
}

.tour-page__bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  background: #ffffff;
}

.tour-page__bar nav {
  flex: 1;
  min-width: 0;
}

.tour-page__rooms {
  display: flex;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.tour-page__rooms button {
  padding: 0.35rem 0;
  border: 0;
  background: none;
  color: #5a554c;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 450;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.tour-page__rooms button[aria-pressed="true"] {
  color: #24211c;
  text-decoration: underline;
  text-decoration-color: #e7b635;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.5em;
}

.tour-page__viewer {
  position: absolute;
  inset: 3.6rem 0 0;
}

@media (max-width: 48rem) {
  .tour-page__bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .tour-page__viewer {
    inset: 4.75rem 0 0;
  }

  .tour-page__actions {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
  }

  .psv-map {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tour-hotspot__ring::after {
    animation: none;
  }
}

.psv-gallery-item:hover .psv-gallery-item-title {
  align-items: center;
  color: #ffffff;
}

.tour-page__rooms button {
  transition: color 0.25s ease;
}

.tour-page__rooms button:hover {
  color: #9a4a2e;
}

.tour-page .brand:hover {
  color: #8a6a0e;
}

.tour-page__actions {
  flex: none;
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

.tour-page .brand {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.tour-page__bar nav {
  grid-column: 2;
  grid-row: 1;
}

.psv-container > nav {
  position: absolute;
  bottom: calc(90px + 2 * 15px + 1px + 10px + var(--tour-map-h));
  left: 10px;
  z-index: 40;
  width: calc(var(--tour-map-h) * 0.46);
  padding: 0.6rem 0.4rem 0.15rem;
  box-sizing: border-box;
  background: #faf6ee;
}

.psv-container > nav .tour-page__rooms {
  justify-content: center;
  gap: 0 0.7rem;
  overflow: visible;
}

.psv-container > nav .tour-page__rooms button {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.5;
  white-space: normal;
}

.tour-page__bar .tour-caption {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: center;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  padding: 0.35rem 0;
  background: none;
  color: #24211c;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: none;
  transform: none;
}

.tour-tooltip--map .tour-tip figcaption {
  padding: 0.4rem 0.6rem 0.45rem;
}

.tour-tooltip--map .tour-tip__name {
  font-size: 0.78rem;
}
