/* "Walk Through Your Suite" — interactive homepage journey.
   Loaded only by index.html. Uses the site tokens from styles.css. */

.suite-journey {
  position: relative;
  padding: clamp(64px, 9vw, 110px) 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 155, 47, 0.14), transparent 60%),
    radial-gradient(ellipse at 85% 100%, rgba(230, 73, 139, 0.10), transparent 55%),
    var(--black);
  overflow: hidden;
}

.suite-journey > .journey-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.suite-journey h2 span { color: var(--gold-light); }

.journey-sub {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--soft);
}

/* ---------- Lobby: pick a door ---------- */
.journey-doors {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 44px auto 0;
  max-width: 980px;
  padding: 0;
  list-style: none;
}

.journey-door {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 28px 22px 26px;
  color: var(--cream);
  font: inherit;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(201, 155, 47, 0.38);
  border-radius: 6px;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.journey-door:hover,
.journey-door:focus-visible {
  transform: translateY(-6px);
  border-color: var(--gold-light);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(244, 215, 122, 0.25), 0 0 34px rgba(201, 155, 47, 0.22);
  outline: none;
}

.journey-door:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.door-art {
  position: relative;
  width: 74px;
  height: 112px;
  perspective: 500px;
}

.door-art::before { /* the light behind the door */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 38px 38px 2px 2px;
  background: radial-gradient(circle at 50% 70%, var(--gold-light), rgba(201, 155, 47, 0.2) 70%);
  opacity: 0.35;
  transition: opacity 0.45s ease;
}

.door-leaf {
  position: absolute;
  inset: 0;
  border: 2px solid var(--gold);
  border-radius: 38px 38px 2px 2px;
  background: linear-gradient(160deg, #1b1712, #0a0908);
  transform-origin: left center;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.door-leaf::after { /* knob */
  content: "";
  position: absolute;
  right: 10px;
  top: 58%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 8px rgba(244, 215, 122, 0.7);
}

.journey-door:hover .door-leaf,
.journey-door:focus-visible .door-leaf { transform: rotateY(-38deg); }
.journey-door:hover .door-art::before,
.journey-door:focus-visible .door-art::before { opacity: 0.9; }
.journey-door.is-entering .door-leaf { transform: rotateY(-100deg); }
.journey-door.is-entering .door-art::before { opacity: 1; }

.door-num {
  position: absolute;
  top: 56px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-light);
  font-size: 13px;
  letter-spacing: 0.14em;
  pointer-events: none;
}

.journey-door strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.25;
}

.journey-door small {
  color: var(--soft);
  font-size: 14px;
  line-height: 1.5;
}

/* ---------- Stage: walking the suite ---------- */
.journey-stage {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 34px;
  max-width: 980px;
  margin: 44px auto 0;
  text-align: left;
}

.journey-stage[hidden],
.journey-lobby[hidden] { display: none; }

.journey-stage.is-in { animation: journeyFade 0.7s ease both; }

/* Elevator floor indicator */
.journey-floors {
  position: relative;
  display: flex;
  flex-direction: column-reverse; /* top floor at the top */
  justify-content: flex-end;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-floors::before { /* shaft line */
  content: "";
  position: absolute;
  left: 15px;
  top: 28px;
  bottom: 28px;
  width: 1px;
  background: rgba(201, 155, 47, 0.35);
}

.journey-floor { position: relative; }

.journey-floor button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-align: left;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
}

.journey-floor button:disabled { cursor: default; opacity: 0.55; }

.floor-dot {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  color: var(--soft);
  font-size: 12px;
  background: var(--black);
  border: 1px solid rgba(201, 155, 47, 0.5);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.journey-floor.is-visited .floor-dot { color: var(--black); background: var(--gold); border-color: var(--gold); }
.journey-floor.is-visited button { color: var(--soft); }

.journey-floor.is-current .floor-dot {
  color: var(--black);
  background: var(--gold-light);
  border-color: var(--gold-light);
  box-shadow: 0 0 0 5px rgba(244, 215, 122, 0.18), 0 0 22px rgba(244, 215, 122, 0.55);
}
.journey-floor.is-current button { color: var(--gold-light); }

.journey-floor button:not(:disabled):hover .floor-dot { border-color: var(--gold-light); }
.journey-floor button:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 2px; }

/* Room card */
.journey-room {
  position: relative;
  min-height: 330px;
  padding: clamp(26px, 4vw, 44px);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(201, 155, 47, 0.45);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.journey-room.is-swapping { animation: journeyRoom 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both; }

.room-top {
  display: flex;
  align-items: center;
  gap: 18px;
}

.room-icon {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 12px;
  color: var(--gold-light);
  border: 1px solid rgba(201, 155, 47, 0.55);
  border-radius: 50%;
  background: rgba(201, 155, 47, 0.08);
}

.room-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.room-kicker {
  margin: 0;
  color: var(--pink-light);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.journey-room h3 {
  margin: 4px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 400;
  line-height: 1.15;
}

.room-line { margin: 22px 0 0; color: var(--soft); font-size: 17px; }

.room-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.room-picks li {
  padding: 7px 14px;
  color: var(--cream);
  font-size: 13px;
  background: rgba(201, 155, 47, 0.1);
  border: 1px solid rgba(201, 155, 47, 0.4);
  border-radius: 999px;
}

.room-picks li::before { content: "✦ "; color: var(--gold-light); }

.journey-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.journey-link {
  padding: 0;
  color: var(--gold-light);
  font: inherit;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-transform: uppercase;
  background: none;
  border: 0;
  cursor: pointer;
}

.journey-link:hover { color: var(--cream); }
.journey-link:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

.journey-progress {
  height: 3px;
  margin-top: 28px;
  background: rgba(201, 155, 47, 0.2);
  border-radius: 3px;
  overflow: hidden;
}

.journey-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--pink-light));
  transition: width 0.6s ease;
}

/* Final door: suite is ready */
.journey-room.is-final { text-align: center; }
.journey-room.is-final .room-top { flex-direction: column; }
.journey-room.is-final .journey-controls { justify-content: center; }
.journey-room.is-final .room-picks { justify-content: center; }

.journey-room.is-final .room-icon {
  animation: journeyGlow 2.4s ease-in-out infinite;
}

@keyframes journeyFade {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes journeyRoom {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: none; }
}

@keyframes journeyGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(244, 215, 122, 0.0); }
  50% { box-shadow: 0 0 34px 4px rgba(244, 215, 122, 0.45); }
}

/* ---------- Small screens: floors become a horizontal strip ---------- */
@media (max-width: 760px) {
  .journey-doors { grid-template-columns: 1fr; max-width: 420px; }

  .journey-door { flex-direction: row; gap: 18px; padding: 18px 20px; text-align: left; }
  .door-art { flex: 0 0 52px; width: 52px; height: 78px; }
  .door-art::before, .door-leaf { border-radius: 26px 26px 2px 2px; }
  .door-num { top: 38px; font-size: 11px; }

  .journey-stage { grid-template-columns: 1fr; gap: 22px; }

  .journey-floors {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .journey-floors::before { left: 14px; right: 14px; top: 15px; bottom: auto; width: auto; height: 1px; }
  .journey-floor { flex: 1 1 0; }

  .journey-floor button {
    flex-direction: column;
    gap: 6px;
    min-height: 0;
    font-size: 10px;
    text-align: center;
  }

  .journey-floor .floor-label { max-width: 70px; line-height: 1.25; }
  .journey-room { min-height: 0; }
  .journey-controls .gold-button, .journey-controls .dark-button { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .journey-door, .door-leaf, .door-art::before, .floor-dot, .journey-progress span { transition: none; }
  .journey-stage.is-in, .journey-room.is-swapping, .journey-room.is-final .room-icon { animation: none; }
  .journey-door:hover, .journey-door:focus-visible { transform: none; }
}

.journey-room:focus { outline: none; }
