/* =====================================================================
   Ivonix: design system
   Warm cream matched to the renders (#F9EEE2), sand for contrast
   sections, white cards, deep ink, Ivonix navy as the single accent.
   Solid colours only (no gradients).
   ===================================================================== */
:root {
    --cream: #F9EEE2;
    --cream-2: #F2E4D2;
    --sand: #EADBC6;
    --paper: #FFFFFF;
    --ink: #1C1A17;
    --ink-2: #4B463F;
    --muted: #867C70;
    --line: #E2D2BD;
    --brand: #0B3B66;
    --brand-soft: #E4ECF4;
    --warm: #B4793F;
    --gold: #F3D2A6;
    --ok: #2F7A4D;
    --danger: #B3261E;
    --display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --ease: cubic-bezier(.16, 1, .3, 1);
    --header-h: 76px;
    --shadow: 0 22px 48px -24px rgba(60, 42, 20, .34);
    --shadow-lg: 0 40px 80px -36px rgba(40, 28, 14, .45);
    --shadow-sm: 0 6px 16px -8px rgba(60, 42, 20, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; color: var(--ink); letter-spacing: -.02em; }
em { font-style: normal; color: var(--brand); }
::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
[id] { scroll-margin-top: var(--header-h); }
.ic { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { position: relative; width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.kicker { margin: 0 0 16px; font-size: .76rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--warm); }
.display { font-size: clamp(2.2rem, 4.2vw, 3.6rem); font-weight: 700; line-height: 1.06; letter-spacing: -.035em; }
.lead { font-size: 1.06rem; color: var(--ink-2); max-width: 48ch; margin: 0; }
.eyebrow-sm { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.eyebrow-sm > span:not(.chip) { color: var(--ink); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head .display { margin: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow:hover { color: var(--brand); }

/* ---------- Buttons ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .94rem; cursor: pointer; white-space: nowrap; transition: transform .35s var(--ease), background-color .25s, color .25s, border-color .25s; }
.pill:hover { transform: translateY(-2px); }
.pill .ic { width: 1.1em; height: 1.1em; }
.pill-dark { background: var(--ink); color: var(--cream); }
.pill-dark:hover { background: var(--brand); }
.pill-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.pill-line:hover { background: var(--ink); color: var(--cream); }
.pill-light { background: #fff; color: var(--ink); }
.pill-light:hover { background: var(--gold); }
.pill-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.pill-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pill-block { width: 100%; }
.pill.is-loading { opacity: .6; pointer-events: none; }
.round-btn { flex-shrink: 0; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background-color .25s, color .25s, transform .3s var(--ease); }
.round-btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); }
.round-btn-wa { border-color: #1f9d55; color: #1f9d55; }
.round-btn-wa:hover { background: #1f9d55; color: #fff; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.chip-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.chip-dark { background: var(--ink); color: var(--cream); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h); display: flex; align-items: center; background: var(--cream); border-bottom: 1px solid var(--line); transition: background-color .3s, border-color .3s; }
.on-hero .site-header:not(.is-scrolled) { background: transparent; border-color: transparent; color: #fff; }
.on-hero .site-header:not(.is-scrolled) .nav { color: rgba(255, 255, 255, .85); }
.on-hero .site-header:not(.is-scrolled) .nav a::after { background: #fff; }
.on-hero .site-header:not(.is-scrolled) .wordmark span { color: var(--gold); }
.on-hero .site-header:not(.is-scrolled) .pill-dark { background: #fff; color: var(--ink); }
.on-hero .site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--display); font-weight: 800; font-size: 1.6rem; letter-spacing: -.04em; }
.wordmark span { color: var(--brand); }
.nav { display: flex; gap: 32px; font-weight: 500; font-size: .95rem; color: var(--ink-2); }
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.is-active { color: inherit; }
.site-header:not(.is-scrolled) .nav a.is-active, .nav a.is-active { font-weight: 600; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 20px; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; }
.header-cta .pill { height: 44px; padding: 0 20px; font-size: .88rem; }
.header-icon { display: none; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color .25s, color .25s; }
.header-icon .ic { width: 18px; height: 18px; }
.on-hero .site-header:not(.is-scrolled) .header-icon { border-color: rgba(255, 255, 255, .7); }

.flash { position: fixed; z-index: 60; left: 50%; top: calc(var(--header-h) + 14px); transform: translateX(-50%); padding: 12px 20px; border-radius: 12px; background: #E8F5EC; color: #1d5a36; font-weight: 500; box-shadow: var(--shadow); }
.flash-error { background: #FBEAE8; color: var(--danger); }

/* ---------- Home hero: photo, copy left, stacked property slider right ---------- */
.hero { position: relative; min-height: max(720px, 100svh); display: flex; align-items: center; padding: calc(var(--header-h) + 32px) 0 56px; overflow: hidden; color: #fff; isolation: isolate; background: #2a2420; }
.hero-bg { position: absolute; inset: -4% 0 0; z-index: -2; width: 100%; height: 108%; object-fit: cover; object-position: 30% center; will-change: transform; }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: rgba(18, 16, 14, .5); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hero-copy { max-width: 600px; }
.kicker-light { color: var(--gold); }
.hero-title { color: #fff; font-size: clamp(2.6rem, 4.8vw, 4.6rem); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; margin-bottom: 22px; }
.hero-title em { color: var(--gold); }
.hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; }
.hero-title .w > span { display: inline-block; }
.hero-sub { margin: 0 0 32px; max-width: 46ch; font-size: 1.08rem; color: rgba(255, 255, 255, .86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; margin: 44px 0 0; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .25); }
.hero-stats div { padding: 0 28px; border-left: 1px solid rgba(255, 255, 255, .25); }
.hero-stats div:first-child { padding-left: 0; border-left: 0; }
.hero-stats dt { font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }
.hero-stats dd { margin: 2px 0 0; font-size: .8rem; color: rgba(255, 255, 255, .72); }
.hero-trust { display: flex; align-items: center; gap: 10px; margin: 22px 0 0; font-size: .86rem; color: rgba(255, 255, 255, .8); }
.hero-trust span { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; font-size: .7rem; }

.hero-slider { position: relative; outline: none; }
.hs-deck { position: relative; height: clamp(440px, calc(100svh - var(--header-h) - 190px), 640px); margin: 0 40px 0 0; touch-action: pan-y; }
.hs-card { --pos: 0; position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55);
    transform: translate(calc(var(--pos) * 22px), calc(var(--pos) * -20px)) scale(calc(1 - var(--pos) * .06));
    opacity: calc(1 - var(--pos) * .22); z-index: calc(10 - var(--pos));
    transition: transform .9s var(--ease), opacity .7s var(--ease); }
.hs-card[data-hidden] { opacity: 0; pointer-events: none; }
.hs-card:not(.is-front) { pointer-events: none; }
.hs-card.is-leaving { z-index: 11; transition: none; animation: hsLeave .75s var(--ease) forwards; }
@keyframes hsLeave { to { transform: translateX(-70%) rotate(-7deg); opacity: 0; } }
.hs-card.is-entering { z-index: 11; transition: none; animation: hsEnter .75s var(--ease) both; }
@keyframes hsEnter { from { transform: translateX(-70%) rotate(-7deg); opacity: 0; } }
.hs-media { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: var(--cream); }
.hs-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 6s linear; user-select: none; }
.hs-card.is-front .hs-media img { transform: scale(1); }
.hs-status { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: var(--paper); font-size: .74rem; font-weight: 600; color: var(--ink); }
.hs-body { padding: 20px 24px 22px; }
.hs-loc { margin: 0 0 4px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--warm); }
.hs-body h3 { font-size: 1.45rem; letter-spacing: -.03em; }
.hs-specs { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 8px 0 16px; padding: 0 0 14px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.hs-specs li + li::before { content: '·'; margin-right: 18px; color: var(--muted); }
.hs-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.hs-foot small { display: block; font-size: .76rem; color: var(--muted); }
.hs-foot strong { font-family: var(--display); font-size: 1.55rem; font-weight: 700; letter-spacing: -.03em; }
.hs-cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--cream); font-weight: 600; font-size: .9rem; transition: background-color .25s; }
.hs-cta:hover { background: var(--brand); }
.hs-controls { display: flex; align-items: center; gap: 14px; margin: 26px 40px 0 0; }
.hs-btn { flex-shrink: 0; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .6); background: transparent; color: #fff; font-size: 1.1rem; cursor: pointer; transition: background-color .25s, color .25s; }
.hs-btn:hover { background: #fff; color: var(--ink); }
.hs-count { margin: 0; font-family: var(--display); font-weight: 700; font-size: .95rem; letter-spacing: .04em; color: rgba(255, 255, 255, .7); }
.hs-count span { color: #fff; }
.hs-progress { flex: 1; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.hs-progress i { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
.hs-progress i.run { animation: hsBar var(--hs-dur, 6s) linear forwards; }
.hero-slider:hover .hs-progress i.run, .hero-slider.is-paused .hs-progress i.run { animation-play-state: paused; }
@keyframes hsBar { to { transform: scaleX(1); } }

/* ---------- Decorative background icons (buildings, cranes, blueprints) ---------- */
.bg-icons { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-ic { position: absolute; color: var(--brand); opacity: .07; transform: rotate(var(--r, 0deg)); animation: bgFloat 9s ease-in-out var(--d, 0s) infinite alternate; animation-play-state: paused; will-change: transform; }
.bg-icons.is-live .bg-ic { animation-play-state: running; }
@keyframes bgFloat { to { transform: rotate(var(--r, 0deg)) translateY(-18px); } }
.properties, .why, .listing, .contact { position: relative; isolation: isolate; }
.properties > .wrap, .why > .wrap, .listing > .wrap, .contact > .wrap { z-index: 1; }

/* ---------- Home: properties slider (screen-fit) ---------- */
.properties { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 28px) 0 48px; background: var(--sand); }
.props-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: 28px; }
.props-head .display { margin: 0; font-size: clamp(2rem, 3.6vw, 3.1rem); }
.props-head .kicker { margin-bottom: 10px; }
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-tab { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(28, 26, 23, .18); background: rgba(255, 255, 255, .55); font-weight: 600; font-size: .9rem; color: var(--ink-2); cursor: pointer; transition: background-color .25s, color .25s, border-color .25s; }
.filter-tab span { min-width: 22px; height: 22px; padding: 0 6px; display: grid; place-items: center; border-radius: 999px; background: var(--cream-2); font-size: .74rem; color: var(--ink-2); }
.filter-tab:hover { border-color: var(--ink); color: var(--ink); }
.filter-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.filter-tab.is-active span { background: rgba(255, 255, 255, .16); color: var(--cream); }

.ps { position: relative; }
.ps-track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 4px 30px; margin: -6px -4px 0; }
.ps-track::-webkit-scrollbar { display: none; }
.ps-slide { flex: 0 0 100%; scroll-snap-align: start; }
.ps-slide[hidden] { display: none; }
.ps-card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); height: clamp(400px, calc(100svh - 330px), 620px); border-radius: 28px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.ps-media { position: relative; overflow: hidden; background: var(--cream); }
.ps-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.ps-media:hover img { transform: scale(1.04); }
.ps-media.is-studio img { object-fit: contain; padding: 54px 20px 20px; }
.ps-media .chip { position: absolute; top: 18px; left: 18px; }
.ps-media .ps-index { left: auto; right: 18px; font-family: var(--display); letter-spacing: .04em; }
.ps-body { display: flex; flex-direction: column; min-height: 0; padding: clamp(22px, 2.6vw, 36px) clamp(22px, 2.8vw, 40px); }
.ps-body h3 { font-size: clamp(1.6rem, 2.3vw, 2.15rem); font-weight: 700; letter-spacing: -.035em; }
.ps-tagline { margin: 6px 0 16px; color: var(--ink-2); font-size: .98rem; }
.ps-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; list-style: none; margin: 0 0 16px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ps-facts li { display: flex; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; }
.ps-facts .ic { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.ps-facts small { display: block; font-size: .7rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ps-prices { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; overflow: auto; }
.ps-prices li { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; color: var(--ink-2); }
.ps-prices strong { font-family: var(--display); color: var(--ink); }
.ps-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
.ps-actions .pill { height: 46px; padding: 0 18px; font-size: .9rem; }
.ps-controls { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.ps-dots { display: flex; gap: 8px; margin-right: auto; padding-left: 4px; }
.ps-dot { width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; background: rgba(28, 26, 23, .25); cursor: pointer; transition: width .4s var(--ease), background-color .3s; }
.ps-dot.is-active { width: 34px; background: var(--ink); }
.ps-controls .link-arrow { margin-left: 10px; }

/* ---------- Who we are: 3D layered image stack ---------- */
.who { padding: clamp(90px, 11vw, 150px) 0; background: var(--cream); overflow: hidden; }
.who-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.stack3d { --rx: 0deg; --ry: 0deg; position: relative; aspect-ratio: 1 / 1.02; perspective: 1400px; transform-style: preserve-3d; }
.stack3d > * { transition: transform .8s var(--ease); }
.stack-layer { position: absolute; border-radius: 22px; overflow: hidden; background: var(--paper); box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.stack-layer img { width: 100%; height: 100%; object-fit: cover; }
.stack-layer.is-studio { background: var(--cream); }
.stack-layer.is-studio img { object-fit: contain; padding: 12px; }
.stack-layer.l1 { left: 0; top: 0; width: 62%; height: 60%; transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0); }
.stack-layer.l2 { right: 0; top: 18%; width: 52%; height: 64%; transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(60px); }
.stack-layer.l3 { left: 10%; bottom: 0; width: 58%; height: 46%; transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(120px); }
.stack-badge { position: absolute; right: 6%; bottom: 6%; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 132px; height: 132px; border-radius: 50%; background: var(--ink); color: var(--cream); text-align: center; box-shadow: var(--shadow-lg); transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(180px); }
.stack-badge strong { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.stack-badge span { font-size: .72rem; line-height: 1.3; color: var(--gold); margin-top: 4px; }
.who-copy .display { margin-bottom: 20px; }
.who-text { margin: 16px 0 0; color: var(--ink-2); max-width: 54ch; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 30px 0 32px; border-top: 1px solid var(--line); }
.stat-grid > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.stat-grid > div:nth-child(odd) { padding-right: 18px; border-right: 1px solid var(--line); }
.stat-grid > div:nth-child(even) { padding-left: 22px; }
.stat-grid dt { font-family: var(--display); font-size: clamp(1.8rem, 2.8vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; color: var(--brand); }
.stat-grid dd { margin: 2px 0 0; font-size: .86rem; color: var(--muted); }

/* ---------- Why us: 3D tilt cards ---------- */
.why { padding: clamp(90px, 11vw, 150px) 0; background: var(--sand); }
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
[data-tilt] { --rx: 0deg; --ry: 0deg; transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; transition: transform .6s var(--ease), box-shadow .4s; will-change: transform; }
[data-tilt].is-tilting { transition: transform .1s linear, box-shadow .4s; }
.why-card { position: relative; padding: 34px 30px 30px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.why-card:hover { box-shadow: var(--shadow-lg); }
.why-card > * { transform: translateZ(30px); }
.why-icon { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 22px; border-radius: 16px; background: var(--brand); color: #fff; font-size: 1.5rem; box-shadow: 0 14px 24px -12px rgba(11, 59, 102, .6); }
.why-card .why-icon { transform: translateZ(60px); }
.why-card h3 { margin-bottom: 8px; font-size: 1.2rem; letter-spacing: -.02em; }
.why-card p { margin: 0; font-size: .95rem; color: var(--ink-2); }
.why-num { position: absolute; top: 22px; right: 26px; font-family: var(--display); font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--cream-2); }

/* ---------- Services: 3D flip cards ---------- */
.services { padding: clamp(90px, 11vw, 150px) 0; background: var(--cream); }
.flip-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.flip { height: 300px; perspective: 1200px; outline: none; cursor: pointer; }
.flip-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.flip:hover .flip-inner, .flip:focus-within .flip-inner, .flip.is-flipped .flip-inner { transform: rotateY(180deg); }
.flip-face { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 30px; border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip-front { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.flip-back { background: var(--brand); color: #fff; transform: rotateY(180deg); box-shadow: var(--shadow-lg); }
.flip-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); font-size: 1.7rem; margin-bottom: auto; }
.flip-front h3 { font-size: 1.35rem; letter-spacing: -.02em; margin: 20px 0 10px; }
.flip-hint { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--warm); }
.flip-num { position: absolute; top: 26px; right: 28px; font-family: var(--display); font-weight: 800; font-size: 2.4rem; color: var(--cream-2); }
.flip-back h3 { color: #fff; font-size: 1.3rem; margin-bottom: 12px; }
.flip-back p { margin: 0 0 auto; color: rgba(255, 255, 255, .85); font-size: .95rem; }
.flip-back .pill { align-self: flex-start; height: 44px; margin-top: 18px; }

/* ---------- Site-visit form ---------- */
.visit { padding: clamp(90px, 12vw, 150px) 0; background: var(--sand); }
.visit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(40px, 6vw, 96px); align-items: center; }
.visit-copy .display { margin-bottom: 22px; }
.ticks { list-style: none; margin: 28px 0 26px; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.ticks li::before { content: '✓'; width: 24px; height: 24px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--cream); font-size: .75rem; }
.wa-link { font-weight: 600; color: var(--brand); border-bottom: 1.5px solid currentColor; }
.visit-form { padding: clamp(26px, 3vw, 38px); border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.visit-form h3 { font-size: 1.5rem; margin-bottom: 18px; letter-spacing: -.03em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field span { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select { height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; outline: none; transition: border-color .2s; min-width: 0; }
.field input:focus, .field select:focus { border-color: var(--ink); }
.field input.is-invalid { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 20px; font-size: .8rem; color: var(--muted); cursor: pointer; }
.consent input { margin-top: 3px; accent-color: var(--ink); }
.form-error { display: none; margin-bottom: 14px; padding: 10px 14px; border-radius: 12px; background: #FBEAE8; color: var(--danger); font-size: .86rem; }
.form-error.show { display: block; }
.form-success { display: none; text-align: center; padding: 26px 0; }
.success-tick { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #E8F5EC; color: var(--ok); font-size: 1.8rem; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { margin: 0; color: var(--ink-2); }
.is-sent .form-fields { display: none; }
.is-sent .form-success { display: block; }

/* ---------- Inner-page hero ---------- */
.page-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 420px; padding: calc(var(--header-h) + 60px) 0 56px; overflow: hidden; color: #fff; background: #2a2420; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.6vw, 4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; max-width: 18ch; margin-bottom: 12px; }
.page-hero p { margin: 0; max-width: 52ch; font-size: 1.06rem; color: rgba(255, 255, 255, .86); }
.crumbs { display: flex; gap: 10px; margin-bottom: 18px; font-size: .84rem; color: rgba(255, 255, 255, .75); }
.crumbs a:hover { color: #fff; }
.crumbs-dark { color: var(--muted); }
.crumbs-dark a:hover { color: var(--ink); }

/* ---------- Properties listing ---------- */
.listing { padding: 56px 0 clamp(80px, 9vw, 120px); background: var(--sand); }
.filter-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 4px; align-items: center; padding: 10px; margin-top: -100px; margin-bottom: 26px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; }
.filter-bar label { display: flex; flex-direction: column; gap: 2px; padding: 6px 18px; border-right: 1px solid var(--line); }
.filter-bar label:nth-child(3) { border-right: 0; }
.filter-bar span { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filter-bar select { border: 0; background: transparent; padding: 4px 0; font-weight: 600; outline: none; cursor: pointer; }
.results-count { margin: 0 0 22px; color: var(--ink-2); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.p-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.p-card:hover { box-shadow: var(--shadow-lg); }
.p-card-media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.p-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.p-card:hover .p-card-media img { transform: scale(1.05); }
.p-card-media.is-studio img { object-fit: contain; padding: 40px 14px 10px; }
.p-card-media .chip { position: absolute; top: 14px; left: 14px; }
.p-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 20px; }
.p-card-body h3 { font-size: 1.3rem; letter-spacing: -.03em; margin-bottom: 12px; }
.p-card-body h3 a:hover { color: var(--brand); }
.meta-icons { display: grid; gap: 8px; list-style: none; margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.meta-icons li { display: flex; align-items: center; gap: 10px; }
.meta-icons .ic { color: var(--brand); }
.p-card-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.p-card-foot small { display: block; font-size: .76rem; color: var(--muted); }
.p-card-foot strong { font-family: var(--display); font-size: 1.4rem; letter-spacing: -.03em; }
.empty { padding: 60px 30px; text-align: center; border-radius: 24px; background: var(--paper); border: 1px dashed var(--line); }
.empty h3 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); }
.empty .pill { margin: 8px 4px 0; }
.cta-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-top: 48px; padding: clamp(28px, 4vw, 44px); border-radius: 26px; background: var(--brand); color: #fff; }
.cta-strip h3 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin-bottom: 6px; }
.cta-strip p { margin: 0; color: rgba(255, 255, 255, .82); max-width: 56ch; }
.cta-band { padding: 0 0 clamp(80px, 9vw, 120px); background: var(--cream); }

/* ---------- Property detail ---------- */
.detail-top { padding: calc(var(--header-h) + 34px) 0 40px; background: var(--cream); }
.detail-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; margin-bottom: 26px; }
.detail-head h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.05; margin: 6px 0 8px; }
.detail-tagline { margin: 0; max-width: 56ch; color: var(--ink-2); font-size: 1.05rem; }
.detail-price { text-align: right; }
.detail-price small, .detail-price span { display: block; font-size: .8rem; color: var(--muted); }
.detail-price strong { display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; color: var(--brand); line-height: 1.1; }
.gallery { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; }
.gallery-main { position: relative; margin: 0; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--cream-2); box-shadow: var(--shadow); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.gallery-main.is-studio img { object-fit: contain; padding: 20px; }
.gallery-main img.is-swapping { opacity: 0; }
.gallery-main figcaption { position: absolute; left: 16px; bottom: 16px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .82rem; font-weight: 500; }
.gallery-side { display: grid; grid-auto-rows: 1fr; gap: 14px; }
.gallery-thumb { position: relative; padding: 0; border: 2px solid transparent; border-radius: 18px; overflow: hidden; background: var(--cream-2); cursor: pointer; transition: border-color .25s, transform .3s var(--ease); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.is-studio img { object-fit: contain; padding: 8px; }
.gallery-thumb:hover { transform: translateY(-2px); }
.gallery-thumb.is-active { border-color: var(--ink); }
.gallery-more { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 18px; background: var(--ink); color: var(--cream); }
.gallery-more .ic { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: rgba(255, 255, 255, .12); }
.gallery-more strong { display: block; font-size: .92rem; }
.gallery-more small { color: var(--gold); font-size: .78rem; }
.key-facts { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); list-style: none; margin: 22px 0 0; padding: 0; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.key-facts li { display: flex; align-items: center; gap: 12px; padding: 18px; border-left: 1px solid var(--line); font-weight: 600; font-size: .9rem; min-width: 0; }
.key-facts li:first-child { border-left: 0; }
.key-facts .ic { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.key-facts small { display: block; font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; padding: 16px 14px; font-weight: 600; font-size: .9rem; color: var(--muted); border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); border-color: var(--ink); }
.detail-body { padding: 56px 0 90px; background: var(--cream); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: clamp(32px, 4vw, 60px); align-items: start; }
.d-sec { padding: 0 0 48px; margin-bottom: 48px; border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 64px); }
.d-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.d-sec h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; letter-spacing: -.03em; margin-bottom: 18px; }
.d-sec > p { color: var(--ink-2); max-width: 66ch; }
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.pill-list li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; font-size: .9rem; }
.pill-list .ic { color: var(--ok); }
.config-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.config-card { padding: 26px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.config-card > * { transform: translateZ(24px); }
.config-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 16px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); font-size: 1.4rem; }
.config-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.config-card ul { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.config-card li { display: flex; justify-content: space-between; color: var(--ink-2); }
.config-card li strong { color: var(--ink); }
.config-price { margin: 0 0 16px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand); }
.config-price small { display: block; font-family: var(--body); font-size: .74rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.amenity-grid li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; font-size: .92rem; transition: transform .3s var(--ease), box-shadow .3s; }
.amenity-grid li:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.amenity-grid li > span { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.2rem; }
.d-address { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.location-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 18px; }
.nearby { list-style: none; margin: 0; padding: 6px 18px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.nearby li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.nearby li:last-child { border-bottom: 0; }
.nearby-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 1.1rem; }
.nearby strong { font-family: var(--display); font-size: .9rem; color: var(--brand); }
.map-frame { min-height: 320px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: var(--cream-2); }
.map-frame iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
.map-frame-tall, .map-frame-tall iframe { min-height: 340px; margin-top: 24px; }
.accordion { display: grid; gap: 10px; }
.accordion details { border-radius: 16px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
.accordion summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--cream-2); font-size: 1.1rem; transition: transform .3s var(--ease); }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion ul, .accordion details > p { margin: 0; padding: 0 20px 18px 40px; color: var(--ink-2); }
.accordion details > p { padding-left: 20px; }
.accordion li { margin-bottom: 6px; }
.plan-bar { display: flex; gap: 4px; height: 54px; margin-bottom: 18px; }
.plan-bar span { display: grid; place-items: center; border-radius: 12px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 700; font-size: .95rem; }
.plan-bar span:nth-child(2) { background: #2D5E8C; }
.plan-bar span:nth-child(3) { background: var(--warm); }
.plan-bar span:nth-child(4) { background: var(--ink); }
.plan-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.plan-steps li { padding: 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.plan-steps strong { display: block; font-family: var(--display); font-size: 1.3rem; }
.plan-steps span { font-size: .86rem; color: var(--ink-2); }
.d-note { margin-top: 16px; font-size: .88rem; color: var(--muted); }
.detail-aside { position: sticky; top: calc(var(--header-h) + 74px); }
.aside-card .visit-form { box-shadow: var(--shadow-lg); }
.aside-price { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 18px 20px; border-radius: 20px; background: var(--ink); color: var(--cream); }
.aside-price > div { margin-right: auto; }
.aside-price small { display: block; font-size: .76rem; color: var(--gold); }
.aside-price strong { font-family: var(--display); font-size: 1.6rem; letter-spacing: -.03em; }
.aside-price .round-btn { border-color: rgba(255, 255, 255, .4); color: #fff; }
.aside-price .round-btn:hover { background: #fff; color: var(--ink); }
.aside-price .round-btn-wa { background: #1f9d55; border-color: #1f9d55; }
.similar { padding: clamp(70px, 8vw, 110px) 0; background: var(--sand); }

/* ---------- About ---------- */
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 30px; }
.mv-card { padding: 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mv-card > * { transform: translateZ(26px); }
.mv-card .why-icon { width: 48px; height: 48px; margin-bottom: 14px; }
.mv-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.mv-card p { margin: 0; font-size: .92rem; color: var(--ink-2); }
.stats-band { padding: 56px 0; background: var(--brand); }
.stat-grid-band { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 0; }
.stat-grid-band > div, .stat-grid-band > div:nth-child(odd), .stat-grid-band > div:nth-child(even) { padding: 0 24px; border: 0; border-left: 1px solid rgba(255, 255, 255, .2); }
.stat-grid-band > div:first-child { border-left: 0; padding-left: 0; }
.stat-grid-band dt { color: #fff; }
.stat-grid-band dd { color: rgba(255, 255, 255, .75); }
.timeline-sec { padding: clamp(90px, 11vw, 140px) 0; background: var(--cream); }
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.timeline::before { content: ''; position: absolute; left: 110px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 34px; align-items: center; }
.tl-year { position: relative; font-family: var(--display); font-size: 1.5rem; font-weight: 800; color: var(--brand); }
.tl-year::after { content: ''; position: absolute; right: -40px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px var(--cream); }
.tl-card { padding: 22px 26px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tl-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.tl-card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.team { padding: clamp(90px, 11vw, 140px) 0; background: var(--sand); }
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.team-card { padding: 30px 24px; text-align: center; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.team-card > * { transform: translateZ(26px); }
.team-avatar { display: grid; place-items: center; width: 96px; height: 96px; margin: 0 auto 18px; border-radius: 50%; background: var(--brand); color: #fff; font-family: var(--display); font-size: 1.6rem; font-weight: 700; box-shadow: 0 16px 30px -14px rgba(11, 59, 102, .7); }
.team-card h3 { font-size: 1.1rem; }
.team-card p { margin: 4px 0 0; font-size: .88rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { padding: 64px 0 clamp(90px, 10vw, 130px); background: var(--sand); }
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: -120px; margin-bottom: clamp(60px, 7vw, 90px); }
.contact-card { display: block; padding: 26px 24px; border-radius: 22px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.contact-card > * { transform: translateZ(24px); }
.contact-card .why-icon { width: 50px; height: 50px; margin-bottom: 16px; }
.contact-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.contact-card p { margin: 0; font-weight: 600; word-break: break-word; }
.contact-card small { color: var(--muted); }
.contact-grid { align-items: start; }

/* ---------- Simple pages ---------- */
.simple-page { padding: calc(var(--header-h) + 60px) 0 100px; min-height: 70vh; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 18px; }
.prose h2 { font-size: 1.4rem; margin: 32px 0 10px; }
.prose p { color: var(--ink-2); }
.error-page h1 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); margin-bottom: 14px; }
.error-page .hero-actions { margin-top: 28px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--cream-2); border-top: 1px solid var(--line); padding-top: 72px; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand p { margin: 14px 0 22px; max-width: 40ch; color: var(--ink-2); }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: .94rem; }
.footer-col h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); margin-bottom: 6px; }
.footer-col a, .footer-col span { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.footer-col a:hover { color: var(--brand); }
.footer-rera { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.footer-wordmark { margin-top: 20px; font-family: var(--display); font-weight: 800; font-size: clamp(6rem, 26vw, 24rem); line-height: .78; letter-spacing: -.07em; text-align: center; color: var(--brand); transform: translateY(.12em); user-select: none; }
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 40; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #25D366; color: #fff; font-size: 1.7rem; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); }
.wa-float:hover { transform: scale(1.07); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .why-grid, .flip-grid, .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .key-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .key-facts li:nth-child(4) { border-left: 0; }
    .key-facts li:nth-child(n+4) { border-top: 1px solid var(--line); }
    .detail-grid { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
    .team-grid, .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
    .nav, .header-phone, .header-cta .pill { display: none; }
    .hero { min-height: auto; padding-top: calc(var(--header-h) + 40px); }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .hs-deck, .hs-controls { margin-right: 22px; }
    .properties { min-height: auto; }
    .ps-card { grid-template-columns: 1fr; height: auto; }
    .ps-media { height: 280px; }
    .who-grid, .visit-grid, .sec-head, .location-grid { grid-template-columns: 1fr; }
    .stack3d { max-width: 560px; }
    .gallery { grid-template-columns: 1fr; }
    .gallery-side { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 110px; }
    .filter-bar { grid-template-columns: 1fr 1fr; margin-top: -70px; }
    .filter-bar label:nth-child(2) { border-right: 0; }
    .filter-bar .pill { grid-column: 1 / -1; }
    .stat-grid-band { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .stat-grid-band > div:nth-child(3) { border-left: 0; padding-left: 0; }
    .plan-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .hero-stats div { padding: 0 14px; }
    .hero-stats dt { font-size: 1.2rem; }
    .hs-deck { height: 520px; }
    .why-grid, .flip-grid, .card-grid, .card-grid-2, .team-grid, .contact-cards, .mv-grid { grid-template-columns: 1fr; }
    .ps-facts { grid-template-columns: 1fr; }
    .key-facts { grid-template-columns: 1fr 1fr; }
    .key-facts li:nth-child(odd) { border-left: 0; }
    .key-facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .field-row { grid-template-columns: 1fr; }
    .timeline::before { left: 8px; }
    .timeline li { grid-template-columns: 1fr; gap: 10px; padding-left: 30px; }
    .tl-year::after { left: -29px; right: auto; }
    .footer-top { grid-template-columns: 1fr; }
    .detail-price { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    [data-tilt], .stack-layer, .stack-badge { transform: none !important; }
}

/* =====================================================================
   Cinematic hero (Krung-style): misty wipe slides, coastal mist,
   concentric-ring rail, visit-booking search, homes grid, cursor,
   card-to-detail photo flight.
   Soft fades below are used ONLY for photographic effects (approved).
   ===================================================================== */
:root { --wipe-ease: cubic-bezier(.65, 0, .35, 1); --out: cubic-bezier(.16, 1, .3, 1); --heart: #ff4d5e; }

.cine { position: relative; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; background: #2a2420; }
.cine-stack { position: absolute; inset: 0; will-change: transform; }
.cine-slide { position: absolute; inset: 0; overflow: hidden; visibility: hidden; }
.cine-slide.is-live, .cine-slide.is-in { visibility: visible; }
.cine-slide.is-live { z-index: 1; }
.cine-slide.is-in { z-index: 2; }
.cine-photo { position: absolute; inset: -3%; background-size: cover; background-position: var(--pos, center); background-repeat: no-repeat; transform: scale(1.04); will-change: transform; }
.cine-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 20, 14, .55) 0%, rgba(30, 20, 14, .22) 32%, transparent 56%), linear-gradient(90deg, rgba(30, 20, 14, .3) 0%, transparent 42%), linear-gradient(270deg, rgba(30, 20, 14, .42) 0%, rgba(30, 20, 14, .12) 38%, transparent 60%); }
.cine-title { position: absolute; left: 2.6vw; top: calc(var(--header-h) + 3.2vh); margin: 0; font-family: var(--display); font-weight: 600; line-height: .92; letter-spacing: -.025em; text-transform: uppercase; white-space: nowrap; color: #fff; font-size: min(7.1vw, 15vh); filter: drop-shadow(0 4px 22px rgba(20, 12, 8, .3)); }
.cine-title.is-big { left: 7vw; top: calc(var(--header-h) + 5vh); font-size: min(9.6vw, 19vh); line-height: .95; }
.cine-line { display: block; }
.cine-word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .05em; margin-right: .2em; }
.cine-word:last-child { margin-right: 0; }
.cine-word > span { display: inline-block; color: transparent; background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, .96) 45%, rgba(255, 255, 255, .74) 100%); -webkit-background-clip: text; background-clip: text; }
.cine-mist { position: absolute; top: -10%; bottom: -10%; left: 110%; width: 34vw; z-index: 3; opacity: 0; pointer-events: none; background: radial-gradient(ellipse at center, rgba(255, 240, 228, .78) 0%, rgba(255, 240, 228, .36) 42%, rgba(255, 240, 228, 0) 70%); filter: blur(10px); }

/* Coastal mist: pre-baked transparent cloud art (no blend modes or masks, so scrolling stays cheap) */
.cloud-bank { position: absolute; left: -4%; right: -4%; bottom: -6%; height: 58%; z-index: 7; pointer-events: none; will-change: transform; transform-origin: center bottom; }
.cloud, .cloud-top { background: url('/media/hero/clouds-soft.webp') center bottom / cover no-repeat; }
.cloud { position: absolute; inset: 0; }
.cloud-front { animation: cloudFront 26s ease-in-out infinite alternate; }
.cloud-back { opacity: .55; transform: scaleX(-1); animation: cloudBack 34s ease-in-out infinite alternate; }
@keyframes cloudFront { from { transform: translateX(-2.5%); } to { transform: translateX(2.5%); } }
@keyframes cloudBack { from { transform: scaleX(-1) translate(3%, 0); } to { transform: scaleX(-1) translate(-3%, -4%); } }
.cloud-top { position: absolute; left: -4%; right: -4%; top: -30%; height: 80%; z-index: 6; opacity: 0; pointer-events: none; transform: scaleY(-1); }
.cine-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 48%; z-index: 8; pointer-events: none; background: linear-gradient(180deg, rgba(249, 238, 226, 0) 0%, rgba(249, 238, 226, .5) 34%, rgba(249, 238, 226, .95) 56%, #F9EEE2 64%); }

/* Right rail: round thumbnails on concentric rings */
.rail { position: absolute; inset: 0; z-index: 9; pointer-events: none; will-change: transform, opacity; }
.rail-thumb { position: absolute; padding: 0; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .92); background-size: cover; background-position: center; box-shadow: 0 10px 26px rgba(60, 30, 30, .28); cursor: pointer; pointer-events: auto;
    transition: top .9s var(--wipe-ease), left .9s var(--wipe-ease), width .9s var(--wipe-ease), height .9s var(--wipe-ease), transform .45s var(--out), box-shadow .45s; }
.rail-thumb:hover { transform: scale(1.07); box-shadow: 0 18px 36px rgba(60, 30, 30, .38); }
.rail-thumb.is-active::after { content: ''; position: absolute; inset: -12px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .55); }
.ring { position: absolute; border-radius: 50%; border: 1.6px solid rgba(255, 255, 255, .5); pointer-events: none; transition: top .9s var(--wipe-ease), left .9s var(--wipe-ease), width .9s var(--wipe-ease), height .9s var(--wipe-ease); }
.rail-line { position: absolute; height: 3px; border-radius: 3px; background: #fff; transform-origin: right center; transition: transform .45s var(--out), top .9s var(--wipe-ease), left .9s var(--wipe-ease); }
.rail-line.is-hidden { transform: scaleX(0); transition: transform .3s var(--out); }
.rail-cap { position: absolute; display: flex; gap: 18px; align-items: flex-start; transform: translate(-100%, -50%); pointer-events: auto; transition: top .9s var(--wipe-ease), left .9s var(--wipe-ease); }
.rail-bar { flex-shrink: 0; width: 3px; height: max(84px, 6.5vw); border-radius: 3px; background: #fff; transform-origin: top; transition: transform .6s var(--out); }
.rail-text { clip-path: inset(-20px -40px -20px -20px); transition: clip-path .9s var(--out); }
.rail-cap.is-hidden .rail-bar { transform: scaleY(0); transition-duration: .3s; }
.rail-cap.is-hidden .rail-text { clip-path: inset(-20px 100% -20px -20px); transition-duration: .3s; }
.rail-head { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(26px, 2.75vw, 40px); line-height: 1.1; color: #fff; text-shadow: 0 1px 2px rgba(20, 12, 8, .35), 0 4px 24px rgba(20, 12, 8, .45); white-space: nowrap; }
.rail-text p { margin: 10px 0 0; max-width: 290px; font-size: clamp(13px, 1.05vw, 15.5px); font-weight: 500; line-height: 1.5; color: #fff; text-shadow: 0 1px 2px rgba(20, 12, 8, .55), 0 2px 16px rgba(20, 12, 8, .45); }
/* Hero work pauses once it is scrolled out of view */
.cine.is-off .cloud { animation-play-state: paused; }

/* Visit-booking search bar */
.vsearch { position: absolute; left: 50%; bottom: calc(20vh + 2px); z-index: 12; display: flex; align-items: center; gap: 6px; width: min(900px, calc(100% - 40px)); height: 90px; padding: 9px; transform: translateX(-50%); border-radius: 26px; background: rgba(255, 255, 255, .93); box-shadow: 0 18px 60px rgba(120, 70, 60, .16); }
.vs-field { flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 12px; height: 72px; padding: 0 16px; border: 0; border-radius: 14px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; transition: background-color .25s, box-shadow .25s; }
.vs-field.vs-wide { flex-grow: 1.35; }
.vs-field .ic { width: 18px; height: 18px; color: var(--ink-2); }
.vs-field > span { min-width: 0; }
.vsearch:not(:hover) .vs-field.is-raised, .vs-field:hover, .vs-field.is-open { background: #fff; box-shadow: 0 8px 24px rgba(120, 80, 70, .14); }
.vs-field strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.08rem; letter-spacing: -.01em; }
.vs-field small { display: block; font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-field small.is-set { color: var(--ink); font-weight: 600; }
.vs-send { flex-shrink: 0; display: grid; place-items: center; width: 52px; height: 52px; margin: 0 6px; border: 0; border-radius: 13px; background: var(--ink); color: #fff; cursor: pointer; transition: transform .35s var(--out), background-color .25s; }
.vs-send:hover { transform: scale(1.1) rotate(-8deg); background: var(--brand); }
.vs-send .ic { width: 20px; height: 20px; }
.vs-pop { position: absolute; bottom: calc(100% + 12px); left: 0; z-index: 20; min-width: 290px; padding: 16px; border-radius: 18px; background: #fff; box-shadow: 0 30px 70px -20px rgba(60, 40, 30, .38); animation: vsPop .35s var(--out); }
@keyframes vsPop { from { opacity: 0; transform: translateY(8px); } }
.vs-pop[hidden] { display: none; }
.vs-pop-title { margin: 0 0 8px; padding: 0 6px; font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.vs-opt { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left; font-weight: 600; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.vs-opt small { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.vs-opt:hover, .vs-opt.is-on { background: var(--cream); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-family: var(--display); font-size: 1rem; }
.cal-head button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.1rem; cursor: pointer; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 38px); gap: 2px; }
.cal-grid .dow { height: 26px; display: grid; place-items: center; font-size: .7rem; font-weight: 600; color: var(--muted); }
.cal-day { height: 36px; border: 0; border-radius: 9px; background: transparent; font-weight: 500; font-size: .88rem; color: var(--ink); cursor: pointer; transition: background-color .2s; }
.cal-day:hover { background: var(--cream); }
.cal-day.is-weekend { color: var(--warm); font-weight: 600; }
.cal-day.is-picked { background: var(--ink); color: #fff; }
.cal-day:disabled { color: #cdbfae; cursor: default; background: transparent; }
.cal-note { margin: 10px 0 0; font-size: .76rem; color: var(--muted); text-align: center; }
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 10px 6px; }
.stepper-row + .stepper-row { border-top: 1px solid var(--line); }
.stepper-row small { display: block; font-size: .78rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 32px; height: 32px; border: 1.4px solid var(--line); border-radius: 50%; background: #fff; font-size: 1.05rem; cursor: pointer; }
.stepper button:hover { border-color: var(--ink); }
.stepper output { min-width: 18px; text-align: center; font-weight: 700; }

/* Homes available now (pulled up into the hero) */
.homes { position: relative; z-index: 15; margin-top: -17vh; padding: 0 clamp(20px, 7vw, 130px) clamp(80px, 9vw, 120px); }
.homes-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 30px; }
.homes-title .kicker { margin-bottom: 10px; }
.homes-head h2 { margin: 0; font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.homes-head h2 em { font-style: normal; color: var(--brand); }
.homes-trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.homes-trust li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.homes-trust .ic { width: 15px; height: 15px; color: var(--brand); }
.homes-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.homes-chips { display: flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 8px 22px rgba(110, 60, 50, .08); }
.homes-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border: 0; border-radius: 999px; background: transparent; font-weight: 600; font-size: .85rem; color: var(--ink-2); cursor: pointer; transition: background-color .3s, color .3s; }
.homes-chip span { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--cream); font-size: .7rem; color: var(--ink); transition: background-color .3s, color .3s; }
.homes-chip:hover { color: var(--ink); }
.homes-chip.is-on { background: var(--ink); color: #fff; }
.homes-chip.is-on span { background: rgba(255, 255, 255, .18); color: #fff; }
.see-all { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; border: 1.4px solid var(--ink); border-radius: 999px; font-weight: 600; font-size: .88rem; transition: background-color .25s, color .25s; }
.see-all .ic { width: 16px; height: 16px; transition: transform .3s var(--out); }
.see-all:hover { background: var(--ink); color: #fff; }
.see-all:hover .ic { transform: translateX(3px); }

.homes-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); }
.home-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); box-shadow: 0 14px 34px rgba(110, 60, 50, .1); transition: transform .55s var(--out), box-shadow .55s var(--out), border-color .3s; }
.home-card::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--out); }
.home-card:hover { transform: translateY(-8px); border-color: transparent; box-shadow: 0 30px 60px -12px rgba(110, 60, 50, .28); }
.home-card:hover::after { transform: scaleX(1); }
.home-card.is-hidden { display: none; }
.home-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #F2E6D6; }
.home-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--out); }
.home-card:hover .home-photo img { transform: scale(1.07); }
.home-card.is-studio .home-photo img { object-fit: contain; padding: 26px 12px 6px; }
.home-tag { position: absolute; left: 12px; top: 12px; padding: 6px 11px; border-radius: 999px; background: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .02em; color: var(--ink); box-shadow: 0 4px 12px rgba(0, 0, 0, .08); }
.home-heart { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .1); transition: transform .3s var(--out); }
.home-heart:hover { transform: scale(1.1); }
.home-heart .ic { width: 17px; height: 17px; fill: none; }
.home-heart.is-on .ic { fill: var(--heart); stroke: var(--heart); animation: heartPop .4s var(--out); }
@keyframes heartPop { 50% { transform: scale(1.35); } }
.home-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.home-proj { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--warm); }
.home-type { margin-top: 5px; font-family: var(--display); font-size: 1.14rem; font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.home-specs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .8rem; color: var(--ink-2); }
.home-specs span { display: inline-flex; align-items: center; gap: 5px; }
.home-specs .ic { width: 15px; height: 15px; color: var(--brand); }
.home-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); }
.home-specs + .home-foot { margin-top: 14px; }
.home-price { font-family: var(--display); font-size: 1.32rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand); line-height: 1.1; }
.home-price small { display: block; margin-bottom: 2px; font-family: var(--body); font-size: .68rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.home-go { flex-shrink: 0; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.4px solid var(--line); color: var(--ink); transition: background-color .35s, border-color .35s, color .35s; }
.home-go .ic { width: 17px; height: 17px; transform: rotate(-45deg); transition: transform .45s var(--out); }
.home-card:hover .home-go { background: var(--ink); border-color: var(--ink); color: #fff; }
.home-card:hover .home-go .ic { transform: rotate(0deg); }

/* 8th tile: help-me-choose lead card */
.home-card-cta { justify-content: flex-end; padding: 26px 24px; background: var(--brand); border-color: var(--brand); color: #fff; }
.home-card-cta::after { display: none; }
.home-card-cta:hover { transform: none; border-color: var(--brand); box-shadow: 0 14px 34px rgba(11, 59, 102, .25); }
.home-card-cta .kicker { position: relative; margin-bottom: 10px; }
.home-card-cta strong { position: relative; font-family: var(--display); font-size: clamp(1.25rem, 1.6vw, 1.55rem); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
.cta-copy { position: relative; margin: 12px 0 20px; font-size: .86rem; line-height: 1.55; color: rgba(255, 255, 255, .78); }
.cta-rings { position: absolute; right: -70px; top: -70px; width: 260px; height: 260px; pointer-events: none; }
.cta-rings i { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(243, 210, 166, .22); animation: ctaRing 6s ease-in-out infinite; }
.cta-rings i:nth-child(2) { inset: 40px; animation-delay: -2s; }
.cta-rings i:nth-child(3) { inset: 80px; border-color: rgba(243, 210, 166, .35); animation-delay: -4s; }
@keyframes ctaRing { 50% { transform: scale(1.08); } }
.pill-light { position: relative; align-self: flex-start; height: 46px; background: #fff; color: var(--ink); }
.pill-light:hover { background: var(--gold); }
.cta-wa { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: .86rem; font-weight: 600; color: var(--gold); }
.cta-wa .ic { width: 17px; height: 17px; }
.cta-wa:hover { text-decoration: underline; }

/* Custom cursor (fine pointers only) */
.cursor { position: fixed; left: 0; top: 0; z-index: 9999; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(72, 62, 68, .55); pointer-events: none; opacity: 0;
    transition: width .25s var(--out), height .25s var(--out), margin .25s var(--out), background-color .25s, border-width .25s, opacity .3s; will-change: transform; }
.cursor.is-on { opacity: 1; }
.cursor.is-hover { width: 38px; height: 38px; margin: -19px 0 0 -19px; background: rgba(72, 62, 68, .35); }
.cursor.is-down { width: 44px; height: 44px; margin: -22px 0 0 -22px; background: transparent; border: 5px solid rgba(20, 16, 18, .9); }
.cursor.is-rec { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
.cursor.is-rec.is-hover { width: 58px; height: 58px; margin: -29px 0 0 -29px; }
.cursor.is-rec.is-down { width: 62px; height: 62px; margin: -31px 0 0 -31px; border-width: 7px; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor select, .has-cursor textarea { cursor: auto !important; }

/* Card -> detail photo flight (cross-document View Transitions; Chrome/Edge) */
@view-transition { navigation: auto; }
::view-transition-group(prop-photo) { animation-duration: .9s; animation-timing-function: var(--wipe-ease); }
::view-transition-old(prop-photo), ::view-transition-new(prop-photo) { height: 100%; object-fit: cover; }
::view-transition-old(root) { animation: vtFadeOut .4s ease both; }
::view-transition-new(root) { animation: vtFadeIn .55s ease both; }
@keyframes vtFadeOut { to { opacity: 0; } }
@keyframes vtFadeIn { from { opacity: 0; } }

/* Field row with three inputs (visit date / time / visitors) */
.visit-form { container-type: inline-size; }
.field-row > .field { min-width: 0; }
.field-row input, .field-row select { width: 100%; min-width: 0; }
.field-row-3 { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .7fr); }
/* Narrow forms (side panels): date on its own line, time + visitors below */
@container (max-width: 520px) {
    .field-row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); }
    .field-row-3 .field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 1180px) {
    .homes-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
    .homes-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .field-row-3 { grid-template-columns: 1fr 1fr; }
    .field-row-3 .field:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
    .cine-title, .cine-title.is-big { left: 6vw; top: calc(var(--header-h) + 4vh); width: 80vw; white-space: normal; font-size: 13.5vw; line-height: .95; }
    .cine-word { margin-right: .16em; }
    .rail-line, .rail-cap { display: none; }
    .vsearch { display: grid; grid-template-columns: 1fr 1fr; height: auto; bottom: 16vh; gap: 4px; padding: 8px; }
    .vs-field { height: 62px; padding: 0 10px; gap: 8px; }
    .vs-field strong { font-size: .95rem; }
    .vs-send { grid-column: 1 / -1; width: 100%; height: 48px; margin: 4px 0 0; }
    .vs-pop { left: 0 !important; right: 0; min-width: 0; }
    .cal-grid { grid-template-columns: repeat(7, 1fr); }
    .homes { margin-top: -8vh; }
    .homes-grid { grid-template-columns: minmax(0, 1fr); }
    .homes-chips { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
    .homes-chip { flex-shrink: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .cloud-front, .cloud-back, .cta-rings i { animation: none; }
}


/* =====================================================================
   What are you looking for + Explore projects
   ===================================================================== */
.explore { padding: clamp(70px, 8vw, 110px) 0; background: var(--cream-2); }
.ex-h { margin: 0 0 22px; font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.025em; }

.lf-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.lf-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 140px; padding: 26px 28px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(110, 60, 50, .06); transition: transform .5s var(--out), box-shadow .5s var(--out); }
.lf-card:hover { transform: translateY(-6px); box-shadow: 0 24px 46px -10px rgba(110, 60, 50, .2); }
.lf-text small { display: block; font-size: 1rem; color: var(--muted); }
.lf-text strong { display: block; margin-top: 6px; font-family: var(--display); font-size: 1.4rem; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.lf-ic { flex-shrink: 0; width: 72px; height: 72px; fill: none; stroke: #6B3427; stroke-width: 1.9; stroke-linejoin: round; stroke-linecap: round; transition: transform .6s var(--out); }
.lf-ic .fill { fill: #F8C9A5; }
.lf-ic .fill-2 { fill: #FCE3CF; }
.lf-ic text { fill: #6B3427; stroke: none; font-family: var(--display); font-size: 9.5px; font-weight: 800; letter-spacing: .05em; }
.lf-card:hover .lf-ic { transform: translateY(-4px) rotate(-4deg) scale(1.06); }

.ex-head { margin-top: clamp(64px, 7vw, 96px); }
.ex-tabs { position: relative; display: flex; gap: clamp(22px, 3vw, 44px); margin-bottom: 30px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ex-tab { flex-shrink: 0; padding: 4px 2px 16px; border: 0; background: none; font-size: 1.05rem; font-weight: 500; color: var(--muted); cursor: pointer; transition: color .25s; }
.ex-tab:hover, .ex-tab.is-on { color: var(--ink); }
.ex-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px; background: var(--brand); transition: left .5s var(--out), width .5s var(--out); }
.ex-panel { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 1.8vw, 26px); }
.ex-panel[hidden] { display: none; }

.ex-card { position: relative; isolation: isolate; display: block; height: clamp(330px, 30vw, 400px); padding: 26px 26px 0; overflow: hidden; border-radius: 22px; color: #fff; box-shadow: 0 14px 34px rgba(110, 60, 50, .12); transition: transform .55s var(--out), box-shadow .55s var(--out); }
.ex-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -14px rgba(80, 40, 30, .32); }
.ex-card strong { display: block; max-width: 80%; font-family: var(--display); font-size: clamp(1.35rem, 1.8vw, 1.75rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.ex-count { display: block; margin-top: 10px; font-size: 1rem; font-weight: 500; color: rgba(28, 26, 23, .72); }
.tone-rose { background: #D88F7A; }
.tone-ochre { background: #D7A545; }
.tone-sage { background: #6DAA8F; }
.tone-sea { background: #6A93BE; }
.ex-art { position: absolute; left: 0; right: 0; bottom: 0; z-index: -1; height: 64%; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.ex-art img { display: block; transition: transform .9s var(--out); }
/* cut-out renders get a white sticker outline, like the reference */
.ex-card.is-cut .ex-art img { width: 112%; max-width: none; margin-bottom: -4%; transform: translateY(6%);
    filter: drop-shadow(3px 0 0 #fff) drop-shadow(-3px 0 0 #fff) drop-shadow(0 3px 0 #fff) drop-shadow(0 -3px 0 #fff) drop-shadow(0 18px 22px rgba(40, 20, 10, .25)); }
.ex-card.is-cut:hover .ex-art img { transform: translateY(0) scale(1.04); }
/* photos become tilted white-bordered prints */
.ex-card.is-photo .ex-art img { width: 74%; aspect-ratio: 4 / 3.4; object-fit: cover; border: 6px solid #fff; border-radius: 18px; box-shadow: 0 18px 34px rgba(40, 20, 10, .28); transform: translate(10%, 16%) rotate(-5deg); }
.ex-card.is-photo:hover .ex-art img { transform: translate(8%, 8%) rotate(-1.5deg); }
.ex-go { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); transition: transform .45s var(--out); }
.ex-go .ic { width: 17px; height: 17px; transform: rotate(-45deg); transition: transform .45s var(--out); }
.ex-card:hover .ex-go .ic { transform: rotate(0); }
.ex-card:hover .ex-go { transform: scale(1.08); }

/* =====================================================================
   Journal (home preview, blog index, article page)
   ===================================================================== */
.journal { padding: clamp(80px, 9vw, 120px) 0; background: var(--cream); }
.journal-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 28px); }
.journal-list { display: grid; gap: clamp(14px, 1.4vw, 20px); }
.blog-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(110, 60, 50, .07); transition: transform .5s var(--out), box-shadow .5s var(--out); }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -12px rgba(110, 60, 50, .22); }
.blog-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #F2E6D6; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--out); }
.blog-card:hover .blog-media img { transform: scale(1.06); }
.blog-card.is-studio .blog-media img { object-fit: contain; padding: 14px; }
.blog-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px 22px 22px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; font-size: .8rem; color: var(--muted); }
.blog-cat { padding: 4px 10px; border-radius: 999px; background: var(--cream); font-size: .72rem; font-weight: 700; letter-spacing: .04em; color: var(--warm); }
.blog-title { font-family: var(--display); font-size: 1.08rem; font-weight: 600; line-height: 1.3; letter-spacing: -.015em; color: var(--ink); }
.blog-excerpt { font-size: .95rem; color: var(--ink-2); }
.blog-more { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; font-size: .86rem; font-weight: 600; color: var(--brand); }
.blog-more .ic { width: 16px; height: 16px; transition: transform .35s var(--out); }
.blog-card:hover .blog-more .ic { transform: translateX(4px); }
.blog-card.is-featured .blog-media { aspect-ratio: 16 / 9.4; }
.blog-card.is-featured .blog-title { font-size: clamp(1.35rem, 1.9vw, 1.7rem); line-height: 1.2; }
.blog-card.is-featured .blog-body { padding: 24px 28px 28px; gap: 12px; }
.journal-list .blog-card { flex-direction: row; }
.journal-list .blog-media { flex: 0 0 38%; aspect-ratio: auto; min-height: 150px; }
.journal-list .blog-body { padding: 16px 20px; }

.blog-page { padding: 64px 0 clamp(80px, 9vw, 120px); background: var(--cream); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.blog-grid .is-featured { grid-column: 1 / -1; flex-direction: row; }
.blog-grid .is-featured .blog-media { flex: 0 0 56%; aspect-ratio: 16 / 9; }
.blog-grid .is-featured .blog-body { justify-content: center; padding: 34px 40px; }

.article-head { padding: calc(var(--header-h) + 44px) 0 0; background: var(--cream); }
.article-head .blog-meta { margin: 18px 0 14px; }
.article-head .blog-cat { background: var(--paper); border: 1px solid var(--line); }
.article-head h1 { max-width: 24ch; margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.035em; }
.article-lead { max-width: 62ch; margin: 16px 0 0; font-size: 1.12rem; color: var(--ink-2); }
.article-cover { margin: 36px 0 0; aspect-ratio: 21 / 9; overflow: hidden; border-radius: 24px; background: var(--cream-2); box-shadow: var(--shadow); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-cover.is-studio img { object-fit: contain; padding: 20px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(30px, 5vw, 70px); align-items: start; padding: 50px 0 clamp(70px, 8vw, 100px); }
.article-body { max-width: 720px; font-size: 1.06rem; line-height: 1.75; }
.article-body h2 { font-size: 1.45rem; margin: 38px 0 12px; }
.article-body ul { margin: 0 0 1em; padding-left: 1.2em; color: var(--ink-2); }
.article-body li { margin: 6px 0; }
.article-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; }
.article-aside { position: sticky; top: calc(var(--header-h) + 20px); scroll-margin-top: calc(var(--header-h) + 20px); }
.blog-more-sec { padding: clamp(60px, 7vw, 90px) 0; background: var(--cream-2); }
.blog-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); }

/* Extra filters arriving from the home page's Explore section */
.active-filter { display: inline-flex; align-items: center; gap: 8px; margin-left: 10px; padding: 5px 6px 5px 14px; border-radius: 999px; background: var(--brand); color: #fff; font-size: .84rem; font-weight: 600; }
.active-filter a { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; line-height: 1; }
.active-filter a:hover { background: #fff; color: var(--brand); }

@media (max-width: 1000px) {
    .lf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ex-panel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .journal-grid, .article-grid { grid-template-columns: minmax(0, 1fr); }
    .article-aside { position: static; }
    .blog-grid, .blog-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .blog-grid .is-featured { flex-direction: column; }
    .blog-grid .is-featured .blog-body { padding: 24px 26px; }
}
@media (max-width: 640px) {
    .lf-card { min-height: 0; padding: 18px; }
    .lf-ic { width: 52px; height: 52px; }
    .lf-text strong { font-size: 1.15rem; }
    .ex-panel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 10px; }
    .ex-card { flex: 0 0 78%; scroll-snap-align: start; height: 330px; }
    .journal-list .blog-card { flex-direction: column; }
    .journal-list .blog-media { aspect-ratio: 16 / 10; min-height: 0; }
    .blog-grid, .blog-row { grid-template-columns: minmax(0, 1fr); }
    .article-cover { aspect-ratio: 4 / 3; }
}

/* =====================================================================
   Backgrounds below the home hero: survey contours, drafting grid, rings
   ===================================================================== */
.explore { position: relative; background: var(--cream-2) url('/media/bg/grid.svg') -1px -1px / 64px 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.journal { position: relative; overflow: hidden; background: var(--cream); }
.journal::before, .journal::after { content: ''; position: absolute; border-radius: 50%; pointer-events: none; }
.journal::before { right: -180px; top: -260px; width: 620px; height: 620px; border: 1.5px solid rgba(180, 121, 63, .2); }
.journal::after { right: -60px; top: -140px; width: 380px; height: 380px; border: 1.5px solid rgba(11, 59, 102, .12); }
.journal > .wrap { position: relative; z-index: 1; }

/* =====================================================================
   Listing page
   ===================================================================== */
@keyframes slowZoom { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.lx-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: max(640px, 84svh); padding: calc(var(--header-h) + 70px) 0 clamp(210px, 29vh, 270px); overflow: hidden; color: #fff; background: #2a2420; }
.lx-hero-bg { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; animation: slowZoom 26s ease-in-out infinite alternate; }
.lx-tint, .dx-tint { position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, rgba(24, 16, 12, .55) 0%, rgba(24, 16, 12, .1) 30%, rgba(24, 16, 12, .1) 50%, rgba(24, 16, 12, .5) 78%, rgba(24, 16, 12, .2) 100%), linear-gradient(90deg, rgba(24, 16, 12, .42) 0%, transparent 60%); }
.lx-mist, .dx-mist { position: absolute; left: -4%; right: -4%; bottom: -2px; z-index: -1; height: 26%; pointer-events: none; background: url('/media/hero/clouds-soft.webp') center bottom / 100% 100% no-repeat; }
.lx-mist::after, .dx-mist::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(180deg, rgba(249, 238, 226, 0) 0%, rgba(249, 238, 226, .9) 60%, var(--cream) 100%); }
.lx-hero-in { position: relative; }
.lx-hero .crumbs { margin-bottom: 26px; }
.lx-hero h1 { max-width: 15ch; margin: 0; color: #fff; font-size: clamp(2.6rem, 6vw, 5.4rem); font-weight: 600; line-height: 1; letter-spacing: -.035em; text-shadow: 0 4px 30px rgba(20, 12, 8, .3); }
.lx-hero h1 span { color: var(--gold); }
.lx-sub { max-width: 50ch; margin: 18px 0 0; font-size: 1.12rem; color: rgba(255, 255, 255, .9); text-shadow: 0 1px 12px rgba(20, 12, 8, .35); }
.lx-stats { display: flex; flex-wrap: wrap; gap: 14px 0; list-style: none; margin: 34px 0 0; padding: 0; }
.lx-stats li { padding: 0 32px; border-left: 1px solid rgba(255, 255, 255, .35); }
.lx-stats li:first-child { padding-left: 0; border-left: 0; }
.lx-stats strong { display: block; font-family: var(--display); font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; }
.lx-stats span { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }

.listing.lx { padding-top: 0; background: var(--cream); }
.lx-search { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; gap: 6px; margin-top: -60px; padding: 10px; border-radius: 26px; background: #fff; box-shadow: 0 24px 70px rgba(110, 60, 50, .18); }
.lx-field { display: flex; align-items: center; gap: 14px; min-width: 0; height: 72px; padding: 0 20px; border-radius: 16px; cursor: pointer; transition: background-color .25s; }
.lx-field:hover { background: var(--cream); }
.lx-field > .ic { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand); }
.lx-field > span { flex: 1; min-width: 0; }
.lx-field small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lx-field select { width: 100%; margin-top: 2px; padding: 0; border: 0; background: transparent; font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--ink); outline: none; cursor: pointer; }
.lx-go { display: inline-flex; align-items: center; gap: 10px; height: 64px; padding: 0 30px; border: 0; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 600; font-size: 1rem; cursor: pointer; transition: background-color .25s, transform .35s var(--out); }
.lx-go:hover { background: var(--brand); transform: translateY(-2px); }
.lx-go .ic { width: 18px; height: 18px; }
.lx-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 34px 0 26px; }
.lx-bar .results-count { margin: 0; }
.lx-bar .homes-chip { display: inline-flex; align-items: center; text-decoration: none; }

.lx-list { display: grid; gap: clamp(26px, 3.4vw, 48px); }
.lx-row { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr); overflow: hidden; border-radius: 30px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 18px 46px rgba(110, 60, 50, .1); transition: box-shadow .6s var(--out), transform .6s var(--out); }
.lx-row:hover { box-shadow: 0 34px 80px -18px rgba(110, 60, 50, .3); transform: translateY(-4px); }
.lx-row.is-flip .lx-media { order: 2; }
.lx-media { position: relative; display: block; min-height: 480px; overflow: hidden; background: #F2E6D6; }
.lx-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--out); }
.lx-media.is-studio img { object-fit: contain; padding: 40px 28px 20px; }
.lx-row:hover .lx-media img { transform: scale(1.05); }
.lx-media .chip { position: absolute; top: 20px; left: 20px; }
.lx-photos { position: absolute; left: 20px; bottom: 20px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(20, 16, 14, .62); color: #fff; font-size: .8rem; font-weight: 600; }
.lx-photos .ic { width: 16px; height: 16px; }
.lx-info { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.4vw, 48px); }
.lx-num { position: absolute; top: clamp(20px, 2.6vw, 34px); right: clamp(24px, 3vw, 40px); font-family: var(--display); font-size: clamp(2.6rem, 4vw, 3.8rem); font-weight: 700; line-height: 1; color: transparent; -webkit-text-stroke: 1.4px var(--line); }
.lx-info h2 { margin: 2px 0 8px; padding-right: 70px; font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 600; letter-spacing: -.035em; line-height: 1.1; }
.lx-info h2 a:hover { color: var(--brand); }
.lx-tag { margin: 0 0 18px; color: var(--ink-2); max-width: 46ch; }
.lx-configs { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--line); }
.lx-configs li { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; color: var(--ink-2); }
.lx-configs li span:first-child { font-weight: 600; color: var(--ink); }
.lx-configs strong { font-family: var(--display); font-weight: 600; color: var(--brand); }
.lx-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.lx-facts li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: var(--cream); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.lx-facts .ic { width: 15px; height: 15px; color: var(--brand); }
.lx-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 22px; border-top: 1px solid var(--line); }
.lx-price { margin-right: auto; }
.lx-price small { display: block; font-size: .76rem; color: var(--muted); }
.lx-price strong { font-family: var(--display); font-size: clamp(1.6rem, 2.2vw, 2rem); font-weight: 600; letter-spacing: -.03em; color: var(--brand); }
.lx-foot { gap: 10px; }
.lx-foot .pill { height: 46px; padding: 0 18px; font-size: .9rem; }
.lx-foot .round-btn { width: 46px; height: 46px; }

/* =====================================================================
   Detail page
   ===================================================================== */
.dx-hero { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: max(660px, 94svh); padding: calc(var(--header-h) + 60px) 0 clamp(200px, 27vh, 250px); overflow: hidden; color: #fff; background: #2a2420; }
.dx-hero-bg { position: absolute; inset: 0; z-index: -4; width: 100%; height: 100%; object-fit: cover; animation: slowZoom 28s ease-in-out infinite alternate; }
.dx-model { position: absolute; z-index: -2; right: 3vw; top: calc(var(--header-h) + 3vh); width: min(52vw, 860px); filter: drop-shadow(0 30px 40px rgba(20, 12, 8, .45)); }
.has-model .dx-tint { background: linear-gradient(180deg, rgba(24, 16, 12, .5) 0%, rgba(24, 16, 12, .15) 35%, rgba(24, 16, 12, .25) 60%, rgba(24, 16, 12, .55) 85%), linear-gradient(90deg, rgba(24, 16, 12, .5) 0%, transparent 55%); }
.dx-hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 330px; align-items: end; gap: 40px; }
.dx-hero .crumbs { margin-bottom: 22px; }
.dx-eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; font-size: .86rem; font-weight: 600; letter-spacing: .04em; color: rgba(255, 255, 255, .9); }
.dx-hero h1 { margin: 16px 0 12px; color: #fff; font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 600; line-height: 1.02; letter-spacing: -.035em; text-shadow: 0 4px 30px rgba(20, 12, 8, .35); }
.dx-tagline { max-width: 52ch; margin: 0; font-size: 1.12rem; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(20, 12, 8, .4); }
.dx-price-card { padding: 24px; border-radius: 24px; background: #fff; color: var(--ink); box-shadow: 0 30px 70px rgba(20, 12, 8, .3); }
.dx-price-card small { display: block; font-size: .78rem; color: var(--muted); }
.dx-price-card strong { display: block; font-family: var(--display); font-size: 2.4rem; font-weight: 600; line-height: 1.1; letter-spacing: -.035em; color: var(--brand); }
.dx-price-sub { display: block; margin: 4px 0 18px; font-size: .88rem; color: var(--ink-2); }
.dx-price-links { display: flex; gap: 8px; margin-top: 10px; }
.dx-price-links a { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 14px; border: 1px solid var(--line); font-size: .86rem; font-weight: 600; transition: background-color .25s, border-color .25s; }
.dx-price-links a:hover { background: var(--cream); border-color: var(--ink); }
.dx-price-links a:first-child { color: #1f9d55; }
.dx-price-links .ic { width: 17px; height: 17px; }

.dx-under { position: relative; z-index: 2; padding: 0 0 clamp(50px, 6vw, 70px); background: var(--cream); }
.dx-facts { position: relative; margin-top: -84px; box-shadow: 0 24px 60px rgba(110, 60, 50, .14); }
.dx-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 22px; }
.dx-shot { position: relative; aspect-ratio: 4 / 3; padding: 0; overflow: hidden; border: 0; border-radius: 20px; background: #F2E6D6; cursor: zoom-in; }
.dx-shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--out); }
.dx-shot.is-studio img { object-fit: contain; padding: 14px; }
.dx-shot:hover img { transform: scale(1.06); }
.dx-shot-cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: .76rem; font-weight: 600; text-align: left; }
.dx-shot-zoom { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--ink); opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--out); }
.dx-shot-zoom .ic { width: 17px; height: 17px; }
.dx-shot:hover .dx-shot-zoom { opacity: 1; transform: none; }
.dx-tile { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 100%; aspect-ratio: 4 / 3; padding: 24px; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); transition: transform .5s var(--out), box-shadow .5s var(--out); }
.dx-tile:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -12px rgba(110, 60, 50, .25); }
.dx-tile .ic { width: 46px; height: 46px; margin-bottom: auto; padding: 11px; border-radius: 14px; background: var(--cream); color: var(--brand); }
.dx-tile strong { font-family: var(--display); font-size: 1.08rem; font-weight: 600; }
.dx-tile small { font-size: .84rem; color: var(--muted); }
.dx-tile-dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.dx-tile-dark .ic { background: rgba(255, 255, 255, .12); color: var(--gold); }
.dx-tile-dark small { color: rgba(255, 255, 255, .72); }

.lb { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(16, 12, 10, .94); }
.lb[hidden] { display: none; }
.lb-fig { margin: 0; max-width: 88vw; }
.lb-fig img { display: block; max-width: 88vw; max-height: 78vh; border-radius: 14px; }
.lb-fig img.is-studio { background: var(--cream); padding: 20px; }
.lb-fig figcaption { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: #fff; font-size: .95rem; }
.lb-fig figcaption small { color: rgba(255, 255, 255, .6); }
.lb-nav, .lb-close { position: absolute; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.8rem; line-height: 1; cursor: pointer; transition: background-color .25s; }
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, .22); }
.lb-prev { left: 3vw; top: 50%; translate: 0 -50%; }
.lb-next { right: 3vw; top: 50%; translate: 0 -50%; }
.lb-close { top: 22px; right: 24px; font-size: 1.6rem; }
html.lb-open { overflow: hidden; }

.detail-body { background: var(--cream); }
.subnav { background: #fff; box-shadow: 0 8px 24px rgba(110, 60, 50, .06); }
.subnav a.is-active, .subnav a:hover { border-color: var(--brand); }
.d-sec h2 { font-weight: 600; }
.config-card { transition: box-shadow .5s var(--out), border-color .3s; }
.config-card:hover { border-color: transparent; box-shadow: 0 26px 54px -14px rgba(110, 60, 50, .28); }
.config-price { font-weight: 600; }
.aside-card .visit-form { border-radius: 26px; }
.similar { background: var(--cream-2) url('/media/bg/grid.svg') -1px -1px / 64px 64px; border-top: 1px solid var(--line); }
.p-card { transition: transform .55s var(--out), box-shadow .55s var(--out); }
.p-card:hover { transform: translateY(-6px); }

.dx-mbar { display: none; }

@media (max-width: 1000px) {
    .lx-search { grid-template-columns: 1fr 1fr; }
    .lx-go { grid-column: 1 / -1; justify-content: center; height: 54px; }
    .lx-row, .lx-row.is-flip { grid-template-columns: minmax(0, 1fr); }
    .lx-row.is-flip .lx-media { order: 0; }
    .lx-media { min-height: 0; aspect-ratio: 16 / 10; }
    .dx-hero-in { grid-template-columns: minmax(0, 1fr); }
    .dx-price-card { max-width: 420px; }
    .dx-model { width: 82vw; right: 50%; translate: 50% 0; top: calc(var(--header-h) + 2vh); }
    .dx-mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; gap: 8px; padding: 8px; border-radius: 20px; background: var(--ink); box-shadow: 0 18px 40px rgba(20, 12, 8, .35); transition: transform .45s var(--out); }
    .dx-mbar.is-hidden { transform: translateY(140%); }
    .dx-mbar a { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: rgba(255, 255, 255, .1); color: #fff; }
    .dx-mbar a.is-wa { background: #1f9d55; }
    .dx-mbar .ic { width: 20px; height: 20px; }
    .dx-mbar .dx-mbar-cta { flex: 1; width: auto; padding: 0 12px; background: #fff; color: var(--ink); font-weight: 700; font-size: .88rem; text-align: center; }
    body:has(.dx-mbar) .wa-float { display: none; }
    body:has(.dx-mbar) .site-footer { padding-bottom: 90px; }
}
@media (max-width: 640px) {
    .lx-search { grid-template-columns: minmax(0, 1fr); margin-top: -40px; }
    .lx-field { height: 62px; }
    .lx-stats li { padding: 0 16px; }
    .lx-configs li { grid-template-columns: minmax(0, 1fr) auto; }
    .lx-configs li span:nth-child(2) { display: none; }
    .lx-foot .pill-line { display: none; }
    .dx-hero { padding-bottom: 140px; }
    .dx-model { display: none; }
    .lb-nav { width: 44px; height: 44px; top: auto; bottom: 24px; translate: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lx-hero-bg, .dx-hero-bg { animation: none; }
}

/* =====================================================================
   Mobile app shell (kept last so it wins over earlier section rules)
   ===================================================================== */
/* ---------- App-style bottom navigation (≤980px) ---------- */
.tabbar, .sheet { display: none; }
@media (max-width: 980px) {
    :root { --header-h: 64px; --tab-h: 68px; --tab-space: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); }
    body { padding-bottom: var(--tab-space); }
    .header-icon { display: grid; }
    .wordmark { font-size: 1.45rem; }
    .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; height: var(--tab-space); padding: 0 6px env(safe-area-inset-bottom, 0px); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -12px rgba(60, 42, 20, .22); transition: transform .4s var(--ease); }
    .tabbar.is-tucked { transform: translateY(110%); }
    .tab { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; height: var(--tab-h); padding: 0; border: 0; background: none; color: var(--muted); font-family: var(--body); font-size: .68rem; font-weight: 600; letter-spacing: .01em; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: color .25s; }
    .tab > .ic { width: 23px; height: 23px; transition: transform .35s var(--ease); }
    .tab::before { content: ''; position: absolute; top: 0; left: 50%; width: 26px; height: 3px; margin-left: -13px; border-radius: 0 0 3px 3px; background: var(--brand); transform: scaleX(0); transition: transform .35s var(--ease); }
    .tab.is-active { color: var(--brand); }
    .tab.is-active::before { transform: scaleX(1); }
    .tab:active > .ic, .tab:active .tab-dots { transform: scale(.88); }
    .tab-dots { display: flex; align-items: center; justify-content: center; gap: 3px; width: 23px; height: 23px; transition: transform .35s var(--ease); }
    .tab-dots i { width: 4.5px; height: 4.5px; border-radius: 50%; background: currentColor; }
    .tab[aria-expanded="true"] { color: var(--ink); }
    /* Centre action: raised round "Book visit" button */
    .tab-cta { color: var(--ink); justify-content: flex-end; padding-bottom: 9px; }
    .tab-cta::before { display: none; }
    .tab-cta-btn { display: grid; place-items: center; width: 56px; height: 56px; margin-top: -26px; border-radius: 50%; background: var(--brand); color: #fff; border: 4px solid #fff; box-shadow: 0 10px 22px -8px rgba(11, 59, 102, .7); transition: transform .35s var(--ease); }
    .tab-cta-btn .ic { width: 22px; height: 22px; }
    .tab-cta:active .tab-cta-btn { transform: scale(.92); }

    /* "More" bottom sheet */
    .sheet { position: fixed; inset: 0; z-index: 90; display: block; }
    .sheet[hidden] { display: none; }
    .sheet-scrim { position: absolute; inset: 0; background: rgba(20, 16, 12, .45); opacity: 0; transition: opacity .35s; }
    .sheet.is-open .sheet-scrim { opacity: 1; }
    .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88svh; overflow-y: auto; overscroll-behavior: contain; padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px)); border-radius: 26px 26px 0 0; background: var(--cream); transform: translateY(100%); transition: transform .45s var(--ease); touch-action: pan-y; }
    .sheet.is-open .sheet-panel { transform: none; }
    .sheet-panel.is-dragging { transition: none; }
    .sheet-grab { display: block; width: 42px; height: 5px; margin: 0 auto 12px; border-radius: 5px; background: var(--line); }
    .sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
    .sheet-head h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; }
    .sheet-head h2 span { color: var(--brand); }
    .sheet-x { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cream-2); font-size: 1.5rem; line-height: 1; cursor: pointer; }
    .sheet-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
    .sheet-quick a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px 12px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); font-size: .82rem; font-weight: 600; }
    .sheet-quick span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); }
    .sheet-quick .is-wa span { background: #E3F6EA; color: #1f9d55; }
    .sheet-quick .ic { width: 21px; height: 21px; }
    .sheet-links { margin-bottom: 18px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); overflow: hidden; }
    .sheet-links a { display: flex; align-items: center; gap: 14px; padding: 15px 16px; font-weight: 600; font-size: .98rem; }
    .sheet-links a + a { border-top: 1px solid var(--line); }
    .sheet-links a > .ic:first-child { width: 22px; height: 22px; color: var(--brand); }
    .sheet-links a.is-active { color: var(--brand); }
    .sheet-go { width: 17px !important; height: 17px !important; margin-left: auto; color: var(--muted); }
    .sheet-rera { margin: 14px 0 0; font-size: .72rem; line-height: 1.5; color: var(--muted); text-align: center; }
    html.sheet-open { overflow: hidden; }

    /* WhatsApp lives in the header on mobile, so the floating bubble never covers content */
    .wa-float { display: none; }
    .header-cta { gap: 10px; }
    .header-icon-wa { background: #25D366; border-color: #25D366; color: #fff; }
    .on-hero .site-header:not(.is-scrolled) .header-icon-wa { border-color: #25D366; }
    /* Visit search on tablets: keep each label on one line */
    .vs-field strong { white-space: nowrap; font-size: 1rem; }
    .dx-mbar { bottom: calc(var(--tab-space) + 10px) !important; }
    .dx-mbar.is-hidden { transform: translateY(calc(100% + var(--tab-space) + 24px)) !important; }
    body:has(.dx-mbar) .site-footer { padding-bottom: 96px; }
}
@media (max-width: 640px) {
    .homes-head > * { min-width: 0; max-width: 100%; }
    .homes-tools { width: 100%; }
    .homes-chips { min-width: 0; }
}
