/*
Theme Name: Corretor Base
Theme URI: https://vaipromar.com.br/
Author: Seu Nome
Author URI: https://vaipromar.com.br/
Description: Tema base flexível para sites de corretores imobiliários.
Version: 1.1
License: GPL-2.0+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: corretor-base
*/

body { margin:0; font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;}
.site-header { display:flex; align-items:center; padding:10px 5%; background:#f8f8f8; }
.site-header .logo { flex:0 0 auto; }
.site-header .spacer { flex:1 1 auto; }
.main-nav ul { list-style:none; margin:0; padding:0; display:flex; gap:20px; }
.main-nav a { text-decoration:none; color:#222; font-weight:600; }

.banner { position:relative; height:420px; background-size:cover; background-position:center; display:flex; align-items:center; justify-content:center; }
.banner-overlay { text-align:center; background:rgba(0,0,0,0.4); padding:60px 20px; border-radius:8px; }
.banner-overlay h1 { color:#fff; margin:0 0 20px; font-size:2.4rem; }

.corretor-search { display:flex; gap:10px; justify-content:center; flex-wrap:wrap; }
.corretor-search select, .corretor-search button { padding:10px 14px; font-size:1rem; border-radius:6px; border:1px solid #ccc; }
.corretor-search button { background:#0066ff; color:#fff; border:none; cursor:pointer; }

.resultado .grid { display:grid; gap:25px; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); padding:40px 5%; }
.resultado .produto { background:#fff; border:1px solid #eee; border-radius:8px; overflow:hidden; box-shadow:0 2px 6px rgba(0,0,0,0.05);}
.resultado .produto img { width:100%; height:180px; object-fit:cover; }
.resultado .produto h3 { margin:12px; font-size:1.1rem; }
.resultado .produto p { margin:0 12px 12px; color:#666; font-size:0.9rem; }

.site-footer { text-align:center; padding:40px 10px; background:#111; color:#fff; font-size:0.9rem; }

/*** ====== single-imovel custom styles ====== ***/
.imovel-hero{
    position:relative;
    width:100%;
    height:60vh;
    overflow:hidden;
}
.imovel-hero-video,
.imovel-hero-fallback{
    position:absolute;
    top:0;left:0;
    width:100%;
    height:100%;
    object-fit:cover;
}
.imovel-hero-info{
    position:absolute;
    top:50%;
    right:8%;
    transform:translateY(-50%);
    background:rgba(0,0,0,0.55);
    padding:32px 40px;
    border-radius:8px;
    text-align:left;
    color:#fff;
    max-width:360px;
}
.imovel-hero-info h1{
    margin:8px 0 4px;
    font-size:2rem;
    line-height:1.2;
}
.imovel-hero-info span{
    display:block;
    font-size:1rem;
    font-weight:600;
}

.imovel-nav{
    background:#f5f5f5;
    border-top:1px solid #eee;
    border-bottom:1px solid #eee;
}
.imovel-nav ul{
    list-style:none;
    margin:0;
    padding:0;
    max-width:960px;
    margin:auto;
    display:flex;
    gap:32px;
    overflow-x:auto;
}
.imovel-nav a{
    display:block;
    padding:18px 0;
    color:#333;
    font-weight:600;
    text-decoration:none;
    position:relative;
}
.imovel-nav a:hover,
.imovel-nav a:focus{
    color:#0066ff;
}
.imovel-nav a.active:after,
.imovel-nav a:hover:after{
    content:'';
    position:absolute;
    bottom:-1px;
    left:0;
    width:100%;
    height:3px;
    background:#0066ff;
}

.imovel-sobre{
    max-width:960px;
    margin:60px auto;
    padding:0 20px;
}
.imovel-sobre-texto{
    font-size:1rem;
    line-height:1.6;
    color:#444;
}
.imovel-sobre-btn{
    margin-top:30px;
    text-align:center;
}
.btn-apresentacao{
    background:#0066ff;
    color:#fff;
    padding:14px 34px;
    border-radius:6px;
    text-decoration:none;
    display:inline-block;
    font-weight:700;
}

.imovel-diferenciais .dif-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:24px;
    padding:40px 5%;
}
.imovel-diferenciais figure{
    text-align:center;
}
.imovel-diferenciais img{
    width:80px;
    height:80px;
    object-fit:contain;
}
.imovel-diferenciais figcaption{
    margin-top:8px;
    font-size:0.9rem;
    color:#555;
}


/* ====== Seção "Faça uma simulação" – apenas CSS (home) ====== */
\1,
\1,
\1,
\1{
  background:#123247;
  color:#fff;
  padding:64px 5%;
  text-align:center;
}
\1 h2,
\1 h2,
\1 h2,
\1 h2{
  font-weight:800;
  font-size:2rem;
  margin:0 0 12px;
  font-family:Montserrat, sans-serif;
}
\1 p,
\1 p,
\1 p,
\1 p{
  margin:0 0 24px;
  font-size:1.05rem;
  opacity:.92;
}
\1 .btn,
\1 .btn,
\1 .btn,
\1 .btn,
\1 a.button,
\1 a.button,
\1 a.button,
\1 a.button,
\1 .wp-block-button__link,
\1 .wp-block-button__link,
\1 .wp-block-button__link,
\1 .wp-block-button__link{
  display:inline-block;
  padding:16px 28px;
  border:1px solid rgba(255,255,255,.75);
  color:#fff;
  background:transparent;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
}
\1 .btn:hover,
\1 .btn:hover,
\1 .btn:hover,
\1 .btn:hover,
\1 a.button:hover,
\1 a.button:hover,
\1 a.button:hover,
\1 a.button:hover,
\1 .wp-block-button__link:hover,
\1 .wp-block-button__link:hover,
\1 .wp-block-button__link:hover,
\1 .wp-block-button__link:hover{
  background:rgba(255,255,255,.08);
}

/* Alvo robusto para a seção "Faça uma simulação" na Home sem mexer no HTML */
.wp-block-group:has(.wp-block-button__link[href*="simulador"]),
.wp-block-group:has(a.button[href*="simulador"]){
  background:#123247 !important;
  color:#fff !important;
  padding:64px 5% !important;
  text-align:center !important;
}
.wp-block-group:has(.wp-block-button__link[href*="simulador"]) h2,
.wp-block-group:has(.wp-block-button__link[href*="simulador"]) h3{
  color:#fff !important;
  font-weight:800 !important;
  font-family:Montserrat, sans-serif !important;
  font-size:2rem !important;
  margin:0 0 12px !important;
}
.wp-block-group:has(.wp-block-button__link[href*="simulador"]) p{
  color:#fff !important;
  opacity:.92 !important;
  margin:0 0 24px !important;
  font-size:1.05rem !important;
}
.wp-block-group:has(.wp-block-button__link[href*="simulador"]) .wp-block-button__link,
.wp-block-group:has(a.button[href*="simulador"]){
  display:inline-block !important;
  padding:16px 28px !important;
  border:1px solid rgba(255,255,255,.75) !important;
  color:#fff !important;
  background:transparent !important;
  border-radius:14px !important;
  font-weight:700 !important;
  text-decoration:none !important;
}


/* ===== Header baseline ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 72px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
  background: #fff; /* base sólida; mude no painel se quiser transparente */
  border-bottom: 1px solid var(--color-border);
}
.site-header .logo { padding-left: clamp(12px, 2vw, 24px); }
.site-header .spacer { display: none; }
.main-nav.nav { padding-right: clamp(12px, 2vw, 24px); gap: 20px; }

/* ===== Hero baseline ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  min-height: 420px;
  display: grid; place-items: center;
  color: #fff;
}
@media (min-width: 992px){ .hero{ min-height: 560px; } }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero .wrap { position: relative; z-index: 1; width: min(1150px, 92%); margin: 0 auto; }
.hero h1 { text-align: center; margin: 0 0 18px; color: #fff; }

/* ===== Filtro – “pílula segmentada” ===== */
.search.corretor-search {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 14px; box-shadow: var(--shadow-2);
  padding: 10px;
  width: min(1150px, 92%);
  margin: 0 auto;
}
.search.corretor-search form,
.search.corretor-search { display: grid; grid-template-columns: 1fr 1fr 1fr 56px; gap: 0; align-items: stretch; }
.search.corretor-search select,
.search.corretor-search input {
  border: none; background: transparent; padding: 14px 16px; height: 100%;
  border-right: 1px solid var(--color-border);
}
.search.corretor-search select:last-of-type,
.search.corretor-search input:last-of-type { border-right: none; }
.search.corretor-search button[type="submit"],
.search.corretor-search .btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: var(--color-primary); color: #fff;
  border-radius: 10px; width: 56px; height: 44px; margin: 6px;
  cursor: pointer;
}
@media (max-width: 900px){
  .search.corretor-search form,
  .search.corretor-search { grid-template-columns: 1fr 1fr; row-gap: 8px; }
  .search.corretor-search select, .search.corretor-search input { border-right: none; border-bottom: 1px solid var(--color-border); }
  .search.corretor-search button[type="submit"], .search.corretor-search .btn-submit { grid-column: 1 / -1; width: 100%; height: 48px; margin: 0; }
}

/* ===== Integra baseline com variantes já criadas ===== */
.search--pills .corretor-search select,
.search--pills .corretor-search input {
  background: var(--filter-pill-bg); color: var(--filter-pill-text);
  border-right-color: rgba(0,0,0,0.06);
}
.search--grid .corretor-search { grid-template-columns: repeat(4, 1fr); }
/* ===== Header baseline ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: 72px;
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

/* ===== Hero baseline (menor) ===== */
.hero {
  position: relative;
  background-size: cover;
  background-position: center center;
  min-height: var(--hero-height-mobile);
  display: grid; place-items: center;
  color: #fff;
}
@media (min-width: 992px){
  .hero { min-height: var(--hero-height-desktop); }
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
.hero .wrap { position: relative; z-index: 1; width: min(1150px, 92%); margin: 0 auto; }
.hero h1 { text-align: center; margin: 0 0 18px; color: #fff; }

/* ===== Barra de busca (2 colunas + botão) ===== */
.search.corretor-search {
  background: #fff; border: 1px solid var(--color-border);
  border-radius: 14px; box-shadow: var(--shadow-2);
  padding: 10px; width: min(1150px, 92%); margin: 0 auto;
}
.search.corretor-search form,
.search.corretor-search {
  display: grid; grid-template-columns: 1fr 1fr 56px; gap: 0; align-items: stretch;
}
.search.corretor-search select,
.search.corretor-search input {
  border: none; background: transparent; padding: 14px 16px; height: 100%;
  border-right: 1px solid var(--color-border);
}
.search.corretor-search select:last-of-type,
.search.corretor-search input:last-of-type { border-right: none; }

/* Botão com ícone de lupa (sem alterar o PHP) */
.search.corretor-search button[type="submit"],
.search.corretor-search .btn-submit {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: var(--color-primary); color: transparent; /* texto invisível */
  border-radius: 10px; width: 56px; height: 44px; margin: 6px;
  cursor: pointer;
  background-image: url('https://cury.net/website/images/facelift/search.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}
.search.corretor-search button[type="submit"]:hover,
.search.corretor-search .btn-submit:hover { background-color: var(--color-secondary); }

@media (max-width: 900px){
  .search.corretor-search form,
  .search.corretor-search { grid-template-columns: 1fr; row-gap: 8px; }
  .search.corretor-search button[type="submit"],
  .search.corretor-search .btn-submit { width: 100%; height: 48px; margin: 0; }
}

