/* ============================================================
   Areas page — page-specific styles.
   Base tokens, buttons, nav, footer, forms, gallery-scroll etc.
   live in css/styles.css; loader/transitions/side-nav in
   css/animations.css. A few investment-editorial components
   (compare card, chain) are proven patterns ported from
   properties.css/developments.css and re-declared here to keep
   pages decoupled.
   ============================================================ */

section[id] { scroll-margin-top: 110px; }
@media (min-width: 1024px) { section[id] { scroll-margin-top: 130px; } }

/* ---------- Hero: 2.5D spatial layers ---------- */
#hero { background: var(--bg); }
.areas-hero-bg, .areas-hero-fg {
  position: absolute; inset: -3%;
  will-change: transform;
}
.areas-hero-bg {
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(111,35,75,.30), transparent 55%),
    radial-gradient(ellipse at 85% 80%, rgba(201,164,92,.14), transparent 50%),
    url("../assets/dubai-sheikh-zayed-road.webp");
  background-size: cover;
  background-position: center 40%;
  filter: grayscale(.3) contrast(1.08) brightness(.5) saturate(.9);
}
.areas-hero-fg {
  opacity: .5;
  background-image:
    repeating-linear-gradient(90deg, rgba(201,164,92,.09) 0 1px, transparent 1px 64px),
    repeating-linear-gradient(0deg, rgba(201,164,92,.06) 0 1px, transparent 1px 64px);
  mix-blend-mode: screen;
}
.areas-hero-vignette {
  background: linear-gradient(180deg, rgba(9,9,9,.4) 0%, rgba(9,9,9,.2) 30%, rgba(9,9,9,.7) 80%, #090909 100%);
}
.areas-hero-marker {
  position: absolute;
  left: 62%; top: 46%;
  width: 12px; height: 12px;
  will-change: transform;
}
.areas-hero-marker::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 5px rgba(201,164,92,.16), 0 0 22px rgba(201,164,92,.5);
}
.areas-hero-marker::after {
  content: ''; position: absolute; inset: -10px;
  border-radius: 50%; border: 1px solid rgba(201,164,92,.35);
  animation: areasMarkerPulse 3.2s ease-out infinite;
}
@keyframes areasMarkerPulse {
  0% { transform: scale(.6); opacity: .8; }
  100% { transform: scale(2.1); opacity: 0; }
}
.areas-hero-coord {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-muted);
  display: inline-flex; align-items: center; gap: 10px;
}
.areas-hero-coord::before { content: ''; width: 22px; height: 1px; background: rgba(201,164,92,.5); }
@media (prefers-reduced-motion: reduce) {
  .areas-hero-marker::after { animation: none; }
}

/* ---------- Area count statement ---------- */
.presence-band {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 20px 48px;
  border-top: 1px solid rgba(201,164,92,.2);
  border-bottom: 1px solid rgba(201,164,92,.2);
  padding: 30px 0;
}
.presence-num { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(48px, 6vw, 76px); color: var(--gold-light); line-height: 1; }
.presence-label { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); }
.presence-copy { font-size: 14px; color: var(--ink-secondary); max-width: 380px; margin-left: auto; }

/* ---------- Area index (editorial list + dynamic image) ---------- */
.area-idx-list { display: flex; flex-direction: column; }
.area-idx-row {
  display: flex; align-items: center; gap: 20px;
  width: 100%; text-align: left;
  padding: 30px 6px;
  border-top: 1px solid rgba(255,255,255,.08);
  background: none; cursor: pointer;
  transition: padding-left .35s ease;
}
.area-idx-list .area-idx-row:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.area-idx-row:hover, .area-idx-row.active, .area-idx-row:focus-visible { padding-left: 16px; }
.area-idx-num { font-family: 'Manrope', sans-serif; font-size: 12px; color: var(--ink-muted); transition: color .3s ease; }
.area-idx-row.active .area-idx-num, .area-idx-row:hover .area-idx-num { color: var(--gold); }
.area-idx-body { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.area-idx-name { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3.6vw, 38px); color: var(--ink); transition: color .3s ease; }
.area-idx-row.active .area-idx-name, .area-idx-row:hover .area-idx-name { color: var(--gold-light); }
.area-idx-meta { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.area-idx-tag { font-family: 'Manrope', sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); white-space: nowrap; }
.area-idx-tag--research { color: var(--ink-secondary); }
.area-idx-desc {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .5s cubic-bezier(.4,0,.2,1), opacity .4s ease, margin .4s ease;
  font-size: 13px; color: var(--ink-secondary); line-height: 1.6; max-width: 480px;
}
.area-idx-row.active .area-idx-desc { max-height: 120px; opacity: 1; margin-top: 12px; }

.area-idx-media { position: relative; overflow: hidden; aspect-ratio: 4/3; }
@media (min-width: 1024px) { .area-idx-media { aspect-ratio: 4/5; } }
.area-idx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .7s ease, transform 1.1s cubic-bezier(.16,1,.3,1); filter: grayscale(.3) contrast(1.06) brightness(.75); }
.area-idx-img.active { opacity: 1; transform: scale(1); }
.area-idx-img--abstract { opacity: 0; }
.area-idx-img--abstract.active { opacity: 1; }

/* ---------- Future coverage chip strip ---------- */
.future-chip-label { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 16px; }

/* ---------- Area profile ---------- */
.area-profile-eyebrow { display: flex; align-items: center; gap: 14px; }
.area-profile-num { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(60px, 8vw, 100px); line-height: .8; color: rgba(201,164,92,.08); -webkit-text-stroke: 1px rgba(201,164,92,.4); }
.area-profile-name { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(48px, 8vw, 92px); line-height: .98; color: var(--ink); }
.area-profile-subtitle { font-family: 'Manrope', sans-serif; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); margin-top: 8px; }

.area-story-label { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.area-story-block { padding: 30px 0; border-top: 1px solid rgba(255,255,255,.1); }
.area-story-block:last-child { border-bottom: 1px solid rgba(255,255,255,.1); }
.area-story-copy { font-size: 15px; line-height: 1.7; color: var(--ink-secondary); max-width: 44ch; }

/* ---------- Character scale (editorial, not a rating) ---------- */
.scale-row + .scale-row { margin-top: 22px; }
.scale-heads { display: flex; justify-content: space-between; margin-bottom: 10px; }
.scale-head { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.scale-track { position: relative; height: 1px; background: rgba(255,255,255,.14); }
.scale-marker {
  position: absolute; top: 50%; left: 0;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 5px rgba(201,164,92,.14);
  transform: translate(-50%, -50%);
  transition: left 1s cubic-bezier(.16,1,.3,1);
}

/* ---------- Feel of the place (imagery-led) ---------- */
.feel-lede { max-width: 46ch; }

/* ---------- Map ---------- */
.area-map-panel {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(ellipse at 20% 15%, rgba(111,35,75,.16), transparent 55%),
    radial-gradient(ellipse at 85% 85%, rgba(201,164,92,.08), transparent 50%),
    var(--surface);
}
@media (min-width: 1024px) { .area-map-panel { aspect-ratio: 21/9; } }
.area-map-grid {
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg, rgba(255,255,255,.05) 0 1px, transparent 1px 56px);
}
.area-map-road {
  position: absolute;
  background: rgba(255,255,255,.09);
}
.area-map-zone {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140,53,99,.28), transparent 70%);
  pointer-events: none;
  transition: opacity .6s ease, left 1s cubic-bezier(.16,1,.3,1), top 1s cubic-bezier(.16,1,.3,1);
}
.area-map-marker {
  position: absolute;
  width: 14px; height: 14px;
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: left 1s cubic-bezier(.16,1,.3,1), top 1s cubic-bezier(.16,1,.3,1);
}
.area-map-marker-dot {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--ink-muted);
  transition: background .3s ease, transform .3s ease;
}
.area-map-marker-ring {
  position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid rgba(201,164,92,0);
  transition: border-color .3s ease, transform .3s ease;
}
.area-map-marker:hover .area-map-marker-ring { border-color: rgba(201,164,92,.5); transform: scale(1.1); }
.area-map-marker.active .area-map-marker-dot { background: var(--gold); transform: scale(1.15); box-shadow: 0 0 16px rgba(201,164,92,.6); }
.area-map-marker.active .area-map-marker-ring { border-color: rgba(201,164,92,.7); }
.area-map-marker-label {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  white-space: nowrap;
  font-family: 'Manrope', sans-serif; font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-muted);
  transition: color .3s ease;
}
.area-map-marker.active .area-map-marker-label { color: var(--gold-light); }
.area-map-note {
  position: absolute; left: 16px; bottom: 14px; right: 16px;
  max-width: 220px;
  white-space: normal; line-height: 1.5;
  font-family: 'Manrope', sans-serif; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted);
  opacity: .7;
}
.area-map-info {
  margin-top: 28px;
  padding: 26px 30px;
}
.area-map-info-name { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--ink); }
.area-map-info-loc { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-light); margin-top: 4px; }
.area-map-info-desc { font-size: 13.5px; color: var(--ink-secondary); line-height: 1.6; margin-top: 14px; max-width: 60ch; }

/* ---------- Lifestyle split ---------- */
.lifestyle-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.lifestyle-media img { width: 100%; height: 118%; object-fit: cover; }

/* ---------- Connectivity — radial layout ---------- */
.conn-radial-wrap { display: flex; justify-content: center; padding: 20px 0; }
.conn-radial { position: relative; width: 100%; max-width: 620px; aspect-ratio: 1/1; }
.conn-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 128px; height: 128px; border-radius: 50%;
  border: 1px solid rgba(201,164,92,.45);
  background: rgba(201,164,92,.05);
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 12px;
  z-index: 2;
}
.conn-center span { font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-light); }
.conn-line {
  position: absolute; left: 50%; top: 50%;
  height: 1px; transform-origin: left center;
  background: linear-gradient(90deg, rgba(201,164,92,.5), rgba(201,164,92,.05));
  transform: scaleX(0);
}
.conn-line.existing { background: linear-gradient(90deg, rgba(170,165,160,.4), rgba(170,165,160,.05)); }
.conn-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 168px;
  text-align: center;
  opacity: 0;
}
.conn-node-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin: 0 auto 10px; box-shadow: 0 0 0 4px rgba(201,164,92,.14); }
.conn-node.existing .conn-node-dot { background: var(--ink-secondary); box-shadow: 0 0 0 4px rgba(170,165,160,.14); }
.conn-node-label { display: block; font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.conn-node-detail { display: block; font-family: 'Manrope', sans-serif; font-size: 10.5px; color: var(--ink-muted); margin-top: 4px; line-height: 1.5; }
.conn-node-tag { display: inline-block; margin-top: 6px; font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }
.conn-node.existing .conn-node-tag { color: var(--ink-muted); }

/* ---------- Community layer ---------- */
.community-block { position: relative; aspect-ratio: 3/4; overflow: hidden; }
.community-block img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.35) contrast(1.08) brightness(.6); }
.community-block-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(9,9,9,.92) 100%); }
.community-block-label {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 20px;
  font-family: 'Manrope', sans-serif; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}

/* ---------- Evolution timeline (existing → planned) ---------- */
.evo-track { position: relative; padding-left: 26px; }
.evo-track::before { content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(180deg, var(--ink-muted), var(--gold)); }
.evo-node { position: relative; padding-bottom: 34px; }
.evo-node:last-child { padding-bottom: 0; }
.evo-node::before { content: ''; position: absolute; left: -26px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-muted); }
.evo-node--planned::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(201,164,92,.16); }
.evo-node-tag { font-family: 'Manrope', sans-serif; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-muted); }
.evo-node--planned .evo-node-tag { color: var(--gold-light); }
.evo-node-copy { font-size: 14px; color: var(--ink-secondary); line-height: 1.65; margin-top: 6px; max-width: 56ch; }

/* ---------- The bigger picture ---------- */
.bigger-picture-media { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.bigger-picture-media img { width: 100%; height: 118%; object-fit: cover; }
.bigger-picture-line { position: absolute; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,164,92,.7), transparent); transform: scaleX(0); transform-origin: center; }

/* ---------- Comparison ---------- */
.compare-cards { display: grid; gap: 1px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); }
@media (min-width: 900px) { .compare-cards { grid-template-columns: 1fr 1fr; } }
.compare-card { background: var(--surface); padding: 34px 30px; cursor: pointer; transition: background .4s ease; }
.compare-card--primary, .compare-card.active { background: linear-gradient(160deg, rgba(201,164,92,.06), var(--surface) 60%); }
.compare-card-head { margin-bottom: 26px; }
.compare-card-tag { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--wine-light); }
.compare-card--primary .compare-card-tag, .compare-card.active .compare-card-tag { color: var(--gold); }
.compare-card-title { font-family: 'Cormorant Garamond', serif; font-size: 28px; color: var(--ink); margin-top: 6px; }
.compare-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(255,255,255,.08); position: relative; transform-origin: left center; will-change: transform; transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s cubic-bezier(.22,1,.36,1); }
.compare-row:first-of-type { border-top: none; }
.compare-row-label { font-family: 'Manrope', sans-serif; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); max-width: 40%; }
.compare-row-value { font-family: 'Manrope', sans-serif; font-size: 13.5px; color: var(--ink-secondary); text-align: right; line-height: 1.5; }
.compare-card--primary .compare-row-value, .compare-card.active .compare-row-value { color: var(--ink); }

/* ---------- Choose your context ---------- */
.context-chip-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.context-chip {
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,.14);
  font-family: 'Manrope', sans-serif; font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-secondary);
  background: none;
  transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.context-chip:hover { border-color: rgba(201,164,92,.4); color: var(--ink); }
.context-chip.active { border-color: var(--gold); color: var(--gold-light); background: rgba(201,164,92,.06); }
.context-result { margin-top: 22px; font-size: 13px; color: var(--ink-muted); min-height: 20px; }
.context-result strong { color: var(--gold-light); font-weight: 500; }

/* ---------- Princess presence bridge ---------- */
.bridge-panel { padding: 40px; }
.bridge-eyebrow { display: flex; align-items: center; gap: 10px; }
.bridge-facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 26px; }
.bridge-fact { padding: 9px 16px; border: 1px solid rgba(201,164,92,.3); font-family: 'Manrope', sans-serif; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-light); }

/* ---------- Footer mini area index ---------- */
.footer-area-index { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.footer-area-index a { font-family: 'Manrope', sans-serif; font-size: 13px; color: var(--ink-secondary); transition: color .3s ease; }
.footer-area-index a:hover { color: var(--gold-light); }

@media (prefers-reduced-motion: reduce) {
  .area-idx-img, .compare-card, .scale-marker, .area-map-marker, .area-map-zone { transition: none !important; }
}
