:root {
  --bg-dark: #141210;
  --bg-dark-elev: #1e1b18;
  --bg-warm: #f6f2eb;
  --bg-card: #ffffff;
  --ink-dark: #1d1a16;
  --ink-muted: #6c6358;
  --ink-light: #faf6f0;
  --ink-light-muted: rgba(250, 246, 240, 0.72);
  --oak: #c89b6e;
  --oak-strong: #d9ac7c;
  --terracotta: #b56547;
  --border-dark: rgba(255, 245, 230, 0.14);
  --border-light: rgba(29, 26, 22, 0.1);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 18px 46px rgba(18, 15, 11, 0.1);
  --shadow-dark: 0 24px 64px rgba(0, 0, 0, 0.45);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", "Georgia", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-dark);
  background: var(--bg-warm);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }

/* ===== Top Header ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(20, 18, 16, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
  color: var(--ink-light);
}
.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink-light);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--oak), var(--terracotta));
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  color: #161310;
  letter-spacing: 0.04em;
}
.brand-title {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
}
.brand-sub {
  font-size: 11px;
  color: var(--ink-light-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--ink-light-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink-light);
}
.btn-autotour {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(217, 172, 124, 0.45);
  background: linear-gradient(135deg, rgba(200, 155, 110, 0.24), rgba(181, 101, 71, 0.24));
  color: var(--ink-light);
  font-size: 13px;
  font-weight: 600;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn-autotour:hover {
  background: linear-gradient(135deg, rgba(200, 155, 110, 0.4), rgba(181, 101, 71, 0.35));
  border-color: var(--oak-strong);
  transform: translateY(-1px);
}
.btn-autotour.active {
  background: var(--oak);
  color: #161310;
  border-color: var(--oak);
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--oak-strong);
  box-shadow: 0 0 0 0 rgba(217, 172, 124, 0.7);
  animation: pulseDot 2s infinite;
}
.btn-autotour.active .pulse-dot { background: #161310; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(217, 172, 124, 0.65); }
  70% { box-shadow: 0 0 0 8px rgba(217, 172, 124, 0); }
  100% { box-shadow: 0 0 0 0 rgba(217, 172, 124, 0); }
}

/* ===== Hero Matterport 3D Viewer Section ===== */
.tour-section {
  background: var(--bg-dark);
  color: var(--ink-light);
  padding: 18px 24px 32px;
}
.tour-shell {
  max-width: 1440px;
  margin: 0 auto;
}

/* Room switcher pills row */
.room-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}
.room-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.room-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-dark);
  color: var(--ink-light-muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s;
}
.room-pill:hover {
  background: rgba(255, 255, 255, 0.11);
  color: var(--ink-light);
}
.room-pill.active {
  background: var(--oak);
  color: #161310;
  border-color: var(--oak);
  font-weight: 600;
}
.room-pill .pill-area {
  font-size: 11.5px;
  opacity: 0.78;
}
.viewer-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  color: var(--ink-light);
  font-size: 12.5px;
  font-weight: 500;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.tool-btn:hover { background: rgba(255, 255, 255, 0.14); }
.tool-btn.active {
  background: rgba(200, 155, 110, 0.22);
  border-color: var(--oak);
  color: var(--oak-strong);
}

/* Main 16:9 Stage */
.stage-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 76vh;
  background: #0d0b0a;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-dark);
  user-select: none;
}
.stage-wrap:fullscreen {
  max-height: none;
  border-radius: 0;
  border: none;
}

.stage-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.stage-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
  will-change: transform, opacity, filter;
}

/* Ken Burns active slideshow gentle drift */
.stage-wrap.slideshow-playing #stage-img-active {
  animation: kenBurnsDrift var(--kb-dur, 5.2s) ease-in-out forwards;
}
@keyframes kenBurnsDrift {
  0% { transform: scale(1.0) translate(0%, 0%); }
  100% { transform: scale(1.11) translate(-1.2%, -0.8%); }
}

/* Matterport 3D Warp & 180 Turn animations */
.stage-layer.outgoing-warp {
  z-index: 3;
  animation: warpOut 0.68s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.stage-layer.incoming-warp {
  z-index: 2;
  animation: warpIn 0.68s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes warpOut {
  0% { opacity: 1; transform: scale(1); filter: blur(0px); }
  55% { opacity: 0.72; transform: scale(1.48); filter: blur(4px); }
  100% { opacity: 0; transform: scale(1.92); filter: blur(10px); }
}
@keyframes warpIn {
  0% { opacity: 0.35; transform: scale(1.22); filter: blur(6px); }
  100% { opacity: 1; transform: scale(1); filter: blur(0px); }
}

.stage-layer.outgoing-turn180 {
  z-index: 3;
  animation: turnOut 0.72s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}
.stage-layer.incoming-turn180 {
  z-index: 2;
  animation: turnIn 0.72s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes turnOut {
  0% { opacity: 1; transform: scale(1.04) translateX(0%); filter: blur(0px); }
  50% { opacity: 0.65; transform: scale(1.12) translateX(-14%); filter: blur(10px); }
  100% { opacity: 0; transform: scale(1.15) translateX(-24%); filter: blur(14px); }
}
@keyframes turnIn {
  0% { opacity: 0.2; transform: scale(1.14) translateX(18%); filter: blur(12px); }
  100% { opacity: 1; transform: scale(1) translateX(0%); filter: blur(0px); }
}

.stage-layer.outgoing-dissolve {
  z-index: 3;
  animation: fadeOutSmooth 0.55s ease forwards;
}
.stage-layer.incoming-dissolve {
  z-index: 2;
  animation: fadeInSmooth 0.55s ease forwards;
}
@keyframes fadeOutSmooth { from { opacity: 1; } to { opacity: 0; } }
@keyframes fadeInSmooth { from { opacity: 0.35; } to { opacity: 1; } }

/* Subtle vignette overlay */
.stage-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background:
    linear-gradient(to bottom, rgba(14, 12, 10, 0.38) 0%, transparent 18%, transparent 72%, rgba(14, 12, 10, 0.74) 100%);
}

/* Hotspots layer */
.hotspots-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  transition: opacity 0.25s;
}
.stage-wrap.hide-hotspots .hotspots-layer {
  opacity: 0;
  pointer-events: none;
}

.hs {
  position: absolute;
  transform: translate(-50%, -50%);
  border: none;
  background: transparent;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 7;
}
.hs:hover { z-index: 12; }

/* Matterport doorway puck */
.hs-door .hs-ring {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.95);
  background: rgba(20, 17, 14, 0.42);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 0 0 rgba(217, 172, 124, 0.65), 0 8px 20px rgba(0, 0, 0, 0.45);
  animation: puckPulse 2.4s infinite;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}
.hs-door:hover .hs-ring {
  transform: scale(1.16);
  background: var(--oak);
  color: #161310;
  border-color: #fff;
}
@keyframes puckPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 248, 236, 0.65), 0 8px 20px rgba(0, 0, 0, 0.4); }
  70% { box-shadow: 0 0 0 14px rgba(255, 248, 236, 0), 0 8px 20px rgba(0, 0, 0, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(255, 248, 236, 0), 0 8px 20px rgba(0, 0, 0, 0.4); }
}

/* Step & Turn 180 puck (flat perspective oval like Matterport floor node!) */
.hs-step .hs-ring,
.hs-turn .hs-ring {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(22, 19, 16, 0.5);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 15px;
  transition: transform 0.2s, background 0.2s;
}
.hs-step:hover .hs-ring,
.hs-turn:hover .hs-ring {
  transform: scale(1.15);
  background: rgba(255, 255, 255, 0.92);
  color: #161310;
}

/* Info hotspot (+) */
.hs-info .hs-ring {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid rgba(235, 212, 180, 0.9);
  background: rgba(22, 19, 16, 0.68);
  color: var(--oak-strong);
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 600;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}
.hs-info:hover .hs-ring,
.hs-info.open .hs-ring {
  transform: scale(1.15) rotate(45deg);
  background: var(--oak);
  color: #161310;
}

.hs-tag {
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(235, 215, 185, 0.35);
  color: var(--ink-light);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
  transition: opacity 0.2s, transform 0.2s;
}
.hs-tag small {
  color: var(--oak-strong);
  font-weight: 500;
  margin-left: 4px;
}
.hs-step .hs-tag,
.hs-turn .hs-tag {
  opacity: 0.92;
  font-weight: 500;
  font-size: 11.5px;
}

/* Info Popover inside stage */
.info-popover {
  position: absolute;
  left: 24px;
  top: 72px;
  z-index: 15;
  width: min(330px, calc(100% - 48px));
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(22, 19, 16, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(217, 172, 124, 0.42);
  color: var(--ink-light);
  box-shadow: var(--shadow-dark);
  display: none;
}
.info-popover.visible { display: block; animation: popIn 0.2s ease; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.info-popover-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.info-popover h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  color: var(--oak-strong);
}
.info-popover p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-light-muted);
  line-height: 1.5;
}
.popover-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--ink-light);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 15px;
}

/* Stage Top-Left HUD Badge */
.stage-top-hud {
  position: absolute;
  top: 16px;
  left: 18px;
  right: 18px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  pointer-events: none;
}
.stage-top-hud > * { pointer-events: auto; }
.hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 244, 228, 0.16);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-light);
}
.hud-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oak-strong);
}
.day-night-toggle {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.76);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 244, 228, 0.2);
}
.day-night-toggle.visible { display: inline-flex; }
.dn-btn {
  border: none;
  background: transparent;
  color: var(--ink-light-muted);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.dn-btn.active {
  background: var(--oak);
  color: #161310;
}

/* Prev / Next arrows on stage edges */
.stage-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 17, 14, 0.62);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 244, 228, 0.22);
  color: #fff;
  font-size: 20px;
  display: grid;
  place-items: center;
  transition: background 0.2s, transform 0.2s;
}
.stage-arrow:hover {
  background: var(--oak);
  color: #161310;
  transform: translateY(-50%) scale(1.08);
}
.stage-arrow.prev { left: 16px; }
.stage-arrow.next { right: 16px; }

/* Stage Bottom Caption & Floating Floorplan Radar */
.stage-bottom-hud {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}
.stage-bottom-hud > * { pointer-events: auto; }

.caption-card {
  max-width: 520px;
  padding: 13px 16px;
  border-radius: var(--radius-md);
  background: rgba(20, 17, 14, 0.78);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 244, 228, 0.14);
}
.caption-meta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--oak-strong);
  margin-bottom: 3px;
}
.caption-title {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.1;
}
.caption-text {
  margin: 0;
  font-size: 13px;
  color: var(--ink-light-muted);
  line-height: 1.42;
}

/* Floating SVG Floorplan inside stage */
.mini-plan-card {
  width: 276px;
  padding: 10px 12px 10px;
  border-radius: var(--radius-md);
  background: rgba(20, 17, 14, 0.84);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 244, 228, 0.18);
  transition: opacity 0.25s, transform 0.25s;
}
.mini-plan-card.collapsed {
  display: none;
}
.mini-plan-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-light-muted);
}
.mini-plan-svg {
  width: 100%;
  height: auto;
  display: block;
}
.fp-room {
  fill: rgba(255, 255, 255, 0.05);
  stroke: rgba(255, 244, 228, 0.35);
  stroke-width: 5;
  cursor: pointer;
  transition: fill 0.2s, stroke 0.2s;
}
.fp-room:hover { fill: rgba(200, 155, 110, 0.22); }
.fp-room.active {
  fill: rgba(200, 155, 110, 0.32);
  stroke: var(--oak-strong);
  stroke-width: 8;
}
.fp-label {
  fill: rgba(250, 246, 240, 0.82);
  font-size: 36px;
  font-weight: 600;
  text-anchor: middle;
  pointer-events: none;
}
.fp-door {
  stroke: #f8dfb9;
  stroke-width: 12;
  stroke-linecap: round;
}
.fp-window {
  stroke: #9fd0ea;
  stroke-width: 10;
}
.fp-node {
  fill: rgba(255, 255, 255, 0.65);
  stroke: #141210;
  stroke-width: 5;
  cursor: pointer;
  transition: r 0.2s, fill 0.2s;
}
.fp-node:hover { fill: var(--oak-strong); }
.fp-node.active {
  fill: #ffffff;
  stroke: var(--oak-strong);
  stroke-width: 8;
}
.fp-fov {
  fill: rgba(232, 182, 120, 0.42);
  pointer-events: none;
  transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Slideshow progress bar along bottom edge of stage */
.slideshow-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  z-index: 12;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.2s;
}
.stage-wrap.slideshow-playing .slideshow-bar,
.stage-wrap.autotour-playing .slideshow-bar { opacity: 1; }
.slideshow-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--oak), #f2cca0);
}

/* Filmstrip thumbnails under stage */
.filmstrip-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.filmstrip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  flex: 1;
}
.thumb-btn {
  flex: 0 0 148px;
  padding: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  background: var(--bg-dark-elev);
  position: relative;
  text-align: left;
  transition: border-color 0.2s, transform 0.15s;
}
.thumb-btn:hover { transform: translateY(-2px); border-color: rgba(217, 172, 124, 0.45); }
.thumb-btn.active { border-color: var(--oak-strong); }
.thumb-btn img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.78;
  transition: opacity 0.2s;
}
.thumb-btn.active img,
.thumb-btn:hover img { opacity: 1; }
.thumb-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px 8px 5px;
  background: linear-gradient(to top, rgba(15, 13, 10, 0.9), transparent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slideshow-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.speed-select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-dark);
  color: var(--ink-light);
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12.5px;
}
.speed-select option { background: #1e1b18; color: #fff; }

/* ===== Content Sections ===== */
.content-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 24px;
}
.content-section.alt-bg {
  max-width: none;
  background: #ede6dc;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.content-section.alt-bg > .section-inner {
  max-width: 1320px;
  margin: 0 auto;
}
.section-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 8px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink-dark);
}
.section-head p {
  margin: 6px 0 0;
  color: var(--ink-muted);
  max-width: 660px;
  font-size: 15px;
}

/* Living Room Deep Dive: Day/Night Comparison Slider + Specs */
.living-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 28px;
  align-items: stretch;
}
.compare-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.compare-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: ew-resize;
}
.compare-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare-after-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}
.compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.compare-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #161310;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.compare-badge {
  position: absolute;
  top: 12px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(20, 17, 14, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  pointer-events: none;
}
.compare-badge.left { left: 12px; }
.compare-badge.right { right: 12px; }
.compare-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.specs-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.specs-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 28px;
}
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.kpi-box {
  background: var(--bg-warm);
  border-radius: var(--radius-sm);
  padding: 12px;
}
.kpi-val {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-dark);
  line-height: 1.1;
}
.kpi-lbl {
  font-size: 11.5px;
  color: var(--ink-muted);
  margin-top: 2px;
}
.materials-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
  font-size: 14px;
}
.materials-list li {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.materials-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--oak);
  flex-shrink: 0;
  transform: translateY(-1px);
}
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  border: none;
  background: var(--ink-dark);
  color: var(--ink-light);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.primary-btn:hover { background: #332d26; transform: translateY(-1px); }
.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--ink-dark);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}
.secondary-btn:hover { border-color: var(--oak); background: #fffdf9; }

/* 5-angle Living Gallery Grid */
.angles-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.angle-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 22px rgba(20, 17, 14, 0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.angle-card:hover {
  transform: translateY(-4px);
  border-color: var(--oak);
  box-shadow: 0 14px 30px rgba(20, 17, 14, 0.12);
}
.angle-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.angle-card-body {
  padding: 11px 13px;
}
.angle-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.angle-name {
  font-weight: 600;
  font-size: 14px;
  margin-top: 2px;
}

/* ===== Video Presentation Cinema ===== */
.video-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.vtab-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-card);
  color: var(--ink-dark);
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
}
.vtab-btn.active {
  background: var(--ink-dark);
  color: var(--ink-light);
  border-color: var(--ink-dark);
}
.cinema-card {
  background: var(--bg-dark);
  border-radius: var(--radius-lg);
  padding: 18px;
  color: var(--ink-light);
  box-shadow: var(--shadow-dark);
}
.cinema-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  background: #000;
  display: block;
}
.cinema-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}
.cinema-meta h3 {
  margin: 0 0 4px;
  font-family: var(--font-serif);
  font-size: 25px;
}
.cinema-meta p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-light-muted);
  max-width: 720px;
}
.chapters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
}
.chapter-chip {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-light);
  font-size: 12.5px;
  transition: background 0.2s, border-color 0.2s;
}
.chapter-chip:hover {
  background: var(--oak);
  color: #161310;
  border-color: var(--oak);
}

/* ===== Room Directory Cards ===== */
.rooms-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.room-dir-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.room-dir-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.room-dir-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 8px;
}
.room-dir-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.room-dir-top h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
}
.room-dir-area {
  font-weight: 700;
  font-size: 13px;
  color: var(--terracotta);
}
.room-dir-body p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  flex: 1;
}

/* ===== Google Flow Prompts Section ===== */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.flow-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 18px;
  border: 1px solid var(--border-light);
  box-shadow: 0 8px 24px rgba(18, 15, 11, 0.05);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.flow-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.flow-scene-title {
  font-weight: 700;
  font-size: 15px;
}
.flow-scene-num {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--bg-warm);
  color: var(--terracotta);
  font-size: 12px;
  font-weight: 700;
  margin-right: 6px;
}
.flow-frames {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
}
.flow-frame-box {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--bg-warm);
}
.flow-frame-box img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.flow-frame-fn {
  padding: 4px 8px;
  font-size: 11px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flow-arrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--oak);
}
.flow-prompt-text {
  margin: 0;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  background: #f9f6f1;
  border: 1px solid rgba(29, 26, 22, 0.08);
  font-size: 12.5px;
  line-height: 1.5;
  color: #3a342e;
  max-height: 112px;
  overflow-y: auto;
}
.copy-btn {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-light);
  background: var(--bg-warm);
  color: var(--ink-dark);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.2s;
}
.copy-btn:hover { background: var(--ink-dark); color: #fff; }
.copy-btn.copied { background: #2e7d52; color: #fff; border-color: #2e7d52; }

.footer {
  background: var(--bg-dark);
  color: var(--ink-light-muted);
  padding: 28px 24px;
  text-align: center;
  font-size: 13px;
}
.footer strong { color: var(--ink-light); }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .living-grid { grid-template-columns: 1fr; }
  .angles-grid { grid-template-columns: repeat(3, 1fr); }
  .rooms-overview-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: 1fr; }
  .mini-plan-card { width: 220px; }
}
@media (max-width: 760px) {
  .topbar-inner { padding: 10px 14px; }
  .nav-links { display: none; }
  .tour-section { padding: 12px 12px 24px; }
  .room-pills { gap: 6px; }
  .room-pill { padding: 6px 11px; font-size: 12px; }
  .viewer-actions { gap: 6px; }
  .tool-btn { padding: 6px 10px; font-size: 11.5px; }
  #btn-toggle-plan { display: none; }
  .stage-wrap { aspect-ratio: 4 / 3; max-height: 62vh; border-radius: 14px; }
  .hud-pill { display: none; }
  .stage-top-hud { justify-content: flex-end; top: 10px; right: 10px; }
  .caption-card { max-width: 100%; padding: 8px 11px; }
  .caption-title { font-size: 17px; }
  .caption-text { display: none; }
  .mini-plan-card { display: none !important; }
  .stage-arrow { width: 32px; height: 32px; font-size: 16px; }
  .stage-arrow.prev { left: 8px; }
  .stage-arrow.next { right: 8px; }
  .hs-door .hs-ring { width: 32px; height: 32px; font-size: 13px; }
  .hs-step .hs-ring, .hs-turn .hs-ring { width: 28px; height: 28px; font-size: 13px; }
  .hs-info .hs-ring { width: 24px; height: 24px; font-size: 14px; }
  .hs-tag { font-size: 10px; padding: 2px 7px; }
  .hs-tag small { display: none; }
  .hs-step .hs-tag, .hs-turn .hs-tag { display: none; }
  .thumb-btn { flex: 0 0 116px; }
  .angles-grid { grid-template-columns: repeat(2, 1fr); }
  .rooms-overview-grid { grid-template-columns: 1fr; }
  .content-section { padding: 42px 16px; }
}
