.property-hero {
  position: relative;
  width: 100%;
  height: 70vh; /* Taller for more impact */
  min-height: 500px;
  max-height: 850px;
  overflow: hidden;
  margin-bottom: 0; /* Align with container */
}

.hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.property-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 10s ease-out;
}

.property-hero:hover img {
  transform: scale(1.05); /* Subtle Ken Burns effect */
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(32, 47, 78, 0.1) 0%,
    rgba(32, 47, 78, 0.3) 50%,
    rgba(32, 47, 78, 0.7) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  height: 100%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4rem 2rem;
  max-width: 1600px; /* Aligned with container */
  margin: 0 auto;
}

.hero-text {
  max-width: 1000px;
  animation: elegantFadeUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-location-badge {
  display: inline-block;
  background-color: var(--color-accent);
  color: #fff;
  padding: 0.4rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.property-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 6vw, 4.5rem);
  line-height: 1.05;
  font-weight: 300;
  margin: 0;
  letter-spacing: -0.04em;
  text-shadow: 0 4px 30px rgba(0,0,0,0.2);
}

@keyframes elegantFadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  .property-hero {
    height: 60vh;
  }
}

@media (max-width: 768px) {
  .property-hero {
    height: 35vh; /* Mucho más manejable en vertical */
    min-height: 300px;
  }
  .hero-content {
      padding: 1.5rem;
  }
}


/* --- ESTADO DE LA PROPIEDAD EN LA CABECERA --- */
.hero-estado-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 0.5rem;
  padding: 0.34rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: middle;
}

.hero-estado-badge--sold {
  background: rgba(160, 30, 45, 0.92);
  color: #fff5f6;
}

.hero-estado-badge--reserved {
  background: rgba(191, 135, 0, 0.92);
  color: #fffaf0;
}

.hero-estado-badge--rented {
  background: rgba(52, 76, 122, 0.92);
  color: #f4f7fc;
}

@media (max-width: 640px) {
  .hero-estado-badge {
    margin-left: 0;
    margin-top: 0.45rem;
  }
}
