/* =========================================================
   DETALLE PROPIEDAD
   ========================================================= */

.property-detail-section{
  padding:60px 6%;
  position:relative;
  z-index:5;
}

.property-detail-card{
  overflow:hidden;
  border-radius:30px;
  background:rgba(0,0,0,0.58);
  border:1px solid rgba(255,255,255,0.16);
  backdrop-filter:blur(18px);
  box-shadow:
    0 0 46px rgba(109,92,255,0.25),
    0 0 38px rgba(255,47,191,0.16),
    inset 0 0 42px rgba(255,255,255,0.04);
}

/* =========================================================
   IMAGEN PRINCIPAL
   ========================================================= */

.property-detail-image-top{
  width:100%;
  height:520px;
  position:relative;
  overflow:hidden;
  background:rgba(0,0,0,0.35);
}

.property-detail-image-top img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  filter:brightness(0.92) contrast(1.05);
}

.property-detail-image-top::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(to bottom, transparent 45%, rgba(0,0,0,0.72)),
    radial-gradient(circle at 70% 30%, rgba(255,47,191,0.16), transparent 38%);
  pointer-events:none;
}

.property-detail-image-top span{
  position:absolute;
  left:28px;
  top:28px;
  z-index:3;
  padding:12px 22px;
  border-radius:999px;
  background:linear-gradient(90deg,#ff2fbf,#6d5cff);
  color:#fff;
  font-weight:950;
  text-transform:uppercase;
  box-shadow:
    0 0 22px rgba(255,47,191,0.62),
    0 0 44px rgba(109,92,255,0.35);
}

/* =========================================================
   INFO
   ========================================================= */

.property-detail-info{
  padding:42px;
}

.property-detail-info h2{
  margin-bottom:18px;
  font-size:clamp(32px,5vw,66px);
  line-height:0.95;
  text-transform:uppercase;
  color:#fff;
  text-shadow:0 0 28px rgba(0,0,0,0.75);
}

.detail-price{
  display:block;
  margin-bottom:22px;
  color:#ff4fd8;
  font-size:clamp(26px,3vw,42px);
  font-weight:950;
  text-shadow:0 0 18px rgba(255,47,191,0.45);
}

.detail-location{
  margin-bottom:24px;
  color:#eef0fb;
  font-size:18px;
  line-height:1.5;
}

.detail-location i{
  margin-right:8px;
  color:#fff;
}

.detail-description{
  margin-top:10px;
  max-width:980px;
  color:#e7e8f3;
  font-size:17px;
  line-height:1.75;
}

/* =========================================================
   BOTONES
   ========================================================= */

.detail-actions{
  margin-top:34px;
  display:flex;
  gap:16px;
  flex-wrap:wrap;
}

/* =========================================================
   MEDIA GRID
   ========================================================= */

.detail-media-grid{
  margin-top:38px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  padding:0 6% 60px;
  box-sizing:border-box;
}

.detail-media-card{
  width:100%;
  max-width:100%;
  overflow:hidden;
  padding:30px;
  border-radius:28px;
  background:rgba(0,0,0,0.56);
  border:1px solid rgba(255,255,255,0.15);
  backdrop-filter:blur(18px);
  box-shadow:
    0 0 38px rgba(109,92,255,0.22),
    inset 0 0 38px rgba(255,255,255,0.035);
  box-sizing:border-box;
}

.detail-media-card h2{
  margin-bottom:22px;
  font-size:clamp(24px,3vw,38px);
  text-transform:uppercase;
  color:#fff;
}

/* =========================================================
   VIDEO / IFRAME RESPONSIVE
   ========================================================= */

.video-container{
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:22px;
  background:#000;
  aspect-ratio:16/9;
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-container video,
.video-container iframe{
  width:100%;
  height:100%;
  border:0;
  display:block;
}

.video-container video{
  object-fit:contain;
  background:#000;
}

/* =========================================================
   VIDEO DIRECTO SIN CONTAINER
   (por seguridad si algún video quedó viejo)
   ========================================================= */

.detail-media-card video,
.detail-media-card iframe{
  width:100%;
  max-width:100%;
  height:auto;
  display:block;
  border:0;
  border-radius:18px;
}

/* =========================================================
   GALERIA / MEDIA VACIA
   ========================================================= */

.media-empty{
  min-height:280px;
  border-radius:22px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:14px;
  text-align:center;
  color:#e7e8f3;
  background:rgba(255,255,255,0.07);
  border:1px dashed rgba(255,255,255,0.24);
}

.media-empty i{
  font-size:42px;
  color:#ff4fd8;
  filter:drop-shadow(0 0 14px rgba(255,47,191,0.45));
}

.media-empty p{
  font-weight:800;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width:900px){

  .property-detail-section{
    padding:42px 4%;
  }

  .property-detail-image-top{
    height:360px;
  }

  .property-detail-info{
    padding:28px;
  }

  .detail-media-grid{
    grid-template-columns:1fr;
    padding:0 4% 40px;
  }

}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width:600px){

  .property-detail-section{
    padding:28px 3%;
  }

  .property-detail-card{
    border-radius:22px;
  }

  .property-detail-image-top{
    height:260px;
  }

  .property-detail-image-top span{
    left:16px;
    top:16px;
    padding:10px 16px;
    font-size:12px;
  }

  .property-detail-info{
    padding:20px;
  }

  .property-detail-info h2{
    font-size:30px;
    line-height:1.05;
  }

  .detail-price{
    font-size:28px;
  }

  .detail-location{
    font-size:15px;
  }

  .detail-description{
    font-size:15px;
    line-height:1.65;
  }

  .detail-actions{
    flex-direction:column;
  }

  .detail-actions .btn{
    width:100%;
  }

  .detail-media-grid{
    gap:20px;
    padding:0 3% 30px;
  }

  .detail-media-card{
    padding:16px;
    border-radius:20px;
  }

  .detail-media-card h2{
    font-size:22px;
  }

  .video-container{
    border-radius:16px;
  }

}

/* =========================================================
   EXTRA SMALL
   ========================================================= */

@media (max-width:420px){

  .property-detail-image-top{
    height:220px;
  }

  .property-detail-info h2{
    font-size:26px;
  }

  .detail-price{
    font-size:24px;
  }

}