/* ---------------------------------------------------------------------------
   Public directory design system (Figma "Projects Lebanon", Style Guide 29:9212).
   No build step. Mobile-first, RTL-aware (logical properties throughout).
--------------------------------------------------------------------------- */
:root {
  /* Brand palette (2026-09-28): Courtiva's Court Navy + orange on cool white. */
  --brand: #14224c;        /* primary buttons */
  --brand-2: #2b3f7e;      /* hover, links, labels */
  --accent: #ff5e00;       /* orange: key calls to action, progress, highlights */
  --accent-2: #e65400;     /* orange hover */
  --accent-ink: #ffffff;   /* text on orange */
  --accent-soft: #fff1e8;  /* soft orange backgrounds */
  --accent-deep: #d94f00;  /* orange as small text on light backgrounds */
  --slate: #5e6b7a;        /* secondary text, muted buttons */
  --slate-2: #8a9bb0;      /* Primary 2 */
  --slate-3: #dde3ef;      /* borders */
  --gold: #ff5e00;         /* accent (was the design's gold) */
  --gold-ink: #2b3f7e;     /* icon stroke on cards */
  --beige: #f1f4fa;        /* cool bands, pills */
  --lightest: #f7f9fd;     /* page background, inputs */
  --ink: #14224c;          /* Court Navy: text, dark bands, footer */
  --white: #fff;
  --placeholder: #667085;
  --ok: #3f7d5a; --ok-soft: #e6f0ea; --warn: #b7791f; --danger: #b54040; --danger-soft: #f8e7e5; --wa: #25d366;

  /* One family everywhere (user preference 2026-09-27: Montserrat instead of the design's Rufina / Raleway / Playfair). */
  --font-display: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: "Montserrat", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-italic: "Montserrat", ui-sans-serif, system-ui, sans-serif;

  --radius-card: 20px; --radius-panel: 24px; --radius-field: 12px; --radius-btn: 10px;
  --shadow: 0 18px 36px rgba(0, 0, 0, .06), 0 4px 8px rgba(0, 0, 0, .03);
  --max: 1366px;            /* 1920 frame minus 277px side margins */
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 7vw, 96px);
}
[dir=rtl] {
  --font-display: "Montserrat", "Noto Sans Arabic", ui-sans-serif, system-ui, sans-serif;
  --font: "Montserrat", "Noto Sans Arabic", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--lightest); -webkit-font-smoothing: antialiased; }
body { margin: 0; background: var(--lightest); }
a { color: var(--slate); text-decoration: none; } a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.18; margin: .4rem 0 .8rem; }
h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); line-height: 1.25; margin: 2.2rem 0 .8rem; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.75rem); line-height: 1.28; letter-spacing: 0; margin: 1rem 0 .4rem; }
h4 { font-size: 1.25rem; letter-spacing: 0; margin: .8rem 0 .3rem; }
p { margin: 0 0 1rem; }
.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { padding-bottom: var(--section-y); }
.row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.muted { color: var(--slate); } .small { font-size: .875rem; }
.lead { font-size: 1.125rem; line-height: 1.67; color: var(--slate); }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip:focus { position: fixed; top: 8px; inset-inline-start: 8px; z-index: 100; padding: .5rem .8rem; background: #fff; border-radius: 8px; }
.hp { position: absolute; inset-inline-start: -9999px; }
.icon { width: 16px; height: 16px; flex: none; display: inline-block; }
.icon-lg { width: 24px; height: 24px; }

/* ---- bands (full-width sections) ---- */
.band { padding: var(--section-y) 0; background: var(--lightest); }
.band.beige { background: var(--beige); }
.band.dark { background: var(--ink); color: #fff; }
.band-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.band-head h2 { margin: 0; }
.band-head p { margin: 0; font-size: 1.125rem; line-height: 1.67; color: var(--slate); max-width: 80ch; }
.band-head.split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.band-head.split > div { display: flex; flex-direction: column; gap: 12px; }

/* ---- pills ---- */
.pill { display: inline-flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--beige); border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink); width: fit-content; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--ink); background: var(--beige); line-height: 1.2; }
.tag.light { background: var(--lightest); }

/* ---- header ---- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .9); backdrop-filter: blur(9px); border-bottom: 1px solid var(--slate-3); }
.site-header .wrap { min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: 16px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand .mark img { width: 22px; height: 22px; }
.brand .words { display: flex; flex-direction: column; gap: 2px; line-height: 1.1; }
.brand .name { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: 1px; text-transform: uppercase; }
.brand .sub { font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--slate); }
.main-nav { display: flex; gap: 32px; align-items: center; }
.main-nav a { font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: 0; color: var(--ink); white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--slate); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.pill-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border: 1px solid var(--slate-3); border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; line-height: 1.2; }
.pill-btn:hover { border-color: var(--slate-2); color: var(--ink); }
.icon-btn { width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--slate-3); background: #fff; display: inline-grid; place-items: center; color: var(--ink); font-size: 18px; line-height: 1; }
.icon-btn:hover { border-color: var(--slate-2); color: var(--ink); }
/* dropdowns built on <details>: work without JavaScript */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown-panel { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 260px; background: #fff; border: 1px solid var(--slate-3); border-radius: 16px; box-shadow: var(--shadow); padding: 16px; z-index: 40; display: flex; flex-direction: column; gap: 12px; }
.dropdown-panel a, .dropdown-panel button.link { font-weight: 600; color: var(--ink); text-align: start; }
.dropdown-panel hr { border: 0; border-top: 1px solid var(--slate-3); margin: 0; width: 100%; }
.switchers { display: flex; flex-direction: column; gap: 10px; }
.switchers label { margin: 0; }
.switchers select { margin-top: 4px; }
.menu-toggle { display: none; }
@media (max-width: 1180px) {
  .main-nav { gap: 20px; }
  .header-actions .header-cta { display: none; }
}
@media (max-width: 980px) {
  .site-header .wrap { min-height: 72px; flex-wrap: wrap; }
  .menu-toggle { display: inline-grid; }
  .main-nav { display: none; order: 3; width: 100%; flex-direction: column; align-items: flex-start; gap: 14px; padding: 8px 0 18px; }
  .site-header.open .main-nav { display: flex; }
  .brand .name { font-size: 20px; }
}

/* ---- footer / contact band ---- */
.site-footer { background: var(--ink); color: #fff; padding: var(--section-y) 0 48px; }
.site-footer a { color: #fff; } .site-footer a:hover { color: var(--beige); }
.connect { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; align-items: center; }
.connect h2 { color: var(--beige); font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.22; margin: 0 0 24px; }
.connect .lead { color: #fff; }
.contact-lines { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines img { width: 18px; height: 18px; }
.socials { display: flex; gap: 16px; }
.socials a { width: 40px; height: 40px; border-radius: 20px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; }
.socials img { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: var(--section-y); padding-top: 72px; display: flex; flex-direction: column; gap: 32px; font-size: 14px; }
.footer-bottom .row { justify-content: space-between; gap: 24px; }
.footer-bottom nav { display: flex; gap: 32px; flex-wrap: wrap; }
.footer-bottom .legal { gap: 24px; }
.footer-bottom .brand { color: var(--beige); } .footer-bottom .brand .sub { color: var(--beige); }
.footer-bottom .brand .mark { background: rgba(255, 255, 255, .08); }
@media (max-width: 900px) { .connect { grid-template-columns: 1fr; } .footer-bottom nav { gap: 16px 24px; } }

/* ---- panels (white rounded boxes) ---- */
.panel-card { background: #fff; border: 1px solid var(--slate-3); border-radius: var(--radius-panel); padding: 32px; box-shadow: var(--shadow); }
.panel-card > h2, .panel-card > h3 { margin-top: 0; }
.site-footer .panel-card { color: var(--ink); border: 0; }
.site-footer .panel-card h3 { font-size: 28px; margin: 0 0 24px; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: center; }
.checklist img { width: 18px; height: 18px; flex: none; }

/* ---- flashes ---- */
.flash { display: flex; gap: .6rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius-field); margin: 1rem 0; border: 1px solid transparent; }
.flash.ok { background: var(--ok-soft); color: #234b36; border-color: #c7dccf; }
.flash.err { background: var(--danger-soft); color: #6d2323; border-color: #ecc9c5; list-style: none; flex-direction: column; gap: .2rem; }
.flash.err li { list-style: disc; margin-inline-start: 1rem; }
.flashes:empty { display: none; }

/* ---- forms ---- */
input, select, textarea, button { font: inherit; }
input, select, textarea { font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { width: 100%; min-height: 52px; padding: 0 16px; border: 1px solid var(--slate-3); border-radius: var(--radius-field); background: var(--lightest); color: var(--ink); margin-top: 8px; font-size: 16px; }
textarea { padding: 16px; min-height: 120px; }
::placeholder { color: var(--placeholder); opacity: 1; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, button:focus-visible, a:focus-visible { outline: 0; box-shadow: 0 0 0 3px rgba(20, 34, 76, .3); border-color: var(--slate); }
select { appearance: none; background-image: url("/images/icons/chevron-down.svg"); background-repeat: no-repeat; background-position: right 14px center; padding-inline-end: 40px; }
[dir=rtl] select { background-position: left 14px center; }
label { display: block; margin-bottom: 16px; font-size: 14px; font-weight: 700; color: var(--ink); }
label small { font-weight: 400; color: var(--slate); }
label.check { display: flex; align-items: center; gap: 12px; font-weight: 400; margin-bottom: 8px; }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; accent-color: var(--ink); margin: 0; flex: none; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; } legend { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
fieldset input[type=number], fieldset input[type=month] { width: 48.5%; display: inline-block; }
/* Label-inside field (hero search card): small uppercase caption above the value */
.field { display: flex; flex-direction: column; gap: 6px; padding: 14px; background: var(--lightest); border: 1px solid var(--slate-3); border-radius: var(--radius-field); margin: 0; font-weight: 700; font-size: 12px; text-transform: uppercase; color: var(--slate); }
.field select, .field input:not([type=checkbox]) { min-height: 0; padding: 0; margin: 0; border: 0; background-color: transparent; font-size: 16px; font-weight: 600; text-transform: none; color: var(--ink); background-position: right 0 center; }
[dir=rtl] .field select { background-position: left 0 center; }
.field select:focus-visible, .field input:focus-visible { box-shadow: none; }
.field:focus-within { border-color: var(--slate); }

/* ---- buttons (Style guide "Buttons" 29:9226): top-start corner square ---- */
.btn, button:where(:not(.link):not(.pill-btn):not(.icon-btn):not(.chip-btn):not(.plain)) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 0 var(--radius-btn) var(--radius-btn) var(--radius-btn); border: 1px solid var(--brand); background: var(--brand); color: #fff; font-weight: 600; font-size: 16px; line-height: 24px; text-transform: uppercase; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s ease, border-color .15s ease; }
[dir=rtl] .btn, [dir=rtl] button:where(:not(.link):not(.pill-btn):not(.icon-btn):not(.chip-btn):not(.plain)) { border-radius: var(--radius-btn) 0 var(--radius-btn) var(--radius-btn); }
.btn:hover, button:where(:not(.link):not(.pill-btn):not(.icon-btn):not(.chip-btn):not(.plain)):hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn.secondary, button.secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn.secondary:hover, button.secondary:hover { background: var(--brand); color: #fff; }
.btn.tertiary { background: transparent; border-color: transparent; color: var(--slate); padding-inline: 0; }
.btn.tertiary:hover { background: transparent; border-color: transparent; color: var(--ink); }
.btn.tertiary img { width: 20px; height: 20px; }
.btn.small, button.small { padding: 8px 16px; font-size: 14px; line-height: 22px; }
.btn.lg { padding: 14px 24px; }
.btn.block, button.block { width: 100%; }
.btn.whatsapp, button.whatsapp { background: var(--wa); border-color: var(--wa); color: #fff; }
.btn.whatsapp:hover, button.whatsapp:hover { background: #1fb457; border-color: #1fb457; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; background: var(--beige); border: 0; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; white-space: nowrap; }
.chip-btn:hover { background: #efdcbd; color: var(--ink); }
button.link { background: none; border: 0; color: var(--slate); cursor: pointer; padding: 0; font-weight: 600; }
form.inline { display: inline; }
.form-narrow { max-width: 520px; background: #fff; border: 1px solid var(--slate-3); border-radius: var(--radius-panel); padding: 32px; box-shadow: var(--shadow); margin: 1rem 0; }

/* ---- home hero ---- */
.home-hero { padding: 72px 0 96px; }
.home-hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 48px; align-items: center; }
.home-hero h1 { font-size: clamp(2rem, 3.4vw, 3rem); line-height: 1.18; margin: 0; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy .lead { margin: 0; }
.hero-stats { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-stats div { background: #fff; border: 1px solid var(--slate-3); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.hero-stats b { font-family: var(--font-display); font-size: 28px; line-height: 1.1; }
.hero-stats span { font-weight: 700; font-size: 13px; text-transform: uppercase; color: var(--slate); }
.search-card { display: flex; flex-direction: column; gap: 24px; }
.search-card h2 { font-size: 28px; margin: 0 0 8px; letter-spacing: 0; }
.search-card p { margin: 0; color: var(--slate); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.search-card .actions { display: flex; gap: 12px; align-items: center; }
.search-card .actions button { flex: 1; }
@media (max-width: 1100px) { .home-hero .wrap { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .field-grid { grid-template-columns: 1fr; } .search-card .actions { flex-direction: column; align-items: stretch; } }

/* generic hero used by other pages */
.hero { margin: 1.5rem 0 2rem; padding: clamp(28px, 5vw, 56px); border-radius: var(--radius-panel); background: var(--beige); }
.hero h1 { max-width: 22ch; }
.hero .muted { color: var(--slate); }
.hero-search input { border: 0; margin: 0; background: transparent; }
.hero.compact { padding: 32px clamp(24px, 4vw, 48px); }
.hero.compact h2 { margin-top: 0; }

/* ---- stat tiles (market overview) ---- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.stat-tile { background: #fff; border: 1px solid var(--slate-3); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.stat-tile:hover { color: var(--ink); box-shadow: var(--shadow); }
.stat-tile b { font-family: var(--font-display); font-size: 28px; line-height: 1.2; }
.stat-tile strong { font-size: 16px; }
.stat-tile span { color: var(--slate); font-size: 14px; line-height: 1.6; }

/* ---- chips ---- */
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: .6rem 0 1.2rem; }
.chips li, .chips a { display: inline-flex; align-items: center; padding: 8px 14px; background: #fff; border: 1px solid var(--slate-3); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); }
.chips a:hover { border-color: var(--slate); }
.chips strong { font-weight: 700; }

/* ---- cards ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .grid.cols-3, .grid.cols-4 { grid-template-columns: 1fr; } }
.card { background: #fff; border: 1px solid var(--slate-3); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s ease; }
.card:hover { transform: translateY(-2px); }
.card-media { display: block; position: relative; aspect-ratio: 6 / 5; background: var(--slate-3); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-media .placeholder { position: absolute; inset: 0; background: linear-gradient(135deg, var(--slate-3), var(--lightest)); display: grid; place-items: center; }
.card-media .placeholder::after { content: ""; width: 48px; height: 48px; border-radius: 12px; background: url("/images/icons/building-lg.svg") center / 24px no-repeat var(--beige); }
.card-media .tag { position: absolute; top: 16px; inset-inline-start: 16px; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.card-body.tight { gap: 12px; }
.card-body .tags { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-body h3 { margin: 0; font-size: 28px; line-height: 1.29; letter-spacing: 0; }
.card-body h3 a { color: var(--ink); } .card-body h3 a:hover { color: var(--slate); }
.card-body .context { font-size: 14px; color: var(--slate); margin: -8px 0 0; }
.card-body .context a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.card-body .muted a { color: var(--slate); }
.meta-row { display: flex; gap: 8px 24px; flex-wrap: wrap; font-size: 14px; color: var(--ink); }
.meta-row span { display: inline-flex; align-items: center; gap: 8px; }
.meta-line { color: var(--slate); font-size: 16px; line-height: 1.5; margin: 0; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.card-foot .from { font-weight: 700; font-size: 16px; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; }
.facts div { min-width: 70px; } .facts dt { font-size: 11px; color: var(--slate); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; } .facts dd { margin: 2px 0 0; font-weight: 600; font-size: 15px; }
.inline-facts { gap: 12px 32px; }
.inline-facts dd { font-family: var(--font-display); font-size: 22px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: var(--lightest); color: var(--ink); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--slate-2); }
.status-available::before, .status-under_construction::before { background: var(--ok); }
.status-reserved::before, .status-on_hold::before { background: var(--warn); } .status-sold::before { background: var(--danger); }
.status-planning::before { background: var(--gold); } .status-delivered::before { background: var(--slate); }

/* ---- feature list (how it works) ---- */
.two-panel { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px 48px; align-items: center; }
@media (max-width: 1000px) { .two-panel { grid-template-columns: 1fr; } }
.steps { display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 16px; align-items: center; }
.step .ico { width: 56px; height: 56px; border-radius: 16px; background: var(--beige); display: grid; place-items: center; flex: none; }
.step .ico img { width: 24px; height: 24px; }
.step h3 { font-size: 24px; margin: 0 0 4px; line-height: 1.2; }
.step p { margin: 0; color: var(--slate); }
.trust-card { background: #fff; border: 1px solid var(--slate-3); border-radius: var(--radius-card); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.trust-card .ico { width: 32px; height: 32px; border-radius: 8px; background: var(--beige); display: grid; place-items: center; }
.trust-card .ico img { width: 16px; height: 16px; }
.trust-card h3 { font-size: 24px; margin: 0; }
.trust-card p { margin: 0; color: var(--slate); }
.cta-copy { display: flex; flex-direction: column; gap: 24px; }
.cta-copy h2 { font-size: clamp(2rem, 3.2vw, 2.75rem); line-height: 1.22; margin: 0; }
.cta-copy .lead { margin: 0; }

/* ---- search layout ---- */
.layout-sidebar { display: grid; grid-template-columns: 320px 1fr; gap: 32px; align-items: start; }
.layout-sidebar aside { position: sticky; top: 112px; background: #fff; border: 1px solid var(--slate-3); padding: 24px; border-radius: var(--radius-panel); box-shadow: var(--shadow); max-height: calc(100vh - 130px); overflow-y: auto; }
.filters fieldset { border-top: 1px solid var(--slate-3); padding-top: 16px; margin-top: 8px; }
.filters button[type=submit] { width: 100%; margin-top: 8px; }
.filters .link { display: inline-block; margin-top: .6rem; }
.save-search { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--slate-3); }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 0 0 24px; }
@media (max-width: 900px) { .layout-sidebar { grid-template-columns: 1fr; } .layout-sidebar aside { position: static; max-height: none; } }

/* ---- breadcrumbs ---- */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 24px 0 8px; font-size: 14px; color: var(--slate); }
.breadcrumbs a { color: var(--slate); }
.breadcrumbs li + li::before { content: "›"; margin-inline-end: 6px; color: var(--slate-2); }
[dir=rtl] .breadcrumbs li + li::before { content: "‹"; }

/* ---- project & unit pages ---- */
.project-header { margin-bottom: 24px; }
.project-header .muted a { color: var(--slate); text-decoration: underline; text-underline-offset: 2px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.detail-layout > aside { position: sticky; top: 112px; }
@media (max-width: 980px) { .detail-layout { grid-template-columns: 1fr; } .detail-layout > aside { position: static; } }
.price { font-family: var(--font-display); font-size: 36px; font-weight: 700; margin: .3rem 0; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; margin: 16px 0 32px; border-radius: var(--radius-panel); overflow: hidden; }
.gallery figure { margin: 0; overflow: hidden; }
.gallery figure:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { display: none; }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; } }
.description { max-width: 76ch; font-size: 1.0625rem; line-height: 1.7; color: #333a42; }
.table-wrap { overflow-x: auto; border: 1px solid var(--slate-3); border-radius: var(--radius-card); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: #fff; }
th, td { text-align: start; padding: 14px 16px; border-bottom: 1px solid var(--slate-3); vertical-align: middle; }
thead th { background: var(--ink); color: #fff; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
tbody tr:last-child td { border-bottom: 0; } tbody tr:hover td { background: #f7f9fd; }
.units td a { font-weight: 700; color: var(--ink); }
.spec-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 32px; margin: 0; }
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--slate-3); padding: 8px 0; font-size: 15px; }
.spec-list dt { color: var(--slate); } .spec-list dd { margin: 0; text-align: end; font-weight: 600; }
.specs h3 { color: var(--slate); font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: 2px; margin-top: 24px; }
.milestones { padding-inline-start: 1.2rem; } .milestones li { margin: .4rem 0; }
.milestones strong { color: var(--ink); }

/* ---- inquiry card ---- */
.inquiry { background: #fff; border: 1px solid var(--slate-3); border-radius: var(--radius-panel); padding: 32px; box-shadow: var(--shadow); margin: 0 0 24px; }
.inquiry h2 { margin: 0 0 8px; font-size: 28px; letter-spacing: 0; }
.inquiry .lead { color: var(--slate); font-size: 15px; margin: 0 0 16px; }
.inquiry form.inline { display: block; margin-bottom: 16px; }
.inquiry form.inline button { width: 100%; }
.inquiry .or { text-align: center; color: var(--slate-2); font-size: 12px; margin: 4px 0 16px; text-transform: uppercase; letter-spacing: 2px; }
.inquiry-form button[type=submit] { width: 100%; }

/* ---- map ---- */
.map { height: 70vh; border-radius: var(--radius-panel); background: var(--slate-3); border: 1px solid var(--slate-3); }
.marker-list { padding-inline-start: 1.2rem; }

/* ---- misc ---- */
.developer-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.developer-list li { background: #fff; border: 1px solid var(--slate-3); border-radius: var(--radius-card); padding: 20px 24px; }
.developer-list li a { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); display: block; }
.saved-searches { list-style: none; padding: 0; } .saved-searches li { background: #fff; border: 1px solid var(--slate-3); border-radius: var(--radius-card); padding: 16px 24px; margin-bottom: 12px; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.logo { margin-bottom: .6rem; border-radius: 12px; }
.pagination { display: flex; gap: 6px; list-style: none; padding: 0; margin: 32px 0; flex-wrap: wrap; }
.pagination a, .pagination span { display: inline-block; padding: 8px 14px; border: 1px solid var(--slate-3); border-radius: 10px; background: #fff; font-size: 14px; color: var(--ink); }
.pagination .active span, .pagination [aria-current] span { background: var(--brand); color: #fff; border-color: var(--brand); }
nav[aria-label=Pagination] p { font-size: 14px; color: var(--slate); }
.static-page .description { max-width: 76ch; }
.static-page .description h1, .static-page .description h2 { margin-top: 1.6rem; }
.empty { padding: 48px 24px; text-align: center; color: var(--slate); background: #fff; border: 1px dashed var(--slate-3); border-radius: var(--radius-card); grid-column: 1 / -1; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.section-head h2 { margin-bottom: .2rem; }
.quote { font-family: var(--font-italic); font-style: italic; font-weight: 500; font-size: clamp(1.25rem, 2.2vw, 2rem); line-height: 1.75; }

/* ---- listing: filter bar (Figma "Discovery controls" 2929:2725) ---- */
.discovery-band { background: var(--lightest); border-bottom: 1px solid var(--slate-3); padding: 18px 0; position: sticky; top: 96px; z-index: 20; }
.discovery { display: flex; flex-direction: column; gap: 12px; }
.discovery-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.dsearch { display: flex; align-items: center; gap: 10px; width: 360px; max-width: 100%; height: 44px; padding: 0 14px; background: #fff; border: 1px solid var(--slate-3); border-radius: 8px; margin: 0; }
.dsearch img { width: 18px; height: 18px; }
.dsearch input { min-height: 0 !important; height: 40px; border: 0 !important; padding: 0 !important; margin: 0 !important; background: transparent !important; font-size: 14px !important; }
.dsearch input:focus-visible { box-shadow: none; }
.dsearch:focus-within { border-color: var(--slate); }
.dctl { display: flex; flex-direction: column; justify-content: center; gap: 1px; height: 40px; min-width: 128px; padding: 0 12px; background: #fff; border: 1px solid var(--slate-3); border-radius: 8px; margin: 0; cursor: pointer; }
.dctl > span { font-weight: 700; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: #5e6b7a; line-height: 1.2; white-space: nowrap; }
.dctl select { min-height: 0 !important; height: auto; border: 0 !important; padding: 0 20px 0 0 !important; margin: 0 !important; background-color: transparent !important; background-image: url("/images/icons/chevron-sm.svg"); background-position: right 0 center; background-size: 14px; font-size: 13px !important; font-weight: 600 !important; color: var(--ink); line-height: 1.3; cursor: pointer; }
[dir=rtl] .dctl select { padding: 0 0 0 20px !important; background-position: left 0 center; }
.dctl select:focus-visible { box-shadow: none; }
.dctl:focus-within { border-color: var(--slate); }
.dctl.more { font-size: 13px; font-weight: 600; color: var(--ink); background: #fff url("/images/icons/chevron-sm.svg") no-repeat right 12px center / 14px; padding-inline-end: 32px; }
.discovery { position: relative; }
.more-filters { position: static; }
.filter-panel { inset-inline: 0; top: calc(100% + 8px); width: auto; padding: 24px; }
.filter-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-height: 60vh; overflow-y: auto; }
.filter-cols fieldset { margin: 0; }
@media (max-width: 760px) { .filter-cols { grid-template-columns: 1fr; } .filter-panel { position: fixed; inset: 80px 16px auto 16px; width: auto; } }
.active-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.afilter { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--accent-soft); border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--brand-2); }
.afilter:hover { background: #ecdcbc; color: var(--brand-2); }
.afilter img { width: 12px; height: 12px; }
.active-filters .clear { font-weight: 700; font-size: 12px; color: #5e6b7a; text-decoration: underline; }
@media (max-width: 980px) { .discovery-band { position: static; } .dsearch { width: 100%; } .dctl { flex: 1 1 140px; } }

/* ---- listing: results ---- */
.results-band { padding: 32px 0 var(--section-y); }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.results-head h1 { font-size: 30px; line-height: 1.2; margin: 0 0 5px; letter-spacing: 0; }
.results-head p { margin: 0; color: #5e6b7a; }
.seg { display: inline-flex; padding: 4px; background: #fff; border: 1px solid var(--slate-3); border-radius: 999px; }
.seg a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; color: var(--slate); }
.seg a[aria-current] { background: var(--ink); color: #fff; }
.lgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(280px, calc((100% - 36px) / 3)), 1fr)); gap: 18px; } /* at most 3 per row */
.more-results { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 0 16px; min-height: 54px; background: #fff; border: 1px solid var(--slate-3); border-radius: 8px; font-size: 13px; color: #5e6b7a; }
.more-results a { font-weight: 700; color: var(--brand-2); letter-spacing: .8px; text-transform: uppercase; }

/* ---- listing card (Figma "Project card" 2929:2795) ---- */
.lcard { background: #fff; border: 1px solid var(--slate-3); border-radius: 6px 6px 26px 6px; box-shadow: 0 6px 16px rgba(20, 34, 76, .07); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s ease; }
[dir=rtl] .lcard { border-radius: 6px 6px 6px 26px; }
.lcard:hover { border-color: var(--accent); }
.lcard-media { position: relative; aspect-ratio: 6 / 5; background: var(--slate-3); overflow: hidden; }
.lcard-media > a { position: absolute; inset: 0; }
.lcard-media a, .lcard-media img, .lcard-media picture { display: block; width: 100%; height: 100%; }
.lcard-media img { object-fit: cover; }
.lcard-media .placeholder { position: absolute; inset: 0; background: url("/images/icons/building-lg.svg") center / 28px no-repeat, linear-gradient(135deg, var(--slate-3), var(--lightest)); }
.lcard .stage { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--accent-soft); border-radius: 4px 4px 14px 4px; padding: 6px 9px; font-weight: 700; font-size: 11px; letter-spacing: .6px; text-transform: uppercase; color: var(--ink); }
.lcard .save { position: absolute; top: 10px; inset-inline-end: 10px; margin: 0; }
.lcard .save button { width: 32px; height: 32px; border-radius: 999px; background: rgba(255, 255, 255, .92); border: 0; display: grid; place-items: center; cursor: pointer; padding: 0; }
.lcard .save button img { width: 15px; height: 15px; }
.lcard .save button.on { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.lcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.lcard-head { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lcard .kicker { font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard h3 { font-size: 22px; line-height: 28px; margin: 0; letter-spacing: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard h3 a { color: var(--ink); }
.lcard .loc { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: #5e6b7a; }
.lcard .loc img { width: 13px; height: 13px; }
.progress { display: flex; flex-direction: column; gap: 5px; }
.progress .labels { display: flex; justify-content: space-between; font-weight: 700; font-size: 11px; }
.progress .pct { color: var(--brand-2); }
.progress .track { height: 5px; background: var(--accent-soft); border-radius: 999px; overflow: hidden; }
.progress .track span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.lfacts { display: flex; justify-content: space-between; gap: 8px; margin: 0; }
.lfacts dt { font-weight: 700; font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #5e6b7a; }
.lfacts dd { margin: 2px 0 0; font-weight: 700; font-size: 12px; color: var(--ink); }
.lfacts div:last-child:not(:first-child) { text-align: end; }
.lprice { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; }
.lprice span { font-size: 12px; color: #5e6b7a; }
.lprice b { font-family: var(--font-display); font-size: 22px; }

/* ---- detail pages: hero band with photo grid (Figma BEIRUT_HILLS_PROJECT 131:4706) ---- */
.dhero { position: relative; background: var(--ink) var(--cover, none) center / cover no-repeat; color: #fff; padding: 24px 0 40px; }
.dhero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 34, 76, .88) 0%, rgba(20, 34, 76, .78) 55%, rgba(20, 34, 76, .92) 100%); }
.dhero > .wrap { position: relative; display: flex; flex-direction: column; gap: 16px; }
.dhero .breadcrumbs ol { margin: 0; color: rgba(255, 255, 255, .6); }
.dhero .breadcrumbs a { color: rgba(255, 255, 255, .75); }
.dhero-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.dhero-top > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dhero .eyebrow { display: inline-flex; align-items: center; gap: 8px; width: fit-content; padding: 6px 12px; border-radius: 20px; background: rgba(255, 255, 255, .13); font-weight: 500; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.dhero .eyebrow a, .dhero .eyebrow b { background: var(--beige); color: var(--ink); border-radius: 16px; padding: 4px 10px; font-weight: 700; font-size: 13px; letter-spacing: 0; text-transform: none; }
.dhero h1 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.875rem); line-height: 1.2; margin: 0; }
.dhero .sub { font-size: 18px; line-height: 28px; color: rgba(255, 255, 255, .8); margin: 0; }
.dhero .sub a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dhero-actions { display: flex; gap: 12px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 20px; background: rgba(255, 255, 255, .13); border: 0; border-radius: 0 10px 10px 10px; color: #fff; font-weight: 600; font-size: 15px; text-transform: uppercase; cursor: pointer; }
[dir=rtl] .ghost-btn { border-radius: 10px 0 10px 10px; }
.ghost-btn:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.ghost-btn img { width: 22px; height: 22px; }
.ghost-btn.on { background: var(--beige); color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 260px); gap: 12px; position: relative; }
.photo-grid > * { position: relative; overflow: hidden; margin: 0; background: #2a3039; }
.photo-grid > :first-child { grid-row: span 2; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; }
.photo-grid .badge-progress { position: absolute; top: 24px; inset-inline-start: 24px; z-index: 1; background: #d97706; color: #fff; border-radius: 4px; padding: 12px; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.photo-grid .tile-overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .5); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; text-align: center; }
.photo-grid .tile-overlay b { font-size: 14px; letter-spacing: 1px; text-transform: uppercase; }
.photo-grid .tile-overlay span { font-size: 12px; opacity: .8; }
.photo-grid .play { width: 72px; height: 72px; border-radius: 36px; background: #fff; display: grid; place-items: center; }
.photo-grid .play img { width: 24px; height: 24px; }
.photo-grid .tile-label { position: absolute; inset: auto 0 0 0; background: rgba(0, 0, 0, .8); color: #fff; padding: 12px 16px; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; }
@media (max-width: 900px) { .photo-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 160px; } .photo-grid > :first-child { grid-column: span 2; grid-row: auto; } .photo-grid > :nth-child(n+4) { display: none; } }

/* ---- detail pages: body ---- */
.detail { padding: 40px 0 var(--section-y); }
.detail .detail-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
.detail section + section { margin-top: 56px; }
.detail h2 { font-size: 28px; line-height: 1.3; margin: 0 0 20px; }
.headline h2 { font-size: 36px; margin: 0 0 4px; }
.headline p { font-size: 17px; margin: 0; }
.kfacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; margin: 16px 0; }
.kfacts div { padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; }
.kfacts div + div { border-inline-start: 1px solid var(--slate-3); }
.kfacts b { font-family: var(--font-display); font-size: 24px; line-height: 1.2; }
.kfacts span { font-size: 14px; color: var(--slate); }
@media (max-width: 700px) { .kfacts { grid-template-columns: 1fr 1fr; } .kfacts div:nth-child(3) { border-inline-start: 0; } .kfacts div:nth-child(n+3) { border-top: 1px solid var(--slate-3); } }
.bigprogress { display: flex; flex-direction: column; gap: 8px; }
.bigprogress .labels { display: flex; justify-content: space-between; font-weight: 600; font-size: 15px; }
.bigprogress .labels b { color: var(--slate); }
.bigprogress .track { height: 10px; border-radius: 999px; background: var(--slate-3); overflow: hidden; }
.bigprogress .track span { display: block; height: 100%; background: var(--slate); border-radius: 999px; }
.bigprogress small { font-size: 13px; color: var(--slate); }
.sale-badge { position: absolute; top: 16px; inset-inline-start: 16px; padding: 4px 10px; border-radius: 999px; background: #10b981; color: #fff; font-weight: 700; font-size: 11px; text-transform: uppercase; }
.sale-badge.limited { background: #f59e0b; } .sale-badge.soon { background: var(--slate); } .sale-badge.sold { background: var(--danger); }
.units-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.units-toolbar h2 { margin: 0; }
.bloc-filter { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--slate); flex-wrap: wrap; }
.bloc-filter button { min-width: 36px; height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--slate-3); color: var(--ink); font-weight: 600; font-size: 13px; cursor: pointer; }
.bloc-filter button[aria-pressed=true] { background: var(--ink); color: #fff; }
.units td { padding-block: 18px; }
.ustatus { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--lightest); color: var(--slate); }
.ustatus.available { background: #d1fae5; color: #065f46; } .ustatus.reserved, .ustatus.on_hold { background: #fef3c7; color: #92400e; } .ustatus.sold { background: #fee2e2; color: #991b1b; }
.units .act .btn { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.units-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--slate); }
.plan-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.plan-step { background: #fff; border: 1px solid var(--slate-3); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.plan-step .num { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.plan-step .num i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 15px; flex: none; }
.plan-step b { font-size: 28px; color: var(--slate); }
.plan-step p { margin: 0; font-size: 14px; color: var(--slate); }
.plan-name { font-family: var(--font); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--slate); margin: 24px 0 12px; }
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--beige); border-radius: 12px; padding: 16px 20px; margin-top: 16px; font-size: 15px; }
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.amenity-grid div { background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; padding: 14px 16px; font-weight: 600; display: flex; align-items: center; gap: 10px; }

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 12px; }
.gallery-grid figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; }
.gallery-grid figure:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .gallery-grid { grid-template-columns: 1fr 1fr; } }
.location-map { width: 100%; height: 360px; border: 0; border-radius: 12px 12px 120px 12px; background: var(--slate-3); display: block; }
[dir=rtl] .location-map { border-radius: 12px 12px 12px 120px; }
.location-meta { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 16px; font-size: 15px; }
.dev-profile { background: var(--ink); color: #fff; border-radius: 16px 16px 64px 16px; padding: 40px; display: flex; flex-direction: column; gap: 24px; }
[dir=rtl] .dev-profile { border-radius: 16px 16px 16px 64px; }
.dev-profile h2 { color: var(--beige); margin: 0; }
.dev-profile .who { display: flex; gap: 24px; align-items: center; }
.dev-profile .logo-circle { width: 80px; height: 80px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; }
.dev-profile .logo-circle img { width: 70%; height: 70%; object-fit: contain; }
.dev-profile .logo-circle span { font-family: var(--font-display); font-size: 32px; color: var(--ink); }
.dev-profile h3 { color: #fff; font-size: 26px; margin: 0 0 6px; }
.dev-profile .who p { margin: 0; color: rgba(255, 255, 255, .75); font-size: 14px; }
.dev-profile .about { color: rgba(255, 255, 255, .85); line-height: 1.8; margin: 0; }
.dev-profile .badges { display: flex; gap: 12px; flex-wrap: wrap; }
.dev-profile .badges span, .dev-profile .badges a { background: rgba(255, 255, 255, .1); border-radius: 8px; padding: 10px 20px; font-weight: 600; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: #fff; }

/* ---- "Book your unit" sidebar (Figma 284:3914) ---- */
.book-card { background: #fff; border-radius: 8px; padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; }
.book-card h2 { font-size: 28px; text-align: center; margin: 0; }
.book-card .sub { text-align: center; color: var(--slate); font-size: 14px; margin: -10px 0 0; }
.price-box { background: var(--beige); border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.price-box span { font-weight: 500; font-size: 13px; color: var(--slate); }
.price-box b { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.2; }
.price-box small { font-size: 12px; color: var(--slate); }
.book-card .bigprogress .labels { font-size: 14px; }
.book-card .bigprogress .track { height: 8px; }
.book-actions { display: flex; flex-direction: column; gap: 12px; }
.book-actions form { margin: 0; }
.book-actions .btn, .book-actions button { width: 100%; padding: 14px 16px; }
.book-actions .btn img, .book-actions button img { width: 22px; height: 22px; }
.btn.dark { background: var(--ink); border-color: var(--ink); } .btn.dark:hover { background: var(--brand-2); border-color: var(--brand-2); }
.sales-office { border-top: 1px solid var(--slate-3); padding-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.sales-office h3 { font-size: 17px; margin: 0; }
.sales-office a, .sales-office p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 15px; }
.sales-office img { width: 22px; height: 22px; filter: brightness(0); }
.book-help { text-align: center; font-size: 15px; }
.book-help a { display: block; margin-top: 8px; font-weight: 600; text-transform: uppercase; color: var(--slate-2); }
.photo-grid.n1 { grid-template-columns: 1fr; }
.photo-grid.n2, .photo-grid.n3 { grid-template-columns: 2fr 1fr; }
.photo-grid.n2 > :nth-child(2) { grid-row: span 2; }
.photo-grid.n4 > :nth-child(4) { grid-column: span 2; }
.units.collapsed tr.more-row { display: none; }

/* ---- map split view (Figma 2929:2709 / full screen 2929:3016) ---- */
.mapsplit { display: grid; grid-template-columns: minmax(0, 920px) minmax(0, 1fr); height: calc(100vh - 96px - 150px); min-height: 560px; border-top: 1px solid var(--slate-3); }
.mapsplit-list { overflow-y: auto; padding: 24px 28px 32px 32px; border-inline-end: 1px solid var(--slate-3); }
.lgrid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lgrid [data-marker].active .lcard { border: 2px solid var(--accent); }
.mapsplit-map { position: relative; background: var(--slate-3); }
.map-canvas { position: absolute; inset: 0; }
.map-fullscreen { position: absolute; top: 20px; inset-inline-end: 72px; z-index: 500; }
.mapsplit.full { grid-template-columns: 1fr; } /* the list is hidden, so the map takes the only column */
.mapsplit.full .mapsplit-list { display: none; }
.price-pin-wrap { background: none; border: 0; }
.price-pin { display: inline-block; transform: translate(-50%, -50%); white-space: nowrap; padding: 6px 12px 6px 22px; border-radius: 999px; background: var(--accent); color: #fff; font-family: var(--font); font-weight: 700; font-size: 12px; box-shadow: 0 4px 10px rgba(20, 34, 76, .25); position: relative; }
.price-pin::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
.hover .price-pin, .leaflet-marker-icon:hover .price-pin { background: var(--ink); z-index: 1000; }
.map-popup .leaflet-popup-content-wrapper { border-radius: 8px 8px 26px 8px; padding: 0; overflow: hidden; }
.map-popup .leaflet-popup-content { margin: 0; width: 280px !important; }
.map-preview { display: flex; flex-direction: column; gap: 4px; color: var(--ink); font-family: var(--font); padding-bottom: 14px; }
.map-preview img { width: 100%; height: 130px; object-fit: cover; margin-bottom: 8px; }
.map-preview .k, .map-preview b, .map-preview .row2 { padding: 0 14px; }
.map-preview .k { font-weight: 700; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-2); }
.map-preview b { font-family: var(--font-display); font-size: 20px; }
.map-preview .row2 { display: flex; justify-content: space-between; align-items: flex-end; font-size: 12px; color: #5e6b7a; }
.map-preview .row2 strong { font-family: var(--font-display); font-size: 18px; color: var(--ink); }
@media (max-width: 640px) { .lgrid.two { grid-template-columns: 1fr; } }
@media (max-width: 1100px) { .mapsplit { grid-template-columns: minmax(0, 420px) 1fr; } }
@media (max-width: 760px) {
  .mapsplit { display: flex; flex-direction: column-reverse; height: auto; }
  .mapsplit-map { height: 60vh; }
  .mapsplit-list { overflow: visible; padding: 20px 16px; border: 0; }
  .map-fullscreen { display: none; }
}
.map-canvas .leaflet-tile-pane { filter: grayscale(.85) contrast(.92) brightness(1.04); }

/* ---- phase 3: generic page header, developers, favourites, saved searches, forms ---- */
.page-head { padding: 56px 0 48px; background: var(--beige); }
.page-head.light { background: var(--lightest); border-bottom: 1px solid var(--slate-3); }
.page-head .wrap { display: flex; flex-direction: column; gap: 16px; }
.page-head h1 { margin: 0; }
.page-head .lead { margin: 0; max-width: 70ch; }
.page-head .breadcrumbs ol { margin: 0; }
.page-body { padding: 48px 0 var(--section-y); }
.page-body h2:first-child { margin-top: 0; }
.dev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dev-card { background: #fff; border: 1px solid var(--slate-3); border-radius: 16px 16px 32px 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; color: var(--ink); transition: border-color .15s ease, transform .15s ease; }
[dir=rtl] .dev-card { border-radius: 16px 16px 16px 32px; }
.dev-card:hover { border-color: var(--accent); transform: translateY(-2px); color: var(--ink); }
.dev-card .top { display: flex; gap: 16px; align-items: center; }
.dev-card .logo-circle { width: 56px; height: 56px; border-radius: 50%; background: var(--beige); display: grid; place-items: center; overflow: hidden; flex: none; font-weight: 700; font-size: 22px; }
.dev-card .logo-circle img { width: 70%; height: 70%; object-fit: contain; }
.dev-card h2 { font-size: 20px; margin: 0; line-height: 1.3; }
.dev-card .muted { margin: 2px 0 0; font-size: 13px; }
.dev-card .foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--slate-3); padding-top: 14px; font-size: 14px; font-weight: 600; }
.dev-hero { background: var(--ink); color: #fff; padding: 40px 0 48px; }
.dev-hero .breadcrumbs ol { margin: 0 0 24px; color: rgba(255, 255, 255, .6); }
.dev-hero .breadcrumbs a { color: rgba(255, 255, 255, .75); }
.dev-hero .who { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.dev-hero .logo-circle { width: 96px; height: 96px; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden; flex: none; color: var(--ink); font-weight: 700; font-size: 36px; }
.dev-hero .logo-circle img { width: 70%; height: 70%; object-fit: contain; }
.dev-hero h1 { color: #fff; margin: 0 0 6px; }
.dev-hero .meta { color: rgba(255, 255, 255, .75); margin: 0; }
.dev-hero .about { color: rgba(255, 255, 255, .85); max-width: 80ch; margin: 24px 0 0; line-height: 1.8; }
.dev-hero .row { margin-top: 24px; }
.fav-units { display: grid; gap: 12px; }
.fav-unit { background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; padding: 16px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; }
.fav-unit a.ref { font-weight: 700; font-size: 17px; color: var(--ink); }
.fav-unit .muted { font-size: 13px; margin: 2px 0 0; }
.fav-unit b { font-size: 17px; }
.saved-list { display: grid; gap: 16px; }
.saved-card { background: #fff; border: 1px solid var(--slate-3); border-radius: 16px; padding: 20px 24px; display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.saved-card h2 { font-size: 20px; margin: 0 0 8px; }
.saved-card .chips { margin: 0; }
.saved-card .chips li { padding: 4px 10px; font-size: 12px; background: var(--lightest); }
.saved-card .actions { display: flex; gap: 12px; align-items: center; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.contact-cards > div { background: #fff; border: 1px solid var(--slate-3); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.contact-cards span { font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); }
.contact-cards a, .contact-cards p { font-weight: 600; color: var(--ink); margin: 0; }
.static-body { background: #fff; border: 1px solid var(--slate-3); border-radius: 16px; padding: clamp(24px, 4vw, 48px); }
.static-body .description { max-width: 76ch; }
.auth-wrap { display: grid; place-items: center; padding: 56px 16px var(--section-y); }
.auth-wrap .form-narrow { margin: 0; width: 100%; }
.auth-wrap h1 { font-size: 28px; margin: 0 0 8px; }
.compare-table th:first-child { background: var(--lightest); color: var(--slate); }
.compare-table tbody th { text-align: start; font-weight: 600; color: var(--slate); background: #f7f9fd; }
.auth-box { width: 100%; max-width: 480px; }
.auth-box > .muted { margin: 0 0 16px; }
.auth-box .form-narrow p { margin: 16px 0 0; text-align: center; }
.page-head.beige .pill { background: #fff; }
.site-footer .footer-bottom:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

/* ---- listing content: unit types, amenity cards, construction timeline, downloads, FAQs, nearby, offer ---- */
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.type-card { background: #fff; border: 1px solid var(--slate-3); border-radius: 12px 12px 24px 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.type-card .k { font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-2); }
.type-card b { font-size: 20px; }
.type-card span:not(.k) { font-size: 13px; color: var(--slate); }
.type-card strong { margin-top: 6px; font-size: 17px; }
.amenity-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.amenity-card { position: relative; border-radius: 16px; overflow: hidden; min-height: 240px; background: var(--ink); color: #fff; display: flex; align-items: flex-end; }
.amenity-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.amenity-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 34, 76, 0) 30%, rgba(20, 34, 76, .85) 100%); }
.amenity-card div { position: relative; z-index: 1; padding: 20px; }
.amenity-card h3 { color: #fff; font-size: 20px; margin: 0 0 6px; }
.amenity-card p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.amenity-card.no-photo { min-height: 0; background: #fff; color: var(--ink); border: 1px solid var(--slate-3); }
.amenity-card.no-photo::after { display: none; }
.amenity-card.no-photo h3 { color: var(--ink); } .amenity-card.no-photo p { color: var(--slate); }
.timeline-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; border-inline-start: 2px solid var(--accent-soft); }
.timeline-list li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 20px; padding: 0 0 28px 24px; position: relative; }
.timeline-list li::before { content: ""; position: absolute; inset-inline-start: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
[dir=rtl] .timeline-list li { padding: 0 24px 28px 0; }
.timeline-list .when { display: flex; flex-direction: column; gap: 2px; }
.timeline-list .when b { font-size: 22px; }
.timeline-list .when span { font-size: 13px; color: var(--slate); }
.timeline-list h3 { font-size: 18px; margin: 0 0 6px; }
.timeline-list p { margin: 0 0 10px; color: var(--slate); }
.timeline-list .shots { display: flex; gap: 8px; flex-wrap: wrap; }
.timeline-list .shots img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
@media (max-width: 600px) { .timeline-list li { grid-template-columns: 1fr; gap: 6px; } }
.downloads { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; padding: 16px 20px; }
.faq-list summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-list summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--slate); }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { margin: 12px 0 0; color: var(--slate); line-height: 1.7; }
.nearby-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.nearby-list li { background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.nearby-list .cat { font-weight: 700; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-2); }
.nearby-list b { font-size: 15px; } .nearby-list span:last-child { font-size: 13px; color: var(--slate); }
.offer-strip { margin: 0; background: #e8f4ed; color: #1f5f3d; border-radius: 8px; padding: 10px 14px; font-weight: 600; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.offer-strip small { font-weight: 500; opacity: .8; }

/* Inquiry popup: opened by any "#inquire" link (:target), no script needed. */
.modal { display: none; position: fixed; inset: 0; z-index: 100; padding: 24px 16px; overflow-y: auto; }
.modal:target, .modal.open { display: grid; place-items: center; }
.modal-backdrop { position: fixed; inset: 0; background: rgba(20, 34, 76, .55); }
.modal .inquiry { position: relative; width: 100%; max-width: 520px; margin: 0; }
.modal-close { position: absolute; top: 14px; inset-inline-end: 18px; font-size: 28px; line-height: 1; color: var(--slate); text-decoration: none; }

/* About us (Figma 297:3002) */
.about-hero { background: #fff; padding: clamp(48px, 6vw, 88px) 0 clamp(56px, 7vw, 120px); }
.about-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.about-copy { display: flex; flex-direction: column; gap: 40px; }
.about-hero h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.23; margin: 0 0 -16px; letter-spacing: 0; }
.about-lead { font-size: 18px; line-height: 28px; color: var(--ink); margin: 0; }
.about-lead p { margin: 0 0 12px; } .about-lead p:last-child { margin: 0; }
.about-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-img-hero img { aspect-ratio: 614 / 508; border-radius: 8px 80px 8px 8px; }
.about-img-mission img { aspect-ratio: 588 / 667; border-radius: 6px 60px 6px 6px; }
[dir=rtl] .about-img-hero img { border-radius: 80px 8px 8px 8px; }
[dir=rtl] .about-img-mission img { border-radius: 60px 6px 6px 6px; }
.about-mission { background: #f9fafb; padding: clamp(56px, 7vw, 120px) 0; }
.about-intro { max-width: 557px; display: flex; flex-direction: column; gap: 24px; margin-bottom: clamp(40px, 5vw, 80px); }
.about-intro h2 { font-size: clamp(34px, 4vw, 60px); line-height: 1.2; margin: 0; letter-spacing: 0; }
.about-pillars { display: flex; flex-direction: column; gap: 32px; max-width: 557px; }
.about-pillars > div { display: flex; flex-direction: column; gap: 16px; }
.about-pillars .num { font-size: 32px; font-weight: 700; color: var(--ink); }
.about-pillars h3 { font-size: clamp(30px, 3.4vw, 52px); line-height: 1.23; margin: 0; letter-spacing: 0; }
.about-pillars p { font-size: 18px; line-height: 28px; margin: 0; }
.about-impact { background: #fff; padding: clamp(56px, 7vw, 120px) 0; }
.about-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.about-stats > div { background: var(--slate-3); border-radius: 8px; padding: 40px 32px; display: flex; flex-direction: column; gap: 8px; }
.about-stats b { font-size: 40px; line-height: 1.2; margin-bottom: 12px; }
.about-stats h3 { font-size: 16px; margin: 0; letter-spacing: 0; }
.about-stats p { font-size: 14px; color: var(--slate); margin: 0; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; gap: 16px; }
}

/* Media library (Figma 2925:4888 desktop, 2925:5315 mobile) */
.mlib-hero { position: relative; min-height: clamp(420px, 42vw, 640px); display: flex; background: var(--ink); color: #fff; overflow: hidden; }
.mlib-hero .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mlib-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 34, 76, .32), rgba(20, 34, 76, .9)); }
.mlib-hero .wrap { position: relative; z-index: 1; width: 100%; display: flex; flex-direction: column; justify-content: space-between; padding-block: 56px; gap: 40px; }
.mlib-hero .back { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 13px; letter-spacing: 1px; text-transform: uppercase; }
.mlib-hero .back img { width: 20px; height: 20px; transform: rotate(90deg); filter: invert(1); }
[dir=rtl] .mlib-hero .back img { transform: rotate(-90deg); }
.mlib-hero-content { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mlib-hero-content > div:first-child { max-width: 980px; display: flex; flex-direction: column; gap: 14px; }
.mlib-hero .kicker { font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.mlib-hero h1 { color: #fff; font-size: clamp(36px, 4.4vw, 58px); line-height: 1.17; margin: 0; letter-spacing: 0; }
.mlib-hero p { margin: 0; font-size: 18px; line-height: 29px; color: rgba(255, 255, 255, .8); max-width: 780px; }
.mlib-hero .count { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.mlib-hero .count b { font-size: clamp(24px, 2.4vw, 34px); }
.mlib-hero .count span { font-size: 12px; color: rgba(255, 255, 255, .8); }
.mlib-intro { background: #fff; padding: 48px 0 56px; }
.mlib-intro-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.mlib-intro-row > div:first-child { max-width: 950px; }
.mlib-intro h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.3; margin: 0 0 10px; letter-spacing: 0; }
.mlib-intro p { margin: 0; color: var(--slate); font-size: 15px; line-height: 26px; max-width: 860px; }
.mlib-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.mlib-actions form { margin: 0; }
.mlib-nav { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mlib-nav::-webkit-scrollbar { display: none; }
.mlib-nav a { flex: none; padding: 12px 20px; border-radius: 999px; border: 1px solid var(--slate-3); background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .5px; white-space: nowrap; }
.mlib-nav a.on, .mlib-nav a:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.mlib-nav.dark a.on { background: #fff; border-color: #fff; color: var(--ink); }
html { scroll-behavior: smooth; }
.mlib-section { background: var(--lightest); padding: 80px 0; scroll-margin-top: 80px; }
.mlib-section.alt { background: #fff; }
.mlib-head { margin-bottom: 38px; display: flex; flex-direction: column; gap: 12px; }
.mlib-head .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--slate); }
.mlib-head .eyebrow, .mlib-archive .eyebrow { font-weight: 700; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #a88655; }
.mlib-head h2 { font-size: clamp(30px, 3vw, 40px); margin: 0; letter-spacing: 0; }
.mlib-head p { margin: 0; color: var(--slate); max-width: 780px; font-size: 16px; line-height: 27px; }
/* First photo large with two stacked beside it, the rest in threes. */
.mlib-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 20px; }
.mlib-grid.n3 .mlib-card:first-child { grid-column: span 2; grid-row: span 2; }
.mlib-grid.n2 { grid-template-columns: 1.6fr 1fr; }
.mlib-grid.n1 { grid-template-columns: 1fr; }
.mlib-card { margin: 0; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.mlib-card a { display: block; flex: 1; min-height: 0; border-radius: 8px; overflow: hidden; background: var(--slate-3); }
.mlib-card img { width: 100%; height: 100%; aspect-ratio: 540 / 258; object-fit: cover; transition: transform .3s ease; }
.mlib-grid.n3 .mlib-card:first-child a { position: relative; min-height: 320px; }
.mlib-grid.n3 .mlib-card:first-child img { position: absolute; inset: 0; aspect-ratio: auto; }
.mlib-grid.n1 .mlib-card img { aspect-ratio: 1600 / 520; }
.mlib-card a:hover img { transform: scale(1.03); }
.mlib-card figcaption { display: flex; flex-direction: column; gap: 4px; }
.mlib-card figcaption b { font-size: 20px; line-height: 1.3; }
.mlib-card figcaption span { font-size: 13px; color: var(--slate); }
.mlib-archive { background: var(--ink); color: #fff; padding: 88px 0 56px; scroll-margin-top: 80px; }
.mlib-archive-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.mlib-archive-head > div { max-width: 920px; display: flex; flex-direction: column; gap: 14px; }
.mlib-archive h2 { color: #fff; font-size: clamp(32px, 3.6vw, 50px); line-height: 1.2; margin: 0; letter-spacing: 0; }
.mlib-archive-head p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 16px; line-height: 27px; }
.mlib-latest { background: var(--beige); color: var(--ink); border-radius: 12px; padding: 28px; display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 28px; }
.mlib-latest > div { display: flex; flex-direction: column; gap: 8px; }
.mlib-latest > div span { font-weight: 700; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand-2); }
.mlib-latest > div b { font-size: clamp(20px, 2vw, 27px); line-height: 1.3; }
.mlib-latest dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mlib-latest dl div { background: #fff; border-radius: 8px; padding: 16px; display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; }
.mlib-latest dd { margin: 0; font-size: 22px; font-weight: 700; }
.mlib-latest dt { font-size: 11px; color: var(--slate); }
.mlib-months { background: #fff; padding: 64px 0 40px; }
.mlib-month { margin-bottom: 84px; scroll-margin-top: 80px; }
.mlib-month-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--slate-3); padding-bottom: 18px; margin-bottom: 28px; }
.mlib-month-head h3 { font-size: clamp(24px, 2.4vw, 34px); margin: 0; display: flex; align-items: center; gap: 12px; letter-spacing: 0; }
.mlib-month-head .latest { background: var(--brand-2); color: #fff; border-radius: 999px; padding: 6px 10px; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; }
.mlib-month-head p { margin: 0; color: var(--slate); font-size: 13px; }
.mlib-progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.mlib-progress article { background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.mlib-progress article > a img { width: 100%; aspect-ratio: 520 / 320; object-fit: cover; }
.mlib-progress article > div { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.mlib-progress span { font-weight: 700; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-2); }
.mlib-progress h4 { margin: 0; font-size: 20px; line-height: 1.4; }
.mlib-progress p { margin: 0; color: var(--slate); font-size: 13px; line-height: 21px; }
.mlib-cta { background: var(--beige); padding: 72px 0; }
.mlib-cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mlib-cta h2 { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 36px); letter-spacing: 0; }
.mlib-cta p { margin: 0; color: var(--slate); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 12, 16, .92); }
.lightbox img { max-width: calc(100vw - 140px); max-height: calc(100vh - 80px); margin: 40px auto; object-fit: contain; }
.lightbox button { position: fixed; color: #fff; background: rgba(255, 255, 255, .12); border: 0; border-radius: 999px; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox .lb-close { top: 16px; inset-inline-end: 16px; }
.lightbox .lb-prev { top: 50%; inset-inline-start: 16px; }
.lightbox .lb-next { top: 50%; inset-inline-end: 16px; }
@media (max-width: 900px) {
  .mlib-grid, .mlib-grid.n2, .mlib-progress { grid-template-columns: 1fr; }
  .mlib-grid.n3 .mlib-card:first-child { grid-column: auto; grid-row: auto; }
  .mlib-grid.n3 .mlib-card:first-child a { min-height: 0; aspect-ratio: 4 / 3; }
  .mlib-latest { grid-template-columns: 1fr; }
  .mlib-latest dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mlib-section { padding: 48px 0; }
  .mlib-month-head { flex-direction: column; align-items: flex-start; }
  .lightbox img { max-width: 100vw; }
}
.type-card .type-plan { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; color: var(--slate); font-size: 13px; font-weight: 600; }
.type-card .type-plan img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: var(--lightest); border-radius: 8px; border: 1px solid var(--slate-3); }
.type-card .type-plan:hover span { color: var(--ink); }
.mlib-album-date { display: block; font-weight: 700; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--brand-2); margin-bottom: 6px; }
.mlib-album-note { color: var(--slate); max-width: 820px; margin: -8px 0 20px; line-height: 1.6; }
.mlib-album-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mlib-album-photos a { display: block; border-radius: 10px; overflow: hidden; background: var(--slate-3); }
.mlib-album-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s ease; }
.mlib-album-photos a:hover img { transform: scale(1.03); }

/* Project page, second pass */
.dhero { background: var(--ink); }            /* solid band, no photo behind the title */
.dhero::before { display: none; }
.type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 640px) { .type-grid { grid-template-columns: 1fr; } }
.description.clamp { max-height: 10.2em; overflow: hidden; position: relative; }
.description.clamp::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3.4em; background: linear-gradient(rgba(247, 249, 253, 0), var(--lightest)); }
.description.clamp.open { max-height: none; }
.description.clamp.open::after { display: none; }
.read-more { background: none; border: 0; padding: 0; margin-top: 10px; color: var(--ink); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.good-to-know { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }
.good-to-know div { background: #fff; border: 1px solid var(--slate-3); border-radius: 10px; padding: 10px 14px; }
.good-to-know dt { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--slate); }
.good-to-know dd { margin: 2px 0 0; font-weight: 600; color: var(--ink); }
.photo-grid > a { display: block; }
.photo-grid a picture { display: block; width: 100%; height: 100%; }
.gallery-grid > a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 8px; background: var(--slate-3); }
.gallery-grid > a.lead { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; position: relative; min-height: 320px; }
.gallery-grid > a.lead img { position: absolute; inset: 0; } /* the small tiles set the row height, not the big photo */
.gallery-grid > a img { transition: transform .3s ease; }
.gallery-grid > a:hover img { transform: scale(1.03); }
.lightbox .lb-video { width: min(1100px, calc(100vw - 140px)); aspect-ratio: 16 / 9; margin: calc(50vh - min(1100px, calc(100vw - 140px)) * 9 / 32) auto 0; }
.lightbox .lb-video iframe { width: 100%; height: 100%; border: 0; border-radius: 10px; background: #000; }
.lightbox .lb-video.vertical { width: min(400px, calc((100vh - 60px) * 9 / 16), 100vw); aspect-ratio: 9 / 16; margin: 30px auto 0; }
@media (max-width: 700px) { .lightbox .lb-video { width: 100vw; } }
[hidden] { display: none !important; } /* nothing may override "hidden" (gallery categories, popups…) */
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gallery-head h2 { margin: 0; }
.gallery-cats { margin: 16px 0 20px; }
.dhero-top > .dhero-actions { flex-direction: row; align-items: center; gap: 10px; } /* Save and Share side by side */
.photo-grid .video-tile .tile-overlay { background: rgba(0, 0, 0, .25); }
.timeline-list .shots a { display: block; }

/* ---- Phones and tablets: detail pages (project, compound, unit) ---- */
.mobile-cta { display: none; }
@media (max-width: 980px) {
  .detail .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; } /* one column: the desktop rule above is more specific than the generic one */
  .detail .detail-layout > aside { position: static; }
  .detail { padding-bottom: 96px; }
  .mobile-cta { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; position: fixed; inset: auto 0 0 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--slate-3); box-shadow: 0 -6px 18px rgba(20, 34, 76, .08); }
  .mobile-cta form { margin: 0; display: flex; }
  .mobile-cta .btn { width: 100%; min-width: 0; padding: 12px 6px; font-size: 13px; gap: 6px; letter-spacing: 0; }
  .mobile-cta .btn img { width: 16px; height: 16px; }
}

/* ---- Phones: header actions fit on one line under the logo ---- */
@media (max-width: 560px) {
  .site-header .header-actions { width: 100%; justify-content: space-between; gap: 6px; min-width: 0; }
  .site-header .header-actions .pill-btn { padding-inline: 10px; font-size: 12px; gap: 4px; min-width: 0; }
  .site-header .header-actions .dropdown { min-width: 0; }
}

/* WhatsApp popup: number and name, once per browser */
.wa-dialog { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--radius-panel); box-shadow: 0 24px 60px rgba(20, 34, 76, .25); color: var(--ink); }
.wa-dialog::backdrop { background: rgba(20, 34, 76, .55); }
.wa-dialog form { position: relative; padding: 28px 24px 24px; }
.wa-dialog h2 { margin: 12px 0 4px; font-size: 22px; }
.wa-dialog p { margin: 0 0 20px; }
.wa-dialog .wa-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wa); }
.wa-dialog .wa-badge img { width: 24px; height: 24px; }
.wa-dialog:not([data-kind=whatsapp]):not([data-kind=prices]):not([data-kind=alerts]) .wa-badge { background: var(--ink); }
.wa-dialog [data-for] { display: none; }
.wa-dialog[data-kind=whatsapp] [data-for=whatsapp], .wa-dialog[data-kind=call] [data-for=call], .wa-dialog[data-kind=brochure] [data-for=brochure], .wa-dialog[data-kind=prices] [data-for=prices], .wa-dialog[data-kind=alerts] [data-for=alerts] { display: revert; }
.wa-dialog button[data-for] { display: none; }
.wa-dialog[data-kind=whatsapp] button[data-for=whatsapp], .wa-dialog[data-kind=call] button[data-for=call], .wa-dialog[data-kind=brochure] button[data-for=brochure], .wa-dialog[data-kind=prices] button[data-for=prices], .wa-dialog[data-kind=alerts] button[data-for=alerts] { display: flex; }
.wa-dialog .wa-error { margin: -4px 0 12px; }
.wa-dialog .wa-close { position: absolute; top: 12px; inset-inline-end: 16px; font-size: 28px; line-height: 1; background: none; border: 0; color: var(--slate); cursor: pointer; }

.wa-names { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wa-dialog .error { display: block; margin-top: 6px; color: #c0392b; font-weight: 600; }
.wa-dialog .btn.block { width: 100%; margin-top: 4px; }
@media (max-width: 420px) { .wa-names { grid-template-columns: 1fr; gap: 0; } }

/* Shortcuts under the banner photos: Payment plans, Floor plans, Brochure, Construction updates, Photo album */
.jump-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.jump-chips a { display: inline-flex; align-items: center; gap: 6px; height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .1); color: #fff; font-weight: 700; font-size: 16px; text-decoration: none; transition: background .15s ease, color .15s ease; }
.jump-chips a:hover, .jump-chips a:focus-visible { background: #fff; color: var(--ink); }
.jump-target { scroll-margin-top: 100px; }
@media (max-width: 560px) { .jump-chips { gap: 8px; } .jump-chips a { height: 40px; padding: 0 16px; font-size: 14px; } }

/* Phones: the cover on top, then every small tile (video, photos, "View all gallery") two per row, none hidden. */
@media (max-width: 900px) {
  .photo-grid, .photo-grid.n2, .photo-grid.n3, .photo-grid.n4, .photo-grid.n5 { grid-template-columns: 1fr 1fr; grid-template-rows: 280px; grid-auto-rows: 130px; gap: 8px; }
  .photo-grid.n1 { grid-template-columns: 1fr; }
  .photo-grid > :first-child, .photo-grid.n2 > :nth-child(2), .photo-grid.n4 > :nth-child(4) { grid-column: span 2; grid-row: auto; }
  .photo-grid > :nth-child(n+4) { display: block; }
  .photo-grid .play { width: 48px; height: 48px; }
  .photo-grid .tile-label { padding: 8px 10px; font-size: 11px; }
}

.photo-grid .tile-overlay b.full-album { font-size: 17px; font-weight: 800; }
@media (max-width: 900px) { .photo-grid .tile-overlay b.full-album { font-size: 14px; } }
.detail .headline + .overview { margin-top: 8px; } /* the overview sits right under the key facts */

/* Amenity line icons (Phosphor light), tinted gold: on chips, and large on cards without a photo */
.amenity-icon { display: inline-block; flex: none; width: 24px; height: 24px; background: var(--accent); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.amenity-grid div { gap: 12px; }
.amenity-card.no-photo { flex-direction: column; align-items: flex-start; justify-content: flex-start; }
.amenity-card.no-photo div { padding-top: 12px; }
.amenity-card:not(.no-photo) .amenity-badge { display: none; }
.amenity-badge { display: grid; place-items: center; width: 64px; height: 64px; margin: 24px 20px 0; border-radius: 50%; background: rgba(184, 151, 96, .12); }
.amenity-badge .amenity-icon { width: 34px; height: 34px; }
.wa-dialog .btn img { width: 20px; height: 20px; }

/* "Get the price list on WhatsApp": slides up at the bottom for returning buyers */
.nudge { position: fixed; z-index: 60; inset-inline: 0; bottom: 20px; margin: 0 auto; width: min(760px, calc(100vw - 32px)); display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 14px; background: var(--ink); color: #fff; border-radius: 18px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 18px 50px rgba(20, 34, 76, .35); transform: translateY(140%); transition: transform .35s ease; }
.nudge.in { transform: none; }
.nudge-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--wa); }
.nudge-icon img { width: 24px; height: 24px; }
.nudge p { flex: 1; margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.35; }
.nudge p b { font-size: 16px; }
.nudge p span { color: rgba(255, 255, 255, .75); }
.nudge .btn { flex: none; padding: 10px 18px; font-size: 14px; }
.nudge-close { flex: none; background: none; border: 0; color: rgba(255, 255, 255, .6); font-size: 13px; font-weight: 600; cursor: pointer; padding: 6px; }
.nudge-close:hover { color: #fff; }
@media (max-width: 980px) {
  .nudge { bottom: 84px; flex-wrap: wrap; gap: 10px 12px; } /* above the pinned WhatsApp / Call bar */
  .nudge p { min-width: calc(100% - 60px); }
  .nudge .btn { flex: 1; }
}

/* Unit types on a project card: "2 BR Apartment · 3 BR Apartment · Penthouse" */
.ltypes { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.ltypes li { padding: 4px 10px; border-radius: 999px; background: var(--lightest); border: 1px solid var(--slate-3); font-size: 12px; font-weight: 600; color: var(--ink); }
.ltypes li.more { color: #5e6b7a; }

/* Amenities: five, then "View all amenities" (a popup with every one; photos page through like an album) */
.amenity-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.amenity-card .amenity-photo { position: absolute; inset: 0; display: block; }
.amenity-card .amenity-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.amenity-card .amenity-photo:hover img { transform: scale(1.03); }
.amenity-card:not(.no-photo) div { pointer-events: none; }
.amenity-more { min-height: 240px; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #fff; color: var(--ink); border: 1px dashed #9db4d0; cursor: pointer; text-align: center; font: inherit; }
.amenity-more::after { display: none; }
.amenity-more:hover { border-style: solid; background: #f7f9fd; }
.amenity-more b { font-size: 18px; }
.amenity-more span:not(.amenity-icon):not(.amenity-more-icons) { color: var(--slate); font-size: 14px; }
.amenity-more-icons { display: flex; gap: 10px; margin-bottom: 4px; }
.amenity-more-icons .amenity-icon { width: 30px; height: 30px; }
.amenities-dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0; border-radius: var(--radius-panel); background: var(--lightest); box-shadow: 0 24px 60px rgba(20, 34, 76, .3); }
.amenities-dialog::backdrop { background: rgba(20, 34, 76, .6); }
.amenities-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: var(--lightest); border-bottom: 1px solid var(--slate-3); }
.amenities-dialog-head h2 { margin: 0; font-size: 22px; } .amenities-dialog-head small { color: var(--slate); font-weight: 600; margin-inline-start: 6px; }
.amenities-close { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--slate); cursor: pointer; }
.amenities-dialog .amenity-cards { padding: 20px 24px 24px; }
@media (max-width: 900px) { .amenity-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .amenity-cards { grid-template-columns: 1fr; } .amenity-more { min-height: 120px; } }
.amenity-card::after { pointer-events: none; }

/* Payment plan: the split bar, one row per step, and the plan in money */
.pplan { background: #fff; border: 1px solid var(--slate-3); border-radius: 20px; padding: 24px; }
.pplan + .pplan { margin-top: 16px; }
.pplan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.pplan-head h3 { margin: 0; font-size: 18px; } .pplan-head small { margin-inline-start: 8px; color: var(--slate); font-weight: 600; font-size: 14px; }
.pplan-split { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); letter-spacing: .5px; }
.pplan-bar { display: flex; gap: 3px; height: 34px; border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.pplan-bar span { display: grid; place-items: center; min-width: 6px; color: #fff; font-size: 13px; font-weight: 700; }
.t1 { background: #181d24; } .t2 { background: var(--accent); } .t3 { background: #5b6670; } .t4 { background: #015c9a; } .t5 { background: #9aa4ad; } .t6 { background: #ffb58a; }
.pplan-steps { list-style: none; margin: 0; padding: 0; }
.pplan-steps li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--slate-3); }
.pplan-steps li:last-child { border-bottom: 0; }
.pplan-steps .dot { width: 12px; height: 12px; border-radius: 50%; }
.pplan-steps .what { display: flex; flex-direction: column; gap: 2px; }
.pplan-steps .what b { font-size: 16px; }
.pplan-steps .what span { font-size: 14px; color: var(--slate); }
.pplan-steps .how { text-align: end; display: flex; flex-direction: column; gap: 2px; }
.pplan-steps .how b { font-family: var(--font-display); font-size: 22px; line-height: 1.1; }
.pplan-steps .how span { font-size: 13px; color: var(--slate); white-space: nowrap; }
.pplan-example { margin: 14px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; line-height: 1.55; color: var(--ink); }
@media (max-width: 560px) {
  .pplan { padding: 18px 16px; border-radius: 16px; }
  .pplan-bar { height: 28px; }
  .pplan-steps li { gap: 10px; }
  .pplan-steps .how b { font-size: 19px; }
}
.units td a.btn, .units td a.btn:hover { color: #fff; } /* the table link colour must not darken the Inquire button */

/* Compound page: its projects side by side */
.compare-intro { margin: -8px 0 20px; }
.compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.compare-card { background: #fff; border: 1px solid var(--slate-3); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.compare-photo { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--slate-3); }
.compare-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare-offer { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(20, 34, 76, .82); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.compare-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.compare-body h3 { margin: 0; font-size: 22px; } .compare-body h3 a { color: inherit; text-decoration: none; }
.compare-body dl { margin: 0; display: grid; gap: 0; }
.compare-body dl div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; padding: 10px 0; border-top: 1px solid var(--slate-3); font-size: 14px; }
.compare-body dt { color: var(--slate); }
.compare-body dd { margin: 0; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.compare-body dd.price { font-family: var(--font-display); font-size: 18px; }
.compare-progress { display: inline-block; width: 80px; height: 6px; border-radius: 6px; background: #e6edf6; overflow: hidden; }
.compare-progress i { display: block; height: 100%; background: var(--accent); }
.compare-body .btn.block { margin-top: auto; width: 100%; }

/* Facts lists (unit details, specifications, permits): a clean white card, label above value, three per row.
   The card's background shows through 1px gaps as the dividers, so every row closes neatly. */
.spec-list.card-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--slate-3); border-radius: 16px; overflow: hidden; }
.spec-list.card-list div { display: flex; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 16px 20px; border: 0; background: #fff; font-size: 15px; box-shadow: -1px -1px 0 var(--slate-3); } /* left and top dividers; the card edge clips the outer ones */
.spec-list.card-list dt { font-size: 12px; font-weight: 600; letter-spacing: .4px; text-transform: uppercase; color: #5e6b7a; }
.spec-list.card-list dd { margin: 0; text-align: start; font-weight: 600; font-size: 16px; color: var(--ink); }
.spec-list.card-list dd a { color: inherit; }
@media (max-width: 700px) { .spec-list.card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* One project card at full width (a unit's "Belongs to"): photo left, details right; stacked on phones */
.lgrid.wide { grid-template-columns: 1fr; }
.lgrid.wide .lcard { flex-direction: row; }
.lgrid.wide .lcard-media { flex: 0 0 44%; aspect-ratio: auto; min-height: 260px; }
.lgrid.wide .lcard-body { padding: 24px 28px; }
@media (max-width: 640px) { .lgrid.wide .lcard { flex-direction: column; } .lgrid.wide .lcard-media { flex: none; aspect-ratio: 16 / 10; min-height: 0; } }

/* Search bar: full width, suggestions under the search box, Region you can type into */
.discovery-row > * { flex: 1 1 0; min-width: 0; }
.discovery-row > .dsearch-wrap { flex: 2.4 1 0; }
.discovery-row > button[type=submit] { flex: 0 0 auto; height: 40px; padding-inline: 22px; }
.discovery-row .dctl { min-width: 0; }
.dsearch-wrap { position: relative; }
.dsearch-wrap .dsearch { width: 100%; height: 40px; }
.suggest { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline: 0; background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; box-shadow: 0 16px 40px rgba(20, 34, 76, .14); padding: 6px; max-height: 70vh; overflow-y: auto; }
.suggest .sg + .sg { border-top: 1px solid var(--slate-3); margin-top: 4px; padding-top: 4px; }
.suggest .sg > b { display: block; padding: 8px 10px 4px; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; color: #5e6b7a; }
.suggest .si { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.suggest .si small { color: #5e6b7a; font-weight: 500; font-size: 12px; white-space: nowrap; }
.suggest .si:hover, .suggest .si.on { background: var(--lightest); }
.suggest .si.all { border-top: 1px solid var(--slate-3); border-radius: 0 0 8px 8px; margin-top: 4px; color: var(--brand-2); }
.combo { position: relative; cursor: text; }
.combo-input { min-height: 0 !important; height: auto !important; border: 0 !important; padding: 0 20px 0 0 !important; margin: 0 !important; background: transparent url("/images/icons/chevron-sm.svg") no-repeat right 0 center / 14px !important; font-size: 13px !important; font-weight: 600; color: var(--ink); line-height: 1.3; width: 100%; }
.combo-input::placeholder { color: var(--ink); opacity: 1; }
.combo-input:focus-visible { box-shadow: none; }
.combo-list { position: absolute; z-index: 40; top: calc(100% + 6px); inset-inline-start: 0; min-width: 100%; width: max-content; max-width: 320px; max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; box-shadow: 0 16px 40px rgba(20, 34, 76, .14); }
.combo-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.combo-list li small { color: #5e6b7a; font-weight: 500; font-size: 12px; }
.combo-list li.lvl2 { padding-inline-start: 22px; font-weight: 500; }
.combo-list li.lvl3 { padding-inline-start: 34px; font-weight: 500; }
.combo-list li:hover, .combo-list li.on { background: var(--lightest); }
@media (max-width: 980px) { .discovery-row > * { flex: 1 1 45%; } .discovery-row > .dsearch-wrap { flex-basis: 100%; } }

.saved-tabs { margin-bottom: 24px; }

/* ---- Home: slider of featured projects with a compact search on it ---- */
.hero-slider { position: relative; height: min(78vh, 720px); min-height: 560px; background: var(--ink); color: #fff; overflow: hidden; }
.hs-track, .hs-slide { position: absolute; inset: 0; }
.hs-slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hs-slide.on { opacity: 1; visibility: visible; }
.hs-slide > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 7s ease; }
.hs-slide.on > img { transform: scale(1); }
.hs-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 34, 76, .78) 0%, rgba(20, 34, 76, .35) 55%, rgba(20, 34, 76, .1) 100%), linear-gradient(0deg, rgba(20, 34, 76, .7) 0%, rgba(20, 34, 76, 0) 45%); }
.hs-copy { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 14px; padding-bottom: 150px; }
.hs-tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; backdrop-filter: blur(6px); }
.hs-copy h2 { margin: 0; color: #fff; font-size: clamp(36px, 5.5vw, 68px); line-height: 1.05; max-width: 14ch; }
.hs-meta { margin: 0; font-size: 18px; color: rgba(255, 255, 255, .85); }
.hs-cta { display: flex; align-items: center; gap: 24px; margin-top: 8px; flex-wrap: wrap; }
.hs-price { display: flex; flex-direction: column; font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.1; }
.hs-price small { font-family: var(--font); font-size: 12px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.btn.light { background: #fff; border-color: #fff; color: var(--ink); }
.btn.light:hover { background: #eef3fa; border-color: #eef3fa; color: var(--ink); }
.hs-arrow { position: absolute; z-index: 3; bottom: 138px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(20, 34, 76, .3); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); }
.hs-arrow:hover { background: rgba(20, 34, 76, .6); }
.hs-arrow.prev { right: calc(max(24px, (100vw - 1366px) / 2 + 24px) + 48px); } .hs-arrow.next { right: max(24px, calc((100vw - 1366px) / 2 + 24px)); }
.hs-dots { position: absolute; z-index: 3; bottom: 152px; right: calc(max(24px, (100vw - 1366px) / 2 + 24px) + 104px); display: flex; gap: 8px; }
.hs-dots button { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .45); border: 0; padding: 0; cursor: pointer; transition: width .3s ease, background .3s ease; }
.hs-dots button.on { width: 28px; background: #fff; }
.hs-search-wrap { position: absolute; z-index: 4; left: 0; right: 0; bottom: 32px; }
.hero-search { width: 100%; box-sizing: border-box; display: flex; gap: 8px; padding: 10px; background: #fff; border-radius: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .28); color: var(--ink); }
.hero-search > * { flex: 1 1 0; min-width: 0; }
.hero-search > .dsearch-wrap { flex: 2.2 1 0; }
.hero-search .dsearch, .hero-search .dctl { height: 52px; border-color: transparent; background: var(--lightest); }
.hero-search .dsearch-wrap .dsearch { height: 52px; }
.hero-search .hs-go { flex: 0 0 auto; height: 52px; padding-inline: 32px; border-radius: 10px; background: var(--ink); border-color: var(--ink); }
.hs-stats { margin: 12px 4px 0; font-size: 14px; color: rgba(255, 255, 255, .85); }
.hs-stats a { color: #fff; font-weight: 700; }
.hs-empty { background: var(--ink); }

/* Popular areas */
.area-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.area-tile { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--slate); color: #fff; text-decoration: none; }
.area-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.area-tile:hover img { transform: scale(1.05); }
.area-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 34, 76, .75) 0%, rgba(20, 34, 76, 0) 60%); }
.area-copy { position: absolute; z-index: 1; left: 20px; bottom: 16px; display: flex; flex-direction: column; }
.area-copy b { font-family: var(--font-display); font-size: 24px; } .area-copy small { font-size: 14px; color: rgba(255, 255, 255, .85); }

/* Why buy with us: one slim strip */
.why-band { padding: 48px 0; }
.why { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.why li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: start; }
.why .ic { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); position: relative; -webkit-mask: none; mask: none; }
.why .ic::after { content: ""; position: absolute; inset: 11px; background: var(--brand-2); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.why b { font-size: 16px; } .why small { font-size: 14px; color: var(--slate); line-height: 1.45; }

/* Developer call */
.list-cta { padding: 56px 0; }
.list-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.list-cta h2 { color: #fff; margin: 0 0 8px; } .list-cta p { margin: 0; color: rgba(255, 255, 255, .8); max-width: 60ch; }
.btn.tertiary.on-dark { color: #fff; }

@media (max-width: 980px) {
  .hero-slider { height: auto; min-height: 0; }
  .hs-track { position: relative; height: 62vh; min-height: 420px; }
  .hs-copy { padding-bottom: 40px; justify-content: flex-end; }
  .hs-dots { bottom: 16px; right: 16px; }
  .hs-arrow { display: none; }
  .hs-search-wrap { position: relative; bottom: auto; padding-block: 16px 20px; background: var(--ink); }
  .hero-search { flex-wrap: wrap; }
  .hero-search > * { flex: 1 1 45%; }
  .hero-search > .dsearch-wrap, .hero-search .hs-go { flex-basis: 100%; }
  .area-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) { .area-tiles, .why { grid-template-columns: 1fr; } }

/* ---- Brand accents (navy + orange) ---- */
a { color: var(--brand-2); }
.btn:hover, button:where(:not(.link):not(.pill-btn):not(.icon-btn):not(.chip-btn):not(.plain)):hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.accent, .hero-search .hs-go, .discovery button[type=submit], .site-header .btn-list, .header-cta { background: var(--accent) !important; border-color: var(--accent) !important; color: var(--accent-ink) !important; }
.btn.accent:hover, .hero-search .hs-go:hover, .discovery button[type=submit]:hover { background: var(--accent-2) !important; border-color: var(--accent-2) !important; }
.btn.whatsapp, button.whatsapp { background: var(--wa); border-color: var(--wa); }
.btn.whatsapp:hover, button.whatsapp:hover { background: #1fb457; border-color: #1fb457; }
.btn.light { color: var(--ink); }
.btn.tertiary { color: var(--brand-2); }
.progress .track span, .lcard .progress .track span { background: var(--accent); }
.hs-tag { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Accent details: white on orange; small orange text a shade deeper for contrast */
.pplan-bar .t2 { color: var(--accent-ink); }
.afilter { color: var(--ink); }
.lcard .progress .pct, .compare-progress + *, .kicker, .lcard .kicker { color: var(--accent-deep); }
.why .ic { background: var(--accent-soft); } .why .ic::after { background: var(--accent); }
.amenity-icon { background: var(--accent-deep); }
.amenity-badge { background: var(--accent-soft); }
.hs-dots button.on { background: var(--accent); }
.header-cta:hover { background: var(--accent-2) !important; }

/* ---- Home: extra sections ---- */
.band.tight { padding-top: 0; }
.band-head.split p { margin: 0; }
.budget-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.budget-tile { display: flex; flex-direction: column; gap: 4px; padding: 22px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--slate-3); color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s; }
.budget-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.budget-tile small { font-size: 12px; font-weight: 700; letter-spacing: .8px; color: var(--slate); }
.budget-tile b { font-family: var(--font-display); font-size: 26px; }
.budget-tile span { font-size: 14px; color: var(--accent-deep); font-weight: 600; }
.plan-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.plan-tile { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; background: var(--ink); }
.plan-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.plan-tile:hover img { transform: scale(1.05); }
.plan-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 34, 76, .92) 0%, rgba(20, 34, 76, .2) 65%); }
.plan-copy { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; display: flex; flex-direction: column; }
.plan-copy .down { font-family: var(--font-display); font-size: 32px; line-height: 1.1; color: #fff; }
.plan-copy small { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: rgba(255, 255, 255, .8); }
.plan-copy .split { margin-top: 10px; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; }
.plan-copy .name { margin-top: 8px; font-weight: 700; font-size: 17px; }
.offer-list { display: grid; gap: 12px; }
.offer-item { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 12px; padding-inline-end: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--slate-3); color: var(--ink); text-decoration: none; }
.offer-item:hover { border-color: var(--accent); }
.offer-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
.offer-item span { display: flex; flex-direction: column; gap: 2px; }
.offer-item small { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; color: var(--accent-deep); }
.offer-item b { font-size: 18px; } .offer-item em { font-style: normal; font-size: 13px; color: var(--slate); }
.offer-item .go { font-size: 22px; color: var(--accent); }
.site-band .band-head h2 { color: #fff; } .site-band .band-head p { color: rgba(255, 255, 255, .75); }
.site-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.site-tile { position: relative; display: block; aspect-ratio: 1; border-radius: 16px; overflow: hidden; color: #fff; text-decoration: none; }
.site-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.site-tile:hover img { transform: scale(1.05); }
.site-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20, 34, 76, .9) 0%, rgba(20, 34, 76, 0) 55%); }
.site-copy { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; flex-direction: column; }
.site-copy em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .5px; }
.site-copy b { font-size: 18px; } .site-copy small { font-size: 13px; color: rgba(255, 255, 255, .8); }
.alert-band { padding: 40px 0; background: var(--accent-soft); }
.alert-inner { display: flex; align-items: center; gap: 20px; }
.alert-inner > div { flex: 1; } .alert-inner h2 { margin: 0 0 4px; font-size: 26px; } .alert-inner p { margin: 0; color: var(--slate); }
.alert-icon { flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.alert-icon img { width: 26px; height: 26px; }
.guide-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--slate-3); color: var(--ink); text-decoration: none; }
.guide:hover { border-color: var(--brand-2); }
.guide .n { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent); }
.guide b { font-size: 19px; line-height: 1.3; } .guide small { color: var(--slate); font-size: 14px; line-height: 1.5; flex: 1; }
.guide .go { font-weight: 700; color: var(--brand-2); font-size: 14px; }
@media (max-width: 980px) {
  .budget-tiles, .plan-tiles, .site-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-list { grid-template-columns: 1fr; }
  .alert-inner { flex-wrap: wrap; } .alert-inner .btn { width: 100%; }
}
@media (max-width: 560px) { .offer-item { grid-template-columns: 80px minmax(0, 1fr); } .offer-item img { width: 80px; height: 64px; } .offer-item .go { display: none; } }

/* Home: the site's own headline above the search, on the slider */
.hs-intro { margin-bottom: 14px; text-shadow: 0 2px 16px rgba(20, 34, 76, .5); }
.hs-intro h1 { margin: 0 0 4px; color: #fff; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
.hs-intro p { margin: 0; color: rgba(255, 255, 255, .88); font-size: 16px; max-width: 70ch; }
.hs-copy { padding-bottom: 250px; }
.hs-dots { bottom: 252px; }
.hs-arrow { bottom: 238px; }
.hero-slider { height: min(84vh, 780px); }
.hs-slide .hs-copy h2 { font-size: clamp(30px, 4.2vw, 54px); }
@media (max-width: 980px) {
  .hs-copy { padding-bottom: 40px; }
  .hs-dots { bottom: 16px; }
  .hero-slider { height: auto; }
  .hs-intro { text-shadow: none; }
  .hs-intro h1 { font-size: 24px; } .hs-intro p { font-size: 14px; }
}

/* Photo tiles keep white text on hover (the global link hover colour must not reach them) */
.area-tile, .area-tile:hover, .area-tile:hover b, .area-tile:hover small,
.plan-tile, .plan-tile:hover, .site-tile, .site-tile:hover, .hs-slide a.btn.light:hover { color: #fff; text-decoration: none; }
.hs-slide a.btn.light:hover { color: var(--ink); }

/* Popup: country code picker (flag + code, searchable list of every country) */
.wa-field { margin-bottom: 16px; }
.wa-label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.wa-phone { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; }
.wa-phone input[type=tel] { margin-top: 0; }
.cc { position: relative; }
.cc-btn { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 12px; border: 1px solid var(--slate-3); border-radius: var(--radius-field); background: var(--lightest); color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; white-space: nowrap; }
.cc-btn:hover, .cc-btn[aria-expanded=true] { border-color: var(--brand-2); }
.flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(20, 34, 76, .12); flex: none; }
.cc-caret { font-size: 11px; color: var(--slate); }
.cc-pop { position: absolute; z-index: 10; top: calc(100% + 6px); inset-inline-start: 0; width: min(340px, calc(100vw - 64px)); background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; box-shadow: 0 16px 40px rgba(20, 34, 76, .18); padding: 8px; }
.cc-search { width: 100%; min-height: 42px !important; margin: 0 0 6px !important; }
.cc-list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.cc-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.cc-list li .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-list li .c { color: var(--slate); font-variant-numeric: tabular-nums; }
.cc-list li:hover, .cc-list li.on { background: var(--lightest); }
.cc-list li[aria-selected=true] { font-weight: 700; }
.cc:not(.filtering) .cc-list li.pinned-last { border-bottom: 1px solid var(--slate-3); border-radius: 8px 8px 0 0; margin-bottom: 4px; padding-bottom: 10px; }
.wa-dialog { overflow: visible; }
.wa-dialog form { overflow: visible; }
.cc-caret { width: 14px; height: 14px; }
.wa-phone input[type=tel] { height: 52px; min-height: 52px; }
.wa-phone input[type=tel] { margin: 0 !important; }

/* "Edit this project" for admins and the developer's editors (never shown to buyers) */
.edit-this { position: fixed; z-index: 90; inset-inline-start: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: .45rem; padding: .6rem .95rem; border-radius: 6px; background: #ff5e00; color: #fff; font-weight: 700; font-size: .85rem; box-shadow: 0 8px 24px rgba(20, 34, 76, .3); text-decoration: none; }
.edit-this:hover { background: #14224c; color: #fff; text-decoration: none; }
/* Uploaded logo (Admin > Settings > General) */
.brand-logo { display: block; height: 44px; width: auto; max-width: 260px; object-fit: contain; }
.footer-bottom .brand-logo { height: 38px; }
@media (max-width: 700px) { .brand-logo { height: 34px; max-width: 180px; } }
/* Keep Leaflet's layers (z-index 400+) inside the map, under the sticky header and filters */
.mapsplit-map, .map-canvas { isolation: isolate; z-index: 0; }
.mapsplit { position: relative; z-index: 0; }
/* Popup: the new actions (alert me, calculator, site visit, offer, compare) */
.wa-dialog[data-kind=watch] [data-for=watch], .wa-dialog[data-kind=calculator] [data-for=calculator], .wa-dialog[data-kind=visit] [data-for=visit], .wa-dialog[data-kind=offer] [data-for=offer], .wa-dialog[data-kind=compare] [data-for=compare] { display: revert; }
.wa-dialog[data-kind=watch] button[data-for=watch], .wa-dialog[data-kind=calculator] button[data-for=calculator], .wa-dialog[data-kind=visit] button[data-for=visit], .wa-dialog[data-kind=offer] button[data-for=offer], .wa-dialog[data-kind=compare] button[data-for=compare] { display: flex; }
.wa-dialog[data-kind=watch] .wa-extra[data-for=watch], .wa-dialog[data-kind=visit] .wa-extra[data-for=visit] { display: grid; }
.wa-extra { gap: .45rem; margin: 0 0 1rem; padding: 0; border: 0; }
.wa-extra legend { padding: 0; margin-bottom: .4rem; }
.wa-check { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; }
.wa-extra select { width: 100%; height: 46px; padding: 0 .8rem; border: 1px solid var(--slate-3, #dfe3ea); border-radius: 8px; font: inherit; }
.wa-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.wa-slots label { position: relative; }
.wa-slots input { position: absolute; opacity: 0; }
.wa-slots span { display: block; text-align: center; padding: .6rem; border: 1px solid var(--slate-3, #dfe3ea); border-radius: 8px; font-weight: 600; cursor: pointer; }
.wa-slots input:checked + span { background: #14224c; border-color: #14224c; color: #fff; }
.wa-dialog[data-skip-contact] .wa-field, .wa-dialog[data-skip-contact] .wa-names { display: none; }
a.offer-strip.locked { display: flex; align-items: center; justify-content: space-between; gap: .6rem; text-decoration: none; cursor: pointer; }
a.offer-strip.locked b { flex: none; padding: .25rem .6rem; border-radius: 6px; background: #ff5e00; color: #fff; font-size: .8rem; }
a.offer-strip.locked:hover b { background: #14224c; }
/* Payment calculator */
.calc { margin-top: 28px; padding: 24px; border: 1px solid var(--slate-3, #dfe3ea); border-radius: 12px; background: #fff; }
.calc-head h2 { margin: 0; } .calc-head p { margin: 4px 0 16px; }
.calc-controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 16px; }
.calc-controls label { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.calc-controls label[hidden] { display: none; }
.calc-controls select, .calc-controls input { height: 46px; padding: 0 12px; border: 1px solid var(--slate-3, #dfe3ea); border-radius: 8px; font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; color: #14224c; font-weight: 600; background: #fff; }
.calc-steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--slate-3, #dfe3ea); }
.calc-steps li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--slate-3, #dfe3ea); }
.calc-steps .w, .calc-steps .a { display: flex; flex-direction: column; gap: 2px; }
.calc-steps .a { text-align: end; }
.calc-steps b { color: #14224c; } .calc-steps small { color: #64748b; }
.calc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.compare-send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 20px; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; } .auth-row .check { margin: 0; }
.calc { margin-bottom: 56px; } /* same breathing room as between the other sections (its script tag breaks section + section) */
/* Payment plan example = calculator */
.pplan-calc { margin-top: 14px; }
.pplan-calc .pplan-example { margin: 0; }
.pc-price-wrap { display: inline-flex; align-items: center; gap: 2px; }
.pc-price { width: 120px; height: 34px; padding: 0 8px; border: 1px solid #ff5e00; border-radius: 6px; background: #fff; font: inherit; font-weight: 800; color: #14224c; }
.pc-price:focus { outline: 2px solid #ffd4b8; }
.pc-send { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: #16a34a; text-decoration: none; }
.pc-send img { width: 18px; height: 18px; }
.pc-send:hover { text-decoration: underline; }
.pplan-calc .pc-price { width: 118px !important; height: 34px !important; min-height: 0 !important; padding: 0 8px !important; margin: 0 2px !important; border: 1.5px solid #ff5e00 !important; border-radius: 6px !important; background: #fff !important; font-size: 1rem !important; font-weight: 800 !important; color: #14224c !important; vertical-align: middle; -moz-appearance: textfield; }
.pplan-calc .pc-price::-webkit-outer-spin-button, .pplan-calc .pc-price::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pc-send { display: inline-flex; margin-top: 14px; text-decoration: none; color: #fff; }
.pc-send:hover { text-decoration: none; }
.calc-controls { grid-template-columns: repeat(auto-fit, minmax(200px, 280px)); }
/* Thin line icons (no emoji) */
.line-ic { flex: none; vertical-align: -3px; }
.offer-strip .line-ic, .compare-offer .line-ic { width: 16px; height: 16px; margin-inline-end: 4px; }
a.offer-strip.locked b { display: inline-flex; align-items: center; gap: 4px; } a.offer-strip.locked b .line-ic { width: 14px; height: 14px; }

.book-actions a.btn .line-ic { width: 22px; height: 22px; }
.book-actions a.btn { white-space: normal; text-align: center; }
/* Footer preferences (moved out of the header) and the heart page tabs */
.foot-tools { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot-prefs { display: flex; gap: 8px; margin: 0; }
.foot-prefs select { height: 34px; padding: 0 28px 0 10px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .25); background-color: transparent; color: #fff; font: inherit; font-size: 13px; }
.foot-prefs select option { color: #14224c; }
.foot-account { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.foot-account a, .foot-account .link { color: rgba(255, 255, 255, .8); }
.foot-account form { margin: 0; }
.saved-tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--slate-3, #dfe3ea); margin: 8px 0 24px; }
.saved-tabs a { padding: 10px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; color: #64748b; font-weight: 700; text-decoration: none; }
.saved-tabs a.on { color: #14224c; border-bottom-color: #ff5e00; }
/* Header heart: same shape and height as "List a project", grey with a white heart */
.header-actions .fav-btn { align-self: stretch; aspect-ratio: 1; padding: 0 !important; display: inline-grid; place-items: center; background: #5b6472 !important; border-color: #5b6472 !important; color: #fff !important; }
.header-actions .fav-btn:hover { background: #14224c !important; border-color: #14224c !important; }
.header-actions .fav-btn svg { width: 22px; height: 22px; }
.header-actions .fav-btn { align-self: center; aspect-ratio: auto; flex: none; width: 50px; height: 50px; min-width: 50px; }
@media (max-width: 900px) { .header-actions .fav-btn { width: 42px; height: 42px; min-width: 42px; } }

/* ===== Phone header: logo left, a two-line menu icon right; everything else in the menu ===== */
.nav-mobile { display: none; }
.menu-toggle { background: none !important; border: 0 !important; box-shadow: none !important; padding: 10px 4px !important; width: 40px; height: 40px; flex-direction: column; justify-content: center; align-items: flex-end; gap: 7px; cursor: pointer; }
.menu-toggle span { display: block; height: 2px; width: 26px; background: var(--ink); border-radius: 2px; transition: transform .2s, width .2s; }
.menu-toggle span + span { width: 18px; }
.site-header.open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); width: 24px; }
.site-header.open .menu-toggle span + span { transform: translateY(-4.5px) rotate(-45deg); width: 24px; }
@media (max-width: 980px) {
  .site-header .wrap { flex-wrap: wrap; align-items: center; min-height: 68px; }
  .site-header .header-actions { width: auto !important; margin-inline-start: auto; gap: 0 !important; }
  .site-header .header-actions > :not(.menu-toggle) { display: none !important; }
  .menu-toggle { display: inline-flex !important; }
  .main-nav { gap: 0 !important; padding: 4px 0 20px !important; border-top: 1px solid var(--slate-3); }
  .main-nav > a { width: 100%; padding: 14px 0; font-size: 17px; border-bottom: 1px solid var(--slate-3); }
  .nav-mobile { display: block; }
  .nav-mobile-extra { width: 100%; padding-top: 18px; display: flex; flex-direction: column; gap: 14px; }
  .nav-mobile-extra .header-cta-m { width: 100%; justify-content: center; background: var(--accent) !important; border-color: var(--accent) !important; color: #fff !important; }
  .nav-auth { display: flex; justify-content: center; gap: 24px; font-weight: 600; }
  .brand-logo { height: 36px; }
}
/* Slider arrows: under the price and "View project", thin chevrons centred in their circles; no dots */
.hs-nav { display: flex; gap: 10px; margin-top: 18px; }
.hero-slider .hs-arrow { position: static; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; font-size: 0; line-height: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); background: rgba(20, 34, 76, .35); color: #fff; }
.hero-slider .hs-arrow svg { display: block; }
.hero-slider .hs-arrow:hover { background: rgba(20, 34, 76, .7); border-color: #fff; }
.hs-dots { display: none; }
@media (max-width: 980px) {
  /* The logo row keeps its height when the menu opens (it used to jump to the top edge) */
  .site-header .wrap { align-items: flex-start; }
  .site-header .brand { min-height: 68px; display: flex; align-items: center; }
  .site-header .header-actions { min-height: 68px; display: flex; align-items: center; }
}

/* Budget search: projects with no published price, under the ones that fit */
.results-band:has(+ .on-request) { padding-bottom: 8px; }
.results-band.on-request { padding-top: 32px; }
.results-band.on-request h2 { font-size: 22px; margin: 0 0 4px; }

/* Home hero: the platform first (headline, search), the featured project as a caption bar at the foot of the photo */
.hero-slider { height: min(82vh, 760px); min-height: 600px; }
.hs-slide::after { background: linear-gradient(180deg, rgba(20, 34, 76, .82) 0%, rgba(20, 34, 76, .6) 55%, rgba(20, 34, 76, .5) 100%); }
.hs-search-wrap { top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; padding-bottom: 120px; pointer-events: none; }
.hs-search-wrap > * { pointer-events: auto; }
.hs-intro { margin-bottom: 26px; }
.hs-intro h1 { margin: 0 0 12px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; max-width: 20ch; }
.hs-intro p { font-size: 18px; max-width: 62ch; }
.hs-copy { justify-content: flex-end; padding-bottom: 28px; gap: 0; }
.hs-card { display: flex; align-items: center; gap: 28px; padding: 14px 16px 14px 20px; border-radius: 12px; background: rgba(20, 34, 76, .55); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(10px); }
.hs-who { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; }
.hs-who .hs-tag { grid-row: span 2; align-self: center; padding: 5px 10px; font-size: 11px; backdrop-filter: none; }
.hs-slide .hs-copy h2 { font-size: 20px; line-height: 1.2; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-meta { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-card .hs-price { flex: 0 0 auto; font-size: 22px; }
.hs-card .hs-price small { font-size: 11px; }
.hs-card .btn.light { flex: 0 0 auto; }
.hs-card .hs-nav { flex: 0 0 auto; margin: 0; gap: 8px; }
.hero-slider .hs-card .hs-arrow { width: 40px; height: 40px; }
@media (max-width: 980px) {
  .hero-slider { display: flex; flex-direction: column; height: auto; min-height: 0; }
  .hs-search-wrap { order: -1; position: relative; padding-block: 28px 20px; pointer-events: auto; }
  .hs-intro { margin-bottom: 18px; }
  .hs-intro h1 { font-size: 28px; margin-bottom: 8px; } .hs-intro p { font-size: 15px; }
  .hs-track { height: 46vh; min-height: 320px; }
  .hs-slide::after { background: linear-gradient(0deg, rgba(20, 34, 76, .75) 0%, rgba(20, 34, 76, 0) 60%); }
  .hs-copy { padding-bottom: 16px; }
  .hs-card { flex-wrap: wrap; gap: 12px 16px; padding: 12px 14px; }
  /* Name and arrows on the first row, price and "View project" on the second */
  .hs-who { order: 1; flex: 1 1 calc(100% - 110px); grid-template-columns: 1fr; }
  .hs-who .hs-tag { grid-row: auto; justify-self: start; margin-bottom: 6px; }
  .hs-card .hs-nav { order: 2; align-self: flex-end; }
  .hero-slider .hs-card .hs-arrow { display: inline-grid; width: 38px; height: 38px; }
  .hs-card .hs-price { order: 3; font-size: 18px; margin-right: auto; }
  .hs-card .btn.light { order: 4; }
}

/* Unit type cards: ask about that type on WhatsApp */
.type-card .type-ask { margin: auto 0 0; padding-top: 12px; display: flex; }
.type-card .type-ask .btn { width: 100%; padding: 10px 12px; font-size: 13px; gap: 8px; }
.type-card .type-ask .btn img { width: 16px; height: 16px; }
/* Phones: "more" on the pinned bar opens the rest of the booking actions */
.mc-sheet { display: none; }
@media (max-width: 980px) {
  .mobile-cta { grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 48px; }
  .mobile-cta .mc-more { display: inline-grid; place-items: center; width: 48px; padding: 0; color: var(--ink); }
  .mc-sheet:not([hidden]) { display: flex; flex-direction: column; position: fixed; z-index: 41; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); background: #fff; border: 1px solid var(--slate-3); border-radius: 12px; box-shadow: 0 12px 32px rgba(20, 34, 76, .18); overflow: hidden; }
  .mc-sheet a { display: flex; align-items: center; gap: 12px; padding: 15px 16px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
  .mc-sheet a + a { border-top: 1px solid var(--slate-3); }
  .mc-sheet a img { width: 18px; height: 18px; }
}
