.hotel-explorer {
  position: relative;
  display: grid;
  min-height: 700px;
  grid-template-columns: minmax(270px, .75fr) minmax(0, 1.25fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  overflow: hidden;
  padding: 110px clamp(22px, 8vw, 120px);
  color: var(--cream);
  background:
    radial-gradient(ellipse at 76% 48%, #b2863a22, transparent 37%),
    linear-gradient(125deg, #001a15, #002a22 58%, #001a15);
}

.hotel-explorer:after {
  position: absolute;
  right: -12%;
  bottom: -53%;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid #efb15428;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.hotel-explorer-copy {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.hotel-explorer-copy h2 {
  color: var(--cream);
  font-size: clamp(48px, 6vw, 82px);
  line-height: .94;
}

.hotel-explorer-copy h2 em {
  color: var(--gold);
}

.hotel-explorer-copy > p:not(.eyebrow) {
  max-width: 390px;
  margin: 25px 0 0;
  color: #c9d6d0;
  font-size: 14px;
  line-height: 1.75;
}

.hotel-view-caption {
  display: grid;
  gap: 8px;
  min-height: 98px;
  margin-top: 34px;
}

.hotel-view-caption span,
.hotel-view-controls > span {
  color: var(--gold);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .16em;
}

.hotel-view-caption strong {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 700;
  font-size: 22px;
  font-weight: 600;
}

.hotel-view-caption small {
  color: #c9d6d0;
  font-size: 11px;
  line-height: 1.5;
}

.hotel-view-controls {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 17px;
}

.hotel-view-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid #efb15470;
  border-radius: 50%;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.hotel-view-button:hover {
  transform: translateY(-2px);
  color: var(--deep);
  background: var(--gold);
}

.hotel-view-button:focus-visible,
.hotel-viewer:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 5px;
}

.hotel-viewer {
  position: relative;
  z-index: 1;
  min-width: 0;
  height: min(62vw, 590px);
  min-height: 420px;
  perspective: 1350px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.hotel-viewer:active {
  cursor: grabbing;
}

.hotel-viewer-scene {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
}

.hotel-photo-ring {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateY(0deg);
  transform-style: preserve-3d;
  transition: transform .8s cubic-bezier(.2, .75, .25, 1);
  will-change: transform;
}

.hotel-viewer.is-dragging .hotel-photo-ring {
  transition: none;
}

.hotel-photo-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(69%, 470px);
  height: min(80%, 500px);
  margin: 0;
  overflow: hidden;
  border: 1px solid #f4efe455;
  background: #00221b;
  box-shadow: 0 25px 60px #0008;
  backface-visibility: hidden;
  transform: translate(-50%, -50%) rotateY(calc(var(--photo-index) * 72deg)) translateZ(330px);
}

.hotel-photo-card:after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(0deg, #001a15a8, transparent);
  content: "";
  pointer-events: none;
}

.hotel-photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.hotel-photo-card figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 17px;
  left: 18px;
  color: #fffdf8;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .15em;
}

.hotel-viewer-glow {
  position: absolute;
  right: 8%;
  bottom: 7%;
  left: 12%;
  height: 15%;
  border-radius: 50%;
  background: #efb15426;
  filter: blur(35px);
  pointer-events: none;
}

@media (max-width: 850px) {
  .hotel-explorer {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 90px;
    padding-bottom: 65px;
  }

  .hotel-explorer-copy {
    max-width: 650px;
  }

  .hotel-view-caption {
    min-height: 0;
    margin-top: 24px;
  }

  .hotel-viewer {
    height: min(78vw, 560px);
    min-height: 400px;
  }

  .hotel-photo-card {
    width: min(66%, 420px);
    height: 82%;
    transform: translate(-50%, -50%) rotateY(calc(var(--photo-index) * 72deg)) translateZ(270px);
  }
}

@media (max-width: 560px) {
  .hotel-explorer {
    gap: 22px;
    padding: 76px 18px 50px;
  }

  .hotel-explorer-copy h2 {
    font-size: 54px;
  }

  .hotel-viewer {
    height: 440px;
    min-height: 0;
    margin: 0 -18px;
  }

  .hotel-photo-card {
    width: 72%;
    height: 80%;
    transform: translate(-50%, -50%) rotateY(calc(var(--photo-index) * 72deg)) translateZ(205px);
  }

  .hotel-view-button {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotel-photo-ring,
  .hotel-view-button {
    transition: none;
  }
}

/* Match the simpler type on the main page. */
.hotel-explorer {
  padding-top: 80px;
  padding-bottom: 80px;
}

.hotel-explorer-copy h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: clamp(34px, 4vw, 54px);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hotel-explorer-copy h2 em {
  font-style: normal;
}
