/* ==========================================================================================================
   dn-site-2026.css — the approved 2026 redesign, shared parts (owner 2026-10-10, design: dandelion-redesign-html/README.md).
   Binding tokens: ink #131313 · bone #e3edf8 · paper #FFFDF8 · gold #007bff (lines/icons only) · warm gold #007bff ·
   dark-gold text #0056b3 · warm grey #69645D · WhatsApp #25D366 (with ink text). Manrope (EN), Vazirmatn (FA), IBM Plex Sans Arabic (AR).
   This file styles the HEADER (the Zoho header kept, re-skinned to Header.dc.html) and the FOOTER (rebuilt by js/dn-site-2026.js
   from Footer.dc.html) on every page, plus the floating contact button. Page bodies are restyled page by page.
   ========================================================================================================== */
:root {
  --dn26-ink: #131313; --dn26-bone: #e3edf8; --dn26-paper: #FFFDF8; --dn26-gold: #007bff; --dn26-gold-warm: #007bff;
  --dn26-gold-ink: #0056b3; --dn26-grey: #69645D; --dn26-line: #cadaec; --dn26-line-gold: #83abd5; --dn26-wa: #25D366;
  --dn26-font: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}
html[lang^="fa"], html[dir="rtl"]:not([lang^="ar"]) { --dn26-font: "Vazirmatn", system-ui, Tahoma, Arial, sans-serif; }
html[lang^="ar"] { --dn26-font: "IBM Plex Sans Arabic", "Vazirmatn", system-ui, Tahoma, Arial, sans-serif; }

/* ---------- Header (Header.dc.html) ---------- */
html body .zpheader-style-04.theme-header-fixed, html body [data-headercontainer] > .theme-header-fixed { background: var(--dn26-bone) !important; }
html body .theme-header > .zpcontainer, html body .theme-header > .zpcontainer:not(.theme-responsive-menu-area) { background: transparent !important; box-shadow: none !important; }
html body .theme-header {
  background: var(--dn26-bone) !important;
  border-bottom: 1px solid #bed3e9 !important;
  box-shadow: none !important;
}
html body .theme-header > .zpcontainer:not(.theme-responsive-menu-area) {
  max-width: 1280px !important; width: 100% !important; min-height: 76px !important;
  padding-inline: 32px !important; box-sizing: border-box !important; gap: 28px;
  display: flex !important; align-items: center !important;
}
/* Burger mode (owner 2026-11-01 «logo bere samt kenar tar motegharen menu hambergeri»): the logo's outer margin = the burger's; the PNG has about 5 px of clear edge at this size, hence the extra -5 px */
@media (max-width: 991px) {
  html body .theme-header > .zpcontainer:not(.theme-responsive-menu-area) { padding-inline: 0 !important; margin-inline-start: -5px !important; }
  html body .theme-header .theme-logo-parent a { justify-content: flex-start; padding-inline-start: 0 !important; }
}
@media (max-width: 900px) {
  html body .theme-header > .zpcontainer:not(.theme-responsive-menu-area) { margin-inline-start: -13px !important; }
}
html body .theme-header .theme-logo-parent img,
html body .theme-header img[data-zs-logo] { height: 52px !important; width: auto !important; max-height: 52px !important; }
html body .theme-header .theme-menu > ul > li > a,
html body .theme-header .theme-menu > ul > li > a .theme-menu-name {
  font-family: var(--dn26-font) !important; font-size: 14px !important; font-weight: 700 !important; color: var(--dn26-ink) !important;
  letter-spacing: 0 !important; text-transform: none !important;
}
html body .theme-header .theme-menu > ul > li > a { padding: 4px 0 !important; border-bottom: 2px solid transparent !important; background: none !important; }
html body .theme-header .theme-menu > ul > li { margin-inline-end: 18px !important; }
html body .theme-header .theme-menu > ul > li.theme-menu-selected > a { border-bottom-color: var(--dn26-gold) !important; }
html body .theme-header .theme-menu > ul > li.theme-menu-selected > a::after,
html body .theme-header .theme-menu > ul > li > a::after { display: none !important; }
html body .theme-header .theme-menu > ul > li > a:hover { border-bottom-color: var(--dn26-line-gold) !important; }
html body .theme-header .theme-menu li[data-dn-sub] > a .theme-sub-li-menu { border-color: var(--dn26-gold) !important; }
/* the Tools drop-down */
html body .theme-header .theme-menu li[data-dn-sub] > ul.theme-sub-menu {
  background: var(--dn26-paper) !important; border: 1px solid var(--dn26-line) !important; border-radius: 12px !important;
  box-shadow: 0 18px 40px -18px rgba(19,19,19,.28) !important;
}
html body .theme-header .theme-menu li[data-dn-sub] > ul.theme-sub-menu > li > a { font-family: var(--dn26-font) !important; font-size: 14px !important; font-weight: 700 !important; color: var(--dn26-ink) !important; }
html body .theme-header .theme-menu li[data-dn-sub] > ul.theme-sub-menu > li > a:hover { background: var(--dn26-bone) !important; }
/* language pills: EN · FA · AR, the current one ink (desktop; the phone header keeps its own segmented control) */
@media (min-width: 901px) {
html body .dn-header-lang a, html body .dn-header-lang button, html body .dn-header-lang span[aria-current] {
  font-family: var(--dn26-font) !important; font-size: 14px !important; font-weight: 800 !important; color: var(--dn26-ink) !important;
  border-radius: 999px !important; padding: 7px 10px !important; background: transparent !important; border: 0 !important; box-shadow: none !important;
}
html body .dn-header-lang [aria-current], html body .dn-header-lang .is-active, html body .dn-header-lang .active {
  background: var(--dn26-ink) !important; color: var(--dn26-bone) !important; padding: 7px 12px !important;
}
html body .dn-header-lang { background: transparent !important; border: 0 !important; box-shadow: none !important; }
}
html body .theme-header-topbar { background: var(--dn26-bone) !important; }

/* ---------- Footer (owner 2026-10-28 "HAMIYAN PAYDAR — COMPLETE FOOTER REDESIGN", built by js/dn-site-2026.js) ----------
   Permanently dark in light, dark and system mode, in the dark theme's own neutrals (--ft-bg/--ft-text/--ft-text-2/--ft-line,
   css/dn-theme-2026.css section 6; owner 2026-10-28 «hamin rang site to halat tire»); every button / accent / focus colour comes from the theme tokens through the
   footer aliases --ft-* (css/dn-theme-2026.css section 6), so a theme switch repaints them at once. Selectors start at
   .theme-footer-area to outrank the legacy Zoho footer rules. */
html body .theme-footer-area.dn26-footer-on { background: var(--ft-bg, #212121) !important; padding: 0 !important; border-top: 1px solid var(--ft-line, #424242) !important; color-scheme: dark; }
html body .theme-footer-area.dn26-footer-on > :not(.dn26-footer) { display: none !important; }
/* the floating Contact button's reserve moves from <body> into the footer's bottom bar */
html body:has(.dn26-footer-on) { padding-bottom: 0 !important; }
@media (max-width: 900px) {
  /* full bleed past the 8px public gutter */
  html body .theme-footer-area.dn26-footer-on { width: 100vw !important; max-width: 100vw !important; margin-inline: calc(50% - 50vw) !important; }
}
html body .theme-footer-area .dnf {
  --f-bg: var(--ft-bg, #212121); --f-text: var(--ft-text, #F5F5F5); --f-text-2: var(--ft-text-2, #B4B4B4); --f-line: var(--ft-line, #424242);
  background: var(--f-bg); color: var(--f-text-2); font-family: var(--dn26-font);
}
html body .theme-footer-area .dnf * { box-sizing: border-box; letter-spacing: normal; }
html body .theme-footer-area .dnf :is(p, a, h2, ul, li, span, small, address, div, nav, details, summary) { min-height: 0 !important; margin: 0 !important; padding: 0 !important; text-align: start !important; background: none; border: 0; }
html body .theme-footer-area .dnf ul { list-style: none !important; }
html body .theme-footer-area .dnf li::before, html body .theme-footer-area .dnf li::marker { content: none !important; }
html body .theme-footer-area .dnf a { text-decoration: none !important; }

html body .theme-footer-area .dnf .dnf-in {
  max-width: 1280px; margin: 0 auto !important; padding: 72px 32px 0 !important;
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr) minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px;
}
html body .theme-footer-area .dnf .dnf-col { min-width: 0; }
/* 1. brand */
html body .theme-footer-area .dnf .dnf-brand { display: flex; flex-direction: column; gap: 14px; }
html body .theme-footer-area .dnf .dnf-logo { display: inline-block; align-self: flex-start; }
/* fa/ar, brand in its own column: the logo sits in the middle of the column (owner 2026-10-29 «vasat sotonesh ta balanc bashe») */
@media (min-width: 1101px) { html[dir="rtl"] body .theme-footer-area .dnf .dnf-logo { align-self: center; } html[dir="rtl"] body .theme-footer-area .dnf .dnf-name { text-align: center !important; } }
html body .theme-footer-area .dnf .dnf-logo img { height: 88px; width: auto; display: block; }
html body .theme-footer-area .dnf .dnf-name { font-size: 12px !important; line-height: 1.5 !important; font-weight: 600 !important; color: var(--f-text-2) !important; }
html body .theme-footer-area .dnf .dnf-tag { font-size: 20px !important; line-height: 1.35 !important; font-weight: 700 !important; color: var(--f-text) !important; }
html body .theme-footer-area .dnf .dnf-text { font-size: 14px !important; line-height: 1.7 !important; font-weight: 400 !important; color: var(--f-text-2) !important; max-width: 40ch; }
html body .theme-footer-area .dnf .dnf-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px !important; }
html body .theme-footer-area .dnf .dnf-social-a {
  width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--f-line) !important; color: var(--f-text-2) !important;
  display: inline-flex !important; align-items: center; justify-content: center; transition: background-color .15s, color .15s, border-color .15s;
}
/* titles */
html body .theme-footer-area .dnf .dnf-h { font: 700 14px/1.4 var(--dn26-font) !important; color: var(--f-text) !important; text-transform: none !important; letter-spacing: .02em !important; }
html[dir="rtl"] body .theme-footer-area .dnf .dnf-h { letter-spacing: 0 !important; }
html body .theme-footer-area .dnf .dnf-sum { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 8px; cursor: default; }
html body .theme-footer-area .dnf .dnf-sum::-webkit-details-marker { display: none; }
html body .theme-footer-area .dnf .dnf-chev { display: none; flex: 0 0 16px; color: var(--f-text-2); transition: transform .2s; }
/* 2-4. link groups */
html body .theme-footer-area .dnf .dnf-list { display: flex; flex-direction: column; gap: 2px; margin-top: 16px !important; }
html body .theme-footer-area .dnf .dnf-list a {
  display: inline-flex !important; align-items: center; gap: 6px; min-height: 32px !important;
  font-size: 14px !important; line-height: 1.4 !important; font-weight: 400 !important; color: var(--f-text-2) !important; transition: color .15s;
}
html body .theme-footer-area .dnf .dnf-ext { opacity: .7; }
html body .theme-footer-area .dnf .dnf-nav-2 .dnf-group + .dnf-group { margin-top: 28px !important; }
/* 5. contact */
html body .theme-footer-area .dnf .dnf-contact { display: flex; flex-direction: column; gap: 16px; }
html body .theme-footer-area .dnf .dnf-lines { font-style: normal; display: flex; flex-direction: column; gap: 12px; }
html body .theme-footer-area .dnf .dnf-line { display: flex !important; align-items: flex-start; gap: 10px; font-size: 14px !important; line-height: 1.5 !important; font-weight: 400 !important; color: var(--f-text-2) !important; transition: color .15s; }
html body .theme-footer-area .dnf .dnf-line > span { display: flex; flex-direction: column; gap: 1px; }
html body .theme-footer-area .dnf .dnf-line small { font-size: 12px !important; line-height: 1.4 !important; color: var(--f-text-2) !important; opacity: .8; }
html body .theme-footer-area .dnf .dnf-ic { flex: 0 0 18px; margin-top: 1px; }
html body .theme-footer-area .dnf .dnf-wa .dnf-ic { color: var(--color-whatsapp, #25D366); }
html body .theme-footer-area .dnf .dnf-cta {
  align-self: flex-start; display: inline-flex !important; align-items: center; justify-content: center; min-height: 44px !important;
  padding: 0 22px !important; border-radius: var(--radius-pill, 999px); font: 600 14px/1 var(--dn26-font) !important;
  background: var(--ft-btn) !important; color: var(--ft-btn-text) !important; transition: background-color .15s;
}
/* hover / active / focus: theme tokens for the accents, the main neutral for text links */
html body .theme-footer-area .dnf .dnf-list a:hover, html body .theme-footer-area .dnf a.dnf-line:hover, html body .theme-footer-area .dnf .dnf-legal a:hover { color: var(--f-text) !important; }
html body .theme-footer-area .dnf .dnf-list a:hover { text-decoration: underline !important; text-decoration-color: var(--f-line) !important; text-underline-offset: 4px; }
html body .theme-footer-area .dnf .dnf-social-a:hover, html body .theme-footer-area .dnf .dnf-social-a:active { background: var(--ft-btn) !important; color: var(--ft-btn-text) !important; border-color: var(--ft-btn) !important; }
html body .theme-footer-area .dnf .dnf-cta:hover, html body .theme-footer-area .dnf .dnf-cta:active { background: var(--ft-btn-hover) !important; color: var(--ft-btn-text) !important; }
html body .theme-footer-area .dnf a:focus-visible, html body .theme-footer-area .dnf summary:focus-visible { outline: 2px solid var(--ft-focus) !important; outline-offset: 3px !important; border-radius: 8px; }
/* bottom bar */
html body .theme-footer-area .dnf .dnf-bottom {
  max-width: 1280px; margin: 56px auto 0 !important; padding: 24px 32px calc(var(--dn-ct-reserve, 72px) + 24px + env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--f-line) !important; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
}
html body .theme-footer-area .dnf .dnf-copy { font-size: 14px !important; line-height: 1.6 !important; color: var(--f-text-2) !important; }
html body .theme-footer-area .dnf .dnf-orn { white-space: nowrap; }
html body .theme-footer-area .dnf .dnf-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
html body .theme-footer-area .dnf .dnf-legal a { display: inline-flex !important; align-items: center; min-height: 32px !important; font-size: 14px !important; color: var(--f-text-2) !important; }
html body .theme-footer-area .dnf .dnf-legal .dnf-staff { opacity: .75; }

@media (max-width: 1100px) {
  html body .theme-footer-area .dnf .dnf-in { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 28px; }
  html body .theme-footer-area .dnf .dnf-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  html body .theme-footer-area .dnf .dnf-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones: brand, then contact (CTA up front), then the folding link groups */
@media (max-width: 760px) {
  html body .theme-footer-area .dnf .dnf-in { display: flex; flex-direction: column; gap: 0; padding: 48px 20px 0 !important; }
  html body .theme-footer-area .dnf .dnf-brand { order: 1; padding-bottom: 32px !important; }
  html body .theme-footer-area .dnf .dnf-contact { order: 2; padding-bottom: 32px !important; }
  html body .theme-footer-area .dnf .dnf-nav { order: 3; }
  html body .theme-footer-area .dnf .dnf-logo img { height: 76px; }
  html body .theme-footer-area .dnf .dnf-social-a { width: 44px; height: 44px; }
  html body .theme-footer-area .dnf .dnf-cta { align-self: stretch; min-height: 48px !important; }
  html body .theme-footer-area .dnf .dnf-line { min-height: 44px !important; align-items: center; }
  html body .theme-footer-area .dnf .dnf-group { border-top: 1px solid var(--f-line) !important; }
  html body .theme-footer-area .dnf .dnf-nav:last-of-type .dnf-group:last-child { border-bottom: 1px solid var(--f-line) !important; }
  html body .theme-footer-area .dnf .dnf-nav-2 .dnf-group + .dnf-group { margin-top: 0 !important; }
  html body .theme-footer-area .dnf .dnf-sum { min-height: 52px !important; cursor: pointer; }
  html body .theme-footer-area .dnf .dnf-chev { display: block; }
  html body .theme-footer-area .dnf .dnf-group[open] .dnf-chev { transform: rotate(180deg); }
  html body .theme-footer-area .dnf .dnf-list { margin-top: 0 !important; padding-bottom: 12px !important; }
  html body .theme-footer-area .dnf .dnf-list a { min-height: 44px !important; }
  html body .theme-footer-area .dnf .dnf-sep { display: none; }
  html body .theme-footer-area .dnf .dnf-orn { display: block; }
  html body .theme-footer-area .dnf .dnf-bottom { margin-top: 32px !important; padding-inline: 20px !important; flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html body .theme-footer-area .dnf * { transition: none !important; }
}

/* ---------- Floating contact (Main.dc.html) ---------- */
html body .dn-ct-trigger {
  background: var(--dn26-ink) !important; color: var(--dn26-bone) !important; border: 0 !important; border-radius: 999px !important;
  font-family: var(--dn26-font) !important; font-size: 14px !important; font-weight: 800 !important;
  box-shadow: 0 12px 32px rgba(19,19,19,.35) !important;
  outline: 1px solid rgba(0,123,255,.55) !important; outline-offset: -1px;
}
html body .dn-ct-trigger svg { color: var(--dn26-gold-warm) !important; stroke: currentColor; }

/* ---------- One type family per language (README: Manrope EN · Vazirmatn FA · IBM Plex Sans Arabic AR) ---------- */
html[lang][lang] body, html[lang][lang] body :is(h1, h2, h3, h4, h5, h6, p, a, li, span, div, label, button, input, select, textarea, small, strong, em, b, td, th, figcaption, blockquote),
html[lang][lang] #dn-visa-calc, html[lang][lang] #dn-visa-calc *,
html body, html body :is(h1, h2, h3, h4, h5, h6, p, a, li, span, div, label, button, input, select, textarea, small, strong, em, b, td, th, figcaption, blockquote) {
  font-family: var(--dn26-font) !important;
}
html body :is(code, pre, kbd, samp) { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; }

/* phone: the header fills the 8px public gutter on both sides (it showed white strips at the screen edges) */
@media (max-width: 900px) {
  html body .theme-header { box-shadow: -8px 0 0 var(--dn26-bone), 8px 0 0 var(--dn26-bone) !important; }
}

/* ---------- About us: "Our real estate services" (owner 2026-10-10 "this is broken": black slab, text on the edge, grey tiles).
   About.dc.html: one bone panel, the heading + intro + button on top, four paper cards in a row. Same element id on EN/FA/AR. ---------- */
html body .zpsection:has(> .zpcontainer > [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"]),
html body .zpcontainer:has(> [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"]) { background: transparent !important; background-image: none !important; box-shadow: none !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] {
  display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 28px !important; align-items: start !important;
  background: var(--dn26-bone) !important; background-image: none !important; border: 0 !important; border-radius: 16px !important; box-shadow: none !important;
  padding: 56px 48px !important; margin: 0 auto !important; max-width: 1280px !important; box-sizing: border-box !important; overflow: visible !important;
}
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col { width: 100% !important; max-width: none !important; flex: none !important; padding: 0 !important; margin: 0 !important;
  background: transparent !important; background-image: none !important; box-shadow: none !important; border: 0 !important; min-height: 0 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-5 { display: flex !important; flex-direction: column !important; gap: 14px !important; max-width: 760px !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-5 > * { margin: 0 !important; padding: 0 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpelem-spacer { display: none !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] h2, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] h2 * {
  color: var(--dn26-ink) !important; font-size: 40px !important; line-height: 1.15 !important; font-weight: 800 !important; margin: 0 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-5 p, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-5 p * {
  color: var(--dn26-grey) !important; font-size: 16px !important; line-height: 1.65 !important; font-weight: 500 !important; margin: 0 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbutton { background: var(--dn26-ink) !important; color: var(--dn26-bone) !important; border: 1px solid var(--dn26-ink) !important;
  border-radius: 12px !important; min-height: 48px !important; padding: 0 24px !important; display: inline-flex !important; align-items: center !important; box-shadow: none !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbutton * { color: var(--dn26-bone) !important; font-weight: 800 !important; font-size: 14px !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbutton:hover { background: #2A2926 !important; }
/* the four services: one grid of paper cards (the two inner columns dissolve into it) */
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-7 > .zprow {
  display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important;
  background: transparent !important; background-image: none !important; padding: 0 !important; margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-7 > .zprow > .zpelem-col { display: contents !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container {
  background: var(--dn26-paper) !important; background-image: none !important; border: 1px solid var(--dn26-line) !important; border-radius: 16px !important;
  padding: 24px !important; margin: 0 !important; box-shadow: none !important; display: flex !important; flex-direction: column !important; gap: 8px !important;
  width: auto !important; height: auto !important; min-height: 0 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container > * { margin: 0 !important; padding: 0 !important; width: auto !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container h5, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container h5 * {
  color: var(--dn26-ink) !important; font-size: 16px !important; font-weight: 800 !important; line-height: 1.3 !important; margin: 0 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container p, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container p * {
  color: var(--dn26-grey) !important; font-size: 14px !important; line-height: 1.6 !important; font-weight: 500 !important; margin: 0 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container p:empty { display: none !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container .zpelem-image { display: none !important; }
@media (max-width: 1100px) {
  html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-7 > .zprow { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 760px) {
  html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] { padding: 32px 20px !important; border-radius: 16px !important; gap: 22px !important; }
  html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] h2, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] h2 * { font-size: 28px !important; }
  html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-7 > .zprow { grid-template-columns: minmax(0, 1fr) !important; gap: 12px !important; }
  html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container { padding: 20px !important; }
}
/* the theme's clearfix ::before/::after would take grid cells (two cards per row instead of four) */
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"]::before, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"]::after,
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zprow::before, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zprow::after,
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpelem-col::before, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpelem-col::after { display: none !important; content: none !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container { grid-column: auto !important; grid-row: auto !important; }
/* reading order Buying, Leasing, Off-plan, Investment (the theme stores them column by column); no leftover fixed height */
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpelem-col:nth-child(1 of .zpelem-col) > .zpbox-container:nth-child(1 of .zpbox-container) { order: 1 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpelem-col:nth-child(2 of .zpelem-col) > .zpbox-container:nth-child(1 of .zpbox-container) { order: 2 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpelem-col:nth-child(1 of .zpelem-col) > .zpbox-container:nth-child(2 of .zpbox-container) { order: 3 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpelem-col:nth-child(2 of .zpelem-col) > .zpbox-container:nth-child(2 of .zpbox-container) { order: 4 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"], html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zprow, html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col { height: auto !important; min-height: 0 !important; }
html body .zpsection:has([data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"]), html body .zpcontainer:has(> [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"]) { height: auto !important; min-height: 0 !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] > .zpelem-col.zpcol-md-7 > .zprow { grid-template-rows: none !important; grid-auto-rows: auto !important; align-items: stretch !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] { grid-template-rows: none !important; }
html body [data-element-id="elm_0Yan7JiW1fd4syNW6MRJaQ"] .zpbox-container { justify-content: flex-start !important; align-items: stretch !important; }
/* fa/zs-customcss.css forces direction:ltr (and bidi-override) on every tel:/mailto: link of the Persian pages; the footer's
   contact rows follow the page direction instead - their numbers and address are already <bdi dir="ltr">. */
html body .theme-footer-area .dnf a.dnf-line { direction: inherit !important; unicode-bidi: normal !important; text-align: start !important; }
/* Print / PDF (owner 2026-10-30, calculator PDF: the site header, the skip link and the «تماس با ما» button printed over the
   report and the dark site footer made the last pages): the site's own frame is not printed on any page. Each page's printed
   content (the calculators' report) stays in that page's own print rules. */
@media print {
  html body .theme-skip-to-needed-content, html body > [class*="zpheader-style"], html body .theme-header, html body .theme-footer-area,
  html body .dn-ct-trigger, html body #dn-ct-sheet, html body .dn-ct-back, html body #dn-chat, html body .dn-chat, html body .zpmm-backdrop,
  html body .dn-menu-backdrop { display: none !important; }
  html body .theme-content-area { padding-top: 0 !important; margin-top: 0 !important; }
}

/* Burger mode (owner 2026-11-01 «هر دو با هم»): language + currency is one button that opens a small panel (js/dn-portal-shell-v2.js,
   js/dn-prefs-2026.js). Wider screens (owner 2026-11-01 «in dokme saban ro injiri kon») show the language alone, EN ▾, as a menu beside AED ▾. */
.dn-hp-btn, .dn-hp-h, .dn-hp-curs, .dn-hp-lname { display: none; }
.dn-hp-panel { display: none; }
@media (min-width: 992px) {
  html[data-theme] body nav.dn-header-lang.dn-header-lang { position: relative; flex: 0 0 auto; height: auto; min-height: 0; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; overflow: visible !important; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin: 0; padding: 0 11px 0 13px !important; border: 1px solid var(--color-border) !important; border-radius: var(--radius-pill) !important;
    background: transparent !important; color: var(--color-text-primary) !important; font: 500 14px/1 var(--font-sans) !important; white-space: nowrap; cursor: pointer; transition: background-color .15s; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-btn:hover { background: var(--color-surface-hover) !important; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-btn:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
  nav.dn-header-lang .dn-hp-btn > svg:first-child, nav.dn-header-lang .dn-hp-dot, nav.dn-header-lang .dn-hp-cur { display: none; }
  nav.dn-header-lang .dn-hp-chev { color: var(--color-text-secondary); }
  html[data-theme] body nav.dn-header-lang .dn-hp-panel { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; z-index: 10050; width: 190px; padding: 6px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-popover); }
  html[data-theme] body nav.dn-header-lang .dn-hp-panel.is-open { display: block; }
}
/* Header Contact (js/dn-portal-shell-v2.js): the one gold button; beside the burger on a phone, last in the row on a desktop */
html[data-theme] body a.dn-head-contact { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; order: 9; height: 36px; padding: 0 15px; border-radius: var(--radius-pill); background: #1787ff; color: #171717 !important; font: 600 14px/1 var(--font-sans); text-decoration: none; white-space: nowrap; transition: background-color .15s; }
html[data-theme] body a.dn-head-contact:hover { background: #4798ee; }
html[data-theme] body a.dn-head-contact:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
@media (min-width: 992px) and (max-width: 1140px) { html[data-theme] body a.dn-head-contact { width: 36px; padding: 0; } html[data-theme] body a.dn-head-contact span { display: none; } }
@media (max-width: 991px) { html[data-theme] body a.dn-head-contact { display: none !important; } }
@media (max-width: 359px) { html[data-theme] body a.dn-head-contact { width: 36px; padding: 0; } html[data-theme] body a.dn-head-contact span { display: none; } }
/* owner 2026-11-03 «on balayi ro barf dar»: no gold Contact in the desktop header; the floating Contact us at the bottom stays.
   Phones (the burger header, up to 991 px) keep theirs. */
@media (min-width: 992px) { html[data-theme] body a.dn-head-contact { display: none !important; } }
@media (max-width: 991px) {
  html[data-theme] body nav.dn-header-lang.dn-header-lang { flex: 0 0 auto; padding: 0 !important; background: transparent !important; border: 0 !important; overflow: visible !important; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-btn { display: inline-flex; align-items: center; gap: 5px; height: 44px; margin: 0; padding: 0 9px 0 12px !important; border: 4px solid transparent !important;
    border-radius: var(--radius-pill) !important; background: transparent !important; box-shadow: inset 0 0 0 1px var(--color-border) !important; color: var(--color-text-primary) !important;
    font: 500 12px/1 var(--font-sans) !important; white-space: nowrap; cursor: pointer; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-btn:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: -2px; }
  html[data-theme] body nav.dn-header-lang .dn-hp-panel { display: none; position: absolute; top: calc(100% + 6px); inset-inline-end: -54px; z-index: 10050; width: min(304px, calc(100vw - 16px));
    max-height: calc(100dvh - 76px); overflow: auto; padding: 12px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); box-shadow: var(--shadow-popover); }
  html[data-theme] body nav.dn-header-lang-standalone .dn-hp-panel { inset-inline-end: 0; }
  html[data-theme] body nav.dn-header-lang .dn-hp-panel.is-open { display: block; }
  nav.dn-header-lang .dn-hp-chev { color: var(--color-text-secondary); }
  html[data-theme] body nav.dn-header-lang .dn-hp-h { display: block; margin: 0 2px 8px; font: 500 12px/1.3 var(--font-sans); color: var(--color-text-secondary); }
  html[data-theme] body nav.dn-header-lang .dn-hp-curs { display: block; margin-top: 14px; }
  html[data-theme] body nav.dn-header-lang .dn-hp-curs:empty { display: none; }
  html[data-theme] body nav.dn-header-lang .dn-hp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; min-height: 48px; margin: 0; padding: 4px 10px !important;
    border: 0 !important; border-radius: 12px !important; background: transparent !important; color: var(--color-text-primary) !important; font: 400 12px/1.25 var(--font-sans) !important; text-align: start; cursor: pointer; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt[aria-pressed="true"] { background: var(--color-surface-tertiary) !important; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: -2px; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt b { font-weight: 600; font-size: 14px; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt span { max-width: 100%; overflow: hidden; color: var(--color-text-secondary); text-overflow: ellipsis; white-space: nowrap; }
}

/* Header language list, "model A" (owner 2026-11-29): the same on desktop and phone - two columns, each language in its own name and
   direction (js/dn-portal-shell-v2.js PICKER_LANGS; dir on the name, so an RTL page mirrors the list), the code hidden, 38px rows
   from the start edge, the active one on the hover ground with a check. Currency and unit blocks below are unchanged. */
html[data-theme] body nav.dn-header-lang .dn-hp-langs { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 0; border-radius: 0; background: none; }
html[data-theme] body nav.dn-header-lang.dn-header-lang .dn-hp-langs a.dn-header-lang-btn { position: relative !important; isolation: auto !important; flex: none !important; display: flex !important; align-items: center !important;
  justify-content: flex-start !important; gap: 8px; width: auto !important; min-width: 0 !important; height: 38px !important; min-height: 38px !important; margin: 0 !important; padding: 0 10px !important;
  border: 0 !important; border-radius: 12px !important; background: transparent !important; box-shadow: none !important; color: var(--color-text-primary) !important;
  font: 400 14px/1.2 var(--font-sans) !important; letter-spacing: 0 !important; text-align: start; text-decoration: none !important; }
html[data-theme] body nav.dn-header-lang.dn-header-lang .dn-hp-langs a.dn-header-lang-btn::before { content: none !important; display: none !important; }
html[data-theme] body nav.dn-header-lang.dn-header-lang .dn-hp-langs a.dn-header-lang-btn:hover,
html[data-theme] body nav.dn-header-lang.dn-header-lang .dn-hp-langs a.dn-header-lang-btn.is-active { background: var(--color-surface-hover) !important; }
html[data-theme] body nav.dn-header-lang.dn-header-lang .dn-hp-langs a.dn-header-lang-btn.is-active { font-weight: 600 !important; }
html[data-theme] body nav.dn-header-lang.dn-header-lang .dn-hp-langs a.dn-header-lang-btn:focus-visible { outline: 2px solid var(--color-focus-ring) !important; outline-offset: -2px !important; }
html[data-theme] body nav.dn-header-lang .dn-hp-langs .dn-hp-lcode { display: none !important; }
html[data-theme] body nav.dn-header-lang .dn-hp-langs .dn-hp-lname { display: block !important; min-width: 0; overflow: hidden; color: inherit !important; font: inherit !important; text-overflow: ellipsis; white-space: nowrap; unicode-bidi: isolate; }
html[data-theme] body nav.dn-header-lang .dn-hp-langs .dn-hp-check { display: none; flex: 0 0 auto; margin-inline-start: auto; color: var(--color-text-primary); }
html[data-theme] body nav.dn-header-lang .dn-hp-langs a.is-active .dn-hp-check { display: block; }

/* ============================================================================================================================
   1280 FRAME - shell (owner 2026-11-03 «hame safhe-ha dar ghab-e 1280 ... injori anjam bedeh»): one frame on every page = 1280px
   with a 32px gutter, so the content box is min(100% - 64px, 1216px), centred; the header logo, the header controls, the footer
   and the page content all sit on it. Phones are untouched. Designed and adversarially tested on the live site (48 pages x 22
   widths, EN/FA/AR, light/dark, Chromium + WebKit) before it came here; the page families follow in their own blocks.
   ============================================================================================================================ */
:root { --dn-frame: 1280px; --dn-gutter: 32px; --dn-frame-in: calc(var(--dn-frame) - 2 * var(--dn-gutter)); }

/* ---------- Site frame: header, every page (owner 2026-11-03: one 1280 frame, aligned with the header logo) ----------
   Desktop header only (>= 992px, where js/dn-header-2026.js puts the menu in the header row; below it the burger header is
   untouched). Frame = 32px gutter + 1216px content box, centred: the logo image starts on the content box start edge and the
   controls group (language, theme, currency, unit) ends on its end edge, in LTR and RTL. The !important values below each beat
   an existing !important (named in the comment). */
@media (min-width: 992px) {
  /* the row: no asymmetric padding (dn-portal-navigation-v2.css `padding: 0 72px 0 28px !important`, mirrored in RTL), so the
     frame is centred (it sat 22px off: 298..1578 at 1920) */
  html body [data-headercontainer] > .theme-header { padding-inline: 0 !important; }
  /* the frame itself, from the shared tokens (beats this file's own 1280px/32px !important rule and dn-portal-navigation-v2.css
     `margin: 0 auto !important`) */
  html body [data-headercontainer] > .theme-header > .zpcontainer:not(.theme-responsive-menu-area) {
    max-width: var(--dn-frame) !important; width: 100% !important; margin-inline: auto !important; padding-inline: var(--dn-gutter) !important;
  }
  /* the logo image on the content box start: its link (58px, dn-portal-navigation-v2.css `padding: 3px !important`) centred the
     42px image, 8px in */
  html body [data-headercontainer] > .theme-header .theme-logo-parent a { justify-content: flex-start; padding-inline-start: 0 !important; }
  /* the controls group (position: absolute in the full-width sticky header, dn-portal-navigation-v2.css `inset-inline-end: 18px
     !important`) ends on the content box end; 100% = the header's own width, so no 100vw */
  html body [data-headercontainer] > .theme-header-topbar {
    inset-inline-end: max(var(--dn-gutter), (100% - var(--dn-frame)) / 2 + var(--dn-gutter)) !important;
  }
  /* the menu keeps the controls' width free (+12px), so its items wrap before they could run under them (there is no folding into
     More on a desktop any more: js/dn-header-2026.js dropped it and js/dn-portal-shell-v2.js puts folded items back). The reserve is
     padding on the list itself (beats dn-portal-navigation-v2.css `padding: 0 !important`), so the More panel (right: 0 / left: 0
     of this list) still ends on the content box end. --dn-hdr-ctrls = the widest controls group measured: 286-306px (EN/FA/AR,
     every currency, ft²/m²); the saved counter (js/dn-saved-v1.js, .dn-saved-pill.is-on) adds 48px. Widest case at 992px: 7px spare. */
  html body [data-headercontainer] { --dn-hdr-ctrls: 306px; }
  html body [data-headercontainer]:has(.dn-saved-pill.is-on) { --dn-hdr-ctrls: 354px; }
  html body [data-headercontainer] > .theme-header .theme-menu > ul[data-zs-menu-container] { padding-inline-end: calc(var(--dn-hdr-ctrls) + 12px) !important; }
}
/* Off-plan is back on the bar (2026-11-23): nine top items. 992-1199px has no room for all of them beside the controls, so Careers
   moves into More > Company there (its row .dn-nav-narrow, js/dn-portal-shell-v2.js) and the items sit 6px apart instead of 8px.
   Outside that range the More row is never drawn. */
html body .theme-menu li.dn-nav-narrow { display: none !important; }
@media (min-width: 992px) and (max-width: 1199px) {
  html body [data-headercontainer] .theme-header .theme-menu > ul[data-zs-menu-container] > li[data-dn-menu="careersTop"] { display: none !important; }
  html body [data-headercontainer] .theme-header .theme-menu li.dn-nav-narrow { display: list-item !important; }
  html body [data-headercontainer] .theme-header .theme-menu > ul[data-zs-menu-container] > li[data-dn-menu] > a { padding-inline: 6px !important; }
}
/* Header More panel, every page, 992-1279px: there it is as wide as the menu list (dn-theme-2026-*.css), but the Zoho minimum of
   228px on nested menu lists and rows (site-base-2026*.css `.theme-menu ul li ul`, `ul li ul li`) kept its four columns at 228px+,
   so they overlapped («DN360 Asset Management App» over «Investment Guide», before this change too). Without it the columns fit and
   the links wrap, as the theme's own rules there (repeat(4, minmax(0, 1fr)), white-space: normal) intend. */
@media (min-width: 992px) and (max-width: 1279px) {
  html body [data-headercontainer] .theme-header .theme-menu ul.dn-nav-mega.theme-sub-menu :is(li, ul) { min-inline-size: 0; }
}

/* ---------- Site frame: footer, every page (404 included) ----------
   Tablets and desktops (phones untouched): the dark background stays full-bleed; the columns and the bottom bar follow the content
   box. The !important paddings beat this file's own footer shorthands (`padding: 72px 32px 0 !important`, `padding: 24px 32px ... !important`). */
@media (min-width: 761px) {
  html body .theme-footer-area .dnf .dnf-in { max-width: var(--dn-frame); padding-inline: var(--dn-gutter) !important; }
  /* the bottom bar's rule line ran across the gutters (320..1600 at 1920, edge to edge up to 1280px); it now spans the content
     box like the text above it */
  html body .theme-footer-area .dnf .dnf-bottom { max-width: var(--dn-frame-in); width: calc(100% - 2 * var(--dn-gutter)); padding-inline: 0 !important; }
  /* the link columns are plain blocks: the 404 page's own `nav { display: flex; justify-content: center }` centred them in their
     grid cells (Properties 26px in, Company 55px in) */
  html body .theme-footer-area .dnf nav.dnf-nav { display: block; }
}
/* 404 page only, 761-900px: this file's phone rule (max-width: 900px) makes the footer 100vw wide with a calc(50% - 50vw) margin
   to bleed past the 8px public body gutter. The 404 shell has no such gutter and no hidden scrollbar (it does not load
   site-base-2026*.css), so with a classic scrollbar (Windows) the page scrolled sideways and the footer content sat 7px outside the
   frame on both sides. There the footer simply takes the body's width. The !important values beat that rule's own !important;
   [data-k="code"] (the 404 error code line) exists only in 404.html. */
@media (min-width: 761px) and (max-width: 900px) {
  html body:has(> main > [data-k="code"]) > .theme-footer-area.dn26-footer-on { width: auto !important; max-width: none !important; margin-inline: 0 !important; }
}

/* the logo's visible mark on the content line: hamiyan-logo.svg?v=0ea25f5c has ~6px of transparent edge at its rendered 52-54px height (45 of 316
   columns on the left, ~6px on the right), so with the image box on the line the gold mark started 6px in. The burger header
   already pulls it out by 5px for the same reason. */
@media (min-width: 992px) {
  html body [data-headercontainer] > .theme-header .theme-logo-parent img { margin-inline-start: -6px; }
}

/* ---------- Zoho-built pages in the 1280 frame (owner 2026-11-03 «hame safhe-ha dar ghab-e 1280») ----------
   The old Zoho page structure - page container > .zpsection > .zpcontainer > .zprow > .zpelem-col - of contact, careers,
   join-as-agent, sell-your-property, staff, agents, golden-visa, MortgageLoanCalculator, tools_offplan_Resale and thank-you
   (en/fa/ar). 761 px and up only: phones and small tablets keep their layout.
   Left out on purpose: the property search page (#dnHybridListings keeps its own frame and the full-bleed map) and /communities
   (#dnAreasDir): its directories already carry the frame (max-width: var(--page-max) plus 32 px padding), but the area explorer
   under them (#dnCommunityV8, 18 px padding, no max-width) only has the page container as its limit - a full-width container put
   it edge to edge (18..1902 at 1920), so /communities stays exactly as it is. privacy-policy has no .zpsection (main.dn-policy
   sits in the page container), so nothing here matches it. */
@media (min-width: 761px) {
  /* 1. page container: full width instead of dn-ui-audit.css's min(1500px, 100% - 56px) (992 px and up), so the sections and any
        background they carry run edge to edge, and everything inside is measured against the full width */
  html body .theme-content-area-inner > .zpcontent-container:where(:has(> .zpsection)):where(:not(:has(#dnHybridListings, #dnAreasDir))) {
    width: 100% !important; max-width: none !important; /* !important: beats dn-ui-audit.css width/max-width: var(--dn-page-width) !important */
  }
  /* 1b. /agents: the page container is the frame itself (1280 px, centred). Its .wrap brings the frame's 32 px padding
         (dn-theme-2026-directory.css), but on the EN page site-base-2026.css caps .wrap at 1408px !important, so in a full-width
         container the cards ran 43 px past the box at 1366 */
  html body .theme-content-area-inner > .zpcontent-container:where(:has(#agentsGrid)) {
    max-width: var(--dn-frame, 1280px) !important; /* !important: beats rule 1 and dn-ui-audit.css max-width !important */
  }
  /* 2. section container = the content box, min(100% - 64px, 1216px), centred: the same box as the header logo and the footer.
        Not /agents (its .wrap is the frame, see 1b). 761-900 px: see 2b */
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:where(:not(:has(#dnHybridListings, #dnAreasDir, #agentsGrid))) > .zpcontainer {
    width: min(var(--dn-frame-in, 1216px), calc(100% - 2 * var(--dn-gutter, 32px))) !important; /* !important: beats dn-ui-audit.css width: 100% !important (992 px and up) */
    margin-inline: auto !important; /* !important: beats dn-ui-audit.css margin-left/right: 0 !important (992 px and up) and margin-inline: 0 !important (up to 900 px) */
  }
}
/* 2b. 761-900 px: dn-ui-audit.css keeps its 8 px body gutter (--public-mobile-gutter) here, so the section is that much narrower
       than the screen and the box sits 32 - 8 px inside it. /staff keeps its full-width container here: its .dn-staff-page brings
       its own 24 px padding, which already puts the content on the box (8 + 24) */
@media (min-width: 761px) and (max-width: 900px) {
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:where(:not(:has(#dnHybridListings, #dnAreasDir, #agentsGrid))) > .zpcontainer {
    width: min(var(--dn-frame-in, 1216px), calc(100% - 2 * (var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)))) !important;
  }
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:where(:has(.dn-staff-page)) > .zpcontainer {
    width: auto !important; margin-inline: 0 !important; /* !important: undoes rule 2 (same specificity, earlier) */
  }
}
/* 3. 901-991 px: the one band where the Zoho grid keeps its gutters (container padding 15 px, column padding 15 px, row margins
      -15 px on fa/ar); dn-ui-audit.css clears them from 992 px up and up to 900 px. Without this the content sat 15-30 px inside.
      Not /agents: its .wrap has only 20 px padding up to 980 px (dn-theme-2026-directory.css), so without the Zoho gutters the
      cards would sit 12 px outside the box; it keeps today's layout in this band */
@media (min-width: 901px) and (max-width: 991px) {
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:where(:not(:has(#dnHybridListings, #dnAreasDir, #agentsGrid))) > .zpcontainer,
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:where(:not(:has(#dnHybridListings, #dnAreasDir, #agentsGrid))) > .zpcontainer .zpcol-12 { padding-inline: 0; }
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:where(:not(:has(#dnHybridListings, #dnAreasDir, #agentsGrid))) > .zpcontainer .zprow { margin-inline: 0; }
}

/* ========== 1280 frame, stage 2 (owner 2026-11-03 «hame safhe-ha dar ghab-e 1280», «are oni ke fekr mikoni doroste ro anjam bedeh»):
   the page blocks that kept their own width inside the frame. Same content box as stage 1, min(100% - 64px, 1216px), centred, from
   761px; phones untouched. Up to 900px dn-ui-audit.css keeps an 8px body gutter (--public-mobile-gutter), so the 761-900px rules
   take 32 - 8px. Most selectors start with html body to beat page sheets that load after this file. ========== */

/* ---------- About us, DN360: the section wrappers (1200px in dn-about-2026.css / dn-dn360-2026.css) are the frame; the section
   backgrounds stay full-bleed ---------- */
@media (min-width: 761px) {
  html body #dnab .dnab-wrap,
  html body #dn3 .dn3-wrap { max-width: var(--dn-frame, 1280px); padding-inline: var(--dn-gutter, 32px); }
}
@media (min-width: 761px) and (max-width: 900px) {
  html body #dnab .dnab-wrap,
  html body #dn3 .dn3-wrap { padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)); }
}

/* ---------- /communities: the page container full width (stage 1 leaves this page out); the two area directories and the area
   explorer are the frame. Keep these together: the container alone sends the explorer (#dnCommunityV8) edge to edge ---------- */
@media (min-width: 761px) {
  /* !important: beats dn-ui-audit.css width / max-width: var(--dn-page-width) !important */
  html body .theme-content-area-inner > .zpcontent-container:has(#dnAreasDir) { width: 100% !important; max-width: none !important; }
  html body #dnAreasDir,
  html body #dnAreasUae { max-width: var(--dn-frame, 1280px); padding-inline: var(--dn-gutter, 32px); }
  /* !important: beats dn-ui-audit.css .dn-v6-shell max-width / margins / padding-inline, all !important */
  html body #dnCommunityV8 .dn-v6-shell { max-width: var(--dn-frame, 1280px) !important; margin-inline: auto !important; padding-inline: var(--dn-gutter, 32px) !important; }
  /* the explorer heading's own 4px inset */
  html body #dnCommunityV8 .dn-area-head { padding-inline: 0; }
}
@media (min-width: 761px) and (max-width: 900px) {
  html body #dnAreasDir,
  html body #dnAreasUae { padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)); }
  html body #dnCommunityV8 .dn-v6-shell { padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)) !important; }
}
/* 901-991px: no Zoho grid gutters (15px container and column padding, row margins on fa/ar) */
@media (min-width: 901px) and (max-width: 991px) {
  html body .theme-content-area-inner > .zpcontent-container:has(#dnAreasDir) > .zpsection > .zpcontainer,
  html body .theme-content-area-inner > .zpcontent-container:has(#dnAreasDir) > .zpsection > .zpcontainer .zpcol-12 { padding-inline: 0; }
  html body .theme-content-area-inner > .zpcontent-container:has(#dnAreasDir) > .zpsection > .zpcontainer .zprow { margin-inline: 0; }
}

/* ---------- Generated pages, 761-900px: property and project pages (main.dn-detail-shell with .dn-ready-plp), the hub pages
   (developer, community, agent and the indexes: main.dn-detail-shell.dn-hub) and the guides index sat 8px inside or 24px outside
   the box behind the body gutter (from 901px they are already on it) ---------- */
@media (min-width: 761px) and (max-width: 900px) {
  /* !important: beats dn-detail-2026.css padding: 20px 32px 56px !important (it loads later; main adds the specificity) */
  html body main.dn-detail-shell:has(.dn-ready-plp) { padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)) !important; }
  /* !important: beats dn-ui-audit.css main.dn-detail-shell { padding-inline: 0 !important } */
  html body main.dn-detail-shell.dn-hub { padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)) !important; }
  html body main.dn-guide-shell > .dn-guide-wrap.dn-guide-hub { padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)); }
}

/* ---------- Property search (/propertiesstatic, fa, ar): the page container is full width and #dnHybridListings carries the frame
   as its side padding, so all it holds sits in the content box. With the map beside the list (1200px and up, js/dn-props-2026.js
   .dn26-with-map; .dn26-map-wide when expanded) the results row runs on to the screen's end edge (owner 2026-11-03: the map leaves
   the frame). Widths are % of the full-width block, never 100vw (a classic scrollbar would put them 15-17px off) ---------- */
@media (min-width: 761px) {
  /* !important: beats dn-ui-audit.css width / max-width: min(1500px, 100% - 56px) !important */
  html body .theme-content-area-inner > .zpcontent-container:has(#dnHybridListings) { width: 100% !important; max-width: none !important; }
  /* !important: beats dn-portal-navigation-v2.css #dnHybridListings.dn-pf-shell { padding: 24px 28px 54px; max-width: 1500px } !important
     and the up-to-900px paddings of dn-site-polish.css and dn-ui-audit.css */
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings {
    max-width: none !important;
    padding-inline: max(var(--dn-gutter, 32px), (100% - var(--dn-frame-in, 1216px)) / 2) !important;
  }
  /* the crawl links under the results (dn-site-polish.css .dn-crawl: a 1200px column with 16px padding) */
  html body #dnHybridListings ~ #dnCrawlBrowse.dn-crawl {
    max-width: var(--dn-frame-in, 1216px); width: calc(100% - 2 * var(--dn-gutter, 32px)); margin-inline: auto; padding-inline: 0;
  }
  /* the List | Map switch ends on the box end, like the search card above it */
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings .dn-status-wrap > .dnc-switch { margin-inline-end: 0; }
}
@media (min-width: 761px) and (max-width: 900px) {
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings {
    padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)) !important; /* !important: as above */
  }
  html body #dnHybridListings ~ #dnCrawlBrowse.dn-crawl { width: calc(100% - 2 * (var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px))); }
}
/* 901-991px: no Zoho grid gutters */
@media (min-width: 901px) and (max-width: 991px) {
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(#dnHybridListings) > .zpcontainer,
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(#dnHybridListings) > .zpcontainer .zpcol-12 { padding-inline: 0; }
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(#dnHybridListings) > .zpcontainer .zprow { margin-inline: 0; }
}
/* the map out of the frame: the block drops its end padding, so in the 100% below the start gutter is already taken off and the
   content box is min(1216px, 100% - 32px); js/dn-listings-map.js redraws the map at its new width */
@media (min-width: 1200px) {
  /* !important: beats the padding above */
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings.dn26-with-map { padding-inline-end: 0 !important; }
  /* everything but the results row (and the fixed Filters drawer and its backdrop) keeps the box. !important: beats dn-ui-audit.css
     #dnHybridListings .dn-filter-section { max-width: none !important } */
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings.dn26-with-map > :not(.dn26-res, #dnLDrawer, #dnLDrawerBackdrop) {
    max-width: min(var(--dn-frame-in, 1216px), 100% - var(--dn-gutter, 32px)) !important;
  }
  /* the list keeps 60% of the content box (owner 2026-10-29, review 8), the map takes the rest of the row. !important: beats
     dn-props-2026.css flex: 0 0 60% / max-width: 60% !important, which would now measure the longer row */
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings.dn26-with-map:not(.dn26-map-wide) .dn26-res-main {
    flex: 0 0 calc(0.6 * min(var(--dn-frame-in, 1216px), 100% - var(--dn-gutter, 32px))) !important;
    max-width: calc(0.6 * min(var(--dn-frame-in, 1216px), 100% - var(--dn-gutter, 32px))) !important;
  }
  /* expanded map: the map above runs to the screen edge, the cards under it keep the box */
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings.dn26-with-map.dn26-map-wide .dn26-res-main {
    max-width: min(var(--dn-frame-in, 1216px), 100% - var(--dn-gutter, 32px));
  }
  /* the map's side on the screen edge: no border, square corners. !important: beats dn-theme-2026-portal.css and dn-listings-map.css
     border / border-radius !important on .dn-lmap */
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings.dn26-with-map .dn26-res-map .dn-lmap {
    border-inline-end-width: 0 !important; border-start-end-radius: 0 !important; border-end-end-radius: 0 !important;
  }
}

/* ---------- careers, join-as-agent, sell-your-property (.dn-request-page > .dn-shell): the grey band runs edge to edge, the white
   cards in it sit on the content box ---------- */
@media (min-width: 761px) {
  /* the section container and row full width again. !important: beats stage-1 rule 2 / 2b, dn-ui-audit.css width: 100% !important
     and site-base-2026*.css .zprow-container { max-width: 1408px !important } */
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(.dn-request-page > .dn-shell) > .zpcontainer {
    width: auto !important; margin-inline: 0 !important;
  }
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(.dn-request-page > .dn-shell) > .zpcontainer > .zprow {
    max-width: none !important;
  }
  /* the band's padding puts the cards on the box (% of the now full-width .zpsnippet-container); replaces the pages' inline
     .dn-request-page { padding: 34px 18px 44px } */
  html body .theme-content-area-inner .zpsnippet-container > .dn-request-page:has(> .dn-shell) {
    padding-inline: max(var(--dn-gutter, 32px), (100% - var(--dn-frame, 1280px)) / 2 + var(--dn-gutter, 32px));
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  html body .theme-content-area-inner .zpsnippet-container > .dn-request-page:has(> .dn-shell) {
    padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)) !important; /* !important: beats dn-ui-audit.css .dn-request-page { padding-inline: 0 !important } */
  }
}

/* ---------- /contact, 761-991px: the form spans the box under the wrapped columns (dn-enquiry.css kept it a centred 640px box;
   from 992px the page lifts the cap itself) ---------- */
@media (min-width: 761px) and (max-width: 991px) {
  html body .dn-contact-form-el .dn-enq-inline { max-width: none; }
}

/* ---------- /agents, 761-991px (from 992px stage-1 rule 1b and .wrap's own 32px padding already put it on the box) ---------- */
@media (min-width: 901px) and (max-width: 991px) {
  /* no Zoho grid gutters; .wrap takes the frame's 32px (it has 20px up to 980px) */
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(#agentsGrid) > .zpcontainer,
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(#agentsGrid) > .zpcontainer .zpcol-12 { padding-inline: 0; }
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(#agentsGrid) > .zpcontainer .zprow { margin-inline: 0; }
  html[data-theme] body:has(#agentsGrid) .zpsnippet-container > .wrap { padding-inline: var(--dn-gutter, 32px); }
}
@media (min-width: 761px) and (max-width: 900px) {
  html[data-theme] body:has(#agentsGrid) .zpsnippet-container > .wrap { padding-inline: calc(var(--dn-gutter, 32px) - var(--public-mobile-gutter, 8px)); }
}
/* /fa/agents: the search field on the start edge (the right), as on /ar/agents; the page's inline .wrap[dir="rtl"] .toolbar
   { justify-content: flex-end } put it on the left */
@media (min-width: 761px) {
  html[data-theme] body:has(#agentsGrid) .wrap[dir="rtl"] > .toolbar { justify-content: flex-start; }
}

/* ---------- Calculators (MortgageLoanCalculator, tools_offplan_Resale, golden-visa): the card, the guide under it and the enquiry
   box on the content box, instead of centred 960-1100px cards and a 720px box ---------- */
@media (min-width: 761px) {
  /* !important: beats the inline max-width: 960px (#dn-loan-calc) / 1040px (#dn-resale-calc) */
  html body :is(#dn-loan-calc, #dn-resale-calc) { max-width: none !important; }
  html body #dn-visa-calc { max-width: none; padding-inline: 0; }
  /* the guide: its running text keeps an 860px measure, the "Other calculators" cards use the box */
  html body #dn-tool-guide { max-width: none; padding-inline: 0; }
  html body #dn-tool-guide > :is(h2, h3, p, ul:not(.dn-tg-links)) { max-inline-size: 860px; }
  /* the enquiry box (js/dn-portal-shell-v2.js): in the page container on mortgage and resale, inside the card on golden-visa.
     !important: beats its inline max-width: 720px */
  html body:has(#dn-loan-calc, #dn-resale-calc, #dn-visa-calc) #thememaincontent > .dn-enq-page-cta { max-width: min(var(--dn-frame-in), 100% - 2 * var(--dn-gutter)) !important; }
  html body #dn-visa-calc .dn-enq-page-cta { max-width: none !important; }
}
@media (min-width: 761px) and (max-width: 900px) {
  html body:has(#dn-loan-calc, #dn-resale-calc, #dn-visa-calc) #thememaincontent > .dn-enq-page-cta {
    max-width: min(var(--dn-frame-in), 100% - 2 * (var(--dn-gutter) - var(--public-mobile-gutter, 8px))) !important; /* !important: as above */
  }
}
/* 1200px and up: inputs 7/12, results 5/12 in the wide card; narrower, the pages keep their own split (5/12 there broke 9-digit
   amounts onto two lines) */
@media (min-width: 1200px) {
  html body :is(#dn-loan-calc, #dn-resale-calc) .dn-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
}

/* ---------- /saved: its 960px shell (inline style in saved.html) becomes the frame; saved homes two a row once each can be 560px
   (auto-fit: a single one keeps the whole row) ---------- */
@media (min-width: 761px) {
  html[data-theme] body main.dn-saved-shell { max-width: var(--dn-frame); padding-inline: var(--dn-gutter); }
  html[data-theme] body main.dn-saved-shell .dn-saved-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 560px), 1fr)); }
}
@media (min-width: 761px) and (max-width: 900px) {
  html[data-theme] body main.dn-saved-shell { padding-inline: calc(var(--dn-gutter) - var(--public-mobile-gutter, 8px)); }
}

/* ---------- 404 (404.html, every language; [data-k="code"] exists only there): the centred 720px column becomes the frame, start
   aligned like the footer under it; title and text keep the 720px measure. 404.html has no body gutter ---------- */
@media (min-width: 761px) {
  html body:has(> main > [data-k="code"]) > main { max-width: var(--dn-frame); padding-inline: var(--dn-gutter); text-align: start; }
  html body:has(> main > [data-k="code"]) > main > :is(h1, p) { max-inline-size: 720px; }
  html body:has(> main > [data-k="code"]) > main > nav { justify-content: flex-start; }
  /* the logo's gold mark on the line: hamiyan-logo.svg?v=0ea25f5c has ~9px of transparent edge at its 72px width */
  html body:has(> main > [data-k="code"]) > main > a.logo img { margin-inline-start: -9px; }
}

/* ---------- /staff: the band full-bleed, its content on the box ---------- */
@media (min-width: 761px) {
  /* the band logo's gold mark on the line: hamiyan-logo.svg?v=0ea25f5c has ~8px of transparent edge at 72px high */
  html body .dn-staff-page .dn-staff-top img { margin-inline-start: -8px; }
}
@media (min-width: 901px) {
  /* !important: undoes stage-1 rule 2 for this one section */
  html body .theme-content-area-inner > .zpcontent-container > .zpsection:has(.dn-staff-page) > .zpcontainer {
    width: auto !important; margin-inline: 0 !important;
  }
  html body .zpsection .dn-staff-page { padding-inline: max(var(--dn-gutter), (100% - var(--dn-frame)) / 2 + var(--dn-gutter)); }
  html body .dn-staff-page .dn-staff-wrap { max-width: none; }
}

/* ---------- Reading pages: privacy policy, property guide articles, blog lists and posts. The page is the content box; long text
   keeps a 760px measure (--dn-read) on the start edge; card grids span the box. From 1200px the guide's advisor box and the blog
   post's table of contents stand in the end column beside the text ---------- */
@media (min-width: 761px) {
  html body :is(main.dn-policy, .dn-guide-wrap:not(.dn-guide-hub), #thememaincontent:has(.dn-post-article)) { --dn-read: 760px; }
}

/* Privacy policy: main.dn-policy (inline style: a centred 860px column) */
@media (min-width: 761px) {
  /* !important: beats dn-ui-audit.css width / max-width: min(1500px, 100% - 56px) !important */
  html body .theme-content-area-inner > .zpcontent-container:has(> main.dn-policy) { width: 100% !important; max-width: none !important; }
  html body .theme-content-area-inner > .zpcontent-container > main.dn-policy {
    box-sizing: border-box; width: min(var(--dn-frame-in), 100% - 2 * var(--dn-gutter)); max-width: none; margin-inline: auto; padding-inline: 0;
  }
  html body .theme-content-area-inner > .zpcontent-container > main.dn-policy > * { max-width: var(--dn-read); }
}
@media (min-width: 761px) and (max-width: 900px) {
  html body .theme-content-area-inner > .zpcontent-container > main.dn-policy { width: calc(100% - 2 * (var(--dn-gutter) - var(--public-mobile-gutter, 8px))); }
}

/* Property guide articles (not the guides index, .dn-guide-hub, which already has the frame): the 760px centred wrap
   (dn-theme-2026-pages.css) becomes the content box */
@media (min-width: 761px) {
  html body main.dn-guide-shell > .dn-guide-wrap:not(.dn-guide-hub) {
    width: min(var(--dn-frame-in), 100% - 2 * var(--dn-gutter)); max-width: none; margin-inline: auto; padding-inline: 0;
  }
  html body main.dn-guide-shell > .dn-guide-wrap:not(.dn-guide-hub) > :is(.dn-guide-crumbs, .dn-guide, .dn-guide-cta) { max-width: var(--dn-read); }
  /* related guides in the guides index's own tracks: three cards a row at 1216px */
  html body main.dn-guide-shell > .dn-guide-wrap:not(.dn-guide-hub) > .dn-guide-related .dn-guide-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  /* the golden-visa guide's "Ask us" box (js/dn-portal-shell-v2.js): the content box. !important: beats its inline max-width: 720px */
  html body main.dn-guide-shell:has(> .dn-guide-wrap:not(.dn-guide-hub)) > .dn-enq-page-cta {
    box-sizing: border-box; width: min(var(--dn-frame-in), 100% - 2 * var(--dn-gutter)); max-width: none !important;
  }
}
@media (min-width: 761px) and (max-width: 900px) {
  html body main.dn-guide-shell > .dn-guide-wrap:not(.dn-guide-hub),
  html body main.dn-guide-shell:has(> .dn-guide-wrap:not(.dn-guide-hub)) > .dn-enq-page-cta { width: calc(100% - 2 * (var(--dn-gutter) - var(--public-mobile-gutter, 8px))); }
}
/* 1200px and up: the "Talk to a Hamiyan Paydar advisor" box in the end column, level with the title */
@media (min-width: 1200px) {
  html body main.dn-guide-shell > .dn-guide-wrap:not(.dn-guide-hub) {
    display: grid; grid-template-columns: minmax(0, var(--dn-read)) minmax(0, 1fr); column-gap: 56px; align-items: start;
  }
  html body main.dn-guide-shell > .dn-guide-wrap:not(.dn-guide-hub) > * { grid-column: 1 / -1; }
  html body main.dn-guide-shell > .dn-guide-wrap:not(.dn-guide-hub) > .dn-guide { grid-column: 1; }
  html body main.dn-guide-shell > .dn-guide-wrap:not(.dn-guide-hub) > .dn-guide-cta { grid-column: 2; grid-row: 2; margin: 0; }
}

/* Blog lists (/blogs, categories, authors, tags, page/N): #thememaincontent (the theme's 1140px .zpcontainer) > .dnb (1140px)
   become the content box */
@media (min-width: 761px) {
  html body #thememaincontent:has(> .dnb) {
    width: min(var(--dn-frame-in), 100% - 2 * var(--dn-gutter)); max-width: none; margin-inline: auto; padding-inline: 0;
  }
  html body #thememaincontent > .dnb { max-width: none; padding-inline: 0; }
  /* the sticky category bar ends on the box edges */
  html body #thememaincontent > .dnb .dnb-chips { margin-inline: 0; padding-inline: 0; }
  /* the advisor box after the list: the whole box. !important: beats its inline max-width: 720px; margin: 28px auto */
  html body #thememaincontent:has(> .dnb) > .dn-enq-page-cta { max-width: none !important; margin-inline: 0 !important; }
}
@media (min-width: 761px) and (max-width: 900px) {
  /* !important: beats dn-ui-audit.css #thememaincontent.zpcontainer { margin-inline: 0 !important } */
  html body #thememaincontent:has(> .dnb) { width: calc(100% - 2 * (var(--dn-gutter) - var(--public-mobile-gutter, 8px))); margin-inline: auto !important; }
}

/* Blog posts (/blogs/post/<slug>): the article is the content box; head, photo, contents, body, share, author card and language
   links keep the reading measure on the start edge */
@media (min-width: 761px) {
  html body #thememaincontent:has(.dn-post-article) {
    width: min(var(--dn-frame-in), 100% - 2 * var(--dn-gutter)); max-width: none; margin-inline: auto; padding-inline: 0;
  }
  html body #thememaincontent:has(.dn-post-article) > .zprow { margin-inline: 0; }
  html body #thememaincontent:has(.dn-post-article) > .zprow > .theme-single-post { padding-inline: 0; }
  /* !important: beats dn-blog-post.css padding: 8px 15px 24px !important */
  html body #thememaincontent .theme-single-post > .dn-post { max-width: none; padding-inline: 0 !important; }
  html body #thememaincontent .dn-post > .dn-post-article > * { max-width: var(--dn-read); margin-inline: 0; }
  /* !important: beats dn-blog-2026.css max-width: 720px / margin auto !important on the body and the photo, and dn-site-polish.css
     figure { max-width: 100% !important } up to 900px */
  html body #thememaincontent .dn-post > .dn-post-article > .dn-post-body { max-width: var(--dn-read) !important; margin-inline: 0 !important; }
  html body #thememaincontent .dn-post > .dn-post-article > .dn-post-hero { max-width: var(--dn-read) !important; margin-inline: 0 !important; }
  /* the head reads from the start (site-base-2026-blog.css centres it) */
  html body #thememaincontent .dn-post .dn-post-head { text-align: start; }
  /* "Explore the area" / "More articles" span the box (from 1200px only on a post without a table of contents) */
  html body #thememaincontent .dn-post > .dn-post-article > .dnb26-more { max-width: none; }
  /* the advisor box after the article, under the author card. !important: beats its inline max-width: 720px; margin: 28px auto */
  html body #thememaincontent:has(.dn-post-article) > .dn-enq-page-cta { max-width: var(--dn-read) !important; margin-inline: 0 !important; }
}
@media (min-width: 761px) and (max-width: 900px) {
  /* !important: beats dn-ui-audit.css #thememaincontent.zpcontainer { margin-inline: 0 !important } */
  html body #thememaincontent:has(.dn-post-article) { width: calc(100% - 2 * (var(--dn-gutter) - var(--public-mobile-gutter, 8px))); margin-inline: auto !important; }
}
/* 1200px and up: the table of contents (js/dn-blog-2026.js, posts with 4+ sections) in the end column, level with the photo,
   sticky under the 72px header; its bottom stays 88px up, clear of the floating Contact button (.dn-ct-trigger, 52px high, 16px
   from the bottom). A sticky grid item rides the whole article, so with a contents list the more-cards stay in the text column */
@media (min-width: 1200px) {
  html body #thememaincontent .dn-post > .dn-post-article {
    display: grid; grid-template-columns: minmax(0, var(--dn-read)) minmax(0, 1fr); column-gap: 56px; align-items: start;
  }
  html body #thememaincontent .dn-post > .dn-post-article > * { grid-column: 1; }
  html body #thememaincontent .dn-post > .dn-post-article:not(:has(> .dnb26-toc)) > .dnb26-more { grid-column: 1 / -1; }
  html body #thememaincontent .dn-post > .dn-post-article > .dnb26-toc {
    grid-column: 2; grid-row: 2 / span 2; position: sticky; top: 96px; max-width: none; max-height: calc(100vh - 96px - 88px); overflow-y: auto;
    margin: 8px 0 0; /* the photo's own top margin (dn-blog-2026.css margin: 8px auto 28px !important) */
  }
}

/* ===== UI/UX audit, batch 1 (owner 2026-11-04 «are, shoro kon»): fixes shared by every page ===== */
/* 1. FA/AR desktop menu: the chevron is the top + inline-end border turned 135deg; in RTL inline-end is the LEFT border,
   so it pointed sideways. Turned the other way it points down like the EN one and the language/currency chevrons. */
@media (min-width: 992px) {
  html[data-theme][dir="rtl"] body .theme-header .theme-menu > ul > li[data-dn-sub] > a .theme-sub-li-menu.theme-non-responsive-menu,
  html[dir="rtl"] body .theme-navigation-and-icons .theme-menu-area .theme-menu .theme-sub-li-menu.theme-submenu-down-arrow { transform: rotate(-135deg) !important; }
}
/* 2. "Request information" / "Contact <name>": the paper-plane icon was painted in the button's own colour
   (dn-theme-2026-profiles.css), so it was invisible and the label sat off-centre. It takes the label's colour. */
html[data-theme] body .dn-cta.dn-cta::before, html[data-theme] body button.dn-enquire.dn-enquire::before,
html[data-theme] body .dn-enquire-btn.dn-enquire-btn::before { background: currentColor !important; }
/* 3. Muted grey text (labels, dates, breadcrumbs, roles) was #8E8E8E on white, 3.3:1; #6E6E6E is 5.1:1 (WCAG AA). Dark mode unchanged. */
html:not([data-theme="dark"]) { --color-text-muted: #6E6E6E !important; }
/* 4. Desktop header: dn-header-2026.js fades the language / theme / currency / unit row out after the first scroll, but the row
   stays in the sticky header and keeps taking clicks (an invisible language panel could open over the page). It stays visible.
   On the generated pages the row is not inside the header (theme-topbar-not-in-header): once the header turns fixed, its box
   collapses to 1px and "top: 50%" put the row half above the screen, so it is pinned to the middle of the 72px header. */
@media (min-width: 992px) {
  html body .theme-header-topbar { opacity: 1 !important; top: 36px !important; }
}
/* 5. FA/AR: a Latin name (project or listing title, dir="auto" + unicode-bidi:plaintext) is laid out LTR, so text-align:start
   put it on the left of a right-aligned card. It keeps its own direction and sits on the right like the lines under it. */
html[dir="rtl"] body :is(.dn-card-title, .dn-ready-title, .dn-pi-name) { text-align: right !important; }
html[dir="rtl"] body strong.dn-pi-name { display: block; }
/* 6. Community, developer and hub pages: the FAQ is a styled accordion (the only styles were scoped to the listing pages) and
   each section has room above it (dn-detail-2026.css set every hub section's margin to 0). */
html[data-theme] body .dn-detail-shell .dn-hub-section + :is(.dn-hub-section, .dn-ready-block, section),
html[data-theme] body .dn-detail-shell :is(.dn-ready-block.dn-faq, section.dn-faq) { margin-top: 40px !important; }
html[data-theme] body :is(.dn-hub-page, .dn-detail-shell) .dn-faq-item {
  border: 0 !important; border-bottom: 1px solid var(--color-border-subtle, var(--color-border)) !important; padding: 14px 0 !important; background: transparent !important;
}
html[data-theme] body :is(.dn-hub-page, .dn-detail-shell) .dn-faq-item summary {
  color: var(--color-text-primary) !important; font: 500 16px/1.5 var(--font-sans) !important; cursor: pointer; list-style: none; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; min-height: 32px;
}
html[data-theme] body :is(.dn-hub-page, .dn-detail-shell) .dn-faq-item summary::-webkit-details-marker { display: none; }
html[data-theme] body :is(.dn-hub-page, .dn-detail-shell) .dn-faq-item summary::after {
  content: ""; flex: none; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s ease;
}
html[data-theme] body :is(.dn-hub-page, .dn-detail-shell) .dn-faq-item[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
html[data-theme] body :is(.dn-hub-page, .dn-detail-shell) .dn-faq-item :is(p, div) { color: var(--color-text-secondary) !important; margin-top: 8px !important; }
/* 7. The floating Contact button steps aside while it covers text, a link, a photo or a field (js/dn-site-2026.js); before, only
   the forms, the home page, the properties list and the project index did. */
html.dn-ct-yield-form body .dn-ct-trigger { opacity: 0 !important; visibility: hidden !important; pointer-events: none !important; transform: translateY(12px); transition: transform .2s ease, opacity .2s ease, visibility 0s linear .2s !important; }

/* ===== UI/UX audit, batch 2 (owner 2026-11-04 «are, daste-ye 2») ===== */
/* Project pages, desktop: the side column is sticky and taller than the screen, and the agent card inside it was sticky too,
   so further down the card slid over Handover / Status / Payment plan and "View on map", and the map drew over the card.
   The card moves with its column.
   2026-11-25 (owner «ba emtedad safhe ta paeen bere ... sova nakhad scroll kone; bala-sh ba box baghalesh balans bashe»): no scroll
   inside the column any more - it moves with the page and, when taller than the screen, stops once its bottom is in view
   (js/dn-site-2026.js sets --dn-aside-top = screen height - column height); its top lines up with the first box beside it,
   not with that box's heading (--dn-aside-shift, measured by the same script; 37px = the English heading + gap). */
@media (min-width: 981px) {
  html[data-theme] body .dn-project-aside .dn-ready-agent { position: static !important; }
  html[data-theme] body .dn-ready-plp .dn-project-layout > .dn-project-aside {
    max-height: none; overflow: visible; top: var(--dn-aside-top, 88px) !important; margin-top: var(--dn-aside-shift, 37px) !important;
  }
}
/* Home search suggestions: the matched part kept the old site font (site-base-2026.css sets one on every element) */
html body #dnh .dnh-suggest mark { font-family: inherit !important; }

/* ===== UI/UX audit, search page (owner 2026-11-04 «are, badesh») ===== */
/* Phone: "Show 9 more listings" did nothing - the card-row rule (css/dn-props-2026.css, three ids) showed every card, so the
   first six never collapsed (#27). Four ids win it back. */
@media (max-width: 680px) {
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings#dnHybridListings #dnLGrid.dn-grid-collapsed > .dn-card:nth-child(n+7) { display: none !important; }
}
/* Phone: "View map" sat over "Clear all" in the filter sheet, and offered a map of nothing when there are no results */
html body.dn-filter-drawer-open .dn-lmap-fab.dn-lmap-fab,
html:has(#dnLGrid > .dn-empty) body .dn-lmap-fab.dn-lmap-fab { display: none !important; }
/* Desktop: the page first drew the old mode row and three skeleton columns, then the search bar (js/dn-search-bar-2026.js) and
   the card rows (js/dn-cards-2026.js) moved everything (layout shift 0.44-0.68). Until they run, the card already has the
   final height (the mode row lives in the bar; the type chips' row is kept free) and one skeleton spans the column. */
@media (min-width: 761px) {
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings#dnHybridListings .dn26-fcard:not(:has(.dnsb-row)) > .dn-mode-row { display: none !important; }
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings#dnHybridListings .dn26-fcard:not(:has(.dnsb-row)) > .dn-filter-pill-row { margin-bottom: 42px !important; }
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings#dnHybridListings #dnLGrid.dn-grid:not(.dnc-rows) > .dn-card-skel { grid-column: 1 / -1 !important; }
  :is(html[data-theme], html) body #dnHybridListings#dnHybridListings#dnHybridListings#dnHybridListings #dnLGrid.dn-grid:not(.dnc-rows) > .dn-card-skel ~ .dn-card-skel { display: none !important; }
}

/* the building profile's link to the Property Valuation (js/dn-site-2026.js, 2026-11-23) */
html body #transactions .dn-tx-val { margin: 18px 0 6px; }
/* the Sell page hero's Property Valuation button (_redesign/build-sell-v2.py, 2026-11-23) */
html body .dn-audit-sell-hero p.dn-sell-val { margin-top: 14px; }

/* owner 2026-11-24 (mock-up approved): Buy, Rent, Sell and Off-plan are found first - a little bolder than Areas / Resources / Company */
@media (min-width: 992px) {
  html body [data-headercontainer] .theme-header .theme-menu > ul[data-zs-menu-container] > li:is([data-dn-menu="buy"], [data-dn-menu="rent"], [data-dn-menu="sell"], [data-dn-menu="offplan"]) > a .theme-menu-name { font-weight: 650 !important; color: var(--color-text-primary, #111) !important; }
}

/* ===== Site audit 2026-11-25 (owner «fasele-ha ro raayat kon, dar tire o roshan»): boxes that touched, text on edges, faint text ===== */
/* floor plans page: the Save / WhatsApp / Share row sat on the page title */
html[data-theme] body .dn-ready-plp .dn26-toprow + h1.dn-ready-title { margin-top: 16px !important; }
/* the toolbar pills: "Send to my WhatsApp" wraps to two lines on a phone and its text touched the pill's top and bottom */
html[data-theme] body .dn-ready-toolbar > button { height: auto !important; min-height: 36px; padding-top: 6px !important; padding-bottom: 6px !important; line-height: 1.25 !important; }
/* property page: the agent card, the "Scan to open on your phone" box and "Similar listings" were stacked with no gap */
html[data-theme] body main.dn-detail-shell > section.dn-qr { margin-top: 24px !important; margin-bottom: 40px !important; }
/* property page: Mortgage / Rental yield / Golden Visa / View on map read as plain text */
html[data-theme] body .dn-ready-own a { text-decoration: underline; text-underline-offset: 3px; }
/* project pages: "What is nearby" bullets hung outside the text column, in small type */
html[data-theme] body .dn-near-list { margin: 0 !important; padding-inline-start: 22px !important; font-size: 16px; line-height: 1.75; }
/* a list the flattened description ran into a sentence, shown as a list again (scripts/portal-prerender.mjs proseHtml) */
html[data-theme] body .dn-ready-prose .dn-prose-list { margin: 4px 0 16px !important; padding-inline-start: 22px !important; }
html[data-theme] body .dn-ready-prose .dn-prose-list li { margin: 0 0 6px; line-height: 1.6; list-style: disc; }
/* the short link broke as "dn-" / "dxb.com/p/1878": it takes the whole row and never breaks */
html[data-theme] body .dn-ready-facts .dn-fact:has(.dn-short) { grid-column: 1 / -1; }
html[data-theme] body .dn-short a { white-space: nowrap; }
/* Location: "View on map" under the place in every language (fa/ar ran it on the same line) */
html[data-theme] body .dn-map-inline { display: block; margin-top: 4px; }
/* dark: the agent's job title and BRN were grey on dark (2.7:1) */
html[data-theme="dark"] body .dn-ready-agent-top .dn-agent-title, html[data-theme="dark"] body .dn-ready-agent-top .dn-agent-brn { color: var(--color-text-secondary, #b4b4b4) !important; }
/* floor plans page: the chosen chip keeps dark text on its gold fill in both themes */
html[data-theme] body .fp-chip[aria-pressed="true"] { color: #111 !important; -webkit-text-fill-color: #111; }
/* breadcrumb separators (1.7:1 on white) */
html[data-theme] body .dn26-crumb > span { color: var(--color-text-tertiary, #8a8f98) !important; }
/* projects list: "Previous" sat 4px from "1"; the page kept an 8px edge on phones (other pages 16-24px) */
html[data-theme] body .dn-pi-pager { gap: 8px !important; }
@media (max-width: 680px) {
  html[data-theme] body article.dn-hub-index { padding-left: 8px !important; padding-right: 8px !important; }
  /* properties list: the results bar touched the filters above and the first card below */
  html[data-theme] body #dnHybridListings .dnc-pbar { margin-top: 8px !important; margin-bottom: 12px !important; }
}
/* footer: the 6th social icon dropped to a line of its own */
html[data-theme] body .dnf .dnf-social { flex-wrap: nowrap !important; gap: 8px !important; }
/* list cards: a card with one line fewer (no handover, a value on two lines) left its price / "View details" higher than its row's */
html[data-theme] body .dn-pi-card:not(.is-skel) > a { display: flex !important; flex-direction: column; height: 100%; }
html[data-theme] body .dn-pi-card:not(.is-skel) .dn-pi-foot { margin-top: auto !important; }
@media (min-width: 761px) {
  html[data-theme] body #dnLGrid.dnc-g > article.dn-card.dnc { display: flex; flex-direction: column; }
  html[data-theme] body #dnLGrid.dnc-g > article.dn-card.dnc > .dn-card-content { flex: 1 1 auto; display: flex; flex-direction: column; }
  html[data-theme] body #dnLGrid.dnc-g > article.dn-card.dnc > .dn-card-content > .dnc-cta { margin-top: auto !important; }
}

/* Gallery lightbox (owner 2026-11-25 «دکمه ضرب وسط دایره نیست ... آیکونای وسطش و فلشاش بالانس وایسن»): the ×, ‹ and › were font
   glyphs, whose ink sits low and off-centre in most fonts. The glyph is hidden and the same icon is drawn as a mask, centred in the circle. */
html[data-theme] body .dn-gallery-modal button.dn-modal-close, html[data-theme] body .dn-gallery-modal button.dn-modal-arrow { font-size: 0 !important; line-height: 0 !important; padding: 0 !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; }
html[data-theme] body .dn-gallery-modal button.dn-modal-arrow { display: flex !important; }
html[data-theme] body .dn-gallery-modal button.dn-modal-close::before, html[data-theme] body .dn-gallery-modal button.dn-modal-arrow::before { content: ""; display: block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--dn-lb-icon) center / contain no-repeat; mask: var(--dn-lb-icon) center / contain no-repeat; }
html[data-theme] body .dn-gallery-modal button.dn-modal-close { --dn-lb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
html[data-theme] body .dn-gallery-modal button.dn-modal-prev { --dn-lb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 5l-7 7 7 7'/%3E%3C/svg%3E"); }
html[data-theme] body .dn-gallery-modal button.dn-modal-next { --dn-lb-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E"); }
html[data-theme] body[dir="rtl"] .dn-gallery-modal button.dn-modal-arrow::before, html[data-theme][dir="rtl"] body .dn-gallery-modal button.dn-modal-arrow::before { transform: scaleX(-1); }

/* The side card's DLD permit + regulatory facts + phone QR (owner 2026-11-25 «2 جا نذارین» / «حذف نکن»; markup: permitCardHtml and
   phoneQrHtml in scripts/portal-prerender.mjs): theme colours in light and dark, and a sticky listing card that keeps its bottom in view. */
html[data-theme] body .dn-ready-plp .dn-ready-layout > aside.dn-ready-agent { top: var(--dn-aside-top, 88px) !important; }
html[data-theme] body .dn-side-qr .dn-phone-qr { background: var(--color-background) !important; border: 1px solid var(--color-border) !important; }
html[data-theme] body .dn-side-qr :is(.dn-phone-qr-t, .dn-permit-t) { color: var(--color-text-muted) !important; font-weight: 400 !important; }
html[data-theme] body .dn-side-qr :is(.dn-permit-qr, .dn-phone-qr img) { background: #FFFFFF !important; border-color: var(--color-border) !important; }
html[data-theme] body .dn-side-qr .dn-permit-facts { border-top-color: var(--color-border) !important; }
html[data-theme] body .dn-side-qr .dn-permit-facts dt { color: var(--color-text-muted) !important; }
html[data-theme] body .dn-side-qr .dn-permit-facts dd { color: var(--color-text-primary) !important; }
html[data-theme] body .dn-side-qr .dn-permit-ver a { color: var(--color-text-primary) !important; text-decoration: underline; text-underline-offset: 3px; }
html[data-theme] body .dn-ready-agent .dn-side-qr { margin-top: 18px; }

/* ---------- Brand gold, in three jobs only (owner 2026-11-25 «rang brand ro vared kon», design pack A1) ----------
   1. the selected state of a segmented control / tab   2. links inside article text   3. the rating stars
   Buttons stay white-on-dark / black-on-light, cards and borders stay neutral. Do not widen this list.
   Fill = --color-accent with --color-accent-ink text (dark 9.3:1, light 6.1:1); text links = --color-accent-text
   (#3d9bff on #212121 7.1:1, #0056b3 on #FFFFFF 7.0:1). */
html { --color-accent: #007bff; --color-accent-text: #0056b3; --color-accent-ink: #171717; }
html[data-theme="dark"] { --color-accent: #3d9bff; --color-accent-text: #3d9bff; --color-accent-ink: #171717; }
html[data-theme] body #dnh .dnh-seg input:checked + span,
html[data-theme] body #dnh .dnh-tab[aria-selected="true"],
html body #dnHybridListings#dnHybridListings#dnHybridListings#dnHybridListings .dnsb-seg button.is-on {
  background: var(--color-accent) !important; color: var(--color-accent-ink) !important; border-color: var(--color-accent) !important; }
html[data-theme] body .dn-post .dn-post-body a { color: var(--color-accent-text) !important;
  text-decoration-color: color-mix(in srgb, var(--color-accent-text) 55%, transparent) !important; }
html[data-theme] body .dn-post .dn-post-body a:hover { text-decoration-color: var(--color-accent-text) !important; }
html body .rv .rv-stars .on { color: var(--color-accent-text, #0056b3) !important; }   /* audit round 3 B4: text gold, 7:1 */

/* ---------- Footer v2 (owner 2026-11-25 «Yes, build it», footer mock-up _review/footer-mockup.html) ----------
   brand + newsletter on one row, five link columns, one bottom bar (copyright · social · legal). Phones: brand, newsletter, the
   four contact buttons, the folding groups (links stay in the page), the bottom bar. */
html body .theme-footer-area .dnf.dnf-v2 .dnf-top {
  max-width: var(--dn-frame-in, 1216px); width: calc(100% - 2 * var(--dn-gutter, 32px)); margin: 0 auto !important; padding: 40px 0 28px !important;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; align-items: center; border-bottom: 1px solid var(--f-line) !important;
}
html body .theme-footer-area .dnf.dnf-v2 .dnf-brand { display: flex; flex-direction: row; align-items: center; gap: 16px; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-logo { align-self: center !important; flex: 0 0 auto; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-logo img { height: 56px; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-brand-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-tag { font-size: 16px !important; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-name { text-align: start !important; }
/* newsletter inside the top row: heading over one line of e-mail + Subscribe, the consent line; topics and "I am" open on focus */
html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem.dnem-in-footer { max-width: none; width: auto; margin: 0; padding: 0; border-top: 0; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem.dnem-box { grid-template-columns: minmax(0, 1fr); gap: 10px; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem .dnem-h { font-size: 16px !important; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem .dnem-form { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "email send" "topics role" "consent consent" "msg msg"; gap: 10px 8px; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem .dnem-email > .dnem-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem input[type="email"], html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem .dnem-btn { min-height: 44px; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnf-nl:not(.dnf-nl-open) .dnem :is(.dnem-topics, .dnem-role) { display: none; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem .dnem-consent b { font-size: 12px; }
/* five columns */
html body .theme-footer-area .dnf.dnf-v2 .dnf-in { padding: 28px 0 0 !important; max-width: var(--dn-frame-in, 1216px); width: calc(100% - 2 * var(--dn-gutter, 32px));
  grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.2fr); gap: 24px; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-list { margin-top: 10px !important; gap: 0; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-list a { min-height: 28px !important; font-size: 14px !important; line-height: 28px !important; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-contact { gap: 10px; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-lines { gap: 6px; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-line { font-size: 14px !important; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-addr { font-size: 12px !important; opacity: .85; }
/* one bottom bar */
html body .theme-footer-area .dnf.dnf-v2 .dnf-bottom { margin-top: 26px !important; padding-top: 16px !important; padding-bottom: calc(var(--dn-ct-reserve, 72px) + 24px + env(safe-area-inset-bottom, 0px)) !important; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-bottom .dnf-social { margin: 0 !important; }
html body .theme-footer-area .dnf.dnf-v2 .dnf-bottom .dnf-social-a { width: 34px; height: 34px; }
@media (min-width: 761px) and (max-width: 1100px) {
  html body .theme-footer-area .dnf.dnf-v2 .dnf-top { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-in { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 760px) {
  html body .theme-footer-area .dnf.dnf-v2 .dnf-top { width: auto; margin: 0 16px !important; padding: 28px 0 20px !important; grid-template-columns: minmax(0, 1fr); gap: 20px; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-logo img { height: 50px; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem .dnem-form { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "email send" "topics topics" "role role" "consent consent" "msg msg"; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-top .dnem .dnem-send { width: auto; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-in { width: auto; padding: 16px 16px 0 !important; gap: 0; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-brand { order: 0; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-nl { order: 1; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-contact { order: 1; padding-bottom: 16px !important; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-contact > .dnf-h { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-lines { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-line.dnf-q { min-height: 48px !important; padding: 6px 10px !important; border: 1px solid var(--f-line) !important; border-radius: 12px; align-items: center; justify-content: center; text-align: center !important; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-line.dnf-q bdi { font-size: 12px; white-space: nowrap; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-line.dnf-q small { display: none; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-line:not(.dnf-q) { grid-column: 1 / -1; min-height: 36px !important; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-nav { order: 2; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-list a { min-height: 44px !important; line-height: 44px !important; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-bottom { margin-top: 20px !important; padding-inline: 16px !important; flex-direction: column; align-items: flex-start; gap: 10px; }
  html body .theme-footer-area .dnf.dnf-v2 .dnf-bottom .dnf-social-a { width: 40px; height: 40px; }
}

/* ---------- Listing page layout (owner 2026-11-26 «Yes, build it» on the listing mock-up; design pack G1/G2/G4/G5/G6/G8) ----------
   js/dn-property-detail-v1.js renderReady(): title, type · place, price, monthly figure + mortgage link, the four key facts
   (.dn-ready-keys), About, Property details as a list (.dn-ready-kv, with reference + listed on), Amenities, Location, short link.
   Side card: agent, buttons, note, calculators (.dn-ready-calc), DLD permit + phone QR. Similar listings run the full width. */
/* .dn-ready-main is a flex column with a 28px gap: the title group sits closer (negative top margins take part of that gap back).
   Only inside .dn-ready-main: a project page has its title and type line straight in the article (2026-11-26 fix - they overlapped) */
html[data-theme] body .dn-ready-plp .dn-ready-main > .dn-ready-title { margin: 0 !important; }
html[data-theme] body .dn-ready-plp .dn-ready-main > .dn-ready-title + .dn-ready-kicker { margin: -22px 0 0 !important; }
html[data-theme] body .dn-ready-plp .dn-ready-main > .dn-ready-kicker + .dn-ready-price { margin: -10px 0 0 !important; }
html[data-theme] body .dn-ready-plp .dn-ready-main > .dn-ready-price + .dn-ready-own { margin: -24px 0 0 !important; }
html[data-theme] body .dn-ready-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: -8px 0 0; }
html[data-theme] body .dn-ready-keys:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
html[data-theme] body .dn-ready-key { min-width: 0; padding: 12px 14px; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface); }
html[data-theme] body .dn-ready-key span { display: block; color: var(--color-text-muted); font-size: 14px; }
html[data-theme] body .dn-ready-key strong { display: block; margin-top: 2px; color: var(--color-text-primary); font-size: 20px; font-weight: 600; overflow-wrap: anywhere; }
html[data-theme] body .dn-ready-plp .dn-ready-facts.dn-ready-kv { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 40px !important; row-gap: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; padding: 0 !important; }
html[data-theme] body .dn-ready-plp .dn-ready-kv .dn-ready-fact { min-height: 0 !important; padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--color-border) !important; display: block !important; }
html[data-theme] body .dn-ready-kv .dn-ready-fact .dn-ico { display: none; }
html[data-theme] body .dn-ready-kv .dn-ready-fact > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; width: 100%; }
html[data-theme] body .dn-ready-plp .dn-ready-kv .dn-ready-fact span { font-size: 14px !important; }
html[data-theme] body .dn-ready-plp .dn-ready-kv .dn-ready-fact strong { margin: 0 !important; text-align: end; font-size: 16px !important; font-weight: 500 !important; }
html[data-theme] body .dn-ready-plp ul.dn-chips.dn-ready-amen li { border-radius: 8px !important; }
html[data-theme] body .dn-ready-calc { display: block; margin: 16px 0 0; padding: 4px 16px; border: 1px solid var(--color-border); border-radius: 12px; }
html[data-theme] body .dn-ready-calc a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 44px; color: var(--color-text-primary); font-weight: 500; text-decoration: none; }
html[data-theme] body .dn-ready-calc a + a { border-top: 1px solid var(--color-border); }
html[data-theme] body .dn-ready-calc a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) {
  html[data-theme] body .dn-detail-shell:has(.dn-ready-plp) > .dn-hub-section, html[data-theme][dir] body .dn-detail-shell:has(.dn-ready-plp) > .dn-hub-section { max-width: none !important; }
  html body .dn-detail-shell:has(.dn-ready-plp) .dn-hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  html body .dn-detail-shell:has(.dn-ready-plp) .dn-hub-grid > .dn-hub-card:nth-child(n+5) { display: none !important; }
}
/* the "Explore <area>" link sits on the heading's line */
html body .dn-detail-shell:has(.dn-ready-plp) > .dn-hub-section:has(> .dn-hub-grid) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 16px; }
html body .dn-detail-shell:has(.dn-ready-plp) > .dn-hub-section:has(> .dn-hub-grid) > * { grid-column: 1 / -1; }
html body .dn-detail-shell:has(.dn-ready-plp) > .dn-hub-section:has(> .dn-hub-grid) > h2 { grid-column: 1; grid-row: 1; }
html body .dn-detail-shell:has(.dn-ready-plp) > .dn-hub-section:has(> .dn-hub-grid) > .dn-hub-more { grid-column: 2; grid-row: 1; margin: 0 !important; }
@media (max-width: 760px) {
  html[data-theme] body .dn-ready-keys, html[data-theme] body .dn-ready-keys:has(> :nth-child(3):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  html[data-theme] body .dn-ready-key strong { font-size: 16px; }
  html[data-theme] body .dn-ready-plp .dn-ready-facts.dn-ready-kv { grid-template-columns: 1fr !important; }
}

/* ---------- Project page layout (owner 2026-11-26, design pack H1/H2/H3/H5 on the Auresta Tower mock-up) ----------
   scripts/portal-prerender.mjs renderProject(): title, type line, price; the four-fact strip (.dn-ready-keys, styled with the listing's);
   the payment plan as a bar (.dn-pp); Project details as a list with the dates + short link folded into "Project record" (.dn-record);
   the description clamped after its second paragraph (.dn-clamp); calculators in one card (.dn-ready-calc, styled with the listing's). */
html[data-theme] body .dn-project-page > .dn-ready-title { margin: 20px 0 6px !important; }
html[data-theme] body .dn-project-page > .dn-ready-title + .dn-ready-kicker { margin: 0 0 16px !important; }
html[data-theme] body .dn-project-page > .dn-ready-kicker + .dn-ready-price { margin: 0 !important; }
html[data-theme] body .dn-project-page > .dn-ready-price + .dn-price-note { margin: 8px 0 0 !important; }
html[data-theme] body .dn-project-page .dn-ready-main > .dn-ready-keys { margin: 0; }
html[data-theme] body .dn-pp-bar { display: flex; gap: 4px; border-radius: 12px; overflow: hidden; }
html[data-theme] body .dn-pp-seg { min-width: 0; padding: 12px; display: flex; flex-direction: column; gap: 2px; color: #171717; }
html[data-theme] body .dn-pp-seg b { font-size: 20px; font-weight: 600; }
html[data-theme] body .dn-pp-seg span { font-size: 12px; line-height: 1.3; opacity: .85; overflow-wrap: anywhere; }
html[data-theme] body .dn-pp-seg.s0 { background: #3d9bff; } html[data-theme] body .dn-pp-seg.s1 { background: #a3c7ee; }
html[data-theme] body .dn-pp-seg.s2 { background: #cce0f5; } html[data-theme] body .dn-pp-seg.s3 { background: #e3eef9; }
/* Project details + record: label | value rows, two columns (one on phones) */
html[data-theme] body .dn-project-page dl.dn-ready-facts.dn-ready-kv { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; column-gap: 40px !important; row-gap: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; border-radius: 0 !important; }
html[data-theme] body .dn-project-page .dn-ready-kv .dn-fact { display: flex !important; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0 !important; border: 0 !important; border-bottom: 1px solid var(--color-border) !important; min-height: 0 !important; }
html[data-theme] body .dn-project-page .dn-ready-kv .dn-fact dt { margin: 0 !important; color: var(--color-text-muted) !important; font-size: 14px !important; font-weight: 400 !important; }
html[data-theme] body .dn-project-page .dn-ready-kv .dn-fact dd { margin: 0 !important; text-align: end; color: var(--color-text-primary) !important; font-size: 16px !important; font-weight: 500 !important; }
html[data-theme] body .dn-project-page .dn-ready-kv .dn-fact dd .dn-map-inline { display: block; margin-top: 2px; }
html[data-theme] body .dn-record { margin-top: 14px; }
html[data-theme] body .dn-record > summary { cursor: pointer; padding: 8px 0; color: var(--color-text-primary); font-weight: 500; }
html[data-theme] body .dn-ready-prose.dn-clamp { max-height: 260px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 65%, transparent); mask-image: linear-gradient(#000 65%, transparent); }
html[data-theme] body .dn-clamp-more { display: inline-flex; margin-top: 8px; padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--color-text-primary); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; align-items: center; }
html[data-theme] body .dn-project-aside .dn-ready-calc { margin: 10px 0; }
@media (max-width: 760px) {
  html[data-theme] body .dn-project-page dl.dn-ready-facts.dn-ready-kv { grid-template-columns: 1fr !important; }
  html[data-theme] body .dn-pp-seg { padding: 10px 8px; }
  html[data-theme] body .dn-pp-seg b { font-size: 16px; }
  html[data-theme] body .dn-pp-seg span { font-size: 12px; }
}

/* ---------- Listing card on hub pages = the Properties page card (owner 2026-11-26 «Yes, build it» on the similar-listings mock-up) ----------
   scripts/portal-prerender.mjs propertyCardHtml(): li.dn-hub-card.dn-pc > a.dn-pc-media (photo + tag), a.dn-pc-main (price, title, place,
   Bedrooms / Bathrooms / Size), a.dn-pc-cta "View details". The old card's ".dn-hub-card > a" box rules are undone for these three links. */
html body :is(li.dn-hub-card.dn-pc, .dn-pc.dn-pc) { display: flex !important; flex-direction: column; min-width: 0; height: 100%; border: 1px solid var(--color-border) !important; border-radius: 16px !important; overflow: hidden; background: var(--color-surface); box-shadow: none !important; transition: border-color .15s, box-shadow .15s; }
html body :is(li.dn-hub-card.dn-pc, .dn-pc.dn-pc):hover { border-color: var(--color-border-strong, #d4d4d4) !important; box-shadow: 0 12px 28px -20px rgba(0,0,0,.35) !important; }
html body :is(li.dn-hub-card.dn-pc, .dn-pc.dn-pc) > a { display: block; height: auto; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; transform: none !important; background: none !important; color: inherit; text-decoration: none; }
html body :is(li.dn-hub-card.dn-pc, .dn-pc.dn-pc) > a:focus-visible { outline: 2px solid var(--color-text-primary); outline-offset: -2px; }
html body .dn-pc-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--color-surface-tertiary) !important; }
html body .dn-pc-media img { display: block; width: 100%; height: 100% !important; object-fit: cover; }
html body .dn-pc-tag { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.94); color: #171717; font-size: 12px; font-weight: 500; line-height: 1.4; }
html body :is(li.dn-hub-card.dn-pc, .dn-pc.dn-pc) > a.dn-pc-main { flex: 1 1 auto; display: flex !important; flex-direction: column; gap: 0; padding: 14px 14px 0; }
html body .dn-pc-price { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--color-text-primary); }
html body .dn-pc-title { margin-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--color-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html body .dn-pc-place { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; color: var(--color-text-secondary); min-width: 0; }
html body .dn-pc-place > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html body .dn-pc-place svg { flex: 0 0 auto; }
/* owner 2026-11-28 «کارتاش بزرگ کوچیک میشه … همه یه اندازه باشه»: a value never takes a second line (that made one row of cards taller
   than the next). The columns are as wide as their own label / value, 20px apart, and a value that still cannot fit is cut with "…". */
html body .dn-pc-facts { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 20px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--color-border); }
html body .dn-pc-place + .dn-pc-facts { margin-top: 12px; }
html body .dn-pc-fact { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 0 1 auto; }
html body .dn-pc-fact small { font-size: 12px; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body .dn-pc-fact b { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--color-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body :is(li.dn-hub-card.dn-pc, .dn-pc.dn-pc) > a.dn-pc-cta { display: flex !important; align-items: center; justify-content: center; min-height: 44px; margin: 14px; border-radius: 999px !important; background: var(--color-button-primary, #171717) !important; color: var(--color-button-primary-text, #fff) !important; font-size: 16px; font-weight: 600; }
html body :is(li.dn-hub-card.dn-pc, .dn-pc.dn-pc) > a.dn-pc-cta:hover { opacity: .9; }
/* The one card everywhere (owner 2026-11-26 «همه شکل همشه» on the one-card mock-up): .dn-pc on any element (the home's new
   listings, the off-plan projects page, the buildings' "Available now", the hubs). A project's facts: Bedrooms (range) | Type |
   Handover; a building's home: no price, no permit QR. */
html body .dn-pc.dn-pc { list-style: none; text-align: start; }
html body .dn-pc.dn-pc > a.dn-pc-main { color: inherit; text-decoration: none; }
/* phones: the "Explore <area>" link goes under the heading instead of squeezing it */
@media (max-width: 760px) {
  html body .dn-detail-shell:has(.dn-ready-plp) > .dn-hub-section:has(> .dn-hub-grid) > .dn-hub-more { grid-column: 1 / -1; grid-row: auto; order: 3; }
}

/* ---------- /communities directory (owner 2026-11-26 «Yes, build it» + «the map stays under it»; design pack I1/I2) ----------
   _redesign/build-areas-v2.py + js/dn-areas-2026.js: "Only areas with listings" (on by default), the first nine cards, then
   "Show all N areas"; an empty area says one short line. The map and its area panel stay below; the second full homes list under
   the map ("Homes for sale across Dubai", ~2,500px) is not shown - the Properties page is that list. */
html[data-theme] body .dn-areas-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
html[data-theme] body .dn-areas-only { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; min-height: 44px; font-size: 14px; color: var(--color-text-primary); white-space: nowrap; cursor: pointer; }
html[data-theme] body .dn-areas-only input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-text-primary); }
html[data-theme] body .dn-areas-more-wrap { margin: 24px 0 0; text-align: center; }
html[data-theme] body .dn-areas-more { min-height: 44px; padding: 0 22px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text-primary); font: inherit; font-weight: 600; cursor: pointer; }
html[data-theme] body .dn-areas-more:hover { background: var(--color-surface-hover, var(--color-surface-tertiary)); }
html[data-theme] body .dn-areas-more[hidden] { display: none; }
html[data-theme] body .dn-areas .dn-ac-zero { opacity: .8; }
html body #dnCommunityV8 .dn-v8-results { display: none !important; }
@media (max-width: 760px) { html[data-theme] body .dn-areas-only { margin-inline-start: 0; } }
html body .dn-pc-place svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* /agents (owner 2026-11-26 «Yes, build it» on the agents mock-up; js/dn-agents-listing.js): consultants as upright cards, 4 a row -
   photo, name, role, languages, focus, WhatsApp + Call of one size; the support team as a compact row under them (#dnAgTeam). */
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.grid.dn-ag-grid { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .card.dn-agent-card.dn-ag { display: flex !important; flex-direction: column; grid-template-columns: none !important; min-height: 0 !important; padding: 0 !important; overflow: hidden; border: 1px solid var(--color-border) !important; border-radius: 16px !important; background: var(--color-surface) !important; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag .dn-agent-photo.dn-ag-ph { position: relative; display: block; aspect-ratio: 4 / 5; min-height: 0 !important; height: auto; background: var(--color-surface-tertiary) !important; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag .dn-agent-photo .photo { object-position: 50% 12% !important; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-b { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px; text-align: start; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-n { font: 600 16px/1.3 var(--font-sans, inherit) !important; color: var(--color-text-primary) !important; text-decoration: none !important; padding: 0 !important; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-r { margin: 2px 0 0 !important; font-size: 14px !important; line-height: 1.35; color: var(--color-text-secondary) !important; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid :is(.dn-ag-l, .dn-ag-f) { margin-top: 10px; font-size: 14px; line-height: 1.4; color: var(--color-text-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid :is(.dn-ag-l, .dn-ag-f) small { display: block; font-size: 12px; color: var(--color-text-muted); }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-act { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: auto; padding-top: 14px; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-act a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-act a.dn-ag-wa { background: var(--color-button-primary, #171717); color: var(--color-button-primary-text, #fff) !important; }
:is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-act a.dn-ag-tel { border: 1px solid var(--color-border); color: var(--color-text-primary) !important; background: transparent; }
html body .dn-ag-team { margin: 48px 0 24px; }
html body .dn-ag-team[hidden] { display: none; }
html body .dn-ag-team h2 { margin: 0 0 14px; font-size: 20px; font-weight: 600; color: var(--color-text-primary); }
html body .dn-ag-team-row { display: flex; flex-wrap: wrap; gap: 12px; }
html body .dn-ag-tm { display: flex; align-items: center; gap: 12px; padding: 10px 18px 10px 10px; padding-inline: 10px 18px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); }
html body .dn-ag-tm-ph { position: relative; flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; overflow: hidden; background: var(--color-surface-tertiary); }
html body .dn-ag-tm-ph .dn-agent-monogram { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; color: var(--color-text-muted); }
html body .dn-ag-tm-ph .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
html body .dn-ag-tm-t b { display: block; font-size: 16px; font-weight: 600; color: var(--color-text-primary); }
html body .dn-ag-tm-t span { font-size: 14px; color: var(--color-text-secondary); }
@media (max-width: 1100px) { html body:has(#agentsGrid) #agentsGrid.grid.dn-ag-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 760px) {
  :is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.grid.dn-ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
  :is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-b { padding: 10px; }
  :is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-n { font-size: 16px !important; }
  :is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-act { grid-template-columns: 1fr; }
  :is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-act a { min-height: 38px; font-size: 14px; }
  :is(html, html[data-theme]) body:has(#agentsGrid) #agentsGrid.dn-ag-grid .dn-ag-f { display: none; }
}

/* One steps block on every page that explains a process (owner 2026-11-26 «Steps + B» on the steps mock-up): About "How we work",
   Sell "How selling with Hamiyan Paydar works", Join as agent "How it works". Numbered circles on one line (--n a row), a vertical line on
   phones. Markup: ol.dn-steps > li > span.dn-step-n + div > h3 + p (builders: build-about-v1.py, build-sell-v2.py; join-as-agent.html). */
html body ol.dn-steps.dn-steps { position: relative; display: grid !important; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)) !important; gap: 28px 24px !important; margin: 20px 0 0 !important; padding: 0 !important; list-style: none !important; counter-reset: none; }
html body ol.dn-steps.dn-steps::before { content: ""; position: absolute; top: 19px; inset-inline: 20px; height: 1px; background: var(--color-border, #e5e5e5); }
html body ol.dn-steps.dn-steps > li { position: relative; display: block !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; min-height: 0 !important; }
html body ol.dn-steps.dn-steps > li::before, html body ol.dn-steps.dn-steps > li::after { content: none !important; }
html body ol.dn-steps.dn-steps .dn-step-n { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-button-primary, #171717); color: var(--color-button-primary-text, #fff); font-size: 16px; font-weight: 600; line-height: 1; box-shadow: 0 0 0 6px var(--color-background, #fff); }
html body ol.dn-steps.dn-steps h3 { margin: 16px 0 6px !important; padding: 0 !important; font-size: 16px !important; font-weight: 600 !important; line-height: 1.3 !important; color: var(--color-text-primary, #171717) !important; }
html body ol.dn-steps.dn-steps p { margin: 0 !important; font-size: 14px !important; line-height: 1.55 !important; color: var(--color-text-secondary, #525252) !important; }
html body ol.dn-steps.dn-steps > li > div { min-width: 0; }
@media (max-width: 760px) {
  html body ol.dn-steps.dn-steps { grid-template-columns: 1fr !important; gap: 22px !important; }
  html body ol.dn-steps.dn-steps::before { top: 20px; bottom: 20px; inset-inline-start: 19px; inset-inline-end: auto; width: 1px; height: auto; }
  html body ol.dn-steps.dn-steps > li { display: grid !important; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
  html body ol.dn-steps.dn-steps h3 { margin: 8px 0 4px !important; }
}

/* ============================================================================================================================
   HEADER 2026-11-26 (owner «Yes, build it» on the header mock-up): HAMIYAN PAYDAR / REAL ESTATE beside the logo; on desktop one
   EN · AED · ft² button (language, currency and area unit in one panel, as on phones - the separate AED ▾ / ft² ▾ menus are
   hidden), the round theme button, and «Book a consultation» last (js/dn-portal-shell-v2.js, js/dn-prefs-2026.js).
   ============================================================================================================================ */
html body .theme-logo-parent a.has-name { display: inline-flex !important; align-items: center; gap: 12px; text-decoration: none !important; }
html body .theme-logo-parent a.has-name img { flex: 0 0 auto; }
html body .dn-logo-name { display: flex; flex-direction: column; line-height: 1; white-space: nowrap; text-align: left; color: var(--color-text-primary); font-family: var(--font-sans); }
html body .dn-logo-name b { font-size: 19px; font-weight: 700; letter-spacing: .18em; /* wordmark lockup: off the type scale on purpose */ }
/* audit round 3 B3: the text gold (light #0056b3 7:1), not the fill gold #007bff (3.3:1 at 10.5px) */
html body .dn-logo-name small { margin-top: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .32em; color: var(--color-accent-text, #0056b3); }
/* owner 2026-11-27 «یه ذره به هم نزدیک‌تر ... یه ذره هم به سمت پایین بالانس باشه»: an English-page rule gave the two lines line-height 1.5
   (28.5px for a 19px word), so they stood apart and the pair sat high beside the logo. Both lines are 1 now (as on fa/ar), and the
   pair moves 2px down: capitals have no descenders, so a line-height-1 box looks higher than its middle. */
html body .theme-logo-parent .dn-logo-name, html body .theme-logo-parent .dn-logo-name b, html body .theme-logo-parent .dn-logo-name small { line-height: 1 !important; }
html body .theme-logo-parent .dn-logo-name { padding-top: 3px; }
html body .theme-logo-parent .dn-logo-name small { margin-top: 6px; }
@media (max-width: 991px) {
  html body .dn-logo-name b { font-size: 16px; letter-spacing: .14em; }
  html body .dn-logo-name small { margin-top: 4px; font-size: 9px; letter-spacing: .26em; }
  html body .theme-logo-parent .dn-logo-name small { margin-top: 5px; }
  html body .theme-logo-parent .dn-logo-name { padding-top: 2px; }
  html body .theme-logo-parent a.has-name { gap: 9px; }
}
@media (max-width: 359px) { html body .dn-logo-name { display: none; } }
html body a.dn-head-cta { display: none; }
@media (min-width: 992px) {
  html[data-theme] body .dn-pref-switch.is-desktop { display: none !important; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-btn { gap: 7px; height: 44px; padding: 0 14px 0 16px !important; font: 500 14px/1 var(--font-sans) !important; }
  html[data-theme] body nav.dn-header-lang .dn-hp-dot, html[data-theme] body nav.dn-header-lang .dn-hp-cur, html[data-theme] body nav.dn-header-lang .dn-hp-unit { display: inline; }
  html[data-theme] body nav.dn-header-lang .dn-hp-dot { color: var(--color-text-secondary); }
  html[data-theme] body nav.dn-header-lang .dn-hp-panel { width: 304px; padding: 12px; max-height: calc(100vh - 90px); overflow: auto; }
  html[data-theme] body nav.dn-header-lang .dn-hp-h { display: block; margin: 0 2px 8px; font: 500 12px/1.3 var(--font-sans); color: var(--color-text-secondary); }
  html[data-theme] body nav.dn-header-lang .dn-hp-h2 { margin-top: 14px; }
  html[data-theme] body nav.dn-header-lang .dn-hp-curs { display: block; margin-top: 14px; }
  html[data-theme] body nav.dn-header-lang .dn-hp-curs:empty { display: none; }
  html[data-theme] body nav.dn-header-lang .dn-hp-grid, html[data-theme] body nav.dn-header-lang .dn-hp-units { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; min-width: 0; min-height: 46px; margin: 0; padding: 4px 10px !important;
    border: 0 !important; border-radius: 12px !important; background: transparent !important; color: var(--color-text-primary) !important; font: 400 12px/1.25 var(--font-sans) !important; text-align: start; cursor: pointer; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt:hover { background: var(--color-surface-hover) !important; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt[aria-pressed="true"] { background: var(--color-surface-tertiary) !important; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: -2px; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt b { font-weight: 600; font-size: 14px; }
  html[data-theme] body nav.dn-header-lang button.dn-hp-opt span { max-width: 100%; overflow: hidden; color: var(--color-text-secondary); text-overflow: ellipsis; white-space: nowrap; }
  html[data-theme] body .dn-theme-switch.is-desktop > button.dn-theme-btn { width: 44px; height: 44px; border-radius: 50%; }
  html[data-theme] body a.dn-head-cta { display: inline-flex; align-items: center; flex: 0 0 auto; order: 10; height: 44px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--color-text-primary); color: var(--color-surface) !important;
    font: 600 14px/1 var(--font-sans); text-decoration: none !important; white-space: nowrap; transition: opacity .15s; }
  html[data-theme] body a.dn-head-cta:hover { opacity: .88; }
  html[data-theme] body a.dn-head-cta:focus-visible { outline: 2px solid var(--color-focus-ring); outline-offset: 2px; }
  /* the menu keeps the wider controls group free (see 1280 FRAME above); widths measured 2026-11-26: EN 419px, FA 314, AR 330
     with the button; without it ~215. The button goes where the menu would otherwise wrap: under 1280px (EN), 1100px (FA / AR). */
  html body [data-headercontainer] { --dn-hdr-ctrls: 420px; }
  html[dir="rtl"] body [data-headercontainer] { --dn-hdr-ctrls: 334px; }
  html body [data-headercontainer]:has(.dn-saved-pill.is-on) { --dn-hdr-ctrls: 468px; }
  html[dir="rtl"] body [data-headercontainer]:has(.dn-saved-pill.is-on) { --dn-hdr-ctrls: 382px; }
  html body [data-headercontainer] > .theme-header .theme-menu > ul[data-zs-menu-container] > li > a { padding-inline: 6px !important; white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1279px) {
  html:not([dir="rtl"]) body a.dn-head-cta { display: none !important; }
  html:not([dir="rtl"]) body [data-headercontainer] { --dn-hdr-ctrls: 216px; }
  html:not([dir="rtl"]) body [data-headercontainer]:has(.dn-saved-pill.is-on) { --dn-hdr-ctrls: 264px; }
}
@media (min-width: 992px) and (max-width: 1099px) {
  html[dir="rtl"] body a.dn-head-cta { display: none !important; }
  html[dir="rtl"] body [data-headercontainer] { --dn-hdr-ctrls: 210px; }
  html[dir="rtl"] body [data-headercontainer]:has(.dn-saved-pill.is-on) { --dn-hdr-ctrls: 258px; }
}


/* Header without the late jump (2026-11-28): js/dn-portal-shell-v2.js adds HAMIYAN PAYDAR / REAL ESTATE beside the logo and
   js/dn-theme-2026.js the round theme button only after the first paint, so the menu moved 119 px and the top-bar controls
   64 px. Until each one is there its place is kept, invisibly, at its final size; after that these rules match nothing.
   EN: the word itself in the same type (Inter is display=optional, so the box follows whichever font the page ends with);
   FA / AR: the measured width (Vazirmatn / IBM Plex Sans Arabic are display=swap, so the final width is always theirs; the
   name keeps that width too while its font is still on the way). */
@media (min-width: 992px) {
  html body .theme-logo-parent a:not(.has-name) { display: inline-flex !important; align-items: center; gap: 12px; }
  html body .theme-logo-parent a:not(.has-name)::after { content: "HAMIYAN PAYDAR"; visibility: hidden; flex: 0 0 auto; font-family: var(--font-sans); font-size: 19px; font-weight: 700; line-height: 1; white-space: nowrap; }
  html[lang^="fa"] body .theme-logo-parent a:not(.has-name)::after { content: ""; flex: 0 0 133.78px; }
  html[lang^="ar"] body .theme-logo-parent a:not(.has-name)::after { content: ""; flex: 0 0 140.78px; }
  html[lang^="fa"] body .theme-logo-parent .dn-logo-name { min-width: 133.78px; }
  html[lang^="ar"] body .theme-logo-parent .dn-logo-name { min-width: 140.78px; }
  html[data-theme]:not([data-theme-lock]) body .theme-header-topbar .zpcontainer:has(> .dn-head-cta):not(:has(> .dn-theme-switch)) { display: flex !important; align-items: center !important; gap: 10px !important; }
  html[data-theme]:not([data-theme-lock]) body .theme-header-topbar .zpcontainer:has(> .dn-head-cta):not(:has(> .dn-theme-switch))::after { content: ""; flex: 0 0 44px; height: 44px; order: 9; }
}
/* Russian (owner 2026-11-28): the ru menu labels need ~670px, so from 1280px the header button goes, the way it goes on EN under
   1280px (the 1280 frame keeps the menu that wide at every desktop width); consultation stays in the Company menu */
@media (min-width: 1280px) {
  html[lang="ru"] body a.dn-head-cta { display: none !important; }
  html[lang="ru"] body [data-headercontainer] { --dn-hdr-ctrls: 216px; }
  html[lang="ru"] body [data-headercontainer]:has(.dn-saved-pill.is-on) { --dn-hdr-ctrls: 264px; }
}
/* Simplified Chinese (/zh/, 2026-11-29): Manrope / Inter have no Chinese, and no web font is loaded for it - the system's own CJK face
   (PingFang SC on Apple, Microsoft YaHei on Windows, Noto Sans SC on Android / Linux). The Latin face stays first, so names, prices
   and digits keep the site's look. No italic Chinese; uppercase labels keep no letter-spacing. */
html[lang^="zh"] { --dn26-font: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", system-ui, sans-serif; }
html[data-theme][lang^="zh"] { --font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", ui-sans-serif, system-ui, sans-serif; }
html[lang^="zh"] body { line-break: strict; word-break: normal; overflow-wrap: break-word; }
html[lang^="zh"] body :is(em, i):not([class*="icon"]):not([class*="fa-"]) { font-style: normal; }
/* French (/fr/, 2026-11-29): the fr menu labels (~610px) do not fit beside the header button in the 1280 frame either (Ressources and
   Société went to a second row), so from 1280px the button goes as on ru; consultation stays in the Company menu. fr uses the site's
   Latin fonts: none of the zh font rules apply.
   tr (2026-11-29): the Turkish labels (Satılık · Kiralık · Satış · Projeler · Bölgeler · Kaynaklar · Hizmetler · Kurumsal) are as wide as
   the French ones, so the same rule; Latin fonts too (ç ğ ı İ ö ş ü are in Inter / Manrope latin-ext). */
@media (min-width: 1280px) {
  html[lang="fr"] body a.dn-head-cta, html[lang="tr"] body a.dn-head-cta { display: none !important; }
  html[lang="fr"] body [data-headercontainer], html[lang="tr"] body [data-headercontainer] { --dn-hdr-ctrls: 216px; }
  html[lang="fr"] body [data-headercontainer]:has(.dn-saved-pill.is-on), html[lang="tr"] body [data-headercontainer]:has(.dn-saved-pill.is-on) { --dn-hdr-ctrls: 264px; }
}

/* ---------- Community page (design audit round 5 item B, 2026-11-30) ----------
   Ten sections of one width and one weight read as equally important. From 1100px: the listings and the off-plan projects stay
   full sections; "Living in <area>" and "<area> property market" share one band (guide text, market figures beside it); Buildings,
   Around and the area's experts are one compact three-column row on the alternate ground. Only the layout changes - the generated
   HTML (scripts/portal-prerender.mjs) and its section ids (#guide #area-prices #buildings #around #area-experts) are as they were,
   so every language and every area gets it; a page that lacks one of the parts gives its place to the others. */
@media (min-width: 1100px) {
  html body article.dn-hub-community { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  html body article.dn-hub-community > * { grid-column: 1 / -1; min-width: 0; }
  /* band 1: guide | market */
  html body article.dn-hub-community > #guide { order: 10; grid-column: span 6; margin: 40px 0 0 !important; }
  html body article.dn-hub-community > #area-prices { order: 11; grid-column: span 6; margin: 40px 0 0 !important; }
  html body article.dn-hub-community:not(:has(> #area-prices)) > #guide,
  html body article.dn-hub-community:not(:has(> #guide)) > #area-prices { grid-column: 1 / -1; }
  /* the market figures in half the width: three figures in a row, the table under them, then the quarterly chart */
  html body article.dn-hub-community:has(> #guide) > #area-prices .mk-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  html body article.dn-hub-community:has(> #guide) > #area-prices .mk-tile { padding: 12px 14px; }
  html body article.dn-hub-community:has(> #guide) > #area-prices .mk-tile b { font-size: 20px; }
  html body article.dn-hub-community:has(> #guide) > #area-prices .mk-tile :is(small, em) { font-size: 12px; }
  html body article.dn-hub-community:has(> #guide) > #area-prices .mk-grid { grid-template-columns: minmax(0, 1fr); }
  /* beside the guide the figures are the three tiles and the table by bedrooms; the four-bar quarterly chart stays on the
     narrower layouts, where the section has the full width (with it the column stood 270px taller than the text beside it) */
  html body article.dn-hub-community:has(> #guide) > #area-prices .mk-grid > .mk-chart { display: none; }
  /* band 2: buildings | around | experts, on the alternate ground from edge to edge */
  html body article.dn-hub-community > :is(#buildings, #around, #area-experts) { align-self: stretch; margin: 48px 0 0 !important; padding-block: 32px !important; position: relative; z-index: 1; }
  /* the ground of the row is painted once, by the first of the three the page has (a full-width shadow on each would cover its
     neighbours); it sits under them. White on the light page's grey, the raised surface on the dark page. */
  html body article.dn-hub-community { --dn-band: var(--color-background, #fff); }
  html[data-theme="dark"] body article.dn-hub-community { --dn-band: var(--color-surface-secondary, #262626); }
  html body article.dn-hub-community > #buildings,
  html body article.dn-hub-community:not(:has(> #buildings)) > #around,
  html body article.dn-hub-community:not(:has(> #buildings)):not(:has(> #around)) > #area-experts {
    z-index: 0; background: var(--dn-band); box-shadow: 0 0 0 100vmax var(--dn-band); clip-path: inset(0 -100vmax);
  }
  /* 3 / 5 / 4 of twelve: the three columns come out about the same height (equal thirds left the places 240px taller) */
  html body article.dn-hub-community > #buildings { order: 20; grid-column: span 3; }
  html body article.dn-hub-community > #around { order: 21; grid-column: span 5; }
  html body article.dn-hub-community > #area-experts { order: 22; grid-column: span 4; }
  html body article.dn-hub-community:not(:has(> #around)) > :is(#buildings, #area-experts) { grid-column: span 6; }
  html body article.dn-hub-community:not(:has(> #buildings)) > #around { grid-column: span 8; }
  html body article.dn-hub-community:not(:has(> #buildings)) > #area-experts { grid-column: span 4; }
  html body article.dn-hub-community:not(:has(> #area-experts)) > #around { grid-column: span 8; }
  html body article.dn-hub-community:not(:has(> #area-experts)) > #buildings { grid-column: span 4; }
  html body article.dn-hub-community:not(:has(> #buildings)):not(:has(> #area-experts)) > #around,
  html body article.dn-hub-community:not(:has(> #around)):not(:has(> #area-experts)) > #buildings,
  html body article.dn-hub-community:not(:has(> #around)):not(:has(> #buildings)) > #area-experts { grid-column: 1 / -1; }
  html body article.dn-hub-community > :is(#buildings, #around, #area-experts) > h2 { font-size: 20px !important; margin-bottom: 14px !important; }
  /* the experts' cards one under the other in their column */
  html body article.dn-hub-community:has(> #around) > #area-experts .ax-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  /* the questions in two columns (eight rows of 67px in one column were the longest block after the listings) */
  html body article.dn-hub-community > #faq > .dn-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  html body article.dn-hub-community > #faq > .dn-faq > :not(.dn-faq-item) { grid-column: 1 / -1; }
  /* what follows the two bands */
  html body article.dn-hub-community > :is(#other-communities, #other-communities ~ *, #faq, #faq ~ *) { order: 30; }
}
/* one main action in the hero: "View on map" and "Community map & guide" went to almost the same place as the map panel's own
   links (Directions / Open in Google Maps / Satellite view) right under them */
html body article.dn-hub-community .dn-hub-actions > a.dn-hub-btn { display: none !important; }
