/* ==========================================================================
   RP DUBAI — DESIGN SYSTEM (FAA/demo12-matched)
   Serif editorial type, sharp corners (no border-radius anywhere), thin
   hairline dividers, alternating dark/light full-width bands, text-link
   "DISCOVER"-style CTAs instead of filled buttons.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Lora:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  /* Colors — lifted from the reference screenshots */
  --ink-black: #1c1b1a;      /* near-black dark sections / navbar / footer-deep */
  --ink-charcoal: #2b2a28;   /* navbar / slightly-lighter dark panels */
  --ink-footer: #3d3c3a;     /* footer band (lighter charcoal) */
  --bg-light: #f0efec;       /* warm off-white section background */
  --bg-white: #ffffff;
  --text-onlight: #201f1d;
  --text-onlight-muted: #625f5a;
  --text-ondark: #f5f4f2;
  --text-ondark-muted: #b7b4ae;
  --accent-blue: var(--ink-black);    /* monochrome accent for LIGHT backgrounds */
  --accent-blue-hover: var(--text-onlight-muted);
  --accent-mono-dark: #ffffff;        /* monochrome accent for DARK backgrounds */
  --accent-mono-dark-muted: var(--text-ondark-muted);
  --border-light: #dcd9d3;
  --border-dark: rgba(255, 255, 255, 0.14);

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-body: "Lora", "Georgia", serif;

  --container: 1320px;
  --navbar-h: 70px; /* JS overwrites this with the real measured height */
}

* { box-sizing: border-box; }

html { scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg-white);
  color: var(--text-onlight);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

a { text-decoration: none; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 40px;
}

/* No rounded corners anywhere in this system */
* { border-radius: 0 !important; }

/* ---- Eyebrow / section heading pattern ---- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-onlight-muted);
  text-align: center;
  margin-bottom: 18px;
}

.section-heading {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 40px;
  line-height: 1.15;
  text-align: center;
  color: var(--text-onlight);
  margin: 0 0 20px;
}

.section-heading.on-dark { color: var(--text-ondark); }

.section-divider {
  width: 56px;
  height: 2px;
  background: var(--text-onlight);
  margin: 0 auto 28px;
}
.section-divider.on-dark { background: var(--text-ondark); }
.section-divider.left { margin-left: 0; }

.section-sub {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-onlight-muted);
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.section-sub.on-dark { color: var(--text-ondark-muted); }

/* ---- Text-link CTA ("DISCOVER" style) ---- */
.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-blue);
  transition: gap 0.3s ease, color 0.3s ease;
}
.link-cta:hover { gap: 16px; color: var(--accent-blue-hover); }
.link-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

.link-cta.on-dark { color: var(--text-ondark); }
.link-cta.on-dark:hover { color: var(--accent-mono-dark-muted); }

/* ---- Outlined button (secondary CTA, e.g. "Book a Free Call") ---- */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: var(--text-ondark);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}
.btn-outline:hover {
  background: var(--text-ondark);
  color: var(--ink-black);
  border-color: var(--text-ondark);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  background: var(--text-ondark);
  color: var(--ink-black);
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--text-ondark);
  transition: background-color 0.35s ease, color 0.35s ease;
}
.btn-solid:hover {
  background: transparent;
  color: var(--text-ondark);
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 17px 40px;
  background: rgba(43, 42, 40, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background-color 0.4s ease, padding 0.4s ease;
}
#navbar.is-scrolled {
  background: rgba(28, 27, 26, 0.94);
  padding: 14px 40px;
}

.nav-group {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-group.left { justify-self: start; }
.nav-group.right { justify-self: end; }

.nav-link-item {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-ondark);
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}
.nav-link-item:hover,
.nav-link-item.is-current {
  border-color: var(--accent-mono-dark);
  color: var(--text-ondark);
}

#nav-logo-box {
  justify-self: center;
  display: flex;
  align-items: center;
}
#nav-logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* Off-Plan mega menu — click-toggled (not hover-only) so the cursor can
   travel from the trigger down into the menu without it disappearing. */
#nav-offplan-wrap { position: relative; }
#offplan-menu {
  position: absolute;
  top: calc(100% + 20px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 220px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
  z-index: 210;
}
#offplan-menu.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
#offplan-menu-label {
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-onlight-muted); padding: 10px 20px 6px;
}
.offplan-menu-link {
  display: block; font-family: var(--font-body); font-size: 13px;
  color: var(--text-onlight); padding: 10px 20px;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.offplan-menu-link:hover { background: var(--bg-light); color: var(--accent-blue); }

#nav-mobile-toggle {
  display: none;
  background: none; border: none; cursor: pointer; color: var(--text-ondark);
  padding: 8px;
  justify-self: start;
}
#nav-mobile-toggle iconify-icon { font-size: 22px; }
.nmt-close { display: none; }
#nav-mobile-toggle.is-open .nmt-open { display: none; }
#nav-mobile-toggle.is-open .nmt-close { display: inline; }

#nav-mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 300px;
  max-width: 82vw;
  background: var(--ink-black);
  z-index: 220;
  padding: 100px 32px 32px;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
#nav-mobile-menu.open { transform: translateX(0); }
.nav-mobile-link {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text-ondark);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-dark);
}

#nav-scrim {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 215; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s;
}
#nav-scrim.open { opacity: 1; visibility: visible; }

@media (max-width: 980px) {
  .nav-group.left { display: none; }
  .nav-group.right { display: none; }
  #nav-mobile-toggle { display: block; }
  #navbar { grid-template-columns: auto 1fr auto; padding: 16px 20px; }
  #nav-logo-img { height: 40px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
#hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
#hero-media {
  position: absolute; inset: 0;
}
#hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
#hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,19,18,0.55) 0%, rgba(20,19,18,0.15) 30%, rgba(20,19,18,0.1) 60%, rgba(20,19,18,0.6) 100%);
}
#hero-content {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--navbar-h) + 40px) 24px 28px;
}
#hero-kicker {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 22px;
}
#hero-h1 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 68px;
  line-height: 1.08;
  color: #fff;
  margin: 0 0 24px;
  max-width: 900px;
}
#hero-h1 em { font-style: italic; font-weight: 400; color: #e8e4dc; }
#hero-sub {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  max-width: 560px;
  margin: 0 0 40px;
}
#hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

#hero-stats {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  gap: 64px;
  padding: 20px 24px 120px;
  flex-wrap: wrap;
}
.hstat-item { text-align: center; }
.hstat-num {
  font-family: var(--font-serif);
  font-size: 32px;
  color: #fff;
  font-weight: 500;
}
.hstat-label {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}

@media (max-width: 980px) {
  #hero-h1 { font-size: 46px; }
  #hero-stats { gap: 32px 40px; }
}
@media (max-width: 560px) {
  #hero-h1 { font-size: 34px; }
  #hero-sub { font-size: 15px; }
  #hero-stats { gap: 24px 28px; }
  .hstat-num { font-size: 24px; }
}

/* ==========================================================================
   SEARCH PANEL
   ========================================================================== */
#search-wrap {
  position: relative;
  z-index: 5;
  max-width: 980px;
  margin: 12px auto 0;
  padding: 0 24px;
}
#search-card {
  background: rgba(28, 27, 26, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  padding: 14px 18px;
}

/* ---- Row 1: transaction type + search input + Search button ---- */
#search-row1 {
  display: flex;
  align-items: stretch;
  gap: 10px;
}
.s-select-wrap {
  position: relative;
  flex-shrink: 0;
}
.s-select-wrap::after {
  content: "";
  position: absolute;
  right: 12px; top: 50%; transform: translateY(-50%);
  width: 7px; height: 7px;
  border-right: 1.5px solid rgba(255,255,255,0.55);
  border-bottom: 1.5px solid rgba(255,255,255,0.55);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.s-native-select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 0 30px 0 14px;
  height: 44px;
  cursor: pointer;
  min-width: 108px;
}
/* Fix: the popup option list is browser-native chrome, not something the
   select's own background/color reliably cover — explicitly set the
   option background/text so it's never white-on-white or white-on-white-
   by-inheritance. */
.s-native-select option {
  background: var(--ink-charcoal);
  color: #fff;
}
.s-native-select option:checked,
.s-native-select option:hover,
.s-native-select option:focus {
  background: var(--ink-black);
  color: #fff;
}
.s-native-select:focus { outline: none; border-color: rgba(255,255,255,0.4); }

#s-search-text {
  flex: 1;
  height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-family: var(--font-body);
  font-size: 13.5px;
  padding: 0 16px;
}
#s-search-text::placeholder { color: var(--text-ondark-muted); }
#s-search-text:focus { outline: none; border-color: rgba(255,255,255,0.4); }

#search-go {
  background: var(--accent-blue);
  color: #fff;
  border: none;
  padding: 0 30px;
  height: 44px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: nowrap;
  flex-shrink: 0;
}
#search-go:hover { background: var(--accent-blue-hover); }

/* ---- Row 2: compact filter selects — scroll horizontally on narrow
   screens instead of stacking or hiding behind a toggle. ---- */
#search-row2 {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
#search-row2 .s-native-select {
  min-width: 132px;
  height: 40px;
  flex-shrink: 0;
}

@media (max-width: 980px) {
  #search-wrap { margin-top: 10px; padding: 0 16px; }
  #search-card { padding: 12px 14px; }
  #search-row1 { flex-wrap: wrap; }
  .s-select-wrap, #s-search-text, #search-go { flex: 1 1 auto; }
  #s-search-text { flex-basis: 100%; order: 3; }
  #search-go { flex-basis: 100%; order: 4; justify-content: center; text-align: center; }
}
@media (max-width: 560px) {
  #search-row2 .s-native-select { min-width: 118px; font-size: 12.5px; }
}

/* ==========================================================================
   GENERIC SECTION BAND (alternating dark/light full-width)
   ========================================================================== */
.band {
  padding: 72px 0;
}
.band.dark { background: var(--ink-black); }
.band.light { background: var(--bg-light); }
.band.white { background: var(--bg-white); }

.band-header { margin-bottom: 40px; }

/* ---- Partners strip ---- */
#partners-strip {
  background: var(--bg-light);
  padding: 36px 0;
}
#partners-row {
  display: flex;
  justify-content: center;
  align-items: center;
}
.partner-item {
  flex: 1;
  text-align: center;
  padding: 0 32px;
  border-right: 1px solid var(--border-light);
  font-family: var(--font-serif);
  font-size: 20px;
  letter-spacing: 0.04em;
  color: var(--text-onlight);
}
.partner-item:last-child { border-right: none; }

@media (max-width: 768px) {
  #partners-row { flex-wrap: wrap; gap: 24px 0; }
  .partner-item { flex: 1 1 45%; border-right: none; padding: 8px 16px; font-size: 16px; }
}

/* ---- Discover cards (Featured Developments) ---- */
#discover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
  border-top: none;
}
.discover-card {
  border-right: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
}
.discover-card:nth-child(3n) { border-right: none; }
.discover-media {
  position: relative;
  height: 300px;
  overflow: hidden;
}
.discover-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.discover-card:hover .discover-media img { transform: scale(1.06); }
.discover-status {
  position: absolute; top: 16px; left: 16px;
  background: rgba(28,27,26,0.85);
  color: #fff;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 12px;
}
.discover-caption {
  background: var(--bg-white);
  padding: 24px 26px;
}
.discover-name {
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--text-onlight);
  margin-bottom: 4px;
}
.discover-meta {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-onlight-muted);
  margin-bottom: 16px;
}
.discover-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}
.discover-price {
  font-family: var(--font-serif);
  font-size: 15px;
  color: var(--text-onlight);
}

@media (max-width: 980px) {
  #discover-grid { grid-template-columns: 1fr; }
  .discover-card { border-right: none; }
}

/* ---- Communities (split, alternating image side) ---- */
.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.split-row.reverse { direction: rtl; }
.split-row.reverse > * { direction: ltr; }
.split-media {
  position: relative;
  overflow: hidden;
}
.split-media img {
  width: 100%; height: 100%; object-fit: cover;
  position: absolute; inset: 0;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-row:hover .split-media img { transform: scale(1.04); }
.split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
  background: var(--bg-white);
}
.split-eyebrow {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent-blue); margin-bottom: 14px;
}
.split-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text-onlight);
  margin: 0 0 16px;
}
.split-divider {
  width: 48px; height: 2px; background: var(--text-onlight); margin-bottom: 20px;
}
.split-body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-onlight-muted);
  margin-bottom: 24px;
}

@media (max-width: 900px) {
  .split-row { grid-template-columns: 1fr; min-height: 0; }
  .split-media { height: 320px; }
  .split-text { padding: 48px 32px; }
}

/* ---- Communities grid (image tiles, sharp corners) ---- */
#communities-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border-dark);
  padding-bottom: 72px;
  box-sizing: content-box;
}
.community-tile {
  position: relative;
  height: 420px;
  overflow: hidden;
  background: var(--ink-black);
  cursor: pointer;
}
.community-tile img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 1s cubic-bezier(0.16,1,0.3,1);
}
.community-tile:hover img { transform: scale(1.06); }
.community-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,14,13,0.88) 0%, rgba(15,14,13,0.1) 55%, transparent 75%);
}
.community-info {
  position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2;
}
.community-name {
  font-family: var(--font-serif); font-size: 20px; color: #fff; margin-bottom: 4px;
}
.community-count {
  font-family: var(--font-body); font-size: 11.5px; letter-spacing: 0.06em;
  color: rgba(255,255,255,0.65);
}

/* ---- Hover/tap reveal panel (demo1A-style progressive disclosure) ---- */
.community-panel {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  padding: 24px 22px 22px;
  background: linear-gradient(to top, rgba(10,9,8,0.96) 0%, rgba(10,9,8,0.88) 75%, transparent 100%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  pointer-events: none;
}
.community-panel-list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.community-panel-list li {
  font-family: var(--font-body); font-size: 12.5px; color: rgba(255,255,255,0.85);
  padding-left: 14px; position: relative;
}
.community-panel-list li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 4px; height: 4px; background: #fff; opacity: 0.6;
}

@media (hover: hover) and (pointer: fine) {
  .community-tile:hover .community-info { opacity: 0; }
  .community-tile:hover .community-panel { transform: translateY(0); opacity: 1; pointer-events: auto; }
}
.community-tile.is-open .community-info { opacity: 0; }
.community-tile.is-open .community-panel { transform: translateY(0); opacity: 1; pointer-events: auto; }
.community-info { transition: opacity 0.3s ease; }

@media (max-width: 1180px) {
  #communities-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 620px) {
  #communities-grid { grid-template-columns: 1fr; }
  .community-tile { height: 280px; }
}

/* ---- Developers strip ---- */
#developers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border-dark);
  border-top: none;
}
.developer-card {
  padding: 40px 32px;
  border-right: 1px solid var(--border-dark);
  border-top: 1px solid var(--border-dark);
  background: var(--ink-black);
  transition: background-color 0.4s ease, color 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.developer-card:nth-child(4n) { border-right: none; }
.developer-card:hover { background: var(--bg-white); }

.developer-name {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--text-ondark);
  transition: color 0.4s ease;
}
.developer-card:hover .developer-name { color: var(--text-onlight); }

.developer-count {
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-ondark-muted);
  transition: color 0.4s ease;
}
.developer-card:hover .developer-count { color: var(--text-onlight-muted); }

.developer-arrow {
  margin-top: auto;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.35);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, transform 0.4s ease;
}
.developer-card:hover .developer-arrow {
  background: var(--ink-black);
  color: #fff;
  border-color: var(--ink-black);
  transform: rotate(45deg);
}

@media (max-width: 980px) {
  #developers-grid { grid-template-columns: repeat(2, 1fr); }
  .developer-card:nth-child(4n) { border-right: 1px solid var(--border-dark); }
  .developer-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  #developers-grid { grid-template-columns: 1fr; }
  .developer-card:nth-child(2n) { border-right: none; }
  .developer-card { border-right: none !important; }
}
/* odd-card centering rule, mirrors the rest of the site's pattern */
#developers-grid > .developer-card:last-child:nth-child(4n+1):not(:first-child) {
  grid-column: 2 / 3;
}
@media (max-width: 980px) and (min-width: 561px) {
  #developers-grid > .developer-card:last-child:nth-child(4n+1):not(:first-child) {
    grid-column: auto;
  }
  #developers-grid > .developer-card:last-child:nth-child(2n+1):not(:first-child) {
    grid-column: 1 / span 2;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ---- Journey (Path to Ownership) ---- */
#journey-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border-top: 1px solid var(--border-dark);
}
.journey-step {
  padding: 40px 24px;
  border-right: 1px solid var(--border-dark);
  text-align: center;
}
.journey-step:last-child { border-right: none; }
.journey-num {
  font-family: var(--font-serif);
  font-size: 25px;
  color: var(--accent-mono-dark-muted);
  margin-bottom: 18px;
}
.journey-title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--text-ondark);
  margin-bottom: 10px;
}
.journey-desc {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-ondark-muted);
}

@media (max-width: 980px) {
  #journey-track { grid-template-columns: repeat(3, 1fr); }
  .journey-step:nth-child(3n) { border-right: none; }
}
@media (max-width: 620px) {
  #journey-track { grid-template-columns: 1fr; }
  .journey-step { border-right: none; border-bottom: 1px solid var(--border-dark); }
}

/* ---- Market Insights ---- */
#insights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.insight-card { cursor: pointer; }
.insight-media { height: 240px; overflow: hidden; position: relative; margin-bottom: 20px; }
.insight-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.insight-card:hover .insight-media img { transform: scale(1.05); }
.insight-tag {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent-blue); margin-bottom: 10px;
}
.insight-title {
  font-family: var(--font-serif); font-size: 20px; color: var(--text-onlight); margin-bottom: 12px; line-height: 1.3;
}
.insight-meta {
  font-family: var(--font-body); font-size: 12px; color: var(--text-onlight-muted);
}

@media (max-width: 900px) {
  #insights-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ---- Private Concierge CTA ---- */
#concierge {
  background: var(--ink-black);
  padding: 100px 0;
  text-align: center;
}
#concierge-eyebrow {
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-ondark-muted); margin-bottom: 20px;
}
#concierge-h2 {
  font-family: var(--font-serif); font-weight: 500; font-size: 44px; line-height: 1.15;
  color: #fff; margin: 0 0 22px;
}
#concierge-h2 em { font-style: italic; color: var(--accent-mono-dark-muted); font-weight: 400; }
#concierge-copy {
  font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: var(--text-ondark-muted);
  max-width: 620px; margin: 0 auto 40px;
}
#concierge-btns { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
#concierge-trust {
  display: flex; justify-content: center; gap: 64px; flex-wrap: wrap;
  padding-top: 40px; border-top: 1px solid var(--border-dark);
  max-width: 620px; margin: 0 auto;
}
.trust-item-num { font-family: var(--font-serif); font-size: 20px; color: #fff; }
.trust-item-label { font-family: var(--font-body); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-ondark-muted); margin-top: 4px; }

@media (max-width: 620px) {
  #concierge-h2 { font-size: 30px; }
  #concierge-btns { flex-direction: column; width: 100%; }
  #concierge-btns .btn-solid, #concierge-btns .btn-outline { justify-content: center; width: 100%; }
  #concierge-trust { gap: 28px 40px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
#footer {
  background: var(--ink-footer);
  padding: 64px 0 0;
}
#footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 48px;
}
#footer-brand-logo {
  display: flex; align-items: center; margin-bottom: 24px;
}
#footer-logo-img { height: 56px; width: auto; }
#footer-contact-item {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 13.5px; color: var(--text-ondark-muted);
  margin-bottom: 10px;
}
#footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.footer-soc {
  width: 36px; height: 36px; border: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: center; color: var(--text-ondark);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.footer-soc:hover { background: var(--accent-mono-dark); border-color: var(--accent-mono-dark); color: var(--ink-black); }

.footer-col-title {
  font-family: var(--font-serif); font-size: 15px; color: #fff; margin-bottom: 20px;
}
.footer-link {
  display: block; font-family: var(--font-body); font-size: 13.5px;
  color: var(--text-ondark-muted); padding: 6px 0;
  transition: color 0.25s ease;
}
.footer-link:hover { color: var(--accent-mono-dark); }

#footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 12.5px;
  color: var(--text-ondark-muted);
}
#footer-bottom a { color: var(--text-ondark-muted); }
#footer-bottom a:hover { color: var(--accent-mono-dark); }

@media (max-width: 980px) {
  #footer-top { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
}
@media (max-width: 560px) {
  #footer-top { grid-template-columns: 1fr; gap: 36px; }
  #footer-bottom { flex-direction: column; align-items: flex-start; text-align: left; }
  .container { padding: 0 20px; }
}

/* ---- Scroll reveal (kept functional, simplified) ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
[data-reveal].in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ==========================================================================
   INNER PAGE HERO (Buy / Rent / Sell / Off-Plan / Communities / Developers /
   Insights / About / Contact) — same visual family as the homepage hero:
   dark image band, serif heading, thin kicker text. Shorter than the
   homepage hero since these pages need to get to content faster.
   ========================================================================== */
.page-hero {
  position: relative;
  min-height: 46vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-top: var(--navbar-h);
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(20,19,18,0.5) 0%, rgba(20,19,18,0.2) 40%, rgba(20,19,18,0.75) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 40px 64px;
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
}
.page-hero-kicker {
  font-family: var(--font-body); font-size: 13px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.72); margin-bottom: 16px;
}
.page-hero-h1 {
  font-family: var(--font-serif); font-weight: 500; font-size: 48px; line-height: 1.1;
  color: #fff; margin: 0 0 14px; max-width: 640px;
}
.page-hero-sub {
  font-family: var(--font-body); font-size: 15.5px; line-height: 1.7;
  color: rgba(255,255,255,0.72); max-width: 520px;
}
@media (max-width: 768px) {
  .page-hero { min-height: 38vh; }
  .page-hero-content { padding: 40px 24px 44px; }
  .page-hero-h1 { font-size: 34px; }
}

/* ==========================================================================
   LISTING TOOLBAR — compact filter bar (dark, matches homepage search
   treatment) sitting directly under the inner hero, not a separate
   floating white box.
   ========================================================================== */
#listing-toolbar {
  position: relative;
  z-index: 50;
  background: var(--ink-charcoal);
  border-bottom: 1px solid var(--border-dark);
}
#listing-toolbar-row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  gap: 0;
}
.lt-field {
  flex: 1;
  padding: 10px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
  cursor: pointer;
  position: relative;
}
.lt-field:first-child { padding-left: 0; }
.lt-field-label {
  font-family: var(--font-body); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-ondark-muted); margin-bottom: 4px;
}
.lt-field-val { font-family: var(--font-body); font-size: 13.5px; color: #fff; }
.lt-field-val.placeholder { color: var(--text-ondark-muted); }
.lt-submit {
  flex-shrink: 0;
  margin-left: 24px;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  padding: 13px 30px;
  font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.lt-submit:hover { background: var(--accent-blue-hover); }

@media (max-width: 980px) {
  #listing-toolbar-row { flex-wrap: wrap; padding: 16px 24px; gap: 12px; }
  .lt-field { flex: 1 1 45%; border-right: none; padding: 6px 0; }
  .lt-submit { width: 100%; margin-left: 0; text-align: center; }
}

/* ---- Results meta row ---- */
#results-meta {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px 40px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
#results-count {
  font-family: var(--font-body); font-size: 13.5px; color: var(--text-onlight-muted);
}
#results-count strong { color: var(--text-onlight); }
#results-sort {
  font-family: var(--font-body); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--accent-blue); cursor: pointer;
}

/* ==========================================================================
   PROPERTY CARDS — same "discover card" family as the homepage
   Featured Developments cards, extended with property metadata row.
   ========================================================================== */
#property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
  border-top: none;
  max-width: var(--container);
  margin: 32px auto 0;
}
.property-card {
  border-right: 1px solid var(--border-light);
  border-top: 1px solid var(--border-light);
  cursor: pointer;
}
.property-card:nth-child(3n) { border-right: none; }
.property-media { position: relative; height: 260px; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.16,1,0.3,1); }
.property-card:hover .property-media img { transform: scale(1.06); }
.property-status {
  position: absolute; top: 16px; left: 16px;
  background: rgba(28,27,26,0.85); color: #fff;
  font-family: var(--font-body); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 12px;
}
.property-save {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  background: rgba(28,27,26,0.55); backdrop-filter: blur(4px);
  color: #fff; display: flex; align-items: center; justify-content: center;
}
.property-caption { background: var(--bg-white); padding: 22px 24px; }
.property-price { font-family: var(--font-serif); font-size: 21px; color: var(--text-onlight); margin-bottom: 4px; }
.property-title { font-family: var(--font-body); font-size: 14px; color: var(--text-onlight); margin-bottom: 4px; }
.property-loc { font-family: var(--font-body); font-size: 12.5px; color: var(--text-onlight-muted); margin-bottom: 16px; }
.property-meta-row {
  display: flex; gap: 18px; padding-top: 14px; border-top: 1px solid var(--border-light);
}
.property-meta-item { font-family: var(--font-body); font-size: 12px; color: var(--text-onlight-muted); }
.property-meta-item strong { color: var(--text-onlight); }

@media (max-width: 980px) {
  #property-grid { grid-template-columns: repeat(2, 1fr); margin-left: 24px; margin-right: 24px; max-width: none; }
  .property-card:nth-child(3n) { border-right: 1px solid var(--border-light); }
  .property-card:nth-child(2n) { border-right: none; }
  #results-meta { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 620px) {
  #property-grid { grid-template-columns: 1fr; }
  .property-card { border-right: none !important; }
}

/* ---- No-results state ---- */
#no-results {
  max-width: 560px;
  margin: 40px auto 0;
  padding: 56px 40px;
  text-align: center;
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  display: none;
}
#no-results-title { font-family: var(--font-serif); font-size: 22px; color: var(--text-onlight); margin: 14px 0 8px; }
#no-results-text { font-family: var(--font-body); font-size: 13.5px; color: var(--text-onlight-muted); margin-bottom: 20px; }

/* ---- Enquiry strip (used on Sell page) ---- */
.enquiry-panel {
  max-width: var(--container);
  margin: 0 auto;
  padding: 44px 40px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.enquiry-panel-title { font-family: var(--font-serif); font-size: 20px; color: var(--text-onlight); margin-bottom: 6px; }
.enquiry-panel-text { font-family: var(--font-body); font-size: 13.5px; color: var(--text-onlight-muted); max-width: 420px; }

/* ==========================================================================
   CONTACT PAGE
   ========================================================================== */
#contact-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 80px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}
.contact-form-card {
  border: 1px solid var(--border-light);
  padding: 44px;
}
.contact-form-title { font-family: var(--font-serif); font-size: 28px; color: var(--text-onlight); margin-bottom: 28px; }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.cf-field { display: flex; flex-direction: column; gap: 8px; }
.cf-field label { font-family: var(--font-body); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-onlight-muted); }
.cf-field input, .cf-field select, .cf-field textarea {
  border: none; border-bottom: 1px solid var(--border-light);
  font-family: var(--font-body); font-size: 14.5px; padding: 10px 0; outline: none;
  background: transparent;
}
.cf-field input:focus, .cf-field select:focus, .cf-field textarea:focus { border-bottom-color: var(--text-onlight); }
.cf-field textarea { resize: vertical; min-height: 100px; }

.contact-info-card { border: 1px solid var(--border-light); padding: 32px; margin-bottom: 20px; background: var(--bg-light); }
.contact-info-title { font-family: var(--font-serif); font-size: 17px; color: var(--text-onlight); margin-bottom: 18px; }
.ci-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border-light); align-items: flex-start; }
.ci-row:last-child { border-bottom: none; padding-bottom: 0; }
.ci-row:first-of-type { padding-top: 0; }
.ci-icon { width: 36px; height: 36px; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ci-label { font-family: var(--font-body); font-size: 11px; color: var(--text-onlight-muted); }
.ci-val { font-family: var(--font-body); font-size: 14px; color: var(--text-onlight); margin-top: 2px; }

@media (max-width: 900px) {
  #contact-main { grid-template-columns: 1fr; padding: 56px 24px; }
  .cf-row { grid-template-columns: 1fr; gap: 14px; }
  .contact-form-card { padding: 28px 22px; }
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.about-philosophy { max-width: 780px; margin: 0 auto 56px; text-align: center; }
.about-philosophy p { font-family: var(--font-body); font-size: 18px; line-height: 1.8; color: var(--text-onlight); margin-top: 16px; }
#about-stats { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; padding-top: 40px; border-top: 1px solid var(--border-light); max-width: 720px; margin: 0 auto; }
.about-stat-num { font-family: var(--font-serif); font-size: 26px; color: var(--text-onlight); }
.about-stat-label { font-family: var(--font-body); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-onlight-muted); margin-top: 4px; }

#why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--border-light); border-top: none; }
.why-card { padding: 36px 30px; border-right: 1px solid var(--border-light); border-top: 1px solid var(--border-light); }
.why-card:last-child { border-right: none; }
.why-title { font-family: var(--font-serif); font-size: 18px; color: var(--text-onlight); margin: 16px 0 10px; }
.why-desc { font-family: var(--font-body); font-size: 13.5px; line-height: 1.6; color: var(--text-onlight-muted); }

@media (max-width: 900px) {
  #why-grid { grid-template-columns: 1fr 1fr; }
  .why-card:nth-child(2n) { border-right: none; }
}
#why-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
#why-grid.cols-3 .why-card:last-child { border-right: none; }
@media (max-width: 900px) {
  #why-grid.cols-3 { grid-template-columns: 1fr 1fr; }
  #why-grid.cols-3 .why-card:last-child { border-right: 1px solid var(--border-light); }
  #why-grid.cols-3 .why-card:nth-child(2n) { border-right: none; }
}
@media (max-width: 560px) {
  #why-grid.cols-3 { grid-template-columns: 1fr; }
  #why-grid.cols-3 .why-card { border-right: none !important; }
}
@media (max-width: 560px) {
  #why-grid { grid-template-columns: 1fr; }
  #about-stats { gap: 28px 40px; }
}

#approach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--border-dark); }
.approach-card { padding: 40px 32px; border-right: 1px solid var(--border-dark); }
.approach-card:last-child { border-right: none; }
.approach-num { font-family: var(--font-serif); font-size: 13px; color: var(--accent-mono-dark-muted); margin-bottom: 16px; }
.approach-title { font-family: var(--font-serif); font-size: 19px; color: #fff; margin-bottom: 10px; }
.approach-desc { font-family: var(--font-body); font-size: 13.5px; line-height: 1.7; color: var(--text-ondark-muted); }

@media (max-width: 900px) {
  #approach-grid { grid-template-columns: 1fr; }
  .approach-card { border-right: none; border-bottom: 1px solid var(--border-dark); }
}

/* ==========================================================================
   DIRECTORY GRIDS (Communities / Developers full listing pages)
   ========================================================================== */
#directory-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border-dark); }
.directory-tile { position: relative; height: 380px; overflow: hidden; cursor: pointer; background: var(--ink-black); }
.directory-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(0.16,1,0.3,1); }
.directory-tile:hover img { transform: scale(1.06); }
.directory-veil { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,14,13,0.88) 0%, rgba(15,14,13,0.1) 55%, transparent 75%); }
.directory-info { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 2; }
.directory-name { font-family: var(--font-serif); font-size: 21px; color: #fff; margin-bottom: 4px; }
.directory-meta { font-family: var(--font-body); font-size: 11.5px; color: rgba(255,255,255,0.65); }

@media (max-width: 900px) { #directory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #directory-grid { grid-template-columns: 1fr; } .directory-tile { height: 300px; } }

/* Developer directory: text tiles, not photos (matches homepage developer-card family) */
#dev-directory-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border-dark); border-top: none; }
@media (max-width: 900px) { #dev-directory-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { #dev-directory-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   PROPERTY DETAIL MODAL (buy.html / rent.html) — same-page overlay,
   background blurred/dimmed (not just darkened), matching demo1A's
   in-page detail behavior. Reusable for both Buy and Rent.
   ========================================================================== */
#pdm-backdrop {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(20, 19, 18, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
#pdm-backdrop.is-open { opacity: 1; visibility: visible; }
body.pdm-open { overflow: hidden; }

#pdm-panel {
  background: var(--bg-white);
  width: 100%;
  max-width: 880px;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
#pdm-backdrop.is-open #pdm-panel { transform: translateY(0); }

#pdm-close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 5;
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}

#pdm-gallery-main { position: relative; height: 380px; background: var(--ink-black); }
#pdm-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.pdm-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; background: rgba(20,19,18,0.5); backdrop-filter: blur(4px);
  color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3;
}
#pdm-gallery-prev { left: 16px; } #pdm-gallery-next { right: 16px; }
#pdm-gallery-thumbs { display: flex; gap: 8px; padding: 12px 32px 0; }
.pdm-thumb { width: 64px; height: 48px; overflow: hidden; cursor: pointer; opacity: 0.5; border: 2px solid transparent; }
.pdm-thumb.on { opacity: 1; border-color: var(--ink-black); }
.pdm-thumb img { width: 100%; height: 100%; object-fit: cover; }

#pdm-body { padding: 32px; }
#pdm-status { display: inline-block; background: var(--ink-black); color: #fff; font-family: var(--font-body); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; margin-bottom: 16px; }
#pdm-title { font-family: var(--font-serif); font-size: 26px; color: var(--text-onlight); margin-bottom: 6px; }
#pdm-loc { font-family: var(--font-body); font-size: 13.5px; color: var(--text-onlight-muted); margin-bottom: 20px; }
#pdm-quickinfo { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; padding: 20px 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); margin-bottom: 24px; }
.pdm-qi-label { font-family: var(--font-body); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-onlight-muted); margin-bottom: 4px; }
.pdm-qi-val { font-family: var(--font-serif); font-size: 15px; color: var(--text-onlight); }
#pdm-desc { font-family: var(--font-body); font-size: 14.5px; line-height: 1.8; color: var(--text-onlight-muted); margin-bottom: 24px; }
#pdm-amenities-title { font-family: var(--font-serif); font-size: 16px; color: var(--text-onlight); margin-bottom: 14px; }
#pdm-amenities { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pdm-amenity { border: 1px solid var(--border-light); padding: 8px 14px; font-family: var(--font-body); font-size: 12.5px; color: var(--text-onlight); }

@media (max-width: 768px) {
  #pdm-backdrop { padding: 0; align-items: flex-end; }
  #pdm-panel { max-width: none; max-height: 92vh; }
  #pdm-gallery-main { height: 260px; }
  #pdm-quickinfo { grid-template-columns: repeat(2, 1fr); }
  #pdm-body { padding: 24px 20px; }
}

/* ==========================================================================
   OFF PLAN PAGE — developer/project discovery with demo1A-style hover
   preview + "See Details" same-page overlay (Level 1 hover, Level 2 modal).
   ========================================================================== */
#op-dev-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  max-width: var(--container);
  margin: 0 auto;
  overflow-x: auto;
}
.op-dev-tab {
  padding: 16px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-onlight-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.op-dev-tab.on { color: var(--text-onlight); border-color: var(--ink-black); }

#op-grid {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Level 1 — hover-preview card */
.op-card {
  position: relative;
  height: 420px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink-black);
}
.op-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.op-card:hover img { transform: scale(1.06); }
.op-card-base-veil {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,14,13,0.9) 0%, rgba(15,14,13,0.15) 55%, transparent 75%);
}
.op-card-base-info {
  position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 2;
  transition: opacity 0.3s ease;
}
.op-card-dev-tag {
  display: inline-block; font-family: var(--font-body); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 6px;
}
.op-card-name { font-family: var(--font-serif); font-size: 19px; color: #fff; margin-bottom: 3px; }
.op-card-community { font-family: var(--font-body); font-size: 12px; color: rgba(255,255,255,0.6); }

/* Level 1 — hover-reveal panel: brief info + See Details */
.op-card-panel {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: 22px;
  background: linear-gradient(to top, rgba(10,9,8,0.97) 0%, rgba(10,9,8,0.9) 80%, transparent 100%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1), opacity 0.4s ease;
  pointer-events: none;
}
.op-card-panel-name { font-family: var(--font-serif); font-size: 18px; color: #fff; margin-bottom: 8px; }
.op-card-panel-row { display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.op-card-panel-item { font-family: var(--font-body); font-size: 11.5px; color: rgba(255,255,255,0.75); }
.op-card-panel-item strong { color: #fff; display: block; font-size: 13px; margin-top: 2px; }
.op-see-details {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; border: 1px solid rgba(255,255,255,0.5); padding: 9px 16px;
  transition: background-color 0.3s ease, color 0.3s ease;
}
.op-see-details:hover { background: #fff; color: var(--ink-black); }

@media (hover: hover) and (pointer: fine) {
  .op-card:hover .op-card-base-info { opacity: 0; }
  .op-card:hover .op-card-panel { transform: translateY(0); opacity: 1; pointer-events: auto; }
}
.op-card.is-open .op-card-base-info { opacity: 0; }
.op-card.is-open .op-card-panel { transform: translateY(0); opacity: 1; pointer-events: auto; }

@media (max-width: 980px) {
  #op-grid { grid-template-columns: repeat(2, 1fr); padding: 0 24px; }
}
@media (max-width: 620px) {
  #op-grid { grid-template-columns: 1fr; }
  .op-card { height: 360px; }
}

/* ==========================================================================
   MARKET INSIGHTS PAGE — reuses .insight-card/.insight-media/.insight-tag
   from the homepage verbatim; adds category tabs + an inline expand for
   full article content (no separate page needed per article).
   ========================================================================== */
#ins-cat-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border-light);
  max-width: var(--container);
  margin: 0 auto;
  overflow-x: auto;
}
.ins-cat-tab {
  padding: 16px 20px;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-onlight-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.ins-cat-tab.on { color: var(--text-onlight); border-color: var(--ink-black); }

#ins-grid {
  max-width: var(--container);
  margin: 40px auto 0;
  padding: 0 40px 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.ins-full {
  display: none;
  padding: 28px 0 4px;
  border-top: 1px solid var(--border-light);
  margin-top: 20px;
}
.ins-full.open { display: block; }
.ins-full p { font-family: var(--font-body); font-size: 14.5px; line-height: 1.85; color: var(--text-onlight-muted); margin-bottom: 16px; }
.ins-read-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-body); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-blue); margin-top: 14px; cursor: pointer; background: none; border: none; padding: 0;
}

@media (max-width: 980px) {
  #ins-grid { grid-template-columns: 1fr; padding: 0 24px 40px; }
}

/* ---- Simple legal/info page (Privacy, Terms, Cookies, RERA) ---- */
.legal-body { max-width: 760px; margin: 0 auto; padding: 72px 40px 100px; }
.legal-body h2 { font-family: var(--font-serif); font-size: 22px; color: var(--text-onlight); margin: 36px 0 12px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-family: var(--font-body); font-size: 14.5px; line-height: 1.85; color: var(--text-onlight-muted); }
.legal-body ul { padding-left: 20px; margin-bottom: 16px; }
.legal-updated { font-family: var(--font-body); font-size: 12.5px; color: var(--text-onlight-muted); margin-bottom: 32px; }

/* ---- Compact legal summary cards — reuses #why-grid/.why-card verbatim
   (same component as the About Us "What Sets Us Apart" section). The
   full legal wording stays intact underneath, inside a native <details>
   toggle, so nothing required is removed — just de-emphasised. ---- */
.legal-summary-wrap { padding: 72px 40px 0; }
.legal-summary-wrap .band-header { margin-bottom: 40px; }
.legal-full-details { max-width: 760px; margin: 56px auto 100px; padding: 0 40px; }
.legal-full-summary {
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  padding: 16px 0;
  border-top: 1px solid var(--border-light);
  list-style: none;
}
.legal-full-summary::-webkit-details-marker { display: none; }
.legal-full-summary::before { content: "+ "; }
.legal-full-details[open] .legal-full-summary::before { content: "− "; }
.legal-full-details .legal-body { padding: 24px 0 0; margin: 0; max-width: none; }

@media (max-width: 900px) {
  .legal-summary-wrap { padding: 56px 24px 0; }
  .legal-full-details { padding: 0 24px; }
}
