:root {
  --bg: #f6f7f2;
  --ink: #18212f;
  --muted: #607086;
  --panel: #ffffff;
  --line: #dce3ec;
  --bayut: #00856f;
  --bayut-dark: #006151;
  --zillow: #006aff;
  --coral: #d95040;
  --gold: #c88915;
  --navy: #121a2b;
  --soft-blue: #edf5ff;
  --soft-green: #e9f7f3;
  --shadow: 0 18px 42px rgba(24, 33, 47, 0.12);
  --shadow-soft: 0 10px 24px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

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

.site-header,
.landing-hero,
.posts-hero {
  background-image:
    linear-gradient(90deg, rgba(11, 24, 34, 0.88) 0%, rgba(11, 24, 34, 0.72) 50%, rgba(11, 24, 34, 0.36) 100%),
    url("assets/hero-poster.png");
  background-position: center;
  background-size: cover;
  color: #fff;
}

.nav {
  max-width: 1280px;
  margin: 0 auto;
  min-height: 76px;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
  font-size: 20px;
  white-space: nowrap;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #fff;
  color: var(--bayut-dark);
  font-size: 13px;
  font-weight: 950;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  padding: 9px 10px;
  border-radius: 8px;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.language-switcher {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.lang-pill,
.lang-more-trigger,
.lang-menu button {
  border: 0;
  min-width: 40px;
  min-height: 34px;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.lang-pill.active,
.lang-menu button.active {
  background: #fff;
  color: var(--navy);
}

.lang-more {
  position: relative;
}

.lang-more::after {
  content: "";
  position: absolute;
  left: -10px;
  right: -10px;
  top: 100%;
  height: 14px;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 6px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(18, 26, 43, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow);
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease 0.5s,
    transform 0.16s ease 0.5s,
    visibility 0s linear 0.5s;
}

.lang-more:hover .lang-menu,
.lang-more:focus-within .lang-menu,
.language-switcher:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.hero,
.landing-grid,
.posts-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 54px 24px 92px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.82fr);
  gap: 40px;
  align-items: center;
}

.hero-copy h1,
.landing-copy h1,
.posts-hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  max-width: 880px;
}

.hero-copy p,
.landing-copy p,
.posts-hero p,
.request-copy p,
.project-body p,
.listing-card p,
.developer-section p,
.map-card p,
.source-card p {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.62;
  margin: 0;
}

.project-body p,
.listing-card p,
.developer-section p,
.map-card p,
.source-card p,
.request-copy p {
  color: var(--muted);
}

.eyebrow {
  color: #77dec9;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: 950;
}

.search-console {
  margin-top: 28px;
  max-width: 760px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.search-tabs button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  min-height: 36px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 900;
}

.search-tabs button.active {
  border-color: var(--bayut);
  background: var(--soft-green);
  color: var(--bayut-dark);
}

.hero-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.hero-search-field {
  display: grid;
  gap: 6px;
}

.quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.quick-filters span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 8px;
  background: #f4f7fb;
  border: 1px solid var(--line);
  color: #344256;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.hero-actions,
.card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.button.primary {
  background: var(--bayut);
  color: #fff;
  border-color: var(--bayut);
}

.button.primary:hover {
  background: var(--bayut-dark);
}

.button.secondary {
  background: var(--soft-blue);
  color: #0048b0;
  border-color: #bfdaff;
}

.button.ghost {
  background: #fff;
  color: var(--ink);
}

.site-header .button.ghost,
.landing-hero .button.ghost,
.posts-hero .button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
}

.hero-video,
.landing-map,
.project-visual,
.map-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--navy);
  min-height: 420px;
  box-shadow: var(--shadow);
  position: relative;
}

.hero-video video,
.hero-video img,
.project-visual img,
.listing-image,
.gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero-video video {
  min-height: 420px;
}

.hero-video-overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  right: 16px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(18, 26, 43, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
}

.hero-video-overlay span {
  color: #77dec9;
  font-weight: 900;
}

.hero-video-overlay strong {
  font-size: 28px;
}

iframe {
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
  display: block;
}

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 24px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(160px, 0.72fr));
  gap: 12px;
  margin-top: -44px;
  position: relative;
  z-index: 4;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfd8e5;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--zillow);
  box-shadow: 0 0 0 3px rgba(0, 106, 255, 0.13);
}

.stats-strip,
.detail-strip,
.intelligence-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stats-strip div,
.detail-strip div,
.intelligence-strip div,
.project-card,
.listing-card,
.request-section,
.two-columns article,
.source-card,
.post-card,
.calculator-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
}

.stats-strip div,
.detail-strip div,
.intelligence-strip div {
  padding: 18px;
  display: grid;
  gap: 6px;
}

.stats-strip div:nth-child(1) {
  border-top: 5px solid var(--bayut);
}

.stats-strip div:nth-child(2) {
  border-top: 5px solid var(--zillow);
}

.stats-strip div:nth-child(3) {
  border-top: 5px solid var(--gold);
}

.stats-strip div:nth-child(4) {
  border-top: 5px solid var(--coral);
}

.stats-strip span,
.detail-strip span,
.intelligence-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.stats-strip strong,
.detail-strip strong,
.intelligence-strip strong {
  font-size: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 18px;
}

.section-head h2,
.request-copy h2,
.two-columns h2 {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.15;
}

.results-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.results-actions span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.search-results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.results-panel {
  min-width: 0;
}

.listing-grid {
  display: grid;
  gap: 14px;
}

.listing-card {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  overflow: hidden;
}

.listing-image {
  height: 100%;
  min-height: 248px;
  border-radius: 0;
}

.listing-body {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
}

.listing-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.listing-top strong {
  color: var(--bayut-dark);
  font-size: 21px;
}

.listing-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.listing-card p {
  margin: 0;
}

.verified-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tag,
.verified-badge {
  display: inline-flex;
  width: fit-content;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 950;
}

.tag {
  background: var(--soft-green);
  color: var(--bayut-dark);
}

.verified-badge {
  background: var(--soft-blue);
  color: #0048b0;
}

.grade-aplus,
.grade-a {
  background: #dff7ea;
  color: #087443;
}

.grade-b {
  background: #fff4d8;
  color: #9a6700;
}

.grade-c {
  background: #f3f4f6;
  color: #4b5563;
}

.deal-ribbon {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  background: linear-gradient(135deg, #ecfdf3, #eff8ff);
  border: 1px solid #b7e4ca;
  border-radius: 8px;
  padding: 10px 12px;
  color: #175cd3;
  font-size: 13px;
  font-weight: 900;
}

.deal-ribbon strong {
  color: #087443;
  white-space: nowrap;
}

.calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calculator-card {
  padding: 20px;
}

.calculator-card h3 {
  margin: 0 0 12px;
}

.cost-line {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  gap: 12px;
}

.cost-line.total {
  border-bottom: 0;
  font-size: 18px;
  font-weight: 950;
  color: var(--bayut-dark);
}

.intel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.intel-tile {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.intel-tile span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.intel-tile strong {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.mini-facts,
.listing-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini-facts span,
.listing-meta span {
  background: #f4f7fa;
  color: #405066;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.compact-list,
.listing-card ul,
.feature-list {
  margin: 0;
  padding-left: 18px;
  color: #344054;
  line-height: 1.65;
}

[dir="rtl"] .compact-list,
[dir="rtl"] .listing-card ul,
[dir="rtl"] .feature-list {
  padding-left: 0;
  padding-right: 18px;
}

.map-panel {
  position: sticky;
  top: 114px;
  min-height: 620px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.map-canvas {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: #dff1f7;
}

.leaflet-map {
  width: 100%;
  height: 520px;
  z-index: 0;
}

.leaflet-container {
  font: inherit;
}

.leaflet-control-attribution {
  font-size: 10px;
}

.leaflet-popup-content {
  margin: 10px 12px;
  color: var(--ink);
  font-weight: 800;
}

.real-map-pin {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--bayut);
  color: #fff;
  box-shadow: 0 8px 20px rgba(24, 33, 47, 0.26);
  font-size: 12px;
  font-weight: 950;
}

.map-fallback {
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 24px;
  background: linear-gradient(140deg, #dff1f7, #f7fbff);
  color: #405066;
  text-align: center;
  font-weight: 850;
}

.map-fallback a {
  color: var(--bayut-dark);
  font-weight: 950;
}

.map-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.map-chip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  color: #344256;
  min-height: 34px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.media-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.media-card {
  border-radius: 8px;
  overflow: hidden;
  min-height: 280px;
  position: relative;
  box-shadow: var(--shadow-soft);
  background: var(--navy);
}

.media-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.media-card:hover img {
  transform: scale(1.04);
}

.media-card div {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(18, 26, 43, 0.78);
  color: #fff;
}

.media-card span {
  color: #d9e7f3;
  font-size: 13px;
}

.project-grid,
.source-grid,
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.source-card {
  padding: 18px;
  display: grid;
  gap: 12px;
  align-content: start;
  border-top: 5px solid var(--zillow);
}

.source-card h3 {
  margin: 0;
  font-size: 21px;
}

.project-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px auto;
}

.project-visual {
  min-height: 180px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.project-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.project-body h3,
.map-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.18;
}

.map-card {
  min-height: 360px;
  display: grid;
  grid-template-rows: 1fr auto;
  background: #fff;
  border-color: var(--line);
}

.map-card div {
  padding: 16px;
}

.request-section,
.two-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1fr);
  gap: 22px;
  align-items: start;
}

.request-section {
  padding: 26px;
}

.lead-form {
  display: grid;
  gap: 12px;
}

.form-status {
  min-height: 22px;
  color: var(--bayut-dark);
  margin: 0;
  font-weight: 900;
}

.landing-nav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.landing-copy h1 {
  font-size: clamp(36px, 5vw, 58px);
}

.price-row {
  display: grid;
  gap: 6px;
  margin-top: 20px;
}

.price-row strong {
  font-size: 34px;
  color: #fff;
}

.price-row span {
  color: rgba(255, 255, 255, 0.78);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery img {
  min-height: 180px;
  border-radius: 8px;
}

.two-columns article {
  padding: 24px;
}

.source-list {
  display: grid;
  gap: 10px;
}

.source-list a {
  color: var(--bayut-dark);
  background: var(--soft-green);
  border: 1px solid #bde5dc;
  border-radius: 8px;
  padding: 11px 12px;
  text-decoration: none;
  font-weight: 900;
}

.developer-section article iframe {
  min-height: 340px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.posts-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.post-card {
  padding: 18px;
  display: grid;
  gap: 12px;
  border-top: 5px solid var(--coral);
}

.post-card:nth-child(3n + 1) {
  border-top-color: var(--bayut);
}

.post-card:nth-child(3n + 2) {
  border-top-color: var(--gold);
}

.post-card h3 {
  margin: 0;
  font-size: 18px;
}

.post-text {
  white-space: pre-wrap;
  color: #263246;
  line-height: 1.55;
  padding: 14px;
  border-radius: 8px;
  background: #f7f9fc;
  border: 1px solid var(--line);
  min-height: 170px;
}

.copy-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.copy-status {
  color: var(--bayut-dark);
  font-size: 13px;
  font-weight: 900;
  min-height: 20px;
}

.empty-state {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
}

@media (max-width: 1080px) {
  .project-grid,
  .source-grid,
  .posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero,
  .landing-grid,
  .posts-hero-inner,
  .filters,
  .stats-strip,
  .detail-strip,
  .intelligence-strip,
  .calculator-grid,
  .intel-grid,
  .search-results-layout,
  .project-grid,
  .source-grid,
  .posts-grid,
  .request-section,
  .two-columns {
    grid-template-columns: 1fr;
  }

  .map-panel {
    position: relative;
    top: auto;
    min-height: 0;
  }

  .media-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filters {
    margin-top: 0;
    position: relative;
  }
}

@media (max-width: 700px) {
  .listing-card {
    grid-template-columns: 1fr;
  }

  .listing-image {
    min-height: 220px;
  }

  .hero-search-row,
  .posts-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .nav,
  .section,
  .hero,
  .landing-grid,
  .posts-hero-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero,
  .landing-grid,
  .posts-hero-inner {
    padding-top: 36px;
    padding-bottom: 58px;
  }

  .hero-copy h1,
  .landing-copy h1,
  .posts-hero h1 {
    font-size: 36px;
  }

  .media-rail,
  .gallery {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    height: 430px;
  }
}

/* 2026-05 global investment upgrade */
.section-note {
  max-width: 760px;
  color: var(--muted, #687386);
  margin: 8px 0 0;
  line-height: 1.55;
}

.showcase-section,
.market-pulse-section,
.life-calculator-section {
  position: relative;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 22px;
}

.showcase-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(246,249,255,0.94));
  border: 1px solid rgba(20, 38, 72, 0.1);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(24, 41, 75, 0.12);
}

.showcase-image-wrap {
  position: relative;
  height: 220px;
  background: #111827;
}

.showcase-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rank-badge,
.score-badge {
  position: absolute;
  top: 16px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  color: #fff;
  backdrop-filter: blur(10px);
}

.rank-badge { left: 16px; background: rgba(15, 23, 42, 0.78); }
.score-badge { right: 16px; background: linear-gradient(135deg, #14b8a6, #2563eb); }

.showcase-body {
  padding: 22px;
}

.showcase-body h3 {
  margin: 14px 0 8px;
  font-size: 1.18rem;
}

.validation-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 700;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.metric-grid div,
.plan-summary div {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.045);
  padding: 12px;
}

.metric-grid span,
.plan-summary span {
  display: block;
  color: var(--muted, #687386);
  font-size: 0.76rem;
  margin-bottom: 4px;
}

.metric-grid strong,
.plan-summary strong {
  color: var(--ink, #111827);
  font-size: 0.95rem;
}

.recommendation {
  border-left: 4px solid #14b8a6;
  padding-left: 12px;
  color: #334155;
  line-height: 1.5;
}

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

.pulse-card {
  border: 1px solid rgba(20, 38, 72, 0.1);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 41, 75, 0.08);
}

.pulse-card h3 {
  margin: 10px 0;
}

.metric-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.life-calculator-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: start;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 34%), linear-gradient(135deg, #f8fafc, #eef6ff);
  border-radius: 32px;
}

.life-calculator-copy h2 {
  margin-top: 8px;
}

.life-calculator-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(20, 38, 72, 0.1);
  border-radius: 26px;
  padding: 20px;
  box-shadow: 0 20px 60px rgba(24, 41, 75, 0.12);
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calculator-inputs label span {
  display: block;
  font-size: 0.78rem;
  color: var(--muted, #687386);
  margin-bottom: 6px;
}

.calculator-inputs input,
.calculator-inputs select {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.16);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fff;
}

.plan-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.calculator-list {
  display: grid;
  gap: 10px;
}

.calculator-list a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 12px;
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.calculator-list a span {
  color: var(--muted, #687386);
  font-size: 0.85rem;
  text-align: right;
}

.idea-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.idea-grid article {
  background: rgba(20, 184, 166, 0.08);
  border-radius: 18px;
  padding: 14px;
}

.idea-grid span {
  display: block;
  color: #0f766e;
  font-size: 0.8rem;
  margin: 4px 0;
}

@media (max-width: 860px) {
  .life-calculator-section,
  .calculator-inputs,
  .plan-summary {
    grid-template-columns: 1fr;
  }
}

/* Continuous upgrade pass: trust, search state, buyer journey */
.trust-strip {
  margin-top: -38px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 3;
}

.trust-strip div {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(220, 227, 236, 0.9);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.trust-strip span,
.sort-control span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-strip strong {
  display: block;
  margin-top: 6px;
  line-height: 1.35;
}

.active-search-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 0;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.active-filter-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #cfe7df;
  border-radius: 999px;
  background: #f0fbf7;
  color: #214539;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 900;
}

.active-filter-chips strong {
  color: var(--bayut-dark);
}

.active-filter-chips .muted-chip {
  background: #f7f9fc;
  border-color: var(--line);
  color: var(--muted);
}

.sort-control {
  min-width: 210px;
  gap: 5px;
}

.sort-control select {
  min-height: 40px;
  padding: 8px 10px;
}

.buyer-journey-section {
  background: linear-gradient(135deg, #0f172a, #153d47 52%, #0f766e);
  color: #fff;
  border-radius: 32px;
  margin-top: 18px;
}

.buyer-journey-section .section-note {
  color: rgba(255, 255, 255, 0.76);
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.journey-grid article {
  min-height: 170px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.journey-grid span {
  display: inline-flex;
  margin-bottom: 22px;
  color: #77dec9;
  font-weight: 950;
}

.journey-grid strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.journey-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

@media (max-width: 980px) {
  .trust-strip,
  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .active-search-bar {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .trust-strip,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: 0;
  }

  .results-actions,
  .sort-control {
    width: 100%;
  }
}

/* Inspiration pass: Bayut AI search + Zillow BuyAbility + Property Finder buyer tools */
.smart-search-panel {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) repeat(3, auto);
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid #d7efe8;
  border-radius: 14px;
  background: linear-gradient(135deg, #f0fbf7, #f6f9ff);
}

.smart-search-panel div {
  display: grid;
  gap: 2px;
}

.smart-search-panel strong {
  color: var(--bayut-dark);
  font-size: 13px;
}

.smart-search-panel span {
  color: #587066;
  font-size: 12px;
  font-weight: 800;
}

.smart-search-panel button {
  min-height: 34px;
  border: 1px solid #bfe4dc;
  border-radius: 999px;
  background: #fff;
  color: #214539;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.smart-search-panel button:hover {
  border-color: var(--bayut);
  color: var(--bayut-dark);
  box-shadow: 0 8px 18px rgba(0, 133, 111, 0.12);
}

.buyer-tools-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  align-items: stretch;
}

.buyer-tools-copy {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.buyer-tools-copy h2 {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.14;
}

.buyer-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tool-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 190px;
  padding: 18px;
  border: 1px solid rgba(20, 38, 72, 0.1);
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f7fbff);
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-3px);
  border-color: #9edbd0;
  box-shadow: 0 18px 46px rgba(24, 33, 47, 0.12);
}

.tool-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 6px 9px;
  background: var(--soft-green);
  color: var(--bayut-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.tool-card strong {
  font-size: 19px;
  line-height: 1.2;
}

.tool-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .smart-search-panel,
  .buyer-tools-section,
  .buyer-tools-grid {
    grid-template-columns: 1fr 1fr;
  }

  .smart-search-panel div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .smart-search-panel,
  .buyer-tools-section,
  .buyer-tools-grid {
    grid-template-columns: 1fr;
  }

  .smart-search-panel button {
    white-space: normal;
    justify-content: flex-start;
  }
}

/* Compare drawer + owner analytics pass */
.compare-button.active {
  border-color: var(--bayut);
  background: var(--soft-green);
  color: var(--bayut-dark);
}

.compare-drawer {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 18px;
  width: min(1120px, calc(100vw - 28px));
  max-height: min(72vh, 680px);
  transform: translate(-50%, calc(100% + 28px));
  opacity: 0;
  pointer-events: none;
  z-index: 80;
  border: 1px solid rgba(220, 227, 236, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(18px);
  overflow: hidden;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.compare-drawer.open {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.compare-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #f0fbf7, #f7fbff);
}

.compare-drawer-head span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.compare-drawer-head strong {
  display: block;
  margin-top: 2px;
  font-size: 18px;
}

.compare-drawer-head button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  padding: 8px 12px;
  font-weight: 900;
}

.compare-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  overflow: auto;
}

.compare-table article {
  display: grid;
  gap: 9px;
  min-width: 230px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  background: #fff;
}

.compare-table img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
}

.compare-table h4,
.compare-table p {
  margin: 0;
}

.compare-table h4 {
  font-size: 15px;
  line-height: 1.25;
}

.compare-table p,
.compare-table span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.compare-table div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #edf1f6;
  padding-top: 7px;
}

.compare-table strong {
  text-align: right;
  font-size: 12px;
}

.compare-table a {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 10px;
  background: var(--bayut);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 760px) {
  .compare-table {
    grid-template-columns: 1fr;
  }

  .compare-drawer {
    bottom: 10px;
    width: calc(100vw - 18px);
    max-height: 82vh;
  }
}

/* Content depth pass: original Dubai guide, buyer playbook, collections */
.editorial-section,
.content-hub-section,
.collections-section {
  position: relative;
}

.area-insights-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.area-insights-grid article {
  display: grid;
  gap: 10px;
  min-height: 300px;
  border: 1px solid rgba(20, 38, 72, 0.1);
  border-radius: 24px;
  padding: 20px;
  background: linear-gradient(145deg, #ffffff, #f6fbff);
  box-shadow: var(--shadow-soft);
}

.area-insights-grid article:nth-child(2) { background: linear-gradient(145deg, #ffffff, #fff8ec); }
.area-insights-grid article:nth-child(3) { background: linear-gradient(145deg, #ffffff, #f1fbf6); }
.area-insights-grid article:nth-child(4) { background: linear-gradient(145deg, #ffffff, #f8f7ff); }

.area-insights-grid span,
.collection-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.area-insights-grid h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.12;
}

.area-insights-grid p {
  margin: 0;
  color: #405066;
  line-height: 1.55;
}

.area-insights-grid ul {
  margin: auto 0 0;
  padding-left: 18px;
  color: #334155;
  line-height: 1.55;
}

.content-hub-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: 18px;
}

.content-hub-main,
.content-hub-side article {
  border: 1px solid rgba(220, 227, 236, 0.9);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.content-hub-main {
  padding: 28px;
  background:
    radial-gradient(circle at 0 0, rgba(0, 133, 111, 0.14), transparent 32%),
    linear-gradient(145deg, #ffffff, #f7fbff);
}

.content-hub-main h2 {
  margin: 8px 0 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
}

.content-hub-main p,
.content-hub-side p {
  color: #405066;
  line-height: 1.65;
}

.playbook-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.playbook-steps div {
  display: grid;
  gap: 8px;
  min-height: 118px;
  border: 1px solid rgba(0, 133, 111, 0.16);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.playbook-steps strong {
  color: var(--bayut-dark);
  font-size: 13px;
}

.playbook-steps span {
  font-weight: 900;
  line-height: 1.35;
}

.content-hub-side {
  display: grid;
  gap: 14px;
}

.content-hub-side article {
  padding: 22px;
}

.content-hub-side h3 {
  margin: 0 0 8px;
  font-size: 23px;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.collection-grid button {
  display: grid;
  gap: 8px;
  min-height: 150px;
  text-align: left;
  border: 1px solid rgba(20, 38, 72, 0.1);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.collection-grid button:hover {
  transform: translateY(-3px);
  border-color: #9edbd0;
  box-shadow: 0 18px 46px rgba(24, 33, 47, 0.12);
}

.collection-grid strong {
  font-size: 22px;
  line-height: 1.15;
}

@media (max-width: 1120px) {
  .area-insights-grid,
  .collection-grid,
  .playbook-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .content-hub-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .area-insights-grid,
  .collection-grid,
  .playbook-steps {
    grid-template-columns: 1fr;
  }
}
