/* ═══════════════════════════════════════════════════════════
   AQAR Design V6 — Ultra Luxury Layer
   لا يمس: .landing-map-* · .page-map · .map-page
   ═══════════════════════════════════════════════════════════ */

body:not(.page-map) {
  --font-display: "El Messiri", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --gold: #d4af6a;
  --gold-bright: #f2e0b0;
  --gold-glow: rgba(212,175,106,.45);
  --void: #020203;
  --surface: #060608;
  --surface-card: #0a0a0e;
  --glass: rgba(255,255,255,.035);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

body:not(.page-map) {
  font-family: var(--font-body);
}

/* Grain overlay */
body:not(.page-map)::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Header scroll state ── */
body:not(.page-map) .site-header {
  transition: padding .4s var(--ease-out);
}
body:not(.page-map).header-scrolled .site-header {
  padding-top: .5rem;
  padding-bottom: .5rem;
}
body:not(.page-map).header-scrolled .nav-shell {
  background: rgba(2,2,3,.92);
  box-shadow: 0 12px 48px rgba(0,0,0,.6), 0 0 0 1px rgba(212,175,106,.06);
}

/* ── Display typography ── */
body:not(.page-map) .display-hero,
body:not(.page-map) .display-md,
body:not(.page-map) .display-sm,
body.page-catalog .catalog-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
}

body.page-home .hero-copy {
  position: relative;
  padding: 2rem 0;
}
body.page-home .hero-copy::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 64px;
  height: 64px;
  border-top: 1px solid var(--border-gold);
  border-right: 1px solid var(--border-gold);
  opacity: .5;
  pointer-events: none;
}
body.page-home .hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 1rem .4rem .75rem;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-bright);
  background: rgba(212,175,106,.08);
  border: 1px solid rgba(212,175,106,.2);
  margin-bottom: 1.25rem;
}
body.page-home .hero-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold-glow);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}
body.page-home .display-hero {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: .95;
  margin: 0;
}
body.page-home .hero-sub {
  font-size: clamp(.95rem, 2.2vw, 1.125rem);
  max-width: 32rem;
  line-height: 2;
  color: var(--muted-light);
}
body.page-home .hero-chips {
  margin-top: 2rem;
  gap: .75rem;
}
body.page-home .hero-chips .chip {
  padding: .65rem 1.25rem;
  font-size: 13px;
  border-radius: 999px;
}
body.page-home .hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
body.page-home .hero-trust-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 12px;
  color: var(--muted-light);
}
body.page-home .hero-trust-item strong {
  color: var(--gold-bright);
  font-weight: 700;
}

/* ── Marquee premium ── */
body:not(.page-map) .marquee {
  padding: 1rem 0;
  background: var(--void);
}
body:not(.page-map) .marquee-track {
  animation-duration: 35s;
}

/* ── Showcase strip ── */
.lux-showcase {
  padding: clamp(4rem, 10vw, 7rem) 1rem;
  position: relative;
  overflow: hidden;
}
.lux-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%, rgba(212,175,106,.06), transparent 70%);
  pointer-events: none;
}
.lux-showcase-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.lux-showcase-quote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -.02em;
  color: var(--foreground);
  margin: 0;
}
.lux-showcase-quote em {
  font-style: normal;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lux-showcase-line {
  width: 80px;
  height: 2px;
  margin: 2rem auto 0;
  background: linear-gradient(to left, transparent, var(--gold), transparent);
}

/* ── Featured editorial grid ── */
.lux-featured {
  position: relative;
}
.lux-featured-head {
  display: grid;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .lux-featured-head {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.lux-featured-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -.03em;
  margin: 0;
  line-height: 1.05;
}
.lux-featured-head p {
  margin: .75rem 0 0;
  color: var(--muted-light);
  max-width: 42ch;
  font-size: .95rem;
}
.lux-featured-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 1024px) {
  .lux-featured-grid {
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.25rem;
  }
  .lux-featured-grid .featured-hero {
    grid-row: 1 / 3;
  }
}

/* ── Property cards V6 ── */
body:not(.page-map) .premium-card {
  position: relative;
  background: var(--surface-card);
}
body:not(.page-map) .card-featured .card-link {
  display: grid;
}
@media (min-width: 768px) {
  body:not(.page-map) .card-featured .card-link {
    grid-template-columns: 1fr;
  }
}
body:not(.page-map) .card-featured .card-img-wrap {
  aspect-ratio: 16 / 10;
  min-height: 0;
}
@media (max-width: 1023px) {
  body:not(.page-map) .card-featured .card-img-wrap {
    aspect-ratio: 4 / 3;
    min-height: 0;
  }
}
body:not(.page-map) .card-featured .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.75rem;
  background: linear-gradient(to top, rgba(2,2,3,.95) 0%, rgba(2,2,3,.7) 50%, transparent 100%);
  z-index: 3;
}
body:not(.page-map) .card-featured .card-content h3 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  color: var(--foreground);
}
body:not(.page-map) .card-featured .card-price {
  font-size: 1.65rem;
}
body:not(.page-map) .card-arrow {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(2,2,3,.6);
  border: 1px solid var(--border-gold);
  color: var(--gold-bright);
  font-size: 1.1rem;
  z-index: 4;
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out);
  backdrop-filter: blur(8px);
}
body:not(.page-map) .premium-card:hover .card-arrow {
  opacity: 1;
  transform: none;
}
body:not(.page-map) .card-compact .card-img-wrap {
  aspect-ratio: 16/11;
}
body:not(.page-map) .card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-top: .5rem;
}
body:not(.page-map) .card-area {
  font-size: 11px;
  color: var(--muted);
  padding: .2rem .55rem;
  border-radius: 6px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
}

/* ── Metrics strip (home) ── */
.metrics-strip {
  padding: 0 1rem 2rem;
  margin-top: -1.25rem;
  position: relative;
  z-index: 2;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .85rem;
}
@media (max-width: 640px) {
  .metrics-grid { grid-template-columns: 1fr; gap: .65rem; }
}
.metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .35rem;
  padding: 1.35rem 1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 48px rgba(0,0,0,.35);
  transition: transform .35s var(--ease-out), border-color .35s;
}
.metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
}
.metric-icon {
  font-size: 1.1rem;
  color: var(--gold);
  opacity: .85;
  line-height: 1;
}
.metric-value {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.metric-label {
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted-light, var(--muted));
  letter-spacing: 0;
  line-height: 1.4;
}

/* ── Stats bento ── */
.lux-stats-bento {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) {
  .lux-stats-bento {
    grid-template-columns: repeat(4, 1fr);
  }
}
.lux-stat-card {
  padding: 2rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(145deg, var(--glass), transparent);
  text-align: center;
  transition: transform .4s var(--ease-out), border-color .4s;
  position: relative;
  overflow: hidden;
}
.lux-stat-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to left, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.lux-stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
}
.lux-stat-card:hover::after {
  transform: scaleX(1);
}
.lux-stat-card .stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  display: block;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lux-stat-card .stat-lbl {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: .35rem;
  display: block;
}

/* ── Experience bento ── */
.lux-exp-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) {
  .lux-exp-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lux-exp-grid .experience-card:first-child {
    grid-column: span 1;
  }
}
body:not(.page-map) .experience-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
}
body:not(.page-map) .experience-card .exp-num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 600;
  line-height: 1;
  background: linear-gradient(180deg, rgba(212,175,106,.25), transparent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: auto;
}

/* ── Method timeline ── */
.lux-method {
  display: grid;
  gap: 0;
  position: relative;
}
@media (min-width: 768px) {
  .lux-method {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
body:not(.page-map) .method-step {
  padding: 2rem 1.75rem;
  text-align: right;
}
body:not(.page-map) .method-step h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
}

/* ── CTA cinematic ── */
body:not(.page-map) .cta-banner {
  padding: clamp(3rem, 8vw, 5rem) 2rem !important;
  text-align: center;
}
body:not(.page-map) .cta-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

/* ── Contact split ── */
.lux-contact-wrap {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .lux-contact-wrap {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
  }
}
.lux-contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0 0 1rem;
}
.lux-contact-perks {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.lux-contact-perks li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 0;
  font-size: .9rem;
  color: var(--muted-light);
  border-bottom: 1px solid var(--border);
}
.lux-contact-perks li::before {
  content: "◆";
  color: var(--gold);
  font-size: .5rem;
}

/* ── Catalog ultra hero ── */
body.page-catalog .catalog-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 3rem;
}
body.page-catalog .catalog-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}
body.page-catalog .catalog-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}
body.page-catalog .catalog-stat-pill {
  padding: .75rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--glass);
  font-size: 13px;
}
body.page-catalog .catalog-stat-pill strong {
  color: var(--gold-bright);
  font-size: 1.25rem;
  display: block;
  font-family: var(--font-display);
}

/* ── Property detail ultra ── */
body.page-property .property-layout {
  gap: 2.5rem;
}
@media (min-width: 900px) {
  body.page-property .property-info {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
  }
}
body.page-property .property-info h1 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}
body.page-property .property-header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}
body.page-property .gallery-main {
  cursor: zoom-in;
}
body.page-property .property-breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
body.page-property .property-breadcrumb a { color: var(--muted-light); }
body.page-property .property-breadcrumb a:hover { color: var(--gold); }
body.page-property .property-breadcrumb span:last-child { color: var(--gold); }
body.page-property .property-info {
  border-color: var(--border-gold);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(7,7,9,.95));
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
body.page-property .property-info h1 { color: var(--foreground); }
body.page-property .property-desc {
  color: var(--muted-light);
  line-height: 1.9;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
body.page-property .feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding: 0;
  margin: .5rem 0 1rem;
}
body.page-property .feature-chips li {
  padding: .4rem .85rem;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(201,169,98,.08);
  border: 1px solid var(--border-gold);
  color: var(--muted-light);
}

/* ── Footer ultra ── */
body:not(.page-map) .site-footer {
  padding-top: 1rem;
}
body:not(.page-map) .footer-cta-strip {
  text-align: center;
  padding: 3rem 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
body:not(.page-map) .footer-cta-strip h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 1rem;
  font-weight: 500;
}
body:not(.page-map) .footer-cta-strip p {
  color: var(--muted-light);
  margin: 0 0 1.5rem;
  font-size: .9rem;
}

/* ── Counter animation ── */
[data-count] {
  display: inline-block;
}

/* ── Stagger reveal ── */
.reveal-up:nth-child(2) { transition-delay: .08s; }
.reveal-up:nth-child(3) { transition-delay: .16s; }
.reveal-up:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  body:not(.page-map)::after { display: none; }
  body.page-home .hero-eyebrow-dot { animation: none; }
}

/* ── About / Methodology — larger typography ── */
body:not(.page-map) #about .display-md {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  margin-bottom: 2rem;
}
body:not(.page-map) .narrative-type {
  font-size: 1.15rem;
  letter-spacing: 0;
  margin-bottom: 1.25rem;
}
body:not(.page-map) .editorial-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
body:not(.page-map) .editorial-card h4 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.35;
  margin-bottom: .65rem;
}
body:not(.page-map) .editorial-body {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  line-height: 1.75;
  color: rgba(255,255,255,.72);
}
body:not(.page-map) .editorial-card .text-gold {
  font-size: 1rem;
}
body:not(.page-map) .method-step {
  padding: clamp(1.75rem, 3vw, 2.5rem);
}
body:not(.page-map) .method-step h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  margin-bottom: .75rem;
}
body:not(.page-map) .method-desc {
  font-size: clamp(.95rem, 1.8vw, 1.08rem);
  line-height: 1.7;
  color: rgba(255,255,255,.68);
  margin: 0;
}
body:not(.page-map) .method-num {
  font-size: .9rem;
  margin-bottom: .5rem;
}
body:not(.page-map) .blocks-grid {
  gap: 1.25rem;
}
