/* ==========================================================================
   PHOTOREALISTIC SMART AUTOMATION HERO SHOWCASE
   Replaces simplistic wireframes with high-definition architectural realism.
   Features real photo layers, realistic sliding steel gate, warm window illumination,
   pulsing electrical perimeter energy, and interactive HUD radar hotspots.
   ========================================================================== */

.realistic-villa-showcase {
  position: relative;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  background: #070d14;
}

.realistic-villa-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10.5;
  background-size: cover;
  background-position: center bottom;
  overflow: hidden;
}

/* Base Photo Layer */
.villa-photo-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.72) contrast(1.15) saturate(1.1);
  transition: filter 0.8s ease;
}

.realistic-villa-showcase.lights-on .villa-photo-base {
  filter: brightness(0.85) contrast(1.12) saturate(1.15);
}

/* Dusk Sky & Vignette Overlay */
.villa-dusk-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 26, 0.4) 0%, rgba(5, 10, 18, 0.2) 50%, rgba(5, 10, 18, 0.85) 100%);
  pointer-events: none;
}

/* Realistic Window Glow Illumination */
.real-window-glow {
  position: absolute;
  border-radius: 2px;
  opacity: 0.15;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.8s ease;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(255, 220, 130, 0.95) 0%, rgba(255, 180, 70, 0.5) 55%, rgba(255, 140, 20, 0.1) 85%);
  mix-blend-mode: screen;
}

.real-window-glow.lit {
  opacity: 0.95;
  box-shadow: 0 0 35px 12px rgba(255, 210, 110, 0.6), 0 0 80px 25px rgba(255, 170, 50, 0.3);
}

/* Window Positions mapped to luxury facade */
.win-pos-1 { top: 32%; left: 24%; width: 14%; height: 18%; }
.win-pos-2 { top: 32%; left: 42%; width: 18%; height: 18%; }
.win-pos-3 { top: 32%; left: 64%; width: 15%; height: 18%; }
.win-pos-ground { top: 56%; left: 62%; width: 22%; height: 24%; }

/* Entrance Door Smart Lock Glow */
.real-door-lock-glow {
  position: absolute;
  top: 68%;
  left: 49.5%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #00cec9;
  box-shadow: 0 0 12px 4px #00cec9;
  transition: all 0.5s ease;
  pointer-events: none;
}

.realistic-villa-showcase.unlocked .real-door-lock-glow {
  background: #2ecc71;
  box-shadow: 0 0 16px 6px #2ecc71;
}

/* Realistic Steel Boundary Wall & Sliding Gate */
.real-gate-assembly {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 38%;
  pointer-events: none;
}

/* Textured Stone Boundary Wall */
.real-boundary-wall {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 72%;
  background: linear-gradient(180deg, #18222d 0%, #0d151e 100%);
  border-top: 3px solid #283747;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.5);
}

.real-wall-pillar-left {
  position: absolute;
  bottom: 0;
  left: 36%;
  width: 6%;
  height: 95%;
  background: linear-gradient(90deg, #2c3e50 0%, #1a252f 100%);
  border-top: 4px solid #34495e;
  border-right: 1px solid rgba(255,255,255,0.1);
  z-index: 5;
}

.real-wall-pillar-right {
  position: absolute;
  bottom: 0;
  right: 16%;
  width: 6%;
  height: 95%;
  background: linear-gradient(90deg, #2c3e50 0%, #1a252f 100%);
  border-top: 4px solid #34495e;
  border-left: 1px solid rgba(255,255,255,0.1);
  z-index: 5;
}

/* High-Voltage Electric Fence Along Wall Top */
.real-electric-fence-bracket {
  position: absolute;
  top: -34px;
  width: 3px;
  height: 34px;
  background: #bdc3c7;
  box-shadow: 0 0 2px #fff;
  z-index: 6;
}

.bracket-1 { left: 4%; }
.bracket-2 { left: 18%; }
.bracket-3 { left: 32%; }
.bracket-4 { right: 12%; }
.bracket-5 { right: 2%; }

.real-fence-wires {
  position: absolute;
  top: -30px;
  left: 0;
  width: 100%;
  height: 30px;
  z-index: 7;
}

.real-fence-wire-strand {
  position: absolute;
  width: 100%;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.4);
}

.strand-1 { top: 4px; }
.strand-2 { top: 11px; }
.strand-3 { top: 18px; }
.strand-4 { top: 25px; }

/* Pulsing Neon Electrical Discharge Pulse */
.real-energy-pulse {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pulse-line {
  stroke: #ff3131;
  stroke-width: 2;
  stroke-dasharray: 12 24;
  filter: drop-shadow(0 0 8px #ff3131) drop-shadow(0 0 16px rgba(255, 49, 49, 0.8));
  animation: realFencePulse 1.4s linear infinite;
}

@keyframes realFencePulse {
  0% { stroke-dashoffset: 72; }
  100% { stroke-dashoffset: 0; }
}

/* Realistic Architectural Sliding Gate Leaf */
.real-sliding-gate-leaf {
  position: absolute;
  bottom: 0;
  left: 41%;
  width: 38%;
  height: 88%;
  background: linear-gradient(180deg, #1a222a 0%, #0c1015 100%);
  border: 2px solid #2d3b48;
  box-shadow: -8px 0 20px rgba(0, 0, 0, 0.7);
  z-index: 4;
  transition: transform 1.8s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  padding: 6px 12px;
}

/* Gate Horizontal Slats (Modern Luxury Villa Design) */
.real-gate-slat {
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #37474f 0%, #263238 50%, #37474f 100%);
  border-radius: 1px;
}

.realistic-villa-showcase.gate-open .real-sliding-gate-leaf {
  transform: translateX(84%);
}

/* Motor Housing at base of Left Pillar */
.real-gate-motor-unit {
  position: absolute;
  bottom: 2px;
  left: 36.5%;
  width: 24px;
  height: 32px;
  background: #111a22;
  border: 1px solid #00cec9;
  border-radius: 2px;
  z-index: 8;
  box-shadow: 0 0 8px rgba(0, 206, 201, 0.4);
}

.real-motor-status-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
  margin: 4px auto 0;
  animation: blinkLed 2s infinite;
}

@keyframes blinkLed {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Infrared Safety Photocell Beam */
.real-photocell-beam {
  position: absolute;
  bottom: 14px;
  left: 42%;
  width: 37%;
  height: 2px;
  background: rgba(255, 49, 49, 0.45);
  box-shadow: 0 0 8px #ff3131;
  z-index: 9;
}

/* Interactive Radar Hotspots */
.villa-hud-hotspot {
  position: absolute;
  z-index: 15;
  cursor: pointer;
}

.hotspot-radar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 49, 49, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.25s ease;
}

.hotspot-radar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--fatima-red);
  animation: radarPing 2s infinite;
}

@keyframes radarPing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.hotspot-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff;
}

.hotspot-tooltip {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 26, 38, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 14px;
  border-radius: 2px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: #ffffff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.villa-hud-hotspot:hover .hotspot-tooltip,
.villa-hud-hotspot.is-active .hotspot-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Positions of Hotspots */
.spot-fence { top: 58%; left: 16%; }
.spot-gate { top: 78%; left: 52%; }
.spot-windows { top: 38%; left: 48%; }
.spot-lock { top: 66%; left: 46%; }

/* Showcase Action Control Bar at Bottom */
.showcase-action-bar {
  background: #09121a;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.showcase-status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
}

.showcase-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 6px #2ecc71;
}

.showcase-buttons-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.showcase-ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0;
  transition: all 0.2s ease;
}

.showcase-ctrl-btn:hover, .showcase-ctrl-btn.active {
  background: var(--fatima-red);
  border-color: var(--fatima-red);
  color: #ffffff;
}
