@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@400;600;700;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: rgba(0,0,0,0); }
input:focus, button:focus, textarea:focus, select:focus { outline: none; }
input, select, textarea, button { font-family: 'Figtree', sans-serif; -webkit-appearance: none; -moz-appearance: none; appearance: none; }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* BASE */
html, body { min-height: 100%; }

body { font-family: 'Figtree', sans-serif; font-size: 16px; color: #333; font-weight: 400; background-color: #fff; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; }
a { text-decoration: none; color: inherit; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; transition: all 0.2s ease; }
.menu-toggle, header .favoritos-mobile { display: none; }

/* HEADER */
header { background: #820AD1; }
header .logo { display: block; font-size: 34px; font-weight: 700; font-family: "Montserrat", sans-serif; color: #fff; margin: 30px 0; transition: all 0.3s ease; }
header .logo span { font-weight: 400; }
header .container { display: flex; align-items: center;  justify-content: space-between; }
header nav.menu ul { list-style: none; display: flex; align-items: center; }
header nav.menu  ul li a { display: block; font-size: 16px; color: #fff; font-weight: 600; padding: 10px 20px; border-radius: 20px; transition: all 0.2s ease; }
header nav.menu  ul li a:hover { background: rgba(0,0,0,0.2); }
header .btn-laranja { color: #fff; margin-left: 20px; padding: 10px 20px; border-radius: 20px; background-color: #f7931e; }
header .btn-laranja:hover { background-color: #98c83b; }
header .menu .favoritos { position: relative; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 20px; border: 2px solid #fff; padding: 0; margin: 0 20px; }
header .menu .favoritos svg { width: 20px; height: 20px; fill: #fff; }
header .menu .favoritos .contador, header .favoritos-mobile .contador { position: absolute; top: -8px; right: -8px; display: flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; color: #fff; background: #FF3A2F; border-radius: 10px; padding: 0 5px; font-weight: 400; }

header.aberto .menu-mobile { pointer-events: auto; opacity: 1; }
header.aberto .menu-mobile .painel { transform: translateX(100%); }

.menu-mobile { 	position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 999; display: flex; pointer-events: none; opacity: 0; transition: opacity 0.3s ease; }
.menu-mobile .overlay {	position: absolute; top: 0;	left: 0; width: 100%; height: 100%;	background: rgba(0, 0, 0, 0.5);	z-index: 1; }
.menu-mobile .painel { position: absolute; top: 0; left: -80%; width: 80%; height: 100%; background: #820AD1; padding: 40px; display: flex; flex-direction: column; z-index: 2;	transition: transform 0.3s ease; transform: translateX(0); box-shadow: 5px 0px 10px rgb(0 0 0 / 0.2); }

.logo-mobile { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.logo-mobile .logo { display: block; font-size: 30px; font-weight: 700; font-family: "Montserrat", sans-serif; color: #fff; }
.logo-mobile .logo span { font-weight: 400; }

.fechar-menu { background: none; border: none; color: #fff; font-size: 28px; cursor: pointer; }

.menu-mobile nav ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.menu-mobile nav ul li a { color: #fff; font-size: 16px; font-weight: 600; text-transform: uppercase; display: block; }
.menu-mobile nav ul li.separador { padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.3); }


/* HERO */
.hero { padding: 80px 0 120px 0; text-align: center; background: #820AD1; }
.hero h1 { font-size: 34px; font-weight: 400; margin-bottom: 30px; color: rgba(255,255,255,1.0); }
.hero h1 strong { font-weight: 700; }

/* BUSCA HOME */
.busca { position: relative; display: flex; width: 800px; height: 60px; margin: 0 auto; justify-content: flex-start; align-items: center; border-radius: 30px; background: #fff; box-shadow: 4px 4px 8px rgba(0,0,0,0.2); transition: all 0.3s ease; }
.busca select, .busca input { padding: 0 30px; font-size: 16px; color: #4D4D4D; width: 180px; height: 60px; border: 0; border-radius: 30px; background: #fff;  }
.busca select:hover, .busca input:hover { background: #e6e6e6; }

.busca button { position: absolute; top: 6px; right: 8px; color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; background-color: #f7931e; transition: all 0.2s ease; }
.busca button:hover { background-color: #98c83b; }
.busca .cidade { width: 350px; }

.autocomplete-list { display: none; position: absolute; top: calc(100% + 5px); left: 0; width: 100%; background: #fff; border: none; border-radius: 30px; z-index: 10; max-height: 300px; overflow-y: auto; box-shadow: 0 2px 6px rgba(0,0,0,0.1); font-size: 13px; text-align: left; padding: 0 20px; }
.autocomplete-list.mostrar { display: block; }
.autocomplete-list .cat { padding: 12px 0 4px; font-weight: bold; color: #820AD1; text-transform: uppercase; font-size: 12px; }
.autocomplete-list .item { padding: 10px 0; cursor: pointer; border-top: 1px solid #f0f0f0; text-transform: capitalize; }
.autocomplete-list .item:first-of-type { border-top: none; }
.autocomplete-list .item:hover { background-color: #f8f8f8; }
/*.campo.ultimo input { border: none !important; box-shadow: none !important; }*/


/* Separador apenas no input central */
.busca .campo { position: relative; display: flex; align-items: center; height: 60px; }
.busca .campo.central::before, .busca .campo.central::after { content: ""; position: absolute; top: 15px; width: 1px; height: 30px; background-color: #dddddd; z-index: 1; }
.busca .campo.central::before { left: 0; }
.busca .campo.central::after { right: 0; }
.busca .campo.central:hover::before, .busca .campo:hover::after { display: none; }
.busca .campo.primeiro:hover + .campo::before { display: none; }
.busca .campo.ultimo:hover::before { content: ""; position: absolute; top: 15px; right: calc(100% + 0px); width: 1px; height: 30px; background-color: #fff; z-index: 2; }

/* Adiciona a seta usando um background SVG */
.busca .campo select { cursor: pointer; position: relative; }
.busca .campo select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234D4D4D' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 12px 8px;
}

/* CARDS HOME */
.cards-home { margin: 80px; }
.cards-home h2 { font-size: 34px; margin-bottom: 20px; }
.cards-home .bloco-cards { display: flex; align-content: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cards-home .bloco-cards a { display: flex; flex-direction: column; padding: 40px; box-shadow: 0 8px 16px rgba(0,0,0,0.05); max-width: 285px; box-sizing: border-box; background: #fff; border-radius: 20px; }
.cards-home .bloco-cards h3 { font-size: 24px; }
.cards-home .bloco-cards p { line-height: 1.5; }
.cards-home .bloco-cards .icon { width: 100%; }
.cards-home .bloco-cards .icon img { width: 100%; height: 100%; object-fit: cover; }




/* DESTAQUES */
.destaques { padding: 80px 0; }
.destaques.bloco2 { background: #f8f8f8; }

.destaques h2 { font-size: 24px; font-weight: 400; text-align: center; margin-bottom: 80px; color: #820AD1; }
.destaques h2 span { font-size: 36px; font-weight: 700; color: #333; }

.grade-imoveis { display: grid; grid-template-columns: repeat(4, minmax(200px, 270px));  gap: 40px; justify-content: start; }
.imovel { display: block; width: 100%; }
.imovel .imagem { position: relative; width: 100%; aspect-ratio: 270 / 255; border-radius: 16px; margin-bottom: 10px; overflow: hidden; background: #ccc; }
.imovel .imagem img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; transition: transform 0.4s ease; }
.imovel:hover .imagem img { transform: scale(1.1); }

.imovel .favorito { position: absolute; top: 10px; right: 10px; background: none; border: none; cursor: pointer; padding: 0; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; }
.imovel .favorito svg { width: 24px; height: 24px; fill: rgba(0, 0, 0, 0.5); stroke: #fff; stroke-width: 2; transition: all 0.2s ease; }
.imovel .favorito:hover svg { transform: scale(1.1); }
.imovel .favorito.ativo svg { fill: #ff385c; }

.imovel h3 { font-size: 16px; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imovel p { font-size: 14px; color: #808080; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; }
.imovel ul { list-style: none; display: flex; justify-content: flex-start; gap: 10px; margin: 10px 0; color: #808080; }
.imovel ul li { display: flex; align-items: stretch; gap: 5px; font-size: 14px; }
.imovel ul li i { font-size: 20px; }
.imovel .preco { font-size: 18px; font-weight: 600; color: #820AD1; }
.imovel .preco span { font-size: 16px; font-weight: 400; color: #808080; }


/* CABEÇALHO INTERNAS */
/* Migalhas */
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; align-items: center; font-size: 16px; color: #808080; gap: 0px; }
.breadcrumb li { display: flex; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "›"; margin: 0 8px; color: #808080; }
.breadcrumb li.ativo { font-weight: 600; color: #333; }
.breadcrumb li a { color: #808080; text-decoration: none; display: flex; align-items: center; gap: 4px; }
.breadcrumb li a:hover { color: #820AD1; }
.breadcrumb i { font-size: 16px; }

.cabecalho-pagina { padding: 60px 0; background: #f8f8f8 url("imagens/bg-busca.jpg") center bottom; background-attachment: fixed; }
.cabecalho-pagina h1 { font-size: 36px; font-weight: 600; margin-bottom: 20px; }

.cabecalho-livre { margin-top: 40px; }
.cabecalho-livre.mobile { display: none; }

.cabecalho-livre h1 { font-size: 34px; font-weight: 600; }
.cabecalho-livre h1 span { color: #820AD1; }
.cabecalho-livre .breadcrumb { font-size: 14px; margin-bottom: 5px }
.cabecalho-livre .breadcrumb li.ativo { font-weight: 600; color: #808080; }
.cabecalho-livre .breadcrumb i { font-size: 16px; }


/* CONTEÚDO PÁGINAS */
.conteudo-pagina { padding: 40px 0; }
.avisos-gerais { display: none; }
.avisos-gerais h3 { font-size: 18px; margin-bottom: 5px; }
.avisos-gerais p { color: #808080; }

.bloco-institucional { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 80px; margin: 40px 0; }
.bloco-institucional-img { position: relative; flex: 1 1 300px; max-width: 500px; }
.bloco-institucional-img::before { content: ''; position: absolute; top: 5%; left: -30px; width: 100%; height: 90%; background-color: #820AD1; z-index: 0; border-radius: 4px; }
.bloco-institucional-img img { position: relative; width: 100%; display: block; border-radius: 4px; z-index: 1; }

.bloco-institucional-conteudo { flex: 1 1 300px; max-width: 620px; }
.bloco-institucional-conteudo h2 { font-size: 34px; font-weight: 600; margin-bottom: 20px; }
.bloco-institucional-conteudo p { line-height: 1.5;	margin-bottom: 15px; }

.bloco-institucional-conteudo .botao-acao { display: inline-block; padding: 15px 30px; color: #fff; font-size: 14px; text-transform: uppercase; border-radius: 4px; background: #820AD1; transition: all 0.3s ease; }
.bloco-institucional-conteudo .botao-acao:hover { background: #98c83b; }

.bloco-mvv { background-color: #f8f8f8; padding: 80px 0; }
.container-mvv { max-width: 1200px;	margin: 0 auto;	display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px; text-align: center; }
.mvv-box { background: #fff; padding: 40px; border-radius: 4px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.mvv-box h3 { font-size: 28px; margin-bottom: 20px; }
.mvv-box p { color: #444; line-height: 1.5; }
.mvv-icon { font-size: 40px; color: #820AD1; margin-bottom: 20px; }


/* CADASTRE SEU IMÓVEL */
.form-universal h4 { font-size: 18px; }

.form-universal form { display: flex; flex-direction: column; gap: 30px; }
.form-universal .form-linha { display: flex; gap: 20px; flex-wrap: wrap; }
.form-universal .campo { position: relative; flex: 1; min-width: 220px; }
.form-universal .campo.full { width: 100%; }

.form-universal .campo input,
.form-universal .campo textarea {
	width: 100%;
	padding: 18px 50px 18px 18px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	transition: all 0.3s ease;
	background-color: #fff;
}

.form-universal .campo select {
	width: 100%;
	color: #333;
	padding: 18px 50px 18px 18px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	transition: all 0.3s ease;
	background-color: #fff;
	cursor: pointer;
}

.form-universal .campo input:focus, .form-universal .campo textarea:focus { border: 1px solid #820AD1; }
.form-universal .campo i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%);	color: #820AD1; font-size: 18px; }

.form-universal button { display: flex; align-items: center; justify-content: center; gap: 5px; background: #820AD1; color: #fff; border: none; padding: 15px 30px; border-radius: 4px; font-size: 16px; cursor: pointer; transition: all 0.3s ease; }
.form-universal button:hover { background: #98c83b; }
.form-universal button i { font-size: 24px; }

.form-universal button.whatsapp { background: #25d366; }
.form-universal button.whatsapp:hover { filter: brightness(0.95); }


/* BLOCO CONTATO */
.bloco-contato { display: flex; justify-content: center; align-items: stretch; gap: 40px; margin: 40px 0; flex-wrap: wrap; }
.contato-item { flex: 1; min-width: 280px; border: 1px solid #e6e6e6; padding: 40px; text-align: center; border-radius: 4px; text-decoration: none; transition: all 0.3s ease; }
.contato-item:hover { border-color: #820AD1; }
.contato-item i { font-size: 60px; color: #820AD1; margin-bottom: 20px; display: block; }
.contato-item h4 { font-size: 28px; font-weight: 700; margin-bottom: 20px; }
.contato-item p { color: #808080; line-height: 1.5; }


.form-contato {
	background: #fff;
	padding: 40px;
	margin: 60px 0 -80px 0;
	border-radius: 4px;
	box-shadow: 0 0 8px rgba(0,0,0,0.1);
	z-index: 2;
	position: relative;
}

.form-contato h4 { font-size: 28px; margin-bottom: 10px; }
.form-contato .info-contato { margin-bottom: 40px; display: inline-block; }

.form-contato form {
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.form-contato .form-linha {
	display: flex;
	gap: 20px;
	flex-wrap: wrap;
}

.form-contato .campo {
	position: relative;
	flex: 1;
	min-width: 220px;
}

.form-contato .campo.full {
	width: 100%;
}

.form-contato .campo input,
.form-contato .campo textarea {
	width: 100%;
	padding: 18px 50px 18px 18px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	transition: all 0.3s ease;
}

.form-contato .campo input:focus, .form-contato .campo textarea:focus { border: 1px solid #820AD1; }

.form-contato .campo i {
	position: absolute;
	right: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #820AD1;
	font-size: 18px;
}

.form-contato button {
	background: #820AD1;
	color: #fff;
	border: none;
	padding: 15px 30px;
	border-radius: 4px;
	font-size: 14px;
	cursor: pointer;
	align-self: flex-start;
	transition: all 0.3s ease;
}

.form-contato button:hover {
	background: #98c83b;
}

/* Campo oculto de segurança para bloquear bots */
.campo-endereco-form { position: absolute; left: -9999px; }

.retorno-email { width: 100%; font-weight: 600; padding: 30px; text-align: center; background: #30f998; }
.retorno-email.erro { color: #fff; background: #E95672; }

.mapa-localizacao { display: flex; align-items: center; width: 100%; height: 600px; overflow: hidden; background-color: #f8f8f8; padding: 0; margin: 0; border: 0; z-index: 0; }
.mapa-localizacao iframe { display: block; width: 100%; height: 800px; border: 0; margin: 0; padding: 0; }
.mapa-localizacao img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }


/* BUSCA IMÓVEIS */
.filtros-busca { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.btn-filtro { background: #fff; border: 1px solid #ddd; height: 40px; border-radius: 20px; padding: 0 20px; font-size: 14px; color: #333; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: all 0.2s ease; }
.btn-filtro i { font-size: 18px; }
.btn-filtro:hover { border-color: #820AD1; color: #820AD1; }

.ordenacao { display: inline-block; position: relative; }
.toggle-ordenacao { padding: 0 20px; height: 40px; border: 1px solid #ddd; border-radius: 20px; background: #fff; cursor: pointer; font-size: 14px; color: #333; display: flex; align-items: center; gap: 8px; transition: all 0.2s ease; }
.toggle-ordenacao i { transform: rotate(90deg); font-size: 18px; }
.toggle-ordenacao:hover { border-color: #820AD1; color: #820AD1; }

.lista-ordenacao { position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid #ddd; border-radius: 12px; padding: 10px 0; min-width: 200px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); display: none; flex-direction: column; z-index: 99; }
.lista-ordenacao li { list-style: none; }
.lista-ordenacao li a { display: block; padding: 10px 20px; color: #333; text-decoration: none; transition: background 0.2s ease; }
.lista-ordenacao li a:hover { background: #f0f0f0; }
.ordenacao.ativo .lista-ordenacao { display: flex; }

/* PAGINAÇÃO IMÓVEIS */
.paginacao { margin: 40px auto 0 auto; text-align: center; }
.paginacao ul {	display: inline-flex; list-style: none;	padding: 0;	margin: 0; }
.paginacao ul li { background: #fff; text-decoration: none;	color: #820AD1;	border: 1px solid #dddddd; border-right: 0;	transition: all 0.2s ease; overflow: hidden; }
.paginacao ul li:last-child { border-right: 1px solid #dddddd; border-radius: 0 20px 20px 0; }
.paginacao ul li:first-child { border-radius: 20px 0 0 20px; }
.paginacao ul li a, .paginacao ul li span { display: inline-block; padding: 10px 15px; }
.paginacao li a:hover { background: #f8f8f8; }
.paginacao li.ativo span { background: #820AD1;	color: #fff; cursor: default; border-color: #820AD1; }


/* BUSCA AVANÇADA */
/* Overlay escura */
.modal-busca-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5);	z-index: 1000; display: none; align-items: center; justify-content: center; opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none; }
.modal-busca-overlay.ativo {
	display: flex;
	opacity: 1;
	pointer-events: auto;
}

/* Container branco do modal */
.modal-busca-container {
	background: #fff;
	width: 800px;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: scale(0.98);
	opacity: 0;
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(0px); /* preparado p/ transição */
}


.modal-busca-overlay.ativo .modal-busca-container {
	transform: scale(1);
	opacity: 1;
	backdrop-filter: blur(2px);
}

.modal-busca-container { transform-origin: center top; }


/* Topo do modal */
.modal-busca-topo {	display: flex;	justify-content: space-between;	align-items: center; padding: 40px 80px; border-bottom: 1px solid #e6e6e6;}
.modal-busca-topo h4 { font-size: 28px;	margin: 0;	font-weight: 400; }
.modal-fechar {	background: none; border: none;	font-size: 30px; cursor: pointer; color: #333; }

/* Formulário */
.modal-busca-form { padding: 80px; display: flex; flex-direction: column; gap: 40px; }
.grid-busca .campo select.preenchido { border-color: #820AD1; }


/* Grid de selects */
.grid-busca { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.grid-busca .campo select {
	width: 100%;
	color: #333;
	padding: 10px 20px;
	border: 1px solid #ccc;
	border-radius: 20px;
	background-color: #fff;
	appearance: none;
	font-size: 16px;
	cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234D4D4D' stroke-width='2' fill='none'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 20px center;
	background-size: 12px 8px;
}

/* Range de valor */
.campo-range label {
	display: block;
	font-size: 16px;
	margin-bottom: 5px;
}

.campo-range input[type="range"] {
	width: 100%;
	height: 8px;
	border-radius: 4px;
	background: #e6e6e6;
	appearance: none;
	outline: none;
}

.campo-range input[type="range"]::-webkit-slider-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #820AD1;
	cursor: pointer;
	-webkit-appearance: none;
}

.campo-range input[type="range"]::-moz-range-thumb {
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #820AD1;
	cursor: pointer;
}

.modal-busca-form input[type="range"]::-webkit-slider-thumb:focus,
.modal-busca-form input[type="range"]::-webkit-slider-thumb:active {
	box-shadow: 0 0 0 4px rgba(30, 136, 229, 0.25); /* anel de brilho */
	outline: none;
	border: none;
}
.modal-busca-form input[type="range"]:focus { outline: none; }

/* Botão buscar */
.btn-buscar { max-width: 186px;	background-color: #820AD1; color: #fff; border: none; padding: 12px 24px; border-radius: 21px;	font-size: 16px; display: inline-flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; transition: all 0.2s ease; }
.btn-buscar:hover { background: #98c83b; }


/* MODAL UNIVERSAL */
.modal-overlay { position: fixed; inset: 0; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; pointer-events: none; }
.modal-overlay.ativo { display: flex; opacity: 1; pointer-events: auto;}

/* Container branco do modal */
.modal-container {
	background: #fff;
	width: 800px;
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transform: scale(0.98);
	opacity: 0;
	transition: all 0.3s ease;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(0px); /* preparado p/ transição */
}


.modal-overlay.ativo .modal-container {
	transform: scale(1);
	opacity: 1;
	backdrop-filter: blur(2px);
}

.modal-container { transform-origin: center top; }


/* Topo do modal */
.modal-topo {	display: flex;	justify-content: space-between;	align-items: center; padding: 40px 80px; border-bottom: 1px solid #e6e6e6;}
.modal-topo h4 { font-size: 28px;	margin: 0;	font-weight: 400; }
.modal-fechar {	background: none; border: none;	font-size: 30px; cursor: pointer; color: #333; }

/* Conteúdo Modal*/
.modal-conteudo { padding: 80px; }
.modal-conteudo h5 { font-size: 18px; margin-bottom: 30px; }

/* Formulário */
.modal-conteudo form { display: flex; flex-direction: column; gap: 30px; }
.modal-conteudo .form-linha { display: flex; gap: 20px; flex-wrap: wrap; }
.modal-conteudo .campo { position: relative; flex: 1; min-width: 220px; }
.modal-conteudo .campo.full { width: 100%; }

.modal-conteudo .campo input,
.modal-conteudo .campo textarea {
	width: 100%;
	padding: 18px 50px 18px 18px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	transition: all 0.3s ease;
}

.modal-conteudo .campo input:focus, .modal-conteudo .campo textarea:focus { border: 1px solid #820AD1; }
.modal-conteudo .campo i { position: absolute; right: 15px; top: 50%; transform: translateY(-50%);	color: #820AD1; font-size: 18px; }

.modal-conteudo button { display: flex; align-items: center; justify-content: center; gap: 5px; background: #820AD1; color: #fff; border: none; padding: 15px 30px; border-radius: 4px; font-size: 16px; cursor: pointer; transition: all 0.3s ease; }
.modal-conteudo button:hover { background: #98c83b; }
.modal-conteudo button i { font-size: 24px; }

.modal-conteudo button.whatsapp { background: #25d366; }
.modal-conteudo button.whatsapp:hover { filter: brightness(0.95); }




/* PÁGINA IMÓVEL DETALHES */

.blocos-imovel {
	display: grid;
	grid-template-columns: 40% 53.33%;
	grid-template-rows: auto auto;
	gap: 80px;
	grid-template-areas:
		"esquerdo galeria"
		"esquerdo mapa";
}

.bloco-esquerdo { grid-area: esquerdo; }
.bloco-galeria  { grid-area: galeria; }
.bloco-mapa     { grid-area: mapa; }


.bloco-informacoes { position: relative; background: #fff; border-radius: 16px; border: 1px solid #f2f2f2; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 40px; width: 100%; color: #333; font-size: 16px; }
.bloco-informacoes .valor { font-size: 28px; font-weight: 600; margin-bottom: 5px; }
.bloco-informacoes .subtitulo { color: #808080; margin-bottom: 20px; }
.bloco-informacoes .info-lista { list-style: none; padding: 20px 0; margin: 40px 0; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; display: flex; flex-direction: column; gap: 4px; }
.bloco-informacoes .info-lista li { display: flex; align-items: center; gap: 8px; }
.bloco-informacoes .nome-consultor { color: #808080; font-size: 14px; }
.bloco-informacoes .nome-consultor span { color: #820AD1; font-weight: 700; }

.bloco-informacoes .texto-visita { margin: 20px 0; line-height: 1.5; }
.bloco-informacoes .botao-telefone { display: block; text-align: center; padding: 14px; border-radius: 25px; text-decoration: none; color: #fff; font-size: 18px; background: #820AD1; transition: all 0.2s ease; }
.bloco-informacoes .botao-telefone:hover { background: #560993; }
.bloco-informacoes .botao-whatsapp { display: block; text-align: center; padding: 14px; border-radius: 25px; margin-bottom: 20px; background: #25d366; color: #fff; text-decoration: none; font-size: 18px; transition: all 0.2s ease; }
.bloco-informacoes .botao-whatsapp:hover { filter: brightness(0.9); }

.botao-favoritar { position: absolute; top: 40px; right: 40px; display: inline-flex; align-items: center; gap: 6px; font-size: 16px; color: #333; padding: 6px 16px; border: 1px solid #ddd; border-radius: 20px; background: #fff; cursor: pointer; transition: all 0.2s ease-in-out; }
.botao-favoritar:hover { border-color: #aaa; }
.botao-favoritar .icone-coracao { width: 18px; height: 18px; fill: none; stroke: #333; stroke-width: 2; transition: all 0.3s ease; }
.botao-favoritar.ativo .icone-coracao { fill: #ff385c; stroke: #ff385c; }

.bloco-titulo-endereco { width: 100%; padding-bottom: 40px; margin: 40px 0; border-bottom: 1px solid #e6e6e6; color: #808080; }
.bloco-titulo-endereco h2 { font-size: 28px; margin-bottom: 5px; color: #333; }

.bloco-descricao { width: 100%; color: #808080; }
.bloco-descricao h3 { font-size: 24px; margin-bottom: 5px; color: #333; }
.bloco-descricao .texto { line-height: 1.5; }
.bloco-descricao .aviso { line-height: 1.5; color: #820AD1; font-weight: 600; margin-top: 20px; }

.bloco-caracteristicas { display: flex; flex-wrap: wrap; gap: 30px; font-size: 16px; color: #333; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid #e6e6e6; }
.bloco-caracteristicas i { font-size: 18px; }
.bloco-caracteristicas > div { display: flex; align-items: center; gap: 6px; }

.bloco-mapa h3 { font-size: 24px; margin-bottom: 20px; color: #333; }
.bloco-mapa .mapa { overflow: hidden; border-radius: 16px; font-size: 0; }



/* Galeria Imagens */
.galeria-imovel {
	display: grid;
	grid-template-columns: 62.5% 35.9375%;
	grid-template-rows: auto auto;
	gap: 10px;
	width: 100%;
}

/* Oculta imagens extras no desktop */
.galeria-imovel .escondida {
	display: none;
}



.galeria-imovel a {
	display: block;
	border-radius: 16px;
	overflow: hidden;
	background: #ccc;
}

.galeria-imovel a:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 2; aspect-ratio: 1 / 1; }
.galeria-imovel a:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; aspect-ratio: 230 / 400; }
.galeria-imovel a:nth-child(3) { grid-column: 1 / 2; grid-row: 2 / 3; aspect-ratio: 400 / 195; }
.galeria-imovel a:nth-child(4) { grid-column: 2 / 3; grid-row: 2 / 3; aspect-ratio: 230 / 195; }

.galeria-imovel img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: all 0.2s ease;
}

.galeria-imovel a:hover img { filter: brightness(0.85); }

.galeria-wrapper {
	position: relative;
	width: 100%;
}

.contador-slide {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 6px;
	font-weight: bold;
	display: none; /* apenas mobile */
}

.imagem-com-botao {
	position: relative;
	display: block;
}

.botao-ver-todas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.35);
	color: #fff;
	border: none;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background-color 0.3s;
	backdrop-filter: blur(1px);
}

.botao-ver-todas i {
	font-size: 20px;
	margin-right: 6px;
}

.botao-ver-todas:hover {
	background-color: rgba(0, 0, 0, 0.5);
}


/* RODAPÉ */
footer { background-color: #820AD1; color: #fff; padding-top: 80px; }
footer .colunas { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 40px; margin-bottom: 40px; padding-bottom: 20px; }
footer .bloco { width: 100%; }
footer h4 { font-size: 20px; margin-bottom: 20px; }
footer ul { list-style: none; margin-bottom: 20px; }
footer ul li { margin-bottom: 12px; }
footer ul li a { color: #fff; font-size: 16px; }
footer ul li a:hover { text-decoration: underline; }

footer .info-contato { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 40px; margin-bottom: 60px; }
footer .logo-rodape { height: 60px; }

footer .direitos { font-size: 14px; text-align: center; padding: 40px 30px; background: rgba(0, 0, 0, 0.2); }
footer .direitos a { text-decoration: underline; }

/* Responsivo */
@media (max-width: 1366px) {
	.container { padding: 0 40px; }
}

@media (max-width: 1024px) {
	header .logo { font-size: 30px; margin: 20px 0; }
	header nav.menu { display: none; }
	
	header .favoritos-mobile { position: relative; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; border: 1.8px solid #fff; padding: 0; }
	header .favoritos-mobile svg { width: 15px; height: 15px; fill: #fff; }
	header .favoritos-mobile .contador { top: -10px; right: -10px; }
	
	/* Botão Menu Mobile */
	.menu-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 30px; height: 30px; background: none; border: none; cursor: pointer; }
	.menu-toggle span { display: block; width: 24px; height: 2px; background-color: #fff; border-radius: 2px; transition: 0.3s ease; }
	.menu-toggle.ativo span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
	.menu-toggle.ativo span:nth-child(2) { opacity: 0; }
	.menu-toggle.ativo span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
	
	.grade-imoveis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
	
	.blocos-imovel {
			display: grid;
			grid-template-columns: 100%;
			grid-template-areas:
				"galeria"
				"esquerdo"
				"mapa";
			gap: 40px;
		}
	}

@media (max-width: 900px) {
	.container { padding: 0 30px; }
	.grade-imoveis { gap: 30px; }
	.grade-imoveis.home .imovel:nth-last-child(-n+2) { display: none; }
	
	.hero { padding: 60px 0; }
	.hero h1 { font-size: 28px; }
	
	.busca { width: 100%; padding: 10px; flex-direction: column; justify-content: space-between; gap:10px; height: auto; }
	.busca select, .busca input { width: 100%; padding-left: 15px; border: 1px solid #e6e6e6; }
	.busca select:hover, .busca input:hover { background-color: transparent; }
	.busca .cidade { width: calc(100% - 70px); margin-left: 20px; padding: 0; border-radius: 0; border: 0; }

	.busca button { position: absolute; top: auto; bottom: 10px; right: 10px; color: #fff; border: none; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; cursor: pointer; }
	
	/* Separador apenas no input central */
	.busca .campo { width: 100%; justify-content: flex-start; }
	.busca .campo.central::before, .busca .campo.central::after { display: none; }
	.busca .campo.ultimo:hover::before { display: none; }
	
	.autocomplete-list { top: calc(100% + 20px); }
	
	.destaques { padding: 60px 0; }
	.destaques h2 { margin-bottom: 60px; }
	.destaques h2 span { font-size: 34px; }
	
	.cabecalho-pagina { padding: 40px 0; }
	.cabecalho-pagina h1 { font-size: 28px; margin-bottom: 10px; }	
	.cabecalho-livre h1 { font-size: 28px; }
	
	.filtros-busca { display: flex; gap: 10px; flex-wrap: nowrap; margin-bottom: 30px; }
	.btn-filtro { width: 50%; padding: 0; justify-content: center; }
	.ordenacao { width: 50%; }
	.toggle-ordenacao { width: 100%; padding: 0; justify-content: center; }
	
	.modal-busca-container { width: 100%; height: 100%; border-radius: 0; transform: translateY(40px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; }
	.modal-busca-overlay.ativo .modal-busca-container { transform: translateY(0); opacity: 1; }
	.modal-busca-topo {	padding: 40px 30px; }	
	.modal-busca-form { padding: 40px 30px; }
	.grid-busca { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
	
	
	.modal-container { width: 100%; height: 100%; border-radius: 0; transform: translateY(40px); opacity: 0; transition: transform 0.4s ease, opacity 0.4s ease; }
	.modal-overlay.ativo .modal-container { transform: translateY(0); opacity: 1; }
	.modal-topo {	padding: 40px 30px; }	
	.modal-form { padding: 40px 30px; }
	.grid-modal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
	.modal-conteudo { padding: 40px 30px; }
	
	
	.bloco-informacoes { padding: 30px; }
	.botao-favoritar { top: 30px; right: 30px; }	
	.bloco-caracteristicas { gap: 20px; font-size: 16px; }
	
	.bloco-institucional { gap: 40px; }
	.bloco-institucional-img::before { left: -20px;	}
	.bloco-institucional-conteudo h2 { font-size: 28px;	}	
	.bloco-mvv { padding: 40px 0; }
	
	.bloco-contato { gap: 20px; }
	.contato-item { min-width: 150px; padding: 20px; }
	.contato-item i { font-size: 40px; }
	.contato-item h4 { font-size: 24px; font-weight: 600; }	

	
	footer { padding-top: 60px; }
	footer .colunas { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; }
	footer .info-contato { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; margin-bottom: 60px; }
	
}


@media (max-width: 768px) {	
	
	.form-contato { padding: 30px; margin: 40px 0 -60px 0; }
	.form-contato h4 { font-size: 28px; }
	.form-contato form { gap: 20px; }
	.form-contato .form-linha {	gap: 20px; }
	.form-contato button { width: 100%; text-align: center;	}
	.mapa-localizacao iframe { height: 400px; }
	.mapa-localizacao { height: 300px; }	
	
	
	.contador-slide { display: block; position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; font-weight: bold; z-index: 10; pointer-events: none; }

	.galeria-imovel { display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; position: relative; aspect-ratio: 4 / 3.3; scrollbar-width: none; -ms-overflow-style: none; }
	.galeria-imovel::-webkit-scrollbar { display: none; }
	.galeria-imovel.arrastando { cursor: grabbing; cursor: -webkit-grabbing; }
	.galeria-imovel a { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; position: relative; }
	.galeria-imovel img { width: 100%; height: 100%; object-fit: cover; display: block; }
	.galeria-imovel a:hover img { filter: none; }	
	.botao-ver-todas { display: none; }	
	
	/* Mostra todas as imagens no mobile (para galeria expandida) */
	.galeria-imovel .escondida { display: block; }
	
	
	/* Ajuste para deixar a galeria com 100% de largura e colada no topo */
	.galeria-imovel { width: calc(100% + 60px); margin: -40px 0 0 -30px; gap: 0; border-radius: 0; }
	.galeria-imovel a { border-radius: 0; }
	.cabecalho-livre.imovel-detalhes { display: none; }
	.cabecalho-livre.mobile { display: block; margin-top: 0; margin-bottom: 30px; }
	.contador-slide { right: 0; bottom: 30px; }
	.bloco-esquerdo { background: #fff; margin-top: -60px; margin-left: -30px; padding: 30px 30px 0 30px; z-index: 20; width: calc(100% + 60px); border-radius: 20px 20px 0 0; }
	.bloco-informacoes { border-radius: 0; border: 0; box-shadow: none; padding: 30px; width: calc(100% + 60px); margin-left: -30px; border-top: 1px solid #e6e6e6; border-bottom: 1px solid #e6e6e6; background: #f8f8f8; }
}

@media (max-width: 600px) {
	.lightbox-prev,
	.lightbox-next {
		display: none;
	}
}

@media (max-width: 430px) {
	/* Ajuste tamanho fontes lista mobile */
	.imovel h3 { font-size: 20px; }
	.imovel p { font-size: 16px; }
	.imovel ul li { font-size: 16px; }
	.imovel ul li i { font-size: 24px; }
	.imovel .preco { font-size: 20px; }
	.imovel .preco span { font-size: 18px; }
}



/* LIGHTBOX */
.lightbox { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0, 0, 0, 0.85); display: flex; align-items: center; justify-content: center; z-index: 9999; padding: 20px; box-sizing: border-box; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }

.lightbox.ativo { opacity: 1; pointer-events: all; }

.lightbox-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

.lightbox-content { position: relative; max-width: 90vw; max-height: 90vh; display: flex; align-items: center; justify-content: center; }

.lightbox-content img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

/* Contador no canto superior esquerdo */
.lightbox-contador { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,0.1); color: #fff; font-size: 14px; padding: 3px 10px; border-radius: 20px; font-weight: 500; pointer-events: none; }

/* Botão fechar e navegação flat */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: 20px;
	box-sizing: border-box;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.lightbox.ativo {
	opacity: 1;
	pointer-events: all;
}

.lightbox-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.lightbox-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-content img {
	max-width: 100%;
	max-height: 100%;
	border-radius: 10px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

/* Contador fixo no topo esquerdo da tela */
.lightbox-contador {
	position: fixed;
	top: 20px;
	left: 20px;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	font-size: 14px;
	padding: 4px 12px;
	border-radius: 20px;
	font-weight: 500;
	z-index: 10000;
	pointer-events: none;
}

/* Botão fechar fixo no topo direito da tela */
.lightbox-close {
	position: fixed;
	top: 20px;
	right: 20px;
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10000;
	transition: background 0.2s ease;
}

.lightbox-close:hover {
	background: rgba(255, 255, 255, 0.3);
}

/* Setas laterais */
.lightbox-nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 22px;
	cursor: pointer;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease;
}

.lightbox-nav:hover {
	background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
	left: -50px;
}

.lightbox-next {
	right: -50px;
}
