/* ============ Tokens ============ */
:root {
  --bg: #f5f9fb;
  --bg-tint: #e9f2f4;
  --surface: #ffffff;
  --ink: #0e2233;
  --ink-2: #445869;
  --ink-3: #7a8b99;
  --line: #d9e5ea;
  --primary: #0e9f6e;        /* green */
  --accent: #1a6fd6;         /* blue */
  --primary-soft: #dcf3ea;
  --dark: #0c2437;
  --radius: 20px;
  --shadow: 0 18px 50px -22px rgba(12, 36, 55, .35);
  --shadow-sm: 0 6px 22px -12px rgba(12, 36, 55, .3);
  --display: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.container { width: min(1320px, 100% - 48px); margin-inline: auto; }
[data-icon] { display: inline-flex; width: 1.25em; height: 1.25em; flex: none; }
[data-icon] svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

h1, h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); }
h1 em { font-style: italic; color: var(--primary); }
h2 { font-size: clamp(1.9rem, 3vw, 2.7rem); }
h3 { font-size: 1.15rem; font-weight: 600; }
.lead { color: var(--ink-2); font-size: 1.08rem; max-width: 54ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--primary);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; white-space: nowrap; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; box-shadow: 0 10px 24px -12px var(--primary); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-ghost { border-color: var(--line); background: var(--surface); }

/* ============ Header ============ */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(245, 249, 251, .86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.45rem; font-weight: 500; line-height: 1; }
.logo svg { width: 34px; height: 34px; color: var(--primary); }
.logo small { display: block; margin-top: 4px; font: 500 .56rem/1 var(--sans); letter-spacing: .32em; text-transform: uppercase; color: var(--ink-3); }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: .95rem; color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 18px; font-size: .92rem; }
.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); align-items: center; justify-content: center; }

/* ============ Hero ============ */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 480px at 82% 18%, #d3efe4 0%, transparent 70%),
    radial-gradient(600px 420px at 8% 90%, #d9e8f7 0%, transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 560px; gap: 40px; align-items: center; }
.hero-copy .lead { margin-top: 20px; }

.search { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; }
.search-tabs { display: flex; gap: 4px; padding: 4px 4px 8px; }
.search-tabs button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; color: var(--ink-2); font-weight: 500; }
.search-tabs button.is-active { background: var(--dark); color: #fff; }
.search-fields { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 8px; align-items: stretch; }
.field { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid transparent; }
.field:focus-within { border-color: var(--accent); }
.field span { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field select, .field textarea { border: 0; background: none; outline: 0; padding: 2px 0; width: 100%; min-width: 0; resize: vertical; }
.search-go { border-radius: 14px; padding-inline: 24px; }

.hero-stats { display: flex; gap: 36px; margin-top: 32px; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1.2; }
.hero-stats span { font-size: .88rem; color: var(--ink-3); }

/* ============ Stage ============ */
.stage { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 16px; justify-items: stretch; }
.floors { display: flex; flex-direction: column; gap: 2px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); }
.floors button { width: 100%; text-align: left; border: 0; background: none; padding: 7px 10px; border-radius: 10px; font-size: .86rem; color: var(--ink-2); white-space: nowrap; transition: background .15s, color .15s; }
.floors button:hover { background: var(--bg-tint); color: var(--ink); }
.floors button.is-active { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; font-weight: 600; }

.frame-wrap { position: relative; }
.frame { position: relative; aspect-ratio: 770 / 850; border-radius: 26px; overflow: hidden; background: #dfe9ed; box-shadow: var(--shadow); isolation: isolate; }

/* The source render is 1672x941 with interface elements baked in at its edges;
   these offsets show only the tower (x 440-1210, y 0-850). */
.crop { position: absolute; inset: 0; overflow: hidden; }
.crop img { position: absolute; top: 0; left: -57.14%; width: 217.14%; max-width: none; height: auto; }
.ghost img { filter: grayscale(1) contrast(.5) brightness(1.4); opacity: .28; }
.ghost::after {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(26, 111, 214, .14) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(90deg, rgba(26, 111, 214, .14) 0 1px, transparent 1px 28px),
    rgba(236, 245, 248, .45);
}
.built, .struct { clip-path: inset(100% 0 0 0); }
.built img { transition: filter .45s; }
/* bare concrete structure, before finishes and lights */
.struct img { filter: grayscale(1) sepia(.12) contrast(.95) brightness(.62); }
/* real site photographs for the groundwork phases */
.site-photos { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.site-photos img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s; animation: kenburns 9s ease-in-out infinite alternate; }
.site-photos img:nth-child(2) { animation-direction: alternate-reverse; object-position: 30% 50%; }
.site-photos img:nth-child(3) { object-position: 35% 50%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
.frame.is-building[data-phase="0"] .site-photos img[data-phase="0"],
.frame.is-building[data-phase="1"] .site-photos img[data-phase="1"],
.frame.is-building[data-phase="2"] .site-photos img[data-phase="2"] { opacity: 1; }
.frame.is-building .site-photos::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(20, 16, 10, .55)); opacity: 0; transition: opacity .6s; }
.frame.is-building[data-phase="0"] .site-photos::after, .frame.is-building[data-phase="1"] .site-photos::after, .frame.is-building[data-phase="2"] .site-photos::after { opacity: 1; }
.frame[data-phase="0"] .buildline, .frame[data-phase="1"] .buildline, .frame[data-phase="2"] .buildline { background: none; box-shadow: none; z-index: 3; }

/* scaffolding and safety netting over the floors still being finished */
.scaffold { position: absolute; left: 5%; right: 5%; top: 100%; height: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background:
    repeating-linear-gradient(90deg, rgba(20, 22, 20, .55) 0 1.5px, transparent 1.5px 30px),
    repeating-linear-gradient(0deg, rgba(20, 22, 20, .45) 0 1.5px, transparent 1.5px 22px),
    repeating-linear-gradient(90deg, rgba(40, 96, 78, .34) 0 2px, rgba(40, 96, 78, .26) 2px 4px); }
.frame.is-building .scaffold { opacity: 1; }

/* Selected floor lifted out of the tower */
.lift { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .35s; filter: drop-shadow(0 16px 16px rgba(0, 0, 0, .6)); }
.lift-img { clip-path: inset(26.5% 5% 64.7% 5% round 6px); transition: clip-path .5s cubic-bezier(.3, .8, .3, 1), transform .55s cubic-bezier(.3, .8, .3, 1); }
.frame.is-built[data-mode="building"] .lift { opacity: 1; }
.frame.is-built[data-mode="building"] .lift-img,
.frame.is-built[data-mode="building"] .band { transform: translateY(-9px) scale(1.09); }
.frame.is-built[data-mode="building"] .built img { filter: brightness(.5) saturate(.75); }

.phases { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity .4s; pointer-events: none; }
.phases li { padding: 4px 9px; border-radius: 999px; font-size: .7rem; font-weight: 500; color: var(--ink-3); white-space: nowrap; transition: background .3s, color .3s; }
.phases li.is-done { color: var(--primary); }
.phases li.is-on { background: var(--dark); color: #fff; }
.frame.is-building .phases { opacity: 1; }

.buildline { position: absolute; left: 0; right: 0; top: 100%; height: 2px; background: var(--accent); box-shadow: 0 0 18px 3px rgba(26, 111, 214, .6); opacity: 0; transition: opacity .4s; z-index: 2; }
.buildline span { position: absolute; left: 14px; bottom: 8px; padding: 4px 12px; border-radius: 999px; background: var(--dark); color: #fff; font-size: .76rem; font-weight: 500; letter-spacing: .04em; white-space: nowrap; }
.frame.is-building .buildline { opacity: 1; }

.band { position: absolute; left: 5%; right: 5%; top: 26.5%; height: 8.8%; border-radius: 6px; border: 1.5px solid rgba(160, 235, 205, .95); background: none; box-shadow: 0 0 22px rgba(60, 200, 150, .5); opacity: 0; transition: top .5s cubic-bezier(.3, .8, .3, 1), height .5s, opacity .4s, transform .55s cubic-bezier(.3, .8, .3, 1); pointer-events: none; z-index: 2; }
.hotspot { position: absolute; left: 80.5%; top: 32%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; border: 5px solid var(--primary); box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); opacity: 0; transition: top .45s cubic-bezier(.3, .8, .3, 1), opacity .4s; animation: ping 2s infinite; z-index: 3; }
@keyframes ping { 70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.frame.is-built[data-mode="building"] .band { opacity: 1; z-index: 3; }

.frame-brand { position: absolute; left: 16px; top: 16px; z-index: 3; padding: 9px 14px; border-radius: 14px; background: rgba(255, 255, 255, .88); backdrop-filter: blur(8px); line-height: 1.25; }
.frame-brand strong { display: block; font-family: var(--display); font-weight: 500; font-size: 1rem; }
.frame-brand span { font-size: .74rem; color: var(--ink-3); }
.frame:not([data-mode="building"]) .frame-brand, .frame.is-building .frame-brand { display: none; }

/* Unit card — sits over the tower's right edge */
.unit-card { position: absolute; left: 82.5%; top: 9%; width: 236px; z-index: 4; padding: 20px; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.unit-card h3 { font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.unit-card .sub { font-weight: 500; font-size: .95rem; margin-top: 2px; }
.unit-card ul { margin: 14px 0; display: grid; gap: 9px; }
.unit-card li { display: flex; align-items: center; gap: 12px; font-size: .93rem; color: var(--ink-2); }
.unit-card li i { color: var(--ink); }
.unit-card .price { font-size: .82rem; color: var(--ink-3); margin-bottom: 12px; }
.unit-card .price b { font-family: var(--display); font-size: 1.2rem; font-weight: 500; color: var(--ink); margin-right: 4px; }
.unit-card .btn { width: 100%; padding: 10px 14px; font-size: .92rem; }

.modes { grid-column: 1 / -1; justify-self: center; display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); width: max-content; max-width: 100%; }
.modes button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: .88rem; color: var(--ink-2); white-space: nowrap; }
.modes button:hover { color: var(--ink); }
.modes button.is-active { background: linear-gradient(135deg, var(--accent), var(--primary)); color: #fff; font-weight: 500; }
.modes button:disabled { opacity: .4; cursor: not-allowed; }
.modes .replay { color: var(--primary); min-width: 104px; justify-content: center; }

/* Panes over the frame */
.pane { position: absolute; inset: 0; z-index: 5; background: #f5f9fb; animation: fade .35s; }
@keyframes fade { from { opacity: 0; } }
.pane-title { position: absolute; left: 20px; top: 16px; font-weight: 600; font-size: .98rem; }
.pane-note { position: absolute; left: 20px; bottom: 14px; font-size: .76rem; color: var(--ink-3); }
.plan svg { position: absolute; inset: 44px 18px 34px; width: calc(100% - 36px); height: calc(100% - 78px); }
.plan-fill rect { fill: #fff; }
.plan-fill rect:last-child { fill: #dcf3ea; }
.plan-balcony { fill: #eef3ea; stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 5 4; }
.plan-walls rect, .plan-walls path { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: square; }
.plan-doors path { fill: none; stroke: var(--primary); stroke-width: 1.5; }
.plan-labels text { font: 600 12px var(--sans); fill: var(--ink); text-anchor: middle; }
.plan-labels text.dim { font-weight: 400; font-size: 10.5px; fill: var(--ink-3); }

.tour { background: #e3edf0; }
.tour-canvas { position: absolute; inset: 0; cursor: grab; touch-action: pan-y; }
.tour-canvas:active { cursor: grabbing; }
.tour-canvas canvas { width: 100% !important; height: 100% !important; }
.tour-rooms { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm); }
.tour-rooms button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: .84rem; color: var(--ink-2); }
.tour-rooms button.is-active { background: var(--dark); color: #fff; }
.tour-nav { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 4px; border-radius: 999px; background: rgba(12, 36, 55, .78); color: #fff; font-size: .78rem; white-space: nowrap; }
.tour-nav button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .16); color: #fff; font-size: 1.1rem; line-height: 1; }
.tour-nav button:hover { background: var(--primary); }
.tour-credit { position: absolute; left: 14px; bottom: 58px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .85); font-size: .7rem; color: var(--ink-2); }
.tour-fallback { pointer-events: none; background: rgba(227, 237, 240, .7); position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); }

/* ============ Sections ============ */
.section { padding: 88px 0; }
.section-tint { background: var(--bg-tint); }
.section-head { margin-bottom: 40px; }
.section-head.split { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

.types { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.type { display: flex; flex-direction: column; gap: 4px; padding: 24px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, box-shadow .2s, border-color .2s; }
.type:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--accent); }
.type i { width: 46px; height: 46px; padding: 11px; margin-bottom: 14px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.type strong { font-weight: 600; }
.type span { font-size: .86rem; color: var(--ink-3); line-height: 1.4; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border: 1px solid var(--line); background: var(--surface); padding: 8px 16px; border-radius: 999px; font-size: .9rem; color: var(--ink-2); }
.chips button.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.filter-note { margin: -20px 0 24px; color: var(--ink-2); font-size: .92rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; aspect-ratio: 400 / 260; overflow: hidden; background: #dfe9ed; }
.card-media > svg { width: 100%; height: 100%; }
.card-media .photo { position: absolute; left: -74.63%; top: -66.67%; width: 249.55%; max-width: none; }
.badge { position: absolute; left: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .74rem; font-weight: 600; letter-spacing: .04em; }
.badge.new { background: var(--primary); color: #fff; }
.fav { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; color: var(--ink-2); }
.fav[aria-pressed="true"] { color: #c0392b; }
.fav[aria-pressed="true"] svg { fill: currentColor; }
.card-body { padding: 20px; }
.card-kind { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.card-body h3 { margin: 4px 0 2px; }
.card-loc { display: flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--ink-3); }
.card-specs { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; padding: 14px 0; border-block: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.card-specs span { display: inline-flex; align-items: center; gap: 6px; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card-price { font-family: var(--display); font-size: 1.35rem; font-weight: 500; }
.card-price small { font: 400 .8rem var(--sans); color: var(--ink-3); }
.card-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; font-weight: 500; color: var(--primary); }
.empty { text-align: center; padding: 48px 0; display: grid; gap: 16px; justify-items: center; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.steps li { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps .num { display: block; font-family: var(--display); font-size: 2rem; color: var(--primary); margin-bottom: 18px; }
.steps p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }

.amen-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.amen-grid .lead { margin: 18px 0 28px; }
.amen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.amen li { padding: 22px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; }
.amen i { width: 28px; height: 28px; color: var(--primary); margin-bottom: 14px; }
.amen span { font-size: .86rem; color: var(--ink-3); }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ticks { margin-top: 28px; display: grid; gap: 12px; color: var(--ink-2); }
.ticks li { display: flex; align-items: center; gap: 12px; }
.ticks i { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.enquiry { display: grid; gap: 12px; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.form-msg { color: #2f6b3c; font-size: .92rem; }

.footer { background: var(--dark); color: #b9c8d3; padding: 64px 0 28px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer p { max-width: 38ch; font-size: .93rem; }
.footer h4 { color: #fff; font-weight: 500; margin-bottom: 14px; }
.footer-grid a:not(.logo) { display: block; padding: 4px 0; font-size: .93rem; }
.footer-grid a:not(.logo):hover { color: var(--accent); }
.footer-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .84rem; color: #8597a5; }

/* ============ Responsive ============ */
@media (max-width: 1240px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .stage { width: min(560px, 100%); margin-inline: auto; }
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0; padding: 8px 24px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-actions { margin-left: auto; }
  .nav-toggle { display: inline-flex; }
  .types { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .amen-grid, .contact { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 60px 0; }
  .hero { padding: 36px 0 52px; }
  .nav-actions .btn-ghost { display: none; }
  .stage { grid-template-columns: minmax(0, 1fr); }
  .floors { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .floors button { width: auto; }
  .unit-card { position: static; width: auto; margin-top: 16px; }
  .modes { grid-column: 1; width: auto; border-radius: 20px; }
  .search-fields { grid-template-columns: 1fr; }
  .search-go { padding-block: 14px; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .types, .amen { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards, .steps, .footer-grid { grid-template-columns: 1fr; }
  .nav-actions .btn-dark { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.credits { flex-basis: 100%; font-size: .76rem; line-height: 1.5; }
.credits a { text-decoration: underline; }

/* ============ Inner pages ============ */
.nav-links a.is-active { color: var(--ink); font-weight: 500; box-shadow: 0 2px 0 var(--primary); }
.page-hero { position: relative; padding: 56px 0 64px; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 420px at 85% 10%, #d3efe4 0%, transparent 70%); }
.page-hero h1 { font-size: clamp(2.3rem, 4vw, 3.5rem); max-width: 18ch; }
.page-hero .lead { margin-top: 18px; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.crumbs { display: flex; gap: 8px; margin-bottom: 22px; font-size: .88rem; color: var(--ink-3); }
.crumbs a:hover { color: var(--primary); }
.crumbs span[aria-current] { color: var(--ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.toolbar .field { background: var(--surface); border-color: var(--line); min-width: min(280px, 100%); }
.section .filter-note { margin: 0 0 24px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature i { width: 46px; height: 46px; padding: 11px; margin-bottom: 16px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.faq { max-width: 820px; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--primary); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-2); }
.cta-band { padding: 72px 0; background: var(--dark); color: #fff; text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { margin: 14px auto 28px; max-width: 52ch; color: #b9c8d3; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); margin-left: 8px; }
.amen-frame { width: 100%; max-width: 440px; margin-left: auto; }
.level { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; padding: 40px 0; border-top: 1px solid var(--line); }
.level:first-of-type { border-top: 0; padding-top: 0; }
.level h3 { font-family: var(--display); font-weight: 500; font-size: 1.6rem; }
.level > div > p { margin-top: 8px; color: var(--ink-2); font-size: .95rem; }
.level .amen { grid-template-columns: repeat(3, 1fr); }
.level .amen li { background: var(--surface); }
@media (max-width: 900px) {
  .page-hero-grid, .level { grid-template-columns: 1fr; gap: 28px; }
  .amen-frame { margin-inline: auto; }
  .features { grid-template-columns: 1fr; }
}
@media (max-width: 780px) { .level .amen { grid-template-columns: repeat(2, 1fr); } .cta-band .btn-ghost { margin: 10px 0 0; } }
.crop img.patch { clip-path: polygon(62.560% 24.655%, 64.115% 24.655%, 78.708% 18.278%, 78.708% 19.660%, 64.234% 26.355%, 64.234% 27.630%, 62.560% 27.630%); transform: translateY(2.763%); }

/* ============ Property detail page ============ */
.detail-hero { padding-bottom: 40px; }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.detail-head h1 { margin: 10px 0 8px; max-width: none; }
.tags { display: flex; gap: 8px; }
.tags .badge { position: static; border: 1px solid var(--line); }
.tags .badge.new { border-color: var(--primary); }
.detail-price { text-align: right; }
.detail-price span { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.detail-price strong { font-family: var(--display); font-weight: 500; font-size: 2rem; }
.detail-price small { font: 400 1rem var(--sans); color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: repeat(3, 1fr); gap: 12px; height: clamp(380px, 46vw, 620px); }
.shot { position: relative; overflow: hidden; border-radius: 18px; background: #dfe9ed; aspect-ratio: auto !important; min-height: 0; }
.shot:first-child { grid-row: 1 / -1; }
.shot img { position: absolute; max-width: none; height: auto; }
/* gallery cells are free-form, so cover them instead of using the exact crop box */
.gallery .shot img { width: auto !important; height: 100% !important; left: 50% !important; top: 0 !important; translate: -50% 0; }
.gallery .shot:nth-child(1) img { height: 111% !important; }
.gallery .shot:nth-child(2) img { height: 330% !important; top: -18% !important; }
.gallery .shot:nth-child(3) img { height: 300% !important; top: -105% !important; }
.gallery .shot:nth-child(4) img { height: 400% !important; top: -268% !important; }
.detail-body { padding-top: 24px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.jump { position: sticky; top: 72px; z-index: 5; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.jump a { padding: 7px 14px; border-radius: 999px; font-size: .9rem; color: var(--ink-2); white-space: nowrap; }
.jump a:hover { background: var(--bg-tint); color: var(--ink); }
.detail-main article { padding: 36px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 130px; }
.detail-main article:last-child { border-bottom: 0; }
.detail-main h2 { font-size: 1.7rem; margin-bottom: 14px; }
.detail-main article > p { color: var(--ink-2); max-width: 68ch; }
.detail-main article > p + p { margin-top: 10px; }
.fine { font-size: .82rem; color: var(--ink-3) !important; margin-top: 12px !important; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.facts li { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.facts i { grid-row: span 2; align-self: center; width: 26px; height: 26px; color: var(--primary); }
.facts span { font-size: .78rem; color: var(--ink-3); }
.facts strong { font-weight: 500; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.units { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
.units th { text-align: left; padding: 14px 16px; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--bg-tint); }
.units td { padding: 14px 16px; border-top: 1px solid var(--line); }
.units tbody tr:hover { background: #f4f9fb; }
.plan-card { position: relative; max-width: 520px; margin-top: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.plan-card svg { position: static; width: 100%; height: auto; }
.pano { position: relative; margin-top: 16px; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #e3edf0; }
.pano .tour-credit { bottom: 14px; }
.detail-main .amen { margin: 4px 0 20px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; }
.nearby { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.nearby li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.nearby span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.nearby i { color: var(--primary); }
.nearby strong { font-weight: 500; white-space: nowrap; }
.detail-side { position: sticky; top: 96px; }
.side-card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); display: grid; gap: 14px; }
.side-label { font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.side-price { font-family: var(--display); font-size: 2rem; line-height: 1; margin-top: -8px; }
.side-price small { font: 400 .9rem var(--sans); color: var(--ink-3); }
.side-facts { display: grid; gap: 8px; padding: 14px 0; border-block: 1px solid var(--line); color: var(--ink-2); font-size: .93rem; }
.side-facts li { display: flex; align-items: center; gap: 10px; }
.side-card .enquiry { padding: 0; border: 0; box-shadow: none; }
.card h3 a:hover { color: var(--primary); }
@media (max-width: 1000px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .detail-price { text-align: left; }
}
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr 1fr; height: 520px; }
  .shot:first-child { grid-row: 1; grid-column: 1 / -1; }
  .gallery .shot:nth-child(1) img { height: auto !important; width: 220% !important; top: -6% !important; }
  .gallery .shot:nth-child(4) { grid-column: 1 / -1; }
  .facts, .nearby { grid-template-columns: 1fr; }
  .pano { aspect-ratio: 4 / 3; }
}
.shot img.patch { clip-path: polygon(62.560% 24.655%, 64.115% 24.655%, 78.708% 18.278%, 78.708% 19.660%, 64.234% 26.355%, 64.234% 27.630%, 62.560% 27.630%); transform: translateY(2.763%); }

/* ============ Type: Plus Jakarta Sans throughout ============ */
h1, h2, .logo, .hero-stats strong, .frame-brand strong, .card-price, .steps .num, .level h3,
.detail-price strong, .side-price, .unit-card .price b { font-weight: 700; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 4.1vw, 3.6rem); line-height: 1.1; }
h1 em { font-style: normal; background: linear-gradient(90deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-hero h1 { font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.logo small { letter-spacing: .3em; }

/* ============ Floor explorer (detail page) ============ */
:root { --s-available: #0e9f6e; --s-rented: #1a6fd6; --s-reserved: #d98a00; --s-sold: #8a99a6; }
.explorer { padding-top: 64px; scroll-margin-top: 72px; }
.ex-grid { display: grid; grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 40px; align-items: start; }
.ex-frame { width: 100%; position: sticky; top: 96px; }
.ex-frame.no-pick .lift, .ex-frame.no-pick .band { opacity: 0 !important; }
.ex-frame.no-pick .built img { filter: none !important; }
.hits { position: absolute; inset: 0; z-index: 4; }
.hit { position: absolute; left: 5%; right: 5%; border: 0; padding: 0; background: transparent; border-radius: 6px; cursor: pointer; transition: background .2s, box-shadow .2s; }
.hit span { position: absolute; left: 8px; top: 50%; translate: 0 -50%; padding: 4px 10px; border-radius: 999px; background: var(--dark); color: #fff; font-size: .74rem; font-weight: 500; white-space: nowrap; opacity: 0; transition: opacity .2s; pointer-events: none; }
.hit:hover, .hit:focus-visible { background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .9); }
.hit:hover span, .hit:focus-visible span, .hit.is-active span { opacity: 1; }
.hit.is-active { background: none; box-shadow: none; }
/* until someone picks a floor, a highlight runs up the tower to show the floors are clickable */
.no-pick .hit { animation: sweep 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .3s); }
@keyframes sweep { 0%, 26%, 100% { background: transparent; box-shadow: none; } 8% { background: rgba(255, 255, 255, .3); box-shadow: inset 0 0 0 1.5px #fff, 0 0 18px rgba(120, 220, 180, .7); } }

.ex-panel { min-height: 420px; }
.ex-panel h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; }
.ex-panel .sub { color: var(--ink-2); margin-top: 4px; }
.ex-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 12px 6px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: .86rem; color: var(--ink-2); }
.ex-back i { rotate: 180deg; }
.statbar { display: flex; gap: 3px; height: 10px; margin: 18px 0 10px; border-radius: 999px; overflow: hidden; }
.statbar span { min-width: 6px; }
.s-available { background: var(--s-available); } .s-rented { background: var(--s-rented); } .s-reserved { background: var(--s-reserved); } .s-sold { background: var(--s-sold); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .86rem; color: var(--ink-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.rows { margin-top: 22px; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 16px; width: 100%; padding: 12px 16px; text-align: left; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s, transform .2s; }
.row:hover { border-color: var(--primary); transform: translateX(3px); }
.row strong { font-weight: 600; }
.row .statbar { margin: 0; height: 8px; }
.row em { font-style: normal; font-size: .86rem; color: var(--ink-2); white-space: nowrap; }
.flats { margin-top: 22px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.flat { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; display: grid; gap: 10px; border-top: 3px solid var(--line); }
.flat[data-status="available"] { border-top-color: var(--s-available); } .flat[data-status="rented"] { border-top-color: var(--s-rented); }
.flat[data-status="reserved"] { border-top-color: var(--s-reserved); } .flat[data-status="sold"] { border-top-color: var(--s-sold); }
.flat.is-open { box-shadow: 0 0 0 2px var(--primary); }
.flat-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.flat-top span { font-size: .8rem; color: var(--ink-3); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: #fff; }
.flat h4 { margin: 0; font-size: 1.2rem; font-weight: 700; }
.flat-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .86rem; color: var(--ink-2); }
.flat-specs span { display: inline-flex; align-items: center; gap: 6px; }
.flat-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.flat-foot b { font-weight: 700; font-size: 1.05rem; }
.flat-foot b.na { font-weight: 500; font-size: .9rem; color: var(--ink-3); }
.flat-foot button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--primary); font-weight: 600; font-size: .9rem; }
.ex-viewer { margin-top: 40px; scroll-margin-top: 90px; }
.ex-viewer-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 4px; }
.ex-viewer-head h3 { font-size: 1.4rem; font-weight: 700; }
.ex-viewer-head .eyebrow { margin-bottom: 8px; }
.ex-viewer .pano { aspect-ratio: 21 / 9; }
@media (max-width: 900px) {
  .ex-grid { grid-template-columns: 1fr; }
  .ex-frame { position: relative; top: 0; max-width: 460px; margin-inline: auto; }
  .ex-viewer .pano { aspect-ratio: 4 / 3; }
}
@media (max-width: 560px) { .flats { grid-template-columns: 1fr; } .row { grid-template-columns: 84px 1fr; } .row em { display: none; } }

/* ============ Search results page ============ */
.results-hero { padding-bottom: 40px; }
.results-hero .search { margin-top: 24px; max-width: 860px; }
.results { padding-top: 40px; }
.view-all { margin-top: 36px; text-align: center; }

/* ============ Villa photos + villa detail page ============ */
.card-media .cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover .cover { transform: scale(1.05); }
.vgallery { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: clamp(320px, 42vw, 560px); }
.vgallery > * { border-radius: 18px; overflow: hidden; background: #dfe9ed center / cover no-repeat; min-height: 0; }
.vgallery img { grid-row: 1 / -1; width: 100%; height: 100%; object-fit: cover; }
.vgallery div { background-size: 230%; }
.zone-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.zone-frame { position: sticky; top: 96px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); isolation: isolate; background: #dfe9ed; }
.zone-frame img { display: block; width: 100%; height: auto; transition: filter .45s; }
.zone-frame.picked > img { filter: brightness(.45) saturate(.7); }
.zlift { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s; filter: drop-shadow(0 14px 16px rgba(0, 0, 0, .6)); }
.zone-frame.picked .zlift { opacity: 1; }
.zlift img { transition: clip-path .5s cubic-bezier(.3, .8, .3, 1), transform .55s cubic-bezier(.3, .8, .3, 1); }
.zone-frame.picked .zlift img { transform: translateY(-6px) scale(1.06); }
.zone-frame .hit { left: auto; right: auto; }
.zone-frame:not(.picked) .hit { animation: sweep 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.zone-frame:not(.picked) .hit span { opacity: 1; }
.room { padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.room.is-open { box-shadow: 0 0 0 2px var(--primary); }
.room h4 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.room p { font-size: .86rem; color: var(--ink-2); margin-top: 2px; }
.room button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--primary); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.rooms-list { margin-top: 20px; display: grid; gap: 10px; }
.row.zone-row { grid-template-columns: 1fr auto; }
.features-list { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; color: var(--ink-2); }
.features-list li { display: flex; align-items: center; gap: 10px; }
.features-list i { color: var(--primary); }
.pill.big { font-size: .8rem; padding: 5px 12px; }
@media (max-width: 900px) {
  .zone-grid { grid-template-columns: 1fr; }
  .zone-frame { position: relative; top: 0; }
  .vgallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 460px; }
  .vgallery img { grid-row: 1; grid-column: 1 / -1; }
  .features-list { grid-template-columns: 1fr; }
}

/* ============ Interior shown inside the photo frame; view + lighting switches ============ */
.frame-pano { position: absolute; inset: 0; z-index: 5; background: #e3edf0; animation: fade .35s; }
.frame-pano .pano { position: absolute; inset: 0; margin: 0; aspect-ratio: auto; border-radius: 0; }
.frame-pano .tour-rooms { top: auto; bottom: 14px; }
.frame-pano .pano .tour-credit { bottom: 58px; }
.frame-cap { position: absolute; left: 14px; top: 58px; z-index: 6; padding: 5px 12px; border-radius: 999px; background: rgba(12, 36, 55, .82); color: #fff; font-size: .8rem; font-weight: 500; pointer-events: none; }
.frame-cap:empty { display: none; }
.frame-back { position: absolute; left: 14px; top: 14px; z-index: 6; border: 0; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); font-size: .84rem; font-weight: 500; }
.frame-ctl { position: absolute; top: 14px; z-index: 6; display: flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); }
.frame-ctl.left { left: 14px; } .frame-ctl.right { right: 14px; }
.frame-ctl button { border: 0; background: none; padding: 6px 13px; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.frame-ctl button.is-active { background: var(--dark); color: #fff; }
.zone-frame[data-view="interior"] .hits, .zone-frame[data-view="interior"] .zlift { display: none; }

/* Day / night look. One photograph per villa, so the other time of day is a lighting treatment. */
.zone-frame { --tf: brightness(1); }
.zone-frame > img, .zlift img { filter: var(--tf); transition: filter .7s, clip-path .5s cubic-bezier(.3, .8, .3, 1), transform .55s cubic-bezier(.3, .8, .3, 1); }
.zone-frame.picked > img { filter: var(--tf) brightness(.45) saturate(.7); }
.zone-frame::before, .zone-frame::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .7s; }
.zone-frame::before { background: linear-gradient(rgba(6, 16, 62, .62), rgba(10, 24, 70, .4)); mix-blend-mode: multiply; }
.zlift { z-index: 2; }
/* photo taken at dusk */
.photo-aerial[data-time="night"] { --tf: brightness(.8) contrast(1.1) saturate(1.05); }
.photo-aerial[data-time="night"]::before { opacity: .55; }
.photo-aerial[data-time="day"] { --tf: brightness(1.42) saturate(1.1) contrast(.94); }
.photo-aerial[data-time="day"]::after { opacity: 1; background: linear-gradient(rgba(190, 225, 255, .22), rgba(255, 248, 225, .08)); mix-blend-mode: screen; }
/* photo taken in daylight */
.photo-pool[data-time="night"] { --tf: brightness(.5) saturate(.7) contrast(1.15); }
.photo-pool[data-time="night"]::before { opacity: 1; }
.photo-pool[data-time="night"]::after { opacity: 1; mix-blend-mode: screen; background:
  radial-gradient(16% 9% at 37% 50%, rgba(255, 190, 105, .75), transparent 72%),
  radial-gradient(9% 8% at 50% 50%, rgba(255, 200, 120, .7), transparent 72%),
  radial-gradient(10% 7% at 64% 51%, rgba(255, 185, 100, .5), transparent 72%),
  radial-gradient(22% 14% at 84% 30%, rgba(255, 180, 95, .45), transparent 72%),
  radial-gradient(46% 20% at 48% 88%, rgba(70, 210, 225, .5), transparent 72%); }
.zone-frame[data-time="night"] .frame-pano canvas { filter: brightness(.55) saturate(.85) sepia(.18); transition: filter .7s; }
.zone-frame[data-time="day"] .frame-pano canvas { transition: filter .7s; }
button.room { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .2s, transform .2s; }
button.room:hover { border-color: var(--primary); transform: translateX(3px); }
.room .go { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.room .out { font-size: .78rem; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 560px) { .frame-pano .pano .tour-credit { display: none; } .frame-ctl button { padding: 5px 9px; font-size: .76rem; } }

/* ============ Villa: 360° interior opens on the clicked area of the photo ============ */
.zone-frame .frame-pano { inset: auto; border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9), 0 22px 44px rgba(0, 0, 0, .55); animation: none;
  transition: left .5s cubic-bezier(.3, .8, .3, 1), top .5s cubic-bezier(.3, .8, .3, 1), width .5s cubic-bezier(.3, .8, .3, 1), height .5s cubic-bezier(.3, .8, .3, 1); }
.zone-frame[data-view="interior"] .hits { display: block; }
.zone-frame[data-view="interior"] .hit.is-active { pointer-events: none; }
.zone-frame .frame-cap { top: 12px; left: 12px; max-width: calc(100% - 64px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.zone-frame .frame-pano .tour-credit { display: none; }
.zone-frame .frame-pano .tour-rooms { bottom: 10px; }
.zone-frame .frame-pano .tour-rooms button { padding: 5px 11px; font-size: .78rem; }
.frame-close { position: absolute; right: 10px; top: 10px; z-index: 6; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); font-size: 1.2rem; line-height: 1; color: var(--ink); box-shadow: var(--shadow-sm); }
.frame-close:hover { background: var(--dark); color: #fff; }

/* ============ Villa: full-width view, interior fills the frame ============ */
.zone-grid { display: block; }
.zone-frame { position: relative; top: auto; width: min(100%, calc(82vh * var(--ar, 1.5))); margin-inline: auto; }
.zone-frame .frame-pano { border-radius: 0; box-shadow: none; }
.zone-frame .frame-pano .tour-rooms { display: none; }
.zone-frame .frame-cap { top: 16px; left: 50%; translate: -50% 0; max-width: calc(100% - 420px); font-size: .86rem; padding: 7px 16px; }
.room-chips { position: absolute; left: 50%; bottom: 16px; translate: -50% 0; z-index: 6; display: flex; gap: 4px; padding: 5px; max-width: calc(100% - 32px); overflow-x: auto; scrollbar-width: none; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); }
.room-chips button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-size: .88rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.room-chips button.is-active { background: var(--dark); color: #fff; }
.pano-arrow { position: absolute; top: 50%; translate: 0 -50%; z-index: 6; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-sm); font-size: 1.7rem; line-height: 1; color: var(--ink); transition: background .2s, color .2s; }
.pano-arrow.left { left: 16px; } .pano-arrow.right { right: 16px; }
.pano-arrow:hover { background: var(--dark); color: #fff; }
.pano-hint { position: absolute; left: 50%; bottom: 76px; translate: -50% 0; z-index: 6; padding: 6px 14px; border-radius: 999px; background: rgba(12, 36, 55, .8); color: #fff; font-size: .8rem; white-space: nowrap; pointer-events: none; transition: opacity .6s; }
.pano-hint.gone { opacity: 0; }
.zone-info { position: absolute; left: 16px; bottom: 16px; z-index: 4; width: min(340px, calc(100% - 32px)); padding: 18px 20px; border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow); animation: fade .35s; }
.zone-info h4 { margin: 0; font-size: 1.15rem; font-weight: 700; }
.zone-info p { margin-top: 2px; font-size: .88rem; color: var(--ink-2); }
.zone-info ul { margin: 12px 0 0; display: grid; gap: 6px; font-size: .88rem; }
.zone-info li { display: flex; justify-content: space-between; gap: 14px; }
.zone-info li em { font-style: normal; color: var(--ink-3); white-space: nowrap; }
.zone-info .btn { margin-top: 14px; width: 100%; padding: 10px 14px; font-size: .9rem; }
.zone-info-x { position: absolute; right: 10px; top: 8px; border: 0; background: none; font-size: 1.3rem; line-height: 1; color: var(--ink-3); }
@media (max-width: 780px) {
  .zone-frame { width: 100%; }
  .zone-frame[data-view="interior"] { aspect-ratio: 4 / 5; }
  .zone-frame[data-view="interior"] > img { height: 100%; object-fit: cover; }
  .zone-frame .frame-cap { top: 62px; max-width: calc(100% - 32px); }
  .pano-arrow { width: 40px; height: 40px; }
  .zone-info { position: relative; left: 0; bottom: 0; width: auto; border-radius: 0; box-shadow: none; }
}

/* ============ Villa: full page width + door and curtain controls ============ */
.zone-frame { width: 100%; }
.frame-acts { position: absolute; right: 16px; bottom: 16px; z-index: 6; display: flex; gap: 6px; }
.frame-acts button { border: 0; padding: 9px 16px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); font-size: .86rem; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background .2s, color .2s; }
.frame-acts button:hover { background: var(--dark); color: #fff; }
.no-anim .pano-door i, .no-anim .pano-curtain { transition: none !important; }

/* interior: door leaf swings on its left hinge */
.pano-door { position: absolute; inset: 0; z-index: 3; perspective: 2200px; pointer-events: none; }
.pano-door i { position: absolute; inset: 0; transform-origin: left center; backface-visibility: hidden; transition: transform 1.3s cubic-bezier(.6, .05, .3, 1);
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .05) 0 2px, transparent 2px 9px),
    linear-gradient(90deg, #5d3a20, #7c4f2c 18%, #6c4426 45%, #835532 72%, #5a381f);
  box-shadow: inset 0 0 0 10px #4a2e19, inset 0 0 80px rgba(0, 0, 0, .35); }
.pano-door i::before, .pano-door i::after { content: ""; position: absolute; left: 9%; right: 9%; border: 3px solid rgba(0, 0, 0, .28); border-radius: 4px; box-shadow: inset 0 0 30px rgba(0, 0, 0, .22), 0 1px 0 rgba(255, 255, 255, .08); }
.pano-door i::before { top: 9%; height: 36%; } .pano-door i::after { bottom: 9%; height: 36%; }
.pano-door b { position: absolute; right: 4%; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #f3dfa0, #b8913d 60%, #7d5f1f); box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
.door-open .pano-door i { transform: rotateY(-104deg); }

/* interior: drapes part to the sides */
.pano-curtain { position: absolute; top: 0; bottom: 0; width: 50.5%; z-index: 2; pointer-events: none; transition: transform 1.4s cubic-bezier(.5, .05, .3, 1);
  background:
    linear-gradient(rgba(0, 0, 0, .1), transparent 12%, transparent 80%, rgba(0, 0, 0, .16)),
    repeating-linear-gradient(90deg, #efe8da 0, #e0d7c5 26px, #f4eee3 52px, #d9cfbc 74px, #efe8da 100px); }
.pano-curtain.l { left: 0; } .pano-curtain.r { right: 0; }
.curtains-open .pano-curtain.l { transform: translateX(-101%); }
.curtains-open .pano-curtain.r { transform: translateX(101%); }

/* exterior: drapes drawn across the windows of the photograph */
.wins { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.win { position: absolute; overflow: hidden; border-radius: 2px; }
.win::before, .win::after { content: ""; position: absolute; top: 0; bottom: 0; width: 50.5%; transition: transform 1.2s cubic-bezier(.5, .05, .3, 1);
  background: repeating-linear-gradient(90deg, #efe8da 0, #ddd3c0 3px, #f4eee3 6px, #d5cab6 9px, #efe8da 12px); }
.win::before { left: 0; transform-origin: left; } .win::after { right: 0; transform-origin: right; }
.curtains-open .win::before, .curtains-open .win::after { transform: scaleX(0); }
.zone-frame[data-time="night"] .win::before, .zone-frame[data-time="night"] .win::after { filter: brightness(.55) sepia(.5) saturate(1.6); }
.zone-frame.picked .wins { opacity: .45; }
@media (max-width: 900px) { .frame-acts { bottom: 74px; right: 12px; } .frame-acts button { padding: 7px 12px; font-size: .78rem; } .pano-hint { display: none; } }

/* ============ Clickable door / curtain spots inside the 360° photo ============ */
.pano-spots { position: absolute; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.pano-spot { position: absolute; translate: -50% -50%; pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; border: 0; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, .94); box-shadow: 0 6px 20px rgba(0, 0, 0, .35); font-size: .84rem; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.pano-spot i { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(14, 159, 110, .6); animation: spot 1.8s infinite; position: relative; }
.pano-spot.view i { background: var(--accent); }
.pano-spot i::after { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: #fff; }
@keyframes spot { 70% { box-shadow: 0 0 0 12px rgba(14, 159, 110, 0); } 100% { box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); } }
.pano-spot:hover { background: var(--dark); color: #fff; }
.pano.busy .pano-spots { display: none; }
.tour-canvas canvas { transition: opacity .38s; }
.pano.fading .tour-canvas canvas { opacity: 0; }
.pano.fading { background: #0b1118; }

/* the outlook behind the curtains */
.pano-view { position: absolute; inset: 0; z-index: 5; overflow: hidden; background: #0b1118; }
.pano-view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pv-drape { position: absolute; top: 0; bottom: 0; width: 50.5%; transition: transform 1.5s cubic-bezier(.5, .05, .3, 1);
  background: linear-gradient(rgba(0, 0, 0, .1), transparent 12%, transparent 80%, rgba(0, 0, 0, .16)), repeating-linear-gradient(90deg, #efe8da 0, #e0d7c5 26px, #f4eee3 52px, #d9cfbc 74px, #efe8da 100px); }
.pv-drape.l { left: 0; } .pv-drape.r { right: 0; }
.pano-view.open .pv-drape.l { transform: translateX(-92%); }
.pano-view.open .pv-drape.r { transform: translateX(92%); }
.pano-view p { position: absolute; left: 50%; top: 16px; translate: -50% 0; padding: 7px 16px; border-radius: 999px; background: rgba(12, 36, 55, .82); color: #fff; font-size: .86rem; font-weight: 500; }
.pano-view button { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; border: 0; padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 600; }
.pano-view button:hover { background: var(--dark); color: #fff; }

/* villa interior: the in-photo spots replace the overlay door / curtain buttons */
.zone-frame[data-view="interior"] .frame-acts { display: none; }
.zone-frame .pano-curtain { display: none; }
.zone-frame .pano-view p { display: none; }
/* while a door is being walked through or the outlook is showing, clear the room controls out of the way */
.frame-pano:has(.pano.busy) .room-chips, .frame-pano:has(.pano.busy) .pano-arrow, .frame-pano:has(.pano.busy) .pano-hint { display: none; }
.pano.busy .tour-rooms { display: none; }

/* ============ Independent house photo: day / night look (photo taken on an overcast evening) ============ */
.photo-house[data-time="day"] { --tf: brightness(1.12) saturate(1.12) contrast(1.02); }
.photo-house[data-time="night"] { --tf: brightness(.5) saturate(.8) contrast(1.15); }
.photo-house[data-time="night"]::before { opacity: .95; }
.photo-house[data-time="night"]::after { opacity: 1; mix-blend-mode: screen; background:
  radial-gradient(5% 7% at 56.5% 23.5%, rgba(255, 205, 130, .85), transparent 72%),
  radial-gradient(4% 5% at 59% 55%, rgba(255, 200, 125, .8), transparent 72%),
  radial-gradient(3.5% 5% at 45.3% 57%, rgba(255, 215, 150, .8), transparent 72%),
  radial-gradient(3.5% 5% at 52% 57%, rgba(255, 215, 150, .8), transparent 72%),
  radial-gradient(22% 5% at 58% 34%, rgba(255, 200, 125, .5), transparent 72%),
  radial-gradient(5% 6% at 52% 20%, rgba(255, 220, 170, .55), transparent 72%),
  radial-gradient(5% 5% at 42.5% 56%, rgba(255, 220, 170, .5), transparent 72%),
  radial-gradient(5% 5% at 65.5% 57%, rgba(255, 220, 170, .5), transparent 72%); }

/* ============ Walk-through: no door / curtain animations, "Walk to" navigation ============ */
.frame-acts, .wins, .pano-door, .pano-curtain, .pano-view, .zlift { display: none !important; }
.zone-frame.picked > img { filter: var(--tf); }
.zone-frame > img { transform-origin: 0 0; transition: filter .7s, transform 1.1s cubic-bezier(.4, .1, .2, 1); }
.zone-frame.zoomed .hits { display: none; }
.zone-frame.zoomed::after { opacity: 0 !important; }
.zone-frame:not(.zoomed) .hit span { opacity: 1; }
.walk { position: absolute; left: 14px; top: 66px; z-index: 6; display: grid; gap: 2px; padding: 8px; border-radius: 16px; background: rgba(255, 255, 255, .94); box-shadow: var(--shadow-sm); }
.walk b { padding: 2px 10px 6px; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.walk button { display: flex; align-items: center; gap: 9px; border: 0; background: none; padding: 7px 12px 7px 10px; border-radius: 10px; font-size: .84rem; font-weight: 500; color: var(--ink-2); text-align: left; white-space: nowrap; transition: background .2s, color .2s; }
.walk button i { width: 16px; height: 16px; color: var(--primary); }
.walk button:hover { background: var(--bg-tint); color: var(--ink); }
.walk button.is-active { background: var(--dark); color: #fff; }
.walk button.is-active i { color: #fff; }
.pano-arrow { top: 66%; }
.pano-back { position: absolute; left: 50%; bottom: 76px; translate: -50% 0; z-index: 6; border: 0; padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 600; }
.pano-back:hover { background: var(--dark); color: #fff; }
/* keep the room buttons available while looking out of a window; hide only the turn arrows and hint */
.frame-pano:has(.pano.busy) .room-chips { display: flex; }
.zone-info { left: auto; right: 16px; }
@media (max-width: 780px) {
  .walk { left: 10px; right: 10px; top: 58px; display: flex; overflow-x: auto; scrollbar-width: none; padding: 5px; border-radius: 999px; }
  .walk b { display: none; }
  .walk button { padding: 6px 10px; font-size: .78rem; }
  .zone-frame .frame-cap { top: 104px; }
  .zone-info { right: 0; }
}

/* ============ Apartment tower: rooftop / parking 360° view ============ */
.frame-pano.solo .tour-rooms { display: none; }
.row[data-shared] em { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 600; }

/* ============ Blueprint to 3D ============ */
.bp-hero { padding-bottom: 36px; }
.bp-section { padding-top: 40px; }
.bp-stage { position: relative; height: min(82vh, 820px); min-height: 520px; border-radius: 22px; overflow: hidden; background: #dfeaf2; box-shadow: var(--shadow); isolation: isolate; }
.bp-canvas { position: absolute; inset: 0; cursor: grab; }
.bp-canvas:active { cursor: grabbing; }
.bp-canvas canvas { width: 100% !important; height: 100% !important; display: block; }
.bp-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bp-pin, .bp-tag { position: absolute; translate: -50% -50%; pointer-events: auto; border: 0; cursor: pointer; font-weight: 700; white-space: nowrap; }
.bp-pin { width: 34px; height: 34px; border-radius: 50%; background: #e2542b; color: #fff; font-size: .74rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 4px 12px rgba(0, 0, 0, .35); }
.bp-pin:hover { background: var(--dark); }
.bp-tag { padding: 4px 10px; border-radius: 999px; background: rgba(12, 36, 55, .85); color: #fff; font-size: .72rem; font-weight: 600; }
.bp-tag:hover { background: var(--primary); }
.bp-panel { position: absolute; top: 14px; z-index: 3; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); display: grid; gap: 10px; }
.bp-panel.left { left: 14px; width: 230px; }
.bp-panel.right { right: 14px; width: 250px; max-height: calc(100% - 90px); overflow-y: auto; }
.bp-upload { cursor: pointer; padding: 10px 14px; font-size: .9rem; }
.bp-reset { border: 1px solid var(--line); background: var(--surface); padding: 7px 12px; border-radius: 999px; font-size: .82rem; }
.bp-slider { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--ink-2); }
.bp-slider input { width: 100%; accent-color: var(--primary); }
.bp-panel .fine { margin: 0 !important; }
.bp-panel.right > b { font-size: .9rem; }
.bp-panel ol { display: grid; gap: 2px; }
.bp-panel ol button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 10px; text-align: left; font-size: .84rem; color: var(--ink-2); }
.bp-panel ol button:hover { background: var(--bg-tint); color: var(--ink); }
.bp-panel ol b { flex: none; width: 34px; height: 22px; display: grid; place-items: center; border-radius: 999px; background: #e2542b; color: #fff; font-size: .7rem; }
.bp-bar { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; z-index: 3; display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); max-width: calc(100% - 28px); overflow-x: auto; }
.bp-bar button { border: 0; background: none; padding: 8px 15px; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.bp-bar button.is-active, .bp-bar button[aria-pressed="true"] { background: var(--dark); color: #fff; }
.bp-card { position: absolute; left: 50%; bottom: 68px; translate: -50% 0; z-index: 3; padding: 8px 16px; border-radius: 999px; background: rgba(12, 36, 55, .88); color: #fff; font-size: .86rem; font-weight: 500; white-space: nowrap; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; }
.bp-notes { margin-top: 28px; }
@media (max-width: 780px) {
  .bp-stage { height: 78vh; }
  .bp-panel.left { width: 190px; padding: 10px; }
  .bp-panel.right { display: none; }
}
/* blueprint scene: quieter markers and a soft photographic vignette */
.bp-stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 62%, rgba(8, 18, 30, .28)); }
.bp-labels { z-index: 2; }
.bp-pin { width: 28px; height: 28px; font-size: .66rem; background: rgba(226, 84, 43, .92); box-shadow: 0 0 0 2px rgba(255, 255, 255, .8), 0 3px 10px rgba(0, 0, 0, .4); }
.bp-tag { background: rgba(12, 36, 55, .7); backdrop-filter: blur(4px); }

/* ============ Saved blueprints: plan list, apartment embed, admin ============ */
.bp-panel.left { width: 240px; max-height: calc(100% - 90px); overflow-y: auto; }
.bp-panel.left > b { font-size: .9rem; }
.bp-plans button b { width: auto; height: auto; padding: 2px 9px; background: var(--primary-soft); color: var(--primary); font-size: .72rem; white-space: nowrap; }
.bp-plans button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-plans button.is-active { background: var(--dark); color: #fff; }
.bp-plans button.is-active b { background: rgba(255, 255, 255, .18); color: #fff; }
.bp-tag.has-plan { background: var(--primary); }
.bp-embed { background: var(--bg); padding-bottom: 40px; }
.bp-embed .section-head { margin-bottom: 24px; }
.admin { max-width: 980px; }
.admin-form { max-width: 440px; margin-top: 24px; box-shadow: none; }
.admin-form.wide { max-width: 640px; }
.admin-form input[type="file"] { padding: 6px 0; font-size: .9rem; }
.admin-msg { margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: var(--primary-soft); color: #0b6b4b; font-weight: 500; }
.admin-msg.bad { background: #fde8e4; color: #a3321c; }
.admin-h2 { margin: 44px 0 16px; font-size: 1.5rem; }
.admin-acts { display: flex; gap: 14px; align-items: center; justify-content: flex-end; }
.admin-acts a { color: var(--primary); font-weight: 600; }
.admin-acts button { border: 0; background: none; padding: 0; color: #a3321c; font-weight: 600; cursor: pointer; }
.admin-out { margin-top: 24px; }

/* ============ Property page: fixed section menu + blueprints in the Floor plan section ============ */
.jump { position: sticky; top: 72px; z-index: 40; display: block; padding: 0; margin: 0; overflow: visible; background: rgba(245, 249, 251, .94); backdrop-filter: blur(12px); border-block: 1px solid var(--line); }
.jump .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.jump a { padding: 8px 16px; font-weight: 500; }
.jump a.is-active { background: var(--dark); color: #fff; }
/* everything that sticks or scrolls into view sits below the header (72px) and this menu (~55px) */
.detail [id] { scroll-margin-top: 136px; }
.detail .ex-frame, .detail .detail-side { top: 144px; }
.plans-h { margin: 32px 0 8px; font-size: 1.25rem; font-weight: 700; }
.plan-sheets { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 18px; }
.plan-sheet { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: box-shadow .2s, transform .2s; }
.plan-sheet:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.plan-sheet img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #fff; }
.plan-sheet figcaption { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: .92rem; }
@media (max-width: 900px) { .detail .ex-frame, .detail .detail-side { top: 0; } }
.plan-sheets { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.plan-sheet { max-width: 640px; }
.plan-sheet img { aspect-ratio: 7 / 5; }

/* ============ Blueprint viewer: block and level pickers ============ */
.bp-panel.left { width: 232px; gap: 8px; }
.bp-panel.left > b, .bp-panel.left #bpDrawings > b { font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.bp-blocks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.bp-blocks button, .bp-levels button { border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 6px 0; font-size: .82rem; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.bp-blocks button:hover, .bp-levels button:hover { border-color: var(--primary); color: var(--ink); }
.bp-blocks button.is-active, .bp-levels button.is-active { background: var(--dark); border-color: var(--dark); color: #fff; }
.bp-levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.bp-levels button { font-size: .74rem; padding: 6px 2px; white-space: nowrap; }
.bp-levels button:nth-last-child(-n+2) { grid-column: span 2; }
.bp-levels button:first-child { grid-column: 1 / -1; }
.bp-tune summary { cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.bp-tune[open] summary { margin-bottom: 8px; }
.bp-tune .bp-slider + .bp-slider { margin-top: 8px; }
#bpAmenities b { width: 26px; }
@media (max-width: 780px) { .bp-panel.left { width: 200px; } }
.bp-panel.left { overflow-x: hidden; }
.bp-blocks { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.bp-levels { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bp-levels button:nth-last-child(-n+2) { grid-column: auto; }
.bp-levels button:last-child { grid-column: span 2; }

/* ============ Clubhouse room pictures ============ */
.bp-photo-crop { position: relative; overflow: hidden; background: #dfe9ed; }
.bp-photo-crop img { position: absolute; max-width: none; height: auto; }
.bp-photo { position: absolute; z-index: 4; left: 50%; top: 50%; translate: -50% -52%; width: min(760px, calc(100% - 520px)); min-width: min(520px, calc(100% - 28px)); margin: 0; border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 3px rgba(255, 255, 255, .9); animation: roomIn .45s cubic-bezier(.3, .8, .3, 1); }
@keyframes roomIn { from { opacity: 0; scale: .9; } }
.bp-photo figcaption { display: none; }
.bp-photo button { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .94); font-size: 1.3rem; line-height: 1; box-shadow: var(--shadow-sm); cursor: pointer; }
.bp-photo button:hover { background: var(--dark); color: #fff; }
.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.room-tile { margin: 0; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; }
.room-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
@media (max-width: 700px) { .room-grid { grid-template-columns: 1fr; } }

/* ============ Blueprint viewer: inside a room ============ */
.bp-back { position: absolute; left: 50%; top: 14px; translate: -50% 0; z-index: 4; border: 0; padding: 10px 20px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); font-size: .9rem; font-weight: 600; cursor: pointer; }
.bp-back:hover { background: var(--dark); color: #fff; }
.bp-stage.in-room .bp-panel.left, .bp-stage.in-room [data-bp-view], .bp-stage.in-room [data-bp-toggle] { display: none; }
.bp-stage.in-room .bp-bar { display: none; }
.bp-stage.in-room .bp-card { bottom: 18px; font-size: .95rem; padding: 10px 20px; }
.bp-stage.in-room::after { background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0, 0, 0, .45)); }
.bp-photo { display: none; }

/* ============ Blueprint viewer: "All blocks" in the block picker ============ */
.bp-blocks .bp-all { grid-column: 1 / -1; }
.bp-stage.is-tower .bp-pin, .bp-stage.is-tower .bp-panel.right { display: none !important; }

/* ============ Blueprint viewer: inside a flat (dollhouse / 360°) ============ */
.bp-flat { position: absolute; left: 50%; bottom: 62px; translate: -50% 0; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: calc(100% - 28px); }
.bp-flat-views, .bp-flat-rooms { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--shadow-sm); max-width: 100%; overflow-x: auto; }
.bp-flat button { border: 0; background: none; padding: 8px 15px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.bp-flat-rooms button { font-size: .78rem; font-weight: 500; padding: 6px 12px; }
.bp-flat button:hover { color: var(--ink); }
.bp-flat button.is-active { background: var(--dark); color: #fff; }
.bp-flat-rooms button.is-active { background: var(--primary); }
.bp-stage.in-room:has(.bp-flat-views .is-active[data-flat-view="doll"])::after { background: none; }

/* ============ Blueprint viewer: compare flats ============ */
.bp-panel ol li { display: flex; align-items: center; gap: 2px; }
.bp-panel ol li > button:first-child { flex: 1; min-width: 0; }
.bp-panel ol button.bp-cmp-add { flex: none; width: 28px; height: 28px; padding: 0; justify-content: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; color: var(--ink-2); }
.bp-cmp-add.is-on, .bp-panel ol button.bp-cmp-add.is-on { background: var(--primary); border-color: var(--primary); color: #fff; }
.bp-flat .bp-cmp-add { border: 1px solid var(--line); margin-left: 4px; }
.bp-cmp-pill { position: absolute; left: 14px; bottom: 14px; z-index: 4; border: 0; padding: 10px 16px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .86rem; font-weight: 600; box-shadow: var(--shadow-sm); cursor: pointer; }
.bp-cmp-pill:hover { background: var(--dark); }
.bp-compare { margin-top: 28px; scroll-margin-top: 130px; }
.bp-compare-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 18px; margin-bottom: 12px; }
.bp-compare-head h3 { margin: 0; }
.bp-compare > .fine { margin-top: 10px; }
.cmp { table-layout: fixed; }
.cmp th:first-child { width: 150px; }
.cmp thead th { vertical-align: top; text-transform: none; letter-spacing: 0; font-size: .9rem; color: var(--ink); }
.cmp thead strong { display: block; font-size: 1.05rem; }
.cmp thead span { display: block; font-weight: 500; color: var(--ink-3); }
.cmp tbody th { text-align: left; padding: 14px 16px; border-top: 1px solid var(--line); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: none; }
.cmp td em { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(14, 159, 110, .12); color: var(--primary); font-size: .72rem; font-style: normal; font-weight: 700; }
.cmp .cmp-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cmp .cmp-acts button { border: 1px solid var(--line); background: var(--surface); padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.cmp .cmp-acts button:first-child { background: var(--dark); border-color: var(--dark); color: #fff; }
.cmp .cmp-acts button:hover { border-color: var(--primary); }
@media (max-width: 640px) { .cmp th:first-child { width: 104px; } .cmp th, .cmp td { padding: 10px; } .bp-cmp-pill { bottom: 62px; } }

/* ============ Apartments page: compare ============ */
.cmp-pick { position: absolute; left: 12px; bottom: 12px; border: 0; padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, .95); color: var(--ink); font-size: .8rem; font-weight: 600; box-shadow: var(--shadow-sm); cursor: pointer; }
.cmp-pick:hover { background: var(--dark); color: #fff; }
.cmp-pick.is-on { background: var(--primary); color: #fff; }
.apt-compare { margin-top: 44px; scroll-margin-top: 100px; }
.cmp .cmp-acts a { border: 1px solid var(--dark); background: var(--dark); color: #fff; padding: 5px 11px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.cmp-bar { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; max-width: calc(100% - 24px); padding: 10px 14px; border-radius: 20px; background: rgba(12, 36, 55, .96); color: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .3); font-size: .86rem; }
.cmp-bar[hidden] { display: none; }
.cmp-bar > span { font-weight: 700; padding: 0 4px; }
.cmp-chip { border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .1); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: .8rem; cursor: pointer; }
.cmp-chip:hover { background: rgba(255, 255, 255, .22); }
.cmp-bar .btn { padding: 8px 16px; font-size: .84rem; }
.cmp-bar .btn[disabled] { opacity: .55; cursor: default; }
.cmp-clear { border: 0; background: none; color: rgba(255, 255, 255, .75); font-size: .8rem; text-decoration: underline; cursor: pointer; }
.cmp .cmp-plan { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: #b7babd; cursor: pointer; box-shadow: var(--shadow-sm); }
.cmp .cmp-plan img { display: block; width: 100%; height: auto; transition: scale .3s; }
.cmp .cmp-plan:hover img { scale: 1.04; }
