/* ==========================================================================
   RE/MAX Casabella · componentes
   Hero, faixa navy, bairros, bloco imagem + texto, carrosséis e cards de
   imóvel, onde atuamos, CTA de rodapé, rodapé, faixa de título, filtros,
   cards de corretor. Medidas e efeitos copiados do fineprop.com.
   ========================================================================== */

/* ---------- hero (fineprop .cover / .cover-title / .hero-wrapper) ---------- */
.cover {
  position: relative; overflow: hidden; background: #000; color: #fff;
  height: calc(100vh - var(--header-altura)); min-height: 580px; max-height: 900px;
  display: flex; align-items: center;
}
.cover-image {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0.8; transform: scale(1.02);
}
.cover-image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 60%); }
.cover-title { position: relative; z-index: 2; width: 100%; padding-left: 80px; }
.cover-title .container { max-width: var(--container); }
.hero-wrapper { text-align: left; max-width: 850px; opacity: 0; animation: fade-left var(--t-entrada) forwards; animation-delay: 0.3s; }
.mini-hero-tag {
  display: block; color: #fff; text-transform: uppercase; letter-spacing: 1.6px; font-family: var(--fonte-display);
  font-weight: 600; font-size: 0.95rem; margin-bottom: 0.5rem;
}
.hero-headline {
  color: #fff; font-size: clamp(2.2rem, 5.2vw, 5rem); font-weight: 600; text-transform: uppercase;
  line-height: 1; max-width: 750px; margin: 0 0 1rem; letter-spacing: -0.01em;
}
.hero-wrapper p {
  color: #fff; font-size: clamp(1.05rem, 1.6vw, 1.5rem); max-width: 850px; margin: 0 0 2rem;
  opacity: 0; animation: fade-left var(--t-entrada) forwards; animation-delay: 0.7s;
}
.hero-btn-wrapper { display: flex; flex-wrap: wrap; gap: 12px; opacity: 0; animation: fade-left var(--t-entrada) forwards; animation-delay: 0.9s; }
.hero-btn-wrapper .btn { font-size: 1.19rem; padding: 9px 20px; }

/* pílula + busca (fineprop: ai-search-toggle + horizontal-search) */
.hero-busca { margin-top: 1.5rem; opacity: 0; animation: fade-up var(--t-entrada) forwards; animation-delay: 1.1s; max-width: 900px; }
.ai-toggle-container {
  display: inline-flex; align-items: center; gap: 2px; background: #fff; border-radius: 8px; padding: 4px;
}
.ai-toggle-btn {
  border: 0; background: transparent; color: #000; font-family: var(--fonte-display); font-weight: 600; font-size: 1rem;
  letter-spacing: 0.02em; padding: 8px 32px; border-radius: 8px; transition: background-color 0.2s, color 0.2s;
}
.ai-toggle-btn.active { background: var(--navy); color: #fff; }
.busca-form {
  display: grid; grid-template-columns: 1.2fr 1.2fr 1fr auto; gap: 8px;
  background: rgba(255, 255, 255, 0.96); padding: 10px; border-radius: 8px; margin-top: 8px;
}
.busca-form select { font: inherit; padding: 12px 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; color: var(--texto); min-width: 0; }
.busca-form .btn { height: 100%; border-radius: 6px; }

/* trilho social (fineprop #homepage-social) */
.homepage-social {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; width: 80px;
}
.homepage-social::before, .homepage-social::after { content: ""; width: 1px; height: 80px; background: #fff; opacity: 0; }
.homepage-social::before { animation: fade-down var(--t-entrada) forwards; animation-delay: 0.3s; }
.homepage-social::after { animation: fade-up var(--t-entrada) forwards; animation-delay: 0.3s; }
.homepage-social a {
  color: #fff; margin: 1rem 0; opacity: 0; animation: fade-left var(--t-entrada) forwards; animation-delay: 0.3s;
  transition: transform var(--t-suave); display: inline-flex;
}
.homepage-social a:nth-child(2) { animation-delay: 0.5s; }
.homepage-social a:nth-child(3) { animation-delay: 0.7s; }
.homepage-social a:hover { transform: translateX(15px) rotate(9deg); color: #fff; }
.homepage-social .ico { width: 22px; height: 22px; }

@media (max-width: 991px) {
  .cover { height: auto; min-height: 640px; padding: 96px 0 72px; }
  .cover-title { padding-left: 0; }
  .hero-wrapper { text-align: center; margin: 0 auto; }
  .hero-headline { font-size: 3rem; margin-inline: auto; }
  .hero-wrapper p { margin-inline: auto; }
  .hero-btn-wrapper { justify-content: center; }
  .hero-busca { margin-inline: auto; }
  .busca-form { grid-template-columns: 1fr 1fr; }
  .busca-form .btn { grid-column: 1 / -1; }
  .homepage-social {
    top: auto; bottom: 16px; left: 0; right: 0; width: 100%; max-width: 550px; margin: auto;
    flex-direction: row; justify-content: space-evenly; transform: none;
  }
  .homepage-social::before, .homepage-social::after { display: none; }
  .homepage-social a { text-shadow: 1px 1px 1px #000; }
}
@media (max-width: 544px) {
  .hero-headline { font-size: 2rem; }
  .hero-btn-wrapper .btn { font-size: 1rem; }
  .ai-toggle-btn { padding: 8px 20px; font-size: 0.9rem; }
}

/* ---------- faixa navy (fineprop #categories: h2 40px/300, p 19px/300) ---------- */
.faixa-missao { padding: clamp(48px, 6vw, 80px) 0 clamp(24px, 3vw, 40px); text-align: center; }
.faixa-missao h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 300; color: #fff; }
.faixa-missao p { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 300; max-width: 820px; margin: 0.5rem auto 0; color: #fff; }

/* ---------- bairros (fineprop kv-featured-areas-widget premium-1) ---------- */
.kv-featured-areas-widget { padding: clamp(40px, 5vw, 64px) 0; }
.kv-featured-areas-widget-inner { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; max-width: var(--container); margin: 0 auto; padding-inline: var(--gutter); }
.kv-featured-area {
  position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center;
  width: 100%; max-width: calc(33.333% - 14px); height: 350px; padding: 2rem; overflow: hidden;
  background-size: cover; background-position: center; color: #fff; text-align: center;
  transition: padding var(--t-suave); isolation: isolate; border-radius: 0;
}
.kv-featured-area::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, 0.3); z-index: -1; transition: background var(--t-suave); }
.kv-featured-area::after {
  content: ""; position: absolute; left: 0; width: 100%; top: 50%; height: 50%; transform: translateY(-50%);
  background: rgba(var(--navy-rgb), 0); transition: height var(--t-suave), background var(--t-suave); z-index: -1;
}
.kv-featured-area h3 { position: relative; color: #fff; font-size: 1.75rem; font-weight: 300; text-shadow: 1px 1px 1px #444; margin: 0; }
.kv-featured-area h3::before {
  content: "Explore"; display: block; font-family: var(--fonte-corpo); font-size: 1rem; font-weight: 400;
  text-transform: uppercase; letter-spacing: 6.9px; margin-bottom: 0.7em; text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}
.kv-featured-area small { position: relative; margin-top: 0.6rem; font-size: 0.85rem; opacity: 0.9; letter-spacing: 0.04em; }
@media (min-width: 992px) {
  .kv-featured-area:hover { padding-bottom: 3rem; color: #fff; }
  .kv-featured-area:hover::after { height: 100%; background: rgba(var(--navy-rgb), 0.55); }
}
@media (max-width: 991px) { .kv-featured-area { max-width: calc(50% - 10px); height: 300px; } }
@media (max-width: 544px) { .kv-featured-area { max-width: 100%; height: 240px; } }

/* ---------- bloco imagem + texto (fineprop #section.big) ---------- */
/* a caixa de texto fica no fluxo (não absoluta): em telas médias o texto é mais alto que o bloco
   e, absoluta, ela vazava para a seção de baixo. O bloco cresce com o texto e a foto cobre o fundo. */
.section-big {
  position: relative; min-height: clamp(480px, 50vw, 750px); overflow: hidden; background: #000;
  display: flex; align-items: center; justify-content: flex-end; padding: clamp(32px, 4vw, 56px) clamp(24px, 6vw, 96px);
}
.section-big > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; opacity: 0.85; }
.section-big:hover > img { transform: scale(1.03); }
.section-big .section-content {
  position: relative; max-width: 500px;
  background: rgba(var(--navy-rgb), 0.55); backdrop-filter: blur(2px); padding: clamp(24px, 3vw, 40px); color: #fff;
}
.section-big .section-content h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 600; line-height: 1.05; }
.section-big .section-content p { font-size: clamp(1rem, 1.3vw, 1.1rem); font-weight: 300; margin-bottom: 1.5rem; }
.section-big .section-content .btn { padding: 1rem 2rem; font-size: 1rem; }
@media (max-width: 767px) {
  .section-big { min-height: 0; padding: 0; }
  .section-big .section-content { max-width: 100%; margin: 0; padding: 40px var(--gutter); background: rgba(var(--navy-rgb), 0.7); }
}

/* ---------- carrosséis de imóveis (fineprop .listings + components/listings/clean.css) ---------- */
.listings { padding: clamp(28px, 4vw, 48px) 0 8px; }
.listings .page-header { text-align: center; margin-bottom: 8px; }
.listings .page-header h2 { font-size: clamp(1.7rem, 3vw, 2.375rem); font-weight: 500; letter-spacing: 1.2px; color: #fff; }
.listings .page-header a { color: #fff; }
.listing-carousel-wrapper { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 50px; }
.listing-carousel-wrapper .swiper { padding: 20px 4px 40px; overflow: hidden; }
.listing-carousel-wrapper .swiper-slide { height: auto; }
.owl-nav-btn {
  position: absolute; top: 40%; z-index: 5; width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: #fff; box-shadow: var(--sombra-seta); display: flex; align-items: center; justify-content: center;
  color: #444; transition: opacity var(--t-rapida), transform var(--t-rapida);
}
.owl-nav-btn:hover { transform: scale(1.06); }
.owl-nav-btn.swiper-button-disabled { opacity: 0.35; cursor: default; }
.owl-nav-btn .ico { width: 14px; height: 14px; }
.owl-prev { left: 0; }
.owl-next { right: 0; }
@media (max-width: 768px) { .listing-carousel-wrapper { padding: 0 var(--gutter); } .owl-prev { left: 4px; } .owl-next { right: 4px; } }

/* card de imóvel */
.listing-box {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fff; border-radius: var(--radius-card); overflow: hidden; color: var(--texto);
  box-shadow: var(--sombra-card); transition: transform var(--t-card), box-shadow var(--t-card);
}
.listing-box-image {
  position: relative; height: 200px; background: var(--off-white) center / cover no-repeat; overflow: hidden;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}
.listing-box-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.4s; }
.listing-box-image-label {
  position: absolute; top: 12px; left: 12px; z-index: 2; background: var(--navy); color: #fff;
  font-family: var(--fonte-display); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 3px;
}
.listing-box-image-label.vermelho { background: var(--vermelho); }
.listing-box-image-links {
  position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: stretch; justify-content: stretch;
  opacity: 0; transition: opacity var(--t-card);
}
.listing-box-image-links a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff;
  font-family: var(--fonte-display); font-size: 0.9rem; font-weight: 600; letter-spacing: 0.04em;
  transition: padding var(--t-rapida), background-color var(--t-rapida);
}
.listing-box-image-links a:first-child { background: rgba(var(--navy-rgb), 0.9); }
.listing-box-image-links a:nth-child(2) { background: rgba(var(--navy-rgb), 0.78); }
.listing-box-image-links a:hover { background: var(--navy); color: #fff; }
.listing-box-image-links .ico { width: 16px; height: 16px; }
.listing-box-title { padding: 16px 20px 6px; border-bottom: 1px solid #eee; background: #fff; transition: background var(--t-card); }
.listing-box-title h3 { font-size: 1.5rem; font-weight: 700; color: #000; margin: 0; }
.listing-box-title h3 small { display: block; font-size: 0.75rem; font-weight: 500; color: var(--texto-suave); letter-spacing: 0.06em; text-transform: uppercase; }
.listing-box-title h2 { font-size: 1.0625rem; font-weight: 500; color: #000; margin: 4px 0 0; line-height: 1.3; }
.listing-box-title h2 a { color: #000; }
.listing-box-content { padding: 14px 20px 16px; flex: 1; font-family: var(--fonte-display); font-size: 0.81rem; color: var(--navy); }
.listing-box-content dl { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; row-gap: 2px; margin: 0; }
.listing-box-content dt { color: #666; font-weight: 400; line-height: 25px; }
.listing-box-content dd { margin: 0; font-weight: 700; color: var(--texto); line-height: 25px; text-align: right; }
.listing-box-pe { display: flex; gap: 8px; padding: 0 20px 18px; }
.listing-box-pe .btn { flex: 1; font-size: 0.85rem; padding: 9px 10px; }
@media (min-width: 992px) {
  .listing-box:hover { transform: translateY(-10px); box-shadow: var(--sombra-card-hover); }
  .listing-box:hover .listing-box-image-links { opacity: 1; }
}
@media (hover: none) { .listing-box-image-links { display: none; } }
.listings-vazio { text-align: center; color: #fff; opacity: 0.85; padding: 24px 0 40px; }
.fundo-branco .listings-vazio, .grade-imoveis + .listings-vazio { color: var(--texto); }

/* grade das páginas Comprar e Alugar */
.grade-imoveis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
/* reserva a altura enquanto a planilha carrega: sem isso o rodapé sobe e desce (CLS 0,38 em Comprar) */
.grade-imoveis:empty:not([data-pronto]) { min-height: 100vh; }
@media (max-width: 991px) { .grade-imoveis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grade-imoveis { grid-template-columns: 1fr; } }

/* ---------- onde atuamos (fineprop "Areas We Cover") ---------- */
.areas-cobertas { text-align: center; }
.areas-cobertas h2 { font-size: 1.87rem; font-weight: 300; }
.areas-cobertas ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 1000px; margin: 0 auto; }
.areas-cobertas li { display: inline-flex; align-items: center; gap: 6px; font-family: var(--fonte-display); font-size: 0.9rem; font-weight: 300; }
.areas-cobertas .ico { width: 12px; height: 12px; color: #999; }
.areas-cobertas a { color: var(--navy); }
.areas-cobertas a:hover { color: var(--vermelho); }

/* ---------- CTA de rodapé (fineprop #footer-cta) ---------- */
.footer-cta {
  position: relative; min-height: 500px; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: #fff; padding: 64px var(--gutter);
  background-color: var(--navy); background-size: cover; background-position: center top; background-repeat: no-repeat;
  /* a foto entra por style="background-image:linear-gradient(...), url(...)" na própria seção,
     porque url() dentro de custom property resolve relativo ao CSS, não à página */
}
.footer-cta h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 300; }
.footer-cta p { font-size: clamp(1.05rem, 1.4vw, 1.3rem); max-width: 750px; margin: 0.5rem auto 1.75rem; }
.footer-cta .btn { padding: 12px 24px; font-weight: 600; font-size: 1rem; letter-spacing: 1.8px; text-transform: uppercase; }

/* ---------- rodapé (fineprop .footer-top / .footer-bottom) ---------- */
.footer { background: var(--footer-bg); color: var(--footer-texto); }
.footer a { color: var(--footer-texto); }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { padding: clamp(40px, 5vw, 64px) 0 32px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.footer-logo { display: block; max-width: 190px; margin-bottom: 20px; }
.footer-text { margin: 0; line-height: 1.5; font-weight: 400; font-size: 0.95rem; }
.footer-text.title { font-family: var(--fonte-display); font-weight: 600; margin-bottom: 14px; font-size: 1.05rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer small { display: block; font-size: 0.85rem; opacity: 0.85; margin-top: 12px; }
.footer .social { display: flex; gap: 12px; margin-top: 20px; }
.footer .social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, 0.45); border-radius: 50%; transition: background var(--t-rapida); }
.footer .social a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.footer .social .ico { width: 18px; height: 18px; }
.footer-links li { padding: 4px 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.5); padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.85rem; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; }
.footer .btn-vermelho { font-size: 0.9rem; padding: 8px 18px; }
@media (max-width: 991px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-top { grid-template-columns: 1fr; text-align: center; } .footer-logo { margin-inline: auto; } .footer .social { justify-content: center; } .footer-bottom { justify-content: center; text-align: center; } }

/* WhatsApp flutuante */
.zap-flutuante {
  position: fixed; right: 18px; bottom: 18px; z-index: 900; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25); transition: transform var(--t-rapida);
}
.zap-flutuante:hover { transform: scale(1.06); color: #fff; }
.zap-flutuante .ico { width: 30px; height: 30px; }

/* ---------- faixa de título das páginas internas (fineprop .content-title) ---------- */
.content-title { background: var(--navy); color: #fff; padding: clamp(36px, 5vw, 64px) 0; }
.content-title h1 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 300; margin: 0; }
.content-title p { margin: 0.5rem 0 0; opacity: 0.9; max-width: 760px; font-size: 1.05rem; }
.content-title.com-foto { background-size: cover; background-position: center; background-repeat: no-repeat; padding: clamp(56px, 8vw, 110px) 0; }

/* ---------- barra de filtros (fineprop roster / results filter) ---------- */
.filtro-barra {
  background: #fff; border-radius: var(--radius); box-shadow: var(--sombra-card); padding: 20px;
  display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr 0.9fr auto; gap: 16px; align-items: end; margin: -34px 0 32px; position: relative; z-index: 2;
}
.filtro-barra .campo label { font-size: 0.72rem; }
.filtro-barra .btn { padding: 12px 28px; }
.filtro-barra.compacta { grid-template-columns: 1fr auto; }
.resultado-linha { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 18px; color: var(--texto-suave); font-size: 0.95rem; }
.resultado-linha strong { color: var(--navy); }
.resultado-linha a { font-size: 0.9rem; }
@media (max-width: 991px) { .filtro-barra { grid-template-columns: 1fr 1fr; } .filtro-barra .btn { grid-column: 1 / -1; } }
@media (max-width: 540px) { .filtro-barra { grid-template-columns: 1fr; margin-top: -20px; } }

/* ---------- corretores (fineprop #agent-roster) ---------- */
.corretor-card { background: #fff; border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--sombra-card); transition: transform var(--t-card), box-shadow var(--t-card); display: flex; flex-direction: column; }
.corretor-card .foto { aspect-ratio: 3 / 4; background: var(--off-white); overflow: hidden; }
.corretor-card .foto img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.corretor-card .foto.sem-foto { display: flex; align-items: center; justify-content: center; color: var(--navy); }
.corretor-card .foto.sem-foto .ico { width: 30%; height: auto; opacity: 0.35; }
.corretor-card .dados { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.corretor-card h3 { font-size: 1.15rem; font-weight: 600; margin: 0; }
.corretor-card .cargo { font-family: var(--fonte-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--vermelho); font-weight: 600; }
.corretor-card .creci { font-size: 0.85rem; color: var(--texto-suave); }
.corretor-card .acoes { margin-top: auto; padding-top: 14px; display: flex; gap: 8px; }
.corretor-card .acoes .btn { flex: 1; font-size: 0.85rem; padding: 9px 10px; }
@media (min-width: 992px) { .corretor-card:hover { transform: translateY(-10px); box-shadow: var(--sombra-card-hover); } }

/* ---------- depoimentos / números ---------- */
.numeros { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; text-align: center; }
.numeros .n { font-family: var(--fonte-display); font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; color: var(--vermelho); line-height: 1; }
.numeros .l { font-size: 0.95rem; margin-top: 6px; }
@media (max-width: 767px) { .numeros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.cards-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.card-arg { background: #fff; border-radius: var(--radius-card); padding: 28px 24px; box-shadow: var(--sombra-card); }
.card-arg .ico-caixa { width: 48px; height: 48px; border-radius: 50%; background: rgba(var(--navy-rgb), 0.08); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card-arg .ico-caixa .ico { width: 24px; height: 24px; }
.card-arg h3 { font-size: 1.15rem; font-weight: 600; }
.card-arg p { margin: 0; font-size: 0.97rem; }
@media (max-width: 991px) { .cards-3 { grid-template-columns: 1fr; } }

.ico { display: inline-block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: none; }
.ico.cheio { fill: currentColor; stroke: none; }
