/*
 * Homepage v2 (proposta aprovada em Figma, "Proposta - Homepage v1", 2026-11)
 * So e carregado na homepage (include/cima.php, $hl_home_v2).
 */
:root {
  --hl-bg: #FAF8F5;
  --hl-ink: #212121;
  --hl-escuro: #2C2A29;
  --hl-sec: #707070;
  --hl-linha: #BFBFBF;
  --hl-bege: #DCDCD5;
  --hl-acento: #CD545B;
  --hl-display: "freightdispcmp-pro", "Playfair Display", serif;
}

/* ---------- Hero ---------- */
.template2.hl-hero {
  position: relative;
}
.template2.hl-hero .banners_wrap,
.template2.hl-hero .banners_wrap .banners_slide {
  height: 100vh;
  min-height: 640px;
  max-height: 1000px;
}
/* gradiente do Figma em vez do veu plano */
.template2.hl-hero .banners_wrap .banners_slide .slides li:after {
  background: linear-gradient(180deg, rgba(0,0,0,.25) 0%, rgba(0,0,0,.05) 35%, rgba(0,0,0,.6) 100%);
}
/* os textos de cada slide e os pontos dao lugar ao titulo + pesquisa */
.template2.hl-hero .banner_info,
.template2.hl-hero .flex-control-nav {
  display: none !important;
}

.hl-hero__content {
  position: absolute;
  z-index: 901;
  left: var(--var-margem);
  right: var(--var-margem);
  bottom: 52px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.hl-hero__title {
  margin: 0;
  max-width: 900px;
  font-family: var(--hl-display);
  font-weight: 700;
  font-size: 84px;
  line-height: 78px;
  text-transform: uppercase;
  color: #fff;
}

/* ---------- Pesquisa ---------- */
.hl-search,
.hl-search * {
  box-sizing: border-box;
}
.hl-search {
  display: flex;
  align-items: stretch;
  width: 100%;
  max-width: 1280px;
  height: 76px;
  background: var(--hl-bg);
  font-family: "Poppins", sans-serif;
  color: var(--hl-ink);
}
.hl-search__tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  flex: 0 0 230px;
  border-right: 1px solid var(--hl-linha);
}
.hl-search__tab {
  position: relative;
  cursor: pointer;
}
.hl-search__tab input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.hl-search__tab span {
  display: inline-block;
  font-size: 16px;
  color: var(--hl-sec);
  padding-bottom: 6px;
  border-bottom: 2px solid transparent;
}
.hl-search__tab input:checked + span {
  color: var(--hl-ink);
  font-weight: 500;
  border-bottom-color: var(--hl-ink);
}
.hl-search__tab input:focus-visible + span {
  outline: 1px dotted var(--hl-ink);
  outline-offset: 4px;
}
.hl-search__field {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 28px;
  border-right: 1px solid var(--hl-linha);
  min-width: 0;
}
.hl-search__field--livre { flex: 1 1 auto; }
.hl-search__field--onde { flex: 0 0 250px; }
.hl-search__field--tipologia { flex: 0 0 170px; }
.hl-search__field--preco { flex: 0 0 170px; border-right: 0; }
.hl-search__field label {
  font-size: 11px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--hl-sec);
  line-height: 1.2;
}
/* o select ocupa a celula toda (zona de clique grande), o texto fica por baixo da etiqueta */
.hl-search__field select {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--hl-ink);
  padding: 0;
  margin: 0;
  width: 100%;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  line-height: 1.4;
}
.hl-search__field select:focus { outline: none; }
/* pesquisa livre (mesma pesquisa por frase do cabecalho: FiltersearchString) */
.hl-search__field input[type=text] {
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--hl-ink);
  padding: 0;
  margin: 0;
  width: 100%;
  line-height: 1.4;
  text-overflow: ellipsis;
}
.hl-search__field input[type=text]::placeholder { color: var(--hl-sec); opacity: 1; }
.hl-search__field input[type=text]:focus { outline: none; }
.hl-search__field:focus-within { background: #F2EFEA; }
.hl-search__field select::-ms-expand { display: none; }
.hl-search__filtros { display: none; }
.hl-search__submit {
  flex: 1 1 auto;
  border: 0;
  border-radius: 0;
  background: var(--hl-ink);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s;
}
.hl-search__submit:hover,
.hl-search__submit:focus-visible { background: var(--hl-acento); }

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  .hl-hero__title { font-size: 64px; line-height: 60px; max-width: 700px; }
  .hl-search__tabs { flex-basis: 170px; padding: 0 20px; }
  .hl-search__field { padding: 0 20px; }
  .hl-search__field--livre { flex: 1 1 auto; }
  .hl-search__field--onde { flex: 0 0 180px; }
  .hl-search__field--tipologia,
  .hl-search__field--preco { flex: 0 0 130px; }
  .hl-search__submit { flex: 0 0 130px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 767px) {
  .template2.hl-hero .banners_wrap,
  .template2.hl-hero .banners_wrap .banners_slide {
    height: 100svh;
    min-height: 600px;
    max-height: 780px;
  }
  .hl-hero__content { bottom: 24px; gap: 20px; }
  .hl-hero__title { font-size: 44px; line-height: 42px; }
  .hl-search {
    flex-wrap: wrap;
    height: auto;
  }
  .hl-search__tabs {
    flex: 1 1 100%;
    height: 52px;
    padding: 0 20px;
    border-right: 0;
    border-bottom: 1px solid var(--hl-linha);
  }
  .hl-search__field { padding: 10px 20px; height: 64px; }
  .hl-search__field--livre { flex: 1 1 100%; border-right: 0; border-bottom: 1px solid var(--hl-linha); }
  .hl-search__field--onde {
    flex: 1 1 100%;
    border-right: 0;
    padding-right: 110px;
  }
  /* Tipologia e Preco so aparecem ao carregar em "Filtros" */
  .hl-search__field--tipologia,
  .hl-search__field--preco { display: none; flex: 0 0 50%; border-top: 1px solid var(--hl-linha); }
  .hl-search.is-open .hl-search__field--tipologia,
  .hl-search.is-open .hl-search__field--preco { display: flex; }
  .hl-search__filtros {
    display: block;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    padding: 4px 0;
    font-family: inherit;
    font-size: 14px;
    color: var(--hl-ink);
    text-decoration: underline;
    text-underline-offset: 4px;
    cursor: pointer;
  }
  .hl-search.is-open .hl-search__filtros { color: var(--hl-sec); }
  .hl-search__submit { flex: 1 1 100%; height: 52px; }
}

/* ---------- Links sublinhados (ver todos, descobrir...) ---------- */
.hl-link {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  color: var(--hl-ink);
  text-decoration: none;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  transition: color .2s;
}
.hl-link:hover, .hl-link:focus-visible { color: var(--hl-acento); }

/* ---------- HL Houses ---------- */
.hl-casas {
  padding: 120px var(--var-margem) 80px;
  background: var(--hl-bg);
  font-family: "Poppins", sans-serif;
  color: var(--hl-ink);
}
.hl-casas *, .hl-casas *:before, .hl-casas *:after { box-sizing: border-box; }
.hl-casas__topo {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}
.hl-casas__titulo {
  margin: 0;
  font-family: var(--hl-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 54px;
  text-transform: uppercase;
  color: var(--hl-ink);
}
.hl-casas__tabs { display: flex; gap: 32px; }
.hl-casas__tab {
  border: 0;
  background: transparent;
  padding: 0 0 6px;
  font-family: inherit;
  font-size: 16px;
  color: var(--hl-sec);
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.hl-casas__tab:hover { color: var(--hl-ink); }
.hl-casas__tab.is-active {
  color: var(--hl-ink);
  font-weight: 500;
  border-bottom-color: var(--hl-ink);
}
.hl-casas__grelha {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 24px;
  row-gap: 64px;
}
.hl-casas__grelha[hidden] { display: none; }
.hl-casa a { display: block; color: inherit; text-decoration: none; }
.hl-casa__foto {
  position: relative;
  aspect-ratio: 302 / 378;
  overflow: hidden;
  background: var(--hl-bege);
  margin-bottom: 14px;
}
.hl-casa__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hl-casa a:hover .hl-casa__foto img { transform: scale(1.03); }
.hl-casa__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 10px;
  background: var(--hl-acento);
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.32px;
  text-transform: uppercase;
  line-height: 1.3;
}
.hl-casa__local {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: .96px;
  text-transform: uppercase;
  color: var(--hl-sec);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hl-casa__info {
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 17px;
  white-space: nowrap;
}
.hl-casa__det { overflow: hidden; text-overflow: ellipsis; }
.hl-casa__preco { font-weight: 500; }
.hl-casas__ver { margin: 56px 0 0; text-align: center; }
.hl-casas__ver .hl-link { min-width: 170px; }

@media (max-width: 1200px) {
  .hl-casas__grelha { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hl-casas__grelha > li:nth-child(n+7) { display: none; }
  .hl-casa__info { font-size: 15px; }
}
@media (max-width: 767px) {
  .hl-casas { padding: 64px 20px 56px; }
  .hl-casas__topo { flex-direction: column; align-items: flex-start; margin-bottom: 32px; }
  .hl-casas__titulo { font-size: 40px; line-height: 40px; }
  .hl-casas__tabs { gap: 22px; overflow-x: auto; max-width: 100%; }
  .hl-casas__tab { font-size: 15px; white-space: nowrap; }
  .hl-casas__grelha { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; row-gap: 32px; }
  .hl-casas__grelha > li:nth-child(n+5) { display: none; }
  .hl-casa__foto { margin-bottom: 10px; }
  .hl-casa__local { font-size: 10px; letter-spacing: .6px; }
  .hl-casa__info { gap: 8px; font-size: 13px; }
  .hl-casas__ver { margin-top: 40px; }
}

/* ---------- Bairros ---------- */
.hl-link--pequeno { font-size: 15px; }
.hl-link--sec { color: var(--hl-sec); }
.hl-bairros {
  padding: 120px var(--var-margem);
  background: var(--hl-bege);
  font-family: "Poppins", sans-serif;
  color: var(--hl-ink);
}
.hl-bairros *, .hl-bairros *:before, .hl-bairros *:after { box-sizing: border-box; }
.hl-bairros__titulo {
  margin: 0 0 48px;
  font-family: var(--hl-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 54px;
  text-transform: uppercase;
  color: var(--hl-ink);
}
.hl-bairros__lista {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
}
.hl-bairro__foto {
  display: block;
  aspect-ratio: 237 / 316;
  overflow: hidden;
  background: #cfcfc6;
  margin-bottom: 14px;
}
.hl-bairro__foto img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.hl-bairro__foto:hover img { transform: scale(1.03); }
.hl-bairro__nome {
  margin: 0 0 14px;
  font-family: var(--hl-display);
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  text-transform: uppercase;
}
.hl-bairro__nome a { color: inherit; text-decoration: none; }
.hl-bairro__acoes { margin: 0; display: flex; gap: 20px; }
.hl-bairros__todos { margin: 48px 0 0; }

@media (max-width: 1200px) {
  .hl-bairros__titulo { font-size: 44px; line-height: 44px; }
  .hl-bairro__nome { font-size: 20px; }
}
@media (max-width: 767px) {
  .hl-bairros { padding: 64px 0 56px; }
  .hl-bairros__titulo { font-size: 36px; line-height: 38px; margin: 0 20px 28px; }
  /* bairros em scroll horizontal */
  .hl-bairros__lista {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    padding: 0 20px 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .hl-bairros__lista::-webkit-scrollbar { display: none; }
  .hl-bairro { flex: 0 0 62%; scroll-snap-align: start; }
  .hl-bairro__nome { font-size: 20px; margin-bottom: 10px; }
  .hl-bairros__todos { margin: 32px 20px 0; }
}

/* ---------- Tem uma casa para vender? ---------- */
.hl-link--claro { color: #fff; }
.hl-link--claro:hover, .hl-link--claro:focus-visible { color: var(--hl-bege); }
.hl-vender {
  display: flex;
  align-items: stretch;
  min-height: 620px;
  background: var(--hl-escuro);
  color: #fff;
  font-family: "Poppins", sans-serif;
}
.hl-vender *, .hl-vender *:before, .hl-vender *:after { box-sizing: border-box; }
.hl-vender__foto { flex: 0 0 50%; position: relative; overflow: hidden; }
.hl-vender__foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hl-vender__texto {
  flex: 1 1 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
  padding: 80px var(--var-margem) 80px 96px;
}
.hl-vender__titulo {
  margin: 0;
  max-width: 520px;
  font-family: var(--hl-display);
  font-weight: 700;
  font-size: 52px;
  line-height: 52px;
  text-transform: uppercase;
  color: #fff;
}
.hl-vender__p {
  margin: 0;
  max-width: 480px;
  font-size: 17px;
  line-height: 28px;
  color: #fff;
}
.hl-vender__acoes { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 28px; }
.hl-vender__botao {
  display: inline-block;
  padding: 20px 32px;
  background: var(--hl-bg);
  color: var(--hl-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .84px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.hl-vender__botao:hover, .hl-vender__botao:focus-visible { background: var(--hl-acento); color: #fff; }

@media (max-width: 1200px) {
  .hl-vender__texto { padding-left: 56px; }
  .hl-vender__titulo { font-size: 42px; line-height: 44px; }
}
@media (max-width: 767px) {
  .hl-vender { flex-direction: column; min-height: 0; }
  .hl-vender__foto { flex: none; aspect-ratio: 4 / 3; }
  .hl-vender__texto { padding: 48px 20px 56px; gap: 20px; }
  .hl-vender__titulo { font-size: 36px; line-height: 38px; }
  .hl-vender__p { font-size: 16px; line-height: 26px; }
  .hl-vender__acoes { gap: 20px; }
}

/* ---------- Casas HomeLovers (Who we are) ---------- */
.hl-sobre {
  display: grid;
  grid-template-columns: minmax(0, 600fr) minmax(0, 584fr);
  column-gap: 96px;
  align-items: center;
  padding: 140px var(--var-margem);
  background: var(--hl-bg);
  font-family: "Poppins", sans-serif;
  color: var(--hl-ink);
}
.hl-sobre *, .hl-sobre *:before, .hl-sobre *:after { box-sizing: border-box; }
.hl-sobre__foto { aspect-ratio: 600 / 700; overflow: hidden; background: var(--hl-bege); }
.hl-sobre__foto img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hl-sobre__eyebrow {
  margin: 0 0 24px;
  font-size: 13px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  color: var(--hl-sec);
}
.hl-sobre__titulo {
  margin: 0 0 24px;
  font-family: var(--hl-display);
  font-weight: 700;
  font-size: 56px;
  line-height: 54px;
  text-transform: uppercase;
  color: var(--hl-ink);
}
.hl-sobre__corpo { max-width: 520px; }
.hl-sobre__corpo p {
  margin: 0 0 24px;
  font-size: 17px;
  line-height: 30px;
  color: var(--hl-ink);
}
.hl-sobre__link { margin: 0; }

@media (max-width: 1200px) {
  .hl-sobre { column-gap: 56px; padding: 100px var(--var-margem); }
  .hl-sobre__titulo { font-size: 44px; line-height: 44px; }
  .hl-sobre__corpo p { font-size: 16px; line-height: 28px; }
}
@media (max-width: 767px) {
  .hl-sobre { grid-template-columns: 1fr; row-gap: 36px; padding: 64px 20px; }
  .hl-sobre__foto { aspect-ratio: 4 / 5; }
  .hl-sobre__eyebrow { margin-bottom: 16px; }
  .hl-sobre__titulo { font-size: 36px; line-height: 38px; margin-bottom: 20px; }
  .hl-sobre__corpo p { margin-bottom: 20px; }
}
