/* Dune & Pearl Estates, concept by OSquare Studio. Mobile first. */
@property --acc { syntax: "<color>"; inherits: true; initial-value: #b08a5a; }
:root {
  --ivory: #f4efe6;
  --sand: #ebe3d5;
  --paper: #fffdf9;
  --ink: #16201c;
  --ink-2: #4d5a54;
  --muted: #8a8f86;
  --line: #e0d6c5;
  --gold: #b08a5a;
  --gold-2: #d9b98a;
  --deep: #0f1714;
  --acc: var(--gold);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .55, 1);
  --shadow: 0 30px 60px -36px rgba(22, 32, 28, .45), 0 10px 20px -14px rgba(22, 32, 28, .2);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--ivory); overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select { font: inherit; color: inherit; }
button { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1; }
h2 { font-size: clamp(2.3rem, 7vw, 4rem); }
h3 { font-size: 1.05rem; font-weight: 600; letter-spacing: -.01em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--gold); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-2); }
.head { margin-bottom: clamp(24px, 4vw, 44px); }
.head__sub { margin-top: 14px; max-width: 46ch; color: var(--ink-2); font-size: 1.05rem; }
.head--row { display: grid; gap: 18px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .2s var(--ease), background-color .25s, box-shadow .3s; }
.btn:active { transform: scale(.97); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn--ink { background: var(--ink); color: var(--ivory); }
.btn--ink:hover { background: #26332d; }
.btn--gold { background: linear-gradient(135deg, #c9a271, #9c7646); color: #fff; box-shadow: 0 14px 30px -14px rgba(156, 118, 70, .9); }
.btn--gold:hover { box-shadow: 0 18px 36px -12px rgba(156, 118, 70, .95); transform: translateY(-1px); }
.round { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; transition: transform .2s var(--ease), background-color .2s; }
.round:active { transform: scale(.94); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 3vw, 28px); box-shadow: var(--shadow); }

/* Nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px var(--pad); color: #fff; transition: background-color .35s, color .35s, box-shadow .35s, padding .35s; }
.nav.is-stuck { background: rgba(244, 239, 230, .86); color: var(--ink); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; letter-spacing: .01em; }
.nav__links { display: none; gap: 32px; }
.nav__links a { text-decoration: none; font-size: .93rem; font-weight: 500; opacity: .85; }
.nav__links a:hover { opacity: 1; }
.nav__side { display: flex; align-items: center; gap: 10px; }
.lang { display: none; border: 0; background: none; cursor: pointer; font-family: "Noto Kufi Arabic", var(--sans); opacity: .8; }
.nav:not(.is-stuck) .btn--ink { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.3); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; color: #fff; overflow: hidden; background: var(--deep); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.08); transition: opacity 1.4s var(--ease); }
.hero__media img.is-on { opacity: 1; animation: kenburns 9s linear forwards; }
@keyframes kenburns { from { transform: scale(1.14) translate3d(1%, 1%, 0); } to { transform: scale(1.02) translate3d(0, 0, 0); } }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 13, .55) 0%, rgba(10, 16, 13, .15) 35%, rgba(10, 16, 13, .35) 60%, rgba(10, 16, 13, .88) 100%); }
.hero__in { position: relative; align-self: end; padding: 110px var(--pad) 22px; max-width: 1240px; width: 100%; margin: 0 auto; }
.concept { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(10px); font-size: .76rem; text-decoration: none; }
.concept i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 0 rgba(217, 185, 138, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(217, 185, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 185, 138, 0); } }
.hero__title { margin-top: 18px; font-size: clamp(2.9rem, 12vw, 6.4rem); line-height: .95; }
.hero__title span, .hero__title em { display: block; }
.hero__title em { font-style: italic; color: var(--gold-2); }
.js .hero__title > * { opacity: 0; transform: translateY(26px); animation: rise .9s var(--ease) forwards; }
.js .hero__title > :nth-child(2) { animation-delay: .12s; }
.js .hero__title > :nth-child(3) { animation-delay: .24s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__lede { margin-top: 16px; max-width: 34ch; color: rgba(255,255,255,.82); font-size: 1.05rem; }

/* Search */
.search { display: grid; gap: 8px; margin-top: 24px; padding: 10px; border-radius: 26px; background: rgba(255, 253, 249, .14); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: rgba(0,0,0,.25); --n: 2; --i: 0; }
.seg label { position: relative; z-index: 1; display: grid; place-items: center; min-height: 40px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label span { transition: color .3s; }
.seg__pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 999px; background: var(--paper); box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); transform: translateX(calc(var(--i) * 100%)); transition: transform .45s var(--spring); }
.seg label:has(input:checked) span { color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 4px; border-radius: 6px; }
.field { display: grid; gap: 2px; min-width: 0; padding: 8px 16px; border-radius: 18px; background: rgba(255,255,255,.1); }
.field > span { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; opacity: .75; display: flex; justify-content: space-between; gap: 10px; }
.field select, .field input:not([type=range]) { width: 100%; min-height: 30px; padding: 0; border: 0; background: none; outline: none; font-weight: 600; appearance: none; -webkit-appearance: none; }
.search .field select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") right center no-repeat; color: #fff; }
.search .field select option { color: var(--ink); }
.search__go { width: 100%; }
.hero__foot { position: relative; padding: 18px var(--pad) 96px; max-width: 1240px; width: 100%; margin: 0 auto; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.22); }
.kpis dt { font-size: .74rem; opacity: .7; }
.kpis dd { margin: 0; font-family: var(--serif); font-size: clamp(1.8rem, 6vw, 2.6rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.hero__dots { display: flex; gap: 6px; margin-top: 18px; }
.hero__dots i { position: relative; width: 26px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.3); overflow: hidden; }
.hero__dots i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.hero__dots i.is-on::after { animation: fill 7s linear forwards; }
@keyframes fill { to { transform: scaleX(1); } }

/* Communities rail */
.communities { padding: clamp(64px, 9vw, 120px) 0 24px; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--pad) 10px; scroll-padding-inline: var(--pad); scrollbar-width: none; max-width: 1240px; margin: 0 auto; }
.rail::-webkit-scrollbar { display: none; }
.com { position: relative; flex: 0 0 auto; width: 150px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 22px; overflow: hidden; cursor: pointer; scroll-snap-align: start; color: #fff; text-align: left; background: var(--deep); box-shadow: 0 16px 30px -22px rgba(0,0,0,.6); transition: transform .4s var(--ease), box-shadow .4s; }
.com img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.com::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,16,13,.85)); }
.com span { position: absolute; z-index: 1; left: 14px; right: 14px; bottom: 12px; font-weight: 600; line-height: 1.2; }
.com small { display: block; font-weight: 500; font-size: .76rem; opacity: .8; }
.com--all { display: grid; place-items: center; background: var(--ink); }
.com--all::after { display: none; }
.com--all svg { width: 34px; height: 34px; opacity: .9; }
.com[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--ivory), 0 0 0 5px var(--gold), 0 18px 34px -18px rgba(0,0,0,.6); transform: translateY(-3px); }
.com:hover img { transform: scale(1.08); }

/* Scroller cues (shared) */
.hs { --fl: 0px; --fr: 48px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); mask-image: linear-gradient(90deg, transparent, #000 var(--fl), #000 calc(100% - var(--fr)), transparent); }
.hs:not(.hs--start) { --fl: 40px; }
.hs.hs--end { --fr: 0px; }
.hs-bar { height: 3px; margin: 8px auto 0; width: 84px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hs-bar i { display: block; height: 100%; border-radius: 3px; background: var(--gold); transition: width .3s; }
.is-grabbing { cursor: grabbing; user-select: none; }
.is-grabbing * { pointer-events: none; }

/* Homes */
.homes { padding: 48px 0 clamp(64px, 9vw, 120px); }
.pills { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad); }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-weight: 600; font-size: .9rem; transition: background-color .25s, color .25s, border-color .25s; }
.pill i { font-style: normal; min-width: 22px; padding: 1px 6px; border-radius: 99px; background: var(--sand); font-size: .74rem; text-align: center; }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--ivory); }
.pill[aria-pressed="true"] i { background: rgba(255,255,255,.16); }
.pill:disabled { opacity: .4; cursor: default; }
.results { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; color: var(--ink-2); }
.results b { color: var(--ink); font-variant-numeric: tabular-nums; }
.clear { margin-left: auto; border: 0; background: none; cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.grid { display: grid; gap: 18px; }
.home { position: relative; display: block; padding: 0; border: 0; border-radius: 26px; overflow: hidden; background: var(--paper); color: inherit; text-align: left; cursor: pointer; box-shadow: var(--shadow); transition: transform .5s var(--ease), box-shadow .5s; }
.home:hover { transform: translateY(-4px); }
.home__pics { position: relative; display: flex; aspect-ratio: 4 / 3; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--sand); }
.home__pics::-webkit-scrollbar { display: none; }
.home__pics img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.home__dots { position: absolute; left: 0; right: 0; top: calc(75% * 1 - 24px); display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.home__dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.55); transition: width .35s var(--ease), background-color .3s; }
.home__dots i.is-on { width: 18px; background: #fff; }
.home__tag { position: absolute; top: 14px; left: 14px; padding: 5px 11px; border-radius: 99px; background: rgba(255,253,249,.92); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.home__save { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,253,249,.92); display: grid; place-items: center; cursor: pointer; }
.home__save[aria-pressed="true"] svg path { fill: #c0563f; stroke: #c0563f; }
.home__body { display: grid; gap: 4px; padding: 18px 20px 20px; }
.home__where { color: var(--gold); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.home__title { font-family: var(--serif); font-size: 1.65rem; font-weight: 500; line-height: 1.1; }
.home__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; color: var(--ink-2); font-size: .88rem; }
.home__meta span { display: inline-flex; align-items: center; gap: 6px; }
.home__meta svg { width: 16px; height: 16px; opacity: .7; }
.home__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.home__price { font-weight: 700; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.home__psf { display: inline-flex; align-items: center; gap: 6px; color: #2f7a52; font-size: .78rem; font-weight: 600; }
.home__psf i { width: 34px; height: 4px; border-radius: 4px; background: #d7eadf; overflow: hidden; }
.home__psf i::after { content: ""; display: block; height: 100%; width: calc(var(--g) * 100%); background: #2f7a52; transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) .4s; }
.home.is-in .home__psf i::after { transform: none; }
.grid__empty { padding: 40px 20px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: 22px; }

/* Market */
.market { padding: clamp(64px, 9vw, 120px) 0; background: var(--deep); color: var(--ivory); }
.market .head__sub { color: rgba(244,239,230,.7); }
.market .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); box-shadow: none; }
.pulse { display: grid; gap: 14px; }
.card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; padding: 5px 11px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.chip--up { background: rgba(111, 211, 154, .15); color: #8fe3b0; }
.card--chart { display: flex; flex-direction: column; }
.bigchart { flex: 1; display: flex; align-items: flex-end; }
.bigchart svg { display: block; width: 100%; height: auto; margin-top: 14px; overflow: visible; }
.bc__grid { stroke: rgba(255,255,255,.08); }
.bc__lbl { fill: rgba(244,239,230,.5); font: 11px var(--sans); }
.bc__line { fill: none; stroke: var(--gold-2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease); }
.bc__area { opacity: 0; transition: opacity 1.2s 1s; }
.bc__dot { fill: var(--gold-2); stroke: var(--deep); stroke-width: 3; transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .5s var(--spring) 2s; }
.bc__tip { opacity: 0; transition: opacity .5s 2.1s; }
.bc__tip rect { fill: var(--ivory); }
.bc__tip text { fill: var(--ink); font: 700 11px var(--sans); }
.is-in .bc__line { stroke-dashoffset: 0; }
.is-in .bc__area, .is-in .bc__tip { opacity: 1; }
.is-in .bc__dot { scale: 1; }
.yoy { display: grid; gap: 12px; margin-top: 16px; }
.yoy li { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: .9rem; }
.yoy b { font-variant-numeric: tabular-nums; color: #8fe3b0; }
.yoy i { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: rgba(255,255,255,.08); overflow: hidden; }
.yoy i::after { content: ""; display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 6px; background: linear-gradient(90deg, #6e5636, var(--gold-2)); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease) calc(var(--d) * 90ms + .2s); }
.is-in .yoy i::after { transform: none; }
.card--ring { display: grid; align-content: start; gap: 14px; }
.ring { position: relative; width: 170px; margin: 6px auto 0; }
.ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.ring__fill { fill: none; stroke: var(--gold-2); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.8s var(--ease) .2s; }
.is-in .ring__fill { stroke-dasharray: var(--v) 100; }
.ring p { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; }
.ring span { font-size: .76rem; opacity: .7; }
.card__note { text-align: center; color: rgba(244,239,230,.7); font-size: .88rem; }

/* Off-plan */
.offplan { position: relative; padding: clamp(80px, 11vw, 150px) 0; color: #fff; overflow: hidden; background: var(--deep); }
.offplan__media { position: absolute; inset: 0; }
.offplan__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transition: transform 1.6s var(--ease); }
.offplan.is-in .offplan__media img { transform: scale(1); }
.offplan__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,16,13,.6), rgba(10,16,13,.9)); }
.offplan__in { position: relative; display: grid; gap: 28px; }
.offplan__copy p { margin: 14px 0 20px; color: rgba(255,255,255,.8); max-width: 42ch; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 420px; margin-bottom: 26px; }
.countdown div { display: grid; justify-items: center; padding: 12px 6px 10px; border-radius: 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(10px); }
.countdown b { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown b.is-tick { animation: tick .45s var(--ease); }
@keyframes tick { from { transform: translateY(-40%); opacity: 0; } }
.countdown span { font-size: .7rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }
.card--glass { background: rgba(255, 253, 249, .1); border-color: rgba(255,255,255,.2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); color: #fff; }
.plan__from { margin-top: 4px; color: rgba(255,255,255,.75); }
.plan__from b { color: #fff; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.plan__steps { display: grid; gap: 10px; margin-top: 16px; }
.plan__steps li { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 10px; padding-left: 12px; border-left: 3px solid var(--c); }
.plan__steps b { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.plan__steps span { color: rgba(255,255,255,.8); font-size: .9rem; }
.plan__bar { display: flex; gap: 4px; height: 10px; margin-top: 18px; }
.plan__bar i { flex: 0 0 calc(var(--w) * 1% - 3px); border-radius: 10px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .9s var(--ease); }
.plan__bar i:nth-child(2) { transition-delay: .5s; }
.plan__bar i:nth-child(3) { transition-delay: 1s; }
.plan.is-in .plan__bar i { transform: none; }
.plan__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; font-size: .82rem; }
.plan__facts li { display: grid; gap: 2px; }
.plan__facts span { opacity: .7; }
.plan__facts b { font-size: .95rem; }

/* Valuation */
.valuation { padding: clamp(64px, 9vw, 120px) 0; }
.valuation__in { display: grid; gap: 8px; }
.val { display: grid; gap: 22px; }
.val__fields { display: grid; gap: 10px; }
.field--box { padding: 10px 16px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); }
.field--box > span { color: var(--ink-2); opacity: 1; }
.field--box select { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316201c' stroke-width='1.6'/%3E%3C/svg%3E") right center no-repeat; }
.field--range output { color: var(--ink); font-weight: 700; letter-spacing: 0; text-transform: none; }
input[type=range] { --fill: 50%; width: 100%; height: 30px; margin: 4px 0 0; background: none; appearance: none; -webkit-appearance: none; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--fill), var(--line) var(--fill)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--gold) var(--fill), var(--line) var(--fill)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); box-shadow: 0 4px 10px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--gold); }
.val__out { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 20px 16px; border-radius: 20px; background: linear-gradient(180deg, var(--ivory), #efe6d6); }
.val__gauge { width: 100%; max-width: 260px; height: auto; }
.val__track { fill: none; stroke: var(--line); stroke-width: 12; stroke-linecap: round; }
.val__arc { fill: none; stroke-width: 12; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.1s var(--ease); }
.val__needle { transform-origin: 110px 110px; transform: rotate(-90deg); transition: transform 1.2s var(--spring); }
.val__needle path { fill: var(--ink); }
.val__hub { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.val__label { color: var(--ink-2); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.val__range { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: center; gap: 6px 10px; font-family: var(--serif); font-size: clamp(1.9rem, 7vw, 2.6rem); line-height: 1.1; font-variant-numeric: tabular-nums; }
.val__range span { font-family: var(--sans); font-size: .9rem; color: var(--ink-2); }
.val__psf { color: var(--ink-2); font-size: .9rem; margin-bottom: 12px; }

/* Advisors */
.advisors { padding: 0 0 clamp(64px, 9vw, 120px); }
.team { display: grid; gap: 16px; }
.advisor { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; padding: 12px; border-radius: 24px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.advisor img { width: 110px; height: 132px; border-radius: 16px; object-fit: cover; }
.advisor h3 { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; }
.advisor p { color: var(--ink-2); font-size: .9rem; }
.advisor__meta { display: grid; gap: 2px; margin-top: 8px; font-size: .8rem !important; }
.advisor__meta b { color: var(--ink); }

/* Contact */
.contact { padding: clamp(64px, 9vw, 120px) 0; background: var(--deep); color: var(--ivory); }
.contact .head__sub { color: rgba(244,239,230,.72); }
.contact__in { display: grid; gap: 10px; }
.contact__direct { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pillbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); text-decoration: none; font-weight: 600; transition: background-color .25s; }
.pillbtn:hover { background: rgba(255,255,255,.08); }
.form { display: grid; gap: 10px; color: var(--ink); }
.seg--form { background: var(--sand); --n: 3; }
.seg--form .seg__pill { background: var(--ink); }
.seg--form label:has(input:checked) span { color: var(--ivory); }
.form .is-invalid { border-color: #c0563f; }
.form__status { margin: 0; padding: 12px 14px; border-radius: 14px; background: #eef5ef; border-left: 4px solid #2f7a52; font-size: .92rem; }
.form__status.is-error { background: #faeeea; border-left-color: #c0563f; }

/* For agencies */
.agencies { padding: clamp(64px, 9vw, 120px) 0; }
.features { display: grid; gap: 12px; }
.features li { padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: var(--paper); }
.features p { margin-top: 8px; color: var(--ink-2); font-size: .94rem; }

.foot { padding: 34px 0 110px; background: var(--deep); color: rgba(244,239,230,.62); font-size: .84rem; border-top: 1px solid rgba(255,255,255,.08); }
.foot__in { display: grid; gap: 12px; }
.brand--foot { color: var(--ivory); font-size: 1.3rem; }

/* Mobile tab bar */
.tabbar { position: fixed; z-index: 25; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); translate: -50% 0; display: flex; gap: 2px; padding: 6px; border-radius: 999px; background: rgba(22, 32, 28, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 16px 34px -14px rgba(0,0,0,.6); transition: translate .45s var(--ease); }
.tabbar.is-hidden { translate: -50% 140%; }
.tabbar a { display: grid; justify-items: center; gap: 1px; min-width: 64px; padding: 6px 10px; border-radius: 999px; color: rgba(244,239,230,.62); font-size: .68rem; font-weight: 600; text-decoration: none; transition: background-color .3s, color .3s; }
.tabbar svg { width: 20px; height: 20px; }
.tabbar a.is-on { background: rgba(255,255,255,.12); color: var(--ivory); }

/* Reveal */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Sheet */
.sheet { width: 100%; max-width: 100%; max-height: 94dvh; margin: auto 0 0; padding: 0; border: 0; border-radius: 28px 28px 0 0; background: var(--paper); color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(15, 23, 20, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet[open] { animation: sheetUp .55s var(--ease); }
.sheet[open]::backdrop { animation: fadeIn .4s; }
.sheet.is-closing { animation: sheetDown .34s var(--ease) forwards; }
.sheet.is-closing::backdrop { animation: fadeOut .34s forwards; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet__close { position: sticky; top: 14px; z-index: 4; margin: 14px 14px -60px auto; display: grid; background: rgba(255,253,249,.92); }
.gallery { position: relative; min-width: 0; background: var(--sand); }
.gallery__track { display: flex; aspect-ratio: 4 / 3; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; background: var(--sand); }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .5s var(--ease); }
.gallery__slide img.is-ok { opacity: 1; animation: imgIn .9s var(--ease); }
@keyframes imgIn { from { transform: scale(1.05); } }
.gallery__count { position: absolute; top: 16px; left: 16px; padding: 5px 12px; border-radius: 99px; background: rgba(15,23,20,.55); color: #fff; font-size: .8rem; backdrop-filter: blur(8px); }
.gallery__dots { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.gallery__dots i { width: 6px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.55); transition: width .4s var(--ease), background-color .3s; }
.gallery__dots i.is-on { width: 22px; background: #fff; }
.gallery__nav { position: absolute; top: 50%; translate: 0 -50%; display: none; background: rgba(255,253,249,.88); border: 0; }
.gallery__nav--prev { left: 14px; }
.gallery__nav--next { right: 14px; }
.gallery__thumbs { display: none; }
.gallery__count, .gallery__dots, .gallery__thumbs, .gallery__nav { transition: opacity .4s var(--ease) .15s; }
.gallery__loader { position: absolute; inset: 0; z-index: 2; display: grid; place-content: center; justify-items: center; gap: 10px; color: var(--ink-2); font-size: .84rem; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); background: linear-gradient(100deg, #ebe3d5 30%, #f6f0e5 50%, #ebe3d5 70%) 0 0 / 200% 100%; }
.is-loading .gallery__loader { opacity: 1; animation: shimmer 1.6s linear infinite; }
.ld__house, .ld__door { fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.is-loading .ld__house { animation: draw 1.8s var(--ease) infinite; }
.is-loading .ld__door { animation: draw 1.8s var(--ease) .35s infinite; }
@keyframes draw { 0% { stroke-dashoffset: 100; } 55%, 75% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
@keyframes shimmer { from { background-position: 150% 0; } to { background-position: -50% 0; } }
.is-loading .gallery__count, .is-loading .gallery__dots, .is-loading .gallery__thumbs, .is-loading .gallery__nav { opacity: 0; }

.sheet__body { padding: 22px var(--pad) 32px; }
.sheet__where { color: var(--gold); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sheet h2 { margin-top: 4px; font-size: clamp(2.1rem, 8vw, 3rem); }
.sheet__desc { margin-top: 14px; color: var(--ink-2); }
.sheet__body h3 { margin-bottom: 12px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.facts li { display: grid; justify-items: center; gap: 2px; padding: 12px 4px; border-radius: 16px; background: var(--ivory); border: 1px solid var(--line); text-align: center; }
.facts svg { width: 20px; height: 20px; color: var(--gold); }
.facts b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.facts span { color: var(--ink-2); font-size: .72rem; }
.ppsf, .trend, .mort, .similar { margin-top: 28px; }
.ppsf__in { display: grid; gap: 12px; padding: 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--ivory); }
.pbar { display: grid; gap: 6px; }
.pbar__top { display: flex; justify-content: space-between; font-size: .88rem; }
.pbar__top b { font-variant-numeric: tabular-nums; }
.pbar__track { height: 12px; border-radius: 12px; background: var(--sand); overflow: hidden; }
.pbar__fill { display: block; height: 100%; width: 0; border-radius: 12px; background: var(--c, var(--gold)); transition: width 1.4s var(--ease) var(--delay, .2s); }
.is-anim .pbar__fill { width: calc(var(--v) * 100%); }
.ppsf__note { color: #2f7a52; font-weight: 600; font-size: .88rem; }
.tl svg { display: block; width: 100%; height: auto; overflow: visible; }
.tl__grid { stroke: var(--line); }
.tl__line { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.9s var(--ease) .2s; }
.tl__area { opacity: 0; transition: opacity 1s .9s; }
.tl__dot { fill: var(--gold); stroke: var(--paper); stroke-width: 3; transform-box: fill-box; transform-origin: center; scale: 0; transition: scale .5s var(--spring) 1.9s; }
.tl__txt { fill: var(--muted); font: 10px var(--sans); }
.is-anim .tl__line { stroke-dashoffset: 0; }
.is-anim .tl__area { opacity: 1; }
.is-anim .tl__dot { scale: 1; }
.tl__sum { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; color: var(--ink-2); font-size: .86rem; }
.tl__sum b { color: var(--ink); }
.mort__in { box-shadow: none; background: var(--ivory); display: grid; gap: 10px; }
.mort__in .field { background: none; padding: 0; }
.mort__in .field > span { color: var(--ink-2); opacity: 1; }
.mort__res { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.mort__res b { font-family: var(--serif); font-size: 2.2rem; font-weight: 500; font-variant-numeric: tabular-nums; }
.mort__res span { color: var(--ink-2); font-size: .86rem; }
.amen { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.amen li { padding: 7px 13px; border-radius: 99px; background: var(--ivory); border: 1px solid var(--line); font-size: .84rem; }
.similar__track { display: flex; gap: 12px; margin: 0 calc(var(--pad) * -1); padding: 2px var(--pad) 6px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); scrollbar-width: none; }
.similar__track::-webkit-scrollbar { display: none; }
.sim { flex: 0 0 68%; max-width: 260px; padding: 0; overflow: hidden; scroll-snap-align: start; text-align: left; border-radius: 20px; border: 1px solid var(--line); background: var(--ivory); cursor: pointer; transition: transform .35s var(--ease); }
.sim:hover { transform: translateY(-3px); }
.sim img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--sand); opacity: 0; transition: opacity .5s; }
.sim img.is-ok { opacity: 1; }
.sim > span { display: block; padding: 0 14px; }
.sim__why { margin-top: 10px; color: var(--gold); font-size: .74rem; font-weight: 700; }
.sim__title { font-family: var(--serif); font-size: 1.25rem; line-height: 1.15; }
.sim__price { margin: 4px 0 14px; font-weight: 600; font-size: .9rem; }
.sheet__bar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px calc(var(--pad) * -1) -32px; padding: 14px var(--pad) calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,253,249,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.sheet__bar span { display: block; color: var(--ink-2); font-size: .76rem; }
.sheet__bar strong { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sheet__cta { display: flex; gap: 8px; }
.round--wa { color: #1f8f55; }

/* Sheet skeleton and states */
.sheet__body :is(#dlg-where, #dlg-title, #dlg-desc, #dlg-price) { transition: color .35s; border-radius: 8px; }
.is-loading .sheet__body :is(#dlg-where, #dlg-title, #dlg-desc, #dlg-price) { color: transparent; background: linear-gradient(100deg, #efe7da 30%, #f8f3ea 50%, #efe7da 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.is-loading #dlg-where { width: 45%; }
.is-loading #dlg-title { width: 75%; }
:is(.facts li, .ppsf__in, #trend, .mort__in, .sim) { position: relative; }
:is(.facts li, .ppsf__in, #trend, .mort__in, .sim)::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .45s var(--ease); background: linear-gradient(100deg, #efe7da 30%, #f8f3ea 50%, #efe7da 70%) 0 0 / 200% 100%; }
#trend { border-radius: 16px; }
.is-loading :is(.facts li, .ppsf__in, #trend, .mort__in, .sim)::after { opacity: 1; animation: shimmer 1.4s linear infinite; }
.is-loading .sheet__bar .btn { opacity: .45; pointer-events: none; }
.sheet__in.is-ready .sheet__body > * { animation: rise2 .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.sheet__in.is-ready .sheet__body > .sheet__bar { animation: none; }
@keyframes rise2 { from { opacity: 0; transform: translateY(14px); } }
.sheet__in.no-motion, .sheet__in.no-motion * { transition: none !important; animation: none !important; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); translate: -50% 0; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--ivory); font-size: .9rem; box-shadow: 0 16px 40px -16px rgba(0,0,0,.5); animation: toastIn .4s var(--spring); }
@keyframes toastIn { from { opacity: 0; translate: -50% 20px; } }

/* Tablet */
@media (min-width: 700px) {
  .search { grid-template-columns: 170px repeat(3, minmax(0, 1fr)) auto; align-items: stretch; border-radius: 999px; padding: 8px; }
  .seg { align-self: center; }
  .field { border-radius: 999px; padding: 6px 18px; }
  .search__go { width: auto; padding: 0 22px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .com { width: 190px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head--row { grid-template-columns: 1fr auto; align-items: end; }
  .pills { margin: 0; padding: 2px; }
  .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--chart { grid-column: 1 / -1; }
  .val { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .advisor { grid-template-columns: 1fr; padding: 0; overflow: hidden; }
  .advisor img { width: 100%; height: auto; aspect-ratio: 5 / 6; border-radius: 0; }
  .advisor > div { padding: 4px 20px 20px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sheet { width: min(1120px, calc(100% - 48px)); margin: auto; border-radius: 28px; max-height: min(92dvh, 900px); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); }
  .sheet[open] { animation: pop .5s var(--ease); }
  @keyframes pop { from { transform: translateY(30px) scale(.97); opacity: 0; } }
  .sheet.is-closing { animation: popOut .28s var(--ease) forwards; }
  @keyframes popOut { to { transform: translateY(24px) scale(.97); opacity: 0; } }
  .sheet__in { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; }
  .gallery { position: sticky; top: 0; height: min(92dvh, 900px); display: grid; grid-template-rows: 1fr auto; }
  .gallery__track { aspect-ratio: auto; height: 100%; }
  .gallery__nav { display: grid; }
  .gallery__dots { display: none; }
  .gallery__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--sand); }
  .gallery__thumbs button { flex: 0 0 78px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; opacity: .6; transition: opacity .3s, border-color .3s; }
  .gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--gold); }
  .gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
  .sheet__body { padding: 30px 36px 32px; }
  .sheet__bar { margin: 28px -36px -32px; padding: 16px 36px; }
  .sim { flex-basis: 46%; }
}
/* Desktop */
@media (min-width: 1000px) {
  .nav__links { display: flex; }
  .lang { display: inline; }
  .hero__in { padding-bottom: 30px; }
  .hero__foot { padding-bottom: 40px; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
  .kpis { flex: 1; max-width: 820px; }
  .com { width: 210px; }
  .rail { padding-inline: var(--pad); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pulse { grid-template-columns: 1.4fr 1fr 1fr; }
  .card--chart { grid-column: auto; }
  .offplan__in { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 60px; }
  .valuation__in { grid-template-columns: .8fr 1.2fr; align-items: center; gap: 60px; }
  .contact__in { grid-template-columns: 1fr 1fr; align-items: start; gap: 60px; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabbar { display: none; }
  .foot { padding-bottom: 40px; }
  .toast { bottom: 30px; }
}
@media (hover: hover) and (pointer: fine) {
  .home__pics { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
