/* dn-enquiry.css — the site-wide contact form (2026-09-21).
   Everything is scoped under .dn-enq-* so it cannot reach any existing portal rule. Direction
   comes from the dialog's own dir attribute, which dn-enquiry.js copies from <html lang>, and
   every spacing rule uses logical properties so RTL needs no second block. */

:root {
  --dn-enq-gold: #b08d57;
  --dn-enq-ink: #131313;
  --dn-enq-muted: #5d6673;
  --dn-enq-line: #dfe3ea;
  --dn-enq-bad: #b3261e;
  --dn-enq-radius: 14px;
}

html.dn-enq-locked,
html.dn-enq-locked body { overflow: hidden; }

.dn-enq-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483000;           /* above the site's floating WhatsApp button and sticky nav */
  background: rgba(10, 13, 18, .62);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.dn-enq-dialog {
  background: #fff;
  color: var(--dn-enq-ink);
  width: 100%;
  max-width: 520px;
  border-radius: var(--dn-enq-radius);
  box-shadow: 0 24px 64px rgba(0, 0, 0, .34);
  padding: 22px;
  font-family: inherit;
  font-size: 16px;               /* 16px keeps iOS Safari from zooming when a field is focused */
  line-height: 1.5;
  max-height: 100%;
  overflow-y: auto;
}

.dn-enq-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-block-end: 14px;
}
.dn-enq-title { margin: 0; font-size: 20px; font-weight: 700; }
.dn-enq-about {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--dn-enq-muted);
  overflow-wrap: anywhere;       /* a listing name with no spaces must not widen the dialog */
}
.dn-enq-x {
  margin-inline-start: auto;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  font-size: 26px;
  line-height: 1;
  color: var(--dn-enq-muted);
  cursor: pointer;
  border-radius: 10px;
}
.dn-enq-x:hover { background: #f2f4f7; }

.dn-enq-form { display: block; }
/* `hidden` must win over the display rules above (2026-09-27). `.dn-enq-form { display: block }`
   out-ranked the browser's own [hidden] rule, so after a successful send the dialog showed the
   thank-you AND the filled-in form underneath it. */
.dn-enq-backdrop [hidden],
.dn-enq-inline [hidden] { display: none !important; }
.dn-enq-row { display: flex; gap: 12px; }
.dn-enq-row > .dn-enq-field { flex: 1 1 0; min-width: 0; }

.dn-enq-field { display: block; margin-block-end: 12px; }
.dn-enq-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-block-end: 5px;
  color: var(--dn-enq-muted);
}
.dn-enq-field input,
.dn-enq-field select,
.dn-enq-field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;              /* the 44px touch floor, plus the border */
  padding: 10px 12px;
  border: 1px solid var(--dn-enq-line);
  border-radius: 10px;
  font: inherit;
  font-size: 16px;
  color: inherit;
  background: #fff;
}
.dn-enq-field textarea { min-height: 84px; resize: vertical; }
.dn-enq-field input:focus,
.dn-enq-field select:focus,
.dn-enq-field textarea:focus {
  outline: 2px solid var(--dn-enq-gold);
  outline-offset: 1px;
  border-color: var(--dn-enq-gold);
}
.dn-enq-field [aria-invalid="true"] { border-color: var(--dn-enq-bad); }

.dn-enq-phone { display: flex; gap: 8px; }
.dn-enq-phone select { flex: 0 0 8.5em; }
.dn-enq-phone input { flex: 1 1 auto; min-width: 0; }

.dn-enq-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--dn-enq-muted);
  margin-block: 4px 6px;
}
.dn-enq-consent input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--dn-enq-gold);
}
.dn-enq-consent a { color: var(--dn-enq-gold); }

.dn-enq-err {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--dn-enq-bad);
  margin-block-start: 4px;
}
.dn-enq-formerr {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fdecea;
  color: var(--dn-enq-bad);
  font-size: 14px;
}

/* The honeypot: out of sight, out of the tab order, out of the accessibility tree. It must not
   use display:none — some bots skip hidden fields, and some browsers skip them on autofill. */
.dn-enq-hp {
  position: absolute;
  inset-inline-start: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.dn-enq-send {
  display: block;
  width: 100%;
  min-height: 48px;
  margin-block-start: 6px;
  border: 0;
  border-radius: 10px;
  background: var(--dn-enq-gold);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.dn-enq-send:hover { filter: brightness(1.06); }
.dn-enq-send[disabled] { opacity: .65; cursor: default; }

.dn-enq-wa {
  display: block;
  text-align: center;
  margin-block-start: 10px;
  min-height: 44px;
  line-height: 44px;
  font-size: 14px;
  color: var(--dn-enq-muted);
  text-decoration: underline;
}

.dn-enq-done { text-align: center; padding: 12px 0 4px; }
.dn-enq-done h3 { margin: 10px 0 6px; font-size: 19px; }
.dn-enq-done p { margin: 0 0 16px; color: var(--dn-enq-muted); }
.dn-enq-tick {
  width: 56px;
  height: 56px;
  margin: 0 auto;
  border-radius: 50%;
  background: #e8f5ec;
  color: #1e7a42;
  font-size: 30px;
  line-height: 56px;
}

/* Phones: a full-height sheet, because a 520px card inside a 360px viewport with the keyboard up
   pushes the Send button off screen. */
@media (max-width: 640px) {
  .dn-enq-backdrop { padding: 0; align-items: stretch; }
  .dn-enq-dialog {
    max-width: none;
    border-radius: 0;
    min-height: 100%;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    padding-block-start: calc(16px + env(safe-area-inset-top));
  }
  .dn-enq-row { display: block; }
  .dn-enq-row > .dn-enq-field { width: 100%; }
}

/* A visitor who asked for less motion gets none; the dialog simply appears. */
@media (prefers-reduced-motion: no-preference) {
  .dn-enq-dialog { animation: dn-enq-in .16s ease-out; }
  @keyframes dn-enq-in { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }
}

/* The site has no dark mode today; this only follows the device so the form is not a white flash
   for somebody who does have one forced. */
@media (prefers-color-scheme: dark) {
  /* Scoped to the DIALOG (2026-09-27): the contact page's inline form sits on the site's own white
     page, and a dark card with dark fields in the middle of it read as a broken embed. */
  .dn-enq-dialog { background: #171b22; color: #eef1f6; }
  .dn-enq-dialog .dn-enq-field input,
  .dn-enq-dialog .dn-enq-field select,
  .dn-enq-dialog .dn-enq-field textarea { background: #11151b; border-color: #2c333d; color: inherit; }
  .dn-enq-dialog .dn-enq-about, .dn-enq-dialog .dn-enq-field > span, .dn-enq-dialog .dn-enq-consent,
  .dn-enq-dialog .dn-enq-done p, .dn-enq-dialog .dn-enq-wa { color: #a8b1bd; }
  .dn-enq-x:hover { background: #222833; }
  .dn-enq-dialog .dn-enq-formerr { background: #3a1c1a; color: #ffb4ab; }
  .dn-enq-dialog .dn-enq-tick { background: #143122; color: #7ddba3; }
}

/* ── The triggers ────────────────────────────────────────────────────────────
   Each mount point sits next to links the page already styles (.btn, .dn-agent-call,
   .dn-website …). A <button> does not inherit those, so these rules give the new control the
   same shape as its neighbours without touching a single existing selector. */
.dn-agent-enquire,            /* property + project cards (propertiesstatic) */
.dn-v6-card-enquire,          /* community cards */
.dn-enquire-btn,              /* agent profile */
.btn.btn-enquire,             /* agent cards */
.dn-btn.dn-btn-enquire {      /* developer cards */
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  border: 1px solid var(--dn-enq-gold);
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--dn-enq-gold);
  color: #fff;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.dn-agent-enquire:hover,
.dn-v6-card-enquire:hover,
.dn-enquire-btn:hover,
.btn.btn-enquire:hover,
.dn-btn.dn-btn-enquire:hover { filter: brightness(1.06); }

/* The card footers are tight: on a narrow card the label alone is enough. */
.dn-agent-enquire { padding: 8px 12px; font-size: 13px; }
.dn-v6-card-enquire { margin-block-start: 8px; padding: 9px 14px; font-size: 13px; }
.dn-enquire-btn { display: block; width: 100%; margin-block-start: 8px; text-align: center; }

@media (max-width: 640px) {
  .btn.btn-enquire, .dn-btn.dn-btn-enquire { width: 100%; }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════
   2026-09-22 — ONE primary call to action, made to be seen.
   The owner: "the Request information button should be a sharp, beautiful button that stands
   out on the page — right now you cannot find it". On the prebuilt property pages it rendered as
   a raw browser <button> (21 px tall, 1px outset border) because its neighbours are styled as
   links; project pages had no button at all. Every enquiry trigger now wears the same look —
   deep ink with a gold edge and a gold paper-plane — and the detail pages also get it right
   under the price (the first thing a visitor reads) and, on a phone, in a bar that stays at the
   bottom of the screen. Styled here, in the file every page already loads, so no page stylesheet
   has to know about it.
   ════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --dn-cta-ink: #131313;      /* brand book ink (was navy #111827, 2026-10-10) */
  --dn-cta-ink-2: #2a2622;
  --dn-cta-gold: #C7A74D;
  --dn-cta-gold-soft: #ecd79c;
  --dn-cta-glow: rgba(199, 167, 77, .45);
  --dn-cta-plane: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4Z'/%3E%3C/svg%3E");
}

.dn-cta,
button.dn-enquire,
.dn-enquire-btn {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid rgba(201, 162, 77, .7);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dn-cta-ink-2) 0%, var(--dn-cta-ink) 62%);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px -14px rgba(19, 19, 19, .6), 0 0 0 0 var(--dn-cta-glow),
              inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .18s ease, box-shadow .25s ease, border-color .25s ease;
}
/* the gold paper plane, drawn with a mask so it takes the gold from the token, crisp at any size */
.dn-cta::before,
button.dn-enquire::before,
.dn-enquire-btn::before {
  content: "";
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background: var(--dn-cta-gold-soft);
  -webkit-mask: var(--dn-cta-plane) center / contain no-repeat;
  mask: var(--dn-cta-plane) center / contain no-repeat;
}
[dir="rtl"] .dn-cta::before,
[dir="rtl"] button.dn-enquire::before,
[dir="rtl"] .dn-enquire-btn::before { transform: scaleX(-1); }
/* a thin gold sheen that crosses the button on hover — the "sharp" part */
.dn-cta::after,
button.dn-enquire::after,
.dn-enquire-btn::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(236, 215, 156, .28), transparent);
  transform: skewX(-18deg);
  transition: left .6s ease;
}
.dn-cta:hover,
button.dn-enquire:hover,
.dn-enquire-btn:hover {
  transform: translateY(-2px);
  border-color: var(--dn-cta-gold);
  box-shadow: 0 18px 34px -14px rgba(19, 19, 19, .65), 0 0 0 4px var(--dn-cta-glow),
              inset 0 1px 0 rgba(255, 255, 255, .1);
  filter: none;
}
.dn-cta:hover::after,
button.dn-enquire:hover::after,
.dn-enquire-btn:hover::after { left: 115%; }
.dn-cta:active,
button.dn-enquire:active,
.dn-enquire-btn:active { transform: translateY(0); }
.dn-cta:focus-visible,
button.dn-enquire:focus-visible,
.dn-enquire-btn:focus-visible { outline: 3px solid var(--dn-cta-gold); outline-offset: 3px; }

/* In the agent card it is the FIRST and widest action; Call and WhatsApp follow as secondary. */
.dn-ready-agent-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.dn-ready-agent-actions > button.dn-enquire,
.dn-agent-actions > button.dn-enquire {
  grid-column: 1 / -1 !important;
  order: -1;
  width: 100%;
}
.dn-enquire-btn { display: flex; width: 100%; margin-block-start: 10px; }

/* Right under the price: the hero call to action (inserted by js/dn-enquiry.js on property pages,
   written into the HTML on project pages). */
.dn-cta-hero-wrap { margin: 18px 0 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.dn-cta-hero-wrap .dn-cta { min-width: 290px; }
.dn-cta-hero-note { color: #667085; font-size: 13px; line-height: 1.5; }

/* Compact triggers inside listing cards keep their size but share the look. */
.dn-agent-enquire,
.dn-v6-card-enquire,
.btn.btn-enquire,
.dn-btn.dn-btn-enquire {
  background: linear-gradient(135deg, var(--dn-cta-ink-2), var(--dn-cta-ink));
  border-color: rgba(201, 162, 77, .7);
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
}

/* Phones: the hero call to action under the price takes the full width. The floating "Contact"
   pill and the phone bottom bar ("Contact us" + a green WhatsApp icon) that used to live here are
   gone (2026-09-27): the site has ONE contact entry now — the .dn-ct-* rules at the end of this file. */
@media (max-width: 900px) {
  .dn-cta-hero-wrap .dn-cta { width: 100%; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .dn-cta, button.dn-enquire, .dn-enquire-btn { transition: none; }
  .dn-cta::after, button.dn-enquire::after, .dn-enquire-btn::after { display: none; }
  .dn-cta:hover, button.dn-enquire:hover, .dn-enquire-btn:hover { transform: none; }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════
   2026-09-27 — the contact page's own form (replaces the Zoho Forms iframe on /contact, /fa/contact
   and /ar/contact). js/dn-enquiry.js mounts it into [data-dn-enquiry-inline] with the dialog's
   fields and submit path; these rules only give it a card of its own on the page. Logical
   properties throughout, so /fa/ and /ar/ need no second block. The room the card needs before this
   file and the script arrive is reserved by the contact pages' own inline <style> (no layout jump).
   ════════════════════════════════════════════════════════════════════════════════════════════ */
.dn-enq-inline {
  position: relative;               /* keeps the honeypot's off-screen offset inside the card */
  overflow: hidden;                 /* ...and clipped, so it can never widen the page */
  box-sizing: border-box;
  width: 100%;
  max-width: 640px;
  margin-inline: auto;
  padding: 30px 28px 24px;
  background: #fff;
  color: var(--dn-enq-ink);
  border: 1px solid #e7dcc8;
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(23, 23, 23, .12);
  font-size: 16px;                  /* 16px fields keep iOS Safari from zooming on focus */
  line-height: 1.5;
  text-align: start;
}
.dn-enq-inline::before {            /* the site's gold, as a thin rule along the top edge */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--dn-cta-gold), var(--dn-cta-gold-soft), var(--dn-cta-gold));
}
.dn-enq-kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #9a7a3f;                   /* the gold, darkened to 4.5:1 on white for small text */
}
.dn-enq-inline[lang="fa"] .dn-enq-kicker,
.dn-enq-inline[lang="ar"] .dn-enq-kicker { letter-spacing: 0; text-transform: none; font-size: 13px; }
.dn-enq-inline-title {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--dn-cta-ink);
}
.dn-enq-inline-lead { margin: 0 0 20px; font-size: 15px; color: var(--dn-enq-muted); }

.dn-enq-inline .dn-enq-field > span,
.dn-enq-prefer legend { color: #3d4654; }
.dn-enq-inline .dn-enq-field input,
.dn-enq-inline .dn-enq-field select,
.dn-enq-inline .dn-enq-field textarea { background: #fbfaf7; }
.dn-enq-inline .dn-enq-field input:focus,
.dn-enq-inline .dn-enq-field select:focus,
.dn-enq-inline .dn-enq-field textarea:focus { background: #fff; }
.dn-enq-inline input::placeholder,
.dn-enq-inline textarea::placeholder { color: #8a93a0; opacity: 1; }
/* The number is Western digits, left to right, in every language: the pair carries dir="ltr",
   and the text inside the field is aligned to the reading edge of the page around it. */
.dn-enq-inline[dir="rtl"] .dn-enq-phone input { text-align: right; }

/* How should we contact you? — three chips, a real radio group underneath. */
.dn-enq-prefer { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
.dn-enq-prefer legend {
  padding: 0;
  margin-block-end: 6px;
  font-size: 13px;
  font-weight: 600;
}
.dn-enq-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dn-enq-chip { position: relative; display: inline-flex; margin: 0; }
.dn-enq-chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.dn-enq-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--dn-enq-line);
  border-radius: 999px;
  background: #fbfaf7;
  font-size: 15px;
  font-weight: 600;
  color: var(--dn-enq-ink);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.dn-enq-chip:hover span { border-color: var(--dn-cta-gold); }
.dn-enq-chip input:checked + span {
  background: var(--dn-cta-ink);
  border-color: var(--dn-cta-ink);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 77, .75);
}
.dn-enq-chip input:focus-visible + span { outline: 2px solid var(--dn-enq-gold); outline-offset: 2px; }

/* The send button wears the site's one call-to-action look (ink, gold edge). */
.dn-enq-inline .dn-enq-send,
.dn-enq-inline .dn-enq-again {
  min-height: 54px;
  border: 1px solid rgba(201, 162, 77, .7);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dn-cta-ink-2) 0%, var(--dn-cta-ink) 62%);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 14px 30px -14px rgba(19, 19, 19, .6);
}
.dn-enq-inline .dn-enq-send:hover { filter: none; border-color: var(--dn-cta-gold); box-shadow: 0 14px 30px -14px rgba(19, 19, 19, .65), 0 0 0 4px var(--dn-cta-glow); }
.dn-enq-inline .dn-enq-send:focus-visible,
.dn-enq-inline .dn-enq-again:focus-visible { outline: 3px solid var(--dn-cta-gold); outline-offset: 3px; }
.dn-enq-inline .dn-enq-wa { color: #3d4654; }

.dn-enq-inline .dn-enq-done { padding: 28px 0 8px; }
.dn-enq-inline .dn-enq-done h3 { font-size: 22px; color: var(--dn-cta-ink); }
.dn-enq-inline .dn-enq-done h3:focus { outline: none; }
.dn-enq-inline .dn-enq-done p { max-width: 36em; margin-inline: auto; }
.dn-enq-again {
  display: inline-block;
  width: auto;
  padding: 0 26px;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
}

@media (max-width: 640px) {
  .dn-enq-inline { padding: 24px 16px 18px; border-radius: 18px; box-shadow: 0 14px 40px rgba(23, 23, 23, .10); }
  .dn-enq-inline-title { font-size: 22px; }
  .dn-enq-chip { flex: 1 1 auto; }
  .dn-enq-chip span { justify-content: center; width: 100%; padding: 0 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .dn-enq-chip span { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════════════════════════════
   2026-09-27 (site-speed, dn-w2-contact-2026-09-27) — ONE contact entry for the whole site (js/dn-enquiry.js, DNContact).
   Replaces the desktop pair ("Contact" pill + the Zoho green "WhatsApp" pill, both z 9999) and the
   phone bar ("Contact us" + an unlabelled green icon, z 9998, which lay over the Filters drawer).
   One trigger → one sheet: WhatsApp · Call · Send a message · (options added by other scripts).
   Logical properties throughout, so FA/AR need no second block: bottom-right in English,
   bottom-left in Persian and Arabic, trigger and sheet on the same side.
   ════════════════════════════════════════════════════════════════════════════════════════════ */
:root {
  --dn-ct-muted: #5d6673;
  --dn-ct-line: #e6e8ee;
  --dn-ct-gap: 16px;             /* distance from the screen edge */
  --dn-ct-h: 52px;               /* trigger height; js/dn-enquiry.js also reads it to know this file has loaded */
  --dn-ct-reserve: calc(var(--dn-ct-h) + var(--dn-ct-gap) * 2);
}
@media (max-width: 900px) {
  :root { --dn-ct-gap: 12px; --dn-ct-h: 48px; }
}

/* Belt and braces: the floating Zoho WhatsApp link is deleted from every export in this release; a
   page that still carries one (an old export put back by hand) must not show a second entry. */
html.dn-contact-on a[href*="wa.me"][style*="position:fixed"],
html.dn-contact-on a[href*="whatsapp"][style*="position:fixed"] { display: none !important; }

/* Room at the END of every page, so the last card, the pager and the footer can always be scrolled
   clear of the trigger. Padding at the end of <body> moves nothing already painted: no layout shift. */
html.dn-contact-on body { padding-bottom: calc(var(--dn-ct-reserve) + env(safe-area-inset-bottom, 0px)); }

/* ── The trigger ─────────────────────────────────────────────────────────────────────────────── */
.dn-ct-trigger {
  -webkit-appearance: none;
  appearance: none;
  position: fixed;
  z-index: 1900;                 /* BELOW every overlay: filters drawer 1990/2000, popovers 2200-2350,
                                    header 9000, gallery 10000, mega menu 12000, dialogs 2147483000 */
  bottom: max(var(--dn-ct-gap), calc(env(safe-area-inset-bottom, 0px) + 8px));
  /* logical only: a physical right/left beside it would stretch the pill across the screen in RTL */
  inset-inline-start: auto;
  inset-inline-end: max(var(--dn-ct-gap), env(safe-area-inset-right, 0px), env(safe-area-inset-left, 0px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-sizing: border-box;
  min-height: var(--dn-ct-h);
  min-width: var(--dn-ct-h);
  margin: 0;
  padding-block: 0;
  padding-inline: 18px 22px;
  border: 1px solid rgba(201, 162, 77, .8);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--dn-cta-ink-2, #273244), var(--dn-cta-ink, #111827));
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .2px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 14px 30px -12px rgba(17, 24, 39, .7), 0 0 0 4px rgba(201, 162, 77, .16);
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear 0s;
}
.dn-ct-trigger[hidden] { display: none !important; }
.dn-ct-trigger svg { width: 22px; height: 22px; flex: 0 0 22px; color: var(--dn-cta-gold-soft, #ecd79c); }
.dn-ct-trigger:hover { border-color: var(--dn-cta-gold, #c9a24d); transform: translateY(-2px); }
.dn-ct-trigger:focus-visible { outline: 3px solid var(--dn-cta-gold, #c9a24d); outline-offset: 3px; }
.dn-ct-trigger[aria-expanded="true"] { opacity: 0; pointer-events: none; }

/* Stepped aside: the page's own call to action, the pager or the keyboard is in the way, or a menu
   or the Filters drawer is open. visibility (after the fade) takes it out of the tab order too. */
.dn-ct-trigger.is-away,
body.dn-menu-open .dn-ct-trigger,
body.dn-filter-drawer-open .dn-ct-trigger,
html.dn-enq-locked .dn-ct-trigger {
  opacity: 0;
  transform: translateY(12px);
  visibility: hidden;
  pointer-events: none;
  transition: transform .22s ease, opacity .22s ease, visibility 0s linear .22s;
}

/* Phones: the same pill, a little smaller. On a property or project page it widens into ONE
   full-width button that names the listing's kind — never two buttons side by side. */
@media (max-width: 900px) {
  .dn-ct-trigger { font-size: 15px; padding-inline: 14px 18px; }
  .dn-ct-trigger.is-detail {
    inset-inline: max(var(--dn-ct-gap), env(safe-area-inset-left, 0px)) max(var(--dn-ct-gap), env(safe-area-inset-right, 0px));
    border-radius: 16px;
    min-height: 52px;
  }
  .dn-ct-trigger.is-detail .dn-ct-trigger-label { overflow: hidden; text-overflow: ellipsis; }
  html.dn-contact-on body.dn-ct-detail { --dn-ct-reserve: calc(52px + var(--dn-ct-gap) * 2); }
}
@media print { .dn-ct-trigger, .dn-ct-back { display: none !important; } }

/* ── The sheet ───────────────────────────────────────────────────────────────────────────────── */
html.dn-ct-locked, html.dn-ct-locked body { overflow: hidden; }
.dn-ct-back {
  position: fixed;
  inset: 0;
  z-index: 2147482500;           /* above the header and the menus, below the enquiry dialog */
  background: rgba(10, 13, 18, .46);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity .18s ease;
}
.dn-ct-back.is-open { opacity: 1; }
.dn-ct-sheet {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  margin-block-end: calc(var(--dn-ct-h) + 8px);   /* just above where the trigger was */
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #fff;
  color: var(--dn-cta-ink, #111827);
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, .32);
  padding: 18px 16px 14px;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.45;
  text-align: start;
  transform: translateY(10px);
  transition: transform .2s ease;
}
.dn-ct-back.is-open .dn-ct-sheet { transform: none; }
.dn-ct-head { display: flex; align-items: flex-start; gap: 8px; margin-block-end: 10px; padding-inline: 4px; }
.dn-ct-headtext { min-width: 0; }
.dn-ct-title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; color: inherit; font-family: inherit; }
.dn-ct-about { margin: 3px 0 0; font-size: 13.5px; color: var(--dn-ct-muted); overflow-wrap: anywhere; }
.dn-ct-x {
  -webkit-appearance: none;
  appearance: none;
  margin-inline-start: auto;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: grid;
  place-items: center;
  color: var(--dn-ct-muted);
  cursor: pointer;
}
.dn-ct-x svg { width: 20px; height: 20px; }
.dn-ct-x:hover { background: #f2f4f7; }
.dn-ct-x:focus-visible { outline: 3px solid var(--dn-cta-gold, #c9a24d); outline-offset: 1px; }

.dn-ct-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dn-ct-list > li { margin: 0; padding: 0; list-style: none; }
.dn-ct-list > li::before { content: none; }
/* NOT positioned on purpose: a few old page rules still move every a[href*="wa.me"] with
   right/bottom (css/dn-home-mobile.css) — offsets do nothing to a static box. */
.dn-ct-opt {
  -webkit-appearance: none;
  appearance: none;
  position: static !important;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 60px;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--dn-ct-line);
  border-radius: 14px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: start;
  text-decoration: none !important;
  cursor: pointer;
  visibility: visible !important;
  transition: border-color .15s ease, background .15s ease;
}
/* fa/zs-customcss.css forces `direction: ltr` on every [href^="tel:"] of the Persian pages (for bare
   phone numbers); the Call ROW must still follow the sheet's direction — its number is <bdi dir=ltr>. */
.dn-ct-back .dn-ct-opt { direction: inherit; unicode-bidi: normal; }
.dn-ct-opt:hover { border-color: #cfd4dc; background: #fafbfc; }
.dn-ct-opt:focus-visible { outline: 3px solid var(--dn-cta-gold, #c9a24d); outline-offset: 1px; }
.dn-ct-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #f4f1ea;
  color: #6e5520;
}
.dn-ct-ico svg { width: 22px; height: 22px; }
.dn-ct-txt { display: flex; flex-direction: column; min-width: 0; }
.dn-ct-label { font-weight: 800; font-size: 16px; color: var(--dn-cta-ink, #111827); }
.dn-ct-sub { font-size: 13.5px; color: var(--dn-ct-muted); overflow-wrap: anywhere; }
.dn-ct-sub bdi { unicode-bidi: isolate; direction: ltr; white-space: nowrap; }   /* a number never breaks */
.dn-ct-go { margin-inline-start: auto; color: #98a0ab; flex: 0 0 auto; display: inline-flex; }
[dir="rtl"] .dn-ct-go { transform: scaleX(-1); }

/* the primary option (WhatsApp) */
.dn-ct-opt.is-primary { border-color: rgba(31, 168, 85, .45); background: #f3fbf6; }
.dn-ct-opt.is-primary:hover { background: #eaf7ef; border-color: rgba(31, 168, 85, .7); }
.dn-ct-opt.is-primary .dn-ct-ico { background: #25d366; color: #fff; }

/* Phones: a bottom sheet, full width, above the home indicator. */
@media (max-width: 900px) {
  .dn-ct-back { padding: 0; align-items: flex-end; justify-content: stretch; }
  .dn-ct-sheet {
    max-width: none;
    margin: 0;
    border-radius: 20px 20px 0 0;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
    max-height: 88vh;
    transform: translateY(24px);
  }
  .dn-ct-sheet::before {         /* grabber */
    content: "";
    display: block;
    width: 40px;
    height: 4px;
    border-radius: 4px;
    background: #d6d9df;
    margin: 0 auto 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .dn-ct-trigger, .dn-ct-back, .dn-ct-sheet { transition: none !important; }
  .dn-ct-trigger:hover { transform: none; }
}
@media (prefers-color-scheme: dark) {
  .dn-ct-sheet { background: #171b22; color: #eef1f6; }
  .dn-ct-label { color: #eef1f6; }
  .dn-ct-opt { background: #1d222b; border-color: #2c333d; }
  .dn-ct-opt:hover { background: #222833; border-color: #3a424e; }
  .dn-ct-ico { background: #2a2f38; color: #ecd79c; }
  .dn-ct-opt.is-primary { background: #14281c; border-color: rgba(37, 211, 102, .45); }
  .dn-ct-opt.is-primary:hover { background: #183222; }
  .dn-ct-sub, .dn-ct-about, .dn-ct-x { color: #a8b1bd; }
  .dn-ct-x:hover { background: #222833; }
}

/* 2026-10-10 (owner): the WhatsApp choice wears WhatsApp green when it is the one picked */
.dn-enq-chip input[value="whatsapp"]:checked + span,
.dn-enq-chip input[value="WhatsApp"]:checked + span {
  background: #25D366;
  border-color: #25D366;
  color: #071B0E;
  box-shadow: none;
}
.dn-enq-chip:hover input[value="whatsapp"] + span { border-color: #25D366; }
