:root {
  color-scheme: dark;
  --forest: #102b20;
  --forest-deep: #071710;
  --ivory: #f2efe8;
  --stone: #b8b6ac;
  --clay: #b76543;
  --line: rgba(242, 239, 232, .18);
  --glass: rgba(7, 23, 16, .72);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; background: var(--forest-deep); color: var(--ivory); }

button, input { font: inherit; }

button { color: inherit; }

.tour {
  height: 100svh;
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: 82px minmax(0, 1fr);
  background: var(--forest-deep);
  overflow: hidden;
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 3vw, 44px);
  background: var(--forest);
  border-bottom: 1px solid rgba(255,255,255,.07);
  z-index: 10;
}

.brand { width: 206px; height: auto; display: block; }

.top-actions { display: flex; align-items: center; gap: 10px; }

.icon-button,
.control-button,
.nav-button,
.close-button {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button { height: 44px; min-width: 44px; padding: 0 13px; gap: 8px; border-radius: 999px; text-decoration: none; }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.icon-button span { font-size: .86rem; }

.stage { position: relative; min-height: 0; background: #07120d; overflow: hidden; }

.tour-video { width: 100%; height: 100%; display: block; object-fit: cover; }

.shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.1) 30%, rgba(0,0,0,.2) 58%, rgba(3,14,9,.86) 100%);
}

.scene-copy { position: absolute; left: clamp(22px, 5vw, 72px); bottom: 112px; max-width: 620px; }

.eyebrow { margin: 0 0 8px; color: #ddd8cd; font-size: .76rem; letter-spacing: .13em; text-transform: uppercase; }

.scene-copy h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.35rem, 5vw, 5rem); font-weight: 400; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }

.scene-copy > p:last-child { max-width: 510px; margin: 16px 0 0; color: rgba(242,239,232,.82); font-size: clamp(1rem, 1.5vw, 1.15rem); line-height: 1.5; }

.center-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 74px;
  height: 74px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 50%;
  background: rgba(8,25,17,.48);
  backdrop-filter: blur(8px);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform .2s ease, opacity .2s ease;
}

.center-play:hover { transform: scale(1.06); }
.center-play svg { width: 30px; fill: var(--ivory); }
.stage.playing .center-play { opacity: 0; pointer-events: none; }

.video-controls { position: absolute; left: clamp(18px, 5vw, 72px); right: clamp(18px, 4vw, 46px); bottom: 32px; display: flex; align-items: center; gap: 13px; }

.control-button { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; }
.control-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.control-button .play-icon { fill: currentColor; stroke: none; }
.pause-icon, .sound-off { display: none; }
.stage.playing .pause-icon, .tour.muted .sound-off { display: block; }
.stage.playing .play-icon, .tour.muted .sound-on { display: none; }

.timeline { accent-color: var(--ivory); width: 100%; cursor: pointer; }
.time { min-width: 40px; font-variant-numeric: tabular-nums; font-size: .78rem; color: rgba(255,255,255,.78); }

.swipe-hint { display: none; }

.journey { min-height: 0; background: var(--forest); display: flex; flex-direction: column; border-left: 1px solid rgba(255,255,255,.07); }

.journey-heading { padding: 27px 24px 19px; border-bottom: 1px solid var(--line); }
.journey-heading > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.journey-heading span { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; }
.journey-heading strong { font-size: .75rem; letter-spacing: .14em; color: var(--stone); }
.journey-heading p { margin: 7px 0 0; color: var(--stone); font-size: .83rem; }

.scene-list { flex: 1; overflow: auto; padding: 10px 12px; scrollbar-width: thin; }

.scene-item {
  width: 100%;
  padding: 15px 12px;
  display: grid;
  grid-template-columns: 28px 1fr 18px;
  gap: 9px;
  align-items: center;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,.09);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .2s ease;
}

.scene-item:hover { background: rgba(255,255,255,.045); }
.scene-item.active { background: rgba(255,255,255,.08); }
.scene-item .number { color: #8e9b93; font-size: .7rem; letter-spacing: .08em; }
.scene-item .label { font-size: .93rem; line-height: 1.25; }
.scene-item .arrow { opacity: 0; color: var(--clay); font-size: 1.1rem; }
.scene-item.active .number { color: var(--clay); }
.scene-item.active .arrow { opacity: 1; }

.journey-footer { display: grid; grid-template-columns: 55px 1fr; gap: 8px; padding: 14px; border-top: 1px solid var(--line); }
.nav-button { height: 52px; border-radius: 4px; }
.nav-button svg, .next-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.next-button { height: 52px; padding: 0 17px; border: 0; border-radius: 4px; background: var(--ivory); color: var(--forest-deep); display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 650; }

.map-dialog { width: min(1050px, calc(100vw - 32px)); max-height: calc(100svh - 32px); padding: 0; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: #f4f1ea; color: #16231c; box-shadow: 0 30px 90px rgba(0,0,0,.55); }
.map-dialog::backdrop { background: rgba(2,12,7,.84); backdrop-filter: blur(7px); }
.map-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px 16px; }
.map-header span { color: #667068; font-size: .78rem; text-transform: uppercase; letter-spacing: .11em; }
.map-header h2 { margin: 4px 0 0; font: 400 1.7rem/1 Georgia, serif; }
.close-button { width: 42px; height: 42px; border-color: rgba(16,43,32,.18); color: #102b20; border-radius: 50%; font-size: 1.6rem; background: transparent; }
.map-canvas { position: relative; margin: 0 22px; border: 1px solid #d5d3ca; background: white; overflow: hidden; }
.map-canvas img { width: 100%; display: block; }
.hotspot { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; width: 21px; height: 21px; padding: 0; border: 4px solid white; border-radius: 50%; background: var(--forest); box-shadow: 0 3px 12px rgba(0,0,0,.3); cursor: pointer; }
.hotspot::after { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(16,43,32,.3); border-radius: 50%; }
.hotspot span { position: absolute; left: 50%; top: 28px; translate: -50% 0; width: max-content; max-width: 150px; padding: 5px 8px; border-radius: 3px; background: var(--forest); color: white; font-size: .72rem; pointer-events: none; }
.hotspot.active { background: var(--clay); }
.hotspot.active::after { border-color: var(--clay); animation: pulse 1.7s infinite; }
.hotspot.amenity span { left: auto; right: 0; translate: 0; }
.map-note { margin: 12px 22px 20px; color: #657067; font-size: .8rem; }
.map-note span { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--clay); }

@keyframes pulse { 70% { transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 860px) {
  .tour { grid-template-columns: 1fr; grid-template-rows: 62px minmax(0, 1fr) 72px; width: 100%; height: 100svh; }
  .topbar { padding: 8px 12px; }
  .brand { width: min(148px, 38vw); }
  .icon-button { height: 40px; min-width: 40px; padding: 0 11px; }
  #backProject span { display: none; }
  #fullscreenButton { display: none; }
  .stage { min-width: 0; min-height: 0; }
  .tour-video { position: absolute; inset: 0; object-fit: contain; background: #050d09; }
  .scene-copy { left: 16px; right: 16px; bottom: 72px; }
  .scene-copy h1 { font-size: clamp(1.65rem, 8vw, 2.55rem); }
  .eyebrow { margin-bottom: 5px; font-size: .63rem; }
  .scene-copy > p:last-child { display: none; }
  .video-controls { left: 12px; right: 12px; bottom: 14px; gap: 9px; }
  .control-button { width: 38px; height: 38px; flex-basis: 38px; }
  .center-play { width: 58px; height: 58px; }
  .journey { min-width: 0; height: 72px; border-left: 0; border-top: 1px solid var(--line); }
  .journey-heading { display: none; }
  .scene-list { display: flex; gap: 7px; padding: 8px 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type:x proximity; }
  .scene-item { flex: 0 0 auto; width: auto; min-width: 132px; height: 55px; padding: 7px 10px; grid-template-columns: 20px 1fr; border: 1px solid var(--line); border-radius: 4px; scroll-snap-align:start; }
  .scene-item .label { font-size: .82rem; }
  .scene-item .arrow { display: none; }
  .scene-item.active { border-color: rgba(183,101,67,.95); }
  .journey-footer { display: none; }
  .swipe-hint { display: block; position: absolute; top: 15px; left: 50%; translate: -50% 0; padding: 7px 10px; border-radius: 99px; background: rgba(7,23,16,.58); color: rgba(255,255,255,.78); font-size: .7rem; white-space: nowrap; backdrop-filter: blur(5px); transition: opacity .5s ease; }
  .swipe-hint.hidden { opacity: 0; }
  .map-dialog { width: 100vw; max-width: none; max-height: 94svh; margin: auto 0 0; overflow-y:auto; border-radius: 14px 14px 0 0; }
  .map-canvas { margin: 0 10px; overflow: hidden; }
  .map-canvas img { width: 100%; min-width: 0; height: auto; }
  .hotspot { width: 16px; height: 16px; border-width: 3px; }
  .hotspot span { display:none; }
  .hotspot.active span { display:block; top:20px; max-width:110px; font-size:.61rem; }
  .map-header { padding: 14px 14px 12px; }
  .map-header h2 { font-size:1.4rem; }
  .map-note { margin: 12px 16px 18px; }
}

@media (max-width: 390px) {
  .brand { width: 126px; }
  .icon-button { padding: 0 9px; }
  .icon-button span { font-size: .74rem; }
  .time { display:none; }
}

@media (max-width: 860px) and (orientation: landscape) {
  .tour { grid-template-rows: 54px minmax(0, 1fr) 62px; }
  .topbar { padding-block:5px; }
  .journey { height:62px; }
  .scene-list { padding-block:5px; }
  .scene-item { height:51px; }
  .scene-copy { bottom:60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
