/* ═══════════════════════════════════════════════════════════
   EP Off-Plan — Design Enhancement Layer v1.3
   Enqueued after widgets.css via class-widgets.php
═══════════════════════════════════════════════════════════ */

/* ── GLOBAL SPACING TOKEN ────────────────────────────────── */
:root {
  --ep-section-py: clamp(44px, 6vw, 80px);
  --ep-section-px: clamp(20px, 5vw, 60px);
}

/* Kill Elementor inter-section margins */
.elementor-section + .elementor-section,
.e-con + .e-con {
  margin-top: 0 !important;
}

/* ══════════════════════════════════════════════════════════
   UNIFIED LIGHT BACKGROUND — no white gaps on sides
   All light sections: same bg, consistent side padding,
   no border-radius cuts, no isolated boxes.
══════════════════════════════════════════════════════════ */
.ep-description-split,
.ep-description-block,
.ep-gallery-section,
.ep-amenities-wrap,
.ep-floorplans,
.ep-location-wrap,
.ep-dev-band {
  background: #F8F8FA !important;
  position: relative;
  overflow: visible;
}

/* Alternate sections with pure white for subtle rhythm */
.ep-gallery-section,
.ep-floorplans {
  background: #FFFFFF !important;
}

/* Thin hairline separators — feels connected, not cut */
.ep-description-split,
.ep-description-block,
.ep-gallery-section,
.ep-amenities-wrap,
.ep-floorplans,
.ep-location-wrap {
  border-top: 1px solid rgba(0,0,0,.06) !important;
}

/* Remove any rogue overflow:hidden that creates white side strips */
.ep-description-split,
.ep-description-block,
.ep-gallery-section,
.ep-amenities-wrap,
.ep-location-wrap {
  overflow: hidden;
}

/* ── HIGHLIGHTS STRIP ────────────────────────────────────── */
.ep-highlights-strip {
  background: #0A0A0A !important;
  border: none !important;
  margin-bottom: 0 !important;
  position: relative;
}
.ep-highlights-strip::after {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(224,46,22,.5), transparent);
  pointer-events: none;
}

/* ── SUBTLE DOT PATTERN — light sections ─────────────────── */
.ep-description-split::before,
.ep-description-block::before,
.ep-gallery-section::before,
.ep-floorplans::before,
.ep-location-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(0,0,0,.05) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 50%, black 0%, transparent 100%);
  opacity: 0.45;
}
.ep-description-split > *,
.ep-description-block > *,
.ep-gallery-section > *,
.ep-floorplans > *,
.ep-location-wrap > * {
  position: relative;
  z-index: 1;
}

/* ══════════════════════════════════════════════════════════
   PAYMENT PLAN & ROI — dark, no pattern
══════════════════════════════════════════════════════════ */
.ep-payment-wrap {
  background: #0A0A0A !important;
  clip-path: none !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}
.ep-payment-wrap::before {
  content: '';
  position: absolute;
  top: -80px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 320px;
  background: radial-gradient(ellipse, rgba(224,46,22,.10) 0%, transparent 70%);
  pointer-events: none; z-index: 0;
}
.ep-payment-wrap::after { display: none !important; }
.ep-payment-wrap > * { position: relative; z-index: 1; }

.ep-roi-wrap {
  clip-path: none !important;
  border: none !important;
  position: relative;
  overflow: hidden;
}
.ep-roi-wrap::before {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(224,46,22,.07) 0%, transparent 65%);
  pointer-events: none; z-index: 0;
}
.ep-roi-wrap::after { display: none !important; }
.ep-roi-wrap > * { position: relative; z-index: 1; }

/* ══════════════════════════════════════════════════════════
   FLOOR PLANS — no rounded corners
══════════════════════════════════════════════════════════ */
.ep-fp-panel {
  border-radius: 0 !important;
  border: none !important;
  border-top: 1px solid rgba(0,0,0,.07) !important;
  box-shadow: none !important;
}
.ep-fp-panel:first-child { border-top: none !important; }
.ep-fp-tab { border-radius: var(--ep-radius-sm) !important; }

/* ══════════════════════════════════════════════════════════
   AMENITIES — DAMAC-style: icon nav + horizontal card scroll
══════════════════════════════════════════════════════════ */

/* Wrap full-width, light bg consistent with other sections */
.ep-amenities-wrap {
  padding: var(--ep-section-py) 0 !important;
  background: #F8F8FA !important;
  overflow: hidden !important;
}

/* ── Icon nav strip (replaces old pill tags) ─────────────── */
.ep-amenity-tags-outer {
  padding: 0 var(--ep-section-px) !important;
  overflow: visible !important;
}
.ep-amenity-tags-outer::after { display: none !important; } /* remove old fade */

.ep-amenity-tags-row {
  display: flex !important;
  gap: 0 !important;
  overflow-x: auto !important;
  padding: 0 0 24px !important;
  scrollbar-width: none !important;
  border-bottom: 1px solid rgba(0,0,0,.08) !important;
}
.ep-amenity-tags-row::-webkit-scrollbar { display: none !important; }

/* Each tag: icon above, label below — DAMAC style */
.ep-amenity-tag {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 10px !important;
  padding: 16px 24px !important;
  border-radius: 0 !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  color: #9CA3AF !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  transition: color 0.25s ease, border-color 0.25s ease !important;
  flex-shrink: 0 !important;
  min-width: 110px !important;
  box-shadow: none !important;
  transform: none !important;
  margin-bottom: -1px !important; /* sit on top of border-bottom hairline */
}
.ep-amenity-tag svg,
.ep-amenity-tag img.ep-amenity-tag-icon {
  width: 28px !important;
  height: 28px !important;
  opacity: 0.4 !important;
  transition: opacity 0.25s ease !important;
  filter: none !important;
  color: currentColor !important;
}
.ep-amenity-tag:hover {
  color: #16181D !important;
  background: transparent !important;
  border-color: rgba(0,0,0,.2) !important;
  transform: none !important;
  box-shadow: none !important;
}
.ep-amenity-tag:hover svg,
.ep-amenity-tag:hover img.ep-amenity-tag-icon {
  opacity: 0.7 !important;
}
.ep-amenity-tag.active {
  color: #E02E16 !important;
  border-color: #E02E16 !important;
  background: transparent !important;
  transform: none !important;
  box-shadow: none !important;
}
.ep-amenity-tag.active svg,
.ep-amenity-tag.active img.ep-amenity-tag-icon {
  opacity: 1 !important;
  color: #E02E16 !important;
}

/* ── Panel area: horizontal scrolling cards (DAMAC style) ── */
.ep-amenity-panels-wrap {
  padding: 28px var(--ep-section-px) 0 !important;
  margin-top: 0 !important;
  overflow: visible !important;
}

/* Hide all panels except active */
.ep-amenity-panel {
  display: none !important;
}
.ep-amenity-panel.active {
  display: flex !important;
  flex-direction: row !important;
  gap: 20px !important;
  grid-template-columns: unset !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  animation: ep-panel-fade 0.4s ease both !important;
}
@keyframes ep-panel-fade {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* Each panel: image card on left (big), description on right */
.ep-amenity-panel.active .ep-amenity-img-wrap {
  flex: 0 0 55% !important;
  min-height: 380px !important;
  max-height: 460px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #e0e0e0 !important;
  position: relative !important;
}
.ep-amenity-panel.active .ep-amenity-img-wrap::after { display: none !important; }
.ep-amenity-panel.active .ep-amenity-img-wrap img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 12px !important;
  transition: transform 0.7s ease !important;
}
.ep-amenity-panel.active:hover .ep-amenity-img-wrap img {
  transform: scale(1.04) !important;
}

/* Content side */
.ep-amenity-panel.active .ep-amenity-content {
  flex: 1 !important;
  background: transparent !important;
  padding: 16px 0 16px 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}
.ep-amenity-number {
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .18em !important;
  color: #E02E16 !important;
  margin-bottom: 14px !important;
}
.ep-amenity-number::after { display: none !important; }
.ep-amenity-name {
  font-size: clamp(22px, 2.6vw, 32px) !important;
  font-weight: 800 !important;
  color: #16181D !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  margin: 0 0 16px !important;
}
.ep-amenity-desc {
  font-size: 15px !important;
  line-height: 1.85 !important;
  color: #6B7280 !important;
}

/* No-image fallback */
.ep-amenity-panel.active.ep-no-img {
  grid-template-columns: unset !important;
}
.ep-amenity-panel.active.ep-no-img .ep-amenity-content {
  padding: 0 !important;
}

/* Mobile */
@media (max-width: 768px) {
  .ep-amenity-panel.active {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .ep-amenity-panel.active .ep-amenity-img-wrap {
    flex: none !important;
    width: 100% !important;
    min-height: 260px !important;
    max-height: 320px !important;
  }
  .ep-amenity-panel.active .ep-amenity-content {
    padding: 0 !important;
  }
  .ep-amenity-tag {
    min-width: 90px !important;
    padding: 12px 16px !important;
    font-size: 10px !important;
  }
}

/* ══════════════════════════════════════════════════════════
   LOCATION MAP
══════════════════════════════════════════════════════════ */
.ep-location-map {
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 8px 32px rgba(0,0,0,.10) !important;
}
.ep-location-row {
  transition: background 0.2s ease !important;
}
.ep-location-row:hover {
  background: rgba(224,46,22,.04) !important;
}

/* ══════════════════════════════════════════════════════════
   ROI CARD
══════════════════════════════════════════════════════════ */
.ep-roi-card {
  border: 1px solid rgba(255,255,255,.1) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

/* ══════════════════════════════════════════════════════════
   TYPOGRAPHY & BUTTONS
══════════════════════════════════════════════════════════ */
.ep-section-title { letter-spacing: -0.03em !important; }
.ep-btn { transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1) !important; }
.ep-reveal,
.ep-reveal-left,
.ep-reveal-right {
  transition-duration: 0.8s !important;
  transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1) !important;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  :root { --ep-section-py: clamp(36px, 8vw, 60px); }
}

/* ══════════════════════════════════════════════════════════
   FULL-WIDTH SECTION FIX
   The plugin's sections (description, location, floorplans,
   gallery, amenities) have max-width + margin:auto on the
   SECTION element itself, creating white side gaps.
   We make the section full-width and constrain content inside.
══════════════════════════════════════════════════════════ */

/* ── Description ────────────────────────────────────────── */
.ep-description-block {
  max-width: 100% !important;
  margin: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.ep-description-split {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.ep-description-grid {
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* ── Gallery ─────────────────────────────────────────────── */
.ep-gallery-section {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ── Floor Plans ─────────────────────────────────────────── */
.ep-floorplans {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.ep-fp-inner,
.ep-fp-layout {
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* ── Location ────────────────────────────────────────────── */
.ep-location-wrap {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
.ep-location-grid {
  max-width: 1400px !important;
  margin: 0 auto !important;
}

/* ── Amenities ───────────────────────────────────────────── */
.ep-amenity-tags-outer,
.ep-amenity-panels-wrap {
  max-width: 100% !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* ── Developer band / dev stats ─────────────────────────── */
.ep-dev-band {
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* ── ROI wrap inner ──────────────────────────────────────── */
.ep-roi-inner {
  max-width: 1400px !important;
}

/* ── Payment inner ───────────────────────────────────────── */
.ep-payment-inner {
  max-width: 1400px !important;
}

/* ── Section header / eyebrow inner constraint ───────────── */
.ep-gallery-header {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ══════════════════════════════════════════════════════════
   DESCRIPTION SECTION — STAT ROW + IMAGE FIX
══════════════════════════════════════════════════════════ */

/* Grid: vertically stretch both columns to fill each other */
.ep-description-grid {
  align-items: stretch !important;
}

/* Text column: space content vertically */
.ep-description-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 0 !important;
}
.ep-description-text .ep-section-title {
  margin-bottom: 20px !important;
}
.ep-description-text .ep-section-body {
  margin-bottom: 36px !important;
}

/* Stat row — 2×2 grid of key figures */
.ep-desc-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  overflow: hidden;
  margin-top: auto;
}
.ep-desc-stat {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 22px;
  background: #fff;
  transition: background 0.2s ease;
}
.ep-desc-stat:hover {
  background: #FAFAFA;
}
.ep-desc-stat-value {
  font-family: var(--ep-font);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 800;
  color: #16181D;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ep-desc-stat-label {
  font-family: var(--ep-font);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9CA3AF;
}

/* Image: fill the full column height, no fixed aspect-ratio */
.ep-description-media {
  height: 100% !important;
  min-height: 480px;
}
.ep-description-media img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: unset !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}

/* Section padding: match the hero's inner padding rhythm */
.ep-description-split,
.ep-description-block {
  padding: clamp(48px, 7vw, 96px) var(--ep-section-px) !important;
}

@media (max-width: 900px) {
  .ep-desc-stats {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 32px;
  }
  .ep-description-media {
    min-height: 320px !important;
  }
}
@media (max-width: 600px) {
  .ep-desc-stats { grid-template-columns: 1fr 1fr; }
  .ep-desc-stat { padding: 16px; }
  .ep-desc-stat-value { font-size: 15px; }
}

/* ══════════════════════════════════════════════════════════
   HERO — FIX BLACK GAP ON SCROLL
   The JS parallax (translateY) was exposing the black
   hero background when scrolling up. Removed entirely.
   We over-scale the slides so there is always coverage,
   and use CSS background-attachment for a safe parallax.
══════════════════════════════════════════════════════════ */

/* Ensure the hero container clips everything */
.ep-hero {
  overflow: hidden !important;
}

/* Slides and bg: always scale slightly larger than the
   container so translateY never reveals a gap, and reset
   any transform set by the old JS on page load/bfcache */
.ep-hero-slide,
.ep-hero-bg {
  transform: none !important;
  will-change: auto !important;
  /* scale via CSS — covers ±10% vertical movement */
  top: -5% !important;
  bottom: -5% !important;
  height: 110% !important;
}
