/* Develomart — design system
   Brand color, section color and fonts come from Site settings (injected in base.html). */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f3ef;
  --surface: #ffffff;
  --surface-2: #f0ebe5;
  --ink: #1c1917;
  --ink-2: #57514b;
  --muted: #8a827a;
  --line: #e6dfd7;
  --on-brand: #ffffff;
  --brand-tint: color-mix(in srgb, var(--brand) 9%, transparent);
  --footer: #15120f;
  --shadow: 0 1px 2px rgb(28 25 23 / .05), 0 14px 34px -14px rgb(28 25 23 / .22);
  --shadow-lg: 0 2px 6px rgb(28 25 23 / .06), 0 34px 70px -26px rgb(28 25 23 / .38);
  /* Corner scale by role (set by Site settings → Corners): small parts < inputs < cards < big photos < framed panels. */
  --rk: 1;
  --r-xs: calc(8px * var(--rk));
  --r-sm: calc(12px * var(--rk));
  --r: calc(18px * var(--rk));
  --r-lg: calc(26px * var(--rk));
  --r-xl: calc(36px * var(--rk));
  --r-btn: 999px;
  --frame: 12px; /* gap around full-width photo panels */
  --hdr: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg: #121110;
  --bg-soft: #181614;
  --surface: #1d1a18;
  --surface-2: #29251f;
  --ink: #eee9e3;
  --ink-2: #c4bcb3;
  --muted: #8f877e;
  --line: #34302b;
  --footer: #0c0b0a;
  --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 34px -12px rgb(0 0 0 / .55);
  --shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 34px 70px -24px rgb(0 0 0 / .7);
  color-scheme: dark;
}
:root[data-corners=sharp] { --rk: .2; --r-btn: 3px; --r-xl: 0px; --frame: 0px; }
:root[data-corners=round] { --rk: 1.4; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 60px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.6 var(--font-body); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand); color: var(--on-brand); }

.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
[dir=rtl] .flip-rtl, .flip { transform: scaleX(-1); }
[dir=rtl] .flip { transform: none; }
.sr, .skip:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 200; background: var(--brand); color: #fff; padding: 8px 12px; }
.muted { color: var(--muted); }
.align-end { display: flex; justify-content: flex-end; margin-bottom: 12px; }

/* ── Layout ─────────────────────────────── */
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: 32px; }
.wrap--narrow { max-width: 860px; }
.section { padding-block: 96px; }
.section--tight { padding-block: 56px; }
.section--soft { background: var(--bg-soft); }
.section--top0 { padding-top: 0; }
.section--first { padding-top: 36px; }
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.two-col--center { align-items: center; }
.two-col--wide-left { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; }
.layout-side { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; align-items: start; }
.side--sticky { position: sticky; top: calc(var(--hdr) + 24px); }

/* ── Type ───────────────────────────────── */
.display { font: 300 clamp(38px, 5.4vw, 72px)/1.04 var(--font-head); letter-spacing: -.015em; }
.display span, .display b { display: block; }
.display b { font-weight: 600; }
.display--light { color: #fff; }
.display--sm { font-size: clamp(34px, 4.4vw, 58px); }
.title { font: 300 clamp(28px, 3.4vw, 46px)/1.14 var(--font-head); letter-spacing: -.01em; margin-bottom: 28px; }
.title span, .title b { display: block; }
.title b { font-weight: 600; }
.title--center { text-align: center; }
.title--light { color: #fff; }
.title--page { font-size: clamp(28px, 3vw, 40px); font-weight: 400; margin-bottom: 8px; }
.title--sm { font-size: clamp(24px, 2.4vw, 32px); }
.title--sm span { display: inline; }
.title--sm b { display: inline; }
.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
  font: 600 11px/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--brand);
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: currentColor; flex: none; }
.eyebrow--light { color: #fff; }
html[lang=ar] .eyebrow { letter-spacing: 0; font-size: 12.5px; }
html[lang=ar] .display, html[lang=ar] .title { letter-spacing: 0; line-height: 1.35; }
.lead { font-size: 16.5px; color: var(--ink-2); max-width: 62ch; }
.h2 { font: 400 28px/1.2 var(--font-head); margin: 48px 0 18px; }
.h3 { font-size: 16px; font-weight: 600; margin: 0 0 14px; }
.prose { color: var(--ink-2); max-width: 70ch; font-size: 15.5px; }
.prose h2, .prose h3 { color: var(--ink); font-family: var(--font-head); font-weight: 400; margin: 1.6em 0 .6em; }
.quote { border-inline-start: 3px solid var(--brand); padding-inline-start: 12px; color: var(--ink-2); }

/* ── Buttons, chips, pills ──────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border: 1px solid transparent; border-radius: var(--r-btn);
  font: 600 13px/1.2 var(--font-body); letter-spacing: .01em; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn--brand { background: var(--brand); color: var(--on-brand); }
.btn--brand:hover { filter: brightness(.94); box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--brand) 75%, transparent); }
.btn--ghost { border-color: var(--line); background: var(--surface); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--ghost.is-fav { color: var(--brand); border-color: var(--brand); }
.btn--ghost.is-fav .ic { fill: currentColor; }
.btn--sm { padding: 9px 14px; font-size: 12.5px; }
.btn--block { width: 100%; margin-bottom: 8px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13px; color: var(--brand); }
.link-arrow:hover .ic { transform: translateX(3px); }
[dir=rtl] .link-arrow:hover .ic { transform: scaleX(-1) translateX(3px); }
.link-arrow .ic { transition: transform .2s var(--ease); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.chips--center { justify-content: center; margin-top: 32px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 13px; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s;
}
a.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.chip--static { cursor: default; }
.chips--light .chip { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .3); color: #fff; backdrop-filter: blur(8px); }

.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 600; line-height: 1.4; background: var(--surface-2); color: var(--ink-2); white-space: nowrap;
}
.pill--light { background: rgb(255 255 255 / .92); color: #1c1917; }
.pill--sea { background: #dff0f7; color: #1d5d78; }
.pill--available, .pill--req-sold, .pill--dev-approved { background: #e2f3e7; color: #1f6b3a; }
.pill--reserved, .pill--req-negotiation, .pill--dev-pending { background: #fdf0d6; color: #8a5800; }
.pill--sold, .pill--req-cancelled, .pill--dev-suspended { background: var(--surface-2); color: var(--muted); }
.pill--req-new { background: #e2ebfb; color: #234f9c; }
.pill--req-contacted { background: #ebe6fb; color: #4b3a99; }
.pill--req-viewing { background: #dcf3f1; color: #17635c; }
.pill--req-reserved { background: #f7e3ef; color: #8a2b60; }
.pill--req-declined, .pill--dev-rejected { background: #fbe4e4; color: #9b2525; }
[data-theme=dark] .pill--sea { background: #163440; color: #9fd4ea; }
[data-theme=dark] .pill--available, [data-theme=dark] .pill--req-sold, [data-theme=dark] .pill--dev-approved { background: #163322; color: #8fd7a6; }
[data-theme=dark] .pill--reserved, [data-theme=dark] .pill--req-negotiation, [data-theme=dark] .pill--dev-pending { background: #3a2c0f; color: #f0c56c; }
[data-theme=dark] .pill--req-new { background: #17284a; color: #9dbcf5; }
[data-theme=dark] .pill--req-contacted { background: #251f45; color: #b8a9f2; }
[data-theme=dark] .pill--req-viewing { background: #123532; color: #8fdcd3; }
[data-theme=dark] .pill--req-reserved { background: #3a1830; color: #ef9fcb; }
[data-theme=dark] .pill--req-declined, [data-theme=dark] .pill--dev-rejected { background: #3d1717; color: #f2a0a0; }

/* ── Header ─────────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 60; height: var(--hdr); background: var(--bg); border-bottom: 1px solid var(--line); transition: background .3s, color .3s, box-shadow .3s; }
.hdr--overlay { position: fixed; inset-inline: 0; background: transparent; border-color: transparent; color: #fff; }
.hdr--overlay.is-scrolled, .hdr--overlay.is-open { background: var(--bg); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.logo__mark { width: 32px; height: 32px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: var(--r-xs); }
.logo__mark .ic { width: 18px; height: 18px; }
.logo__word { font: 400 23px/1 var(--font-head); letter-spacing: -.01em; }
.logo__word b { font-weight: 700; }
.logo__img { height: 36px; width: auto; }
.logo__img--dark, [data-theme=dark] .logo__img--light { display: none; }
[data-theme=dark] .logo__img--dark { display: block; }
.nav { display: flex; align-items: center; gap: 26px; margin-inline-end: auto; }
.nav__link { font-size: 13.5px; font-weight: 500; padding: 6px 0; white-space: nowrap; position: relative; background: none; border: 0; display: inline-flex; align-items: center; gap: 8px; }
.nav__link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transition: transform .25s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__extra { display: none; }
.nav__group { position: relative; display: flex; align-items: center; }
.nav__caret { width: .9em; height: .9em; transition: transform .2s var(--ease); }
.nav__group:hover .nav__caret, .nav__group:focus-within .nav__caret { transform: rotate(180deg); }
.nav__sub {
  position: absolute; top: calc(100% + 10px); inset-inline-start: -18px; z-index: 70; min-width: 210px; padding: 8px;
  display: grid; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease);
}
.nav__sub::before { content: ""; position: absolute; inset-inline: 0; top: -12px; height: 12px; }
.nav__group:hover .nav__sub, .nav__group:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sublink { padding: 9px 14px; border-radius: var(--r-sm); font-size: 14px; white-space: nowrap; }
.nav__sublink:hover, .nav__sublink:focus-visible { background: var(--bg-soft); color: var(--brand); }
.tools { display: flex; align-items: center; gap: 8px; }
.tool { display: inline-flex; align-items: center; justify-content: center; height: 36px; min-width: 36px; border-radius: var(--r-btn); font-size: 12.5px; font-weight: 600; background: none; border: 1px solid transparent; }
.tool:hover { border-color: color-mix(in srgb, currentColor 25%, transparent); }
.tool--lang { padding-inline: 10px; border-color: color-mix(in srgb, currentColor 22%, transparent); }
.tool--cur select { appearance: none; height: 36px; padding: 0 10px; background: transparent; color: inherit; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); border-radius: var(--r-btn); font: 600 12.5px var(--font-body); cursor: pointer; }
.tool--cur option { color: #1c1917; background: #fff; }
.tool--text { padding-inline: 10px; }
.ic-sun, [data-theme=dark] .ic-moon { display: none; }
[data-theme=dark] .ic-sun { display: block; }
.bell { position: relative; }
.bell__dot { position: absolute; top: 2px; inset-inline-end: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 10px; line-height: 17px; text-align: center; }
.nav-toggle { display: none; }

/* ── Hero ───────────────────────────────── */
.hero { position: relative; min-height: min(94vh, 900px); margin: var(--frame) var(--frame) 0; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; padding-top: calc(var(--hdr) + 40px); }
.cover, .enquiry { overflow: hidden; }
.hero__frame { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: var(--r-xl); background: #2a2420; }
.hero__frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(12 10 8 / .5) 0%, rgb(12 10 8 / .08) 38%, rgb(12 10 8 / .74) 100%); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__in { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 36px; }
.hero__copy { max-width: 760px; }
.display .line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero__card { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; max-width: 300px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(14px); border-radius: var(--r-lg); font-size: 12.5px; }
.hero__card strong { display: block; font-size: 13.5px; }
.hero__card small { display: block; opacity: .8; margin: 2px 0 8px; }
.hero__card a { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.hero__card-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); }
.search {
  position: relative; z-index: 2; margin-bottom: -48px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 0;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); border-radius: var(--r-btn);
  padding: 8px;
}
.search__field { display: flex; flex-direction: column; padding: 10px 22px; border-inline-end: 1px solid var(--line); }
.search__field label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
html[lang=ar] .search__field label { letter-spacing: 0; }
.search__field select { appearance: none; border: 0; background: transparent; color: var(--ink); font: 500 15px var(--font-body); padding: 4px 0; cursor: pointer; outline: none; }
.search__field select option { background: var(--surface); }
.search__go { margin: 4px; padding-inline: 28px; }
.hero + .section { padding-top: 136px; }

/* ── Tiles (statement section) ──────────── */
.tiles { display: grid; grid-template-columns: 1fr 1fr 4fr; gap: 16px; margin-top: 44px; }
.tile { display: flex; flex-direction: column; gap: 10px; }
.tile__label { font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
html[lang=ar] .tile__label { letter-spacing: 0; font-size: 12px; }
.tile__img { position: relative; display: block; height: 360px; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); }
.tile__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.tile:hover img { transform: scale(1.05); }
.tile__count { font-size: 12px; color: var(--muted); }
.tile__cap { position: absolute; inset-inline: 0; bottom: 0; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 40px 20px 18px; color: #fff; font-size: 12.5px; background: linear-gradient(transparent, rgb(0 0 0 / .65)); }
.tile__cap span:first-child { max-width: 46ch; }

/* ── Split (why) ────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split__art { position: relative; padding-block: 48px; min-height: 520px; display: flex; align-items: center; }
.split__panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: 48%; background: repeating-linear-gradient(90deg, #7b4b2c 0 7px, #6b3f24 7px 9px, #87543a 9px 16px); border-radius: var(--r-lg); }
.split__art img { position: relative; width: 74%; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow-lg); border-radius: var(--r-lg); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 32px 0; padding-block: 24px; border-block: 1px solid var(--line); }
.stats strong { display: block; font: 400 34px/1 var(--font-head); color: var(--ink); }
.stats span { font-size: 12px; color: var(--muted); }

/* ── Marquee ────────────────────────────── */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
[dir=rtl] .marquee__track { animation-name: marqueeRtl; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
@keyframes marqueeRtl { to { transform: translateX(calc(50% + 8px)); } }
.logo-box { display: flex; align-items: center; justify-content: center; gap: 12px; height: 88px; min-width: 240px; padding-inline: 24px; background: var(--surface-2); border-radius: var(--r-btn); font-weight: 700; font-size: 15px; transition: background .2s; }
.logo-box:hover { background: var(--line); }
.logo-box__mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 600 13px var(--font-body); overflow: hidden; }

/* ── Taupe band / steps ─────────────────── */
.band { background: var(--section); padding-block: 96px; }
[data-theme=dark] .band { background: color-mix(in srgb, var(--section) 45%, #000); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.step { position: relative; background: var(--surface); padding: 30px 28px; min-height: 250px; border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: flex-end; }
.step__ic { position: absolute; top: 24px; inset-inline-end: 24px; color: var(--brand); }
.step__ic .ic { width: 28px; height: 28px; }
.step h3 { font: 400 26px/1.2 var(--font-head); margin-bottom: 10px; }
.step p:last-child { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* ── Tour ───────────────────────────────── */
.tour { position: relative; height: clamp(420px, 74vh, 760px); overflow: hidden; background: #111; }
.tour__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .9s var(--ease), transform 1.4s var(--ease); }
.tour__img.is-on { opacity: 1; transform: none; }
.tour__tabs { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); display: flex; gap: 2px; padding: 4px; background: rgb(255 255 255 / .16); border: 1px solid rgb(255 255 255 / .25); backdrop-filter: blur(12px); border-radius: 999px; max-width: calc(100% - 32px); overflow-x: auto; }
.tour__tabs button { border: 0; background: none; color: #fff; padding: 8px 16px; border-radius: 999px; font-size: 12.5px; white-space: nowrap; }
.tour__tabs button.is-on { background: #fff; color: #1c1917; }
.tour__cap { position: absolute; bottom: 24px; inset-inline-start: 24px; display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; color: #fff; font-size: 13px; background: rgb(0 0 0 / .35); backdrop-filter: blur(10px); border-radius: var(--r-btn); }

/* ── Feature rows ───────────────────────── */
.rows { margin-top: 16px; }
.row { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: start; padding-block: 44px; border-top: 1px solid var(--line); }
.row__ic { width: 40px; height: 40px; display: grid; place-items: center; background: var(--brand); color: #fff; border-radius: var(--r-sm); }
.row__text h3 { font-size: 18px; margin-bottom: 10px; }
.row__text h3 a:hover { color: var(--brand); }
.row__text > p { color: var(--ink-2); font-size: 14px; max-width: 46ch; }
.bullets { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 13px; color: var(--ink-2); }
.bullets li { display: flex; gap: 8px; align-items: center; }
.bullets .ic { color: var(--brand); }
.row__img { display: block; overflow: hidden; border-radius: var(--r-lg); aspect-ratio: 16/10; background: var(--surface-2); }
.row__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.row:hover .row__img img { transform: scale(1.04); }

/* ── Lifestyle grid ─────────────────────── */
.life-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.life { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.life:hover { transform: translateY(-3px); border-color: var(--brand); box-shadow: var(--shadow); }
.life__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand); margin-bottom: 10px; }
.life strong { font-size: 15px; }
.life small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.life__n { position: absolute; top: 18px; inset-inline-end: 18px; font: 400 22px var(--font-head); color: var(--muted); }

/* ── Enquiry ────────────────────────────── */
.enquiry { position: relative; isolation: isolate; display: grid; place-items: center; padding: 120px 16px; }
.enquiry__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.enquiry::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(16 12 10 / .55); }
.enquiry__card { width: 100%; max-width: 640px; padding: 44px; color: #fff; background: rgb(30 24 20 / .42); border: 1px solid rgb(255 255 255 / .18); backdrop-filter: blur(16px); border-radius: var(--r-xl); }
.enquiry__title { font: 300 clamp(22px, 2.4vw, 28px)/1.3 var(--font-head); margin-bottom: 28px; }
.enquiry__title b { font-weight: 600; }
.enquiry__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin-bottom: 18px; }
.ufield--wide { grid-column: 1 / -1; }
.enquiry .ufield span { color: rgb(255 255 255 / .75); }
.enquiry .ufield input { background: transparent; border: 0; border-bottom: 1px solid rgb(255 255 255 / .35); color: #fff; border-radius: 0; padding-inline: 0; }
.enquiry .ufield input:focus { border-color: #fff; box-shadow: none; }
.enquiry .btn { margin-top: 20px; }

/* ── Forms ──────────────────────────────── */
.ufield, .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ufield > span, .field > label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.ufield input, .ufield select, .ufield textarea,
.field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea,
.inline-search input, .inline-search select {
  width: 100%; padding: 12px 14px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); font: 400 14px var(--font-body); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.ufield input:focus, .ufield select:focus, .ufield textarea:focus,
.field input:focus, .field select:focus, .field textarea:focus, .inline-search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint); }
.field input[type=file] { font-size: 13px; color: var(--ink-2); }
.field--wide { grid-column: 1 / -1; }
.field--err input, .field--err select, .field--err textarea { border-color: #c53030; }
.field--checkboxselectmultiple > div { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.field--checkboxselectmultiple > div > div label { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); font-size: 13px; cursor: pointer; }
.field--checkboxselectmultiple > div > div label:has(input:checked) { border-color: var(--brand); background: var(--brand-tint); }
.field .help, .help { color: var(--muted); font-size: 11.5px; }
.err { color: #c53030; font-size: 12px; }
[data-theme=dark] .err { color: #f19a9a; }
.err-box { padding: 12px 14px; border-radius: var(--r-sm); background: #fbe4e4; color: #8a1f1f; font-size: 13.5px; }
[data-theme=dark] .err-box { background: #3d1717; color: #f2a0a0; }
.req { color: var(--brand); }
.check { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; cursor: pointer; }
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.check--light { color: rgb(255 255 255 / .85); }
input[type=range] { accent-color: var(--brand); width: 100%; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-bottom: 20px; }
.form-card { padding: 32px; }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.fs { margin: 0 0 16px; }
.fs legend { float: left; width: 100%; padding: 0; margin-bottom: 18px; }
.fs legend + * { clear: both; }
.dash-form .sticky-actions, .sticky-actions { position: sticky; bottom: 0; padding: 16px 0; display: flex; justify-content: flex-end; background: linear-gradient(transparent, var(--bg-soft) 40%); }
.inline-search { display: flex; gap: 8px; margin-top: 24px; max-width: 760px; }
.inline-search input { flex: 2; }
.inline-search select { flex: 1; }

/* ── Cards ──────────────────────────────── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; margin-bottom: 16px; }
.card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.card h3 { font-size: 16px; margin-bottom: 12px; }

.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }
.pcard:hover, .ucard:hover, .dcard:hover { border-color: transparent; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__media { position: relative; display: block; aspect-ratio: 16/11; overflow: hidden; background: var(--surface-2); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.pcard__badges { position: absolute; top: 14px; inset-inline-start: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard__body { padding: 18px 20px 20px; }
.pcard__dev { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 600; color: var(--brand); }
.pcard__title { font: 400 24px/1.2 var(--font-head); margin: 6px 0 4px; }
.pcard__title a:hover { color: var(--brand); }
.pcard__loc { font-size: 13px; color: var(--muted); margin: 0; display: flex; gap: 6px; align-items: center; }
.pcard__meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pcard__meta .k { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
html[lang=ar] .pcard__meta .k { letter-spacing: 0; font-size: 11.5px; }
.pcard__meta strong { font-size: 14px; }

.ucard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.ucard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.ucard[hidden] { display: none; }
.ucard__media { position: relative; display: block; aspect-ratio: 4/3; background: var(--surface-2); }
.ucard__media img { width: 100%; height: 100%; object-fit: cover; }
.ucard__media .pill { position: absolute; top: 12px; inset-inline-start: 12px; }
.ucard__body { padding: 14px 16px 16px; }
.ucard__type { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 2px; }
html[lang=ar] .ucard__type { letter-spacing: 0; }
.ucard__title { font-size: 15px; margin-bottom: 10px; }
.ucard__title a:hover { color: var(--brand); }
.ucard__project { display: flex; gap: 5px; align-items: center; margin: -6px 0 10px; font-size: 12.5px; color: var(--muted); }
.type-tabs { display: flex; gap: 8px; margin-top: 24px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.type-tab { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 92px; padding: 14px 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: border-color .2s, color .2s, background .2s; }
.type-tab .ic { width: 26px; height: 26px; color: var(--brand); }
.type-tab:hover { border-color: var(--brand); color: var(--brand); }
.type-tab.is-on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.type-tab.is-on .ic { color: var(--on-brand); }
.checks--2 { grid-template-columns: 1fr 1fr; }
.specs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0; font-size: 12.5px; color: var(--ink-2); }
.specs li { display: inline-flex; gap: 5px; align-items: center; }
.specs .ic { color: var(--muted); }
.ucard__price { margin: 12px 0 0; font: 600 18px var(--font-head); }

.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.dcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.dcard__media { display: block; aspect-ratio: 16/8; background: var(--surface-2); overflow: hidden; }
.dcard__media img { width: 100%; height: 100%; object-fit: cover; }
.dcard__body { padding: 0 20px 22px; }
.dcard__logo { width: 64px; height: 64px; flex: none; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font: 600 22px var(--font-head); color: var(--brand); box-shadow: var(--shadow); overflow: hidden; }
.dcard__logo img { width: 100%; height: 100%; object-fit: contain; }
.dcard__body > .dcard__logo { margin-top: -32px; position: relative; }
.dcard__title { font: 400 22px/1.25 var(--font-head); margin: 14px 0 4px; }
.verified { color: var(--brand); display: inline-flex; }
.dcard__tag { color: var(--muted); font-size: 13px; }
.dcard__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink-2); }
.dcard__meta span { display: inline-flex; gap: 6px; align-items: center; }

/* ── Page heads / covers ────────────────── */
.pagehead { padding: 64px 0 40px; }
.pagehead--compact { padding-bottom: 32px; }
.cover { position: relative; isolation: isolate; min-height: 480px; display: flex; align-items: flex-end; color: #fff; padding: calc(var(--hdr) + 60px) 0 48px; background: #2a2420; }
.cover--tall { min-height: min(80vh, 760px); }
.cover__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(12 10 8 / .5), rgb(12 10 8 / .15) 40%, rgb(12 10 8 / .78)); }
.cover__in { display: flex; align-items: flex-end; gap: 24px; }
.cover__in--split { justify-content: space-between; }
.cover__logo { width: 96px; height: 96px; flex: none; display: grid; place-items: center; background: var(--surface); color: var(--brand); font: 600 34px var(--font-head); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.cover__logo img { width: 100%; height: 100%; object-fit: contain; }
.cover__tag { opacity: .88; font-size: 15px; display: flex; gap: 8px; align-items: center; margin: 10px 0 0; }
.cover__dev { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; margin-bottom: 10px; opacity: .92; }
.cover__dev:hover { opacity: 1; text-decoration: underline; }
.pricebox { min-width: 270px; display: flex; flex-direction: column; gap: 4px; padding: 22px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .22); backdrop-filter: blur(14px); border-radius: var(--r-lg); }
.pricebox span { font-size: 12px; opacity: .8; }
.pricebox strong { font: 500 30px/1.15 var(--font-head); }
.pricebox small { opacity: .8; margin-bottom: 12px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--brand); }
.crumbs--light { color: rgb(255 255 255 / .75); }
.crumbs--light a:hover { color: #fff; }

.subnav { position: sticky; top: var(--hdr); z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.subnav__in { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav a { padding: 16px 0; font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.subnav a:hover, .subnav a.is-on { color: var(--ink); border-color: var(--brand); }

.kpis { background: var(--surface); border-bottom: 1px solid var(--line); }
.kpis__in { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 16px; padding-block: 28px; }
.kpis strong { display: block; font: 400 34px/1.1 var(--font-head); }
.kpis span { font-size: 12px; color: var(--muted); }

/* ── Facts, gallery, facilities ─────────── */
.facts { margin: 0 0 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.facts dd { margin: 0; font-weight: 600; font-size: 14px; text-align: end; }
.facts--grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 0; background: none; gap: 10px; }
.facts--grid > div { flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.facts--grid dd { text-align: start; font-size: 16px; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 8px; }
.gallery__item { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: var(--r); background: var(--surface-2); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / .5); color: #fff; font: 400 28px var(--font-head); }

.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.fac-grid--compact { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.fac { display: flex; gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); font-size: 13.5px; font-weight: 500; }
.fac__ic { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }

/* ── Nearby / map / climate ─────────────── */
.nearby { list-style: none; padding: 0; margin: 24px 0 0; }
.nearby__row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 110px 64px; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.nearby__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-tint); color: var(--brand); }
.nearby__text strong { display: block; font-size: 14px; font-weight: 600; }
.nearby__text small { color: var(--muted); font-size: 12px; }
.nearby__bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.nearby__bar i, .progress__bar i, .funnel__bar i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width 1.2s var(--ease) .2s; }
.is-in .nearby__bar i, .is-in.nearby__row .nearby__bar i, .progress__bar i, .funnel__bar i { width: var(--w); }
.nearby__km { font-weight: 600; font-size: 13px; text-align: end; font-variant-numeric: tabular-nums; }
.map { position: relative; z-index: 0; isolation: isolate; height: 340px; margin-top: 20px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-lg); }
.map--tall { height: 480px; margin-top: 0; }
.map:empty::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, transparent 0 12px, rgb(0 0 0 / .03) 12px 24px); }
[data-theme=dark] :is(.leaflet-tile, .leaflet-gl-layer) { filter: brightness(.7) contrast(1.1) saturate(.6); }
.maptiler-logo { display: block; line-height: 0; }
.maptiler-logo img { height: 22px; width: auto; }
.map-pin span { display: block; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); border: 3px solid #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .35); }
.leaflet-popup-content a { color: var(--brand); font-weight: 600; }
/* Map search */
.results__bar { flex-wrap: wrap; }
.view-toggle { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-2); border-radius: 999px; }
.view-toggle a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.view-toggle a.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.search-map-wrap { position: relative; isolation: isolate; }
.search-map { height: min(74vh, 760px); min-height: 420px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface-2); z-index: 0; }
.map-btn { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; box-shadow: var(--shadow-lg); font: 600 13px var(--font-body); cursor: pointer; }
.map-btn--search { top: 14px; left: 50%; transform: translateX(-50%); padding: 10px 18px; background: var(--ink); color: var(--bg); border-color: var(--ink); }
.map-btn--locate { bottom: 22px; inset-inline-end: 14px; width: 42px; height: 42px; justify-content: center; }
.map-btn[hidden] { display: none; }
.map-empty { position: absolute; z-index: 2; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 10px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-btn); box-shadow: var(--shadow); font-size: 13px; max-width: calc(100% - 100px); text-align: center; }
.map-area-note { display: flex; gap: 8px; align-items: center; margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.map-area-note a { color: var(--brand); font-weight: 600; }
.price-pin { background: none; border: 0; }
.price-pin span { display: inline-block; transform: translate(-50%, -50%); padding: 6px 10px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 2px 10px rgb(0 0 0 / .25); font: 700 12px/1 var(--font-body); white-space: nowrap; transition: background .15s, color .15s, transform .15s; }
.price-pin:hover span, .price-pin.is-active span { background: var(--brand); border-color: var(--brand); color: #fff; transform: translate(-50%, -50%) scale(1.08); }
.leaflet-marker-icon.price-pin:hover, .leaflet-marker-icon.price-pin.is-active { z-index: 1000 !important; }
.dm-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: var(--r); background: var(--surface); color: var(--ink); }
.dm-popup .leaflet-popup-content { margin: 0; width: 250px !important; }
.dm-popup .leaflet-popup-tip { background: var(--surface); }
.map-card img { display: block; width: 100%; height: 130px; object-fit: cover; }
.map-card__body { padding: 12px 14px 14px; display: grid; gap: 3px; }
.map-card__dev { font-size: 11.5px; font-weight: 700; color: var(--brand); }
.map-card__name { font: 400 19px/1.2 var(--font-head); color: var(--ink); }
.map-card__meta { font-size: 12.5px; color: var(--muted); }
.map-card__price { margin-top: 6px; font-weight: 700; font-size: 14px; }
.map-card a.map-card__link { margin-top: 8px; display: inline-flex; gap: 6px; align-items: center; color: var(--brand); font-weight: 700; font-size: 13px; }
.presence { display: flex; flex-wrap: wrap; gap: 8px; }

.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 28px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.season { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.season__temp { font: 400 28px var(--font-head); }
.season__bar { position: relative; width: 46px; height: 190px; border-radius: 23px; background: var(--surface-2); overflow: hidden; }
.season__bar i { position: absolute; inset-inline: 0; bottom: 0; height: 0; border-radius: inherit; transition: height 1.3s var(--ease); }
.is-in .season__bar i { height: var(--h); }
.season--winter i { background: linear-gradient(#9cc8ee, #4f8fc9); }
.season--spring i { background: linear-gradient(#bfe0a8, #6aa95b); }
.season--summer i { background: linear-gradient(#ffc56b, #e2574c); }
.season--autumn i { background: linear-gradient(#e9b77c, #b86d36); }
.season:nth-child(2) i { transition-delay: .1s; } .season:nth-child(3) i { transition-delay: .2s; } .season:nth-child(4) i { transition-delay: .3s; }
.season__name { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.climate-notes p { display: flex; gap: 10px; align-items: center; color: var(--ink-2); }
.climate-notes .ic { color: var(--brand); width: 22px; height: 22px; }

.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.embed { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--r-lg); overflow: hidden; }
.embed iframe, .embed model-viewer { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed:has(model-viewer) { background: var(--surface-2); }
.v360-head { display: flex; gap: 8px; align-items: center; margin-top: 32px; }
.v360-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.v360-card { position: relative; display: flex; align-items: flex-end; min-height: 180px; padding: 16px; border-radius: var(--r-lg); overflow: hidden; color: #fff; isolation: isolate;
  background: linear-gradient(180deg, rgb(12 10 8 / .15), rgb(12 10 8 / .8)), var(--bg) center / cover, #2a2420; transition: transform .25s var(--ease), box-shadow .25s; }
.v360-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.v360-card__badge { position: absolute; top: 12px; inset-inline-start: 12px; padding: 3px 9px; border-radius: 999px; background: var(--brand); font-size: 11px; font-weight: 700; }
.v360-card__play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -60%); width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .92); color: #1c1917; }
.v360-card__play .ic { fill: currentColor; stroke: none; width: 22px; height: 22px; margin-inline-start: 3px; }
.v360-card__text { display: grid; gap: 2px; }
.v360-card__text strong { font-size: 15px; }
.v360-card__text small { opacity: .8; font-size: 12px; }
.v360-row { padding: 14px 0; border-top: 1px solid var(--line); }
.v360-row__actions { display: flex; gap: 14px; align-items: center; }
.embed model-viewer { --progress-bar-color: var(--brand); background: var(--surface-2); }
.embed__ic { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; translate: -50% -50%; color: #fff; opacity: .4; }

/* ── Tables, stack, tabs ────────────────── */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card .table-wrap { border: 0; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: start; padding: 12px 14px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
html[lang=ar] .table th { letter-spacing: 0; font-size: 12px; }
.table td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table--hover tbody tr:hover { background: var(--bg-soft); cursor: pointer; }
.table--form td { padding: 8px; }
.table--form input, .table--form select { width: 100%; min-width: 90px; padding: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-xs); font: inherit; }
.table-wrap + .h3 { margin-top: 40px; }
.h3 + .stack, .stack { margin: 14px 0 32px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.stack__floor { display: grid; grid-template-columns: 90px 1fr; gap: 12px; align-items: center; padding-block: 4px; }
.stack__label { font-size: 12px; color: var(--muted); }
.stack__units { display: flex; flex-wrap: wrap; gap: 6px; }
.stack__u { min-width: 70px; padding: 8px 10px; border-radius: var(--r-xs); border: 1px solid; font-size: 11.5px; font-weight: 600; text-align: center; transition: transform .2s var(--ease); }
.stack__u:hover { transform: translateY(-2px); }
.stack__u--available, .lg--available::before { background: #e5f4e9; color: #1f6b3a; border-color: #bfe2c9; }
.stack__u--reserved, .lg--reserved::before { background: #fdf1d9; color: #8a5800; border-color: #f2d699; }
.stack__u--sold, .lg--sold::before { background: var(--surface-2); color: var(--muted); border-color: var(--line); text-decoration: line-through; }
[data-theme=dark] .stack__u--available, [data-theme=dark] .lg--available::before { background: #163322; color: #8fd7a6; border-color: #23573a; }
[data-theme=dark] .stack__u--reserved, [data-theme=dark] .lg--reserved::before { background: #3a2c0f; color: #f0c56c; border-color: #5c4718; }
.legend { display: flex; gap: 18px; margin-top: 14px; font-size: 12px; color: var(--muted); }
.lg { display: inline-flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 14px; height: 14px; border-radius: 3px; border: 1px solid; }

.tabs-inline { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 24px; }
.tabs-inline button, .tabs-inline a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; color: var(--ink-2); }
.tabs-inline .is-on { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--surface-2); color: var(--ink-2); font-size: 11px; line-height: 18px; text-align: center; }
.is-on .count { background: rgb(255 255 255 / .2); color: inherit; }
.count--brand { background: var(--brand); color: #fff; }

/* ── Unit page ──────────────────────────── */
.unit-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.unit-head__actions { display: flex; align-items: center; gap: 10px; }
.viewer__main { display: block; width: 100%; padding: 0; border: 0; aspect-ratio: 16/8; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-2); }
.viewer__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s; }
.viewer__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.viewer__thumbs button { flex: none; width: 104px; height: 74px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; opacity: .6; transition: opacity .2s; }
.viewer__thumbs button.is-on, .viewer__thumbs button:hover { opacity: 1; border-color: var(--brand); }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.price-card__big { display: block; font: 500 32px/1.15 var(--font-head); margin: 2px 0 18px; }
.calc { display: grid; gap: 14px; }
.calc label { display: grid; gap: 6px; font-size: 12.5px; color: var(--ink-2); }
.calc output { font-weight: 700; color: var(--ink); }
.calc__lbl { display: flex; justify-content: space-between; gap: 8px; }
.calc__lbl > span { font-weight: 700; color: var(--ink); }
.calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; background: var(--bg-soft); border-radius: var(--r-sm); }
.calc__out span { display: block; font-size: 11.5px; color: var(--muted); }
.calc__out b { font-size: 15px; }
.plan { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.plan__img { position: relative; padding: 0; border: 1px solid var(--line); background: #fff; border-radius: var(--r); overflow: hidden; }
.plan__img img { max-height: 460px; object-fit: contain; }
.plan__zoom { position: absolute; bottom: 10px; inset-inline-end: 10px; display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; border-radius: var(--r-btn); background: rgb(0 0 0 / .65); color: #fff; font-size: 12px; }
.dev-mini { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.dev-mini .dcard__logo { width: 44px; height: 44px; font-size: 16px; box-shadow: none; }
.dev-mini small { display: block; font-size: 11px; color: var(--muted); }
.dev-mini .verified { margin-inline-start: auto; color: var(--brand); }
.unit-mini { display: flex; flex-direction: column; gap: 6px; }
.unit-mini img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--r-sm); margin-bottom: 6px; }
.unit-mini small { color: var(--muted); }
.contact-line { display: flex; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14px; margin: 0; }
a.contact-line:hover { color: var(--brand); }
.note { display: flex; gap: 8px; align-items: flex-start; margin: 16px 0 0; font-size: 12.5px; color: var(--muted); }
.note .ic { color: var(--brand); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 14px 0; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.dev-strip { display: flex; align-items: center; gap: 20px; padding: 24px; margin-bottom: 56px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.dev-strip h3 { font: 400 24px var(--font-head); }
.dev-strip .btn { margin-inline-start: auto; }
.dev-strip .eyebrow { margin-bottom: 4px; }
.dev-strip p { margin: 0; }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 56px; padding: 32px 36px; background: var(--ink); color: var(--bg); border-radius: var(--r-xl); }
.cta-band h3 { font: 400 26px var(--font-head); margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .75; }
.empty { text-align: center; padding: 56px 16px; color: var(--muted); list-style: none; }
.empty .ic { width: 42px; height: 42px; margin: 0 auto 12px; display: block; }
.empty h3 { font: 400 22px var(--font-head); color: var(--ink); margin-bottom: 8px; }
.empty--sm { padding: 28px 16px; }

/* ── Search page ────────────────────────── */
.search-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.filters { position: sticky; top: calc(var(--hdr) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.filters__sum { display: none; padding: 14px 18px; font-weight: 600; list-style: none; cursor: pointer; align-items: center; gap: 8px; }
.filters__sum::-webkit-details-marker { display: none; }
.filters__form { display: flex; flex-direction: column; gap: 16px; padding: 20px; max-height: calc(100vh - var(--hdr) - 40px); overflow-y: auto; }
.ufield-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fset { border: 0; padding: 0; margin: 0; }
.fset legend { font-size: 12px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; }
.checks { display: grid; gap: 8px; margin-top: 10px; }
.filters__actions { display: flex; gap: 8px; }
.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.results__bar p { margin: 0; color: var(--ink-2); }
.sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.sort select { padding: 8px 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--r-btn); font: inherit; }
.pager { display: flex; justify-content: center; align-items: center; gap: 16px; margin-top: 32px; font-size: 13px; }

/* ── Auth & account ─────────────────────── */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--hdr)); }
.auth__art img { width: 100%; height: 100%; object-fit: cover; }
.auth__panel { align-self: center; width: 100%; max-width: 460px; margin-inline: auto; padding: 48px 32px; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.choice__card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 36px 32px; min-height: 280px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.choice__card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--shadow); }
.choice__card h2 { font: 400 28px var(--font-head); margin-top: 40px; }
.choice__card p { color: var(--ink-2); font-size: 14px; flex: 1; }
.mini-steps { display: flex; gap: 8px; list-style: none; padding: 0; margin: 12px 0 24px; counter-reset: s; flex-wrap: wrap; }
.mini-steps li { counter-increment: s; font-size: 12.5px; color: var(--muted); padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; }
.mini-steps li::before { content: counter(s) ". "; font-weight: 700; }
.mini-steps li.is-on { color: var(--brand); border-color: var(--brand); }
.acct-head { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.acct-head form { margin-inline-start: auto; }
.avatar { width: 58px; height: 58px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font: 600 20px var(--font-head); }
.req-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
.req-row:hover { border-color: var(--brand); }
.req-row img { width: 96px; height: 70px; object-fit: cover; border-radius: var(--r-sm); }
.req-row small { display: block; color: var(--muted); font-size: 12.5px; }
.progress { margin-top: 10px; max-width: 320px; }
.progress__bar, .funnel__bar { display: block; height: 5px; background: var(--surface-2); border-radius: 3px; overflow: hidden; }
.notes { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.note-row a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.note-row:last-child a { border-bottom: 0; }
.note-row.is-unread a { background: var(--brand-tint); }
.note-row strong { display: block; font-size: 14px; }
.note-row small { display: block; color: var(--ink-2); font-size: 13px; }
.note-row time { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.note-row__ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--brand); }

.pipeline { display: flex; list-style: none; padding: 0; margin: 4px 0 24px; overflow-x: auto; }
.pipeline li { flex: 1; min-width: 92px; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; text-align: center; }
.pipeline li::before { content: ""; position: absolute; top: 16px; inset-inline-start: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.pipeline li:first-child::before { display: none; }
.pipeline li.is-done::before { background: var(--brand); }
.pipeline__dot { position: relative; z-index: 1; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.is-done .pipeline__dot { background: var(--brand); border-color: var(--brand); color: #fff; }
.is-current .pipeline__dot { box-shadow: 0 0 0 5px var(--brand-tint); }
.pipeline__label { font-size: 11.5px; color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { display: grid; grid-template-columns: 16px 1fr; gap: 14px; padding-bottom: 18px; position: relative; }
.timeline li::before { content: ""; position: absolute; top: 14px; bottom: 0; inset-inline-start: 4px; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline__dot { width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--brand); }
.timeline time { font-size: 12px; color: var(--muted); margin-inline-start: 8px; }
.timeline p { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; }
.doc-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 14px; }
.doc-list li { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ── Dashboard ──────────────────────────── */
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - var(--hdr)); }
.dash__side { background: var(--surface); border-inline-end: 1px solid var(--line); padding: 24px 16px; }
.dash__dev { display: flex; gap: 12px; align-items: center; padding: 0 8px 20px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.dash__dev .dcard__logo { width: 46px; height: 46px; font-size: 16px; box-shadow: none; }
.dash__dev strong { display: block; font-size: 14px; line-height: 1.3; margin-bottom: 4px; }
.dash__nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--hdr) + 16px); }
.dash__nav a, .dash__nav button { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 0; background: none; border-radius: var(--r-sm); font-size: 13.5px; color: var(--ink-2); text-align: start; width: 100%; }
.dash__nav a:hover, .dash__nav button:hover { background: var(--bg-soft); color: var(--ink); }
.dash__nav a.is-on { background: var(--brand-tint); color: var(--brand); font-weight: 600; }
.dash__main { padding: 32px 40px 0; background: var(--bg-soft); min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: border-color .2s; }
a.kpi:hover { border-color: var(--brand); }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi strong { font: 400 34px/1 var(--font-head); }
.kpi .ic { position: absolute; top: 18px; inset-inline-end: 18px; width: 22px; height: 22px; color: var(--brand); opacity: .55; }
.funnel { list-style: none; padding: 0; margin: 0; }
.funnel a { display: grid; grid-template-columns: 120px 1fr 28px; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; }
.funnel b { text-align: end; }
.dash-list { display: grid; gap: 12px; }
.dash-item { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.dash-item img { width: 130px; height: 90px; object-fit: cover; border-radius: var(--r-sm); }
.dash-item h3 { font-size: 16px; margin-bottom: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.dash-item p { margin: 0 0 8px; font-size: 13px; }
.dash-item__actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.thumbs-edit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.thumbs-edit figure { position: relative; margin: 0; width: 110px; height: 80px; }
.thumbs-edit img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-sm); }
.icon-btn { position: absolute; top: 4px; inset-inline-end: 4px; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(0 0 0 / .65); color: #fff; }
.icon-btn:hover { background: #c53030; }
.pipeline--3 { max-width: 560px; }

/* ── Footer ─────────────────────────────── */
.ftr { background: var(--footer); color: #c9c1b8; font-size: 13.5px; }
.ftr__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 40px; padding-block: 72px 40px; }
.ftr .logo { color: #fff; margin-bottom: 18px; }
.ftr__brand p { max-width: 38ch; color: #a49b91; }
.ftr__social { display: flex; flex-wrap: wrap; gap: 14px; font-weight: 600; font-size: 12.5px; }
.ftr__social a:hover, .ftr__list a:hover { color: #fff; }
.ftr__h { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
html[lang=ar] .ftr__h { letter-spacing: 0; font-size: 13px; }
.ftr__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ftr__contact li { display: flex; gap: 10px; align-items: center; }
.ftr__apps { margin-top: 20px; }
.badge-app { display: inline-flex; gap: 8px; align-items: center; padding: 9px 14px; border: 1px solid #3a342e; border-radius: var(--r-btn); font-size: 12px; color: #e6dfd7; }
.ftr__legal { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 22px; border-top: 1px solid #2b2621; font-size: 12px; color: #8f867c; }
.ftr__legal-links { display: flex; gap: 18px; }
.ftr__legal a:hover { color: #fff; }

/* ── Toasts & lightbox ──────────────────── */
.toasts { position: fixed; top: calc(var(--hdr) + 14px); inset-inline-end: 16px; z-index: 100; display: grid; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { display: flex; gap: 10px; align-items: center; padding: 13px 14px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-inline-start: 3px solid var(--brand); border-radius: var(--r); box-shadow: var(--shadow-lg); font-size: 13.5px; animation: toastIn .5s var(--ease) both; }
.toast--success { border-inline-start-color: #2f855a; }
.toast--error { border-inline-start-color: #c53030; }
.toast__icon { color: var(--brand); display: flex; }
.toast--success .toast__icon { color: #2f855a; }
.toast__close { margin-inline-start: auto; background: none; border: 0; padding: 4px; color: var(--muted); display: flex; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-10px); } }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(10 8 7 / .95); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; }
.lightbox button:hover { background: rgb(255 255 255 / .24); }
.lightbox__close { top: 20px; inset-inline-end: 20px; }
.lightbox__nav--prev { inset-inline-start: 20px; top: 50%; }
.lightbox__nav--next { inset-inline-end: 20px; top: 50%; }
[dir=rtl] .lightbox__nav .ic { transform: scaleX(-1); }
[dir=rtl] .lightbox__nav--prev .ic.flip { transform: none; }

/* ── Shape: framed panels ────────────────
   Full-width photo and colour panels sit inside the page like windows, with a small gap and the largest corner. */
.cover { margin: var(--frame) var(--frame) 0; border-radius: var(--r-xl); }
.tour { margin-inline: var(--frame); border-radius: var(--r-xl); }
.enquiry { margin-inline: var(--frame); border-radius: var(--r-xl); }
.band, .section--soft { margin-inline: var(--frame); border-radius: var(--r-xl); }
.ftr { margin: var(--frame); border-radius: var(--r-xl); }
:is(.hero, .cover, .band, .tour, .enquiry, .section--soft) + :is(.band, .tour, .enquiry, .section--soft) { margin-top: var(--frame); }
.auth__art { padding: var(--frame); }
.auth__art img { border-radius: var(--r-xl); }

/* ── Header becomes a floating capsule once the page scrolls ── */
.hdr__in { border: 1px solid transparent; transition: height .45s var(--ease-out), margin .45s var(--ease-out), padding .45s var(--ease-out), background .35s, box-shadow .35s, border-color .35s, max-width .45s var(--ease-out); }
.hdr.is-scrolled:not(.is-open) { background: transparent; border-color: transparent; box-shadow: none; color: var(--ink); }
.hdr.is-scrolled:not(.is-open) .hdr__in {
  height: calc(var(--hdr) - 16px); margin-top: 8px; width: calc(100% - 24px); max-width: 1180px; padding-inline: 22px;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.5) blur(16px);
  border-color: color-mix(in srgb, var(--line) 85%, transparent); border-radius: var(--r-btn); box-shadow: var(--shadow);
}
:root[data-corners=sharp] .hdr.is-scrolled:not(.is-open) .hdr__in { margin-top: 0; width: 100%; max-width: none; height: var(--hdr); border-radius: 0; }

/* ── Buttons answer the pointer: arrows lean towards where they go ── */
.btn .ic.flip-rtl { transition: transform .3s var(--ease-out); }
.btn:hover .ic.flip-rtl { transform: translateX(3px); }
[dir=rtl] .btn:hover .ic.flip-rtl { transform: scaleX(-1) translateX(3px); }
.btn:focus-visible, .chip:focus-visible, .tool:focus-visible { outline-offset: 3px; }

@media (prefers-reduced-motion: no-preference) {
  /* The one orchestrated moment: on load the hero opens like a window, then the headline rises line by line. */
  .js .hero__frame { animation: frameOpen 1.5s var(--ease-out) both; }
  .js .hero__bg { animation: heroSettle 2.6s var(--ease-out) both; }
  .js .hero .eyebrow { animation: rise .9s .3s var(--ease-out) both; }
  .js .hero .line > span { display: block; animation: lineUp 1.1s var(--ease-out) both; }
  .js .hero .line:nth-child(1) > span { animation-delay: .42s; }
  .js .hero .line:nth-child(2) > span { animation-delay: .56s; }
  .js .hero__card { animation: rise 1s .85s var(--ease-out) both; }
  .js .hero .search { animation: rise 1s 1s var(--ease-out) both; }
  @keyframes frameOpen { from { clip-path: inset(6% 4% 12% 4% round calc(var(--r-xl) * 2)); } to { clip-path: inset(0 round var(--r-xl)); } }
  @keyframes heroSettle { from { transform: scale(1.14); } to { transform: none; } }
  @keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }

  /* Large photos open the same way as they scroll into view. */
  .js [data-reveal] :is(.tile__img, .row__img), .js .split__art[data-reveal] img {
    clip-path: inset(10% 7% 10% 7% round var(--r-lg)); transition: clip-path 1.25s var(--ease-out);
  }
  .js [data-reveal].is-in :is(.tile__img, .row__img), .js .split__art[data-reveal].is-in img { clip-path: inset(0 round var(--r-lg)); }
  .js [data-reveal] :is(.tile__img, .row__img) img { scale: 1.16; transition: scale 1.6s var(--ease-out), transform .8s var(--ease); }
  .js [data-reveal].is-in :is(.tile__img, .row__img) img { scale: 1; }
  .js .split__art[data-reveal] .split__panel { transform: scaleY(.6); transform-origin: bottom; transition: transform 1.3s .15s var(--ease-out); }
  .js .split__art[data-reveal].is-in .split__panel { transform: none; }
}

/* Photos behind page headers drift slowly as you scroll (browsers with scroll-linked animation only). */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .cover__bg, .enquiry__bg { animation: drift linear both; animation-timeline: view(); animation-range: cover; }
    @keyframes drift { from { transform: scale(1.16) translateY(-5%); } to { transform: scale(1.16) translateY(5%); } }
  }
}

/* Moving between pages: a soft cross-fade, and a project or unit photo glides from its card into its page. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut .28s var(--ease) both; }
::view-transition-new(root) { animation: vtIn .5s var(--ease-out) both; }
::view-transition-group(*) { animation-duration: .55s; animation-timing-function: var(--ease-out); }
@keyframes vtOut { to { opacity: 0; } }
@keyframes vtIn { from { opacity: 0; transform: translateY(12px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* ── Motion ─────────────────────────────── */
.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .marquee { overflow-x: auto; }
}
[data-theme=dark] img:not(.hero__bg):not(.cover__bg):not(.enquiry__bg) { filter: brightness(.92); }

/* ── Responsive ─────────────────────────── */
@media (max-width: 1100px) {
  .nav { position: fixed; top: var(--hdr); inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px; background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .25s var(--ease); margin: 0; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav__link { padding: 14px 0; font-size: 16px; border-bottom: 1px solid var(--line); width: 100%; }
  .nav__link::after { display: none; }
  .nav__extra { display: block; }
  .nav__group { display: block; }
  .nav__caret { display: none; }
  .nav__sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 10px; min-width: 0; grid-template-columns: 1fr 1fr; background: transparent; }
  .nav__sublink { padding: 8px 12px; font-size: 14px; color: var(--ink-2); }
  .nav-toggle { display: inline-flex; }
  .tools { margin-inline-start: auto; gap: 4px; }
  .hdr__in { gap: 12px; }
  .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout-side { grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; }
  .search-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 960px) {
  :root { --hdr: 64px; }
  .wrap { padding-inline: 24px; }
  .section { padding-block: 72px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .two-col, .two-col--wide-left, .layout-side { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .side--sticky, .filters { position: static; }
  .split__art { min-height: 0; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: 1 / -1; }
  .tile__img { height: 280px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { min-height: 0; padding-top: 72px; }
  .row { grid-template-columns: 40px minmax(0, 1fr); gap: 20px; }
  .row__img { grid-column: 1 / -1; }
  .search-layout { grid-template-columns: minmax(0, 1fr); }
  .filters__sum { display: flex; }
  .filters__form { max-height: none; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash__side { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 14px 16px; }
  .dash__nav { flex-direction: row; overflow-x: auto; position: static; }
  .dash__nav a, .dash__nav button { white-space: nowrap; width: auto; }
  .dash__dev { padding-bottom: 12px; }
  .dash__main { padding: 24px 20px 0; }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth__art { display: none; }
  .cover__in--split { flex-direction: column; align-items: stretch; }
  .facts--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .section { padding-block: 56px; }
  .hide-sm { display: none; }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 92vh; }
  .hero__in { flex-direction: column; align-items: flex-start; }
  .hero__card { display: none; }
  :root { --frame: 8px; }
  .search { grid-template-columns: minmax(0, 1fr); margin-bottom: -24px; border-radius: var(--r-lg); }
  .search__go { border-radius: var(--r-btn); }
  .search__field { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; }
  .hero + .section { padding-top: 88px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile__img { height: 220px; }
  .tile__cap { flex-direction: column; align-items: flex-start; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .nearby__row { grid-template-columns: 36px minmax(0, 1fr) 56px; }
  .nearby__bar { grid-column: 2 / -1; grid-row: 2; }
  .seasons { gap: 6px; padding: 20px 10px; }
  .season__bar { width: 34px; height: 150px; }
  .form-grid, .enquiry__grid, .choice { grid-template-columns: minmax(0, 1fr); }
  .enquiry__card { padding: 28px 20px; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .inline-search { flex-wrap: wrap; }
  .inline-search input, .inline-search select { flex: 1 1 100%; }
  .unit-head { flex-direction: column; align-items: flex-start; }
  .req-row { grid-template-columns: 72px minmax(0, 1fr); }
  .req-row img { width: 72px; height: 56px; }
  .req-row .pill { grid-column: 2; justify-self: start; }
  .dash-item { grid-template-columns: minmax(0, 1fr); }
  .dash-item img { width: 100%; height: 160px; }
  .dash-item__actions { justify-content: flex-start; }
  .cta-band, .dev-strip { flex-direction: column; align-items: flex-start; }
  .dev-strip .btn { margin-inline-start: 0; }
  .stack__floor { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tool--lang { padding-inline: 8px; }
  .tool--cur select { padding: 0 6px; }
  .logo__word { font-size: 20px; }
  .title { margin-bottom: 20px; }
  .facts--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .logo__word { display: none; }
}

/* MapTiler's logo (added by its Leaflet plugin with inline styles): smaller, and clear of the locate button on Arabic pages */
.leaflet-container > a[href="https://www.maptiler.com"] { line-height: 0; }
.leaflet-container > a[href="https://www.maptiler.com"] img { width: 84px; height: auto; }
[dir=rtl] .leaflet-container > a[href="https://www.maptiler.com"] { left: auto !important; right: 10px; bottom: 24px !important; }
