  body { background: var(--cream); }

  /* ─── Page header ─── */
  .page-head {
    background: var(--paper);
    padding: 56px 0 32px;
    border-bottom: 1px solid var(--line);
  }
  .page-head h1 {
    font-size: clamp(36px, 4vw, 56px);
    line-height: 1.15;
  }
  .page-head h1 .script {
    display: inline-block;
    font-size: 1.05em;
    vertical-align: -4px;
    padding-bottom: 0.12em; /* room for descenders */
  }
  .page-head .lede {
    color: var(--muted);
    font-size: 17px;
    margin-top: 28px;
    max-width: 620px;
  }

  /* ─── Plan switcher (tabs) ─── */
  .plan-switcher {
    margin-top: 36px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
  }
  .plan-tab {
    background: none;
    border: none;
    padding: 14px 4px;
    margin-right: 24px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color .15s;
    white-space: nowrap;
  }
  .plan-tab .badge {
    font-size: 12px;
    color: var(--muted);
    background: var(--cream);
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 500;
  }
  .plan-tab.active {
    color: var(--ink);
    border-bottom-color: var(--orange);
  }
  .plan-tab.active .badge { background: var(--orange-soft); color: var(--orange-deep); }
  .plan-tab:hover { color: var(--ink); }

  /* ─── Variant toggle ─── */
  .plan-controls {
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
  }
  .plan-meta { display: flex; gap: 28px; align-items: baseline; flex-wrap: wrap; row-gap: 8px; }
  .plan-meta .name { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
  .plan-meta .stat { font-size: 14px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
  .plan-meta .stat strong { color: var(--ink); font-weight: 600; }
  .variant-toggle {
    display: inline-flex;
    background: var(--cream);
    border-radius: 999px;
    padding: 4px;
    border: 1px solid var(--line);
  }
  .variant-toggle button {
    background: none;
    border: none;
    padding: 8px 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
  }
  .variant-toggle button.active {
    background: white;
    color: var(--ink);
    box-shadow: var(--shadow-sm);
  }

  /* ─── Main tour stage ─── */
  .tour-stage {
    padding: 36px 0 96px;
  }
  .tour-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 28px;
    align-items: start;
  }

  /* ─── Floor plan viewer ─── */
  .plan-viewer {
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-sm);
  }
  .plan-viewer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
  }
  .plan-viewer-head .legend {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
  }
  .plan-viewer-head .legend .dot {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--orange);
    color: white;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
  }
  .plan-viewer-head .auto-tour {
    background: none;
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
  }
  .plan-viewer-head .auto-tour:hover { background: var(--green-soft); border-color: var(--green); color: var(--green-deep); }
  .plan-viewer-head .auto-tour.playing { background: var(--orange); color: white; border-color: var(--orange); }

  .plan-canvas {
    position: relative;
    background: var(--cream);
    border-radius: var(--radius-md);
    aspect-ratio: 4/3;
    overflow: hidden;
  }
  .plan-canvas svg { width: 100%; height: 100%; display: block; }
  .plan-canvas svg .wall { stroke: #1F4A46; stroke-width: 2.5; fill: none; stroke-linejoin: miter; }
  .plan-canvas svg .room-fill { fill: white; stroke: #C9D7D4; stroke-width: 1; }
  .plan-canvas svg .room-fill.active { fill: var(--orange-soft); stroke: var(--orange); stroke-width: 2; }
  .plan-canvas svg .room-fill.hover { fill: var(--green-soft); stroke: var(--green); stroke-width: 1.5; }
  .plan-canvas svg .room-label { fill: #7A8A87; font-size: 11px; font-family: "DM Sans", sans-serif; font-weight: 500; pointer-events: none; letter-spacing: 0.04em; text-transform: uppercase; }
  .plan-canvas svg .door { stroke: #1F4A46; stroke-width: 2.5; fill: none; }
  .plan-canvas svg .door-arc { stroke: #C9D7D4; stroke-width: 1; fill: none; stroke-dasharray: 2 2; }

  /* Camera markers */
  .cam-marker {
    cursor: pointer;
    pointer-events: all;
  }
  .cam-marker .pulse {
    fill: var(--orange);
    opacity: .25;
    transform-origin: center;
    transform-box: fill-box;
    animation: pulse 2s ease-out infinite;
  }
  .cam-marker .pulse.delay { animation-delay: 1s; }
  .cam-marker .dot { fill: var(--orange); transition: r .2s, fill .2s; }
  .cam-marker .icon { fill: white; pointer-events: none; }
  .cam-marker .num {
    fill: white;
    font-size: 10px;
    font-weight: 700;
    text-anchor: middle;
    pointer-events: none;
    font-family: "DM Sans", sans-serif;
  }
  .cam-marker:hover .dot { fill: var(--orange-deep); }
  .cam-marker.active .dot { fill: var(--green-deep); }
  .cam-marker.active .pulse { fill: var(--green-deep); }

  @keyframes pulse {
    0%   { transform: scale(1); opacity: .45; }
    100% { transform: scale(2.6); opacity: 0; }
  }

  /* Inline tooltip on the plan */
  .cam-tooltip {
    position: absolute;
    background: var(--ink);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transform: translate(-50%, calc(-100% - 12px));
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity .15s;
    z-index: 5;
    box-shadow: var(--shadow-md);
  }
  .cam-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px; height: 10px;
    background: var(--ink);
  }
  .cam-tooltip.visible { opacity: 1; }

  /* Instructional intro callout — appears on first load until first interaction */
  .intro-callout {
    position: absolute;
    background: var(--ink);
    color: white;
    padding: 12px 16px 12px 14px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    max-width: 220px;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    box-shadow: var(--shadow-lg);
    z-index: 4;
    animation: bobIntro 2.2s ease-in-out infinite;
  }
  .intro-callout::after {
    content: "";
    position: absolute;
    width: 14px; height: 14px;
    background: var(--ink);
    transform: rotate(45deg);
  }
  .intro-callout.bottom::after { bottom: -6px; left: 30px; }
  .intro-callout .arrow-icon {
    flex-shrink: 0;
    width: 24px; height: 24px;
    background: var(--orange);
    border-radius: 50%;
    display: grid; place-items: center;
    color: white;
  }
  .intro-callout button {
    background: none; border: none; color: rgba(255,255,255,.6); cursor: pointer; padding: 0 0 0 4px; font-size: 16px; line-height: 1;
  }
  .intro-callout button:hover { color: white; }
  .intro-callout.hidden { display: none; }

  @keyframes bobIntro {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
  }

  /* ─── Right panel: room viewer ─── */
  .room-panel {
    position: sticky;
    top: 96px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
  }
  .room-photo {
    aspect-ratio: 4/3;
    background: var(--cream);
    position: relative;
    overflow: hidden;
  }
  .room-photo img {
    width: 100%; height: 100%; object-fit: cover;
    transition: opacity .25s;
  }
  .room-photo .room-num {
    position: absolute;
    top: 16px; left: 16px;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: white;
    color: var(--orange-deep);
    display: grid; place-items: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
  }
  .room-photo .room-tag {
    position: absolute;
    top: 16px; right: 16px;
    background: rgba(0,0,0,.55);
    color: white;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    backdrop-filter: blur(8px);
  }
  .room-body {
    padding: 22px 24px 8px;
  }
  .room-body .row {
    display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px;
  }
  .room-body h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
  .room-body .dim { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
  .room-body p { color: var(--muted); font-size: 14px; line-height: 1.55; margin-top: 4px; }

  .room-nav {
    display: flex;
    justify-content: space-between;
    padding: 16px 24px;
    border-top: 1px solid var(--line);
    align-items: center;
  }
  .room-nav button {
    background: none;
    border: 1px solid var(--line);
    padding: 8px 14px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all .15s;
  }
  .room-nav button:hover:not(:disabled) { background: var(--cream); border-color: var(--ink); }
  .room-nav button:disabled { opacity: .35; cursor: default; }
  .room-nav .progress { font-size: 13px; color: var(--muted); }

  /* Thumbnail strip */
  .room-thumbs {
    padding: 0 24px 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .room-thumb {
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
    background: var(--cream);
    transition: transform .15s, border-color .15s;
  }
  .room-thumb img { width: 100%; height: 100%; object-fit: cover; }
  .room-thumb:hover { transform: translateY(-2px); }
  .room-thumb.active { border-color: var(--orange); }
  .room-thumb .thumb-num {
    position: absolute;
    bottom: 4px; right: 4px;
    background: rgba(0,0,0,.6);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: grid; place-items: center;
  }

  /* ─── Below: features strip ─── */
  .features-strip {
    margin-top: 32px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
  }
  .features-strip h4 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
  .features-strip ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
  .features-strip li::before { content: "·"; color: var(--orange); margin-right: 8px; font-weight: 700; }

  /* ─── Inquiry CTA bottom ─── */
  .plan-cta {
    margin-top: 32px;
    background: var(--green-deep);
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
  }
  .plan-cta h3 { color: white; font-size: 28px; line-height: 1.1; max-width: 580px; }
  .plan-cta h3 .script { color: var(--orange); display: inline-block; font-size: 1.05em; vertical-align: -3px; }
  .plan-cta p { color: rgba(255,255,255,.78); margin-top: 8px; font-size: 15px; max-width: 460px; }
  .plan-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }
  .plan-cta .btn-primary { background: var(--orange); }
  .plan-cta .btn-ghost-light { background: transparent; color: white; border-color: rgba(255,255,255,.3); }
  .plan-cta .btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: white; }

  @media (max-width: 980px) {
    .tour-grid { grid-template-columns: 1fr; }
    .room-panel { position: static; }
    .features-strip { grid-template-columns: 1fr 1fr; }
    .plan-cta { padding: 28px; flex-direction: column; align-items: flex-start; }
  }

  /* ─── Uploaded floor-plan image + percentage camera markers ─── */
  .plan-canvas { aspect-ratio: auto; padding: 16px; }
  .plan-stage { position: relative; width: 100%; line-height: 0; }
  .plan-bg { width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
  .plan-bg--empty { line-height: 1.4; display: flex; align-items: center; justify-content: center; min-height: 300px; color: var(--muted); background: repeating-linear-gradient(45deg,#fff,#fff 12px,#f6f2ea 12px,#f6f2ea 24px); border: 1px dashed var(--line); border-radius: var(--radius-sm); }
  .marker-layer { position: absolute; inset: 0; pointer-events: none; }
  .cam-marker { position: absolute; transform: translate(-50%,-50%); width: 30px; height: 30px; padding: 0; border: none; background: transparent; cursor: pointer; pointer-events: auto; }
  .cam-marker .dot { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; line-height: 1; border: 2px solid #fff; box-shadow: 0 2px 8px rgba(27,38,36,.3); z-index: 2; transition: transform .15s ease, background .15s ease; }
  .cam-marker .pulse { position: absolute; inset: 0; margin: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--orange); opacity: .45; animation: ocPulse 2.2s ease-out infinite; }
  .cam-marker .pulse.delay { animation-delay: 1.1s; }
  .cam-marker:hover .dot { transform: scale(1.12); }
  .cam-marker.active .dot { background: var(--green); transform: scale(1.15); }
  @keyframes ocPulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(2.6); opacity: 0; } }
