/* =========================================================
   ARTIMO · property and development pages
   House rule: no lines. Separation comes from spacing,
   soft tonal fills and rounded shapes.
   ========================================================= */

/* ---------- gallery hero ---------- */
.dhero { position: relative; height: calc(86svh - var(--frame)); min-height: 560px; max-height: 1020px; margin: var(--frame); border-radius: var(--r); overflow: hidden; background: var(--green); color: #fff; isolation: isolate; animation: dheroIn 1.5s var(--ease-io) both; }
.dhero[hidden] { display: none; }
@keyframes dheroIn { from { clip-path: inset(3.5% 3% 3.5% 3% round 20px); } to { clip-path: inset(0 0 0 0 round var(--r)); } }
.dhero__slides { position: absolute; inset: 0; z-index: -2; }
.dhero__slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1.5s var(--ease); }
.dhero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.07); transition: transform 9s linear; }
.dhero__slide.is-active { opacity: 1; }
.dhero__slide.is-active img { transform: scale(1); }
.dhero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 20, 14, .42) 0%, rgba(0, 20, 14, 0) 20%, rgba(0, 20, 14, 0) 68%, rgba(0, 20, 14, .52) 100%); }
.dhero__ui { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 clamp(18px, 2.4vw, 32px) clamp(16px, 2vw, 28px); pointer-events: none; animation: fadeIn 1s var(--ease) .7s both; }
.dhero__ui > * { pointer-events: auto; }
.dhero__dots { display: flex; gap: 6px; min-width: 0; }
.dhero .hero__dot { width: 40px; }
.dhero__right { display: flex; align-items: center; gap: 8px; }
.dhero__count { font-size: 13.5px; color: rgba(255, 255, 255, .88); margin-right: 8px; font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.dhero .icon-btn { width: 44px; height: 44px; border: 0; }
.dhero .icon-btn--paper { background: rgba(252, 251, 248, .94); color: var(--ink); }
.dhero .icon-btn--paper:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.dhero__all { margin-right: 4px; border: 0; background: rgba(255, 255, 255, .14); }
.dhero__all:hover { background: rgba(255, 255, 255, .24); }
.dhero__all .i { width: 15px; height: 15px; }
.dhero--single .dhero__dots, .dhero--single [data-dprev], .dhero--single [data-dnext], .dhero--single .dhero__count { display: none; }

/* ---------- title row ---------- */
.dtitle { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 32px clamp(32px, 5vw, 80px); padding-top: clamp(26px, 3vw, 44px); align-items: start; }
.dtitle .crumbs { margin-bottom: 14px; flex-wrap: wrap; }
.dtitle__name { font-size: clamp(38px, 4.4vw, 68px); line-height: 1.02; letter-spacing: -.038em; font-weight: 400; }
.dtitle__loc { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }
.dtitle__loc .i { width: 16px; height: 16px; color: var(--ink-3); }
.dtitle__price { margin-top: clamp(22px, 2.8vw, 38px); }
.dtitle__price > span { display: block; font-size: 13.5px; color: var(--ink-3); }
.dtitle__price strong { display: block; font-weight: 400; font-size: clamp(24px, 2vw, 30px); letter-spacing: -.022em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.dtitle__price small { display: block; font-size: 15px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.dtitle__right { padding-top: 6px; }
.dtitle__right > p { color: var(--ink-2); font-size: 16px; line-height: 1.62; }
.dtitle__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.dtitle__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 20px; margin-top: 18px; font-size: 13.5px; color: var(--ink-3); }
.dtitle__meta button { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; color: var(--ink-2); font-size: 13.5px; }
.dtitle__meta button:hover { color: var(--ink); }
.dtitle__meta .i { width: 15px; height: 15px; }
.dtitle__meta .tag { background: var(--bone-2); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- key facts ---------- */
.dfacts { padding-top: clamp(96px, 11vw, 168px); }
.dfacts__head { text-align: center; text-wrap: balance; max-width: 24ch; margin: 0 auto clamp(40px, 4.4vw, 64px); font-size: clamp(30px, 3vw, 46px); line-height: 1.1; letter-spacing: -.032em; font-weight: 400; }
.dfacts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1180px; margin-inline: auto; }
.fact { display: flex; flex-direction: column; justify-content: space-between; gap: 22px; min-height: 138px; background: #FFFFFF; border-radius: var(--r-md); padding: 24px 26px 26px; min-width: 0; }
.fact dt { font-size: 13.5px; color: var(--ink-3); }
.fact dd { font-size: 19px; letter-spacing: -.018em; line-height: 1.3; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---------- story ---------- */
.dstory { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); max-width: 1180px; margin: clamp(64px, 7vw, 110px) auto 0; }
.dstory__text p { font-size: clamp(17px, 1.35vw, 19.5px); line-height: 1.62; color: var(--ink-2); letter-spacing: -.012em; }
.dstory__text p:first-child { color: var(--ink); }
.dstory__text p + p { margin-top: 1.1em; }
.dstory__high h3 { font-size: 14px; font-weight: 400; color: var(--ink-3); padding-bottom: 14px; }
.dstory__high ul { display: grid; gap: 6px; }
.dstory__high li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; background: var(--paper); border-radius: var(--r-md); font-size: 16px; letter-spacing: -.012em; }
.dstory__high li .i { width: 17px; height: 17px; color: var(--olive); flex: none; }

/* ---------- mosaic ---------- */
.dgal__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dgal__item { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-md); overflow: hidden; cursor: zoom-in; background: var(--bone-2); color: #fff; text-align: left; }
.dgal__item--wide { grid-column: 1 / -1; aspect-ratio: 21 / 9; }
.dgal__zoom { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); }
.dgal__zoom img { width: 100%; height: 100%; object-fit: cover; }
.dgal__item:hover .dgal__zoom { transform: scale(1.035); }
.dgal__cap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 40px 20px 18px; font-size: 14px; background: linear-gradient(180deg, rgba(0, 20, 14, 0), rgba(0, 20, 14, .55)); }
.dgal__num { font-variant-numeric: tabular-nums; opacity: .8; }
.dgal__exp { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: var(--r-sm); display: grid; place-items: center; background: rgba(252, 251, 248, .92); color: var(--ink); opacity: 0; transform: scale(.9); transition: opacity .4s var(--ease), transform .6s var(--ease-out); }
.dgal__exp .i { width: 16px; height: 16px; }
.dgal__item:hover .dgal__exp, .dgal__item:focus-visible .dgal__exp { opacity: 1; transform: none; }

/* ---------- specifications ---------- */
.dspec { margin-inline: var(--frame); display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r); overflow: hidden; background: var(--green); color: var(--on-dark); min-height: 660px; isolation: isolate; }
.dspec__left { padding: clamp(28px, 3.4vw, 52px); display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.dspec__left .t-h2 { color: var(--on-dark); }
.dspec__rows { display: grid; gap: 2px; }
.dspec__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 13px 16px; border-radius: var(--r-sm); font-size: 15.5px; }
.dspec__rows li:nth-child(odd) { background: rgba(244, 239, 225, .06); }
.dspec__rows li span:first-child { color: var(--on-dark-2); flex: none; }
.dspec__rows li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dspec__right { position: relative; min-height: 440px; overflow: hidden; }
.dspec__right > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dspec__plan { position: absolute; left: clamp(16px, 2vw, 28px); bottom: clamp(16px, 2vw, 28px); width: min(380px, calc(100% - 32px)); background: rgba(252, 251, 248, .95); color: var(--ink); border-radius: var(--r-md); padding: 22px 22px 20px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.dspec__plan h3 { font-size: 19px; font-weight: 400; letter-spacing: -.018em; }
.dspec__plan p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.dspec__plan .btn { margin-top: 16px; }

/* ---------- residences (developments) ---------- */
.dchips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 16px; }
.dchip { height: 40px; padding: 0 16px; border-radius: var(--r-sm); background: rgba(19, 27, 23, .05); font-size: 14px; white-space: nowrap; transition: background-color .35s var(--ease), color .35s var(--ease); }
.dchip:hover { background: rgba(19, 27, 23, .09); }
.dchip[aria-pressed="true"] { background: var(--green); color: var(--on-dark); }
.dchips__count { margin-left: auto; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.dunits { background: #FFFFFF; border-radius: var(--r); padding: 10px; }
.utable { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.utable th { font-weight: 400; font-size: 13px; color: var(--ink-3); text-align: left; padding: 14px 14px 12px; white-space: nowrap; }
.utable td { padding: 16px 14px; vertical-align: middle; font-variant-numeric: tabular-nums; transition: background-color .3s var(--ease); }
.utable tr.is-alt td { background: rgba(19, 27, 23, .035); }
.utable tbody tr:hover td { background: rgba(19, 27, 23, .06); }
.utable td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.utable td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.utable td:first-child strong { display: block; font-weight: 500; letter-spacing: -.01em; }
.utable td:first-child span { font-size: 13.5px; color: var(--ink-3); }
.utable .u__act { text-align: right; }
.utable tr.is-out { display: none; }
.u--sold td { color: var(--ink-3); }
.ustat { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ustat--available .dot { background: var(--olive); }
.ustat--reserved .dot { background: var(--leather); }
.ustat--sold .dot { background: var(--ink-3); opacity: .5; }
.u__enq { --bh: 38px; padding: 0 16px; font-size: 14px; border: 0; background: rgba(19, 27, 23, .06); color: var(--ink); }
.u__enq:hover { background: var(--green); color: var(--on-dark); }

/* payment plan */
.dplan__steps { --n: 3; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 12px; }
.dplan__steps li { background: var(--paper); border-radius: var(--r-md); padding: 26px 26px 24px; display: flex; flex-direction: column; }
.dplan__pct { display: block; font-size: clamp(40px, 4.2vw, 64px); letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.dplan__lbl { display: block; margin-top: 12px; font-size: 16px; color: var(--ink); }
.dplan__when { display: block; margin-top: 4px; font-size: 14px; color: var(--ink-3); }
.dplan__bar { margin-top: auto; padding-top: 26px; }
.dplan__bar span { display: block; height: 6px; border-radius: 3px; background: var(--bone-2); overflow: hidden; }
.dplan__bar i { display: block; height: 100%; width: var(--p); border-radius: inherit; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .3s; }
.dplan__steps.is-in .dplan__bar i { transform: none; }

/* ---------- location ---------- */
.dloc__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.dmap { position: relative; z-index: 0; isolation: isolate; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: var(--bone-2); }
.dmap .leaflet-container { width: 100%; height: 100%; background: var(--bone-2); font-family: var(--font); }
.dmap .leaflet-tile-pane, .dmap .leaflet-overlay-pane img { filter: sepia(.28) saturate(.9) brightness(1.03) hue-rotate(-10deg); }
.dmap .leaflet-control-zoom { border: 0 !important; box-shadow: none !important; margin: 14px 14px 0 0 !important; }
.dmap .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 38px !important; background: rgba(252, 251, 248, .95); color: var(--ink); border: 0 !important; border-radius: var(--r-sm) !important; margin-bottom: 6px; font-weight: 300; font-size: 20px; }
.dmap .leaflet-control-zoom a:hover { background: #fff; }
.dmap .leaflet-control-attribution { background: rgba(252, 251, 248, .8); font-size: 10.5px; color: var(--ink-3); border-radius: 4px 0 0 0; }
.dmap .leaflet-control-attribution a { color: var(--ink-2); }
.dmap__label { background: none; border: 0; }
.dmap__label span { display: inline-block; transform: translate(-50%, -50%); background: var(--green); color: var(--on-dark); font: 13px/1 var(--font); padding: 8px 11px; border-radius: 4px; white-space: nowrap; box-shadow: 0 10px 30px -12px rgba(0, 20, 14, .6); }
.dmap__fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: 14px; }
.dist { display: grid; gap: 6px; }
.dist li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 18px; background: var(--paper); border-radius: var(--r-md); font-size: 16px; }
.dist li span:first-child { color: var(--ink-2); }
.dist li span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.dloc__note { margin-top: 18px; font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.dloc__side .link { margin-top: 18px; }

/* ---------- enquiry ---------- */
.denq { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5.5vw, 96px); align-items: start; }
.denq__intro { position: sticky; top: 120px; }
.denq__intro .t-h2 { max-width: 12ch; }
.denq__intro > p { margin-top: 20px; color: var(--ink-2); max-width: 40ch; font-size: 16.5px; line-height: 1.6; }
.adv { display: flex; gap: 18px; align-items: center; margin-top: 30px; padding: 18px 20px; background: var(--paper); border-radius: var(--r-md); }
.adv img { width: 68px; height: 68px; border-radius: 50%; object-fit: cover; flex: none; }
.adv strong { display: block; font-weight: 500; font-size: 17px; letter-spacing: -.015em; }
.adv__role { display: block; font-size: 14px; color: var(--ink-3); }
.adv__note { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.adv__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.adv__btns .btn { --bh: 46px; padding: 0 18px; font-size: 14.5px; gap: 9px; border: 0; background: rgba(19, 27, 23, .06); color: var(--ink); }
.adv__btns .btn:hover { background: var(--green); color: var(--on-dark); }
.denq__form { background: #FFFFFF; border-radius: var(--r); padding: clamp(24px, 3.2vw, 48px); }
.denq__form .form-body { display: grid; gap: 26px; }
.denq__two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; }
.denq__form .opt { color: var(--ink-3); opacity: .75; margin-left: 4px; }
.denq__form .field label { color: var(--ink-2); }
.denq__form input[type="date"].input { min-height: 50px; }
.denq__foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 4px; }
.seg { border: 0; margin: 0; padding: 0; min-width: 0; }
.seg legend { padding: 0; margin-bottom: 10px; font-size: 13px; color: var(--ink-2); }
.seg__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg__opt span { display: inline-flex; align-items: center; height: 42px; padding: 0 16px; border-radius: var(--r-sm); background: rgba(19, 27, 23, .05); font-size: 14px; cursor: pointer; transition: background-color .35s var(--ease), color .35s var(--ease); }
.seg__opt span:hover { background: rgba(19, 27, 23, .09); }
.seg__opt input:checked + span { background: var(--green); color: var(--on-dark); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--leather); outline-offset: 2px; }
[data-viewing-only]:not([hidden]) { animation: fadeUp .6s var(--ease-out) both; }
.denq .check.is-invalid > span { color: var(--leather); }
.denq .check.is-invalid input { background: rgba(149, 65, 48, .14); }
.denq__form .form-success { text-align: left; padding: 24px 0; }
.denq__tick { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: var(--starlight); margin-bottom: 22px; }
.denq__tick .i { width: 22px; height: 22px; }
.denq__form .form-success h3 { font-size: clamp(26px, 2.4vw, 34px); font-weight: 400; letter-spacing: -.028em; }
.denq__form .form-success p { margin-top: 10px; color: var(--ink-2); max-width: 44ch; }
.denq__form .form-success .adv__btns { margin-top: 26px; }

/* ---------- floating contact ---------- */
.fcontact { position: fixed; right: calc(var(--frame) + 12px); bottom: calc(var(--frame) + 12px); z-index: 65; display: flex; align-items: center; gap: 8px; opacity: 0; transform: translateY(26px); pointer-events: none; transition: opacity .5s var(--ease), transform .9s var(--ease-out); }
.fcontact.is-on { opacity: 1; transform: none; pointer-events: auto; }
.fcontact__item { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; min-width: 52px; border-radius: 26px; background: var(--paper); color: var(--ink); font-size: 14.5px; letter-spacing: -.01em; box-shadow: 0 18px 44px -16px rgba(0, 20, 14, .5); transition: transform .5s var(--ease-out), background-color .35s var(--ease), color .35s var(--ease); }
.fcontact__item .i { width: 19px; height: 19px; }
.fcontact__item:hover { transform: translateY(-2px); }
.fcontact__wa { color: var(--green); }
.fcontact__call:hover, .fcontact__wa:hover { background: #fff; }
.fcontact__enq { order: -1; padding: 0 22px 0 18px; background: var(--green); color: var(--on-dark); }
.fcontact__enq:hover { background: var(--green-3); }
.fcontact__enq .i { width: 17px; height: 17px; }
.fcontact__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.fcontact__enq .fcontact__lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }

/* ---------- lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 120; background: rgba(0, 16, 11, .97); color: var(--on-dark); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; opacity: 0; transition: opacity .45s var(--ease); }
.lb[hidden] { display: none; }
.lb.is-open { opacity: 1; }
.lb__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px clamp(14px, 2vw, 24px); padding-top: max(16px, env(safe-area-inset-top, 0px)); }
.lb__title { font-size: 15px; letter-spacing: -.01em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb__title span { color: var(--on-dark-3); margin-left: 12px; font-variant-numeric: tabular-nums; }
.lb .icon-btn { border: 0; background: rgba(244, 239, 225, .08); color: var(--on-dark); flex: none; }
.lb .icon-btn:hover { background: var(--on-dark); color: var(--green); }
.lb__stage { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(8px, 1.4vw, 20px); padding: 0 clamp(10px, 2vw, 24px); min-height: 0; }
.lb__fig { margin: 0; height: 100%; min-height: 0; display: grid; place-items: center; }
.lb__img { max-width: 100%; max-height: calc(100svh - 190px); object-fit: contain; border-radius: 6px; transition: opacity .35s var(--ease), transform .8s var(--ease-out); transform: scale(.98); opacity: 0; }
.lb.is-open .lb__img.is-ready { opacity: 1; transform: none; }
.lb__bottom { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 14px clamp(14px, 2vw, 24px) 20px; padding-bottom: max(20px, env(safe-area-inset-bottom, 0px)); }
.lb__cap { font-size: 14.5px; color: var(--on-dark-2); min-width: 0; }
.lb__thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: none; max-width: 60%; padding: 4px 2px; }
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button { width: 64px; height: 46px; border-radius: 5px; overflow: hidden; opacity: .38; flex: none; transition: opacity .3s var(--ease), transform .5s var(--ease-out); }
.lb__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.lb__thumbs button:hover { opacity: .7; }
.lb__thumbs button.is-on { opacity: 1; transform: translateY(-3px); }

/* ---------- toast ---------- */
.dtoast { position: fixed; left: 50%; bottom: calc(var(--frame) + 24px); z-index: 130; transform: translate(-50%, 14px); background: var(--green); color: var(--on-dark); padding: 11px 18px; border-radius: var(--r-sm); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease), transform .6s var(--ease-out); }
.dtoast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- not listed ---------- */
.dnf .t-lead { margin-top: 22px; max-width: 46ch; }
.dnf__btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .dfacts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
}

@media (max-width: 960px) {
  .dhero { height: calc(74svh - var(--frame)); min-height: 480px; }
  .dtitle { grid-template-columns: 1fr; }
  .dstory { grid-template-columns: 1fr; }
  .dspec { grid-template-columns: 1fr; min-height: 0; }
  .dspec__right { min-height: 0; aspect-ratio: 4 / 3; }
  .dloc__grid { grid-template-columns: 1fr; }
  .denq { grid-template-columns: 1fr; }
  .denq__intro { position: static; }
  .lb__thumbs { display: none; }
}

@media (max-width: 760px) {
  /* residences become compact cards */
  .dunits { background: none; padding: 0; }
  .utable thead { display: none; }
  .utable, .utable tbody { display: block; }
  .utable tbody { display: grid; gap: 8px; }
  .utable tbody tr { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-areas: "res res res st" "pr pr pr pr" "bd bu te ga" "ac ac ac ac"; gap: 14px 10px; padding: 18px; background: #FFFFFF; border-radius: var(--r-md); }
  .utable tr.is-alt td, .utable tbody tr:hover td { background: none; }
  .utable td { display: flex; flex-direction: column; gap: 3px; padding: 0; border-radius: 0 !important; font-size: 15px; min-width: 0; }
  .utable td::before { content: attr(data-label); font-size: 12px; color: var(--ink-3); }
  .utable td:nth-child(1) { grid-area: res; }
  .utable td:nth-child(1)::before, .utable td:nth-child(6)::before, .utable td:nth-child(7)::before { display: none; }
  .utable td:nth-child(1) strong { font-size: 17px; }
  .utable td:nth-child(2) { grid-area: bd; }
  .utable td:nth-child(3) { grid-area: bu; }
  .utable td:nth-child(4) { grid-area: te; }
  .utable td:nth-child(5) { grid-area: ga; }
  .utable td:nth-child(6) { grid-area: pr; font-size: 22px; letter-spacing: -.02em; }
  .utable td:nth-child(7) { grid-area: st; align-items: flex-end; justify-content: flex-start; font-size: 13.5px; }
  .utable td.u__act { grid-area: ac; }
  .utable td.u__act:empty { display: none; }
  .utable td.u__act::before { display: none; }
  .u__enq { --bh: 46px; width: 100%; }
  .u--sold { opacity: .7; }
  .dchips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .dchips::-webkit-scrollbar { display: none; }
  .dchip { height: 44px; flex: none; }
  .dchips__count { display: none; }
  .dplan__steps { grid-template-columns: 1fr; gap: 8px; }
  .dplan__steps li { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 20px; padding: 20px 22px; }
  .dplan__pct { grid-row: 1 / span 2; font-size: 44px; min-width: 2.4ch; }
  .dplan__lbl { margin-top: 0; }
  .dplan__when { margin-top: 0; }
  .dplan__bar { grid-column: 1 / -1; padding-top: 12px; }
}

@media (max-width: 640px) {
  /* gallery hero: native swipe with scroll-snap and a clear counter */
  .dhero { height: min(70svh, 580px); min-height: 420px; }
  .dhero__slides { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .dhero__slides::-webkit-scrollbar { display: none; }
  .dhero__slide { position: relative; flex: 0 0 100%; height: 100%; opacity: 1; transition: none; scroll-snap-align: start; scroll-snap-stop: always; }
  .dhero__slide img { transform: none; transition: none; }
  .dhero__slide.is-active img { transform: none; }
  .dhero__dots, .dhero [data-dprev], .dhero [data-dnext] { display: none; }
  .dhero__ui { padding: 0 14px 14px; }
  .dhero__count { margin: 0; padding: 0 14px; height: 36px; display: inline-flex; align-items: center; border-radius: 18px; background: rgba(0, 20, 14, .38); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 13.5px; }
  .dhero__all { --bh: 44px; width: 44px; padding: 0; margin: 0; font-size: 0; gap: 0; border-radius: 22px; background: rgba(0, 20, 14, .38); }
  .dhero__all .i { width: 17px; height: 17px; }

  .dtitle { gap: 24px; }
  .dtitle__name { font-size: 38px; }
  .dtitle__ctas { grid-template-columns: 1fr; gap: 8px; }
  .dtitle__ctas .btn { --bh: 52px; }

  .dfacts { padding-top: 88px; }
  .dfacts__head { font-size: 30px; margin-bottom: 32px; }
  .dfacts__grid { gap: 8px; }
  .fact { min-height: 112px; padding: 18px 16px 18px; gap: 16px; }
  .fact dt { font-size: 12.5px; }
  .fact dd { font-size: 16.5px; }
  .dstory { margin-top: 56px; gap: 40px; }
  .dstory__text p { font-size: 17px; }

  /* mosaic: one wide lead image, then a tidy grid of tiles */
  .dgal__grid { grid-template-columns: 1fr 1fr; gap: 6px; }
  .dgal__item, .dgal__item--wide { grid-column: auto; aspect-ratio: 1 / 1; border-radius: var(--r-sm); }
  .dgal__item:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
  .dgal__item:first-child ~ .dgal__item:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 16 / 11; }
  .dgal__cap { padding: 28px 12px 10px; font-size: 12.5px; }
  .dgal__cap > span:last-child { display: none; }
  .dgal__item:first-child .dgal__cap > span:last-child { display: inline; }
  .dgal__exp { display: none; }

  .dspec__left { gap: 32px; padding: 26px 16px 20px; }
  .dspec__left .t-h2 { padding-inline: 8px; }
  .dspec__rows li { padding: 12px 12px; font-size: 15px; }
  .dspec__right { aspect-ratio: auto; display: flex; flex-direction: column; }
  .dspec__right > img { position: static; aspect-ratio: 4 / 3; height: auto; }
  .dspec__plan { position: relative; left: auto; bottom: auto; width: auto; margin: -56px 12px 12px; }

  .dmap { aspect-ratio: 4 / 3; }
  .dist li { padding: 14px 16px; font-size: 15.5px; }

  .denq__form { padding: 22px 18px 24px; }
  .denq__two { grid-template-columns: 1fr; }
  .denq__foot { flex-direction: column; align-items: stretch; }
  .denq__foot .btn { width: 100%; --bh: 54px; }
  .seg__opt span { height: 44px; }
  .adv { padding: 16px; gap: 14px; }
  .adv img { width: 60px; height: 60px; }
  .adv__btns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .adv__btns .btn { --bh: 48px; padding: 0 8px; }

  /* lightbox: full-bleed, swipe */
  .lb__stage { grid-template-columns: 1fr; padding: 0; }
  .lb__img { border-radius: 0; max-height: calc(100svh - 150px); width: 100%; }
  .lb__stage .lb__nav { display: none; }
  .lb__bottom { justify-content: center; text-align: center; }

  /* the floating contact becomes a slim bar */
  body[data-page="property"] main, body[data-page="development"] main { padding-bottom: 84px; }
  .fcontact { left: var(--frame); right: var(--frame); bottom: calc(var(--frame) + env(safe-area-inset-bottom, 0px)); gap: 6px; padding: 6px; border-radius: 14px; background: rgba(241, 238, 232, .88); backdrop-filter: blur(20px) saturate(1.4); -webkit-backdrop-filter: blur(20px) saturate(1.4); box-shadow: 0 22px 50px -18px rgba(0, 20, 14, .5); }
  .fcontact__item { flex: 1; height: 50px; border-radius: 10px; box-shadow: none; font-size: 14.5px; }
  .fcontact__item:hover { transform: none; }
  .fcontact__enq { order: 3; padding: 0 12px; }
  .fcontact__lbl { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .cookie.is-on ~ .fcontact { opacity: 0; pointer-events: none; transform: translateY(26px); }
}

@media (hover: none) {
  .dgal__item:hover .dgal__zoom { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .dhero { animation: none; }
  .dplan__bar i { transform: none; }
}
