/* JM Realtor — shared styles. One stylesheet, no utility framework. */

:root,
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1116;
  --bg-raise: #171b22;
  --bg-raise-2: #1e242d;
  --text: #f4efe8;
  --muted: #c9c2b8;
  --gold: #c8925a;
  --gold-2: #e0b07a;
  --line: #2a2f37;
  --bar: #c8925a;
  --track: #2a2f37;
  --wa: #25d366;
  --wa-ink: #06210f;
  --danger: #ffb4b4;
  --ok: #b6f0cb;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(14, 17, 22, 0.94);
  --gold-ink: #1a1208;
  --theme-color: #0e1116;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header: 72px;
  --wrap: 1120px;
  --radius: 16px;
}

/* Light palette. Brand gold/bronze is kept; --gold-2 and --bar are darkened for WCAG AA. */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f3ec;
  --bg-raise: #fffcf7;
  --bg-raise-2: #efe6d8;
  --text: #16110e;
  --muted: #3a322a;
  --gold: #c48e56;
  --gold-2: #5c3a12;
  --line: #c6b8a6;
  --bar: #5c3a12;
  --track: #e4d5c0;
  --wa: #25d366;
  --wa-ink: #06210f;
  --danger: #7a1c1c;
  --ok: #0e5a30;
  --shadow: 0 14px 36px rgba(70, 48, 24, 0.12);
  --header-bg: rgba(247, 243, 236, 0.94);
  --gold-ink: #1a1208;
  --theme-color: #f7f3ec;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html.i18n-wait body { visibility: hidden; }

html.theme-animate body,
html.theme-animate .site-header,
html.theme-animate .band,
html.theme-animate .card,
html.theme-animate .ph-frame,
html.theme-animate .fact-bar article,
html.theme-animate input,
html.theme-animate select,
html.theme-animate textarea,
html.theme-animate .filter-btn,
html.theme-animate .btn,
html.theme-animate .lang-switch,
html.theme-animate .currency-switch,
html.theme-animate .unit-switch,
html.theme-animate .currency-banner,
html.theme-animate .theme-toggle,
html.theme-animate .wa-float,
html.theme-animate .area-chip,
html.theme-animate .site-footer {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
html.theme-instant body,
html.theme-instant .site-header,
html.theme-instant .band,
html.theme-instant .card,
html.theme-instant .ph-frame,
html.theme-instant .fact-bar article,
html.theme-instant input,
html.theme-instant select,
html.theme-instant textarea,
html.theme-instant .filter-btn,
html.theme-instant .btn { transition: none; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--gold-2); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--gold);
  color: var(--gold-ink);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

.wrap {
  width: min(var(--wrap), calc(100% - 40px));
  margin-inline: auto;
}

.wrap-wide {
  width: min(1240px, calc(100% - 40px));
  margin-inline: auto;
}

h1, h2, h3, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 8px; }

.eyebrow {
  color: var(--gold-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.muted { color: var(--muted); }
.placeholder {
  display: inline-block;
  border: 1px dashed var(--gold);
  color: var(--gold-2);
  border-radius: 8px;
  padding: 2px 8px;
  font-weight: 700;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  backdrop-filter: blur(12px);
}

.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: var(--header);
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
}
#site-nav { margin-left: auto; }

.logo img { height: 40px; width: auto; }

.header-tools { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  padding: 0;
}

.nav-toggle > span:first-child,
.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  position: relative;
  margin: 0 auto;
}
.nav-toggle > span:first-child::before,
.nav-toggle > span:first-child::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle > span:first-child::before { top: -6px; }
.nav-toggle > span:first-child::after { top: 6px; }

#site-nav {
  display: flex;
  align-items: center;
  gap: 16px;
}
#site-nav a { white-space: nowrap; }

#site-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
}
#site-nav a:hover,
#site-nav a[aria-current="page"] { color: var(--gold-2); }

.nav-controls, .lang-switch { display: inline-flex; align-items: center; gap: 6px; }
.lang-switch {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg-raise);
}
.lang-switch button, .theme-toggle {
  background: transparent;
  border: 0;
  color: var(--text);
  cursor: pointer;
}
.lang-switch button {
  min-width: 36px;
  min-height: 32px;
  border-radius: 999px;
  padding: 4px 8px;
  font-weight: 700;
  font-size: 0.82rem;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); }
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  display: inline-grid;
  place-items: center;
  padding: 0;
}
.theme-toggle { border-color: var(--gold-2); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
/* Default matches the dark theme: moon visible, sun hidden. */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
html[data-theme="light"] .theme-toggle .icon-sun { display: block; }
html[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 14px 18px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  line-height: 1.2;
  text-align: center;
}
.btn-wa { background: var(--wa); color: var(--wa-ink); }
.btn-wa:hover { color: var(--wa-ink); filter: brightness(1.05); }
#site-nav a.btn-wa,
#site-nav a.btn-wa:hover { color: var(--wa-ink); }
#site-nav a.btn-gold,
#site-nav a.btn-gold:hover { color: var(--gold-ink); }
#site-nav a.btn-ghost:hover { color: var(--text); }
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { color: var(--gold-ink); filter: brightness(1.06); }
.btn-ghost { background: transparent; border-color: var(--gold); color: var(--text); }
.btn-ghost:hover { color: var(--text); background: rgba(200, 146, 90, 0.12); }
.header-wa { padding: 10px 14px; }
.nav-book { padding: 8px 12px; font-size: 0.88rem; white-space: nowrap; }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  padding: 42px 0 28px;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-2);
}

.lede { font-size: 1.125rem; color: var(--muted); max-width: 58ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.trust li { min-width: 140px; }
.trust strong { display: block; color: var(--text); font-size: 1rem; }
.trust span { color: var(--muted); font-size: 0.92rem; line-height: 1.3; }

.hero-photo {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 460px;
  background: var(--bg-raise);
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  min-height: 460px;
}
.hero-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(14, 17, 22, 0.88);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  color: #f4efe8;
  border-color: rgba(244, 239, 232, 0.18);
}
.hero-card p { margin: 4px 0 0; color: #c9c2b8; font-size: 0.92rem; }

/* About portrait */
.about-id { display: flex; align-items: center; gap: 16px; margin: 0 0 16px; }
.about-id h2 { margin: 0; }
.about-avatar {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 14%;
  border: 2px solid var(--gold);
  background: #f5f3f0;
}

/* Sections */
section { padding: 64px 0; }
section[id] { scroll-margin-top: calc(var(--header) + 12px); }

.section-head { margin-bottom: 28px; }
.section-head p { color: var(--muted); max-width: 68ch; }

.band { background: var(--bg-raise); border-block: 1px solid var(--line); }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.band .card { background: var(--bg); }
.card:hover { border-color: var(--gold); color: inherit; }
.card img { width: 100%; height: 190px; object-fit: cover; }
.card div, .card .card-body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 4px; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.portrait {
  border-radius: 18px;
  overflow: hidden;
  background: #000;
}
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 15%; }

.checklist, .steps, .nearby { list-style: none; margin: 0; padding: 0; }
.checklist li, .steps li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.checklist strong, .steps strong { color: var(--text); }
.steps { counter-reset: step; }
.steps li { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-raise-2);
  color: var(--gold-2);
  font-weight: 700;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
.dev-logo {
  background: #fff;
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  width: 116px;
  height: 64px;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.dev-logo img { max-height: 42px; width: auto; max-width: 96px; object-fit: contain; }

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.video-facade {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  aspect-ratio: 16 / 9;
}
.video-facade.portrait-video { aspect-ratio: 9 / 16; max-width: 360px; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; }
.video-facade .play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(14, 17, 22, 0.78);
  border: 2px solid #fff;
}
.video-facade .play::after {
  content: "";
  position: absolute;
  left: 26px;
  top: 18px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent #fff;
}
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; background: #000; }
.video-frame.portrait-video { aspect-ratio: 9 / 16; max-width: 360px; }

.social-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  background: var(--bg-raise);
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 220px;
  text-decoration: none;
  color: inherit;
}
.social-card:hover { border-color: var(--gold); color: inherit; }
.social-card strong { font-size: 1.2rem; }

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin: 0; font-family: var(--sans); font-size: 1.05rem; font-weight: 650; }
.faq-item button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--text);
  padding: 16px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq-item button::after { content: "+"; color: var(--gold-2); font-size: 1.4rem; line-height: 1; }
.faq-item button[aria-expanded="true"]::after { content: "–"; }
.faq-item .answer { color: var(--muted); padding: 0 0 16px; margin: 0; }

.form-grid { display: grid; gap: 14px; }
label { display: block; font-weight: 650; margin-bottom: 6px; }
input, select, textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
}
textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); font-size: 0.92rem; }
.form-status { min-height: 1.4em; font-weight: 700; }
fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 0;
  padding: 12px 14px 6px;
}
legend { font-weight: 700; padding: 0 6px; }
.choice { display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; font-weight: 500; }
.choice input { width: auto; margin-top: 0.35rem; }
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-success {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  background: var(--bg-raise);
}
.form-success p { margin: 0 0 12px; }
.form-error { color: var(--danger); font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 22px; }
.filter-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filter-btn[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.filter-field { min-width: 200px; }

.project-hero { padding-top: 28px; }
.project-hero-media {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 22px;
  max-height: 560px;
}
.project-hero-media img { width: 100%; max-height: 560px; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 16px 0 0; list-style: none; }
.facts li {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  color: var(--muted);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; background: var(--bg-raise); }
.gallery figcaption { color: var(--muted); font-size: 0.85rem; margin-top: 6px; }

.map-slot iframe { width: 100%; height: 320px; border: 0; border-radius: 12px; }

.prose-blocks h3 { margin-top: 18px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.feature {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.feature p { margin: 0; color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 42px 0 96px;
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
}
.site-footer a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.footer-base { margin-top: 28px; font-size: 0.92rem; }

body { padding-bottom: 88px; }

.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 25;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 48px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--wa);
  color: var(--wa-ink);
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.wa-float[hidden] { display: none; }
.wa-float:hover { color: var(--wa-ink); filter: brightness(1.05); }
.wa-float svg { width: 22px; height: 22px; flex: none; }
body.nav-open .wa-float { visibility: hidden; pointer-events: none; }

@media (max-width: 900px) {
  .wa-float {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
    padding: 0;
  }
  .wa-float span { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .lead-form { margin-bottom: 72px; }
}

dialog {
  background: var(--bg-raise);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: min(520px, calc(100% - 32px));
  padding: 22px;
}
dialog::backdrop { background: rgba(0, 0, 0, 0.62); }
dialog p { color: var(--muted); }

.signature { width: 180px; height: auto; margin-top: 8px; }

/* Project presentation: fact rows, status, filters (layout adapted, not copied). */
.area-row { display: flex; flex-wrap: wrap; gap: 10px; }
.area-chip {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  background: var(--bg-raise);
  border-radius: 14px;
  padding: 14px 16px;
  min-width: 160px;
  flex: 1;
}
.area-chip:hover { border-color: var(--gold); color: inherit; }
.area-chip strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 500; }
.area-chip span { color: var(--muted); font-size: 0.9rem; }

.project-card { color: inherit; text-decoration: none; }
.project-card:hover { color: inherit; border-color: var(--gold); }
.card-media { position: relative; background: var(--bg-raise-2); }
.card-media img, .ph-frame { width: 100%; height: 200px; object-fit: cover; }
.ph-frame {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
  background:
    linear-gradient(160deg, rgba(200, 146, 90, 0.18), transparent 42%),
    var(--bg-raise-2);
  color: var(--muted);
  font-size: 0.92rem;
}
.ph-frame strong { display: block; color: var(--text); font-family: var(--serif); font-size: 1.25rem; font-weight: 500; margin-bottom: 6px; }
.status-pill {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(14, 17, 22, 0.88);
  color: #f4efe8;
  border: 1px solid rgba(244, 239, 232, 0.2);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.card-kicker { color: var(--gold-2); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 6px; }
.fact-list { display: grid; gap: 6px; margin: 12px 0 0; }
.fact-list div { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 6px; font-size: 0.92rem; }
.fact-list dt { color: var(--muted); font-weight: 600; }
.fact-list dd { margin: 0; text-align: right; }

.fact-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 22px 0;
}
.fact-bar article {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.fact-bar span { display: block; color: var(--muted); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.fact-bar strong { display: block; margin-top: 4px; font-size: 1.05rem; }

.pay-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.pay-split article {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--bg-raise);
}
.pay-split em { font-style: normal; font-family: var(--serif); font-size: 2rem; color: var(--gold-2); display: block; }

.source-note { color: var(--muted); font-size: 0.9rem; }
.source-note a { color: var(--gold-2); }

.page-hero-media { border-radius: 18px; overflow: hidden; margin: 8px 0 18px; background: var(--bg-raise); }
.page-hero-media img, .page-hero-media .ph-frame { width: 100%; height: min(520px, 62vw); }

@media (max-width: 800px) {
  .fact-bar, .pay-split { grid-template-columns: 1fr 1fr; }
}

.empty { color: var(--muted); }

@media (min-width: 901px) {
  .header-wa { display: none; }
}

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; }
  #site-nav {
    display: none;
    position: fixed;
    inset: 0;
    margin-left: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 32px;
    gap: 18px;
    z-index: 40;
  }
  #site-nav.is-open { display: flex; }
  #site-nav a, .lang-toggle { font-size: 1.35rem; }
  .nav-wa { display: none; }
  .nav-book { font-size: 1.2rem; padding: 12px 16px; white-space: normal; }
  .hero, .split, .cards, .footer-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo, .hero-photo img { height: 380px; min-height: 380px; max-height: 380px; }
  .hero-photo img { object-position: center top; }
  .hero { padding-top: 16px; padding-bottom: 4px; }
  .hero .lede { margin: 8px 0; }
  .hero .cta-row { margin: 12px 0 0; }
  .trust { gap: 14px 16px; }
  .trust li { min-width: 0; flex: 0 1 calc(50% - 8px); }
  .trust span { font-size: 0.82rem; }

  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  section { padding: 48px 0; }
  .wrap, .wrap-wide, .header-bar { width: min(100% - 32px, var(--wrap)); }
  .header-tools { gap: 6px; }
  .header-wa { padding: 8px 10px; font-size: 0.8rem; }
  .lang-switch button { min-width: 32px; min-height: 32px; padding: 2px 6px; }
  .theme-toggle { width: 36px; height: 36px; }
  .logo img { height: 34px; }
  .currency-switch__now, .unit-switch__now { display: inline-grid; }
  .currency-switch.is-open .currency-switch__opts,
  .unit-switch.is-open .unit-switch__opts { display: flex; }
  .currency-switch:not(.is-open) .currency-switch__opts,
  .unit-switch:not(.is-open) .unit-switch__opts { display: none; }
}
@media (max-width: 420px) {
  .header-wa { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, html.theme-animate body, html.theme-animate .site-header, html.theme-animate .band,
  html.theme-animate .card, html.theme-animate .btn { transition: none !important; animation: none !important; }
}

/* Developer groups (Abu Dhabi / Dubai) */
.dev-group-title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin: 28px 0 12px; text-align: center; }
.dev-group-title:first-of-type { margin-top: 18px; }
.dev-logo.on-dark { background: #0e1116; }
.dev-logo.no-logo .dev-name { color: #1a1208; font-family: var(--sans); font-weight: 700; font-size: 0.82rem; line-height: 1.15; text-align: center; }

/* Area guides and project image slider (.project-slider). Shared naming with the Dubai area work.
   Layout idea: area cards -> area guide with intro, current projects, new launches. Original code. */
#projects-grid { display: grid; gap: 40px; }
.city-block { display: grid; gap: 24px; }
/* Keep the HTML hidden attribute ahead of display:grid/flex/block on filtered groups and cards. */
.city-block[hidden],
.area-section[hidden],
.area-sub[hidden],
.area-card[hidden],
.card[hidden],
.project-card[hidden] {
  display: none !important;
}
.city-block > .city-title { margin: 0; font-size: clamp(1.6rem, 3vw, 2.2rem); }
.city-lede { margin: -12px 0 0; max-width: 70ch; }
.area-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.area-card { position: relative; display: block; border-radius: 14px; overflow: hidden; min-height: 230px; color: #f4efe8; text-decoration: none; border: 1px solid var(--line); background: var(--bg-raise-2); }
.area-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.area-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 17, 22, 0) 15%, rgba(14, 17, 22, 0.55) 45%, rgba(14, 17, 22, 0.94) 100%); }
.area-card__body { position: absolute; inset: auto 0 0 0; z-index: 1; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6); display: grid; gap: 4px; padding: 14px 16px 16px; }
.area-card__body strong { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.area-card__body span { font-size: 0.9rem; color: rgba(244, 239, 232, 0.86); }
.area-card__body em { font-style: normal; font-size: 0.85rem; font-weight: 700; color: #e0b07a; }
.area-card:hover, .area-card:focus-visible { color: #f4efe8; border-color: var(--gold); }
.area-card:hover img { transform: scale(1.04); }
.area-section { display: grid; gap: 20px; padding-top: 28px; border-top: 1px solid var(--line); scroll-margin-top: 90px; }
.area-intro { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px 28px; align-items: start; }
.area-intro__text h2 { margin: 0 0 8px; }
.area-intro__text p { max-width: 68ch; }
.area-intro__text .eyebrow { margin: 0 0 4px; }
.area-data { display: grid; gap: 0; margin: 0; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px; padding: 6px 16px; }
.area-data div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.93rem; }
.area-data div:first-child { border-top: 0; }
.area-data dt { color: var(--muted); }
.area-data dd { margin: 0; font-weight: 700; text-align: right; }
.area-sources { grid-column: 1 / -1; color: var(--muted); font-size: 0.88rem; }
.area-sources summary { cursor: pointer; color: var(--gold-2); }
.source-list { margin: 8px 0; padding-left: 18px; display: grid; gap: 4px; }
.source-list a { color: var(--gold-2); }
.area-sub { display: grid; gap: 12px; }
.area-sub__title { margin: 0; font-size: 1.25rem; }
.area-sub__note { margin: -8px 0 0; font-size: 0.88rem; }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; flex: 1; }
.card-link:hover { color: inherit; }
.card .card-title { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; letter-spacing: -0.02em; margin: 0 0 4px; }
.card-more { display: inline-block; margin-top: 12px; color: var(--gold-2); font-size: 0.88rem; font-weight: 700; }
.project-card:focus-within { border-color: var(--gold); }

.project-slider { position: relative; }
.card .project-slider div, .card .card-media > .project-slider { padding: 0; }
.project-slider__viewport { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain; scrollbar-width: none; border-radius: inherit; outline-offset: -3px; }
.project-slider__viewport::-webkit-scrollbar { display: none; }
.project-slider__track { display: flex; margin: 0; padding: 0; list-style: none; }
.project-slider__slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.project-slider__slide img { display: block; width: 100%; height: 200px; object-fit: cover; background: var(--bg-raise-2); }
.page-hero-media .project-slider__slide img { height: min(560px, 62vw); }
.project-slider__btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(244, 239, 232, 0.35); background: rgba(14, 17, 22, 0.72); color: #f4efe8; font-size: 1.5rem; line-height: 1; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity 0.2s ease; }
.page-hero-media .project-slider__btn { top: calc(min(560px, 62vw) / 2); }
.project-slider__btn--prev { left: 10px; }
.project-slider__btn--next { right: 10px; }
.project-slider:hover .project-slider__btn, .project-slider:focus-within .project-slider__btn { opacity: 1; }
.project-slider__btn:hover { background: var(--gold); color: var(--gold-ink); }
.project-slider__btn:disabled { opacity: 0 !important; pointer-events: none; }
.project-slider__count { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(14, 17, 22, 0.78); color: #f4efe8; border-radius: 999px; padding: 3px 10px; font-size: 0.75rem; font-weight: 700; }
.project-slider__count::before { content: attr(data-current) " / " attr(data-total); }
.project-slider__dots { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 2; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.card .project-slider__dots { padding: 0; }
.project-slider__dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(244, 239, 232, 0.5); }
.project-slider__dots span.is-on { background: #f4efe8; }
.project-slider__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; background: var(--bg-raise); }
.project-slider__thumbs button { flex: 0 0 auto; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: none; cursor: pointer; opacity: 0.65; }
.project-slider__thumbs button[aria-current="true"] { border-color: var(--gold); opacity: 1; }
.project-slider__thumbs img { display: block; width: 96px; height: 64px; object-fit: cover; }
.project-slider__credit { margin: 0; padding: 8px 12px; color: var(--muted); font-size: 0.8rem; background: var(--bg-raise); }
.table-scroll { overflow-x: auto; }
.facts-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-top: 1px solid var(--line); }
.facts-table thead th { color: var(--muted); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; border-top: 0; }
.facts-table td strong { display: block; }
.facts-table td .muted { display: block; font-size: 0.88rem; margin-top: 2px; }
.facts-table .src-cell a { display: inline-block; margin-right: 8px; color: var(--gold-2); white-space: nowrap; }
@media (hover: none) { .project-slider__btn { opacity: 1; } .card .project-slider__btn { display: none; } }
@media (max-width: 900px) {
  .area-intro { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .facts-table thead { display: none; }
  .facts-table tr { display: grid; grid-template-columns: 1fr; padding: 8px 0; border-top: 1px solid var(--line); }
  .facts-table th, .facts-table td { border-top: 0; padding: 3px 0; }
  .area-card { min-height: 190px; }
}
@media (prefers-reduced-motion: reduce) {
  .project-slider__viewport { scroll-behavior: auto; }
  .area-card img { transition: none; }
}
.area-data__src { grid-column: 2; margin: -6px 0 0; color: var(--muted); font-size: 0.8rem; }
@media (max-width: 900px) { .area-data__src { grid-column: 1; } }
.area-sub .project-card .card-media { padding: 0; }
.area-sub .project-card .fact-list div { padding: 6px 0 0; }
.city-stat { margin: -14px 0 0; }
.area-data dd { white-space: nowrap; }
@media (max-width: 600px) {
  .area-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .area-card { min-height: 170px; }
  .area-card__body { padding: 10px 12px 12px; }
  .area-card__body strong { font-size: 1.05rem; }
  .area-card__body span { font-size: 0.8rem; }
}

/* Dubai area cards: key-facts strip, "Best for" line and no-image placeholder (reuses .area-card from the Abu Dhabi work). */
.area-card--facts { min-height: 300px; }
.area-card__body .area-card__best { color: #f4efe8; font-weight: 600; font-size: 0.86rem; }
.area-card__body .area-card__facts { font-size: 0.8rem; color: rgba(244, 239, 232, 0.8); border-top: 1px solid rgba(244, 239, 232, 0.22); padding-top: 6px; margin-top: 2px; }
.area-card__facts b { color: var(--gold-2); font-weight: 700; }
.area-card--noimg { background: linear-gradient(160deg, rgba(200, 146, 90, 0.35), rgba(14, 17, 22, 0.9) 70%), #1a1f27; }
.area-card__ph { position: absolute; top: 14px; right: 14px; z-index: 1; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; color: rgba(244, 239, 232, 0.75); border: 1px dashed rgba(244, 239, 232, 0.4); border-radius: 999px; padding: 3px 10px; }
.area-best { margin: 4px 0 0; }
.ph-permission strong { font-size: 1.05rem; }
.crumbs { margin: 0 0 8px; font-size: 0.9rem; }
.crumbs a { color: var(--gold-2); text-decoration: none; }
.area-card--facts { display: flex; flex-direction: column; justify-content: flex-end; min-height: 330px; }
.area-card--facts .area-card__body { position: relative; inset: auto; padding-top: 48px; }
/* Market statistics: headline figure cards, ranked bars and source pills (layout idea only). */
.market .stat-head { margin-bottom: 26px; }
.market .stat-head.sub { margin: 52px 0 22px; }
.market .stat-head h2, .market .stat-head h3 { margin-bottom: 10px; }
.market .stat-head h3 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.market .stat-head em { font-style: italic; color: var(--gold-2); }
.market .stat-head p:not(.eyebrow) { color: var(--muted); max-width: 66ch; margin: 0; }
.market .eyebrow { display: flex; align-items: center; gap: 12px; }
.market .eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold-2); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card, .stat-panel {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  min-width: 0;
}
.band .stat-card, .band .stat-panel { background: var(--bg); }
.stat-card { display: flex; flex-direction: column; }
.stat-label { margin: 0 0 8px; color: var(--muted); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.stat-value { margin: 0 0 12px; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.45rem); line-height: 1.05; letter-spacing: -0.02em; white-space: nowrap; }
.stat-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.78rem; font-weight: 700; line-height: 1;
  padding: 6px 10px; border-radius: 999px; border: 1px solid currentColor;
  margin: 0 0 12px; align-self: flex-start; white-space: nowrap;
}
.stat-chip > span:first-child { font-size: 0.6rem; }
.stat-chip .u { font-weight: 600; opacity: 0.9; }
.stat-chip.up { color: var(--ok); }
.stat-chip.down { color: var(--danger); }
.stat-bars { display: grid; gap: 4px; margin: 2px 0 10px; }
.stat-bars i, .rk-track i, .meter-track i { display: block; height: 6px; border-radius: 999px; }
.stat-bars .prev { background: var(--muted); opacity: 0.55; }
.stat-bars .cur { background: var(--bar); }
.stat-prev { margin: 0 0 6px; color: var(--muted); font-size: 0.85rem; }
.stat-prev b { color: var(--text); font-weight: 600; }
.stat-note { margin: 0 0 10px; color: var(--muted); font-size: 0.92rem; }
.stat-foot { margin: auto 0 0; padding-top: 10px; color: var(--muted); font-size: 0.76rem; opacity: 0.9; }

.stat-pill {
  display: block; width: fit-content; max-width: 100%;
  margin: 16px 0 0; padding: 7px 14px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--bg-raise-2);
  color: var(--muted); font-size: 0.78rem; line-height: 1.45;
}
.band .stat-pill { background: var(--bg-raise); }
.stat-pill .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--bar); margin-right: 8px; vertical-align: middle; }
.stat-pill span:nth-child(2) { color: var(--gold-2); font-weight: 700; }
.stat-grid + .stat-pill { margin-top: 18px; }

.stat-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-panels.two { grid-template-columns: repeat(2, 1fr); }
.stat-panel { display: flex; flex-direction: column; padding: 22px; }
.stat-panel h3 { font-size: 1.15rem; margin: 0 0 18px; }
.stat-panel .stat-pill { margin-top: auto; align-self: flex-start; }
.stat-panel .stat-rank + .stat-pill, .stat-panel .stat-note + .stat-pill, .stat-panel .chip-grid + .stat-pill, .stat-panel .split-legend + .stat-pill { margin-top: 16px; }

.stat-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.stat-rank li { display: grid; grid-template-columns: minmax(96px, 30%) 1fr auto auto; gap: 12px; align-items: center; font-size: 0.9rem; }
.stat-rank.stacked li { grid-template-columns: minmax(64px, 18%) 1fr auto; }
.rk-name { min-width: 0; }
.rk-track { display: flex; background: var(--track); border-radius: 999px; height: 6px; overflow: hidden; }
.rk-track i { background: var(--bar); border-radius: 0; flex: none; }
.rk-track i.alt { background: var(--muted); opacity: 0.6; }
.rk-track.two { display: grid; height: auto; gap: 3px; background: none; overflow: visible; }
.rk-track.two i { border-radius: 999px; }
.rk-val { font-weight: 600; white-space: nowrap; text-align: right; }
.rk-chip { min-width: 0; }
.rk-chip .stat-chip { margin: 0; padding: 4px 8px; font-size: 0.72rem; }
.stat-rank:not(.stacked) li:not(:has(.stat-chip)) { grid-template-columns: minmax(96px, 30%) 1fr auto auto; }

.chip-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.chip-tile { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg-raise-2); min-width: 0; }
.band .chip-tile { background: var(--bg-raise); }
.chip-tile .stat-chip { margin-bottom: 8px; }
.chip-tile p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.4; }
.chip-big { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; margin: 0 0 4px; }

.meter { margin-bottom: 16px; }
.meter-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9rem; margin-bottom: 8px; }
.meter-row b { font-family: var(--serif); font-size: 1.3rem; font-weight: 500; line-height: 1; }
.meter-track { background: var(--track); border-radius: 999px; }
.meter-track i { background: var(--bar); }

.split-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 0; font-size: 0.82rem; color: var(--muted); }
.split-legend .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bar); margin-right: 6px; }
.split-legend .dot.alt { background: var(--muted); opacity: 0.6; }
.stat-footnote { margin: 22px 0 0; color: var(--muted); font-size: 0.85rem; max-width: 80ch; }

@media (max-width: 980px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-panels, .stat-panels.two { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stat-grid { grid-template-columns: 1fr; }
  .stat-card, .stat-panel { padding: 18px; }
  .stat-rank li { grid-template-columns: 1fr auto; row-gap: 6px; }
  .stat-rank li .rk-track { grid-column: 1 / -1; order: 3; }
  .stat-rank li .rk-chip:empty { display: none; }
  .stat-rank.stacked li { grid-template-columns: 1fr auto; }
  .market .stat-head.sub { margin-top: 40px; }
}
.stat-panel .stat-note { margin-top: 14px; }
.chip-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }


/* Spanish-speaking investors community */
.comunidad-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 32px 40px;
  align-items: start;
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 32px 32px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.comunidad-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--wa);
}
.comunidad-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.05rem);
  line-height: 1.2;
  max-width: 22ch;
}
.comunidad-copy .lede { margin: 0 0 22px; }
.comunidad-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(37, 211, 102, 0.16);
  color: var(--wa);
  margin-bottom: 16px;
}
.comunidad-icon svg { width: 28px; height: 28px; display: block; }
.comunidad-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.comunidad-benefits li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text);
  font-weight: 550;
  line-height: 1.45;
}
.comunidad-check {
  flex: none;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--wa);
  color: var(--wa-ink);
  display: grid;
  place-items: center;
}
.comunidad-check svg { width: 16px; height: 16px; display: block; }
#comunidad-form { margin: 0; min-width: 0; }
#comunidad-form fieldset { background: var(--bg); }
#comunidad-form .form-success {
  background: rgba(37, 211, 102, 0.12);
  border-color: var(--wa);
  color: var(--text);
}
#comunidad-form .form-success p { margin: 0; font-weight: 650; }
#comunidad-form.is-sent > *:not(.form-success) { display: none; }
#comunidad-form.is-sent { margin-bottom: 0; }
#comunidad-form.is-sent .form-success { padding: 22px 18px; }

@media (max-width: 800px) {
  .comunidad-card {
    grid-template-columns: 1fr;
    padding: 22px 18px 22px 20px;
    gap: 24px;
  }
  .comunidad-copy h2 { max-width: none; }
}

@media (min-width: 901px) {
  #site-nav a.nav-community { display: none; }
}

/* 3D tour embed (used by Emirates project pages on other branches). */
.tour3d { margin: 1.25rem 0 0; }
.tour3d__frame {
  margin-top: 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-raise-2);
}
.tour3d__frame iframe {
  display: block;
  width: 100%;
  height: min(78vh, 720px);
  border: 0;
}
@media (max-width: 640px) {
  .tour3d__btn { width: 100%; }
  .tour3d__frame iframe { height: 72vh; }
}

/* Keep city blocks inside the viewport on narrow screens (grid items default to min-width:auto). */
.city-block { min-width: 0; max-width: 100%; }
.city-block > * { min-width: 0; }
@media (max-width: 900px) { .area-intro { grid-template-columns: minmax(0, 1fr); } .area-data dd { white-space: normal; } }

/* Header + form currency switch (AED / USD / EUR / GBP) and area unit (sq ft / m²) */
.budget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.budget-head label { margin: 0; }
.currency-note { margin: 4px 0 8px; font-size: 0.8rem; }
.currency-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg-raise); flex: 0 0 auto; }
.currency-toggle__btn { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; padding: 5px 11px; cursor: pointer; line-height: 1.2; }
.currency-toggle__btn.is-on { background: var(--gold); color: #0e1116; }
.currency-toggle__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; }
legend .currency-toggle { margin-left: 10px; vertical-align: middle; }
legend.income-legend, .income-legend { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; width: 100%; }


.currency-switch, .unit-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: var(--bg-raise);
}
.currency-switch__now, .unit-switch__now {
  display: none;
  appearance: none;
  border: 0;
  background: var(--gold);
  color: var(--gold-ink);
  min-width: 44px;
  min-height: 32px;
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1;
}
.currency-switch__now:focus-visible,
.currency-switch [data-set-currency]:focus-visible,
.unit-switch__now:focus-visible,
.unit-switch [data-set-area-unit]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
}
.currency-switch__opts, .unit-switch__opts {
  display: inline-flex;
  align-items: center;
}
.currency-switch [data-set-currency], .unit-switch [data-set-area-unit] {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text);
  min-width: 36px;
  min-height: 28px;
  border-radius: 999px;
  padding: 2px 7px;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  line-height: 1.2;
}
.currency-switch [data-set-currency][aria-pressed="true"],
.unit-switch [data-set-area-unit][aria-pressed="true"] {
  background: var(--gold);
  color: var(--gold-ink);
}
.currency-banner {
  display: none;
  margin: 0;
  padding: 4px 16px 6px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--header-bg);
}
.currency-banner.is-on { display: block; }
[data-aed], [data-aed-min] { cursor: help; }

@media (max-width: 900px) {
  .currency-switch, .unit-switch { padding: 0; }
  .currency-switch__now, .unit-switch__now { display: inline-grid; min-height: 32px; font-size: 0.7rem; }
  .currency-switch:not(.is-open) .currency-switch__opts,
  .unit-switch:not(.is-open) .unit-switch__opts { display: none; }
  .currency-switch.is-open .currency-switch__opts,
  .unit-switch.is-open .unit-switch__opts {
    display: flex;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    z-index: 50;
    flex-direction: column;
    align-items: stretch;
    min-width: 140px;
    padding: 6px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-raise);
    box-shadow: 0 10px 30px rgba(0,0,0,0.28);
  }
  html[data-theme="light"] .currency-switch.is-open .currency-switch__opts,
  html[data-theme="light"] .unit-switch.is-open .unit-switch__opts {
    box-shadow: 0 10px 24px rgba(20,16,10,0.12);
  }
  .currency-switch.is-open [data-set-currency],
  .unit-switch.is-open [data-set-area-unit] {
    min-height: 36px;
    width: 100%;
    text-align: left;
    border-radius: 8px;
    padding: 6px 10px;
  }
}

.currency-toggle [data-currency],
.currency-toggle [data-set-currency] { /* already styled via __btn */ }
.currency-toggle__btn.is-on { background: var(--gold); color: var(--gold-ink); }


.unit-switch__now,
.unit-switch [data-set-area-unit] {
  min-width: 52px;
  white-space: nowrap;
  padding-left: 8px;
  padding-right: 8px;
}
[data-area], [data-sqm], [data-sqft] { cursor: help; }

/* == nav redesign (t184u) == */
#site-nav .nav-secondary { display: none; }
#site-nav .nav-main { font-weight: 600; }
.footer-explore ul { columns: 2; column-gap: 18px; }
@media (min-width: 901px) {
  #site-nav { gap: 20px; }
}
@media (max-width: 900px) {
  #site-nav.is-open {
    justify-content: flex-start;
    gap: 0;
    padding: calc(var(--header, 72px) + 8px) 24px 28px;
    overflow-y: auto;
    background: #0E1116;
  }
  html[data-theme="light"] #site-nav.is-open { background: #F7F3EC; }
  #site-nav a.nav-main {
    display: block;
    width: 100%;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.15;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
  }
  #site-nav a.nav-main:first-child { border-top: 1px solid var(--line); }
  #site-nav a.nav-main.nav-community { display: block; }
  #site-nav .nav-book { margin-top: 22px; width: 100%; font-size: 1.1rem; }
  #site-nav .nav-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: auto;
    padding-top: 28px;
    width: 100%;
  }
  #site-nav .nav-secondary a { font-size: 0.98rem; color: var(--muted); }
  #site-nav .nav-secondary a:hover { color: var(--gold-2); }
  .header-tools { position: relative; z-index: 41; }
  .logo { position: relative; z-index: 41; }
}

/* == sections: communities, insights, tools (t184u) == */
.page-intro { padding-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip { border: 1px solid var(--line); background: var(--bg-raise); color: var(--text); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 0.92rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--gold); color: var(--gold-ink); border-color: var(--gold); }
.chip-n { opacity: .75; margin-left: 4px; font-size: .82rem; }
.comm-filters { display: grid; gap: 4px; margin: 18px 0 8px; }
.comm-filters .filter-field { max-width: 220px; }
.comm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 14px; }
.comm-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--bg-raise); color: var(--text); text-decoration: none; }
.comm-card[hidden] { display: none; }
.comm-card:hover { border-color: var(--gold); }
.comm-card__img { position: relative; display: block; aspect-ratio: 16/10; background: var(--bg-raise-2, #1a1f27); }
.comm-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.comm-card__ph { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 1rem 1rem 1.1rem; font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--accent, #C8955C); background: linear-gradient(135deg, rgba(200,149,92,.18), rgba(200,149,92,.04)); }
.comm-card__emirate { position: absolute; left: 10px; top: 10px; background: rgba(14,17,22,.78); color: #fff; border-radius: 999px; padding: 4px 10px; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; }
.comm-card__body { display: grid; gap: 6px; padding: 14px 16px 16px; }
.comm-card__name { font-family: var(--serif); font-size: 1.45rem; font-weight: 500; }
.comm-card__blurb { color: var(--muted); font-size: .92rem; }
.comm-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border: 1px solid var(--line); border-radius: 999px; padding: 2px 9px; font-size: .78rem; color: var(--muted); }
.comm-card__more { font-style: normal; color: var(--gold-2); font-size: .9rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 14px 0 18px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg-raise); display: grid; gap: 4px; }
.stat span { color: var(--muted); font-size: .88rem; }
.stat strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 500; color: var(--gold-2); }
.stat em { font-style: normal; color: var(--muted); font-size: .85rem; }
.live-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: #3ccf7a; margin-left: 8px; vertical-align: middle; box-shadow: 0 0 0 4px rgba(60,207,122,.2); }
.tool { border-top: 1px solid var(--line); }
.tool-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.tool-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tool-form .check { grid-column: 1 / -1; }
.tool-form .check label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.tool-out { border: 1px solid var(--gold); border-radius: 16px; padding: 16px 18px; background: var(--bg-raise); margin: 0; display: grid; gap: 10px; }
.tool-out div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tool-out dt { color: var(--muted); }
.tool-out dd { margin: 0; font-weight: 700; text-align: right; }
.gv-ok { color: #3ccf7a; font-weight: 700; margin: 0; }
.gv-no { color: #e8a25c; font-weight: 700; margin: 0; }
@media (max-width: 800px) { .tool-grid, .tool-form { grid-template-columns: 1fr; } }
