/* BLACK X — Real Estate World hero true depth V2
   Images travel on the Z axis from deep background to foreground. */
.bx-world-hero {
  --bx-world-gold: #c6a75e;
  --bx-world-green: #1f6f5f;
  --bx-world-ink: #050709;
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: clamp(660px, calc(100svh - var(--header-height, 72px)), 980px);
  overflow: clip;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(31, 111, 95, 0.16), transparent 28%),
    radial-gradient(circle at 50% 50%, rgba(198, 167, 94, 0.10), transparent 44%),
    linear-gradient(180deg, #050709 0%, #090d10 48%, #050709 100%);
  border-bottom: 1px solid rgba(198, 167, 94, 0.18);
  outline: none;
  contain: layout paint style;
}

.bx-world-hero::before,
.bx-world-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.bx-world-hero::before {
  z-index: 208;
  background:
    linear-gradient(180deg, rgba(3, 5, 7, 0.52) 0%, transparent 17%, transparent 76%, rgba(3, 5, 7, 0.76) 100%),
    radial-gradient(ellipse at center, transparent 32%, rgba(2, 4, 6, 0.10) 60%, rgba(2, 4, 6, 0.62) 100%);
}

.bx-world-hero::after {
  z-index: 209;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255,255,255,0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.010) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, transparent 4%, #000 34%, #000 70%, transparent 98%);
}

.bx-world-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 3;
  perspective: 980px;
  perspective-origin: 50% 48%;
  transform-style: preserve-3d;
  overflow: hidden;
  pointer-events: none;
}

.bx-world-hero__plane {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(200px, 22vw, 380px);
  aspect-ratio: 16 / 11;
  overflow: hidden;
  margin: 0;
  border-radius: clamp(7px, 0.8vw, 14px);
  border: 1px solid rgba(220, 197, 137, calc(0.08 + var(--bx-depth, 0) * 0.16));
  background:
    linear-gradient(145deg, rgba(31, 111, 95, 0.22), rgba(198, 167, 94, 0.08)),
    #11171a;
  box-shadow:
    0 calc(10px + var(--bx-depth, 0) * 22px) calc(28px + var(--bx-depth, 0) * 40px) rgba(0,0,0,0.42),
    0 0 calc(6px + var(--bx-depth, 0) * 14px) rgba(198, 167, 94, 0.03);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
  pointer-events: none;
}

.bx-world-hero__plane img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transform: scale(1.018);
}

.bx-world-hero__plane::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), transparent 24%),
    linear-gradient(180deg, transparent 62%, rgba(3,5,7,0.38) 100%);
  pointer-events: none;
}

.bx-world-hero__fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 2rem;
  text-align: center;
  color: rgba(245, 241, 229, 0.78);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bx-world-hero__focus {
  position: relative;
  z-index: 260;
  width: min(94vw, 1320px);
  display: grid;
  place-items: center;
  pointer-events: none;
}

.bx-world-hero__focus h1 {
  margin: 0;
  max-width: none;
  text-align: center;
  white-space: nowrap;
  color: #f5f2ea;
  font-size: clamp(3rem, 8.5vw, 8.5rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.065em;
  text-shadow:
    0 22px 70px rgba(0,0,0,0.58),
    0 0 26px rgba(5,7,9,0.34);
  background: linear-gradient(112deg, #ffffff 4%, #d9dde0 34%, #c6a75e 62%, #eef0f1 88%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bx-world-hero__navigation-copy {
  position: absolute;
  z-index: 270;
  bottom: max(24px, env(safe-area-inset-bottom));
  left: 50%;
  width: min(92vw, 680px);
  transform: translateX(-50%);
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.61rem, 1vw, 0.72rem);
  font-weight: 650;
  color: rgba(239, 235, 224, 0.88);
  pointer-events: none;
}

.bx-world-hero__navigation-copy p {
  margin: 0.18rem 0;
}

.bx-world-hero__navigation-copy p + p {
  opacity: 0.54;
}

.bx-world-hero:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(198, 167, 94, 0.7);
}

@media (max-width: 767px) {
  .bx-world-hero {
    min-height: min(820px, calc(100svh - 58px));
  }

  .bx-world-hero__stage {
    perspective: 760px;
  }

  .bx-world-hero__plane {
    width: clamp(160px, 42vw, 250px);
  }

  .bx-world-hero__focus h1 {
    white-space: normal;
    max-width: 92vw;
    font-size: clamp(3rem, 15vw, 5.8rem);
    line-height: 0.92;
  }

  .bx-world-hero__navigation-copy {
    bottom: max(18px, env(safe-area-inset-bottom));
    font-size: 0.58rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bx-world-hero__plane {
    will-change: auto;
  }
}

/* Publishing workflow remains outside the visual hero. */
.blackx-discover-page .bx-blog-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 14px;
  margin-bottom: 4px;
}

[dir="rtl"] .blackx-discover-page .bx-blog-page-actions {
  justify-content: flex-start;
}

@media (max-width: 767px) {
  .blackx-discover-page .bx-blog-page-actions {
    padding-inline: 16px;
  }
  .blackx-discover-page .bx-blog-page-actions .btn {
    width: 100%;
  }
}
