/* =========================================================
   رسان العقارية — Home page styles
   Mobile-first · RTL · Design tokens from brand logo
   ========================================================= */

:root {
  color-scheme: light;
  /* Brand */
  --primary: #8B6D47;
  --primary-hover: #735A39;
  --primary-soft: #F4EFE8;
  --primary-tint: #B08D5E;
  --ink: #2F3A45;
  --ink-muted: #4F5862;
  --ink-subtle: #6C737D;
  /* Surfaces */
  --bg: #F7F6F3;
  --bg-cream: #FBF0E7;
  --bg-footer: #F5F3F0;
  --price: #7A6245;
  --badge-sale: rgb(128 104 74 / .92);
  --badge-rent: rgb(58 66 75 / .9);
  --surface: #FFFFFF;
  --border: #ECE7E0;
  --border-strong: #DDD5CA;
  --dark: #1F2428;
  /* Shape */
  --radius-xs: 3px;
  --radius-sm: 5px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 2px rgb(47 58 69 / .04), 0 6px 20px rgb(47 58 69 / .06);
  --shadow-hover: 0 2px 4px rgb(47 58 69 / .05), 0 18px 40px rgb(47 58 69 / .12);
  --shadow-float: 0 14px 44px rgb(47 58 69 / .12);
  /* Type */
  --font: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Almarai", "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-latin: "Kanit", "Cairo", system-ui, sans-serif;
  /* Layout */
  --container: 1200px;
  --gutter: 16px;
  --header-h: 64px;
  --tabbar-h: 66px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
}
@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --header-h: 76px; --tabbar-h: 0px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
  overflow-x: clip;
}
main, .footer { overflow-x: clip; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
h1, h2, h3, .sec-title, .hero__title, .cta__title, .search-card__title, .stat__num, .prop__title, .prop__price, .footer__title, .preloader__word, .logo-compact span, .service-card h3 { font-family: var(--font-display); }
.btn, .link-arrow, .nav__link, .search-tab, .chip, .tabbar__item { font-family: var(--font); }
bdi { unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-lg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .ic-arrow, [dir="ltr"] .link-arrow .ic { transform: scaleX(-1); }

.skip-link { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 300; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ---------------- Buttons ---------------- */
.btn {
  --h: 46px;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding-inline: 26px;
  border-radius: var(--radius-xs);
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  transition: background-color .3s var(--ease-out), color .3s, border-color .3s, box-shadow .3s;
}
.btn--sm { --h: 40px; padding-inline: 18px; font-size: 14px; }
.btn--lg { --h: 50px; padding-inline: 28px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgb(139 109 71 / .25); }
.btn--primary:hover { background: var(--primary-hover); box-shadow: 0 10px 26px rgb(139 109 71 / .35); }
.btn--outline { background: rgb(255 255 255 / .7); color: var(--ink); border: 1px solid var(--primary); backdrop-filter: blur(6px); }
.btn--outline:hover { background: var(--primary); color: #fff; }
/* shine sweep */
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgb(255 255 255 / .28) 50%, transparent 70%);
  transform: translateX(120%); transition: transform .8s var(--ease-out);
}
.btn--primary:hover::after { transform: translateX(-120%); }
.btn .ic-arrow { transition: transform .35s var(--ease-out); }
.btn:hover .ic-arrow { transform: translateX(-5px); }
.btn:active { transform: scale(.98); }

.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background-color .25s; }
.icon-btn:hover { background: rgb(47 58 69 / .06); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--price); font-weight: 600; font-size: 14px; }
.link-arrow .ic { width: 16px; height: 16px; transition: transform .35s var(--ease-out); }
.link-arrow:hover .ic, a:hover > .link-arrow .ic, .service-card:hover .link-arrow .ic { transform: translateX(-6px); }

/* ---------------- Preloader ---------------- */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg-cream);
  clip-path: inset(0 0 0 0);
}
.preloader__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; }
.preloader__mark { width: clamp(120px, 22vw, 180px); clip-path: inset(100% 0 0 0); }
.preloader__word { font-size: clamp(22px, 3vw, 30px); font-weight: 700; color: var(--ink); opacity: 0; }
.preloader__bar { width: 140px; height: 2px; background: rgb(139 109 71 / .2); overflow: hidden; border-radius: 2px; }
.preloader__bar span { display: block; height: 100%; background: var(--primary); transform-origin: right; transform: scaleX(0); }
.preloader__panel { position: absolute; inset: 0; z-index: 3; background: var(--primary); transform-origin: bottom; transform: scaleY(0); }

/* ---------------- Scroll progress + cursor ---------------- */
.scroll-progress { position: fixed; top: 0; inset-inline: 0; height: 3px; z-index: 120; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: linear-gradient(to left, var(--primary), var(--primary-tint)); transform-origin: right; transform: scaleX(0); }
.cursor { display: none; }
.cursor.is-hidden { opacity: 0; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor .cursor { display: block; position: fixed; top: 0; left: 0; z-index: 500; pointer-events: none; }
  .cursor__dot, .cursor__ring { position: fixed; top: 0; left: 0; border-radius: 50%; transform: translate(-50%, -50%); }
  .cursor__dot { width: 6px; height: 6px; background: var(--primary); }
  .cursor__ring { width: 36px; height: 36px; border: 1px solid rgb(139 109 71 / .55); transition: width .3s var(--ease-out), height .3s var(--ease-out), background-color .3s, border-color .3s; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; background: rgb(139 109 71 / .1); border-color: transparent; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------------- Header ---------------- */
.header {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .5s var(--ease-out), background-color .4s, box-shadow .4s;
  background: rgb(250 248 245 / .88);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--border);
}
.header.is-hidden { transform: translateY(-110%); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.header__logo { display: block; flex: none; }
.logo-full { display: none; height: 50px; width: auto; transition: height .5s var(--ease-out); }
.logo-compact { display: flex; align-items: center; gap: 8px; }
.logo-compact img { height: 40px; width: auto; }
.logo-compact span { display: grid; line-height: 1.15; font-weight: 700; font-size: 17px; color: var(--ink); }
.logo-compact small { font-family: var(--font-latin); font-size: 8.5px; letter-spacing: .08em; color: var(--price); font-weight: 700; }
.nav { display: none; }
.header__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.header__lang { font-family: var(--font-latin); font-weight: 600; font-size: 13px; letter-spacing: .04em; padding: 10px 10px; color: var(--ink); transition: color .2s; }
.header__lang:hover { color: var(--primary); }
.header__search, .header__cta { display: none; }
.header__cta .ic { width: 16px; height: 16px; }

@media (min-width: 1024px) {
  .header { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .header.is-scrolled { background: rgb(250 248 245 / .9); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--border), 0 10px 30px rgb(47 58 69 / .05); }
  .header__inner { align-items: flex-start; }
  .header__logo { margin-top: 12px; }
  .logo-compact { display: none; }
  .logo-full { display: block; height: clamp(120px, 12.6vw, 172px); }
  .header.is-scrolled .logo-full { height: 58px; }
  .header.is-scrolled .header__logo { margin-top: 9px; }
  .nav { display: block; margin-inline-start: clamp(40px, 7vw, 110px); }
  .nav__list { display: flex; gap: clamp(22px, 2.6vw, 40px); height: var(--header-h); align-items: center; }
  .nav__link { position: relative; font-size: 15px; font-weight: 500; color: #1F2830; padding-block: 6px; transition: color .25s; }
  .nav__link::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease-out); }
  .nav__link:hover { color: var(--primary); }
  .nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: right; }
  .header__actions { height: var(--header-h); gap: 10px; }
  .header__search { display: inline-grid; }
  .header__cta { display: inline-flex; margin-inline-start: 10px; --h: 46px; padding-inline: 22px; font-size: 15px; }
  .header__menu { display: none; }
}

/* ---------------- Drawer (mobile menu) ---------------- */
.drawer { position: fixed; inset: 0; z-index: 150; pointer-events: none; visibility: hidden; transition: visibility 0s .55s; }
.drawer.is-open { visibility: visible; transition: none; }
.drawer__backdrop { position: absolute; inset: 0; background: rgb(26 30 34 / .45); opacity: 0; transition: opacity .4s; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: min(86vw, 360px);
  background: var(--surface); display: flex; flex-direction: column;
  padding: calc(16px + env(safe-area-inset-top, 0px)) 20px calc(20px + env(safe-area-inset-bottom, 0px));
  transform: translateX(105%); transition: transform .55s var(--ease-out);
}
[dir="ltr"] .drawer__panel { transform: translateX(-105%); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.drawer__head img { height: 70px; width: auto; }
.drawer__list { flex: 1; padding-block: 12px; }
.drawer__list a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--border); }
.drawer__foot { display: grid; gap: 14px; justify-items: center; }
.drawer__lang { font-family: var(--font-latin); font-weight: 600; color: var(--primary); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.hero__media { position: relative; height: clamp(250px, 64vw, 440px); overflow: hidden; }
.hero__img-wrap { position: absolute; inset: 0; overflow: hidden; }
.hero__img { width: 100%; height: 112%; object-fit: cover; object-position: 20% 70%; transform-origin: 30% 60%; }
.hero__fade { position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 55%, var(--bg) 99%); pointer-events: none; }
.hero__tag {
  position: absolute; inset-inline-end: 7%; top: 30%;
  display: grid; justify-items: start; gap: 0;
  color: #F7EFE3; font-size: clamp(15px, 3.8vw, 30px); font-weight: 500; line-height: 1.45;
  text-shadow: 0 2px 18px rgb(0 0 0 / .45);
}
.hero__tag { display: none; }
.hero__content { position: relative; z-index: 2; margin-top: -28px; padding-bottom: 24px; }
.hero__title { font-size: clamp(33px, 8.6vw, 62px); font-weight: 800; line-height: 1.32; letter-spacing: -.005em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line__in { display: block; }
.hero__title-accent { color: var(--primary); }
.hero__lead { margin-top: 14px; font-size: clamp(15px, 1.3vw, 19px); color: var(--ink); line-height: 1.85; max-width: 34em; }
.br-lg { display: none; }
.hero__ctas { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hero__ctas .btn { padding-inline: 12px; font-size: 14.5px; }

@media (min-width: 768px) {
  .hero__media { height: 420px; }
  .hero__tag { display: grid; top: 36%; }
  .hero__ctas { display: flex; }
  .hero__ctas .btn { padding-inline: 28px; font-size: 15px; }
}
@media (min-width: 1024px) {
  .hero { padding-top: 0; min-height: clamp(560px, 46.5vw, 700px); display: flex; align-items: flex-start; }
  .hero__media { position: absolute; inset-block: 0; inset-inline-end: 0; width: 68%; height: auto; }
  [dir="rtl"] .hero__fade { background:
      linear-gradient(to right, transparent 66%, rgb(247 246 243 / .6) 84%, var(--bg) 97%),
      linear-gradient(to bottom, rgb(247 246 243 / .35), transparent 14%, transparent 86%, rgb(247 246 243 / .5)); }
  .hero__img { height: 100%; object-position: 0% 100%; }
  .hero__tag { inset-inline-end: 9%; top: 48%; font-size: clamp(22px, 2.2vw, 32px); }
  .hero__content { margin-top: 0; padding-top: clamp(160px, 16vw, 225px); padding-bottom: 130px; }
  .hero__title { font-size: clamp(40px, 3.65vw, 54px); line-height: 1.38; }
  .br-lg { display: inline; }
  .hero__lead { margin-top: 16px; font-size: clamp(17px, 1.55vw, 22px); }
  .hero__ctas { margin-top: 28px; gap: 14px; }
  .hero__ctas .btn { --h: 48px; min-width: 176px; }
}

/* ---------------- Search ---------------- */
.search-wrap { position: relative; z-index: 5; }
.search-card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float); padding: 16px; display: grid; gap: 14px;
  border: 1px solid var(--border);
}
.search-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 8px; padding: 4px; }
.search-tab { position: relative; z-index: 1; height: 38px; border-radius: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink-muted); transition: color .3s; }
.search-tab.is-active { color: var(--ink); }
.search-tabs__ink { position: absolute; z-index: 0; top: 4px; bottom: 4px; inset-inline-start: 4px; width: calc(50% - 4px); background: var(--surface); border-radius: 6px; box-shadow: 0 2px 8px rgb(47 58 69 / .08); transition: transform .5s var(--ease-out); }
.search-tabs[data-active="rent"] .search-tabs__ink { transform: translateX(-100%); }
[dir="ltr"] .search-tabs[data-active="rent"] .search-tabs__ink { transform: translateX(100%); }
.search-card__title { font-size: 20px; font-weight: 700; }
.search-card__sub { font-size: 13px; color: var(--ink-muted); }
.search-trigger { display: flex; align-items: center; gap: 10px; height: 52px; padding-inline: 14px 6px; border: 1px solid var(--border-strong); border-radius: 10px; color: var(--ink-subtle); text-align: start; font-size: 14px; background: var(--bg); }
.search-trigger span:nth-child(2) { flex: 1; }
.search-trigger__icon { width: 40px; height: 40px; display: grid; place-items: center; background: var(--primary); color: #fff; border-radius: 8px; }

.search-fields { display: none; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.price-unit { font-weight: 400; color: var(--ink-subtle); }
.select { position: relative; }
.select select, .price-range {
  width: 100%; height: 42px; appearance: none; -webkit-appearance: none;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface);
  padding-inline: 12px 34px; font-size: 14px; color: var(--ink); cursor: pointer;
  transition: border-color .25s, box-shadow .25s;
}
.field--type .select select { padding-inline-end: 12px; }
.select select:hover, .price-range:hover { border-color: var(--primary-tint); }
.select select:focus, .price-range:focus-within { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(139 109 71 / .15); }
.select select:disabled { opacity: .55; cursor: not-allowed; background: var(--bg); }
.select__chev { position: absolute; inset-inline-end: 10px; top: 50%; translate: 0 -50%; width: 16px; height: 16px; color: var(--ink-subtle); pointer-events: none; }
.price-range { display: flex; align-items: center; padding: 0; cursor: default; }
.price-range input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding-inline: 12px 8px; outline: none; font-size: 14px; }
.price-range__sep { width: 1px; height: 22px; background: var(--border-strong); }
.select--bare { flex: 1; min-width: 0; }
.select--bare select { border: 0; height: 40px; box-shadow: none !important; background: transparent; }
.search-submit { height: 44px; gap: 8px; }
.sheet-head { display: none; }

/* Mobile bottom sheet */
.search-fields.is-sheet {
  display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr);
  position: fixed; inset-inline: 0; bottom: 0; z-index: 210;
  background: var(--surface); border-radius: 22px 22px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom, 0px));
  max-height: 88svh; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: 0 -20px 60px rgb(26 30 34 / .2);
  transform: translateY(105%); transition: transform .55s var(--ease-out);
}
.search-fields.is-sheet:not(.is-open) { visibility: hidden; transition: transform .55s var(--ease-out), visibility 0s .55s; }
.search-fields.is-sheet.is-open { transform: none; }
.search-fields.is-sheet .sheet-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; position: relative; padding-top: 12px; }
.search-fields.is-sheet .sheet-head strong { grid-column: 2; font-size: 17px; }
.search-fields.is-sheet .sheet-head .icon-btn { grid-column: 3; }
.sheet-handle { position: absolute; top: 0; left: 50%; translate: -50% 0; width: 40px; height: 4px; border-radius: 4px; background: var(--border-strong); }
.search-fields.is-sheet .select select, .search-fields.is-sheet .price-range { height: 50px; font-size: 16px; }
.search-fields.is-sheet .price-range input { font-size: 16px; }
.search-fields.is-sheet .search-submit { height: 52px; margin-top: 6px; font-size: 16px; }
.sheet-backdrop { position: fixed; inset: 0; z-index: 205; background: rgb(26 30 34 / .45); opacity: 0; pointer-events: none; transition: opacity .4s; }
.sheet-backdrop.is-open { opacity: 1; pointer-events: auto; }

@media (min-width: 1024px) {
  .search-wrap { margin-top: -48px; }
  .search-card { display: flex; align-items: flex-end; gap: clamp(14px, 2vw, 26px); padding: 20px clamp(18px, 2vw, 28px) 22px; border-radius: 10px; border: 0; }
  .search-tabs {
    position: absolute; bottom: 100%; inset-inline-start: 23%;
    display: flex; gap: 0; padding: 0; background: rgb(255 255 255 / .75); backdrop-filter: blur(8px);
    border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 -6px 20px rgb(47 58 69 / .06);
  }
  .search-tab { width: 84px; height: 40px; border-radius: 0; }
  .search-tab { background: #EFEDE9; }
  .search-tab.is-active { background: var(--surface); color: var(--ink); }
  .search-tabs__ink { top: auto; bottom: 0; height: 2px; inset-inline-start: 0; width: 84px; background: var(--primary); border-radius: 0; box-shadow: none; }
  .search-tabs[data-active="rent"] .search-tabs__ink { transform: translateX(-84px); }
  [dir="ltr"] .search-tabs[data-active="rent"] .search-tabs__ink { transform: translateX(84px); }
  .search-card__intro { flex: none; width: clamp(150px, 15vw, 200px); align-self: center; padding-top: 14px; }
  .search-card__title { font-size: 22px; line-height: 1.4; }
  .search-trigger { display: none; }
  .search-fields { display: grid; flex: 1; min-width: 0; grid-template-columns: minmax(0,.62fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1.15fr) auto; gap: clamp(10px, 1.2vw, 16px); align-items: end; }
  .field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .search-submit { width: clamp(96px, 9vw, 124px); height: 42px; }
  .select select, .price-range { height: 40px; }
}

/* ---------------- Sections ---------------- */
.section { padding-block: 56px; }
.sec-head { margin-bottom: 26px; }
.sec-head--center { text-align: center; }
.sec-title { display: flex; align-items: center; justify-content: center; gap: 22px; font-size: clamp(25px, 2.6vw, 34px); font-weight: 800; line-height: 1.3; }
.sec-title--plain { display: block; }
.sec-line { width: clamp(34px, 5vw, 60px); height: 1.5px; background: var(--primary); }
.sec-sub { margin-top: 2px; font-size: 15px; color: var(--ink-muted); }
@media (min-width: 1024px) { .section { padding-block: 48px; } .services { padding-top: 46px; padding-bottom: 38px; } .sec-head { margin-bottom: 18px; } .featured { padding-bottom: 30px; } .sec-title { line-height: 1.25; } .services .sec-head { margin-bottom: 12px; } .featured .sec-head { margin-bottom: 0; }
  .featured__head + .chips + .props { margin-top: 6px; } .services { padding-top: 36px; padding-bottom: 30px; } .featured { padding-top: 16px; } }

/* ---------------- Services ---------------- */
.services__grid { display: grid; gap: 14px; }
.service-card {
  position: relative; display: flex; align-items: flex-start; gap: 16px;
  padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: box-shadow .5s var(--ease-out), transform .5s var(--ease-out), border-color .4s;
}
.service-card::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--primary); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.service-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleY(1); }
.service-card__icon { flex: none; width: 76px; height: 76px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); border-radius: var(--radius-sm); transition: background-color .5s, color .5s; }
.service-card__icon .ic-lg { width: 38px; height: 38px; transition: transform .6s var(--ease-out); }
.service-card:hover .service-card__icon { background: var(--primary); color: #fff; }
.service-card:hover .service-card__icon .ic-lg { transform: scale(1.08) rotate(-4deg); }
.service-card__body { display: grid; gap: 6px; }
.service-card h3 { font-size: 18px; font-weight: 700; }
.service-card p { font-size: 13.5px; color: var(--ink-muted); line-height: 1.8; }
.service-card .link-arrow { margin-top: 4px; }
@media (min-width: 768px) {
  .services__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .service-card { padding: 22px; gap: 26px; align-items: center; }
  .service-card__icon { width: 104px; height: 104px; }
  .service-card__icon .ic-lg { width: 54px; height: 54px; stroke-width: 1.1; }
  .service-card h3 { font-size: 21px; }
  .service-card p { font-size: 15px; }
}
@media (min-width: 1200px) {
  .service-card__icon { width: 124px; height: 124px; }
  .service-card__icon .ic-lg { width: 64px; height: 64px; }
}

/* ---------------- Featured properties ---------------- */
.featured { padding-top: 8px; }
.featured__head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; }
.featured__titles { text-align: start; }
.featured__all { font-size: 13.5px; white-space: nowrap; }
@media (min-width: 1024px) {
  .featured__head { grid-template-columns: 1fr auto 1fr; }
  .featured__titles { grid-column: 2; text-align: center; }
  .featured__all { grid-column: 3; justify-self: end; align-self: start; margin-top: 10px; }
}

.chips { display: flex; gap: 8px; margin-bottom: 16px; }
.chip { height: 36px; padding-inline: 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-size: 13.5px; font-weight: 600; color: var(--ink-muted); transition: all .3s var(--ease-out); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 1024px) { .chips { display: none; } }

.props {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 18px;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.props::-webkit-scrollbar { display: none; }
.props-dots { display: flex; justify-content: center; gap: 6px; margin-top: 2px; }
.props-dots span { width: 6px; height: 6px; border-radius: 6px; background: var(--border-strong); transition: width .4s var(--ease-out), background-color .3s; }
.props-dots span.is-active { width: 20px; background: var(--primary); }
@media (min-width: 640px) { .props { grid-auto-columns: 46%; } }
@media (min-width: 1024px) {
  .props { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; overflow: visible; margin: 0; padding: 0; gap: 18px; perspective: 1200px; }
  .props-dots { display: none; }
}

.prop {
  position: relative; scroll-snap-align: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .5s var(--ease-out);
  transform-style: preserve-3d;
}
.prop.is-filtered { display: none; }
.prop:hover { box-shadow: var(--shadow-hover); }
.prop::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(176 141 94 / .12), transparent 45%); opacity: 0; transition: opacity .4s; }
.prop:hover::after { opacity: 1; }
.prop__media { position: relative; z-index: 2; pointer-events: none; aspect-ratio: 16 / 8.9; overflow: hidden; background: var(--primary-soft); }
.prop__media .fav { pointer-events: auto; }
.prop__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.prop:hover .prop__media img { transform: scale(1.07); }
.badge { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; background: var(--badge-sale); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; padding: 6px 10px; border-radius: var(--radius-xs); backdrop-filter: blur(4px); }
.badge--rent { background: var(--badge-rent); }
.fav { position: absolute; z-index: 2; top: 4px; inset-inline-end: 4px; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; }
.fav::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: rgb(20 24 28 / .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: background-color .3s; z-index: -1; }
.fav:hover::before { background: rgb(20 24 28 / .45); }
.fav[aria-pressed="true"]::before { background: #fff; }
.fav .ic { width: 21px; height: 21px; transition: transform .35s var(--ease-out), fill .3s, color .3s; }
.fav:hover .ic { transform: scale(1.15); }
.fav[aria-pressed="true"] .ic { fill: #E0524A; color: #E0524A; }
.fav__burst { position: absolute; inset: 0; pointer-events: none; }
.fav__burst i { position: absolute; top: 50%; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: #E0524A; }
.prop__body { display: grid; gap: 4px; padding: 12px 16px 14px; flex: 1; align-content: start; }
.prop__title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.prop__title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }
.prop__title a:focus-visible { outline: none; }
.prop:has(.prop__title a:focus-visible) { outline: 2px solid var(--primary); outline-offset: 3px; }
.prop__loc, .prop__specs { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-muted); }
.prop__loc .ic, .prop__specs .ic { width: 14px; height: 14px; color: var(--primary); stroke-width: 1.7; }
.prop__specs { gap: 16px; }
.prop__specs li { display: inline-flex; align-items: center; gap: 5px; }
.prop__price { margin-top: 4px; font-size: 19px; font-weight: 700; color: var(--price); }
.prop__price small { font-size: 13px; font-weight: 600; }
.prop__more { position: relative; z-index: 2; margin-top: 2px; justify-content: flex-end; font-size: 13px; }
.prop__more { display: flex; }
.prop__more .ic { order: 0; }

/* ---------------- Stats ---------------- */
.stats { padding-block: 10px 52px; }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; }
.stat { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px 8px; }
.stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
.stat:nth-child(odd) { border-inline-end: 1px solid var(--border); }
.stat__txt { display: grid; text-align: start; }
.stat__num { font-size: clamp(22px, 2.3vw, 30px); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; }
.stat__num--text { font-size: clamp(18px, 1.9vw, 24px); }
.stat__txt > span { font-size: 13px; color: var(--ink-muted); }
@media (min-width: 1024px) { .stat__txt > span { font-size: 14px; } }
.stat__icon { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--primary); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 1024px) {
  .stats { padding-block: 0 22px; }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .stat { border: 0 !important; padding: 4px 12px; gap: 22px; }
  .stat + .stat { border-inline-start: 1px solid var(--border) !important; }
  .stat__icon { width: 54px; height: 54px; stroke-width: 1.1; }
}

/* ---------------- CTA band ---------------- */
.cta { position: relative; overflow: hidden; background: var(--dark); color: #fff; padding-block: 56px; isolation: isolate; }
.cta__bg { position: absolute; inset: -10% 0; z-index: -2; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .8; filter: saturate(.85) brightness(.85); }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to left, rgb(31 36 40 / .72) 0%, rgb(31 36 40 / .35) 45%, rgb(31 36 40 / .78) 82%); }
.cta__mark { position: absolute; z-index: -1; inset-inline-end: -6%; bottom: -30%; height: 150%; width: auto; opacity: .45; pointer-events: none; }
.cta__inner { display: grid; justify-items: start; gap: 8px; }
.cta__title { font-size: clamp(23px, 2.2vw, 30px); font-weight: 800; }
.cta__sub { font-size: 15px; color: #D8D2C8; }
.cta .btn { margin-top: 16px; }
@media (min-width: 1024px) { .cta { padding-block: 22px 24px; } .cta__mark { inset-inline-end: 3%; top: -40%; bottom: auto; height: 138%; opacity: .42; } .cta__inner { gap: 2px; } .cta .btn { margin-top: 12px; --h: 46px; } }

/* ---------------- Footer ---------------- */
.footer { background: var(--bg-footer); padding-top: 36px; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); border-top: 1px solid var(--border); }
.footer__grid { display: grid; gap: 4px; }
.footer__brand { order: -1; display: flex; justify-content: center; padding-bottom: 18px; }
.footer__brand img { height: 118px; width: auto; }
.footer__title { font-size: 15px; font-weight: 700; line-height: 1.5; }
details.footer__col { border-bottom: 1px solid var(--border); }
details.footer__col summary { display: flex; justify-content: space-between; align-items: center; padding-block: 14px; cursor: pointer; list-style: none; }
details.footer__col summary::-webkit-details-marker { display: none; }
details.footer__col summary .ic { transition: transform .35s var(--ease-out); color: var(--ink-subtle); }
details.footer__col[open] summary .ic { transform: rotate(180deg); }
.footer__links, .contact-list { display: grid; gap: 4px; padding-bottom: 14px; font-size: 14px; color: var(--ink-muted); }
.footer__links a { transition: color .2s, padding .3s var(--ease-out); }
.footer__links a:hover { color: var(--primary); padding-inline-start: 4px; }
.contact-list li { display: flex; align-items: center; gap: 10px; }
.contact-list .ic { width: 15px; height: 15px; color: var(--ink); }
.contact-list a:hover { color: var(--primary); }
.footer__social { order: 5; display: grid; justify-items: center; gap: 10px; padding-top: 20px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: background-color .3s, color .3s, transform .4s var(--ease-out); }
.socials a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.socials .ic { width: 19px; height: 19px; }
.footer__bottom { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 22px; padding-block: 16px 6px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--ink-muted); text-align: center; }
.footer__legal { display: flex; gap: 10px; }
.footer__legal a:hover { color: var(--primary); }

@media (min-width: 1024px) {
  .footer { padding-top: 20px; padding-bottom: 0; }
  .footer__grid { grid-template-columns: auto auto auto auto 1fr; gap: 0; align-items: start; }
  .footer__social { padding-inline-end: 44px !important; }
  .footer__social, .footer__brand, details.footer__col { order: 0; }
  .footer__social { justify-items: start; padding: 0; align-self: stretch; align-content: start; }
  .footer__social .socials { margin-inline-start: -10px; }
  details.footer__col { border: 0; padding-inline: 36px; align-self: stretch; }
  details.footer__col:nth-of-type(1) { padding-inline-start: 0; border-inline-end: 1px solid var(--border); }
  details.footer__col:nth-of-type(2) { border-inline-end: 1px solid var(--border); }
  .contact-list li { white-space: nowrap; }
  details.footer__col summary { pointer-events: none; padding-block: 0 12px; }
  details.footer__col summary .ic { display: none; }
  .footer__links, .contact-list { gap: 2px; font-size: 14.5px; color: var(--ink); }
  .contact-list { gap: 8px; }
  .footer__brand { justify-content: flex-end; padding: 0; }
  .footer__brand img { height: 124px; }
  .footer__links, .contact-list { padding-bottom: 6px; }
  .footer__bottom { flex-direction: row; justify-content: space-between; margin-top: 12px; padding-block: 12px 16px; }
}

/* ---------------- Mobile app bar ---------------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 110;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding: 0 6px env(safe-area-inset-bottom, 0px);
  background: rgb(255 255 255 / .92); backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-top: 1px solid var(--border);
  transition: transform .45s var(--ease-out);
}
.tabbar.is-hidden { transform: translateY(100%); }
.tabbar__item { position: relative; height: var(--tabbar-h); display: grid; justify-items: center; align-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--ink-subtle); transition: color .25s; }
.tabbar__item .ic { width: 22px; height: 22px; stroke-width: 1.7; }
.tabbar__item.is-active { color: var(--primary); }
.tabbar__item:active { transform: scale(.94); }
.tabbar__item--main { color: var(--ink); }
.tabbar__fab { width: 52px; height: 52px; margin-top: -26px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgb(139 109 71 / .45), 0 0 0 5px var(--surface); }
.tabbar__fab .ic { width: 24px; height: 24px; }
.tabbar__count { position: absolute; top: 8px; inset-inline-end: calc(50% - 20px); min-width: 17px; height: 17px; padding-inline: 4px; border-radius: 9px; background: #E0524A; color: #fff; font-size: 10px; font-style: normal; line-height: 17px; text-align: center; }
.wa-fab { position: fixed; z-index: 105; inset-inline-end: 16px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%; background: #25D366; color: #fff; box-shadow: 0 10px 26px rgb(37 211 102 / .4); transition: transform .4s var(--ease-out); }
.wa-fab .ic { width: 28px; height: 28px; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(1.7); opacity: 0; } }
@media (min-width: 1024px) { .tabbar { display: none; } .wa-fab { bottom: 28px; inset-inline-end: 28px; } }

/* Toast */
.toast { position: fixed; z-index: 300; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 18px); translate: -50% 20px; background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 14px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .35s, translate .5s var(--ease-out); box-shadow: 0 12px 30px rgb(26 30 34 / .25); white-space: normal; max-width: calc(100vw - 32px); text-align: center; }
.toast.is-show { opacity: 1; translate: -50% 0; }
@media (min-width: 1024px) { .toast { bottom: 32px; } }

body.is-locked { overflow: hidden; }

[dir="ltr"] .lightbox__nav .ic { transform: scaleX(-1); }
/* ================= Founder ================= */
.founder { position: relative; overflow: hidden; padding-block: 56px 64px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg-cream) 100%); isolation: isolate; }
.founder::before { content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; inset-inline-start: -180px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgb(176 141 94 / .14), transparent 68%); }
.founder__grid { display: grid; gap: 34px; align-items: center; }
.founder__media { position: relative; margin: 0 auto; width: min(260px, 72vw); }
.founder__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; background: linear-gradient(160deg, #3A4652 0%, #1F2428 100%); box-shadow: 0 24px 60px rgb(31 36 40 / .22); display: grid; place-items: center; }
.founder__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.founder__mono { font-family: var(--font-display); font-weight: 800; font-size: 56px; color: #E3C79F; letter-spacing: .04em; }
[lang="en"] .founder__mono { font-family: var(--font-latin); font-weight: 500; letter-spacing: .12em; }
.founder__line { position: absolute; top: 16px; bottom: -16px; inset-inline-start: 16px; inset-inline-end: -16px; z-index: -1; border: 1.5px solid var(--primary-tint); border-radius: 6px; }
.founder__mark { position: absolute; width: 70px; height: auto; inset-inline-end: -22px; bottom: -26px; opacity: .9; filter: drop-shadow(0 8px 18px rgb(31 36 40 / .18)); }
.founder__body { display: grid; gap: 14px; text-align: start; }
.founder__quote { position: relative; margin: 0; padding-top: 30px; }
.founder__q { position: absolute; top: 0; inset-inline-start: 0; width: 42px; height: auto; fill: var(--primary-tint); opacity: .55; }
[dir="rtl"] .founder__q { transform: scaleX(-1); }
.founder__quote p { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 25px); font-weight: 700; line-height: 1.95; color: var(--ink); }
[lang="en"] .founder__quote p { font-family: var(--font-latin); font-weight: 400; line-height: 1.7; }
.founder__sign { display: grid; gap: 2px; justify-items: start; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--border-strong); max-width: 440px; }
.founder__sign img { height: 58px; width: auto; max-width: 220px; margin-bottom: 4px; object-fit: contain; }
.founder__name { font-family: var(--font-display); font-weight: 800; font-size: 20px; color: var(--ink); }
[lang="en"] .founder__name { font-family: var(--font-latin); font-weight: 500; }
.founder__role { font-size: 14px; color: var(--ink-subtle); }
@media (min-width: 768px) {
  .founder__media { width: 300px; }
}
@media (min-width: 1024px) {
  .founder { padding-block: 96px; }
  .founder__grid { grid-template-columns: 380px minmax(0, 1fr); gap: 80px; }
  .founder__media { width: 100%; }
  .founder__mark { width: 96px; inset-inline-end: -34px; bottom: -34px; }
  .founder__q { width: 56px; }
  .founder__quote { padding-top: 40px; }
}
.founder--about { background: linear-gradient(180deg, var(--bg-cream), var(--bg)); }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .preloader { display: none; }
}

/* =========================================================
   INNER PAGES — shared
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .45s cubic-bezier(.22,1,.36,1) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn--ghost { background: transparent; color: var(--ink-muted); padding-inline: 14px; }
.btn--ghost:hover { color: var(--ink); background: rgb(47 58 69 / .05); }
.btn--light { background: rgb(255 255 255 / .92); color: var(--ink); box-shadow: 0 6px 20px rgb(0 0 0 / .15); backdrop-filter: blur(8px); }
.btn--light:hover { background: #fff; }
.btn--wa { background: #117A4B; color: #fff; }
.btn--wa:hover { background: #0D633C; }
.icon-btn--ring { border: 1px solid var(--border-strong); background: var(--surface); }
.icon-btn--ring:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.icon-btn--dark { color: #fff; }
.icon-btn--dark:hover { background: rgb(255 255 255 / .12); }
.fav-lg[aria-pressed="true"] { color: #D9463E; border-color: #F1C9C6; background: #FFF5F4; }
.fav-lg[aria-pressed="true"] .ic { fill: currentColor; }
.fav-lg { position: relative; }

.badge--new { top: 42px; background: rgb(255 255 255 / .92); color: var(--price); }
.badge--static { position: static; display: inline-block; background: #7A6245; }
.badge--static.badge--rent { background: var(--badge-rent); }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding-inline: 10px; border-radius: 4px; font-size: 12.5px; font-weight: 600; background: var(--primary-soft); color: var(--price); }
.tag--new { background: #E8F3EC; color: #1E6B43; }
.tag--ref { background: transparent; border: 1px solid var(--border-strong); color: var(--ink-muted); font-weight: 500; }

.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--ink-muted); }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--price); }
.crumbs .ic { width: 14px; height: 14px; color: var(--ink-subtle); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
[dir="ltr"] .crumbs .ic { transform: scaleX(-1); }

.finput { position: relative; display: flex; align-items: center; height: 44px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.finput:hover { border-color: var(--primary-tint); }
.finput:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(139 109 71 / .15); }
.finput input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; padding-inline: 12px; font-size: 14.5px; outline: none; }
.finput--icon > .ic { margin-inline-start: 12px; color: var(--ink-subtle); }
.finput--icon input { padding-inline-start: 8px; }
.finput--tel { direction: ltr; }
.finput__prefix { padding-inline: 12px 8px; color: var(--ink-muted); font-size: 14px; border-inline-end: 1px solid var(--border); height: 60%; display: flex; align-items: center; font-family: var(--font-latin); }
.finput input::placeholder { color: var(--ink-subtle); }
.finput input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

.check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--border-strong); border-radius: 5px; background: var(--surface); transition: all .25s var(--ease-out); }
.check__box .ic { width: 14px; height: 14px; stroke-width: 3; color: #fff; transform: scale(0); transition: transform .3s var(--ease-out); }
.check input:checked + .check__box { background: var(--primary); border-color: var(--primary); }
.check input:checked + .check__box .ic { transform: scale(1); }
.check input:focus-visible + .check__box { outline: 2px solid var(--primary); outline-offset: 2px; }
.check--sm { font-size: 13px; color: var(--ink-muted); align-items: flex-start; }
.check--sm .check__box { margin-top: 2px; }
.fav-count { font-style: normal; font-size: 11px; background: #D9463E; color: #fff; border-radius: 9px; padding: 1px 7px; margin-inline-start: 4px; }

.empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.empty img { width: 72px; opacity: .35; filter: grayscale(1); }
.empty h1, .empty h2 { font-size: 22px; font-weight: 800; }
.empty p { color: var(--ink-muted); max-width: 44ch; }
.empty__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.empty--page { margin-block: 40px 80px; }

.page { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
@media (min-width: 1024px) { .page .header__logo { margin-top: 8px; } }

/* inner-page header: always solid, compact logo on desktop */
.is-listing .header, .is-detail .header, .is-inner .header { background: rgb(247 246 243 / .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--border); }
@media (min-width: 1024px) {
  .is-listing .logo-full, .is-detail .logo-full, .is-inner .logo-full { height: 60px; }
  .is-listing .header__logo, .is-detail .header__logo, .is-inner .header__logo { margin-top: 8px; }
}

/* =========================================================
   LISTING PAGE
   ========================================================= */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg-cream), var(--bg)); border-bottom: 1px solid var(--border); padding-block: 28px 26px; }
.page-hero__mark { position: absolute; inset-inline-end: 4%; bottom: -30%; height: 170%; width: auto; opacity: .07; pointer-events: none; }
.page-hero__inner { position: relative; display: grid; gap: 6px; }
.page-title { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; line-height: 1.3; }
.page-sub { color: var(--ink-muted); font-size: 15px; }
@media (min-width: 1024px) { .page-hero { padding-block: 40px 36px; } }

.listing { display: grid; gap: 24px; padding-block: 20px 56px; }
@media (min-width: 1024px) { .listing { grid-template-columns: 290px minmax(0, 1fr); gap: 32px; padding-block: 32px 72px; align-items: start; } }

/* Filters */
.filters { display: none; }
.filters .sheet-head { display: none; }
@media (min-width: 1024px) {
  .filters { display: block; position: sticky; top: calc(var(--header-h) + 18px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-card); max-height: calc(100vh - var(--header-h) - 36px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .filters__apply { display: none; }
}
.filters__form { display: grid; gap: 20px; padding: 20px; }
.fgroup { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.fgroup__label { font-size: 13.5px; font-weight: 700; color: var(--ink); padding: 0; }
.fgroup--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fgroup--2 > div { display: grid; gap: 8px; min-width: 0; }
.filters .select select { height: 44px; }
.seg { display: flex; background: var(--bg); border-radius: 8px; padding: 4px; gap: 2px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: grid; place-items: center; height: 36px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--ink-muted); transition: all .3s var(--ease-out); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 2px 8px rgb(47 58 69 / .1); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }
.seg--beds span { font-family: var(--font); font-size: 13.5px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; }
.pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pill span { display: inline-flex; align-items: center; height: 36px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 13.5px; font-weight: 600; color: var(--ink-muted); background: var(--surface); transition: all .3s var(--ease-out); }
.pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.pill:hover span { border-color: var(--primary-tint); }
.filters__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); position: sticky; bottom: 0; background: var(--surface); }

/* Filters as mobile bottom sheet */
.filters.is-sheet {
  display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 210;
  background: var(--surface); border-radius: 22px 22px 0 0; max-height: 90svh; overflow-y: auto; overscroll-behavior: contain;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -20px 60px rgb(26 30 34 / .2);
  transform: translateY(105%); transition: transform .55s var(--ease-out);
}
.filters.is-sheet:not(.is-open) { visibility: hidden; transition: transform .55s var(--ease-out), visibility 0s .55s; }
.filters.is-sheet.is-open { transform: none; }
.filters.is-sheet .sheet-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; text-align: center; position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 14px 12px 6px; }
.filters.is-sheet .sheet-head strong { grid-column: 2; font-size: 17px; font-family: var(--font-display); }
.filters.is-sheet .sheet-head .icon-btn { grid-column: 3; }
.filters.is-sheet .sheet-handle { top: 6px; }
.filters.is-sheet .finput input, .filters.is-sheet select { font-size: 16px; }
.filters.is-sheet .filters__apply { flex: 1; }

/* Toolbar */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar__filter { --h: 42px; padding-inline: 14px; gap: 8px; position: relative; }
.toolbar__badge { font-style: normal; min-width: 20px; height: 20px; border-radius: 10px; background: var(--primary); color: #fff; font-size: 11.5px; display: grid; place-items: center; padding-inline: 5px; }
.btn--outline:hover .toolbar__badge { background: #fff; color: var(--primary); }
.toolbar__count { font-size: 14.5px; color: var(--ink-muted); }
.toolbar__count strong { color: var(--ink); font-family: var(--font-display); font-size: 17px; }
.toolbar__end { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.select--sort select { height: 42px; min-width: 150px; font-size: 14px; }
.view-toggle { display: none; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 3px; }
.view-toggle button { width: 36px; height: 34px; display: grid; place-items: center; border-radius: 4px; color: var(--ink-subtle); transition: all .25s; }
.view-toggle button.is-active { background: var(--primary-soft); color: var(--price); }
@media (min-width: 1024px) { .toolbar__filter { display: none; } .view-toggle { display: flex; } }
@media (max-width: 480px) { .toolbar__count { order: 3; width: 100%; } .select--sort select { min-width: 0; } }

.active-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-chips:empty { display: none; }
.achip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding-inline: 12px 8px; border-radius: 999px; background: var(--primary-soft); color: var(--price); font-size: 13px; font-weight: 600; transition: background-color .25s; }
.achip .ic { width: 14px; height: 14px; }
.achip:hover { background: #EADFD0; }
.achip--reset { background: transparent; color: var(--ink-muted); text-decoration: underline; text-underline-offset: 3px; padding-inline: 8px; }

/* Results grid */
.results { min-width: 0; }
.results__grid { display: grid; grid-template-columns: 1fr; gap: 18px; perspective: 1200px; }
@media (min-width: 640px) { .results__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .results__grid { grid-template-columns: repeat(3, 1fr); } }
.prop__excerpt { display: none; }
@media (min-width: 768px) {
  .results__grid.is-list { grid-template-columns: 1fr; }
  .results__grid.is-list .prop { flex-direction: row; }
  .results__grid.is-list .prop__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 220px; }
  .results__grid.is-list .prop__body { padding: 18px 22px; gap: 6px; }
  .results__grid.is-list .prop__title { font-size: 19px; }
  .results__grid.is-list .prop__excerpt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink-muted); font-size: 14px; line-height: 1.8; margin-top: 4px; }
  .results__grid.is-list .prop__price { font-size: 21px; }
}

.more { display: grid; justify-items: center; gap: 10px; margin-top: 28px; }
.more__meta { font-size: 13.5px; color: var(--ink-muted); }
.more__bar { width: 180px; height: 3px; background: var(--border); border-radius: 3px; overflow: hidden; }
.more__bar span { display: block; height: 100%; background: var(--primary); transform-origin: right; transition: transform .6s var(--ease-out); }
.more .btn { min-width: 180px; }

/* Request band */
.request { padding-bottom: 64px; }
.request__card { position: relative; overflow: hidden; display: grid; gap: 18px; align-items: center; padding: 28px 24px; border-radius: 12px; background: var(--dark); color: #fff; isolation: isolate; }
.request__card::after { content: ""; position: absolute; inset-inline-end: -40px; bottom: -60px; width: 260px; height: 230px; background: url("../img/logo-mark-gold.svg") no-repeat center / contain; opacity: .18; z-index: -1; }
.request__card h2 { font-size: clamp(21px, 2.2vw, 28px); font-weight: 800; }
.request__card p { color: #D6D0C6; margin-top: 6px; max-width: 56ch; }
.request__card .btn { justify-self: start; }
@media (min-width: 768px) { .request__card { grid-template-columns: 1fr auto; padding: 34px 40px; } .request__card::after { inset-inline-end: 22%; } }

/* =========================================================
   PROPERTY DETAILS PAGE
   ========================================================= */
.page--detail > .container { padding-top: 18px; }
.crumbs--detail { margin-bottom: 14px; }
.pd-head { display: grid; gap: 14px; margin-bottom: 18px; }
.pd-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.pd-badges .badge { font-size: 12.5px; padding: 6px 12px; }
.pd-title { font-size: clamp(24px, 3vw, 38px); font-weight: 800; line-height: 1.35; }
.pd-loc { display: flex; align-items: center; gap: 6px; color: var(--ink-muted); margin-top: 4px; }
.pd-loc .ic { width: 16px; height: 16px; color: var(--primary); }
.pd-head__side { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 2px 12px; }
.pd-price { font-family: var(--font-display); font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; color: var(--price); line-height: 1.2; }
.pd-price small { font-size: .5em; font-weight: 700; }
.pd-price__note { grid-row: 2; font-size: 13px; color: var(--ink-muted); }
.pd-actions { grid-column: 2; grid-row: 1 / span 2; display: flex; gap: 8px; }
@media (min-width: 1024px) {
  .pd-head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 22px; }
  .pd-head__side { justify-items: end; text-align: end; grid-template-columns: auto; }
  .pd-price__note { grid-row: auto; }
  .pd-actions { grid-column: auto; grid-row: auto; order: -1; margin-bottom: 10px; }
}

/* Gallery */
.gallery { position: relative; margin-inline: calc(var(--gutter) * -1); }
.gallery__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__item { position: relative; scroll-snap-align: start; aspect-ratio: 4 / 3; overflow: hidden; background: var(--primary-soft); cursor: zoom-in; padding: 0; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__count { position: absolute; bottom: 12px; inset-inline-start: 12px; background: rgb(20 24 28 / .7); color: #fff; font-size: 12.5px; padding: 4px 10px; border-radius: 999px; backdrop-filter: blur(6px); font-family: var(--font-latin); pointer-events: none; }
.gallery__all { position: absolute; bottom: 12px; inset-inline-end: 12px; --h: 38px; padding-inline: 14px; font-size: 13.5px; gap: 8px; }
@media (min-width: 768px) {
  .gallery { margin-inline: 0; }
  .gallery__track { grid-auto-flow: row; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; grid-auto-columns: auto; height: clamp(360px, 42vw, 520px); gap: 10px; overflow: hidden; border-radius: 10px; }
  .gallery__item { aspect-ratio: auto; border-radius: 0; }
  .gallery__item--main { grid-row: 1 / span 2; }
  .gallery__item:nth-child(n+6) { display: none; }
  .gallery[data-count="1"] .gallery__track { grid-template-columns: 1fr; }
  .gallery[data-count="2"] .gallery__track { grid-template-columns: 2fr 1fr; }
  .gallery[data-count="2"] .gallery__item:nth-child(2) { grid-row: 1 / span 2; }
  .gallery[data-count="3"] .gallery__track { grid-template-columns: 2fr 1fr; }
  .gallery[data-count="4"] .gallery__item:nth-child(4) { grid-column: 2 / span 2; }
  .gallery__count { display: none; }
  .gallery__all { bottom: 16px; inset-inline-end: 16px; }
}

.pd-layout { display: grid; gap: 28px; margin-top: 24px; }
@media (min-width: 1024px) { .pd-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 44px; margin-top: 32px; align-items: start; } }

.pd-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 10px; }
.pd-specs li { display: grid; justify-items: start; gap: 2px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.pd-specs .ic { width: 22px; height: 22px; color: var(--primary); stroke-width: 1.5; margin-bottom: 6px; }
.pd-specs strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; }
.pd-specs span { font-size: 12.5px; color: var(--ink-muted); }

.pd-sec { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.pd-sec__title { font-size: 21px; font-weight: 800; margin-bottom: 14px; }
.pd-desc { font-size: 16px; line-height: 2; color: var(--ink); max-width: 68ch; }
.pd-features { display: grid; gap: 12px 24px; }
@media (min-width: 640px) { .pd-features { grid-template-columns: 1fr 1fr; } }
.pd-features li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.tick { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--price); }
.tick .ic { width: 14px; height: 14px; stroke-width: 2.6; }
.pd-facts { display: grid; margin: 0; }
@media (min-width: 640px) { .pd-facts { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.pd-facts div { display: flex; justify-content: space-between; gap: 12px; padding-block: 12px; border-bottom: 1px dashed var(--border-strong); }
.pd-facts dt { color: var(--ink-muted); font-size: 14px; }
.pd-facts dd { margin: 0; font-weight: 600; font-size: 14.5px; text-align: end; }

.pd-map { position: relative; height: 260px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.pd-map__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.pd-map__pin { position: absolute; top: 42%; left: 50%; translate: -50% -100%; width: 44px; height: 44px; display: grid; place-items: center; color: var(--primary); }
.pd-map__pin .ic { width: 44px; height: 44px; filter: drop-shadow(0 6px 10px rgb(0 0 0 / .25)); }
.pd-map__pin::after { content: ""; position: absolute; bottom: -8px; left: 50%; width: 16px; height: 6px; translate: -50% 0; border-radius: 50%; background: rgb(0 0 0 / .2); }
.pd-map__pin::before { content: ""; position: absolute; left: 50%; bottom: -14px; width: 60px; height: 60px; translate: -50% 50%; border-radius: 50%; border: 2px solid var(--primary); opacity: 0; animation: ping 2.4s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(.2); opacity: .7; } 100% { transform: scale(1.4); opacity: 0; } }
.pd-map__card { position: absolute; inset-inline-start: 14px; bottom: 14px; inset-inline-end: 14px; max-width: 340px; display: grid; gap: 2px; background: var(--surface); padding: 12px 16px; border-radius: 8px; box-shadow: var(--shadow-float); }
.pd-map__card span { font-size: 12.5px; color: var(--ink-muted); }
.pd-map__card .link-arrow { margin-top: 6px; font-size: 13.5px; }

/* Mortgage calculator */
.calc__hint { color: var(--ink-muted); font-size: 13.5px; margin: -6px 0 16px; }
.calc__grid { display: grid; gap: 18px; }
@media (min-width: 768px) { .calc__grid { grid-template-columns: 1fr 260px; align-items: stretch; } }
.calc__inputs { display: grid; gap: 18px; }
.range label { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.range output { font-family: var(--font-display); color: var(--price); }
.range input { --fill: 50%; width: 100%; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 6px; background: linear-gradient(to left, var(--primary) var(--fill), var(--border) var(--fill)); outline: none; cursor: pointer; }
[dir="ltr"] .range input { background: linear-gradient(to right, var(--primary) var(--fill), var(--border) var(--fill)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: 0 2px 8px rgb(139 109 71 / .35); transition: transform .2s; }
.range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); }
.range input:active::-webkit-slider-thumb { transform: scale(1.15); }
.range input:focus-visible::-webkit-slider-thumb { outline: 3px solid rgb(139 109 71 / .35); }
.calc__result { display: grid; align-content: center; gap: 4px; padding: 20px; border-radius: 10px; background: var(--dark); color: #fff; }
.calc__result > span { font-size: 13px; color: #CFC8BD; }
.calc__result strong { font-family: var(--font-display); font-size: 30px; font-weight: 800; color: #E3C79F; }
.calc__result dl { margin: 10px 0 0; display: grid; gap: 6px; border-top: 1px solid rgb(255 255 255 / .12); padding-top: 10px; }
.calc__result dl div { display: flex; justify-content: space-between; font-size: 13px; }
.calc__result dt { color: #CFC8BD; }
.calc__result dd { margin: 0; font-weight: 600; }

/* Contact card */
.pd-side { min-width: 0; }
@media (min-width: 1024px) { .pd-side { position: sticky; top: calc(var(--header-h) + 18px); } }
.agent { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 20px; box-shadow: var(--shadow-card); display: grid; gap: 16px; }
.agent__head { display: flex; align-items: center; gap: 12px; }
.agent__avatar { width: 54px; height: 54px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--bg-cream); border: 1px solid var(--border); }
.agent__avatar img { width: 36px; }
.agent__head strong { display: block; font-family: var(--font-display); font-size: 16px; }
.agent__head span { font-size: 12.5px; color: var(--ink-muted); }
.agent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent__btns .btn { --h: 46px; padding-inline: 10px; font-size: 14px; gap: 8px; }
.visit { display: grid; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.visit__title { font-size: 16px; font-weight: 800; }
.visit__days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.day { position: relative; }
.day input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.day span { display: grid; justify-items: center; padding: 8px 2px; border: 1px solid var(--border-strong); border-radius: 8px; transition: all .25s var(--ease-out); }
.day small { font-size: 11.5px; color: var(--ink-muted); }
.day strong { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.day input:checked + span { border-color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary); }
.day input:checked + span small { color: var(--price); }
.day input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.visit__error { color: #B3261E; font-size: 13px; background: #FDECEA; padding: 8px 12px; border-radius: 6px; }
.agent__license { font-size: 12px; color: var(--ink-muted); text-align: center; }
.agent__license span { color: var(--ink); font-weight: 600; }

/* Similar */
.similar { margin-block: 48px 64px; }
.similar__head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 18px; }
.similar__grid { display: grid; gap: 18px; perspective: 1200px; }
@media (min-width: 640px) { .similar__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .similar__grid { grid-template-columns: repeat(3, 1fr); } }

/* Mobile sticky action bar */
.pd-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 110; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgb(255 255 255 / .95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgb(47 58 69 / .06); transition: transform .45s var(--ease-out); }
.pd-bar[hidden] { display: none; }
.pd-bar__price { display: grid; min-width: 0; }
.pd-bar__price strong { font-family: var(--font-display); color: var(--price); font-size: 17px; font-weight: 800; white-space: nowrap; }
.pd-bar__price strong small { font-size: 11px; }
.pd-bar__price span { font-size: 11.5px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-bar .btn { --h: 44px; padding-inline: 14px; font-size: 14px; gap: 6px; }
.has-pd-bar .tabbar, .has-pd-bar .wa-fab { display: none; }
@media (min-width: 1024px) { .pd-bar { display: none !important; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgb(14 17 20 / .96); display: grid; grid-template-rows: auto 1fr auto; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); color: #fff; }
.lightbox[hidden] { display: none; }
.lightbox__top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.lightbox__count { font-family: var(--font-latin); font-size: 14px; color: #CFC8BD; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; padding-inline: 12px; overflow: hidden; touch-action: pan-y; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; user-select: none; }
.lightbox__nav { position: absolute; top: 50%; translate: 0 -50%; width: 52px; height: 52px; border-radius: 50%; display: none; place-items: center; background: rgb(255 255 255 / .1); color: #fff; transition: background-color .25s; }
.lightbox__nav:hover { background: rgb(255 255 255 / .2); }
.lightbox__nav .ic { width: 24px; height: 24px; }
.lightbox__nav--prev { inset-inline-start: 20px; }
.lightbox__nav--next { inset-inline-end: 20px; }
@media (min-width: 768px) { .lightbox__nav { display: grid; } }
.lightbox__thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 16px; justify-content: safe center; scrollbar-width: none; }
.lightbox__thumbs button { flex: none; width: 72px; height: 52px; border-radius: 6px; overflow: hidden; opacity: .5; outline: 2px solid transparent; transition: opacity .25s, outline-color .25s; padding: 0; }
.lightbox__thumbs button.is-active { opacity: 1; outline-color: var(--primary-tint); }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.page-lead { font-size: clamp(16px, 1.5vw, 20px); color: var(--ink-muted); max-width: 52ch; line-height: 1.85; }
.page-lead .gold { color: var(--price); font-weight: 600; }
.page-hero--tall { padding-block: 32px 40px; }
@media (min-width: 1024px) { .page-hero--tall { padding-block: 56px 64px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 700; color: var(--price); letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: var(--primary); }

.story { display: grid; gap: 28px; padding-block: 48px; align-items: center; }
.story__media { position: relative; margin: 0; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--primary-soft); }
.story__media img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.story__badge { position: absolute; inset-inline-end: 16px; bottom: 16px; display: grid; background: rgb(255 255 255 / .92); backdrop-filter: blur(8px); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-float); }
.story__badge strong { font-family: var(--font-display); font-size: 18px; }
.story__badge span { font-size: 12.5px; color: var(--ink-muted); }
.story__body { display: grid; gap: 14px; }
.story__title { font-size: clamp(24px, 2.6vw, 34px); font-weight: 800; line-height: 1.45; }
.story__body p { color: var(--ink-muted); font-size: 16px; line-height: 1.95; max-width: 60ch; }
.story__points { display: grid; gap: 10px; margin-top: 6px; }
.story__points li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
@media (min-width: 1024px) { .story { grid-template-columns: 1fr 1.05fr; gap: 64px; padding-block: 80px; } .story__media { aspect-ratio: 5 / 5.2; } }

.stats--band { background: var(--surface); border-block: 1px solid var(--border); padding-block: 26px; }
@media (min-width: 1024px) { .stats--band { padding-block: 34px; } }

.pillars__grid { display: grid; gap: 16px; }
@media (min-width: 768px) { .pillars__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.pillar { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 26px 24px; display: grid; gap: 10px; align-content: start; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.pillar::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; height: 3px; width: 100%; background: var(--primary); transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.pillar:hover::after { transform: scaleX(1); }
.pillar__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 12px; background: var(--primary-soft); color: var(--price); margin-bottom: 6px; }
.pillar__icon .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.pillar h3 { font-size: 20px; font-weight: 800; }
.pillar p { color: var(--ink-muted); line-height: 1.9; }
.pillar__values { display: flex; flex-wrap: wrap; gap: 8px; }
.pillar__values li { padding: 6px 14px; border-radius: 999px; background: var(--bg); border: 1px solid var(--border); font-weight: 600; font-size: 14px; }

.process { background: var(--dark); color: #fff; padding-block: 56px; position: relative; overflow: hidden; }
.process::before { content: ""; position: absolute; inset-inline-start: -80px; top: -60px; width: 360px; height: 320px; background: url("../img/logo-mark-gold.svg") no-repeat center / contain; opacity: .08; }
.process .sec-title { color: #fff; }
.process .sec-sub { color: #CFC8BD; }
.process__list { --line: 0; position: relative; display: grid; gap: 14px; counter-reset: step; }
.step { position: relative; display: grid; gap: 8px; padding: 22px 20px; border-radius: 10px; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); transition: background-color .4s, border-color .4s; }
.step:hover { background: rgb(255 255 255 / .07); border-color: rgb(176 141 94 / .5); }
.step__num { position: absolute; inset-inline-end: 18px; top: 14px; font-family: var(--font-latin); font-size: 34px; font-weight: 600; color: rgb(227 199 159 / .18); line-height: 1; }
.step__icon { width: 50px; height: 50px; display: grid; place-items: center; border-radius: 50%; background: var(--primary); color: #fff; position: relative; z-index: 1; }
.step__icon .ic { width: 24px; height: 24px; }
.step h3 { font-size: 18px; font-weight: 800; margin-top: 6px; }
.step p { color: #CFC8BD; font-size: 14.5px; line-height: 1.85; }
@media (min-width: 1024px) {
  .process { padding-block: 80px; }
  .process__list { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .process__list::before { content: ""; position: absolute; top: 47px; inset-inline: 12%; height: 1px; background: linear-gradient(to left, var(--primary-tint), rgb(176 141 94 / .2)); transform: scaleX(var(--line)); transform-origin: right; z-index: 0; }
  .step { background: transparent; border-color: transparent; padding-top: 22px; }
}

.page--about .services { padding-block: 56px; }
@media (min-width: 1024px) { .page--about .services { padding-block: 80px 72px; } }
.page--about .cta { padding-block: 44px; }

/* =========================================================
   CONTACT PAGE
   ========================================================= */
.contact { display: grid; gap: 24px; padding-block: 28px 48px; }
@media (min-width: 1024px) { .contact { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-block: 44px 64px; align-items: start; } }
.contact__form-wrap { min-width: 0; }
.cform, .csuccess { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-card); padding: 22px 18px; display: grid; gap: 18px; }
@media (min-width: 768px) { .cform, .csuccess { padding: 32px; gap: 22px; } }
.cform__title { font-size: 24px; font-weight: 800; }
.cform__hint { margin-top: -12px; font-size: 13px; color: var(--ink-muted); }
.req { color: #B3261E; }
.cform__grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .cform__grid { grid-template-columns: 1fr 1fr; } }
.field--full { grid-column: 1 / -1; }
.field label, .flabel { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.cform .finput, .cform .select select { height: 48px; }
.cform .finput input, .cform select { font-size: 15px; }
.cform .field.has-error .finput, .cform .field.has-error .ftext { border-color: #B3261E; box-shadow: 0 0 0 3px rgb(179 38 30 / .1); }
.ferr { color: #B3261E; font-size: 12.5px; margin-top: 6px; }
.ftext { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .25s, box-shadow .25s; }
.ftext:hover { border-color: var(--primary-tint); }
.ftext:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgb(139 109 71 / .15); }
.ftext textarea { display: block; width: 100%; min-height: 120px; resize: vertical; border: 0; background: transparent; padding: 12px 12px 26px; font: inherit; font-size: 15px; line-height: 1.8; outline: none; }
.ftext__count { position: absolute; inset-inline-end: 10px; bottom: 6px; font-size: 11.5px; color: var(--ink-subtle); font-family: var(--font-latin); }
.topics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (min-width: 768px) { .topics { grid-template-columns: repeat(4, 1fr); } }
.topic { position: relative; }
.topic input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.topic span { display: grid; justify-items: center; text-align: center; gap: 8px; height: 100%; padding: 14px 8px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-muted); transition: all .3s var(--ease-out); }
.topic .ic { width: 24px; height: 24px; color: var(--ink-subtle); transition: color .3s, transform .4s var(--ease-out); }
.topic:hover span { border-color: var(--primary-tint); }
.topic input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--primary); }
.topic input:checked + span .ic { color: var(--price); transform: scale(1.1); }
.topic input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.seg--wrap { flex-wrap: wrap; }
.seg--wrap label { min-width: 110px; }
.cform__extra { overflow: hidden; }
.cform .check a { color: var(--price); text-decoration: underline; text-underline-offset: 3px; }
.cform__submit { justify-self: stretch; }
@media (min-width: 640px) { .cform__submit { justify-self: start; min-width: 220px; } }
.check.has-error .check__box { border-color: #B3261E; }

.csuccess { justify-items: center; text-align: center; padding-block: 48px; outline: none; }
.csuccess__icon { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: #E8F3EC; color: #1E6B43; }
.csuccess__icon .ic { width: 34px; height: 34px; stroke-width: 2.4; }
.csuccess h2 { font-size: 26px; font-weight: 800; }
.csuccess p { color: var(--ink-muted); max-width: 46ch; line-height: 1.9; }
.csuccess__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

.contact__side { display: grid; gap: 16px; }
@media (min-width: 1024px) { .contact__side { position: sticky; top: calc(var(--header-h) + 18px); } }
.channels { display: grid; gap: 10px; }
.channel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; transition: border-color .3s, transform .4s var(--ease-out), box-shadow .4s; }
.channel:hover { border-color: var(--primary-tint); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.channel > span:nth-child(2) { display: grid; flex: 1; min-width: 0; }
.channel strong { font-family: var(--font-display); font-size: 15px; }
.channel bdi { color: var(--ink-muted); font-size: 14px; text-align: start; }
.channel__icon { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--price); }
.channel__icon--wa { background: #E6F4EC; color: #117A4B; }
.channel__arrow { color: var(--ink-subtle); transition: transform .35s var(--ease-out), color .3s; }
.channel:hover .channel__arrow { transform: translateX(-5px); color: var(--price); }
[dir="ltr"] .channel__arrow { transform: scaleX(-1); }
.hours { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.hours__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.hours__head strong { font-family: var(--font-display); flex: 1; }
.hours__status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.hours__status.is-open { background: #E8F3EC; color: #1E6B43; }
.hours__status.is-closed { background: #F4EEE7; color: var(--ink-muted); }
.hours dl { margin: 0; display: grid; }
.hours dl div { display: flex; justify-content: space-between; padding-block: 9px; border-top: 1px dashed var(--border-strong); font-size: 14px; }
.hours dt { color: var(--ink-muted); }
.hours dd { margin: 0; font-weight: 600; }
.pd-map--sm { height: 230px; }

.faq { background: var(--surface); border-top: 1px solid var(--border); }
.faq__inner { max-width: 860px; }
.faq__list { display: grid; gap: 10px; }
.qa { border: 1px solid var(--border); border-radius: 10px; background: var(--bg); transition: border-color .3s, background-color .3s; }
.qa[open] { border-color: var(--primary-tint); background: var(--surface); box-shadow: var(--shadow-card); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 700; font-size: 15.5px; }
.qa summary::-webkit-details-marker { display: none; }
.qa__icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--primary-soft); color: var(--price); transition: transform .45s var(--ease-out), background-color .3s, color .3s; }
.qa__icon .ic { width: 16px; height: 16px; }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--primary); color: #fff; }
.qa__body { overflow: hidden; }
.qa__body p { padding: 0 18px 18px; color: var(--ink-muted); line-height: 1.95; max-width: 70ch; }

/* =========================================================
   English / LTR — typography + mirrored motion
   ========================================================= */
html[lang="en"] { --font-display: "Kanit", "Cairo", system-ui, sans-serif; }
html[lang="en"] .hero__title { letter-spacing: -.01em; line-height: 1.18; }
.header__lang[lang="ar"], .drawer__lang[lang="ar"] { font-family: var(--font); letter-spacing: 0; }

[dir="ltr"] .btn--primary::after { transform: translateX(-120%); }
[dir="ltr"] .btn--primary:hover::after { transform: translateX(120%); }
[dir="ltr"] .btn:hover .ic-arrow,
[dir="ltr"] .link-arrow:hover .ic, [dir="ltr"] a:hover > .link-arrow .ic, [dir="ltr"] .service-card:hover .link-arrow .ic,
[dir="ltr"] .channel:hover .channel__arrow { transform: scaleX(-1) translateX(-5px); }
[dir="ltr"] .preloader__bar span, [dir="ltr"] .scroll-progress span, [dir="ltr"] .more__bar span, [dir="ltr"] .pillar::after { transform-origin: left; }
[dir="ltr"] .scroll-progress span { background: linear-gradient(to right, var(--primary), var(--primary-tint)); }
@media (min-width: 1024px) {
  [dir="ltr"] .nav__link::after { transform-origin: right; }
  [dir="ltr"] .nav__link:hover::after, [dir="ltr"] .nav__link.is-active::after { transform-origin: left; }
  [dir="ltr"] .hero__fade { background:
      linear-gradient(to left, transparent 66%, rgb(247 246 243 / .6) 84%, var(--bg) 97%),
      linear-gradient(to bottom, rgb(247 246 243 / .35), transparent 14%, transparent 86%, rgb(247 246 243 / .5)); }
  [dir="ltr"] .hero__img { object-position: 100% 100%; }
  [dir="ltr"] .process__list::before { background: linear-gradient(to right, var(--primary-tint), rgb(176 141 94 / .2)); transform-origin: left; }
}
[dir="ltr"] .cta::before { background: linear-gradient(to right, rgb(31 36 40 / .72) 0%, rgb(31 36 40 / .35) 45%, rgb(31 36 40 / .78) 82%); }

/* spam trap (hidden from people and assistive tech) */
.hp { position: absolute !important; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
button[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* =========================================================
   News & articles
   ========================================================= */
.news { padding-block: 28px 56px; }
.news-cats { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; padding-bottom: 2px; }
.news-cats::-webkit-scrollbar { display: none; }
.nchip { flex: none; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 14px; color: var(--ink-muted); transition: all .25s var(--ease-out); }
.nchip:hover { border-color: var(--primary); color: var(--price); }
.nchip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.news-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--ink-muted); }
.news-meta > * + *::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: var(--border-strong); margin-inline-end: 14px; vertical-align: middle; }
.news-meta__cat { color: var(--price); font-weight: 700; }
.news-meta__cat:hover { text-decoration: underline; }
.news-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ncard, .nfeature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: box-shadow .4s var(--ease-out), transform .4s var(--ease-out); }
.ncard:hover, .nfeature:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.ncard__media, .nfeature__media { display: block; overflow: hidden; aspect-ratio: 16 / 10; background: var(--primary-soft); }
.ncard__media img, .nfeature__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.ncard:hover img, .nfeature:hover img { transform: scale(1.05); }
.ncard__body, .nfeature__body { padding: 18px 20px 20px; display: grid; gap: 10px; align-content: start; flex: 1; }
.ncard__title { font-size: 18px; line-height: 1.5; }
.ncard__title a, .nfeature__title a { background: linear-gradient(currentColor, currentColor) no-repeat 100% 100% / 0 1px; transition: background-size .4s var(--ease-out), color .2s; }
.ncard:hover .ncard__title a, .nfeature:hover .nfeature__title a { color: var(--price); background-size: 100% 1px; }
.ncard__excerpt { color: var(--ink-muted); font-size: 14.5px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .link-arrow, .nfeature .link-arrow { margin-top: auto; font-size: 14px; }
.nfeature { margin-bottom: 26px; }
.nfeature__title { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; }
.nfeature__excerpt { color: var(--ink-muted); line-height: 1.9; }
@media (min-width: 900px) {
  .nfeature { display: grid; grid-template-columns: 1.25fr 1fr; }
  .nfeature__media { aspect-ratio: auto; min-height: 380px; }
  .nfeature__body { padding: 36px 40px; align-content: center; gap: 14px; }
}
.news-empty { text-align: center; padding: 50px 16px; display: grid; justify-items: center; gap: 14px; color: var(--ink-muted); }
.npager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.npager a { min-width: 42px; height: 42px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; }
.npager a:hover { border-color: var(--primary); color: var(--price); }
.npager a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* article */
.article__head { padding-top: 26px; display: grid; gap: 12px; max-width: 900px; }
.article__title { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.35; font-weight: 800; }
.article__lead { font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-muted); line-height: 1.9; }
.article__cover { margin-block: 26px 10px; }
.article__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
.article__layout { display: grid; gap: 28px; padding-block: 18px 48px; }
@media (min-width: 1024px) {
  .article__layout { grid-template-columns: minmax(0, 760px) 1fr; gap: 56px; }
  .article__share { position: sticky; top: calc(var(--header-h) + 30px); align-self: start; flex-direction: column; align-items: flex-start; }
}
.article__share { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.article__share > span { font-weight: 700; font-size: 14px; color: var(--ink-muted); }
.share-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border-strong); background: var(--surface); color: var(--ink); cursor: pointer; transition: all .25s var(--ease-out); }
.share-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.article-missing { padding-block: 70px; display: grid; justify-items: start; gap: 14px; }
.related-news { padding-top: 10px; }
.related-news .sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.prose { font-size: 17px; line-height: 2; color: #33404C; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(22px, 2.2vw, 27px); line-height: 1.45; margin-top: 1.8em; }
.prose h3 { font-size: 20px; margin-top: 1.5em; }
.prose h4 { font-size: 17px; margin-top: 1.3em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--primary); font-weight: 700; }
.prose a { color: var(--price); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--primary-hover); }
.prose strong { color: var(--ink); }
.prose blockquote { margin-inline: 0; padding: 18px 22px; border-inline-start: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-family: var(--font-display); font-size: 18px; line-height: 1.8; color: var(--ink); }
[dir="rtl"] .prose blockquote { border-radius: var(--radius-md) 0 0 var(--radius-md); }
.prose img { border-radius: var(--radius-md); margin-block: 1.4em; }
.prose figcaption { font-size: 13.5px; color: var(--ink-subtle); text-align: center; margin-top: -.6em; }
.prose hr { border: 0; border-top: 1px solid var(--border); margin-block: 2em; }
html[lang="en"] .prose { line-height: 1.8; }

/* =========================================================
   Consent banner
   ========================================================= */
.consent { position: fixed; z-index: 120; inset-inline: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 12px); display: grid; gap: 12px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-float); opacity: 0; transform: translateY(20px); transition: opacity .4s var(--ease-out), transform .4s var(--ease-out); }
.consent.is-in { opacity: 1; transform: none; }
.consent.is-out { opacity: 0; transform: translateY(20px); }
.consent p { font-size: 14px; color: var(--ink-muted); line-height: 1.8; }
.consent__btns { display: flex; gap: 10px; }
.consent__btns .btn { flex: 1; min-height: 44px; }
.footer__consent { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer__consent:hover { color: var(--primary); }
@media (min-width: 1024px) {
  .consent { inset-inline: 24px auto; bottom: 24px; width: 420px; }
}

/* legal pages */
.legal { padding-block: 28px 64px; }
.legal .prose { max-width: 820px; }
.legal__lead { font-size: 18px; color: var(--ink); font-weight: 600; }
/* footer credit */
.footer__credit { color: var(--ink-muted); }
.footer__credit strong { color: #0B6A61; font-weight: 700; letter-spacing: .01em; }
/* property page: reserve the viewport while the listing renders (no footer jump / CLS) */
.page--detail { min-height: 100vh; min-height: 100svh; }
/* footer bottom: keep the WhatsApp button from covering the last line */
.footer__legal { flex-wrap: wrap; justify-content: center; row-gap: 4px; }
.footer__legal a, .footer__consent { white-space: nowrap; }
@media (max-width: 1023px) { .footer__bottom { padding-bottom: 78px; } .footer__legal { column-gap: 16px; } .footer__legal > span[aria-hidden] { display: none; } }
@media (min-width: 1024px) { .footer__bottom { padding-inline-end: 104px; } }
