/* ══════════════════════════════════════════════════════════
   PROJECT PAGE — 2026 premium design
   Sections: Jabalpur · Renders Cascade · Hotspot Map · Total Plots
══════════════════════════════════════════════════════════ */

/* ── Shared utilities ── */
.section-eyebrow {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  display: block;
}
.section-eyebrow.dark  { color: var(--gold); }
.section-eyebrow.light { color: rgba(255,233,188,0.75); }
.section-eyebrow.center { text-align: center; }

/* ── Scroll reveal ── */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-up.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════ JABALPUR INTRO ══════════════ */
/* ── Jabalpur mural wrapper — real <img> so it occupies natural height ── */
.jabalpur-mural-wrap {
  position: relative;
  line-height: 0;          /* kills phantom gap below inline img */
  overflow: hidden;
}
.jabalpur-mural-img {
  width: 100%;
  height: auto;
  display: block;
}
/* Thin dark fade at top blends with the hero's dark bottom */
.jabalpur-top-fade {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 18%;
  background: linear-gradient(to bottom, #1B0904 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

/* ── Jabalpur text — solid section, guaranteed below the mural ── */
.jabalpur-text-section {
  background: #fdf8f2;
  padding: 64px 0 72px;
}
.jabalpur-text-wrap {
  margin-top: 24px;
}
.jabalpur-text-wrap p {
  color: #2a1208;
  font-size: 15.5px;
  line-height: 1.85;
  margin-bottom: 18px;
}
.jabalpur-text-wrap em { font-style: italic; color: var(--gold); }
.jabalpur-text-wrap strong { color: var(--dark); font-weight: 600; }
.jabalpur-img-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(27,9,4,0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(149,104,52,0.35);
  border-radius: 10px;
  padding: 10px 18px;
}
.badge-title {
  display: block;
  font-family: var(--font-headings);
  font-size: 15px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.badge-sub {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.65);
  margin-top: 2px;
}

/* ══════════════ RENDERS SLIDESHOW ══════════════ */
.renders-section {
  padding: 80px 0 90px;
  background: var(--white);
  background-image: linear-gradient(180deg, #fff 0%, #faf7f3 100%);
}

/* ── Slideshow wrapper ── */
.renders-slideshow {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 44px;
  background: var(--dark);
  box-shadow: 0 20px 60px rgba(27,9,4,0.22);
}

/* ── Each slide ── */
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
}
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: brightness(0.88) saturate(1.05);
  transition: transform 8s linear;
}
.slide.active img {
  transform: scale(1.04);
}

/* ── Label overlay ── */
.render-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(27,9,4,0.80) 100%);
  display: flex;
  align-items: flex-end;
  padding: 28px 36px;
}
.render-label-wrap {
  display: flex;
  align-items: baseline;
  gap: 14px;
}
.render-num {
  font-family: var(--font-headings);
  font-size: 11px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.22em;
  opacity: 0.85;
}
.render-label {
  font-family: var(--font-headings);
  font-size: clamp(18px, 2.4vw, 28px);
  font-weight: 300;
  color: var(--white);
  letter-spacing: 0.05em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

/* Shimmer on active slide */
.render-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,233,188,0.08) 50%, transparent 60%);
  pointer-events: none;
}

/* ── Arrow buttons ── */
.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid rgba(149,104,52,0.55);
  background: rgba(27,9,4,0.55);
  backdrop-filter: blur(8px);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  z-index: 10;
  padding: 0;
}
.slide-arrow:hover {
  background: rgba(149,104,52,0.75);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.slide-prev { left: 20px; }
.slide-next { right: 20px; }

/* ── Dot indicators ── */
.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}
.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s, transform 0.3s, width 0.3s;
}
.slide-dot.active {
  background: var(--gold);
  border-color: var(--gold);
  width: 24px;
  border-radius: 4px;
}

/* ══════════════ AMENITIES MAP ══════════════ */
.amenities-map-section {
  position: relative;
  padding: 90px 0 80px;
  background: var(--dark2);
  overflow: hidden;
}

/* Floating background particles */
.map-particles { position: absolute; inset: 0; pointer-events: none; }
.map-particle {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,104,52,0.18), transparent 70%);
  animation: particleFloat var(--dur, 12s) ease-in-out infinite alternate;
}
.map-particle:nth-child(1) { width:300px; height:300px; top:10%; left:5%;  --dur:14s; }
.map-particle:nth-child(2) { width:200px; height:200px; top:60%; left:70%; --dur:11s; animation-delay:2s; }
.map-particle:nth-child(3) { width:180px; height:180px; top:20%; right:10%;--dur:16s; animation-delay:1s; }
.map-particle:nth-child(4) { width:140px; height:140px; top:75%; left:20%; --dur:13s; animation-delay:4s; }
.map-particle:nth-child(5) { width:250px; height:250px; top:40%; left:45%; --dur:18s; animation-delay:3s; }
.map-particle:nth-child(6) { width:160px; height:160px; top:5%;  left:55%; --dur:15s; animation-delay:5s; }
@keyframes particleFloat {
  from { transform: translate(0,0) scale(1); opacity: 0.6; }
  to   { transform: translate(30px, 20px) scale(1.15); opacity: 1; }
}

.map-hint {
  font-size: 13px;
  color: rgba(255,233,188,0.55);
  text-align: center;
  margin-bottom: 36px;
  letter-spacing: 0.05em;
}

/* Map container */
.hotspot-map-wrap {
  position: relative;
  display: block;
  margin: 0 auto;
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  line-height: 0;
}
.hotspot-base-img {
  width: 100%;
  display: block;
  border-radius: 14px;
  filter: brightness(0.92) contrast(1.05);
}

/* Individual hotspot pin */
.hotspot-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 20;
  cursor: pointer;
}

/* Outer pulsing ring */
.pin-ring {
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid rgba(149,104,52,0.55);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  animation: pinRingPulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pinRingPulse {
  0%   { transform: translate(-50%,-50%) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%,-50%) scale(2.2); opacity: 0; }
}

/* Core dot */
.pin-core {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px rgba(149,104,52,0.9), 0 0 24px rgba(149,104,52,0.4);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hotspot-pin:hover .pin-core {
  transform: scale(1.5);
  box-shadow: 0 0 18px rgba(149,104,52,1), 0 0 40px rgba(149,104,52,0.6);
}

/* Glassmorphism tooltip */
.pin-tooltip {
  position: absolute;
  bottom: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20,8,3,0.90);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(149,104,52,0.35);
  border-radius: 10px;
  padding: 10px 14px;
  min-width: 160px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  z-index: 30;
  box-shadow: 0 8px 32px rgba(0,0,0,0.45);
}
.hotspot-pin:hover .pin-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.pin-tooltip strong {
  font-family: var(--font-headings);
  font-size: 13px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.pin-tooltip small {
  display: block;
  font-size: 11px;
  color: rgba(255,255,255,0.60);
  margin-top: 2px;
}
.tooltip-icon { font-size: 20px; line-height: 1; margin-top: 1px; }

/* Left-anchored tooltips (right-edge pins) */
.pin-tooltip-left {
  left: auto;
  right: calc(100% + 14px);
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) translateX(8px);
}
.hotspot-pin:hover .pin-tooltip-left {
  transform: translateY(-50%) translateX(0);
}

/* Right-anchored tooltips (left-edge pins) */
.pin-tooltip-right {
  left: calc(100% + 14px);
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) translateX(-8px);
}
.hotspot-pin:hover .pin-tooltip-right {
  transform: translateY(-50%) translateX(0);
}

/* Amenity chips row */
.amenity-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 40px;
}
.amenity-chip {
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,233,188,0.80);
  background: rgba(149,104,52,0.12);
  border: 1px solid rgba(149,104,52,0.25);
  border-radius: 20px;
  padding: 7px 16px;
  letter-spacing: 0.04em;
  transition: background 0.2s, color 0.2s;
}
.amenity-chip:hover {
  background: rgba(149,104,52,0.28);
  color: var(--cream);
}

/* ══════════════ TOTAL PLOTS ══════════════ */
.total-plots-section {
  position: relative;
  padding: 90px 0 80px;
  background: var(--white);
  overflow: hidden;
}
.plots-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(149,104,52,0.07), transparent 65%);
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  pointer-events: none;
}

/* Counter cards */
.plots-counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 48px 0 52px;
}
.plot-counter-card {
  background: #faf7f3;
  border-radius: 14px;
  padding: 36px 20px 24px;
  text-align: center;
  border: 1px solid rgba(149,104,52,0.12);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27,9,4,0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.plot-counter-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(27,9,4,0.12);
}
.plot-counter-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  opacity: 0.7;
}
.plot-counter-number {
  font-family: var(--font-headings);
  font-size: clamp(52px, 6vw, 72px);
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 30px rgba(149,104,52,0.25);
}
.total-card .plot-counter-number {
  font-size: clamp(60px, 8vw, 90px);
  color: var(--dark);
  text-shadow: none;
}
.plot-counter-label {
  font-family: var(--font-headings);
  font-size: 13px;
  font-weight: 300;
  color: #888;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Stacked bar */
.plots-type-bar-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.type-bar-track {
  display: flex;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(27,9,4,0.10);
}
.type-bar-segment {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: filter 0.2s;
  cursor: default;
  width: 0;             /* starts at 0 — animated by JS */
}
.type-bar-segment.animated { transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.type-bar-segment:hover { filter: brightness(1.12); }
.general-seg { background: var(--gold); }
.lig-seg     { background: #c8963d; }
.ews-seg     { background: #e8c070; }
.seg-label {
  font-family: var(--font-headings);
  font-size: 12px;
  font-weight: 300;
  color: rgba(255,255,255,0.90);
  letter-spacing: 0.06em;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
  white-space: nowrap;
}

.type-bar-legend {
  display: flex;
  gap: 28px;
  justify-content: center;
  margin-top: 16px;
  flex-wrap: wrap;
}
.type-bar-legend span {
  font-size: 12px;
  color: #666;
  display: flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
}

/* ══════════════ RESPONSIVE ══════════════ */
@media (max-width: 960px) {
  .jabalpur-grid { grid-template-columns: 1fr; gap: 40px; }
  .renders-cascade {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  .render-card.render-tall { grid-row: unset; }
  .render-card.render-wide { grid-column: 1 / -1; height: 260px; }
  .plots-counters-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .renders-cascade { grid-template-columns: 1fr; }
  .render-card.render-wide { height: 220px; }
  .plots-counters-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .type-bar-legend { gap: 14px; }
  .amenity-chips { gap: 8px; }
  .amenity-chip { font-size: 11px; padding: 6px 12px; }
}
