/* =========================================================
   Luminary Real Estate – Homepage
   Built from Figma "Luminary" (node 375:514), 1920px artboard
   ========================================================= */

:root {
  --navy: #043663;
  --navy-2: #1f5687;
  --blue: #3192ea;
  --blue-2: #3292ea;
  --soft-blue: #e0f0ff;
  --ice: #eff9ff;
  --pale: #def3ff;
  --text: #555555;
  --muted: rgba(0, 0, 0, 0.8);
  --line: #e6e6e6;
  --border: #e2e2e2;
  --tag: #eeeeee;
  --wa: #148f20;
  --container: 1296px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 23px;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(var(--container), 100% - 48px); margin-inline: auto; }

/* ---------- Shared type ---------- */
.h2 {
  font-weight: 600;
  font-size: 40px;
  line-height: 50px;
  letter-spacing: -0.8px;
  color: var(--navy);
  text-transform: capitalize;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 10px;
  border-radius: 4px;
  background: var(--tag);
  font-size: 14px;
  line-height: 19px;
  color: rgba(0, 0, 0, 0.56); /* rgba(0,0,0,.8) at 70% opacity */
  white-space: nowrap;
}
.tag--blue { background: var(--pale); color: rgba(64, 64, 64, 0.7); }
.tag--navy { background: var(--navy-2); color: #cfcfcf; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  line-height: 22px;
  white-space: nowrap;
  position: relative; isolation: isolate; overflow: hidden;
  transition: color .3s, border-color .3s;
}
/* Hover: a fill rises from the bottom edge, and drains back down on leave */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fill, var(--navy));
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn--primary { background: var(--blue); color: #fff; }
.btn--sm { font-size: 14px; line-height: 19px; background: var(--blue-2); }
.btn--soft { background: var(--soft-blue); color: var(--navy); }
.btn--soft:hover { color: #fff; }
.btn--outline { border: 1px solid var(--blue); color: var(--blue); padding: 9px 19px; --btn-fill: var(--blue); }
.btn--outline:hover { color: #fff; }
.btn--whatsapp { border: 1px solid var(--wa); color: var(--wa); padding: 9px 19px; --btn-fill: var(--wa); }
.btn--whatsapp:hover { color: #fff; }
.btn--block { display: flex; width: 100%; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; }
.brand__mark { display: inline-flex; align-items: center; }
.brand__mark img { width: 40px; height: 41px; }
/* "Luminary" with "Real Estate" underneath, both the same width */
.brand__text { display: inline-flex; flex-direction: column; align-items: stretch; }
.brand__name { font-family: 'Lora', Georgia, serif; font-size: 27px; line-height: 28px; }
.brand__tag {
  margin-top: 1px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; line-height: 15px; font-weight: 500;
  letter-spacing: .327em; margin-right: -.327em; /* spreads it to the width of "Luminary"; the last letter's spacing is cancelled */
  text-transform: uppercase; opacity: .85;
  font-variation-settings: "opsz" 14;
  white-space: nowrap;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: 74px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(0, 0, 0, 0.3);
  -webkit-backdrop-filter: blur(7.5px);
  backdrop-filter: blur(7.5px);
  transition: background-color .3s;
}
.site-header.is-scrolled { background: rgba(4, 54, 99, 0.96); }

/* Centred with auto margins, not translateX(-50%): the half-pixel shift drew a thin vertical seam
   at the menu's edge over the blurred header in Safari. */
.main-nav {
  position: absolute; left: 0; right: 0; top: 26px; width: fit-content; margin-inline: auto;
  display: flex; align-items: center; gap: 30px;
}
.main-nav a { font-weight: 500; font-size: 16px; line-height: 22px; color: #fff; transition: opacity .2s; }
.main-nav a:hover { opacity: .75; }

.header-actions { display: flex; align-items: center; gap: 25px; }
.header-actions__account img { width: 20px; height: 20px; }
.header-actions__locale { display: flex; align-items: center; gap: 6px; padding: 8px 2px; font-weight: 500; font-size: 14px; line-height: 19px; color: #fff; transition: opacity .2s; }
.header-actions__locale:hover { opacity: .75; }
.header-actions__locale { direction: ltr; } /* always reads EN / AR */
.locale__lang { opacity: .6; }
.locale__lang.is-current { opacity: 1; }
.header-actions__locale svg { transition: transform .25s; }
.header-actions__locale[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Preferences dropdown (opens from "EN / AED") */
.locale-menu { position: relative; }
.prefs {
  position: absolute; top: calc(100% + 18px); inset-inline-end: -12px; z-index: 120;
  width: 280px; padding: 20px 20px 4px; border-radius: 12px;
  background: #fff; color: #111; box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
  opacity: 0; translate: 0 -8px; transition: opacity .2s, translate .25s cubic-bezier(.22, .61, .36, 1);
}
.prefs::before { /* little pointer towards the button */
  content: ''; position: absolute; top: -6px; inset-inline-end: 13px;
  width: 12px; height: 12px; background: #fff; border-radius: 2px; rotate: 45deg;
}
.prefs[hidden] { display: none; }
.prefs.is-open { opacity: 1; translate: 0 0; }
.prefs__group { display: block; margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.prefs__label { display: block; padding: 0; margin-bottom: 8px; font-size: 12px; line-height: 16px; letter-spacing: .04em; text-transform: uppercase; color: #8a8a8a; }
.prefs__select { position: relative; display: block; }
.prefs__select select {
  width: 100%; height: 40px; padding: 0 12px; padding-inline-end: 32px;
  font: inherit; font-size: 15px; color: #111;
  background: #f4f4f4; border: 0; border-radius: 8px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.prefs__select select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.prefs__select svg { position: absolute; inset-inline-end: 12px; top: 50%; translate: 0 -50%; pointer-events: none; color: #111; }
.prefs__options { display: flex; gap: 4px; padding: 4px; border-radius: 8px; background: #f4f4f4; }
.prefs__option { position: relative; flex: 1; cursor: pointer; }
.prefs__option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.prefs__option span {
  display: block; padding: 7px 4px; text-align: center; border-radius: 6px;
  font-size: 14px; line-height: 18px; color: #777; transition: background-color .2s, color .2s;
}
.prefs__option:hover span { color: #111; }
.prefs__option input:checked + span { background: #fff; color: #111; font-weight: 500; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.prefs__option input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) { .prefs, .header-actions__locale svg { transition: none; } }
.header-actions .btn--sm { height: 39px; }

.nav-toggle { display: none; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  height: 989px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 64px;
  overflow: hidden;
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero__video.is-active { opacity: 1; }
.hero__shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 726px;
  background: linear-gradient(to top, #150e08 3.817%, rgba(21, 14, 8, 0));
}
.hero__content { position: relative; width: 100%; max-width: 988px; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 24px; }
.hero__title {
  max-width: 856px;
  font-weight: 600; font-size: 80px; line-height: 80px; letter-spacing: -1.6px;
  text-transform: capitalize;
}
.hero__sub {
  max-width: 613px; margin-top: 20px;
  font-weight: 600; font-size: 18px; line-height: 1.35;
  text-transform: capitalize;
}

.search {
  display: flex; align-items: center; gap: 11px;
  width: 940px; max-width: 100%;
  margin-top: 50px; padding: 20px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(7.5px);
  backdrop-filter: blur(7.5px);
}
/* Market snapshot under the search (figures from config, updated by hand) */
.market {
  width: 940px; max-width: 100%; margin-top: 14px; padding: 14px 20px 16px;
  border-radius: 8px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .08);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  text-align: start;
}
.market__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap;
  padding-bottom: 10px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-size: 12px; line-height: 16px;
}
.market__title { font-size: 13px; line-height: 16px; font-weight: 600; letter-spacing: .2px; }
.market__title span { margin-inline-start: 6px; font-weight: 500; color: rgba(255, 255, 255, .7); }
.market__updated { color: rgba(255, 255, 255, .6); }
.market__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.market__stat { padding: 0 16px; border-inline-start: 1px solid rgba(255, 255, 255, .14); }
.market__stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.market__stat dt { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .72); }
.market__stat dd { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.market__value { font-size: 18px; line-height: 24px; font-weight: 600; white-space: nowrap; }
.market__change {
  display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px; border-radius: 20px;
  font-size: 11px; line-height: 16px; font-weight: 600;
}
/* Wide screens: the stats stack in a card on the right of the hero (left in Arabic).
   Below 1440px there isn't room beside the headline, so they stay as a row under the search. */
@media (min-width: 1440px) {
  .market {
    position: absolute; bottom: 112px; inset-inline-end: calc((988px - 100vw) / 2 + 40px);
    width: 228px; margin: 0; padding: 18px 18px 6px;
  }
  .market__head { flex-direction: column; align-items: flex-start; gap: 4px; margin-bottom: 4px; padding-bottom: 12px; }
  .market__title span { display: block; margin: 3px 0 0; }
  .market__grid { grid-template-columns: 1fr; }
  .market__stat { padding: 12px 0; border-inline-start: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
  .market__stat:first-child { border-top: 0; }
  .market__value { font-size: 20px; }
}
.market__change.is-up { color: #6ee7a0; background: rgba(34, 197, 94, .16); }
.market__change.is-down { color: #ff9b9b; background: rgba(239, 68, 68, .16); }

.search select, .search input {
  border: 0; outline: 0; background: transparent;
  font-size: 16px; color: #54595f; height: 49px;
  -webkit-appearance: none; appearance: none;
}
.search input::placeholder { color: #54595f; opacity: 1; }
.chev { width: 14px; height: 14px; transform: scaleY(-1); pointer-events: none; }

.search__type {
  position: relative; flex: 0 0 auto; min-width: 90px; height: 49px;
  display: flex; align-items: center;
  background: #fff; border-radius: 8px;
}
/* width follows the chosen option (main.js); right padding keeps the arrow clear of the text */
.search__type select { width: 100%; padding: 0 39px 0 21px; cursor: pointer; field-sizing: content; }
.search__type .chev { position: absolute; right: 20px; top: 17px; }

.search__fields {
  flex: 1 1 664px; min-width: 0; height: 49px;
  display: flex; align-items: center;
  background: #fff; border-radius: 8px;
}
.search__query { flex: 1 1 352px; min-width: 0; height: 100%; }
.search__query input { width: 100%; padding: 0 20px; }
.search__select {
  position: relative; height: 100%;
  display: flex; align-items: center;
  border-left: 1px solid #e3e3e3;
}
.search__select select { height: 100%; padding: 0 0 0 30px; cursor: pointer; }
.search__select .chev { position: absolute; top: 18px; }
.search__select--price { flex: 0 0 167px; }
.search__select--price .chev { left: 123px; }
.search__select--beds { flex: 0 0 145px; }
.search__select--beds .chev { left: 111px; }
.search__select select { width: 100%; }

.search__btn { flex: 0 0 125px; height: 47px; padding: 15px 40px; margin-left: -1px; }

/* =========================================================
   LOGOS STRIP
   ========================================================= */
.logos { position: relative; margin-top: 66px; overflow: hidden; height: 100px; }
.logos__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.logos:hover .logos__track { animation-play-state: paused; }
/* flex: none: Safari otherwise squeezes each set to the screen width, so the second set slides over the first set's last logos */
.logos__set { display: flex; flex: none; gap: 30px; padding-right: 30px; }
.logo-box {
  flex: 0 0 242px; height: 100px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid #d9d9d9; border-radius: 16px;
}
/* Logo widths match the Figma strip; height follows each logo's own proportions */
.logo-box img { height: auto; }
.logo-azizi { width: 133px; }
.logo-binghatti { width: 150px; }
.logo-emaar { width: 139px; }
.logo-sobha { width: 138px; }
.logo-nakheel { width: 174px; }
.logo-arada { width: 173px; }
.logo-danube { width: 158px; }
.logo-hh { width: 84px; }
.logos__fade { position: absolute; top: 0; bottom: 0; pointer-events: none; }
.logos__fade--left { left: 0; width: 206px; background: linear-gradient(269.26deg, rgba(255,255,255,0) 0.41%, #fff 74.61%); }
.logos__fade--right { right: 0; width: 197px; background: linear-gradient(90.74deg, rgba(255,255,255,0) 0.41%, #fff 74.61%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   MARKET REPORT
   ========================================================= */
.report { display: flex; gap: 24px; margin-top: 120px; }
.report__media { flex: 0 1 746px; min-height: 556px; border-radius: 24px; overflow: hidden; }
.report__media img { width: 100%; height: 100%; object-fit: cover; }
.report__card {
  flex: 0 1 526px;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 40px 40px 38px; border-radius: 24px; background: #fafafa;
}
.report__title {
  max-width: 336px; margin-top: 20px;
  font-weight: 600; font-size: 40px; line-height: 50px; letter-spacing: -0.8px;
  color: var(--navy); text-transform: capitalize;
}
.report__text { max-width: 447px; margin-top: 30px; }
.report__card .btn { margin-top: 30px; }
.report__note { margin-top: 10px; font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, 0.56); }

/* =========================================================
   SECTION HEADS / TOOLBARS / SLIDERS
   ========================================================= */
.section-head--split {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  padding-bottom: 20px; border-bottom: 1px solid var(--line);
}
.section-head--split .section-head__text { text-align: right; }
.section-head--top { align-items: flex-start; border-bottom: 0; padding-bottom: 0; }
.section-head--center { display: flex; flex-direction: column; align-items: center; text-align: center; }
.section-head--center .section-head__text { margin-top: 20px; }
.section-head--center .tag { align-self: center; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 19px; }
.arrows { display: flex; gap: 15px; }
.arrow { width: 40px; height: 40px; border-radius: 8px; transition: filter .2s; }
.arrow:hover { filter: brightness(.94); }
.slider.is-draggable { cursor: grab; }
.slider.is-dragging { cursor: grabbing; user-select: none; }
.slider.is-dragging a, .slider.is-dragging .btn { cursor: grabbing; }
.slider img { -webkit-user-drag: none; user-select: none; }
.arrow[disabled] { cursor: default; opacity: .4; }
.arrow[disabled]:hover { filter: none; transform: none; }

.tabs { display: flex; align-items: center; gap: 4px; height: 53px; padding: 5px; border-radius: 8px; background: #f3f3f3; }
.tabs__btn { height: 43px; padding: 10px 21px; font-size: 16px; line-height: 23px; color: rgba(0, 0, 0, 0.56); border-radius: 8px; transition: background-color .2s ease, color .2s ease; }
.tabs__btn:hover { color: #000; }
.tabs__btn.is-active { background: #fff; color: rgba(0, 0, 0, 0.72); }

.slider { overflow: hidden; padding: 14px 0 34px; margin-bottom: -34px; } /* room for the card hover lift + shadow */
.slider__track { display: flex; gap: 24px; will-change: transform; }
.slider__track.is-ready { transition: transform .5s ease; }

/* =========================================================
   EXPLORE PROPERTIES
   ========================================================= */
.explore { margin-top: 120px; }
.explore .slider { margin-top: 36px; }

.prop-card {
  flex: 0 0 416px;
  display: flex; flex-direction: column;
  padding: 19px;
  border: 1px solid var(--border); border-radius: 24px;
  background: #fff;
}
.prop-card.is-hidden { display: none; }
.prop-card__img { height: 197px; border-radius: 9px; overflow: hidden; }
.prop-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.prop-card:hover .prop-card__img img { transform: scale(1.04); }
.prop-card .tag { margin-top: 20px; }
.prop-card__title {
  margin-top: 24px;
  font-weight: 600; font-size: 26px; line-height: 24px; letter-spacing: -0.52px;
  color: #000; text-transform: capitalize;
}
.prop-card__desc { margin-top: 10px; font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, 0.56); }
.prop-card__price {
  margin-top: 34px;
  font-weight: 600; font-size: 20px; line-height: 27px; letter-spacing: -0.4px;
  color: var(--navy);
}
.prop-card .features { margin: 20px -19px 0; padding: 19px 19px 0; border-top: 1px solid var(--line); }
.prop-card .btn { margin-top: 20px; }

.features { display: flex; align-items: center; gap: 40px; }
.features li { display: flex; align-items: center; gap: 10px; font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, 0.7); white-space: nowrap; }
.features img { height: 15px; width: auto; }

/* =========================================================
   WHY INVEST
   ========================================================= */
.why { margin-top: 120px; padding: 120px 0; background: var(--ice); }
.why__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 50px; }
.why-card {
  position: relative; min-height: 180px;
  padding: 29px 29px 29px 119px;
  border: 1px solid var(--border); border-radius: 16px;
}
.why-card__icon {
  position: absolute; left: 29px; top: 36px;
  width: 70px; height: 70px; border-radius: 50%;
  background: #def3ff; border: 1px solid #92c1eb;
}
.why-card__icon img { position: absolute; }
.icon-tower { left: 19px; top: 9px; width: 30.22px; height: 49.68px; }
.icon-track { left: 11px; top: 11px; width: 45px; height: 45px; }
.icon-guidance { left: 11px; top: 11px; width: 46px; height: 46px; }
.icon-line { left: 12px; top: 12px; width: 44px; height: 44px; } /* holiday home, visa: stroke icons drawn for the services cards */
.why-card__title {
  font-weight: 600; font-size: 26px; line-height: 35px; letter-spacing: -0.52px;
  color: #000; /* titles are written in title case already ("Investor and Golden Visa", not "And") */
}
.why-card__text { max-width: 486px; margin-top: 10px; }

/* =========================================================
   HIGH-NET-WORTH
   ========================================================= */
.hnw { margin-top: 120px; }
.hnw__title { max-width: 526px; }
.hnw__text { max-width: 636px; padding-top: 16px; text-align: left !important; }
.hnw__text strong { font-weight: 600; color: var(--navy); }
.hnw__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }

.lux-card {
  display: flex; flex-direction: column;
  padding: 19px;
  border: 1px solid var(--border); border-radius: 24px;
}
.lux-card__img { position: relative; height: 197px; border-radius: 9px; overflow: hidden; }
.lux-card__img img { position: absolute; max-width: none; }
.lux-card__img--tint::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.05); }
.crop-hnw1 { width: 103.58%; height: 131.93%; left: -1.79%; top: -6.14%; }
.crop-hnw2 { width: 103.46%; height: 132.69%; left: 0; top: -1.05%; }
.crop-hnw3 { width: 100%; height: 127.21%; left: 0.03%; top: -0.67%; }
.lux-card__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.lux-card__type { font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, 0.56); text-align: right; }
.lux-card__price { margin-top: 24px; font-weight: 600; font-size: 26px; line-height: 24px; letter-spacing: -0.52px; color: #000; }
.lux-card__desc { margin-top: 10px; font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, 0.56); }
.lux-card__name { margin-top: 31px; font-weight: 600; font-size: 14px; line-height: 19px; letter-spacing: -0.28px; color: var(--navy); text-transform: capitalize; }
.lux-card .features { margin: 31px -19px 0; padding: 19px 19px 0; border-top: 1px solid var(--line); }

.pin { position: relative; width: 12px; height: 12px; opacity: .7; flex: 0 0 12px; }
.pin img { position: absolute; }
.pin__o { left: 7.71%; right: 7.7%; top: 0; bottom: 0; width: 84.59%; height: 100%; }
.pin__i { left: 31.36%; top: 22.06%; width: 37.28%; height: 37.28%; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact { position: relative; margin-top: 120px; height: 853px; }
.contact__bg {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: calc(50% + 428px);
  border-radius: 0 24px 24px 0; overflow: hidden;
}
.contact__bg img { position: absolute; max-width: none; width: 146.85%; height: 134.42%; left: -0.02%; top: -0.04%; }
.contact__inner {
  position: relative;
  width: min(1627px, 100% - 48px);
  margin-left: max(24px, calc(50% - 759px));
  padding-top: 120px;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 40px;
}

.contact-form {
  flex: 0 1 636px; margin-top: 2px;
  padding: 45px 45px 48px 47px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
}
.field { position: relative; display: block; margin-bottom: 40px; border-bottom: 2px solid rgba(0, 0, 0, 0.11); }
.field input, .field select, .field textarea {
  display: block; width: 100%; height: 43px;
  padding: 0 40px 20px 0;
  border: 0; outline: 0; background: transparent;
  font-size: 16px; line-height: 23px; color: #222;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.field select { cursor: pointer; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: var(--text); opacity: 1; }
.field textarea { height: 96px; resize: none; padding-bottom: 0; }
.field:focus-within { border-bottom-color: var(--blue); }
.field__icon { position: absolute; right: 0; top: 0; width: 23px; height: 23px; pointer-events: none; }
.field__icon img { position: absolute; }
.field__icon--user img { left: 7.69%; right: 7.69%; top: 0; width: 84.62%; height: 100%; }
.field__icon > img[width] { inset: 0; }
.field__icon--mail { width: 24px; height: 24px; top: 1px; }
.field__icon--mail img { left: 4.17%; top: 14.58%; width: 91.66%; height: 70.84%; }
.field__icon--arrow { width: 19px; height: 10px; top: 7px; right: 0; }
.field__icon--arrow img { left: -1.58%; top: -3%; width: 103.16%; height: 106%; }
.contact-form .btn { height: 42px; }

.contact-card {
  position: relative; flex: 0 1 636px; min-height: 613px;
  padding: 60px 50px 50px;
  border-radius: 24px; overflow: hidden;
  background: var(--navy); color: #fff;
}
.contact-card__title {
  position: relative; max-width: 526px;
  font-weight: 600; font-size: 40px; line-height: 50px; letter-spacing: -0.8px;
  text-transform: capitalize;
}
.contact-card__text { position: relative; max-width: 526px; margin-top: 20px; }
.contact-card__rule { position: relative; display: block; width: 280px; height: 1px; margin-top: 50px; background: #1567af; }
.contact-card__list { position: relative; z-index: 1; margin-top: 50px; display: flex; flex-direction: column; gap: 20px; }
.contact-card__list li { display: flex; align-items: center; gap: 20px; }
.contact-card__list a { font-weight: 600; font-size: 20px; line-height: 27px; letter-spacing: -0.4px; }
.contact-card__list a:hover { text-decoration: underline; }
.contact-card__pattern { position: absolute; left: 0; bottom: 0; width: 636px; max-width: none; height: 207px; pointer-events: none; }

/* =========================================================
   ADVISORY / TEAM
   ========================================================= */
.advisory { margin-top: 120px; }
.advisory__box {
  position: relative;
  width: min(1516px, 100% - 48px); height: 770px;
  margin-inline: auto;
  border-radius: 24px; background: var(--ice);
  overflow: hidden;
}
.advisory__word {
  position: absolute; left: 26px; top: 0;
  width: 134px; height: 750px;
  display: flex; align-items: center; justify-content: center;
}
.advisory__word::before {
  content: "Advisory";
  transform: rotate(-90deg);
  white-space: nowrap;
  font-weight: 600; font-size: 155px; line-height: 50px; letter-spacing: -3.1px;
  text-transform: uppercase; color: var(--navy); opacity: .1;
}
.advisory__word { font-size: 0; }
.advisory__frame { position: absolute; left: 440px; top: 310px; width: 746px; height: 377px; border: 2px solid #d7d7d7; border-radius: 16px; }
.advisory__photo { position: absolute; left: 100px; bottom: 0; width: 646px; height: 711px; overflow: hidden; }
.advisory__photo img {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center bottom;
  transition: opacity .25s ease;
}
.advisory__photo img.is-founder { max-width: none; width: 109.94%; left: -7.88%; top: 0; object-fit: fill; }
.advisor > * { transition: opacity .25s ease; }
.advisory.is-switching .advisory__photo img,
.advisory.is-switching .advisor > * { opacity: 0; }
.advisory__content { position: absolute; left: 770px; top: 59px; width: 416px; }
.advisory__intro { margin-top: 20px; }
.advisor { display: flex; flex-direction: column; align-items: flex-start; margin-top: 112px; }
.advisor__name { margin-top: 20px; font-weight: 600; font-size: 26px; line-height: 25px; letter-spacing: -0.52px; color: #000; }
.advisor__role { margin-top: 10px; }
.advisor__meta { font-weight: 600; font-size: 14px; line-height: 19px; letter-spacing: -0.28px; color: var(--navy); text-transform: capitalize; }
.advisor__role + .advisor__meta { margin-top: 30px; }
.advisor__meta + .advisor__meta { margin-top: 10px; }
.advisor__btns { display: flex; gap: 20px; margin-top: 40px; }
.advisory__team { position: absolute; left: 1323px; top: 116px; display: flex; flex-direction: column; gap: 20px; }
/* Desktop: pin the advisor card to the frame so a shorter or longer intro (e.g. in Arabic) never pushes it onto the border */
@media (min-width: 1281px) {
  .advisory__content .advisor { position: absolute; top: 301px; left: 0; right: 0; margin-top: 0; }
}
.team-thumb {
  position: relative; display: block; width: 153px; height: 166px;
  border: 1px solid #e0e0e0; border-radius: 8px; background: #fff; overflow: hidden;
  transition: box-shadow .2s, transform .2s, opacity .3s ease;
}
.team-thumb:hover { box-shadow: 0 6px 18px rgba(4, 54, 99, .15); transform: translateY(-2px); }
.team-thumb:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.team-thumb img { position: absolute; max-width: none; }
.team-thumb--flip img { inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.team-thumb--fill img { inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.team-thumb.is-leaving { opacity: 0; transform: scale(.9); transition: opacity .2s ease, transform .2s ease; }
.crop-team2 { width: 115.09%; height: 100%; left: -7.54%; top: 1.71%; }
.crop-team3 { width: 100.18%; height: 100%; left: -0.09%; top: 3.21%; }

/* =========================================================
   TOP AREAS
   ========================================================= */
.areas { margin-top: 120px; padding: 120px 0; background: var(--navy); }
.section-head--light .h2 { color: #fff; margin-top: 25px; }
.section-head--light .section-head__text { color: #fff; margin-top: 10px; }
.areas__text { max-width: 534px; }
.slider--areas { margin-top: 36px; }
.area-card {
  position: relative; flex: 0 0 526px; height: 556px;
  border-radius: 24px; overflow: hidden;
}
.area-card > img { position: absolute; max-width: none; transition: transform .8s; }
.area-card:hover > img { transform: scale(1.03); }
.crop-downtown { width: 150.43%; height: 106.85%; left: -20.39%; top: -3.43%; }
.crop-marina { width: 201.44%; height: 119.5%; left: -78.82%; top: -11.27%; }
.crop-palm { width: 138.6%; height: 104.9%; left: -18.6%; top: -3.2%; }
.crop-bb { width: 172.51%; height: 108.81%; left: -48.84%; top: -8.88%; }
.crop-meydan { width: 212.24%; height: 100%; left: -106.21%; top: 0; }
.area-card__panel {
  position: absolute; left: 20px; right: 20px; bottom: 20px; min-height: 172px;
  padding: 30px 31px 30px 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(22.5px);
  backdrop-filter: blur(22.5px);
}
.area-card__name { margin-top: 20px; font-weight: 600; font-size: 26px; line-height: 24px; letter-spacing: -0.52px; color: #000; text-transform: capitalize; }
.area-card__text { margin-top: 10px; font-size: 14px; line-height: 19px; color: #000; }
/* Hover: the panel grows upwards to reveal a divider and the starting price */
.area-card__more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .45s cubic-bezier(.16, 1, .3, 1), opacity .35s ease; }
.area-card__more > div { overflow: hidden; }
.area-card__rule { display: block; height: 1px; margin-top: 24px; background: rgba(0, 0, 0, 0.18); }
.area-card__from { margin-top: 22px; font-weight: 600; font-size: 20px; line-height: 26px; letter-spacing: -0.4px; color: #000; }
.area-card:hover .area-card__more,
.area-card:focus-within .area-card__more { grid-template-rows: 1fr; opacity: 1; }
@media (hover: none) { .area-card__more { grid-template-rows: 1fr; opacity: 1; } } /* touch screens: always shown */

.dots { display: flex; justify-content: center; gap: 20px; margin-top: 50px; }
.dots button { width: 8px; height: 8px; border-radius: 4px; background: #1c5487; transition: width .3s, background-color .3s; }
.dots button.is-active { width: 24px; background: #fff; }

/* =========================================================
   TESTIMONIAL
   ========================================================= */
.testimonial { position: relative; height: 740px; padding-top: 120px; overflow: hidden; }
.testimonial__bgs { position: absolute; inset: 0; }
.testimonial__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: right center;
  opacity: 0; transition: opacity 1.8s ease-in-out;
}
.testimonial__bg.is-active { opacity: 1; }
.testimonial__bg[src*="testi-bg-2"] { object-fit: fill; } /* the original design image is stretched to the section */
.testimonial .container { position: relative; }
.testi-card {
  position: relative; width: 636px; max-width: 100%; height: 500px;
  margin-left: clamp(-110px, calc(24px - (100vw - 1296px) / 2), 0px);
  padding: 144px 65px 0 60px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12.5px);
  backdrop-filter: blur(12.5px);
}
.testi-card__quote { position: absolute; left: 60px; top: 60px; width: 60px; height: 45px; opacity: .1; transform: rotate(180deg); }
.testi-card__stars { display: flex; gap: 6.9px; }
.testi-card__stars img { width: 20.62px; height: 20.62px; }
.testi-card__text { max-width: 511px; margin-top: 30px; min-height: 69px; }
.testi-card__rule { display: block; width: 66px; height: 1px; margin-top: 72px; background: #b1b1b1; }
.testi-card__foot { display: flex; align-items: center; gap: 20px; margin-top: 35px; }
.testi-card__avatar { width: 69px; height: 69px; flex: 0 0 69px; border-radius: 50%; object-fit: cover; transition: opacity .25s ease; }
.testi-card.is-switching .testi-card__avatar { opacity: 0; }
.testi-card__name { font-weight: 600; font-size: 20px; line-height: 24px; letter-spacing: -0.4px; color: var(--navy); text-transform: capitalize; }
.testi-card__role { margin-top: 5px; }
.testi-card__nav { position: relative; margin-left: auto; align-self: flex-end; width: 66px; height: 28px; }
.testi-card__nav button { position: absolute; top: 0; width: 33px; height: 28px; border-radius: 6px; transition: background-color .2s; }
.testi-card__nav button:hover { background: rgba(4, 54, 99, .08); }
.testi-card__nav button:first-of-type { left: 0; }
.testi-card__nav button:last-of-type { right: 0; }

/* =========================================================
   NEWS
   ========================================================= */
.news { padding: 120px 0 100px; }
.slider--contained { margin-top: 26px; }
.news-card { flex: 0 0 calc((100% - 48px) / 3); display: flex; flex-direction: column; align-items: flex-start; }
.news-card__img { display: block; width: 100%; height: 253px; border-radius: 16px; overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.news-card:hover .news-card__img img { transform: scale(1.04); }
.news-card__title { margin-top: 30px; font-weight: 600; font-size: 20px; line-height: 28px; letter-spacing: -0.4px; color: var(--navy); text-transform: capitalize; }
.news-card__title a:hover { text-decoration: underline; }
.news-card__text { margin-top: 10px; }
.news-card .tag { margin-top: 30px; }

/* =========================================================
   CTA
   ========================================================= */
.cta { position: relative; height: 522px; background: var(--ice); overflow: hidden; }
.cta__inner { position: relative; z-index: 1; padding-top: 100px; }
.cta__content { display: flex; flex-direction: column; align-items: flex-start; max-width: 553px; }
.cta__content .h2 { margin-top: 25px; }
.cta__text { max-width: 543px; margin-top: 20px; }
.cta__btns { display: flex; gap: 30px; margin-top: 50px; }
.cta__art {
  position: absolute; bottom: 0; left: 50%;
  width: 931px; height: 495px;
  overflow: hidden; mix-blend-mode: multiply;
}
.cta__art img { position: absolute; max-width: none; width: 112.81%; height: 118.88%; left: -5.26%; top: 0; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { position: relative; margin-top: -4px; padding: 110px 0 39px; background: var(--navy); color: #fff; }
.footer-top { display: flex; align-items: flex-start; gap: 105px; padding-bottom: 40px; border-bottom: 1px solid #286398; }
.footer-top .brand { margin-top: 6px; flex: 0 0 225px; }
.footer-top__text { max-width: 966px; }
.footer-cols { display: flex; padding-top: 40px; padding-bottom: 40px; border-bottom: 1px solid #286398; }
.footer-col__head {
  font-weight: 500; font-size: 16px; line-height: 1.5; letter-spacing: 5.6px;
  text-transform: uppercase; color: #fff;
  text-shadow: 0 0 75px rgba(0, 0, 0, 0.45);
}
.footer-col--explore { flex: 0 0 221px; margin-left: -1px; }
.footer-col--contact { flex: 0 0 333px; display: flex; flex-direction: column; }
.footer-col--offices { flex: 0 0 auto; padding-inline-end: 40px; }
.footer-col--disclaimer { flex: 0 1 560px; margin-inline-start: auto; }
.footer-links { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.footer-links a:hover, .footer-contact a:hover, .footer-bottom a:hover { color: #9ccdfa; }
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.footer-contact li { display: flex; align-items: flex-start; gap: 13px; }
.footer-contact li > a, .footer-contact li > span:last-child { max-width: 264px; }
.footer-contact .fi { flex: 0 0 22px; height: 23px; display: flex; align-items: center; justify-content: center; }
.footer-contact li:nth-child(3) .fi { height: 46px; align-items: flex-start; padding-top: 5px; }
.footer-licence { margin-top: auto; padding-top: 40px; margin-left: -221px; color: var(--blue); }
.footer-offices { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.footer-offices li { display: flex; align-items: center; gap: 9px; }
.footer-offices img { width: 24px; height: 16px; border-radius: 2px; }
.footer-disclaimer {
  margin-top: 20px; display: flex; flex-direction: column; gap: 10px;
  font-size: 13px; line-height: 20px; color: rgba(255, 255, 255, .78);
  text-align: justify; hyphens: auto;
}
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 30px; font-size: 14px; line-height: 23px; }
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 20px; }

/* =========================================================
   FLOATING ASSISTANT BUTTON
   ========================================================= */
.gpt-btn {
  position: fixed; right: 30px; bottom: 30px; z-index: 55;
  display: inline-flex; align-items: center; gap: 10px;
  height: 60px; padding: 5px 20px;
  border-radius: 100px; background: var(--blue); color: #fff;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
  font-weight: 600; font-size: 20px; letter-spacing: -0.4px;
  transition: transform .2s;
}
.gpt-btn:hover { transform: translateY(-2px); }
.gpt-btn img { width: 26px; height: 27px; }

/* ---------- Lumi Agent chat panel ---------- */
.gpt-panel {
  position: fixed; right: 30px; bottom: 120px; z-index: 55; /* above the fixed header */
  display: flex; flex-direction: column;
  width: 543px; height: min(636px, calc(100vh - 150px));
  border-radius: 16px; overflow: hidden;
  background: #f9f9f9; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  opacity: 0; visibility: hidden; transform: translateY(16px) scale(.97); transform-origin: 100% 100%;
  transition: opacity .3s ease, transform .35s cubic-bezier(.16, 1, .3, 1), visibility .3s;
}
.gpt.is-open .gpt-panel { opacity: 1; visibility: visible; transform: none; }
.gpt-panel__head {
  flex: none; display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 20px; background: var(--blue); color: #fff;
}
.gpt-panel__brand { display: flex; align-items: center; gap: 10px; font-weight: 500; font-size: 20px; letter-spacing: -0.4px; }
.gpt-panel__brand img { width: 26px; height: 27px; }
.gpt-panel__close { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; color: #fff; border-radius: 6px; transition: background-color .2s; }
.gpt-panel__close:hover { background: rgba(255, 255, 255, .15); }

.gpt-panel__body {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 25px 20px 10px;
  scrollbar-width: thin; scrollbar-color: #cfd8e1 transparent;
}
.gpt-panel__body::-webkit-scrollbar { width: 6px; }
.gpt-panel__body::-webkit-scrollbar-thumb { background: #cfd8e1; border-radius: 3px; }
.gpt-intro { display: flex; flex-direction: column; align-items: center; text-align: center; }
.gpt-intro img { width: 62px; height: 64px; }
.gpt-intro__title { margin-top: 20px; font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -0.52px; color: #000; text-transform: capitalize; }
.gpt-intro__text { max-width: 400px; margin-top: 10px; font-size: 16px; line-height: 23px; color: var(--text); }

.gpt-log { display: flex; flex-direction: column; gap: 14px; padding: 44px 0 16px; }
.gpt-msg {
  position: relative; max-width: 82%; padding: 16px 20px;
  font-size: 14px; line-height: 20px; white-space: pre-line;
  animation: gpt-in .35s cubic-bezier(.16, 1, .3, 1) both;
}
.gpt-msg--bot {
  align-self: flex-start; margin-left: 12px; color: var(--text); background: #fff;
  border-radius: 16px; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
/* little tail on the bottom-left, as in the design */
.gpt-msg--bot::before {
  content: ""; position: absolute; left: -11px; bottom: 0; width: 20px; height: 16px;
  background: #fff; clip-path: polygon(100% 0, 100% 100%, 0 100%);
}
.gpt-msg--user { align-self: flex-end; color: #fff; background: var(--blue); border-radius: 16px 16px 4px 16px; }
.gpt-msg a { color: var(--blue); text-decoration: underline; }
.gpt-msg--typing { display: flex; gap: 5px; padding: 20px; }
.gpt-msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: #b6c6d6; animation: gpt-dot 1s infinite ease-in-out; }
.gpt-msg--typing span:nth-child(2) { animation-delay: .15s; }
.gpt-msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes gpt-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes gpt-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-4px); } }

.gpt-chips { flex: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 20px 0; }
.gpt-chip {
  padding: 7px 10px; border: 1px solid var(--blue); border-radius: 20px; background: #fff;
  font-size: 14px; line-height: 19px; color: #404040; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.gpt-chip:hover { background: var(--blue); color: #fff; }

.gpt-form { flex: none; display: flex; gap: 12px; padding: 20px 20px 0; }
.gpt-form__clear { flex: none; height: 42px; padding: 0 20px; }
.gpt-form__field { position: relative; flex: 1 1 auto; min-width: 0; }
.gpt-form__field input {
  width: 100%; height: 42px; padding: 0 46px 0 10px;
  border: 1px solid #e6e6e6; border-radius: 8px; background: #fff; outline: 0;
  font-size: 14px; color: #000; transition: border-color .2s;
}
.gpt-form__field input::placeholder { color: #404040; opacity: 1; }
.gpt-form__field input:focus { border-color: var(--blue); }
.gpt-form__send { position: absolute; right: 8px; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 32px; height: 32px; color: var(--blue); border-radius: 6px; transition: background-color .2s; }
.gpt-form__send:hover { background: var(--soft-blue); }
.gpt-panel__terms { flex: none; padding: 8px 20px 18px; font-size: 13px; line-height: 18px; color: var(--text); text-align: right; }
.gpt-panel__terms a { color: var(--blue); }
.gpt-panel__terms a:hover { text-decoration: underline; }

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Large laptops: keep layout, fit wide absolute pieces */
@media (max-width: 1720px) {
  .advisory__team { left: auto; right: 40px; }
  .advisory__content { left: auto; right: 260px; }
  .advisory__frame { left: auto; right: 220px; width: 746px; }
  .advisory__photo { left: max(60px, calc(100% - 1416px)); }
  .advisory__word { left: 10px; }
}

@media (max-width: 1500px) {
  .site-header { padding: 0 24px; }
  .main-nav { gap: 22px; }
  .header-actions { gap: 18px; }
  .advisory__photo { left: 40px; width: 560px; }
  .advisory__content { right: 230px; width: 380px; }
  .advisory__frame { right: 200px; width: 640px; }
  .advisory__word { display: none; }
  .contact-card__title { font-size: 34px; line-height: 44px; }
}

@media (max-width: 1280px) {
  .main-nav { gap: 18px; }
  .main-nav a { font-size: 15px; }
  .hero { height: 860px; }
  .hero__title { font-size: 64px; line-height: 66px; max-width: 720px; }
  .report__media { min-height: 0; }
  .why-card { padding-left: 110px; }
  .why-card__title { font-size: 22px; line-height: 30px; }
  .lux-card .features, .prop-card .features { gap: 24px; }
  .contact { height: auto; padding-bottom: 120px; }
  .contact__inner { gap: 24px; }
  .contact-card { padding: 48px 36px; }
  .advisory__box { height: auto; padding: 60px 40px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .advisory__content, .advisory__frame, .advisory__team { position: static; }
  .advisory__photo { position: relative; left: auto; bottom: auto; }
  .advisory__frame { display: none; }
  .advisory__photo { grid-row: 1 / 3; width: 100%; height: 640px; align-self: end; }
  .advisory__content { width: auto; padding-bottom: 40px; }
  .advisor { margin-top: 40px; padding: 30px; border: 2px solid #d7d7d7; border-radius: 16px; }
  .advisory__team { flex-direction: row; padding-bottom: 60px; }
  .area-card { flex-basis: 440px; height: 500px; }
  .testi-card { margin-left: 0; }
  .cta__art { left: auto; right: -80px; width: 760px; height: 404px; }
}

/* Tablet */
@media (max-width: 1023px) {
  .site-header { height: 68px; }
  .main-nav {
    position: fixed; top: 68px; left: 0; right: 0; transform: none; width: auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 24px 24px;
    background: var(--navy);
    visibility: hidden; opacity: 0; transition: opacity .25s, visibility .25s;
  }
  .main-nav a { padding: 14px 0; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-open .main-nav { visibility: visible; opacity: 1; }
  .nav-toggle { display: flex; }
  .header-actions__account { display: none; }

  .hero { height: auto; min-height: 760px; padding-top: 160px; padding-bottom: 80px; }
  .hero__title { font-size: 52px; line-height: 56px; letter-spacing: -1px; }
  .search { flex-wrap: wrap; }
  .search__type { flex-basis: 130px; }
  .search__fields { flex-basis: calc(100% - 141px); flex-wrap: wrap; height: auto; }
  .search__query { flex-basis: 100%; height: 49px; border-bottom: 1px solid #e3e3e3; }
  .search__select { flex: 1 1 50%; height: 49px; }
  .search__select--price { border-left: 0; }
  .search__select .chev { left: auto; right: 20px; }
  .search__btn { flex: 1 1 100%; }

  .report { flex-direction: column; }
  .report__media { flex: none; height: 420px; }
  .report__card { flex: none; }
  .report__title, .report__text { max-width: none; }

  .section-head--split { flex-direction: column; align-items: flex-start; gap: 12px; }
  .section-head--split .section-head__text { text-align: left; }
  .h2, .report__title, .contact-card__title { font-size: 32px; line-height: 40px; }

  .why__grid { grid-template-columns: 1fr; }
  .hnw__grid { grid-template-columns: 1fr 1fr; }

  .contact__bg { width: 100%; border-radius: 0; }
  .contact__inner { flex-direction: column; margin-inline: auto; padding-top: 80px; }
  .contact-form, .contact-card { flex: none; width: 100%; }
  .contact-card { min-height: 520px; }

  /* One column: heading, intro, then photo + details as a single card, then the other advisors */
  .advisory__box { grid-template-columns: 1fr; padding: 48px 24px 0; }
  .advisory__content { display: contents; }
  .advisory__content .h2 { order: 1; }
  .advisory__intro { order: 2; margin-bottom: 28px; }
  .advisory__photo {
    order: 3; grid-row: auto; height: 460px;
    border: 2px solid #d7d7d7; border-bottom: 0; border-radius: 16px 16px 0 0;
    background: linear-gradient(180deg, #dcebf8 0%, #f4f9fe 100%);
  }
  .advisory__photo img.is-founder { width: 100%; left: 0; object-fit: contain; }
  .advisor { order: 4; margin-top: 0; border-radius: 0 0 16px 16px; background: #fff; }
  .advisory__team { order: 5; padding: 28px 0 48px; }

  .testimonial { height: auto; padding: 80px 0; }
  .testi-card { height: auto; padding: 120px 32px 40px; }
  .testi-card__quote { left: 32px; top: 50px; }
  .testi-card__rule { margin-top: 40px; }

  .news-card { flex-basis: calc((100% - 24px) / 2); }
  .cta { height: auto; padding-bottom: 300px; }
  .cta__inner { padding-top: 80px; }
  .cta__art { right: 0; left: 0; width: 100%; height: 280px; }
  .cta__art img { object-fit: contain; width: 100%; height: 100%; left: 0; }

  .footer-top { flex-direction: column; gap: 24px; }
  .footer-top .brand { flex: none; }
  .footer-cols { flex-wrap: wrap; gap: 40px; }
  .footer-col--explore, .footer-col--contact { flex: 1 1 260px; margin-left: 0; }
  .footer-col--offices { flex: 1 1 160px; padding-inline-end: 0; }
  .footer-col--disclaimer { flex: 1 1 100%; margin-inline-start: 0; }
  .footer-licence { margin-left: 0; }
}

/* Mobile */
@media (max-width: 767px) {
  .container { width: calc(100% - 32px); }
  .site-header { padding: 0 16px; }
  .header-actions { gap: 10px; }
  .header-actions .btn--sm { display: none; }
  .brand__tag { display: none; }

  .hero { min-height: 680px; padding-top: 130px; }
  .hero__content { padding: 0 16px; }
  .hero__title { font-size: 38px; line-height: 42px; }
  .hero__sub { font-size: 16px; }
  .search { padding: 12px; margin-top: 32px; }
  .search__type, .search__fields { flex-basis: 100%; }
  .market { padding: 12px 14px 14px; }
  .market__grid { grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .market__stat:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; }
  .market__value { font-size: 16px; }

  .logos { margin-top: 48px; }
  .logos__fade { width: 60px !important; }

  .report, .explore, .why, .hnw, .contact, .advisory, .areas { margin-top: 80px; }
  .why, .areas { padding: 80px 0; }
  .news { padding: 80px 0; }
  .report__media { height: 260px; }
  .report__card { padding: 28px 20px; }

  .toolbar { flex-wrap: wrap; }
  .tabs { gap: 2px; overflow-x: auto; max-width: 100%; }
  .tabs__btn { padding-inline: 14px; flex: none; }
  .prop-card { flex-basis: min(340px, calc(100vw - 48px)); }
  .prop-card__title { font-size: 22px; }
  .lux-card .features, .prop-card .features { gap: 18px; }

  .why-card { padding: 110px 20px 24px; }
  .why-card__icon { left: 20px; top: 24px; }

  .hnw__grid { grid-template-columns: 1fr; }
  .hnw__text { padding-top: 0; }

  .contact { padding-bottom: 80px; }
  .contact__inner { width: calc(100% - 32px); margin-inline: auto; padding-top: 48px; }
  .contact-form { padding: 32px 20px; }
  .contact-card { padding: 36px 20px; min-height: 0; padding-bottom: 140px; }
  .contact-card__list a { font-size: 17px; }

  .advisory__box { width: calc(100% - 32px); padding: 36px 20px 0; }
  .advisory__intro { margin-bottom: 24px; }
  .advisory__team { gap: 10px; padding: 20px 0 32px; }
  .team-thumb { width: calc((100vw - 92px) / 3); height: auto; aspect-ratio: 153 / 166; }
  .advisory__photo { height: 340px; }
  .advisor { padding: 20px; }
  .advisor__btns { align-self: stretch; gap: 12px; }
  .advisor__btns .btn { flex: 1 1 0; padding-inline: 12px; }

  .area-card { flex-basis: min(320px, calc(100vw - 48px)); height: 440px; }
  .area-card__panel { left: 12px; right: 12px; bottom: 12px; height: auto; padding: 20px; }
  .area-card__name { font-size: 22px; }

  .testi-card { padding: 100px 20px 32px; }
  .testi-card__quote { left: 20px; }
  .testi-card__foot { flex-wrap: wrap; }

  .news-card { flex-basis: min(320px, calc(100vw - 48px)); }
  .cta__btns { flex-direction: column; gap: 14px; align-items: stretch; }
  .cta { padding-bottom: 220px; }
  .cta__art { height: 200px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .gpt-btn { right: 16px; bottom: 16px; height: 50px; font-size: 17px; padding: 5px 16px; }
  .gpt-panel { right: 16px; bottom: 80px; width: calc(100vw - 32px); height: calc(100dvh - 100px); }
  .gpt-intro img { width: 47px; height: 48px; }
  .gpt-intro__title { font-size: 22px; line-height: 28px; }
  .gpt-intro__text { font-size: 15px; line-height: 21px; }
  .gpt-log { padding-top: 28px; }
  .gpt-chips { gap: 8px; }
  .gpt-chip { font-size: 13px; padding: 6px 9px; }
  .gpt-form { gap: 8px; }
  .gpt-form__clear { padding: 0 14px; font-size: 14px; }
}

/* =========================================================
   MOTION: smooth scroll, reveal on scroll, parallax, hover
   ========================================================= */
/* Lenis smooth scrolling */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* Thin progress bar along the top of the screen */
.scroll-progress {
  position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--blue), #9ccdfa);
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* Reveal: hidden until JS adds .is-in, then plays once (fill "backwards" so hover effects still work afterwards) */
.reveal:not(.is-in) { opacity: 0; }
.reveal.is-in { animation: .95s cubic-bezier(.16, 1, .3, 1) var(--d, 0s) backwards; }
.reveal--up.is-in { animation-name: rv-up; }
.reveal--left.is-in { animation-name: rv-left; }
.reveal--right.is-in { animation-name: rv-right; }
.reveal--zoom.is-in { animation-name: rv-zoom; }
.reveal--fade.is-in { animation-name: rv-fade; animation-duration: 1.4s; }
.h2.reveal--up.is-in, .hero__title.reveal--up.is-in { animation-name: rv-title; animation-duration: 1.1s; }
@keyframes rv-up { from { opacity: 0; transform: translateY(46px); } }
@keyframes rv-left { from { opacity: 0; transform: translateX(-60px); } }
@keyframes rv-right { from { opacity: 0; transform: translateX(60px); } }
@keyframes rv-zoom { from { opacity: 0; transform: scale(.85); } }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-title { from { opacity: 0; transform: translateY(40px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 -20% 0); } }

/* Parallax images drift with the scroll; scaled slightly so edges never show */
.parallax { scale: 1.12; will-change: translate; }
.hero__bg { will-change: scale; }
.hero__content { will-change: translate, opacity; }

/* Hover: cards lift, buttons rise */
.prop-card, .lux-card, .news-card, .why-card { transition: transform .45s cubic-bezier(.16, 1, .3, 1), box-shadow .45s; }
.prop-card:hover, .lux-card:hover { transform: translateY(-8px); box-shadow: 0 22px 40px -18px rgba(4, 54, 99, .28); }
.news-card:hover { transform: translateY(-6px); }
.why-card:hover { transform: translateX(6px); }
.why-card__icon { transition: transform .45s cubic-bezier(.16, 1, .3, 1); }
.why-card:hover .why-card__icon { transform: scale(1.08) rotate(-4deg); }
.lux-card__img img { transition: scale .8s cubic-bezier(.16, 1, .3, 1); }
.lux-card:hover .lux-card__img img { scale: 1.06; }
.area-card { transition: box-shadow .45s; }
.area-card:hover { box-shadow: 0 24px 44px -20px rgba(4, 54, 99, .35); }
.arrow { transition: filter .2s, transform .3s cubic-bezier(.16, 1, .3, 1); }
.arrow:hover { transform: scale(1.08); }
.logo-box { transition: transform .4s cubic-bezier(.16, 1, .3, 1); }
.logo-box:hover { transform: translateY(-4px); }

/* Testimonial text fades between reviews */
.testi-card__text, .testi-card__name, .testi-card__role { transition: opacity .25s ease, transform .25s ease; }
.testi-card.is-switching .testi-card__text,
.testi-card.is-switching .testi-card__name,
.testi-card.is-switching .testi-card__role { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
  .slider__track, .prop-card__img img, .area-card > img, .news-card__img img { transition: none; }
  .reveal:not(.is-in) { opacity: 1; }
  .reveal.is-in { animation: none; }
  .prop-card, .lux-card, .news-card, .why-card, .arrow, .logo-box { transition: none; transform: none !important; }
  .area-card__more { transition: none; }
  .btn::before { transition: none; }
  .gpt-panel { transition: none; transform: none; }
  .gpt-msg, .gpt-msg--typing span { animation: none; }
}

/* =========================================================
   ARABIC (right-to-left) — /ar pages set <html dir="rtl">
   Flex rows mirror on their own; these rules flip the pieces
   that are positioned with left/right.
   ========================================================= */
html[dir="rtl"] { --font: 'Manrope', 'IBM Plex Sans Arabic', system-ui, sans-serif; }
html[dir="rtl"] body * { letter-spacing: 0; } /* letter-spacing breaks Arabic letter joining */
html[dir="rtl"] .brand { direction: ltr; }

/* Search bar */
[dir="rtl"] .search__type select { padding: 0 21px 0 39px; }
[dir="rtl"] .search__type .chev { right: auto; left: 20px; }
[dir="rtl"] .search__select select { padding: 0 30px 0 0; }
[dir="rtl"] .search__select--price .chev { left: auto; right: 123px; }
[dir="rtl"] .search__select--beds .chev { left: auto; right: 111px; }
[dir="rtl"] .search__btn { margin-left: 0; margin-right: -1px; }

/* Sliders and the logo marquee keep their left-to-right motion; only the card text flips */
[dir="rtl"] .logos,
[dir="rtl"] .slider,
[dir="rtl"] .arrows,
[dir="rtl"] .dots { direction: ltr; }
[dir="rtl"] .slider__track > * { direction: rtl; }

[dir="rtl"] .section-head--split .section-head__text { text-align: left; }
[dir="rtl"] .hnw__text { text-align: right !important; }

/* Why invest */
[dir="rtl"] .why-card { padding: 29px 119px 29px 29px; }
[dir="rtl"] .why-card__icon { left: auto; right: 29px; }
[dir="rtl"] .why-card:hover { transform: translateX(-6px); }
[dir="rtl"] .lux-card__type { text-align: left; }

/* Contact */
[dir="rtl"] .contact__bg { left: auto; right: 0; border-radius: 24px 0 0 24px; }
[dir="rtl"] .contact__inner { margin-left: auto; margin-right: max(24px, calc(50% - 759px)); }
[dir="rtl"] .field input, [dir="rtl"] .field select, [dir="rtl"] .field textarea { padding: 0 0 20px 40px; }
[dir="rtl"] .field textarea { padding-bottom: 0; }
[dir="rtl"] .field__icon { right: auto; left: 0; }
[dir="rtl"] .field__error { left: auto; right: 0; }
[dir="rtl"] .contact-card__pattern { left: auto; right: 0; transform: scaleX(-1); }

/* Advisory: photo on the right, thumbnails on the left (mirror of the 1516px design box) */
[dir="rtl"] .advisory__word { left: auto; right: 26px; }
[dir="rtl"] .advisory__word::before { content: attr(data-word); transform: rotate(90deg); letter-spacing: 0; font-size: 120px; }
[dir="rtl"] .advisory__frame { left: auto; right: 440px; }
[dir="rtl"] .advisory__photo { left: auto; right: 100px; }
[dir="rtl"] .advisory__content { left: auto; right: 770px; }
[dir="rtl"] .advisory__team { left: 40px; right: auto; }

/* Testimonial */
[dir="rtl"] .testi-card { margin-left: 0; margin-right: clamp(-110px, calc(24px - (100vw - 1296px) / 2), 0px); }
[dir="rtl"] .testi-card__quote { left: auto; right: 60px; transform: none; }
[dir="rtl"] .testi-card__nav { margin-left: 0; margin-right: auto; direction: ltr; }

/* CTA skyline moves to the left, away from the text */
[dir="rtl"] .cta__art { left: auto; right: 50%; }
[dir="rtl"] .cta__art img { transform: scaleX(-1); }

/* Footer */
[dir="rtl"] .footer-col--explore { margin-left: 0; margin-right: -1px; }
[dir="rtl"] .footer-licence { margin-left: 0; margin-right: -221px; }

/* Lumi Agent */
[dir="rtl"] .gpt-panel__close { margin-right: 0; margin-left: -6px; }
[dir="rtl"] .gpt-msg--bot { margin-left: 0; margin-right: 12px; }
[dir="rtl"] .gpt-msg--bot::before { left: auto; right: -11px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
[dir="rtl"] .gpt-msg--user { border-radius: 16px 16px 16px 4px; }
[dir="rtl"] .gpt-form__field input { padding: 0 10px 0 46px; }
[dir="rtl"] .gpt-form__send { right: auto; left: 8px; }
[dir="rtl"] .gpt-form__send svg { transform: scaleX(-1); }
[dir="rtl"] .gpt-panel__terms { text-align: left; }
[dir="rtl"] .form-alert { text-align: right; }

@media (max-width: 1720px) {
  [dir="rtl"] .advisory__team { left: 40px; right: auto; }
  [dir="rtl"] .advisory__content { left: 260px; right: auto; }
  [dir="rtl"] .advisory__frame { left: 220px; right: auto; }
  [dir="rtl"] .advisory__photo { left: auto; right: max(60px, calc(100% - 1416px)); }
  [dir="rtl"] .advisory__word { right: 10px; }
}
@media (max-width: 1500px) {
  [dir="rtl"] .advisory__photo { right: 40px; }
  [dir="rtl"] .advisory__content { left: 230px; }
  [dir="rtl"] .advisory__frame { left: 200px; }
}
@media (max-width: 1280px) {
  [dir="rtl"] .advisory__photo { right: auto; }
  [dir="rtl"] .why-card { padding-left: 29px; padding-right: 110px; }
  [dir="rtl"] .cta__art { right: auto; left: -80px; }
  [dir="rtl"] .testi-card { margin-right: 0; }
}
@media (max-width: 1023px) {
  [dir="rtl"] .search__select .chev { right: auto; left: 20px; }
}
@media (max-width: 767px) {
  [dir="rtl"] .section-head--split .section-head__text { text-align: right; }
  [dir="rtl"] .footer-licence { margin-right: 0; }
  [dir="rtl"] .why-card { padding: 110px 20px 24px; }
  [dir="rtl"] .why-card__icon { right: 20px; }
  [dir="rtl"] .testi-card__quote { right: 20px; }
  [dir="rtl"] .cta__art { left: 0; right: 0; }
}

/* =========================================================
   FORM FEEDBACK (Laravel validation + success message)
   ========================================================= */
.form-alert { margin: -10px 0 30px; padding: 12px 16px; border-radius: 8px; font-size: 15px; line-height: 22px; }
.form-alert--success { background: #e6f6ea; color: #14612a; border: 1px solid #b7e2c2; }
.field.is-invalid { border-bottom-color: #d93025; }
.field__error { position: absolute; left: 0; top: calc(100% + 4px); font-size: 13px; line-height: 18px; color: #d93025; }

/* =========================================================
   INNER PAGES (About, Contact, Privacy, Terms)
   Logical properties (inline-start/end) so Arabic mirrors itself.
   ========================================================= */
.main-nav a.is-current { box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 4px; }

/* Banner */
.page-hero {
  position: relative; display: flex; align-items: flex-end;
  min-height: 560px; padding: 170px 0 90px;
  background: var(--navy); color: #fff; overflow: hidden;
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg img.is-flipped { transform: scaleX(-1); }
.page-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(2, 22, 42, .45) 0%, rgba(2, 22, 42, .35) 40%, rgba(4, 40, 74, .88) 100%);
}
.page-hero--plain { min-height: 440px; background: radial-gradient(120% 140% at 85% 0%, #1f5687 0%, var(--navy) 55%, #02213d 100%); }
.page-hero--plain::after { /* faint grid, echoing the contact card pattern */
  content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 40%, transparent);
}
.page-hero--overlap { padding-bottom: 150px; }
/* inner pages end with the enquiry section: keep it off the footer */
main > .contact:last-child { margin-bottom: 120px; }
@media (max-width: 767px) { main > .contact:last-child { margin-bottom: 80px; } }
/* lighter overlay: shade only behind the text (start side) and the very top for the header */
.page-hero--soft .page-hero__bg::after {
  background: linear-gradient(180deg, rgba(2, 22, 42, .35) 0%, transparent 22%),
              linear-gradient(90deg, rgba(2, 22, 42, .62) 0%, rgba(2, 22, 42, .3) 50%, rgba(2, 22, 42, .05) 80%);
}
[dir="rtl"] .page-hero--soft .page-hero__bg img { transform: scaleX(-1); } /* towers stay on the side away from the text */
[dir="rtl"] .page-hero--soft .page-hero__bg::after {
  background: linear-gradient(180deg, rgba(2, 22, 42, .35) 0%, transparent 22%),
              linear-gradient(270deg, rgba(2, 22, 42, .62) 0%, rgba(2, 22, 42, .3) 50%, rgba(2, 22, 42, .05) 80%);
}
.page-hero__inner { position: relative; z-index: 1; }
.crumbs { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14px; line-height: 19px; color: rgba(255, 255, 255, .72); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current] { color: #fff; }
.page-hero__title { margin-top: 18px; font-weight: 600; font-size: 72px; line-height: 78px; letter-spacing: -2px; text-transform: capitalize; }
.page-hero__text { max-width: 760px; margin-top: 22px; font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, .86); }
.page-hero__meta {
  display: inline-block; margin-top: 26px; padding: 8px 14px; border-radius: 6px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  font-size: 14px; line-height: 19px; color: rgba(255, 255, 255, .9);
}

/* About: who we are */
.about-intro { padding-top: 120px; }
.about-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-intro__text { display: flex; flex-direction: column; align-items: flex-start; }
.about-intro__text .h2 { margin-top: 25px; text-transform: none; }
.about-intro__text p { margin-top: 20px; }
.about-intro__text .h2 + p { margin-top: 30px; font-size: 20px; line-height: 30px; color: #222; }
.about-intro__btns { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; }
.about-intro__media { position: relative; height: 560px; border-radius: 24px; overflow: hidden; }
.about-intro__media img { width: 100%; height: 100%; object-fit: cover; }

/* About: in numbers (photo banner) */
.numbers { position: relative; margin-top: 120px; padding: 110px 0 120px; color: #fff; overflow: hidden; }
.numbers__bg { position: absolute; inset: 0; }
.numbers__bg img { width: 100%; height: 100%; object-fit: cover; }
.numbers__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 22, 42, .62), rgba(4, 40, 74, .78)); }
.numbers__inner { position: relative; text-align: center; }
.numbers__title { font-weight: 600; font-size: 40px; line-height: 50px; letter-spacing: -0.8px; text-transform: uppercase; }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 60px 0 0; }
.numbers__item { display: flex; flex-direction: column-reverse; gap: 10px; padding: 10px 20px; }
.numbers__item + .numbers__item { border-inline-start: 1px solid rgba(255, 255, 255, .22); }
.numbers__value { margin: 0; font-weight: 600; font-size: 64px; line-height: 68px; letter-spacing: -1.5px; }
.numbers__label { font-size: 18px; line-height: 24px; color: rgba(255, 255, 255, .82); }

/* Prompt consultation: one-line quick enquiry */
.btn--navy { background: var(--navy); color: #fff; --btn-fill: var(--blue); }
.consult { position: relative; z-index: 1; margin-top: -70px; }
.consult__card {
  max-width: 1080px; margin-inline: auto; padding: 44px 50px 34px;
  border-radius: 24px; background: #fff; border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(4, 54, 99, .12);
}
.consult__head { text-align: center; }
.consult__title { font-weight: 600; font-size: 32px; line-height: 40px; letter-spacing: -0.64px; color: var(--navy); }
.consult__text { margin-top: 8px; }
.consult .form-alert { margin: 24px 0 0; }
.consult__row { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 30px; align-items: end; margin-top: 36px; }
.consult .field { margin-bottom: 0; }
.consult .field input { padding-inline-end: 0; }
.consult .btn { min-width: 150px; height: 44px; margin-bottom: 6px; }
.consult__note { margin-top: 26px; font-size: 13px; line-height: 19px; color: rgba(0, 0, 0, .5); text-align: center; }
.consult__note a { color: var(--blue); }
.consult__note a:hover { text-decoration: underline; }

/* About: founders' messages */
.messages { margin-top: 120px; padding: 120px 0; background: var(--ice); }
.message {
  display: grid; grid-template-columns: 460px 1fr; gap: 80px; align-items: center;
  margin-top: 60px; padding: 40px; border-radius: 24px; background: #fff;
  border: 1px solid var(--border);
}
.message--flip { grid-template-columns: 1fr 460px; }
.message--flip .message__photo { order: 2; }
.message__photo {
  position: relative; height: 520px; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, #dcebf8 0%, #f4f9fe 100%);
}
.message__photo img { position: absolute; inset: auto 0 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.message__body { display: flex; flex-direction: column; align-items: flex-start; padding-inline-end: 20px; }
.message__quote { margin-top: 36px; opacity: .12; }
[dir="rtl"] .message__quote { transform: scaleX(-1); }
.message__text { margin: 20px 0 0; }
.message__text p { font-size: 18px; line-height: 30px; color: #333; }
.message__text p + p { margin-top: 16px; }
.message__name { margin-top: 36px; font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -0.52px; color: #000; }
.message__role { margin-top: 6px; font-weight: 600; font-size: 14px; line-height: 19px; color: var(--navy); }

/* About: team */
.team { margin-top: 120px; }
.team__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 50px; }
.member { display: flex; flex-direction: column; padding: 19px; border: 1px solid var(--border); border-radius: 24px; background: #fff; transition: box-shadow .3s, transform .3s; }
.member:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(4, 54, 99, .1); }
.member__photo { position: relative; height: 320px; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #dcebf8 0%, #f4f9fe 100%); }
.member__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom; transition: transform .6s; }
.member:hover .member__photo img { transform: scale(1.04); }
.member__body { padding: 20px 4px 4px; }
.member__name { margin: 0; font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.44px; color: #000; }
.member__role { margin-top: 6px; font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, .56); }
.member__link { display: inline-flex; gap: 6px; margin-top: 18px; font-weight: 600; font-size: 14px; line-height: 19px; color: var(--wa); }
.member__link:hover { text-decoration: underline; }
[dir="rtl"] .member__link span { transform: scaleX(-1); }
.team__subhead { margin-top: 70px; font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -0.52px; color: var(--navy); }
/* Property advisors: real photos (studio portraits), so they fill the frame instead of sitting on the blue gradient */
.team__grid--advisors { margin-top: 30px; } /* same 4 columns and photo size as Leadership (client request) */
.team__subhead--first { margin-top: 50px; }
.team__subhead--first + .team__grid { margin-top: 30px; }
.member--advisor .member__photo { height: 320px; background: #c9ced8; }
.member--advisor .member__photo img { object-fit: cover; object-position: center 20%; }
.member--advisor .member__name { font-size: 20px; line-height: 26px; letter-spacing: -0.4px; }
.member__initials { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; font-size: 48px; color: var(--navy); background: var(--soft-blue); }

/* Contact: quick channels */
.channels { position: relative; z-index: 2; margin-top: -60px; }
.channels__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.channel {
  position: relative; display: flex; flex-direction: column; align-items: flex-start;
  padding: 32px; border-radius: 20px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 20px 50px rgba(4, 54, 99, .08);
  transition: transform .3s, box-shadow .3s;
}
.channel:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(4, 54, 99, .14); }
.channel__icon { width: 48px; height: 48px; }
.channel__title { margin-top: 24px; font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, .56); }
.channel__value { margin-top: 6px; font-weight: 600; font-size: 22px; line-height: 30px; letter-spacing: -0.44px; color: var(--navy); word-break: break-word; }
.channel__arrow { position: absolute; top: 32px; inset-inline-end: 32px; font-size: 22px; color: var(--blue); transition: transform .3s; }
.channel:hover .channel__arrow { transform: translateX(4px); }
[dir="rtl"] .channel__arrow { transform: scaleX(-1); }
[dir="rtl"] .channel:hover .channel__arrow { transform: scaleX(-1) translateX(4px); }

/* Contact: offices + map */
.offices { margin-top: 120px; }
.offices__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 50px; }
.office { display: flex; flex-direction: column; align-items: flex-start; padding: 40px; border: 1px solid var(--border); border-radius: 24px; }
.office__head { display: flex; align-items: center; gap: 14px; }
.office__head img { border-radius: 3px; }
.office__title { font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -0.52px; color: #000; }
.office__list { display: grid; gap: 22px; width: 100%; margin: 30px 0 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.office__list dt { font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, .56); }
.office__list dd { margin: 6px 0 0; font-weight: 500; font-size: 18px; line-height: 26px; color: #222; }
.office__list a:hover { color: var(--blue); }
.office .btn { margin-top: auto; }
.office-map { height: 460px; margin-top: 24px; border-radius: 24px; overflow: hidden; background: var(--ice); }
.office-map iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.25); }

/* Legal pages */
.legal { padding: 100px 0 40px; }
.legal__grid { display: grid; grid-template-columns: 300px minmax(0, 820px); gap: 100px; justify-content: space-between; align-items: start; }
.legal__toc { position: sticky; top: 110px; padding: 28px; border: 1px solid var(--border); border-radius: 20px; }
.legal__toc-title { font-weight: 600; font-size: 14px; line-height: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.legal__toc ol { margin: 16px 0 0; padding-inline-start: 20px; display: grid; gap: 10px; }
.legal__toc li { font-size: 14px; line-height: 20px; color: rgba(0, 0, 0, .45); }
.legal__toc a { color: var(--text); transition: color .2s; }
.legal__toc a:hover, .legal__toc a.is-active { color: var(--blue); }
.legal__section { scroll-margin-top: 110px; }
.legal__section + .legal__section { margin-top: 50px; padding-top: 50px; border-top: 1px solid var(--line); }
.legal__section h2 { font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.56px; color: var(--navy); }
.legal__num { color: var(--blue); }
.legal__section h3 { margin-top: 28px; font-weight: 600; font-size: 18px; line-height: 26px; color: #000; }
.legal__section p { margin-top: 16px; font-size: 17px; line-height: 28px; }
.legal__section ul { margin-top: 16px; display: grid; gap: 12px; }
.legal__section li { position: relative; padding-inline-start: 22px; font-size: 17px; line-height: 28px; }
.legal__section li::before { content: ''; position: absolute; inset-inline-start: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.legal__section strong { font-weight: 600; color: #222; }
.legal__contact { margin-top: 60px; padding: 40px; border-radius: 24px; background: var(--navy); color: #fff; }
.legal__contact h2 { font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.56px; }
.legal__contact p { margin-top: 12px; color: rgba(255, 255, 255, .8); }
.legal__contact dl { display: grid; grid-template-columns: repeat(3, auto); gap: 24px; margin: 28px 0 0; padding-top: 28px; border-top: 1px solid #1567af; }
.legal__contact dt { font-size: 13px; line-height: 18px; color: rgba(255, 255, 255, .6); }
.legal__contact dd { margin: 6px 0 0; font-weight: 600; font-size: 16px; line-height: 23px; }
.legal__contact a:hover { text-decoration: underline; }

@media (max-width: 1280px) {
  .page-hero__title { font-size: 60px; line-height: 66px; }
  .about-intro__grid { gap: 48px; }
  .message, .message--flip { grid-template-columns: 380px 1fr; gap: 48px; }
  .message--flip { grid-template-columns: 1fr 380px; }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .member__photo { height: 380px; }
  .legal__grid { grid-template-columns: 260px minmax(0, 1fr); gap: 60px; }
  .legal__contact dl { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  .page-hero { min-height: 460px; padding: 140px 0 70px; }
  .page-hero--overlap { padding-bottom: 130px; }
  .page-hero--plain { min-height: 380px; }
  .page-hero__title { font-size: 48px; line-height: 54px; letter-spacing: -1px; }
  .about-intro { padding-top: 80px; }
  .about-intro__grid { grid-template-columns: 1fr; }
  .about-intro__media { height: 420px; }
  .numbers { margin-top: 80px; padding: 80px 0 110px; }
  .numbers__grid { grid-template-columns: 1fr 1fr; gap: 40px 0; margin-top: 40px; }
  .numbers__item:nth-child(3) { border-inline-start: 0; }
  .consult__row { grid-template-columns: 1fr 1fr; gap: 30px 24px; }
  .consult .btn { grid-column: 1 / -1; }
  .messages, .team, .offices { margin-top: 80px; }
  .messages { padding: 80px 0; }
  .message, .message--flip { grid-template-columns: 1fr; gap: 32px; padding: 24px; }
  .message--flip .message__photo { order: 0; }
  .message__photo { height: 420px; }
  .team__grid--advisors { grid-template-columns: 1fr 1fr; }
  .channels__grid, .offices__grid { grid-template-columns: 1fr; }
  .legal { padding-top: 60px; }
  .legal__grid { grid-template-columns: 1fr; gap: 40px; }
  .legal__toc { position: static; }
}

@media (max-width: 767px) {
  .page-hero { min-height: 400px; padding: 120px 0 56px; }
  .page-hero--overlap { padding-bottom: 100px; }
  .page-hero__title { font-size: 38px; line-height: 44px; }
  .page-hero__text { font-size: 16px; line-height: 25px; }
  .about-intro__media { height: 300px; }
  .numbers__title { font-size: 30px; line-height: 38px; }
  .numbers__value { font-size: 40px; line-height: 46px; }
  .numbers__label { font-size: 15px; }
  .consult__card { padding: 30px 22px 24px; }
  .consult__title { font-size: 26px; line-height: 32px; }
  .consult__row { grid-template-columns: 1fr; }
  .message__photo { height: 340px; }
  .message__text p { font-size: 16px; line-height: 27px; }
  .team__grid, .team__grid--advisors { grid-template-columns: 1fr; }
  .member__photo { height: 340px; }
  .channels { margin-top: -40px; }
  .channel { padding: 24px; }
  .office { padding: 24px; }
  .office-map { height: 320px; }
  .legal__section h2, .legal__contact h2 { font-size: 23px; line-height: 30px; }
  .legal__section p, .legal__section li { font-size: 16px; line-height: 26px; }
  .legal__contact { padding: 28px 22px; }
  .legal__contact dl { grid-template-columns: 1fr; }
}

/* =========================================================
   LISTINGS (Buy, Rent, project pages), DEVELOPERS, AREAS
   Logical properties so Arabic mirrors itself.
   ========================================================= */
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--blue); white-space: nowrap; }
.link-arrow span { transition: transform .3s; }
.link-arrow:hover span { transform: translateX(4px); }
[dir="rtl"] .link-arrow span { transform: scaleX(-1); }
[dir="rtl"] .link-arrow:hover span { transform: scaleX(-1) translateX(4px); }

/* Search / filters card rising into the banner */
.finder { position: relative; z-index: 2; margin-top: -90px; }
.finder__card {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding: 18px; border-radius: 20px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(4, 54, 99, .12);
}
.finder__search { flex: 3 1 280px; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 12px; background: #f4f6f9; color: rgba(0, 0, 0, .45); }
.finder__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #222; }
.finder__search:focus-within { box-shadow: 0 0 0 2px var(--blue) inset; }
.finder__field { flex: 1 1 130px; min-width: 0; }
.finder__field select, .results__sort select {
  width: 100%; height: 52px; padding: 0 38px 0 16px; border: 1px solid var(--border); border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.5l4 4 4-4' fill='none' stroke='%23043663' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  -webkit-appearance: none; appearance: none; cursor: pointer; color: #333; font-size: 15px;
}
[dir="rtl"] .finder__field select, [dir="rtl"] .results__sort select { padding: 0 16px 0 38px; background-position: left 14px center; }
.finder__field select:focus, .results__sort select:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.finder__submit { height: 52px; padding-inline: 28px; }
/* project, developer and area names keep their own capitalisation */
.page-hero--names .page-hero__title { text-transform: none; }

/* Results + sidebar */
.results { margin-top: 60px; }
.results__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; }
.results__bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.results__count { font-weight: 600; font-size: 18px; line-height: 26px; color: var(--navy); }
.results__reset { margin-inline-start: 14px; font-weight: 500; font-size: 14px; color: var(--blue); }
.results__reset:hover { text-decoration: underline; }
.results__sort label { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(0, 0, 0, .56); white-space: nowrap; }
.results__sort select { height: 42px; width: auto; min-width: 190px; }
.results__side { position: sticky; top: 110px; display: grid; gap: 20px; }
.side-box { padding: 24px; border: 1px solid var(--border); border-radius: 20px; }
.side-box__title { font-weight: 600; font-size: 14px; line-height: 19px; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); }
.side-box__list { margin-top: 14px; display: grid; gap: 4px; }
.side-box__list a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; color: #333; transition: color .2s; }
.side-box__list a span { color: rgba(0, 0, 0, .4); }
.side-box__list a:hover, .side-box__list a.is-active { color: var(--blue); }
.side-cta { display: grid; gap: 12px; padding: 26px 24px; border-radius: 20px; background: var(--navy); color: rgba(255, 255, 255, .82); }
.side-cta__title { font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.44px; color: #fff; }
.side-cta p { margin-bottom: 6px; font-size: 15px; line-height: 23px; }
.side-cta .btn--whatsapp { background: #fff; }
.side-cta .btn--soft { --btn-fill: var(--blue); }

/* Listing cards */
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 30px; }
.listing-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; }
.listing-card { border: 1px solid var(--border); border-radius: 24px; background: #fff; transition: transform .3s, box-shadow .3s; }
.listing-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(4, 54, 99, .12); }
.listing-card__link { display: flex; flex-direction: column; height: 100%; padding: 14px; }
.listing-card__link:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 24px; }
.listing-card__img { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--ice); }
.listing-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.listing-card:hover .listing-card__img img { transform: scale(1.05); }
.listing-card__badge { position: absolute; top: 14px; inset-inline-start: 14px; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .92); font-weight: 600; font-size: 12px; line-height: 16px; color: var(--navy); }
.listing-card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 8px 6px; }
.listing-card__dev { font-size: 13px; line-height: 18px; color: rgba(0, 0, 0, .5); }
.listing-card__title { margin-top: 6px; font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.44px; color: #000; }
.listing-card__loc { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 14px; line-height: 20px; color: rgba(0, 0, 0, .6); }
.listing-card__loc svg { flex: none; color: var(--blue); }
.listing-card__summary { margin-top: 10px; font-size: 14px; line-height: 20px; color: rgba(0, 0, 0, .56); }
.listing-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; }
.listing-card__body > :nth-last-child(2) { margin-bottom: 18px; }
.listing-card__foot { border-top: 1px solid var(--line); }
.listing-card__label { font-size: 12px; line-height: 16px; color: rgba(0, 0, 0, .5); }
.listing-card__price { margin-top: 4px; font-weight: 600; font-size: 19px; line-height: 26px; letter-spacing: -0.38px; color: var(--navy); }
.listing-card__types { max-width: 50%; font-size: 13px; line-height: 18px; color: rgba(0, 0, 0, .56); text-align: end; }

/* Empty results */
.empty { margin-top: 30px; padding: 56px 32px; border: 1px dashed #c9d6e3; border-radius: 24px; background: var(--ice); text-align: center; }
.empty img { margin: 0 auto 18px; opacity: .8; }
.empty__title { font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -0.52px; color: var(--navy); }
.empty p { max-width: 540px; margin: 12px auto 0; }
.empty__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 26px; }

/* Pagination */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.pager__btn { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 8px; border: 1px solid var(--border); border-radius: 10px; font-weight: 600; color: var(--navy); transition: background-color .2s, color .2s; }
a.pager__btn:hover { background: var(--soft-blue); }
.pager__btn.is-current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager__btn.is-disabled { opacity: .35; }
[dir="rtl"] .pager__btn[rel], [dir="rtl"] .pager__btn.is-disabled { transform: scaleX(-1); }

/* Popular searches */
.popular { margin-top: 100px; }
.popular__title { font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -0.52px; color: var(--navy); }
.popular__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.chip { padding: 10px 16px; border: 1px solid var(--border); border-radius: 99px; font-size: 14px; line-height: 19px; color: #333; transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }

/* listing pages: the quick form sits below content, not over a banner */
.popular + .consult, .results + .consult, .devs + .consult, .area-guides + .consult, .dev-projects + .consult, .more-areas + .consult, .blog + .consult, .post + .consult, .post-more + .consult { margin-top: 100px; }
.consult + .contact { margin-top: 100px; }

/* Project page */
.project { padding-top: 80px; }
.project__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 60px; align-items: start; }
.project__price-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 30px; border-radius: 20px; background: var(--ice); }
.project__label { font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, .56); }
.project__price { margin-top: 4px; font-weight: 600; font-size: 34px; line-height: 42px; letter-spacing: -0.68px; color: var(--navy); }
.project__heading { margin-top: 56px; font-weight: 600; font-size: 28px; line-height: 36px; letter-spacing: -0.56px; color: var(--navy); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 24px 0 0; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.facts__item { padding: 20px 22px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
.facts__item:nth-child(3n) { border-inline-end: 0; }
.facts dt { font-size: 13px; line-height: 18px; color: rgba(0, 0, 0, .5); }
.facts dd { margin: 6px 0 0; font-weight: 600; font-size: 17px; line-height: 24px; color: #222; }
.facts dd a { color: var(--blue); }
.facts dd a:hover { text-decoration: underline; }
.project__text { margin-top: 18px; }
.project__text p { font-size: 17px; line-height: 28px; }
.project__text p + p { margin-top: 14px; }
.area-link { display: flex; align-items: center; gap: 18px; margin-top: 40px; padding: 14px; border: 1px solid var(--border); border-radius: 18px; transition: box-shadow .3s; }
.area-link:hover { box-shadow: 0 14px 34px rgba(4, 54, 99, .1); }
.area-link img { width: 96px; height: 72px; border-radius: 12px; object-fit: cover; }
.area-link > span:nth-child(2) { display: grid; flex: 1; }
.area-link__label { font-size: 13px; color: rgba(0, 0, 0, .5); }
.area-link__name { font-weight: 600; font-size: 19px; line-height: 26px; color: var(--navy); }
.area-link__arrow { padding-inline-end: 10px; font-size: 22px; color: var(--blue); }
[dir="rtl"] .area-link__arrow { transform: scaleX(-1); }
.project__side { position: sticky; top: 110px; }
.enquire { padding: 32px 30px 26px; border: 1px solid var(--border); border-radius: 24px; background: #fff; box-shadow: 0 24px 60px rgba(4, 54, 99, .1); scroll-margin-top: 110px; }
.enquire__title { font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -0.48px; color: var(--navy); }
.enquire__text { margin: 8px 0 30px; font-size: 15px; line-height: 22px; }
.enquire .form-alert { margin: 0 0 24px; }
.enquire .field { margin-bottom: 32px; }
.enquire .btn + .btn { margin-top: 12px; }
.enquire__note { margin-top: 18px; font-size: 12px; line-height: 18px; color: rgba(0, 0, 0, .5); }
.enquire__note a { color: var(--blue); }
.related { margin-top: 110px; }

/* Developers */
.devs { padding-top: 70px; }
.devs__bar { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.devs__stats { display: flex; gap: 50px; margin: 0; }
.devs__stats dt, .dev-profile__stats dt { font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, .56); }
.devs__stats dd, .dev-profile__stats dd { margin: 4px 0 0; font-weight: 600; font-size: 32px; line-height: 40px; letter-spacing: -0.64px; color: var(--navy); }
.devs__search { display: flex; align-items: center; gap: 10px; width: min(380px, 100%); height: 52px; padding: 0 16px; border-radius: 12px; background: #f4f6f9; color: rgba(0, 0, 0, .45); }
.devs__search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #222; }
.devs__search:focus-within { box-shadow: 0 0 0 2px var(--blue) inset; }
.devs__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.devs__none { margin-top: 30px; text-align: center; }
.dev-card { display: flex; flex-direction: column; padding: 16px; border: 1px solid var(--border); border-radius: 22px; background: #fff; transition: transform .3s, box-shadow .3s; }
.dev-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(4, 54, 99, .1); }
.dev-card[hidden] { display: none; }
.dev-card__logo { display: grid; place-items: center; height: 130px; padding: 24px; border-radius: 14px; background: #f5f8fb; }
.dev-card__logo img { max-width: 80%; max-height: 64px; object-fit: contain; }
.dev-card__initials { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--navy); font-weight: 600; font-size: 24px; color: #fff; letter-spacing: .02em; }
.dev-card__name { margin-top: 18px; padding-inline: 6px; font-weight: 600; font-size: 19px; line-height: 25px; color: #000; }
.dev-card__count { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 6px 4px; font-size: 14px; color: rgba(0, 0, 0, .56); }
.dev-card__arrow { color: var(--blue); transition: transform .3s; }
.dev-card:hover .dev-card__arrow { transform: translateX(4px); }
[dir="rtl"] .dev-card__arrow { transform: scaleX(-1); }
.dev-profile { padding-top: 70px; }
.dev-profile__grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 50px; align-items: center; padding: 30px; border: 1px solid var(--border); border-radius: 24px; }
.dev-profile__logo { display: grid; place-items: center; height: 170px; border-radius: 16px; background: #f5f8fb; }
.dev-profile__logo img { max-width: 70%; max-height: 90px; object-fit: contain; }
.dev-profile__stats { display: flex; flex-wrap: wrap; gap: 30px 60px; margin: 0; }
.dev-profile__stats dd p { margin: 0; }
.dev-profile__wide { flex-basis: 100%; }
.dev-profile__wide dd { font-size: 17px; line-height: 26px; letter-spacing: 0; font-weight: 500; color: #333; }
.dev-projects { margin-top: 90px; }

/* Areas */
.area-guides { padding-top: 100px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.guide-card { position: relative; display: block; min-height: 400px; border-radius: 24px; overflow: hidden; background: var(--navy); color: #fff; isolation: isolate; }

.guide-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s; }
.guide-card:hover > img { transform: scale(1.06); }
.guide-card__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(2, 22, 42, 0) 30%, rgba(2, 22, 42, .82) 100%); }
.guide-card__body { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: flex-start; padding: 28px; }
.guide-card__count { margin-bottom: 12px; padding: 6px 10px; border-radius: 6px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); font-size: 13px; line-height: 17px; }
.guide-card__name { font-weight: 600; font-size: 28px; line-height: 34px; letter-spacing: -0.56px; }
.guide-card__text { margin-top: 8px; font-size: 15px; line-height: 22px; color: rgba(255, 255, 255, .82); }
.guide-card__more { display: flex; align-items: center; justify-content: space-between; align-self: stretch; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .22); }
.guide-card__from { font-weight: 600; font-size: 16px; }
.guide-card__arrow { margin-inline-start: auto; font-size: 20px; transition: transform .3s; }
.guide-card:hover .guide-card__arrow { transform: translateX(5px); }
[dir="rtl"] .guide-card__arrow { transform: scaleX(-1); }
[dir="rtl"] .guide-card:hover .guide-card__arrow { transform: scaleX(-1) translateX(5px); }
.guide-grid--3 .guide-card { min-height: 340px; }

.guide { padding-top: 100px; }
.guide__grid { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 70px; align-items: start; }
.guide__main { display: flex; flex-direction: column; align-items: flex-start; }
.guide__title { margin-top: 24px; text-transform: none; }
.guide__intro { margin-top: 24px; font-size: 19px; line-height: 31px; color: #333; }
.guide__sub { margin-top: 44px; font-weight: 600; font-size: 22px; line-height: 28px; color: var(--navy); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; margin-top: 20px; }
.checks li { position: relative; padding-inline-start: 34px; font-size: 16px; line-height: 24px; color: #333; }
.checks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--soft-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23043663' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.glance { position: sticky; top: 110px; display: grid; gap: 22px; padding: 30px; border-radius: 24px; background: var(--ice); }
.glance__title { font-weight: 600; font-size: 22px; line-height: 28px; color: var(--navy); }
.glance__row { display: grid; gap: 8px; padding-top: 20px; border-top: 1px solid #d5e6f5; }
.glance__label { font-size: 13px; line-height: 18px; color: rgba(0, 0, 0, .5); }
.glance__value { font-weight: 600; font-size: 26px; line-height: 32px; color: var(--navy); }
.glance__list { display: flex; flex-wrap: wrap; gap: 8px; }
.glance__list li { padding: 6px 10px; border-radius: 6px; background: #fff; font-size: 14px; line-height: 19px; color: #333; }
.glance__travel { display: grid; gap: 8px; }
.glance__travel li { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; line-height: 22px; color: #333; }
.glance__travel strong { font-weight: 600; color: var(--navy); white-space: nowrap; }
.price-table { margin-top: 110px; }
.price-table__wrap { margin-top: 30px; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; }
.price-table table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { padding: 18px 26px; text-align: start; font-size: 16px; line-height: 24px; }
.price-table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; letter-spacing: .02em; }
.price-table tbody tr:nth-child(even) { background: #f7fafd; }
.price-table tbody th { font-weight: 500; color: #333; }
.price-table td { font-weight: 600; color: var(--navy); text-align: end; }
.price-table thead th:last-child { text-align: end; }
.price-table__note { margin-top: 14px; font-size: 13px; line-height: 19px; color: rgba(0, 0, 0, .5); }
.guide-projects, .more-areas { margin-top: 110px; }

@media (max-width: 1280px) {
  .results__grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 30px; }
  .devs__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .project__grid, .guide__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts__item:nth-child(3n) { border-inline-end: 1px solid var(--line); }
  .facts__item:nth-child(2n) { border-inline-end: 0; }
}
@media (max-width: 1023px) {
  .finder { margin-top: -70px; }
  .finder__field { flex: 1 1 calc(50% - 6px); }
  .finder__submit { flex: 1 1 100%; }
  .results__grid, .project__grid, .guide__grid { grid-template-columns: minmax(0, 1fr); } /* minmax: the scrolling tab bar must not widen the page */
  .results__side, .project__side, .glance { position: static; }
  .results__side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-cta { grid-column: 1 / -1; }
  .listing-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .devs__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-profile__grid { grid-template-columns: 1fr; gap: 28px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .popular, .related, .price-table, .guide-projects, .more-areas, .dev-projects { margin-top: 80px; }
  .area-guides, .guide { padding-top: 70px; }
}
@media (max-width: 767px) {
  .finder__card { padding: 14px; }
  .finder__field { flex-basis: 100%; }
  .results { margin-top: 40px; }
  .results__bar { flex-direction: column; align-items: flex-start; }
  .results__side, .listing-grid, .listing-grid--3, .devs__grid, .guide-grid, .checks { grid-template-columns: 1fr; }
  .listing-card__title { font-size: 20px; line-height: 26px; }
  .project { padding-top: 50px; }
  .project__price-row { flex-direction: column; align-items: flex-start; padding: 22px; }
  .project__price { font-size: 26px; line-height: 34px; }
  .facts { grid-template-columns: 1fr; }
  .facts__item { border-inline-end: 0 !important; }
  .enquire { padding: 26px 20px 22px; }
  .devs__stats { gap: 30px; }
  .guide-card { min-height: 340px; }
  .guide__intro { font-size: 17px; line-height: 28px; }
  .price-table th, .price-table td { padding: 14px 16px; font-size: 15px; }
  .empty { padding: 40px 20px; }
}

/* Trade licence badge under the market report (homepage) */
.licence { margin-top: 24px; }
.licence__card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 40px;
  padding: 26px 32px; border-radius: 24px; background: #f7f7f7;
}
.licence__logo { width: 140px; height: auto; padding-inline-end: 40px; border-inline-end: 1px solid var(--line); box-sizing: content-box; mix-blend-mode: multiply; }
.licence__main { display: flex; flex-direction: column; align-items: flex-start; }
.licence__badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; background: #e3f4ea; font-weight: 600; font-size: 12px; line-height: 16px; color: #1c7a43; }
.licence__title { margin-top: 10px; font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -0.44px; color: var(--navy); }
.licence__text { margin-top: 6px; font-size: 14px; line-height: 21px; color: rgba(0, 0, 0, .6); }
.licence__facts { display: flex; gap: 32px; margin: 0; }
.licence__facts dt { font-size: 12px; line-height: 16px; color: rgba(0, 0, 0, .5); white-space: nowrap; }
.licence__facts dd { margin: 4px 0 0; font-weight: 600; font-size: 16px; line-height: 22px; color: #111; white-space: nowrap; }
.licence__qr { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 10px 8px; border-radius: 14px; background: #fff; border: 1px solid var(--border); transition: box-shadow .3s, transform .3s; }
.licence__qr:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(4, 54, 99, .12); }
.licence__qr img { width: 96px; height: 96px; }
.licence__qr > span { font-weight: 600; font-size: 12px; line-height: 16px; color: var(--blue); white-space: nowrap; }
@media (max-width: 1280px) {
  .licence__card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px 32px; }
  .licence__facts { grid-column: 1 / 3; }
  .licence__qr { grid-row: 1 / 3; grid-column: 3; }
}
@media (max-width: 767px) {
  /* minmax(0, ...) + wrapping: the long legal type and QR caption used to push the card past the screen edge */
  .licence__card { grid-template-columns: minmax(0, 1fr) auto; padding: 22px 20px; gap: 20px 16px; }
  .licence__logo { grid-column: 1 / -1; width: 120px; padding: 0; border: 0; }
  .licence__main { grid-column: 1 / -1; min-width: 0; }
  .licence__facts { grid-column: 1; flex-direction: column; gap: 12px; min-width: 0; }
  .licence__facts dt, .licence__facts dd { white-space: normal; }
  .licence__qr > span { white-space: normal; text-align: center; max-width: 96px; }
  .licence__qr { grid-row: auto; grid-column: 2; align-self: end; }
  .licence__title { font-size: 19px; line-height: 25px; }
}

/* Areas: explorer (list of names + preview that follows the hovered area) */
.explorer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 70px; align-items: start; margin-top: 50px; }
.explorer__list { border-top: 1px solid var(--line); }
.explorer__row {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 46px; align-items: center; gap: 28px;
  padding: 24px 4px; border-bottom: 1px solid var(--line); color: rgba(0, 0, 0, .32);
  transition: color .35s, padding .45s cubic-bezier(.16, 1, .3, 1);
}
.explorer__row::before { /* thin blue rule that grows under the active row */
  content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; width: 0; height: 2px; background: var(--blue);
  transition: width .6s cubic-bezier(.16, 1, .3, 1);
}
.explorer__row.is-active { color: var(--navy); padding-inline-start: 18px; }
.explorer__row.is-active::before { width: 100%; }
.explorer__thumb { display: none; }
.explorer__main { display: grid; min-width: 0; }
.explorer__name { font-weight: 600; font-size: 34px; line-height: 42px; letter-spacing: -0.8px; }
.explorer__summary {
  max-height: 0; overflow: hidden; opacity: 0; font-size: 15px; line-height: 22px; color: rgba(0, 0, 0, .6);
  transition: max-height .5s cubic-bezier(.16, 1, .3, 1), opacity .4s, margin .5s;
}
.explorer__row.is-active .explorer__summary { max-height: 66px; opacity: 1; margin-top: 6px; }
.explorer__meta { display: grid; justify-items: end; gap: 2px; text-align: end; white-space: nowrap; }
.explorer__price { font-weight: 600; font-size: 16px; line-height: 22px; }
.explorer__count { font-size: 13px; line-height: 18px; color: rgba(0, 0, 0, .45); }
.explorer__go {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--border); color: var(--navy); transition: background-color .35s, border-color .35s, color .35s, transform .45s cubic-bezier(.16, 1, .3, 1);
}
.explorer__row.is-active .explorer__go { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(45deg); }
[dir="rtl"] .explorer__go svg { transform: scaleX(-1); }
[dir="rtl"] .explorer__row.is-active .explorer__go { transform: rotate(-45deg); }
.explorer__row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.explorer__stage { position: sticky; top: 110px; height: 660px; border-radius: 28px; overflow: hidden; background: var(--navy); cursor: pointer; }
.explorer__panel { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility 0s .7s; }
.explorer__panel.is-active { opacity: 1; visibility: visible; transition: opacity .7s ease; }
.explorer__panel > img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s cubic-bezier(.16, 1, .3, 1); }
.explorer__panel.is-active > img { transform: scale(1); }
.explorer__panel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2, 22, 42, 0) 45%, rgba(2, 22, 42, .55) 100%); }
.explorer__card {
  position: absolute; z-index: 1; inset: auto 20px 20px; padding: 24px 26px; border-radius: 20px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .22);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff;
  transform: translateY(16px); opacity: 0; transition: transform .7s cubic-bezier(.16, 1, .3, 1) .1s, opacity .5s .1s;
}
.explorer__panel.is-active .explorer__card { transform: none; opacity: 1; }
.explorer__card-name { font-weight: 600; font-size: 26px; line-height: 32px; letter-spacing: -0.5px; }
.explorer__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.explorer__tags li { padding: 5px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); font-size: 12px; line-height: 16px; }
.explorer__card-text { margin-top: 14px; font-size: 14px; line-height: 21px; color: rgba(255, 255, 255, .88); }
.explorer__cta { display: inline-flex; gap: 8px; margin-top: 16px; font-weight: 600; font-size: 14px; }
[dir="rtl"] .explorer__cta span { transform: scaleX(-1); }

@media (max-width: 1280px) {
  .explorer { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 44px; }
  .explorer__name { font-size: 28px; line-height: 36px; }
}
/* Smaller screens: no preview panel; each row carries its own photo and summary */
@media (max-width: 1023px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__stage { display: none; }
  .explorer__row, .explorer__row.is-active { grid-template-columns: 96px minmax(0, 1fr) 40px; gap: 18px; padding: 18px 0; color: var(--navy); }
  .explorer__row::before { display: none; }
  .explorer__thumb { display: block; width: 96px; height: 76px; border-radius: 12px; object-fit: cover; }
  .explorer__summary { max-height: none; opacity: 1; margin-top: 4px; }
  .explorer__meta { grid-column: 2; grid-row: 2; justify-items: start; text-align: start; }
  .explorer__go { grid-column: 3; grid-row: 1 / 3; width: 40px; height: 40px; }
  .explorer__name { font-size: 22px; line-height: 28px; }
}
/* Area guide article (full content from the live pages) */
.article { margin-top: 26px; }
.article > :first-child { margin-top: 0; }
.article__eyebrow { margin-top: 64px; font-weight: 600; font-size: 13px; line-height: 18px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.article__eyebrow + .article__h { margin-top: 10px; }
.article__h { margin-top: 56px; font-weight: 600; font-size: 30px; line-height: 38px; letter-spacing: -0.6px; color: var(--navy); scroll-margin-top: 110px; }
.article > .article__h:first-child { font-size: 40px; line-height: 50px; letter-spacing: -0.8px; }
.article__p { margin-top: 16px; font-size: 17px; line-height: 29px; color: #3d3d3d; }
.article__h + .article__p:first-of-type { font-size: 18px; }
.article__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.article__chips li { padding: 9px 16px; border-radius: 99px; background: var(--ice); border: 1px solid #d6e9f8; font-size: 15px; line-height: 20px; color: var(--navy); }
.article__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 30px; margin-top: 20px; }
.article__checks li { position: relative; padding-inline-start: 34px; font-size: 16px; line-height: 24px; color: #333; }
.article__checks li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: 0; width: 24px; height: 24px; border-radius: 50%;
  background: var(--soft-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23043663' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}
.article__table { margin-top: 24px; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.article__table table { width: 100%; border-collapse: collapse; }
.article__table th, .article__table td { padding: 16px 22px; text-align: start; font-size: 16px; line-height: 24px; }
.article__table thead th { background: var(--navy); color: #fff; font-weight: 600; font-size: 14px; }
.article__table thead th:last-child, .article__table td { text-align: end; }
.article__table tbody tr:nth-child(even) { background: #f7fafd; }
.article__table tbody th { font-weight: 500; color: #333; }
.article__table td { font-weight: 600; color: var(--navy); }
.article__faq { display: grid; gap: 12px; margin-top: 24px; }
.article__faq details { border: 1px solid var(--border); border-radius: 16px; padding: 0 24px; background: #fff; transition: box-shadow .3s; }
.article__faq details[open] { box-shadow: 0 14px 34px rgba(4, 54, 99, .08); }
.article__faq summary {
  position: relative; list-style: none; cursor: pointer; padding: 20px 36px 20px 0;
  font-weight: 600; font-size: 17px; line-height: 25px; color: var(--navy);
}
[dir="rtl"] .article__faq summary { padding: 20px 0 20px 36px; }
.article__faq summary::-webkit-details-marker { display: none; }
.article__faq summary::after {
  content: '+'; position: absolute; inset-inline-end: 0; top: 50%; translate: 0 -50%;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--soft-blue); color: var(--navy); font-size: 18px; line-height: 1; transition: rotate .3s;
}
.article__faq details[open] summary::after { rotate: 45deg; }
.article__faq details p { padding-bottom: 20px; font-size: 16px; line-height: 26px; color: #444; }
.article__faq details p + p { margin-top: -8px; }
@media (max-width: 767px) {
  .article__h { font-size: 24px; line-height: 31px; }
  .article > .article__h:first-child { font-size: 30px; line-height: 38px; }
  .article__checks { grid-template-columns: 1fr; }
  .article__table th, .article__table td { padding: 12px 14px; font-size: 15px; }
}.article__h3 { margin-top: 30px; font-weight: 600; font-size: 20px; line-height: 27px; letter-spacing: -0.3px; color: #111; }
.article__h3 + .article__p { margin-top: 8px; }
.article__eyebrow + .article__h3 { margin-top: 10px; }
/* Blog */
.page-hero--long .page-hero__title { max-width: 980px; font-size: 54px; line-height: 62px; letter-spacing: -1.2px; }
.blog { padding-top: 90px; }
.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; line-height: 19px; color: rgba(0, 0, 0, .5); }
.blog-feature { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 18px; border: 1px solid var(--border); border-radius: 28px; transition: box-shadow .4s; }
.blog-feature:hover { box-shadow: 0 24px 60px rgba(4, 54, 99, .1); }
.blog-feature__img { display: block; height: 460px; border-radius: 18px; overflow: hidden; }
.blog-feature__img img, .blog-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.16, 1, .3, 1); }
.blog-feature:hover .blog-feature__img img, .blog-card:hover .blog-card__img img { transform: scale(1.05); }
.blog-feature__body { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; padding-inline-end: 30px; }
.blog-feature__title { font-weight: 600; font-size: 36px; line-height: 44px; letter-spacing: -0.8px; color: var(--navy); }
.blog-feature__text { font-size: 17px; line-height: 27px; color: #444; }
.blog__head { margin-top: 90px; }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; margin-top: 36px; }
.blog-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.blog-card__img { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 18px; overflow: hidden; margin-bottom: 6px; }
.blog-card__title { font-weight: 600; font-size: 22px; line-height: 29px; letter-spacing: -0.44px; color: var(--navy); }
.blog-card:hover .blog-card__title { text-decoration: underline; text-underline-offset: 4px; }
.blog-card__text { font-size: 15px; line-height: 23px; color: #555; }
.post { padding-top: 80px; }
.post__grid { display: grid; grid-template-columns: minmax(0, 780px) 340px; gap: 80px; justify-content: space-between; align-items: start; }
.post__lead { font-size: 21px; line-height: 33px; color: #222; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.post__body .article { margin-top: 10px; }
.post__back { margin-top: 50px; }
[dir="rtl"] .post__back-arrow { transform: scaleX(-1); }
.post__side { position: sticky; top: 110px; }
.post-more { margin-top: 110px; }
@media (max-width: 1023px) {
  .page-hero--long .page-hero__title { font-size: 40px; line-height: 48px; }
  .blog-feature { grid-template-columns: 1fr; gap: 26px; }
  .blog-feature__img { height: 340px; }
  .blog-feature__body { padding: 0 8px 10px; }
  .blog-grid { grid-template-columns: 1fr 1fr; }
  .post__grid { grid-template-columns: 1fr; gap: 50px; }
  .post__side { position: static; }
}
@media (max-width: 767px) {
  .page-hero--long .page-hero__title { font-size: 30px; line-height: 37px; letter-spacing: -0.6px; }
  .blog { padding-top: 60px; }
  .blog-feature__title { font-size: 26px; line-height: 33px; }
  .blog-grid { grid-template-columns: 1fr; }
  .post__lead { font-size: 18px; line-height: 29px; }
}
/* IRTH and Vision only publish white logos (for dark headers): show them black on the light tiles */
img[src*="/developers/irth-development."], img[src*="/developers/vision."] { filter: brightness(0); }/* Area guide tabs */
.guide-tabs { margin-top: 22px; max-width: 100%; min-width: 0; } /* never wider than the column; the tab bar scrolls inside it on phones */
.guide-tabs__bar {
  position: sticky; top: 86px; z-index: 5;
  display: flex; gap: 6px; padding: 6px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 8px 24px rgba(4, 54, 99, .06);
}
.guide-tabs__bar::-webkit-scrollbar { display: none; }
.guide-tabs__tab {
  flex: none; padding: 10px 18px; border: 0; border-radius: 999px; background: transparent; cursor: pointer;
  font: 600 14px/20px var(--font); color: var(--navy); white-space: nowrap; transition: background-color .2s, color .2s;
}
.guide-tabs__tab:hover { background: var(--ice); }
.guide-tabs__tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.guide-tabs__tab:focus-visible, .guide-tabs__panel:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.guide-tabs__panel { margin-top: 34px; }
.guide-tabs.is-ready .guide-tabs__panel[hidden] { display: none; }
.guide-tabs__next {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 48px; padding: 14px 22px;
  border: 1px solid var(--navy); border-radius: 999px; background: #fff; cursor: pointer;
  font: 600 15px/20px var(--font); color: var(--navy); transition: background-color .2s, color .2s;
}
.guide-tabs__next:hover { background: var(--navy); color: #fff; }
[dir="rtl"] .guide-tabs__next span { transform: scaleX(-1); }
/* Buy page: mortgage assistance + calculator */
.mortgage { margin-top: 110px; padding: 90px 0; background: var(--ice); }
.mortgage__head { max-width: 760px; }
.mortgage__title { margin-top: 16px; }
.mortgage__title span { color: var(--blue); }
.mortgage__lead { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--text); }
.mortgage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 440px; gap: 60px; align-items: start; margin-top: 50px; }
.mortgage__benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.mortgage__benefit { display: flex; gap: 18px; padding: 26px 0; border-bottom: 1px solid #d6e6f3; }
.mortgage__benefit:nth-last-child(-n+2) { border-bottom: 0; }
.mortgage__icon { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(4, 54, 99, .06); }
.mortgage__benefit-title { display: block; font-weight: 600; font-size: 19px; line-height: 26px; color: var(--navy); }
.mortgage__benefit-text { display: block; margin-top: 6px; font-size: 15px; line-height: 23px; color: var(--text); }
.calc { padding: 32px; background: #fff; border-radius: 22px; box-shadow: 0 20px 50px rgba(4, 54, 99, .08); }
.calc__title { font-weight: 600; font-size: 24px; line-height: 30px; color: var(--navy); }
.calc__field { display: block; margin-top: 22px; }
.calc__label { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 20px; color: var(--text); }
.calc__label output { font-weight: 600; color: var(--navy); }
.calc input[type="range"] {
  --fill: 0%;
  width: 100%; height: 6px; margin-top: 12px; border-radius: 6px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: linear-gradient(to right, var(--blue) var(--fill), #e3edf6 var(--fill));
}
[dir="rtl"] .calc input[type="range"] { background: linear-gradient(to left, var(--blue) var(--fill), #e3edf6 var(--fill)); }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); box-shadow: 0 2px 6px rgba(0, 0, 0, .15); }
.calc input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 5px solid var(--blue); }
.calc input[type="number"] { width: 100%; margin-top: 8px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; font: 500 16px/22px var(--font); color: var(--navy); }
.calc input:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.calc__result { margin-top: 26px; padding: 22px; border-radius: 16px; background: var(--navy); color: #fff; }
.calc__result-label { font-size: 14px; line-height: 20px; opacity: .8; }
.calc__monthly { display: block; margin-top: 4px; font-weight: 700; font-size: 34px; line-height: 42px; }
.calc__rows { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); }
.calc__rows div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; line-height: 28px; }
.calc__rows dt { opacity: .8; }
.calc__rows dd { font-weight: 600; }
.calc__note { margin: 14px 0 18px; font-size: 12px; line-height: 18px; color: #777; }
.mortgage + .popular { margin-top: 90px; }
@media (max-width: 1100px) {
  .mortgage__grid { grid-template-columns: 1fr; }
  .calc { max-width: 560px; }
}
@media (max-width: 640px) {
  .mortgage { padding: 60px 0; margin-top: 70px; }
  .mortgage__benefits { grid-template-columns: 1fr; }
  .mortgage__benefit:nth-last-child(2) { border-bottom: 1px solid #d6e6f3; }
  .calc { padding: 22px; }
}
/* Sell your property page */
.sell-intro { padding: 100px 0 0; }
.sell-intro__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.sell-intro__title { margin-top: 16px; }
.sell-intro__text { font-size: 18px; line-height: 30px; color: var(--text); }
.sell-intro__btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.sell-why { margin-top: 100px; }
.sell-why__title span { color: var(--blue); }
.sell-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sell-stats li { display: grid; gap: 6px; padding: 36px 30px; }
.sell-stats li + li { border-inline-start: 1px solid var(--line); }
.sell-stats strong { font-weight: 600; font-size: 52px; line-height: 60px; letter-spacing: -1px; color: var(--navy); }
.sell-stats span { font-size: 16px; line-height: 22px; color: var(--text); }
.sell-steps { margin-top: 110px; }
.sell-steps .h2 { margin-top: 16px; }
.sell-steps__list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 44px; list-style: none; padding: 0; }
.sell-step { position: relative; padding: 28px 24px 30px; border-radius: 20px; background: var(--ice); }
.sell-step__num { display: block; font-weight: 600; font-size: 15px; line-height: 20px; color: var(--blue); }
.sell-step__title { margin-top: 40px; font-weight: 600; font-size: 20px; line-height: 26px; color: var(--navy); }
.sell-step__text { margin-top: 10px; font-size: 15px; line-height: 23px; color: var(--text); }
.sell-marketing { margin-top: 110px; }
.sell-marketing__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.sell-marketing__media { border-radius: 24px; overflow: hidden; aspect-ratio: 5 / 4; }
.sell-marketing__media img { width: 100%; height: 100%; object-fit: cover; }
.sell-marketing__title { margin-top: 16px; }
.sell-marketing__list { display: grid; gap: 4px; margin-top: 26px; }
.sell-marketing__list li { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sell-marketing__list li:last-child { border-bottom: 0; }
.sell-marketing__list .mortgage__icon { background: var(--ice); box-shadow: none; }
.sell-guide { margin-top: 110px; }
.sell-guide__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.sell-card { display: flex; flex-direction: column; align-items: flex-start; padding: 44px; border-radius: 24px; background: var(--ice); }
.sell-card__title { margin-top: 18px; font-weight: 600; font-size: 32px; line-height: 40px; letter-spacing: -0.6px; color: var(--navy); }
.sell-card__text { margin-top: 12px; font-size: 16px; line-height: 26px; color: var(--text); }
.sell-card .checks { margin-bottom: 28px; }
.sell-card__note { margin-top: auto; font-size: 14px; line-height: 20px; color: #777; }
.sell-card--navy { background: var(--navy); }
.sell-card--navy .sell-card__title { color: #fff; }
.sell-card--navy .sell-card__text, .sell-card--navy .checks li { color: rgba(255, 255, 255, .82); }
.sell-card--navy .btn { margin-top: auto; }
.checks--single { grid-template-columns: 1fr; gap: 14px; }
.checks--light li::before { background-color: rgba(255, 255, 255, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.5l4.5-5' fill='none' stroke='%23ffffff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.valuation { margin-top: 110px; padding: 100px 0; background: var(--ice); }
.valuation__grid { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 70px; align-items: start; }
.valuation__intro .h2 { margin-top: 16px; }
.valuation__intro p { margin-top: 16px; font-size: 17px; line-height: 28px; color: var(--text); }
.valuation__contact { display: grid; gap: 8px; margin-top: 26px; font-weight: 600; font-size: 18px; color: var(--navy); }
.valuation__contact a:hover { color: var(--blue); }
.valuation__form { padding: 40px; border-radius: 24px; background: #fff; box-shadow: 0 20px 50px rgba(4, 54, 99, .08); }
.valuation__form .form-alert { margin: 0 0 24px; }
.valuation__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin-bottom: 28px; }
.vfield { position: relative; display: grid; gap: 8px; }
.vfield--wide { grid-column: 1 / -1; }
.vfield > span { font-size: 14px; line-height: 20px; color: var(--text); }
.vfield em { font-style: normal; color: var(--blue); }
.vfield input, .vfield select, .vfield textarea { width: 100%; padding: 13px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font: 500 15px/22px var(--font); color: var(--navy); }
.vfield textarea { resize: vertical; }
.vfield input:focus, .vfield select:focus, .vfield textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(49, 146, 234, .15); }
.vfield.is-invalid input { border-color: #d93025; }
.vfield .field__error { position: static; }
.valuation__note { margin-top: 14px; font-size: 13px; line-height: 19px; color: #777; }
.valuation__note a { color: var(--blue); text-decoration: underline; }
@media (max-width: 1100px) {
  .sell-steps__list { grid-template-columns: repeat(3, 1fr); }
  .valuation__grid, .sell-marketing__grid, .sell-intro__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 760px) {
  .sell-stats { grid-template-columns: 1fr 1fr; }
  .sell-stats li:nth-child(3) { border-inline-start: 0; }
  .sell-stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sell-stats strong { font-size: 38px; line-height: 46px; }
  .sell-steps__list, .sell-guide__grid, .valuation__fields { grid-template-columns: 1fr; }
  .sell-card, .valuation__form { padding: 26px; }
}
/* Megamenu (desktop): white panel under the header, opened by main.js */
.mega-wrap { position: absolute; top: 100%; left: 0; right: 0; }
.mega {
  background: #fff; border-top: 1px solid rgba(4, 54, 99, .08);
  box-shadow: 0 24px 40px rgba(4, 54, 99, .12);
  animation: mega-in .22s ease-out;
}
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega[hidden] { display: none; }
.mega__inner { display: flex; gap: 56px; max-width: var(--container); margin: 0 auto; padding: 36px 0 40px; }
.mega__intro { flex: 0 0 280px; }
.mega__title { font-weight: 600; font-size: 24px; line-height: 30px; letter-spacing: -0.4px; color: var(--navy); }
.mega__text { margin-top: 10px; font-size: 15px; line-height: 23px; color: var(--text); }
.mega__all { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 600; font-size: 15px; color: var(--blue); }
.mega__all:hover .mega__arrow { transform: translateX(3px); }
.mega__arrow { transition: transform .2s; }
[dir="rtl"] .mega__arrow { display: inline-block; transform: scaleX(-1); }
.mega__col { flex: 0 0 180px; }
.mega__col--wide { flex-basis: 380px; }
.mega__label { font-weight: 600; font-size: 12px; line-height: 16px; letter-spacing: .12em; text-transform: uppercase; color: #8a97a5; }
.mega__links { display: grid; gap: 4px; margin-top: 12px; }
.mega__links--2 { grid-template-columns: 1fr 1fr; column-gap: 30px; }
.mega__links a { display: block; padding: 6px 0; font-weight: 500; font-size: 16px; line-height: 22px; color: var(--navy); transition: color .2s; }
.mega__links a:hover { color: var(--blue); }
.mega__card { position: relative; flex: 0 0 300px; margin-inline-start: auto; height: 190px; border-radius: 18px; overflow: hidden; }
.mega__card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.mega__card:hover img { transform: scale(1.05); }
.mega__card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4, 54, 99, .85), rgba(4, 54, 99, 0) 65%); }
.mega__card-body { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: grid; gap: 2px; color: #fff; }
.mega__card-title { font-weight: 600; font-size: 19px; line-height: 25px; }
.mega__card-text { font-size: 14px; line-height: 20px; opacity: .85; }
.mega__logos { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-content: start; }
.mega__logos a { display: grid; place-items: center; height: 76px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s; }
.mega__logos a:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(4, 54, 99, .08); }
.mega__logos img { max-width: 100%; max-height: 30px; object-fit: contain; }
.main-nav a[aria-expanded="true"] { opacity: 1; box-shadow: inset 0 -2px 0 var(--blue); padding-bottom: 4px; }
.site-header.is-mega-open { background: rgba(4, 54, 99, 0.98); }
/* Desktop: every menu item gets the same blue underline on hover/focus (not only the ones with a megamenu) */
@media (min-width: 1024px) {
  .main-nav a { padding-bottom: 4px; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .2s; }
  .main-nav a:hover, .main-nav a:focus-visible { opacity: 1; box-shadow: inset 0 -2px 0 var(--blue); }
}
@media (max-width: 1500px) { .mega__inner { padding-inline: 24px; } }
@media (max-width: 1280px) { .mega__card { display: none; } }
@media (max-width: 1023px) { .mega-wrap { display: none; } }
/* RERA certificate viewer (footer "RERA Compliance") */
.footer-licence a { color: inherit; }
.footer-licence a:hover { text-decoration: underline; }
.cert-modal {
  width: min(1240px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px);
  padding: 0; border: 0; border-radius: 20px; background: #fff; color: var(--navy); overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.cert-modal[open] { display: flex; flex-direction: column; animation: cert-in .25s ease-out; }
@keyframes cert-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.cert-modal::backdrop { background: rgba(2, 20, 38, .8); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.cert-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px 16px 26px; border-bottom: 1px solid var(--line); }
.cert-modal__title { font-weight: 600; font-size: 18px; line-height: 24px; }
.cert-modal__close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--ice); color: var(--navy); cursor: pointer; transition: background-color .2s; }
.cert-modal__close:hover { background: var(--soft-blue); }
.cert-modal__body { flex: 1; min-height: 0; overflow: auto; background: #f4f6f8; }
.cert-modal__body img { display: block; width: 100%; height: auto; max-height: calc(100vh - 200px); object-fit: contain; image-rendering: auto; }
.cert-modal__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 20px 14px 26px; border-top: 1px solid var(--line); }
.cert-modal__foot p { font-size: 14px; line-height: 20px; color: var(--text); }
.cert-modal__foot .btn { flex: none; }
body.cert-open { overflow: hidden; }
@media (max-width: 640px) {
  .cert-modal { width: calc(100vw - 24px); border-radius: 14px; }
  .cert-modal__foot { flex-direction: column; align-items: stretch; }
}

/* Project photo gallery (listings/partials/gallery) */
.pgallery { margin-bottom: 40px; }
.pgallery__stage { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--ice); }
.pgallery__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s; }
.pgallery__img.is-active { opacity: 1; visibility: visible; }
.pgallery__nav {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px;
  border: 0; border-radius: 12px; background: rgba(255, 255, 255, .92); color: var(--navy); cursor: pointer;
  box-shadow: 0 6px 18px rgba(4, 54, 99, .15); transition: background-color .2s, transform .2s;
}
.pgallery__nav:hover { background: #fff; transform: scale(1.05); }
.pgallery__nav:focus-visible, .pgallery__count:focus-visible, .pgallery__thumb:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.pgallery__nav--prev { left: 16px; }
.pgallery__nav--next { right: 16px; }
[dir="rtl"] .pgallery__nav--prev { left: auto; right: 16px; }
[dir="rtl"] .pgallery__nav--next { right: auto; left: 16px; }
[dir="rtl"] .pgallery__nav svg { transform: scaleX(-1); }
.pgallery__count {
  position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border: 0; border-radius: 12px; background: rgba(4, 20, 38, .6); color: #fff;
  font: inherit; font-weight: 500; font-size: 14px; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background-color .2s;
}
.pgallery__count:hover { background: rgba(4, 20, 38, .8); }
[dir="rtl"] .pgallery__count { left: auto; right: 16px; }
.pgallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.pgallery__thumb { flex: none; width: 110px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--ice); opacity: .65; transition: opacity .2s, border-color .2s; }
.pgallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pgallery__thumb:hover { opacity: 1; }
.pgallery__thumb.is-active { opacity: 1; border-color: var(--blue); }

.pgallery-modal { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(2, 14, 28, .96); color: #fff; }
.pgallery-modal[open] { display: grid; place-items: center; animation: cert-in .25s ease-out; }
.pgallery-modal::backdrop { background: rgba(2, 14, 28, .96); }
.pgallery-modal__img { max-width: calc(100vw - 160px); max-height: calc(100vh - 120px); object-fit: contain; border-radius: 12px; }
.pgallery-modal__counter { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); font-size: 14px; opacity: .85; }
.pgallery-modal__close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.pgallery-modal__close:hover { background: rgba(255, 255, 255, .22); }
[dir="rtl"] .pgallery-modal__close { right: auto; left: 20px; }
.pgallery-modal .pgallery__nav { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: none; }
.pgallery-modal .pgallery__nav:hover { background: rgba(255, 255, 255, .26); }
.pgallery-modal .pgallery__nav--prev { left: 24px; }
.pgallery-modal .pgallery__nav--next { right: 24px; }
body.gallery-open { overflow: hidden; }
@media (max-width: 767px) {
  .pgallery__stage { border-radius: 16px; }
  .pgallery__nav { width: 40px; height: 40px; margin-top: -20px; }
  .pgallery__thumb { width: 84px; height: 56px; }
  .pgallery-modal__img { max-width: 100vw; max-height: calc(100vh - 140px); border-radius: 0; }
  .pgallery-modal .pgallery__nav { top: auto; bottom: 16px; margin-top: 0; }
}
/* Inner-page banners on desktop: short, with a dark designed background (photo only faintly behind) */
@media (min-width: 1024px) {
  .page-hero, .page-hero--plain { min-height: 0; padding: 128px 0 52px; }
  .page-hero--overlap { padding-bottom: 130px; }
  .page-hero { background: radial-gradient(110% 160% at 100% 0%, #1b4f80 0%, var(--navy) 45%, #021a31 100%); }
  .page-hero__bg img { filter: saturate(.85); }
  .page-hero__bg::after,
  .page-hero--soft .page-hero__bg::after,
  [dir="rtl"] .page-hero--soft .page-hero__bg::after {
    background:
      linear-gradient(90deg, rgba(2, 18, 36, .94) 0%, rgba(3, 30, 58, .86) 45%, rgba(4, 40, 74, .72) 100%),
      linear-gradient(180deg, rgba(2, 18, 36, .5) 0%, transparent 60%);
  }
  [dir="rtl"] .page-hero__bg::after,
  [dir="rtl"] .page-hero--soft .page-hero__bg::after {
    background:
      linear-gradient(270deg, rgba(2, 18, 36, .94) 0%, rgba(3, 30, 58, .86) 45%, rgba(4, 40, 74, .72) 100%),
      linear-gradient(180deg, rgba(2, 18, 36, .5) 0%, transparent 60%);
  }
  /* the faint grid of the plain banner, now on every banner, plus a thin light line along the bottom */
  .page-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 0; opacity: .07; pointer-events: none;
    background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 55%, transparent 100%);
  }
  .page-hero::before {
    content: ''; position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; height: 1px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(49, 146, 234, .7) 30%, rgba(49, 146, 234, .7) 70%, transparent);
  }
  .page-hero__title, .page-hero--long .page-hero__title { margin-top: 12px; font-size: 46px; line-height: 54px; letter-spacing: -1px; }
  .page-hero__text { margin-top: 12px; font-size: 16px; line-height: 25px; }
  .page-hero__meta { margin-top: 16px; }
}
/* Project page: in-page menu, amenities, travel times, mortgage calculator */
.pnav {
  position: sticky; top: 86px; z-index: 5; display: flex; gap: 6px; margin: 0 0 8px; padding: 6px; overflow-x: auto; scrollbar-width: none;
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 999px; box-shadow: 0 8px 24px rgba(4, 54, 99, .06);
}
.pnav::-webkit-scrollbar { display: none; }
.pnav a { flex: none; padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 20px; color: var(--navy); transition: background-color .2s, color .2s; }
.pnav a:hover, .pnav a:focus-visible { background: var(--ice); color: var(--blue); }
#details, #overview, #amenities, #location, #mortgage { scroll-margin-top: 160px; }
.amenities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.amenities__item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; font-size: 15px; line-height: 21px; color: #222; }
.amenities__item svg { flex: none; color: var(--blue); }
.nearby { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.nearby__item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ice); }
.nearby__time { flex: none; min-width: 68px; padding: 6px 10px; border-radius: 10px; background: #fff; font-weight: 600; font-size: 14px; line-height: 18px; text-align: center; color: var(--blue); }
.nearby__place { font-size: 15px; line-height: 21px; color: #222; }
p.project__text { font-size: 17px; line-height: 28px; }
.pmortgage { margin-top: 100px; padding: 90px 0; background: var(--ice); }
.pmortgage__grid { display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 60px; align-items: center; }
.pmortgage__title { margin-top: 16px; }
.pmortgage__lead { margin-top: 16px; max-width: 560px; font-size: 17px; line-height: 28px; color: #444; }
.pmortgage .checks { margin-top: 26px; }
@media (max-width: 1100px) {
  .amenities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pmortgage__grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 640px) {
  .amenities, .nearby { grid-template-columns: minmax(0, 1fr); }
  .pmortgage { margin-top: 70px; padding: 60px 0; }
  .pnav { top: 76px; }
}