:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --glass: rgba(17, 27, 39, .82);
  --glass-border: rgba(197, 222, 242, .22);
  --cyan: #54d7ff;
  --green: #55e6a5;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
button, a { -webkit-tap-highlight-color: transparent; }
.tour-page { background: #08101a; }
.tour-engine { position: fixed; inset: 0; width: 100%; height: 100%; border: 0; background: #08101a; }

.property-info {
  position: fixed; z-index: 40; top: 64px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 1px; overflow: hidden; width: min(680px, calc(100% - 28px));
  border: 1px solid var(--glass-border); border-radius: 14px;
  background: var(--glass); box-shadow: 0 18px 50px rgba(0,0,0,.32);
  color: #fff; backdrop-filter: blur(18px);
}
.property-info > div { flex: 1; min-width: 0; padding: 12px 18px; border-right: 1px solid rgba(255,255,255,.13); }
.property-info > div:last-child { border-right: 0; }
.property-info span, .related-head span, .eyebrow {
  display: block; margin-bottom: 4px; color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .16em;
}
.property-info strong { display: block; overflow: hidden; font-size: clamp(16px, 2vw, 23px); white-space: nowrap; text-overflow: ellipsis; }
.property-info .availability { color: var(--green); }

.related-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: min(500px, calc(100% - 36px)); overflow: hidden;
  border: 1px solid rgba(197,222,242,.22); border-radius: 16px;
  background: rgba(17,27,39,.86); box-shadow: 0 24px 70px rgba(0,0,0,.46);
  color: #fff; backdrop-filter: blur(22px) saturate(1.18);
  transition: opacity .22s ease, transform .22s ease;
}
.related-panel.is-viewer-open { opacity: 0; transform: translateY(18px); pointer-events: none; }
.related-panel.is-hidden { display: none; }
.related-panel.is-linked-to-object { overflow-x: hidden; overflow-y: auto; }
.related-head { display: flex; justify-content: space-between; gap: 14px; padding: 16px 16px 14px; border-bottom: 1px solid rgba(255,255,255,.1); }
.related-head h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; letter-spacing: -.015em; }
.related-head button, .tour-popup > button {
  flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22);
  border-radius: 50%; background: rgba(7,15,24,.8); color: #fff; font-size: 24px; cursor: pointer;
}
.related-list { position: relative; }
.related-card { display: none; color: #fff; text-decoration: none; }
.related-card.is-active { display: block; animation: related-in .28s ease both; }
.related-image { display: block; aspect-ratio: 16 / 9; background: #1e2a37 center/cover no-repeat; }
.related-copy { display: grid; gap: 7px; padding: 16px; }
.related-copy > small { color: var(--cyan); font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.related-copy > strong { overflow: hidden; font-size: 21px; font-weight: 820; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; text-overflow: ellipsis; }
.related-copy > p { margin: -1px 0 3px; color: #c5d1dc; font-size: 13px; font-weight: 600; line-height: 1.4; }
.related-facts { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.1); }
.related-facts > span { display: grid; align-content: start; gap: 5px; min-width: 0; }
.related-facts small { color: #c5d1dc; font-size: 9px; font-weight: 850; letter-spacing: .08em; }
.related-facts b { min-height: 38px; padding: 7px 8px; overflow: hidden; border: 1px solid rgba(142,191,231,.24); border-radius: 8px; background: rgba(81,135,181,.2); color: #fff; font-size: 12px; line-height: 1.2; text-overflow: ellipsis; }
.related-facts .is-status b { border-color: rgba(99,221,147,.32); background: rgba(58,157,99,.16); color: var(--green); }
.related-facts .is-price b { font-size: 15px; font-weight: 850; letter-spacing: -.02em; }
.related-copy i { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 6px; border: 1px solid rgba(255,255,255,.18); border-radius: 11px; background: rgba(4,13,22,.7); color: #fff; font-size: 13px; font-style: normal; font-weight: 800; transition: border-color .16s ease, box-shadow .16s ease; }
.related-card:hover .related-copy i, .related-card:focus-visible .related-copy i { border-color: var(--cyan); box-shadow: 0 0 0 2px rgba(84,215,255,.18),0 0 22px rgba(84,215,255,.2); }
.related-controls { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 12px; }
.related-controls button { width: 36px; height: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; background: rgba(255,255,255,.07); color: #fff; cursor: pointer; }
.related-controls span { color: #b8c6d5; font-size: 12px; }
@keyframes related-in { from { opacity: 0; transform: translateX(12px); } }

.tour-popup-backdrop {
  position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px;
  background: rgba(3,8,13,.64); backdrop-filter: blur(8px);
}
.tour-popup { position: relative; width: min(540px, 100%); padding: clamp(28px, 6vw, 46px); border-radius: 22px; background: #fff; color: #0a1320; box-shadow: 0 32px 90px rgba(0,0,0,.52); }
.tour-popup > button { position: absolute; top: 14px; right: 14px; }
.tour-popup h2 { margin: 7px 0 14px; font-size: clamp(28px, 6vw, 46px); line-height: 1; letter-spacing: -.045em; }
.tour-popup p { color: #526074; line-height: 1.65; }
.tour-popup-backdrop.is-hidden { display: none; }
.tour-button { display: inline-flex; padding: 13px 18px; border-radius: 10px; background: #0b1523; color: #fff; text-decoration: none; font-weight: 850; }

.closed-page { display: grid; place-items: center; padding: 24px; overflow: auto; background: radial-gradient(circle at 20% 20%, #18364e, #07101a 65%); color: #fff; }
.closed-card { width: min(620px, 100%); padding: clamp(34px, 8vw, 70px); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(9,17,27,.88); box-shadow: 0 30px 90px rgba(0,0,0,.4); }
.closed-card h1 { margin: 10px 0 18px; font-size: clamp(34px, 8vw, 62px); line-height: .98; letter-spacing: -.05em; }
.closed-card p { color: #c1ccd7; font-size: 18px; line-height: 1.6; }
.vertz-logo { margin-bottom: 40px; font-weight: 900; font-size: 24px; letter-spacing: .12em; }
.vertz-logo span { color: var(--cyan); }

@media (max-width: 1024px) {
  .related-panel {
    right: 8px;
    left: 8px;
    bottom: 8px;
    width: auto;
  }
}

@media (max-width: 680px) {
  .property-info { top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); }
  .property-info > div { padding: 10px 11px; }
  .property-info strong { font-size: 15px; }
  .related-panel { right: 8px; left: 8px; bottom: 8px; width: auto; }
  .related-copy { padding: 13px; }
  .related-copy > strong { font-size: 19px; }
}

@media (max-width: 430px) {
  .property-info { width: calc(100% - 16px); }
  .property-info span { font-size: 8px; }
  .property-info strong { font-size: 13px; }
}

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