/* ===================================================================
   HERO SECTION DINÂMICO - SITE1
   Baseado no layout do ResendeImoveis, com Art Direction (Mobile/Desktop)
   =================================================================== */

/* ========== WRAPPER PRINCIPAL ========== */
.hero-wrapper {
  position: relative;
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  height: 80vh;
  overflow: visible; /* Permite search bar ultrapassar */
  margin-top: 0 !important;
  z-index: 20;
  padding: 0 !important;
}

/* ========== SLIDER CONTAINER ========== */
.hero-area-slider {
  background: inherit;
}

.hero-area-slider,
.hero1-section-area,
.slick-slide {
  padding: 0 !important;
  margin: 0 !important;
}

.hero-area-slider,
.hero1-section-area {
  height: 80vh;
  position: relative;
  overflow: hidden;
}

/* Picture tag como container block */
.hero1-section-area picture {
  display: block;
  width: 100%;
  height: 100%;
}

/* Imagem Full Cover - sem gaps */
.hero-custom-img {
  width: 100%;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block;
}

/* Todos elementos Slick com 80vh */
.hero-area-slider,
.hero-area-slider .slick-list,
.hero-area-slider .slick-track,
.hero-area-slider .slick-slide,
.hero-area-slider .slick-slide > div {
  height: 80vh !important;
}

.hero-area-slider .slick-slide > div,
.hero1-section-area {
  height: 80vh !important;
  min-height: unset !important;
  max-height: 80vh !important;
  width: 100%;
  display: block !important;
  align-items: initial !important;
}

/* Links e picture preenchem altura total */
.hero1-section-area a,
.hero1-section-area picture {
  display: block;
  width: 100%;
  height: 100% !important;
}

/* Remover aspect-ratio, usar height fixo */
.hero1-section-area {
  width: 100%;
}

/* ========== OVERLAY DE INFORMAÇÕES DO IMÓVEL ========== */
.hero-property-overlay {
  position: absolute;
  bottom: 140px;
  left: 40px;
  z-index: 15;
  background: rgba(7, 59, 58, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 20px 28px;
  max-width: 500px;
  color: #fff;
  pointer-events: none;
  animation: heroSlideIn 0.8s ease-out forwards;
}

@keyframes heroSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tipo de Negócio - badges */
.hero-property-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.hero-property-badge {
  display: inline-block;
  background: #cbcd30;
  color: #030e0f;
  font-family: "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Título do Imóvel */
.hero-property-title {
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Descrição do Imóvel */
.hero-property-description {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 12px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Valor do Imóvel */
.hero-property-price {
  font-family: "Inter", sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #cbcd30;
  margin-bottom: 10px;
}

.hero-property-price span {
  font-size: 18px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  margin-left: 8px;
}

/* Características do Imóvel */
.hero-property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.hero-property-feature {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hero-property-feature i {
  font-size: 14px;
  color: #cbcd30;
}

/* ========== CTA / DESCRIÇÃO FLUTUANTE ========== */
.hero-cta-overlay {
  position: absolute;
  bottom: 140px;
  left: 40px;
  z-index: 15;
  max-width: 500px;
  pointer-events: none;
  animation: heroCTAFloat 0.8s ease-out forwards;
}

@keyframes heroCTAFloat {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-cta-text {
  font-family: "Inter", sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  line-height: 1.3;
}

/* ========== SETAS DE NAVEGAÇÃO ========== */
.hero-arrows {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  z-index: 10;
  pointer-events: none;
  display: flex;
  justify-content: space-between;
  padding: 0 30px;
}

.hero-prev-arrow,
.hero-next-arrow {
  pointer-events: auto;
}

.hero-prev-arrow button,
.hero-next-arrow button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-prev-arrow button:hover,
.hero-next-arrow button:hover {
  background: rgba(255, 255, 255, 0.4);
  transform: scale(1.1);
}

/* ========== BARRA DE PESQUISA POSICIONAMENTO ========== */
.hero-wrapper .new-search-area {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  background: transparent;
  padding: 20px 0;
  transform: translateY(80%);
  pointer-events: none;
  margin-top: 0 !important;
}

.hero-wrapper .new-search-wrapper {
  pointer-events: auto;
  margin-top: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* ========== RESPONSIVIDADE ========== */

/* Tablet */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-wrapper .new-search-area {
    transform: translateY(50%);
  }

  .hero-property-overlay {
    bottom: 120px;
    left: 30px;
    max-width: 420px;
    padding: 18px 24px;
  }

  .hero-property-title {
    font-size: 18px;
  }

  .hero-property-price {
    font-size: 22px;
  }

  .hero-cta-overlay {
    bottom: 120px;
    left: 30px;
  }

  .hero-cta-text {
    font-size: 24px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .hero-wrapper {
    height: 75vh;
  }

  .hero-area-slider,
  .hero1-section-area {
    height: 75vh;
  }

  .hero-area-slider,
  .hero-area-slider .slick-list,
  .hero-area-slider .slick-track,
  .hero-area-slider .slick-slide,
  .hero-area-slider .slick-slide > div,
  .hero1-section-area {
    height: 75vh !important;
    max-height: 75vh !important;
  }

  .hero-arrows {
    padding: 0 15px;
  }

  .hero-prev-arrow button,
  .hero-next-arrow button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero-wrapper .new-search-area {
    transform: translateY(95%);
  }

  /* Overlay do imóvel no mobile */
  .hero-property-overlay {
    bottom: 100px;
    left: 15px;
    right: 15px;
    max-width: calc(100% - 30px);
    padding: 14px 18px;
    border-radius: 12px;
  }

  .hero-property-title {
    font-size: 16px;
  }

  .hero-property-description {
    display: none; /* Ocultar descrição no mobile */
  }

  .hero-property-price {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .hero-property-price span {
    font-size: 14px;
  }

  .hero-property-features {
    gap: 10px;
    font-size: 13px;
  }

  .hero-property-badge {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* CTA no mobile */
  .hero-cta-overlay {
    bottom: 100px;
    left: 15px;
    right: 15px;
    max-width: calc(100% - 30px);
  }

  .hero-cta-text {
    font-size: 20px;
  }
}

/* Mobile muito pequeno */
@media (max-width: 480px) {
  .hero-wrapper {
    height: 70vh;
  }

  .hero-area-slider,
  .hero1-section-area,
  .hero-area-slider .slick-list,
  .hero-area-slider .slick-track,
  .hero-area-slider .slick-slide,
  .hero-area-slider .slick-slide > div {
    height: 70vh !important;
    max-height: 70vh !important;
  }

  .hero-property-overlay {
    bottom: 80px;
    padding: 12px 14px;
  }

  .hero-property-title {
    font-size: 14px;
  }

  .hero-property-price {
    font-size: 18px;
  }

  .hero-cta-overlay {
    bottom: 80px;
  }

  .hero-cta-text {
    font-size: 18px;
  }
}

/* ========== ESPAÇAMENTO PÓS-HERO (Seção que segue o Hero) ========== */
/* A barra de pesquisa transborda do hero-wrapper via transform: translateY().
   O espaçamento precisa ser proporcional à altura da barra em cada breakpoint. */

/* Desktop: barra horizontal, ~110px de altura, translateY(80%) → desce ~88px */
.hero-spacing {
  margin-top: 150px !important;
}

/* Tablet: barra começa a quebrar, translateY(50%) */
@media (min-width: 768px) and (max-width: 1024px) {
  .hero-spacing {
    margin-top: 200px !important;
  }
}

/* Mobile: barra empilhada verticalmente (~450px de altura), translateY(95%) → desce ~427px */
@media (max-width: 767px) {
  .hero-spacing {
    margin-top: 480px !important;
  }
}

/* Mobile muito pequeno: barra ainda mais alta com padding */
@media (max-width: 480px) {
  .hero-spacing {
    margin-top: 520px !important;
  }
}
