/* EstateXO.in production stylesheet.
   Structure: design tokens, base layout, reusable components, page sections,
   responsive rules, and accessibility/performance states. */

/* Theme tokens:
   Change these variables to customize colors across the whole website.
   Dark mode below reuses the same HTML and component styles. */
:root {
  --ink: #07152f;
  --muted: #5c6678;
  --paper: #f7f9ff;
  --surface: #ffffff;
  --line: #dfe4f2;
  --brand: #07152f;
  --brand-2: #f42078;
  --brand-3: #f5f1ff;
  --accent: #7c1cc8;
  --danger: #c92a59;
  --shadow: 0 18px 50px rgba(7, 21, 47, 0.14);
  --radius: 8px;
  --container: min(1180px, calc(100vw - 32px));
  --header-bg: rgba(7, 21, 47, 0.92);
  --footer-bg: #07152f;
  --main-footer-bg: url("../images/main-footer-generated-bg.webp");
  --hero-soft: linear-gradient(120deg, #f7f9ff 0%, #fff3f8 52%, #f5f1ff 100%);
  --input-bg: #ffffff;
}

html[data-theme="dark"] {
  --ink: #f8f8f8;
  --muted: #bcc0c8;
  --paper: #061126;
  --surface: #0d1b36;
  --line: #263653;
  --brand: #f8f8f8;
  --brand-2: #f42078;
  --brand-3: #17102f;
  --accent: #8e35df;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --header-bg: rgba(6, 17, 38, 0.94);
  --footer-bg: #061126;
  --hero-soft: linear-gradient(120deg, #07152f, #27104f);
  --input-bg: #101c34;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { width: var(--container); margin-inline: auto; }
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  background: #07152f;
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
  z-index: 1000;
}
.skip-link:focus { top: 16px; }

/* Header and navigation component.
  To change the menu logo, replace assets/images/logo.png. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(244, 32, 120, 0.24);
}
.nav-shell {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
  background: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 7px 10px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.brand-logo {
  width: auto;
  height: 44px;
  max-width: 240px;
  object-fit: contain;
  display: block;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}
.brand strong { display: block; letter-spacing: 0; }
.brand small { display: block; color: var(--muted); font-size: 0.78rem; }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.primary-nav a,
.mega-trigger > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  font-weight: 750;
}

/* Footer brand logo sizing */
.footer-brand img { width: auto; height: 56px; max-width: 260px; object-fit: contain; display: inline-block; background: #fff; border: 1px solid rgba(255,255,255,0.16); border-radius: 8px; padding: 8px 10px; }
.primary-nav a:hover,
.mega-trigger > button:hover { color: var(--brand-2); }
.nav-cta {
  background: #f42078 !important;
  color: #fff !important;
  border-radius: var(--radius);
  border: 1px solid #f42078 !important;
  box-shadow: 0 10px 24px rgba(244, 32, 120, 0.28);
  font-weight: 850;
}
.nav-cta:hover {
  background: #f41c74 !important;
  color: #001028 !important;
  box-shadow: 0 14px 30px rgba(124, 28, 200, 0.32);
}
.mega-trigger { position: relative; }
.mega-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(520px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.2s ease;
}
.mega-trigger:hover .mega-menu,
.mega-trigger:focus-within .mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-menu a {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 104px;
  padding: 16px;
  background: #f7f4ff;
  border: 1px solid rgba(216, 216, 224, 0.9);
  border-radius: 6px;
  color: #0c1830;
  white-space: normal;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.mega-menu a:hover,
.mega-menu a:focus-visible {
  background: #ffffff;
  border-color: rgba(244, 32, 120, 0.28);
  color: #0c1830;
  transform: translateY(-1px);
}
.mega-menu strong {
  display: block;
  color: #0c1830;
  font-weight: 900;
  line-height: 1.28;
}
.mega-menu span {
  display: block;
  margin-top: 8px;
  color: #4f5870;
  font-size: 0.9rem;
  font-weight: 750;
  line-height: 1.5;
}
.nav-toggle { display: none; }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  gap: 18px;
  align-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 32, 120, 0.12), transparent 30%),
    linear-gradient(135deg, #07152f 0%, #111f3e 54%, #f7f9ff 54%, #ffffff 100%);
  color: #ffffff;
  animation: loader-fade 0.48s ease 1.35s forwards;
}
.site-loader p {
  margin: 0;
  color: #ffffff;
  font-weight: 850;
  letter-spacing: 0;
}
.loader-scene {
  position: relative;
  width: min(280px, 72vw);
  height: 150px;
}
.loader-skyline {
  position: absolute;
  left: 22px;
  right: 16px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.loader-building {
  width: 42px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 8px 8px 3px 3px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px) 0 0 / 14px 16px,
    linear-gradient(180deg, #ffffff 0%, #edf2ff 100%);
  box-shadow: 0 16px 28px rgba(0,0,0,0.24);
  animation: building-rise 1.05s ease-in-out infinite alternate;
}
.loader-building.b1 { height: 64px; animation-delay: 0s; }
.loader-building.b2 { height: 92px; animation-delay: 0.1s; }
.loader-building.b3 { height: 76px; animation-delay: 0.2s; }
.loader-building.b4 { height: 108px; animation-delay: 0.3s; }
.loader-crane {
  position: absolute;
  right: 8px;
  top: 10px;
  width: 142px;
  height: 120px;
  color: var(--brand-2);
}
.crane-mast,
.crane-arm,
.crane-cable,
.crane-hook {
  position: absolute;
  display: block;
  background: currentColor;
  box-shadow: 0 8px 18px rgba(244, 32, 120, 0.22);
}
.crane-mast { right: 42px; top: 18px; width: 6px; height: 104px; border-radius: 6px; }
.crane-arm {
  right: 8px;
  top: 18px;
  width: 118px;
  height: 6px;
  border-radius: 6px;
  transform-origin: right center;
  animation: crane-swing 1.2s ease-in-out infinite alternate;
}
.crane-cable {
  right: 108px;
  top: 23px;
  width: 3px;
  height: 44px;
  border-radius: 4px;
  animation: hook-drop 1.2s ease-in-out infinite alternate;
}
.crane-hook {
  right: 100px;
  top: 64px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: var(--accent);
  animation: hook-drop 1.2s ease-in-out infinite alternate;
}
@keyframes building-rise {
  from { transform: translateY(7px); }
  to { transform: translateY(0); }
}
@keyframes crane-swing {
  from { transform: rotate(-3deg); }
  to { transform: rotate(4deg); }
}
@keyframes hook-drop {
  from { transform: translateY(0); }
  to { transform: translateY(12px); }
}
@keyframes loader-fade {
  to { opacity: 0; visibility: hidden; pointer-events: none; }
}
.theme-toggle span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-3);
  color: var(--brand);
  font-weight: 900;
}
.jp-site-header .nav-shell {
  min-height: 82px;
}
.jp-nav-shell {
  align-items: center;
}
.jp-brand {
  display: inline-grid;
  gap: 2px;
}
.jp-brand strong {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--brand);
}
.jp-brand span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}
.jp-anchor-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}
.jp-anchor-nav a:not(.btn) {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--ink);
  font-weight: 800;
}
.jp-anchor-nav a:not(.btn):hover {
  color: var(--brand-2);
}

/* Buttons and small UI primitives. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-weight: 750;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(12, 24, 48, 0.16); }
.btn.primary { background: var(--brand-2); color: #fff; }
.btn.secondary { background: #07152f; color: #fff; }
.btn.outline { border-color: var(--line); background: var(--surface); color: var(--brand); }
.btn.ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn.ghost.dark { border-color: var(--brand); color: var(--brand); }
.btn.light { background: #fff; color: #07152f; }
.btn.whatsapp {
  gap: 8px;
  background: #25d366;
  color: #072b16;
  border-color: #1fbd59;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.26);
}
.btn.whatsapp:hover {
  background: #1fbd59;
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.34);
}
.btn.whatsapp i {
  width: 20px;
  min-width: 20px;
  font-size: 1.25rem;
  line-height: 1;
  text-align: center;
}
.btn.whatsapp.compact {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.92rem;
}
.eyebrow {
  display: inline-block;
  max-width: 100%;
  color: var(--brand-2);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}
.zero-highlight {
  display: inline-block;
  background: linear-gradient(135deg, #f42078 8%, #7c1cc8 92%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}
.section { padding: 76px 0; }
.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}
.section-head h2,
.page-hero h1,
.hero h1,
.article h1 {
  margin: 8px 0 10px;
  line-height: 1.05;
  letter-spacing: 0;
}
.section-head h2 { font-size: clamp(2rem, 3vw, 3.15rem); }
.section-head p,
.page-hero p,
.hero p { color: var(--muted); font-size: 1.08rem; }

/* Hero section. */
.hero {
  min-height: 86vh;
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(7, 21, 47, 0.95), rgba(39, 16, 79, 0.86), rgba(7, 21, 47, 0.72)),
    var(--footer-bg);
  background-size: cover;
  background-position: center;
}
.hero > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
  filter: saturate(0.85) contrast(1.08);
  mix-blend-mode: luminosity;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(244, 32, 120, 0.28), transparent 30%),
    radial-gradient(circle at 84% 24%, rgba(124, 28, 200, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(7, 21, 47, 0.74), rgba(39, 16, 79, 0.36), rgba(7, 21, 47, 0.12));
  z-index: -1;
}
.hero-content {
  color: #fff;
  max-width: 760px;
  padding: 82px 0 104px;
}
.hero h1 {
  font-size: clamp(2.85rem, 5.6vw, 5.35rem);
  max-width: 820px;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 16px 42px rgba(0,0,0,0.28);
}
.hero p {
  color: rgba(255, 255, 255, 0.88);
  max-width: 700px;
  font-size: clamp(1.02rem, 1.55vw, 1.18rem);
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}
.trust-strip span {
  padding: 9px 12px;
  background: rgba(255,255,255,0.13);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
}
.rera-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px;
  border: 1px solid #d8d8e0;
  border-radius: var(--radius);
  background: #f0f0f4;
  color: #0c1830;
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.35;
}
.rera-badge img {
  width: 86px;
  height: auto;
  flex: 0 0 86px;
  border-radius: 4px;
}
html[data-theme="dark"] .rera-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(248, 249, 255, 0.9);
}
html[data-theme="dark"] .rera-badge img {
  background: #ffffff;
  padding: 2px;
}
.detail-hero .rera-badge {
  max-width: 620px;
  margin-top: 18px;
}
.site-footer .rera-badge {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.86);
}
.site-footer .rera-badge img {
  background: #fff;
}
.page-hero {
  padding: 94px 0 74px;
  background: var(--hero-soft);
  border-bottom: 1px solid var(--line);
}
.page-hero.compact { padding: 72px 0; }
.page-hero h1 { font-size: clamp(2.55rem, 5vw, 5rem); max-width: 920px; }
.page-hero p { max-width: 760px; }
.luxury-hero {
  background: linear-gradient(120deg, #07152f, #2b0f5b);
  color: #fff;
}
.luxury-hero p { color: rgba(255,255,255,0.78); }

/* Breadcrumbs and listings. */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 18px 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.breadcrumb a { color: var(--brand); }
.property-grid,
.category-grid,
.feature-grid,
.blog-grid,
.team-grid,
.cert-grid,
.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.property-card,
.category-card,
.feature-card,
.blog-card,
.team-card,
.article-list article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(12, 24, 48, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover,
.category-card:hover,
.feature-card:hover,
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.property-card.is-hot {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.15fr);
  align-items: stretch;
  border: 2px solid #f42078;
  box-shadow: 0 22px 60px rgba(244, 32, 120, 0.18);
}
.property-card.is-hot .property-image img {
  height: 100%;
  min-height: 430px;
  aspect-ratio: auto;
}
.property-card.is-hot .property-body {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 28px;
}
.property-card.is-hot .property-body h3 {
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}
.hot-ribbon {
  position: absolute;
  z-index: 4;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #f42078;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(244, 32, 120, 0.28);
}
.property-image,
.category-card {
  position: relative;
}
.property-image img,
.category-card img,
.blog-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.property-image span {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(7, 21, 47, 0.94);
  color: #fff;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}
.property-body,
.blog-card div,
.category-card h3,
.category-card p { padding: 0 18px; }
.property-body { padding: 18px; }
.property-body h3,
.blog-card h3,
.category-card h3 { margin: 10px 0 8px; font-size: 1.25rem; line-height: 1.22; }
.property-body p,
.blog-card p,
.category-card p { color: var(--muted); }
.property-body dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 14px 0 0;
}
.property-body div { display: flex; justify-content: space-between; gap: 10px; }
.card-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 10px !important;
  margin-top: 18px;
}
.card-actions .btn {
  min-height: 42px;
  padding: 10px 12px;
  font-size: 0.92rem;
}
dt { color: var(--muted); }
dd { margin: 0; font-weight: 700; text-align: right; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f0f0f4;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 750;
}
.tag-row .tag:last-child {
  background: rgba(244, 32, 120, 0.12);
  color: #7c1cc8;
}
.tag.zero-tag,
.tag-row .tag.zero-tag:last-child {
  background: linear-gradient(135deg, rgba(244, 32, 120, 0.14), rgba(124, 28, 200, 0.14));
  color: #07152f;
  border: 1px solid rgba(244, 32, 120, 0.22);
  box-shadow: 0 8px 20px rgba(124, 28, 200, 0.08);
}
html[data-theme="dark"] .tag {
  background: rgba(255, 255, 255, 0.12);
  color: #f8f9ff;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
html[data-theme="dark"] .tag-row .tag:last-child {
  background: rgba(255, 255, 255, 0.12);
  color: #f8f9ff;
}
html[data-theme="dark"] .tag.zero-tag,
html[data-theme="dark"] .tag-row .tag.zero-tag:last-child {
  background: linear-gradient(135deg, rgba(244, 32, 120, 0.95), rgba(124, 28, 200, 0.9));
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 24px rgba(244, 32, 120, 0.22);
}
.category-card {
  min-height: 390px;
}
.category-card h3 { padding-top: 18px; }
.category-card p { padding-bottom: 20px; }
.category-card.luxury { background: #07152f; color: #fff; }
.category-card.luxury p { color: rgba(255,255,255,0.72); }

.error-hero {
  min-height: calc(100vh - 88px);
  display: grid;
  align-items: center;
  padding: 72px 0;
  background:
    radial-gradient(circle at 78% 20%, rgba(244, 32, 120, 0.14), transparent 28%),
    linear-gradient(135deg, #f7f9ff 0%, #fff 52%, #f5f1ff 100%);
}
.error-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.8fr);
  gap: 42px;
  align-items: center;
}
.error-grid h1 {
  max-width: 760px;
  margin: 10px 0 16px;
  color: var(--ink);
  font-size: clamp(2.7rem, 6vw, 5.6rem);
  line-height: 1;
  text-wrap: balance;
}
.error-grid p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.08rem;
}
.error-city {
  position: relative;
  min-height: 360px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 21, 47, 0.05) 0%, rgba(7, 21, 47, 0.12) 100%),
    #ffffff;
  border: 1px solid rgba(124, 28, 200, 0.14);
  box-shadow: var(--shadow);
}
.error-city .sun {
  position: absolute;
  top: 38px;
  right: 44px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--accent));
  box-shadow: 0 20px 60px rgba(244, 32, 120, 0.32);
}
.error-city .tower {
  position: absolute;
  bottom: 64px;
  width: 24%;
  border-radius: 10px 10px 0 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px) 0 0 / 18px 24px,
    linear-gradient(180deg, #07152f, #15264d);
  box-shadow: 0 18px 40px rgba(7, 21, 47, 0.22);
  animation: city-rise 1.4s ease-in-out infinite alternate;
}
.error-city .tower-a { left: 12%; height: 170px; }
.error-city .tower-b { left: 38%; height: 238px; animation-delay: 0.2s; }
.error-city .tower-c { right: 12%; height: 135px; animation-delay: 0.4s; }
.error-city .road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 72px;
  background: linear-gradient(90deg, #07152f, #1b2d58);
}
.error-city .road::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 34px;
  height: 4px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #fff 0 28px, transparent 28px 52px);
  animation: road-move 0.9s linear infinite;
}
@keyframes city-rise {
  from { transform: translateY(9px); }
  to { transform: translateY(0); }
}
@keyframes road-move {
  to { transform: translateX(52px); }
}

/* Filters, search and forms:
   Form behavior is in assets/js/app.js; connect that script to your CRM/API later. */
.filters {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 12px;
  margin-top: -28px;
  position: relative;
  z-index: 5;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 14px;
}
.filters input,
.filters select,
.lead-form input,
.lead-form select,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 12px;
  background: var(--input-bg);
  color: var(--ink);
}
.lead-form {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.form-note { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* Content sections. */
.why-section,
.values {
  padding: 76px 0;
  background: var(--brand-3);
}
.feature-card { padding: 24px; }
.feature-card span { color: var(--brand-2); font-weight: 900; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stats div {
  background: linear-gradient(135deg, #07152f 0%, #13254a 100%);
  color: #fff;
  border: 1px solid rgba(244, 32, 120, 0.18);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 16px 34px rgba(7, 21, 47, 0.18);
}
.stats strong { display: block; color: #fff; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; }
.stats span { color: rgba(255,255,255,0.82); }
.testimonial-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
blockquote {
  margin: 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
blockquote p { font-size: 1.1rem; }
cite { color: var(--brand-2); font-style: normal; font-weight: 800; }
.split,
.contact-grid,
.detail-grid,
.blog-layout,
.article-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 34px;
  align-items: start;
}
.info-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(12, 24, 48, 0.07);
}
.team-card { padding: 22px; }
.avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #07152f;
  color: #fff;
  font-weight: 900;
}
.timeline {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.timeline .section-head { grid-column: 1 / -1; }
.timeline article,
.cert-grid div,
.floor-grid div,
.video-box {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
}
.cert-grid { grid-template-columns: repeat(5, 1fr); }
.certificate-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 260px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(12, 24, 48, 0.06);
}
.certificate-card > span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--brand-3);
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 850;
}
.certificate-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.2;
}
.certificate-card p {
  margin: 0;
  color: var(--muted);
}
.certificate-card strong {
  color: var(--brand-2);
}
.certificate-card .btn {
  align-self: end;
  width: fit-content;
  margin-top: auto;
}

/* Detail, blog, FAQ and legal pages. */
.detail-hero {
  padding: 48px 0;
  background: var(--brand-3);
}
.jp-hero {
  padding: 54px 0 64px;
  background: linear-gradient(120deg, #07152f 0%, #2b0f5b 50%, #fff3f8 50%, #fff3f8 100%);
  color: #fff;
}
.jp-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: 34px;
  align-items: center;
}
.jp-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 0.95;
}
.jp-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.08rem;
}
.jp-hero .tag {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.jp-quick-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 24px;
}
.jp-quick-facts span {
  display: grid;
  gap: 2px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}
.jp-quick-facts strong {
  color: #fff;
  font-size: 1rem;
}
.jp-hero-media {
  margin: 0;
  color: var(--ink);
}
.jp-hero-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 26px 70px rgba(12, 24, 48, 0.24);
}
.jp-hero-media figcaption {
  margin-top: 10px;
  color: #5c6678;
  font-weight: 750;
}
.detail-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.detail-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.detail-main h2,
.article-body h2 { margin-top: 34px; }
.project-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0 8px;
}
.project-facts div,
.detail-card-grid article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.project-facts span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 6px;
}
.project-facts strong {
  display: block;
  line-height: 1.25;
}
.detail-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.detail-card-grid h3 {
  margin-top: 0;
}
.detail-card-grid p {
  color: var(--muted);
  margin-bottom: 0;
}
.jp-floor-stack {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr;
  gap: 16px;
}
.jp-floor-stack article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(12, 24, 48, 0.06);
}
.jp-floor-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 66px;
  min-height: 42px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #07152f;
  color: #fff;
  font-weight: 900;
}
.jp-floor-stack h3 {
  margin: 0 0 8px;
}
.jp-floor-stack p {
  margin: 0;
  color: var(--muted);
}
.jp-main-bridge {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 28px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(244, 32, 120, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--surface), #fff3f8 52%, #f5f1ff);
  box-shadow: 0 18px 46px rgba(12, 24, 48, 0.08);
}
html[data-theme="dark"] .jp-main-bridge {
  background: linear-gradient(135deg, #0d1b36 0%, #151035 58%, #1d0d2f 100%);
  border-color: rgba(244, 32, 120, 0.28);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}
html[data-theme="dark"] .jp-main-bridge h2 {
  color: #ffffff;
}
html[data-theme="dark"] .jp-main-bridge p {
  color: rgba(248, 249, 255, 0.82);
}
.jp-main-bridge h2 {
  margin: 8px 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.05;
}
.jp-main-bridge p {
  max-width: 680px;
  color: var(--muted);
}
.jp-main-bridge img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.jp-subdomain-links {
  padding-top: 18px;
}
.jp-footer-grid {
  grid-template-columns: 1.2fr 1fr 1fr;
}
.jp-footer .footer-brand {
  margin: 8px 0 10px;
}
.check-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 0;
  list-style: none;
}
.check-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.floor-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.media-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0 30px;
}
.media-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.media-gallery img:first-child {
  grid-column: span 2;
  grid-row: span 2;
  height: 100%;
}
.property-video {
  width: 100%;
  max-height: 680px;
  margin: 10px 0 18px;
  border-radius: var(--radius);
  background: #050909;
  box-shadow: var(--shadow);
}
.document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.map {
  width: 100%;
  min-height: 340px;
  border: 0;
  border-radius: var(--radius);
  margin-top: 18px;
}
.sticky-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 14px;
}
.blog-card span,
.article-head .eyebrow { color: var(--brand-2); font-weight: 800; }
.blog-layout { grid-template-columns: minmax(0, 1fr) 300px; }
.sidebar {
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px;
  border-radius: var(--radius);
}
.sidebar h2 { margin: 14px 0 0; font-size: 1rem; }
.article {
  padding: 58px 0;
}
.article-head img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-top: 24px;
}
.article-layout { grid-template-columns: 260px minmax(0, 1fr); margin-top: 28px; }
.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 10px;
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.toc h2 { font-size: 1rem; margin: 0; }
.article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.author-box,
.share-box,
.comments {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 10px;
}
.share-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.accordion {
  display: grid;
  gap: 10px;
}
.accordion details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.accordion summary {
  cursor: pointer;
  font-weight: 800;
}
.article-list {
  display: grid;
  gap: 16px;
}
.article-list article { padding: 22px; }
.sitemap-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sitemap-list a {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

/* CTA, footer, cookie, floating actions. */
.cta-band {
  background: linear-gradient(120deg, #07152f, #2b0f5b);
  color: #fff;
  padding: 52px 0;
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-inner p { color: rgba(255,255,255,0.78); max-width: 680px; }
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 58px 0 22px;
  background:
    linear-gradient(180deg, rgba(7, 21, 47, 0.86), rgba(6, 17, 38, 0.96)),
    var(--main-footer-bg),
    var(--footer-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 32, 120, 0.1), transparent 24%, transparent 76%, rgba(124, 28, 200, 0.1)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.026) 0 1px, transparent 1px 120px);
}
.site-footer > .container {
  position: relative;
  z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 28px;
}
.site-footer p,
.footer-bottom { color: rgba(255,255,255,0.7); }
.site-footer section {
  display: grid;
  align-content: start;
  gap: 8px;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
  font-weight: 850;
}
.footer-brand img {
  width: auto;
  height: 56px;
  max-width: 260px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  padding: 8px 10px;
}
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-links a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  overflow: hidden;
}
.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
}
.social-links span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.social-facebook { background: #1877f2 !important; }
.social-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%) !important; }
.social-linkedin { background: #0a66c2 !important; }
.social-youtube { background: #ff0000 !important; }
.social-instagram svg {
  fill: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255,255,255,0.12);
  margin-top: 34px;
  padding-top: 18px;
  font-size: 0.92rem;
}
.scroll-top,
.whatsapp-float {
  position: fixed;
  right: 18px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  z-index: 90;
  box-shadow: var(--shadow);
}
.scroll-top {
  bottom: 84px;
  background: #f42078;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s ease;
}
.scroll-top.is-visible { opacity: 1; pointer-events: auto; }
.whatsapp-float {
  bottom: 22px;
  background: #25d366;
  font-weight: 900;
  color: #072b16;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  background: #1fbd59;
  color: #fff;
  box-shadow: 0 16px 32px rgba(37, 211, 102, 0.34);
}
.whatsapp-float i {
  font-size: 1.75rem;
  line-height: 1;
}
.cookie-consent {
  position: fixed;
  left: 18px;
  bottom: 18px;
  max-width: 390px;
  display: none;
  gap: 12px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
  z-index: 120;
}
.cookie-consent.is-visible { display: flex; }
.cookie-consent p { margin: 0; font-size: 0.9rem; overflow-wrap: anywhere; }
.cookie-consent button {
  border: 0;
  border-radius: 6px;
  background: #f42078;
  color: #fff;
  padding: 9px 12px;
  font-weight: 800;
}

.popup-lead {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(8, 27, 29, 0.62);
  z-index: 150;
}
.popup-lead.is-visible { display: flex; }
.popup-lead-panel {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}
.popup-lead-panel h2 {
  margin: 8px 0 10px;
  font-size: 1.8rem;
  line-height: 1.12;
}
.popup-lead-panel p { color: var(--muted); }
.popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.popup-lead-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.popup-lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 750;
}
.popup-lead-form input,
.popup-lead-form select,
.popup-lead-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--input-bg);
  color: var(--ink);
  padding: 10px 12px;
}
.popup-lead-form textarea {
  resize: vertical;
}
.popup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Reveal and loading animations. */
.reveal,
.property-card,
.feature-card,
.blog-card,
.category-card { animation: rise 0.55s ease both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 980px) {
  .nav-shell {
    position: relative;
    min-height: 78px;
  }
  .brand-logo {
    height: 36px;
    max-width: 190px;
  }
  .nav-toggle {
    display: inline-grid;
    position: fixed;
    right: 16px;
    top: 18px;
    z-index: 130;
    gap: 4px;
    place-items: center;
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 10px;
    cursor: pointer;
  }
  .nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
  }
  .primary-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 8px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 16px;
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    box-shadow: var(--shadow);
  }
  .primary-nav.is-open { display: grid; }
  .jp-site-header .nav-shell {
    min-height: 96px;
    align-items: flex-start;
    padding: 14px 0;
  }
  .jp-anchor-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
  }
  .jp-anchor-nav a:not(.btn),
  .jp-anchor-nav .btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 0.9rem;
  }
  .primary-nav a,
  .mega-trigger > button,
  .nav-cta,
  .theme-toggle {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
  }
  .primary-nav a,
  .mega-trigger > button {
    color: var(--ink);
  }
  .mega-menu {
    position: static;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }
  .filters,
  .property-grid,
  .category-grid,
  .feature-grid,
  .blog-grid,
  .team-grid,
  .certificate-grid,
  .footer-grid,
  .jp-footer-grid,
  .error-grid,
  .split,
  .contact-grid,
  .detail-grid,
  .blog-layout,
  .article-layout,
  .detail-layout,
  .jp-hero-grid,
  .jp-floor-stack,
  .jp-main-bridge,
  .testimonial-slider {
    grid-template-columns: 1fr;
  }
  .jp-hero {
    background: #123638;
  }
  .jp-quick-facts {
    grid-template-columns: 1fr;
  }
  .property-card.is-hot {
    grid-template-columns: 1fr;
  }
  .property-card.is-hot .property-image img {
    min-height: 280px;
  }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cert-grid,
  .certificate-grid,
  .project-facts,
  .media-gallery,
  .detail-card-grid,
  .sitemap-list { grid-template-columns: repeat(2, 1fr); }
  .toc,
  .sticky-aside { position: static; }
  .error-city { min-height: 300px; }
}

@media (max-width: 640px) {
  :root { --container: min(100vw - 24px, 1180px); }
  html,
  body { max-width: 100%; overflow-x: hidden; }
  .nav-shell { padding-right: 58px; }
  .brand { padding: 6px 8px; }
  .brand-logo { height: 32px; max-width: 172px; }
  .nav-toggle {
    display: inline-grid !important;
    width: 44px;
    height: 44px;
  }
  .nav-toggle span { display: block !important; }
  .hero { min-height: 78vh; }
  .hero-content {
    width: min(100%, 360px);
    max-width: 360px;
    padding: 70px 0 86px;
  }
  .hero .eyebrow {
    display: block;
    max-width: 34ch;
  }
  .hero h1 {
    font-size: clamp(2.45rem, 11vw, 3.45rem);
    line-height: 1.05;
    max-width: min(11ch, 100%);
  }
  .hero p {
    font-size: 1rem;
    max-width: 360px;
    overflow-wrap: break-word;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 300px);
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .section { padding: 54px 0; }
  .stats,
  .floor-grid,
  .check-list,
  .project-facts,
  .detail-card-grid,
  .media-gallery,
  .cert-grid,
  .sitemap-list { grid-template-columns: 1fr; }
  .media-gallery img:first-child {
    grid-column: auto;
    grid-row: auto;
  }
  .jp-hero h1 { font-size: 2.7rem; }
  .card-actions { grid-template-columns: 1fr; }
  .cta-inner,
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cookie-consent {
    right: 12px;
    left: 12px;
    width: auto;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
  }
  .cookie-consent p { width: 100%; }
  .popup-lead-panel { padding: 22px; }
  .popup-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Accessible form feedback and overlay behavior shared across enquiry flows. */
body.no-scroll { overflow: hidden; }

.input-error-border,
.lead-form .input-error-border,
.popup-lead-form .input-error-border {
  border-color: #c62828;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.13);
}

.form-error-msg {
  display: block;
  margin-top: 5px;
  color: #b42318;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.35;
}

:is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(11, 124, 116, 0.42);
  outline-offset: 3px;
}

button:disabled,
.btn:disabled {
  cursor: wait;
  opacity: 0.68;
}

/* 2026 full-site visual system: consistent project cards, menus and detail pages. */
:root {
  --radius: 14px;
  --container: min(1240px, calc(100vw - 40px));
  --shadow: 0 20px 55px rgba(7, 21, 47, 0.12);
}

.site-loader { display: none; }
[hidden] { display: none !important; }
.property-card,
.feature-card,
.blog-card,
.category-card { animation: none; }
.nav-shell { min-height: 78px; }
.brand { padding: 6px 9px; border-radius: 12px; }
.brand-logo { height: 38px; max-width: 210px; }
.site-header.is-scrolled { box-shadow: 0 12px 35px rgba(7, 21, 47, 0.18); }

.mega-menu {
  width: min(760px, calc(100vw - 40px));
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
}
.mega-menu a { min-height: 88px; padding: 14px; border-radius: 12px; }
.mega-menu span { margin-top: 5px; font-size: 0.82rem; line-height: 1.4; }
.mega-menu .mega-all-projects {
  grid-column: 1 / -1;
  min-height: 70px;
  background: linear-gradient(120deg, #07152f, #1a2c54);
  border-color: rgba(244, 32, 120, 0.4);
}
.mega-menu .mega-all-projects strong { color: #fff; }
.mega-menu .mega-all-projects span { color: rgba(255, 255, 255, 0.74); }

.section { padding-block: 76px; }
.section-head { max-width: 780px; margin-bottom: 28px; }
.section-head h2 { text-wrap: balance; }

.property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
[data-property-list] .property-card { order: 10; }
[data-property-list] .property-card[data-tags*="P51700024772"] { order: 1; }
[data-property-list] .property-card[data-tags*="P51700081118"] { order: 2; }
[data-property-list] .property-card[data-tags*="Medical"] { order: 3; }
.property-card,
.property-card.is-hot {
  position: relative;
  grid-column: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(7, 21, 47, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(7, 21, 47, 0.08);
}
.property-card.is-hot {
  border-color: rgba(244, 32, 120, 0.38);
  box-shadow: 0 16px 42px rgba(244, 32, 120, 0.12);
}
.property-image {
  display: block;
  height: 238px;
  overflow: hidden;
  background: #dfe5ee;
}
.property-image img,
.property-card.is-hot .property-image img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.property-card:hover .property-image img { transform: scale(1.025); }
.property-image > span { top: 14px; left: 14px; font-size: 0.72rem; letter-spacing: 0.04em; text-transform: uppercase; }
.property-image:has(img[data-image-kind="representative"])::after {
  content: "Representative image";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 21, 47, 0.8);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}
.property-card.is-hot .property-body,
.property-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-content: initial;
  gap: 0;
  padding: 20px;
}
.property-card.is-hot .property-body h3,
.property-body h3 { margin: 13px 0 8px; font-size: 1.2rem; line-height: 1.25; }
.property-body > p {
  display: -webkit-box;
  min-height: 4.65em;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  font-size: 0.94rem;
}
.property-body dl { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.property-body dl div { align-items: flex-start; }
.property-body dt,
.property-body dd { font-size: 0.86rem; }
.property-body .card-actions { margin-top: auto; padding-top: 18px; }
.property-card .tag-row { min-height: 59px; align-content: flex-start; }
.property-card .tag-row .tag:nth-child(n + 5) { display: none; }
.property-card .rera-badge { margin-top: 12px; padding: 10px; }
.property-card .rera-badge img { width: 64px; }
.property-card .rera-badge span { font-size: 0.74rem; line-height: 1.4; }
.hot-ribbon { top: 14px; right: 14px; min-width: 58px; min-height: 30px; padding: 5px 10px; font-size: 0.72rem; }

.category-grid,
.blog-grid { gap: 24px; }
.category-card { min-height: 0; border-radius: 18px; }
.category-card img { height: 260px; aspect-ratio: auto; object-fit: cover; }
.category-card h3 { margin-top: 0; padding-top: 19px; }
.blog-card { display: flex; flex-direction: column; border-radius: 18px; }
.blog-card > a { display: block; height: 220px; overflow: hidden; }
.blog-card img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.blog-card > div { padding: 18px 20px 22px; }

.detail-hero { padding: 54px 0; background: linear-gradient(120deg, #f7f9ff, #fff5f9); }
.detail-hero .detail-grid { position: relative; align-items: center; gap: 44px; }
.detail-hero .detail-grid > img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 410px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.detail-image-note {
  z-index: 2;
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  justify-self: end;
  margin: 0 14px 14px 0;
  padding: 6px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(7, 21, 47, 0.82);
  font-size: 0.7rem;
  font-weight: 750;
}
.detail-main { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.detail-main > h2:not(:first-child) { margin-top: 38px; }
.sticky-aside { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 14px 40px rgba(7, 21, 47, 0.08); }
.sticky-aside > .btn { width: 100%; margin-bottom: 9px; }
.sticky-aside .lead-form { margin-top: 16px; padding: 0; border: 0; box-shadow: none; }
.project-facts div { border-radius: 14px; }
.detail-card-grid article { border-radius: 14px; }

.container.section.split { grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr); gap: 42px; }
.container.section.split .lead-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 16px; }
.container.section.split .lead-form label:last-of-type,
.container.section.split .lead-form button,
.container.section.split .lead-form .form-note { grid-column: 1 / -1; }

.visual-projects-hero {
  padding: 86px 0 70px;
  color: #fff;
  background:
    linear-gradient(100deg, rgba(7, 21, 47, 0.96), rgba(7, 21, 47, 0.68)),
    url("../images/hero-estatexo-real-estate.webp") center / cover;
}
.visual-projects-hero h1 { max-width: 850px; color: #fff; font-size: clamp(2.8rem, 6vw, 5.3rem); line-height: 1.02; }
.visual-projects-hero p { max-width: 720px; color: rgba(255,255,255,0.8); font-size: 1.08rem; }
.projects-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.projects-summary span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(255,255,255,.08); font-weight: 750; }

.cookie-consent { max-width: 340px; padding: 11px 12px; border-radius: 12px; }
.cookie-consent p { font-size: 0.78rem; line-height: 1.45; }
.cookie-consent button { flex: 0 0 auto; }

@media (max-width: 1100px) {
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mega-menu { width: min(680px, calc(100vw - 32px)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  :root { --container: min(100% - 28px, 1240px); }
  .property-grid,
  .category-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .property-image { height: 220px; }
  .property-card .tag-row { min-height: 0; }
  .mega-menu .mega-all-projects { grid-column: auto; }
  .detail-hero .detail-grid > img { height: 280px; }
  .detail-hero .detail-grid > img { grid-column: 1; grid-row: 2; }
  .detail-image-note { grid-column: 1; grid-row: 2; margin: 0 12px 12px 0; }
  .detail-main { padding: 22px; }
  .visual-projects-hero { padding: 64px 0 54px; }
  .container.section.split,
  .container.section.split .lead-form { grid-template-columns: 1fr; }
  .container.section.split .lead-form label:last-of-type,
  .container.section.split .lead-form button,
  .container.section.split .lead-form .form-note { grid-column: auto; }
}

.cookie-consent .cookie-reject {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
html[data-theme="dark"] .cookie-consent .cookie-reject {
  color: #fff;
  border-color: rgba(255,255,255,0.24);
}

/* Shared responsive corrections: keep these after component and legacy rules. */
:root { --radius: 8px; --brand-2: #c51159; --paper: #f7f8fa; --brand-3: #f0f2f5; }
html { scroll-padding-top: 96px; }
body { overflow-wrap: break-word; }
.container { width: min(1240px, calc(100% - 40px)); }
:is(.split,.contact-grid,.detail-grid,.footer-grid,.filters) > * { min-width: 0; }
button, summary { cursor: pointer; }
input, select, textarea { min-width: 0; font-size: 16px; }
.btn { text-align: center; white-space: normal; }
.btn.primary, .nav-cta, .cookie-consent button:not(.cookie-reject), .scroll-top { background: #c51159 !important; border-color: #c51159 !important; color: #fff !important; }
.btn.primary:hover, .nav-cta:hover { background: #a50e49 !important; color: #fff !important; }
.brand, .property-card, .category-card, .blog-card, .mega-menu, .mega-menu a { border-radius: 8px; }
.property-card { border-color: var(--line); }
.property-image > span, .property-image::after { letter-spacing: 0 !important; }
.property-body > .tag-row { justify-content: flex-start; }
.property-body > .rera-badge { justify-content: flex-start; }
.property-body dl > div { display: grid; grid-template-columns: 70px minmax(0,1fr); }
.property-card .rera-badge img { flex-basis: 64px; }
.primary-nav [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.mega-menu, .mega-trigger:hover .mega-menu, .mega-trigger:focus-within .mega-menu {
  visibility: hidden; opacity: 0; pointer-events: none; transform: none;
}
.mega-trigger.is-expanded .mega-menu { visibility: visible; opacity: 1; pointer-events: auto; }
.mega-trigger > button::after { content: '+'; margin-left: 10px; }
.mega-trigger.is-expanded > button::after { content: '-'; }
.mega-menu { top: 100%; max-height: calc(100dvh - 100px); overflow-y: auto; }
.mega-menu a { background: var(--paper); color: var(--ink); border-color: var(--line); }
.mega-menu strong { color: var(--ink); }
.mega-menu span { color: var(--muted); }
.mega-menu a:hover { background: var(--surface); }
.section-head h2 { font-size: 2rem; line-height: 1.2; }
.page-hero h1, .article h1, .visual-projects-hero h1 { font-size: 3rem; line-height: 1.12; }
.hero { min-height: min(660px, 82svh); background: #15212b; }
.hero > img { opacity: 1; filter: none; mix-blend-mode: normal; }
.hero-overlay { background: linear-gradient(90deg, rgba(7,21,47,.86), rgba(7,21,47,.2)); }
.hero-content { width: min(760px,calc(100% - 40px)); max-width: 760px; padding: 54px 0; margin-left: max(20px,calc((100% - 1240px)/2)); margin-right: 20px; }
.hero h1 { font-size: 3.5rem; max-width: 740px; line-height: 1.12; }
.hero p { font-size: 1.05rem; }
.hero .eyebrow, .visual-projects-hero .eyebrow { color: #ffb9d3; }
.hero .zero-highlight, html[data-theme="dark"] .zero-highlight { background: none; color: #ffb9d3; }
.trust-strip { margin-top: 24px; gap: 8px; }
.trust-strip span { border-radius: 4px; padding: 6px 9px; font-size: .85rem; }
.filters { grid-template-columns: repeat(auto-fit,minmax(180px,1fr)); margin-top: 24px; box-shadow: none; }
.search-feedback { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.search-feedback p { margin: 0; color: var(--muted); }
.optional-details summary { min-height: 44px; padding-block: 10px; font-weight: 700; }
.optional-details label { margin-block: 12px; }
@media (max-width: 980px) { .contact-grid > .info-panel { order: 2; } }
.cookie-consent { width: min(440px,calc(100% - 32px)); max-width: 440px; display: none; grid-template-columns: 1fr 1fr; gap: 10px; padding: 16px; }
.cookie-consent.is-visible { display: grid; }
.cookie-consent p { grid-column: 1 / -1; font-size: .875rem; }
.cookie-consent button { min-height: 44px; }
body:has(.cookie-consent.is-visible) .whatsapp-float, body:has(.cookie-consent.is-visible) .scroll-top { visibility: hidden; }
.popup-lead-panel { min-width: 0; max-height: calc(100dvh - 32px); padding-top: 58px; }
.popup-close { width: 44px; height: 44px; }
.social-links a { width: 44px; height: 44px; }
.scroll-top:not(.is-visible) { visibility: hidden; }
html[data-theme="dark"] { --paper: #15171c; --surface: #202329; --input-bg: #181b20; --line: #41454e; --muted: #c0c5cd; --brand-3: #24262d; --brand-2: #ff91bb; --hero-soft: #202329; }
html[data-theme="dark"] .detail-hero { background: var(--surface); }
html[data-theme="dark"] .tag-row .tag:last-child { color: #f2c7ff; background: #412249; }
html[data-theme="dark"] .form-error-msg { color: #ffb4ab; }
html[data-theme="dark"] .mega-menu a:hover { color: var(--ink); }
@media (max-width: 1100px) {
  .nav-shell { position: relative; padding-right: 56px; }
  .nav-toggle { display: inline-grid; position: absolute; top: 17px; right: 0; width: 44px; height: 44px; align-content: center; gap: 5px; border: 1px solid #647080; border-radius: 8px; background: transparent; padding: 10px; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: #fff; }
  .primary-nav { position: absolute; inset: 100% 0 auto; display: none; grid-template-columns: 1fr; max-height: calc(100dvh - 78px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); padding: 12px; box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; }
  .primary-nav a, .mega-trigger > button, .theme-toggle { width: 100%; color: var(--ink); justify-content: flex-start; min-height: 44px; }
  .mega-menu, .mega-trigger:hover .mega-menu, .mega-trigger:focus-within .mega-menu { display: none; position: static; width: 100%; max-height: none; grid-template-columns: 1fr; padding: 6px 0; margin: 0; border: 0; box-shadow: none; }
  .mega-trigger.is-expanded .mega-menu { display: grid; }
  .mega-menu a, .mega-menu .mega-all-projects { min-height: 64px; grid-column: auto; }
  .footer-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 980px) {
  .detail-hero .detail-grid > img { grid-column: 1; grid-row: 2; }
  .detail-image-note { grid-column: 1; grid-row: 2; }
  .container.section.split { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .brand-logo { max-width: 184px; height: 32px; }
  .hero { min-height: 0; }
  .hero-content { max-width: 100%; width: calc(100% - 32px); margin-inline: 16px; padding: 36px 0; }
  .hero h1 { font-size: 2.125rem; max-width: 100%; line-height: 1.14; }
  .hero .eyebrow, .hero p { max-width: 100%; }
  .hero .eyebrow { font-size: .7rem; }
  .hero-actions { width: 100%; margin-top: 20px; }
  .hero p { margin-block: 16px; font-size: 1rem; }
  .trust-strip { margin-top: 18px; }
  .trust-strip span { font-size: .75rem; }
  .section, .why-section, .values { padding-block: 44px; }
  .section-head h2 { font-size: 1.625rem; }
  .page-hero h1, .article h1, .visual-projects-hero h1 { font-size: 2.125rem; }
  .page-hero, .page-hero.compact { padding: 40px 0; }
  .footer-grid, .filters { grid-template-columns: 1fr; }
  .cookie-consent { left: 16px; right: 16px; bottom: 12px; width: auto; }
  .popup-lead { padding: 12px; }
  .popup-lead-panel { padding: 56px 18px 20px; }
  .certificate-grid, .timeline { grid-template-columns: 1fr; }
}
