/*
Theme Name: Costa Imperial
Theme URI: https://costaimperialimoveis.com.br/
Description: Tema próprio da Costa Imperial Imóveis: cadastro de imóveis, busca com filtros, consultoria, captação e conteúdo sobre o Litoral Norte de São Paulo.
Version: 1.0.2
Requires at least: 6.5
Requires PHP: 8.0
Author: Costa Imperial Imóveis
Text Domain: costa-imperial
License: Proprietária
*/

:root {
	--ink: #0f2a2e;
	--ink-2: #17383c;
	--ink-3: #24494d;
	--brass: #c2a06b;
	--brass-deep: #84632f;
	--paper: #f4f6f3;
	--mist: #e4ebe8;
	--white: #fff;
	--text: #172a2c;
	--stone: #56625f;
	--line: #d6ddda;
	--line-dark: rgba(194, 160, 107, .3);
	--wa: #0e7a3e;
	--serif: "Newsreader", "Iowan Old Style", Georgia, serif;
	--sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--wrap: 1240px;
	--gutter: 16px;
	--r: 3px;
	--header-h: 72px;
}

@media (min-width: 720px) {
	:root { --gutter: 32px; --header-h: 84px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--white);
	color: var(--text);
	font-family: var(--sans);
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--brass-deep); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 420; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.01em; font-variation-settings: "opsz" 48; }
h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.35rem + 1.3vw, 2.45rem); }
h3 { font-size: 1.3rem; line-height: 1.22; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
::selection { background: var(--brass); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { width: 100%; max-width: calc(44rem + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--brass); color: var(--ink); padding: 10px 16px; border-radius: var(--r); }
.skip:focus { top: 8px; }
.muted { color: var(--stone); font-size: .95rem; }
.ico { flex: none; }
main:focus { outline: none; }

/* Botões */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .55em;
	min-height: 46px; padding: .7em 1.35em; border-radius: var(--r);
	border: 1px solid transparent; font-size: .95rem; font-weight: 600; letter-spacing: .01em;
	text-decoration: none; cursor: pointer; line-height: 1.2;
	transition: background-color .15s, color .15s, border-color .15s;
}
.btn-solid { background: var(--ink); color: var(--white); }
.btn-solid:hover { background: var(--ink-3); color: var(--white); }
.btn-brass { background: var(--brass); color: var(--ink); }
.btn-brass:hover { background: #d3b47f; color: var(--ink); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-ghost-light { border-color: rgba(255,255,255,.5); color: var(--white); background: transparent; }
.btn-ghost-light:hover { border-color: var(--white); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-wa { background: var(--wa); color: var(--white); }
.btn-wa:hover { background: #0a6332; color: var(--white); }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; font-size: inherit; }
.link-more { font-weight: 600; font-size: .95rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: .3em; white-space: nowrap; }

/* Cabeçalho */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--white); border-bottom: 1px solid var(--line-dark); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; text-decoration: none; }
.brand-logo { height: calc(var(--header-h) - 22px); width: auto; }
.brand-text { font-family: var(--serif); font-size: 1.35rem; color: var(--brass); }
.nav-main { margin-left: auto; display: none; }
.nav-main .menu, .nav-dialog .menu { list-style: none; margin: 0; padding: 0; }
.nav-main .menu { display: flex; gap: 4px; }
.nav-main a { display: block; padding: 8px 12px; color: rgba(255,255,255,.86); text-decoration: none; font-size: .95rem; border-radius: var(--r); }
.nav-main a:hover, .nav-main .current-menu-item > a, .nav-main .current_page_item > a { color: var(--brass); }
.header-wa { display: none; align-items: center; gap: 8px; padding: 9px 14px; border: 1px solid var(--line-dark); border-radius: var(--r); color: var(--white); text-decoration: none; font-size: .9rem; font-weight: 600; }
.header-wa:hover { border-color: var(--brass); color: var(--brass); }
.nav-toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; background: none; border: 1px solid var(--line-dark); border-radius: var(--r); color: var(--white); cursor: pointer; }
.nav-dialog { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(360px, 88vw); border: 0; padding: 20px 24px; background: var(--ink); color: var(--white); }
.nav-dialog::backdrop { background: rgba(8, 22, 24, .6); }
.nav-dialog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.nav-dialog-title { font-family: var(--serif); color: var(--brass); font-size: 1.2rem; }
.nav-close { background: none; border: 0; color: var(--white); width: 44px; height: 44px; cursor: pointer; }
.nav-dialog .menu a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: var(--white); text-decoration: none; font-family: var(--serif); font-size: 1.5rem; }
.nav-dialog-wa { margin-top: 28px; width: 100%; }
@media (min-width: 1040px) {
	.nav-main { display: block; }
	.header-wa { display: inline-flex; }
	.nav-toggle { display: none; }
}

/* Hero */
.hero { background: var(--ink); color: var(--white); padding: 40px 0 48px; overflow: hidden; }
.hero-grid { display: grid; gap: 28px; }
.hero-text { order: 1; }
.hero-search { order: 2; }
.hero-map { order: 3; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 3.4vw, 4.4rem); line-height: 1.02; font-weight: 360; letter-spacing: -.02em; max-width: 12ch; margin-bottom: .4em; font-variation-settings: "opsz" 72; }
.hero-lead { font-size: 1.12rem; color: rgba(255,255,255,.78); max-width: 38ch; }
.hero-map { margin: 0 -8px; }
.hero-map figcaption { font-size: .85rem; color: rgba(255,255,255,.5); margin-top: 6px; text-align: right; padding-right: 8px; }
.coast-map { width: 100%; height: auto; display: block; overflow: visible; }
.coast-map path { fill: rgba(255,255,255,.035); stroke: var(--brass); stroke-width: 1.4; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: fill .2s; }
.map-city { cursor: pointer; }
.map-city:hover path, .map-city:focus path { fill: rgba(194,160,107,.26); }
.map-city:focus { outline: none; }
.map-city:focus-visible .map-label { text-decoration: underline; }
.map-label { fill: var(--white); font-family: var(--sans); font-size: 34px; font-weight: 500; letter-spacing: .01em; }
.map-count { fill: var(--brass); font-family: var(--sans); font-size: 26px; }
.map-sea { fill: rgba(255,255,255,.28); font-family: var(--serif); font-style: italic; font-size: 30px; letter-spacing: .12em; }
.map-city:hover .map-label { fill: var(--brass); }
.hero-search { grid-column: 1 / -1; }
.quick-search { display: grid; gap: 12px; padding: 16px; background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--r); }
.qs-field label { display: block; font-size: .8rem; color: var(--brass); margin-bottom: 4px; letter-spacing: .02em; }
.qs-field select { width: 100%; height: 48px; background: var(--ink); color: var(--white); border: 1px solid rgba(255,255,255,.18); border-radius: var(--r); padding: 0 12px; }
.quick-search .btn { min-height: 48px; align-self: end; }
@media (min-width: 720px) {
	.quick-search { grid-template-columns: repeat(3, 1fr) auto; align-items: end; padding: 18px 20px; }
	.map-label { font-size: 27px; }
	.map-count { font-size: 20px; }
	.map-sea { font-size: 21px; }
}
@media (min-width: 1000px) {
	.hero { padding: 64px 0 72px; }
	.hero-grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 24px 48px; }
	.hero-text { grid-column: 1; grid-row: 1; }
	.hero-map { grid-column: 2; grid-row: 1; }
	.hero-search { grid-row: 2; }
	.hero-map { margin: -24px -24px 0 0; }
}

/* Seções */
.section { padding: 64px 0; }
.section-tight { padding-top: 40px; padding-bottom: 72px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
@media (min-width: 1000px) { .section { padding: 96px 0; } }

.listings-home { background: var(--paper); }
.journal { background: var(--paper); }

/* Cards de imóvel */
.grid-cards { display: grid; gap: 36px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.grid-featured { display: grid; gap: 36px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
@media (min-width: 1000px) {
	.grid-featured { grid-template-columns: repeat(3, 1fr); }
	.grid-featured .card-large { grid-column: span 2; grid-row: span 2; }
	.grid-featured .card-large .card-media { aspect-ratio: auto; height: calc(100% - 150px); min-height: 420px; }
	.grid-featured .card-large .card-title { font-size: 1.75rem; }
}
.card { position: relative; }
.card-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.card-link:hover { color: inherit; }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--mist); border-radius: var(--r); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card-link:hover .card-media img { transform: scale(1.025); }
.card-noimg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--stone); font-size: .9rem; }
.tag { position: absolute; left: 12px; top: 12px; background: var(--white); color: var(--ink); font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: var(--r); }
.tag-reservado { background: var(--brass); color: var(--ink); }
.tag-vendido { background: var(--ink); color: var(--white); }
.listing-code .tag { position: static; margin-left: 10px; vertical-align: middle; }
.card-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(15,42,46,.78); color: var(--white); font-size: .8rem; padding: 4px 8px; border-radius: var(--r); }
.card-count .ico { width: 15px; height: 15px; }
.card-body { padding-top: 14px; }
.card-place { font-size: .88rem; color: var(--stone); margin: 0 0 4px; }
.card-type { padding-left: 8px; margin-left: 8px; border-left: 1px solid var(--line); }
.card-title { font-size: 1.28rem; margin: 0 0 8px; transition: color .15s; }
.card-link:hover .card-title { color: var(--brass-deep); }
.card-specs { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; font-size: .9rem; color: var(--stone); }
.card-specs li + li { padding-left: 10px; margin-left: 10px; border-left: 1px solid var(--line); }
.card-price { font-weight: 600; font-size: 1.05rem; margin: 0; font-variant-numeric: tabular-nums; }
.is-vendido .card-media img { filter: grayscale(.6); opacity: .8; }

/* Estado vazio */
.empty { padding: 36px 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); max-width: 760px; }
.listings-home .empty { background: var(--white); }
.empty-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.2; margin-bottom: .4em; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }

/* Como trabalhamos */
.method-grid { display: grid; gap: 28px; }
.method-list { margin: 0; display: grid; gap: 28px 40px; }
.method-list > div { border-top: 1px solid var(--line); padding-top: 18px; }
.method-list dt { font-family: var(--serif); font-size: 1.35rem; line-height: 1.2; margin-bottom: 8px; }
.method-list dd { margin: 0; color: var(--stone); }
@media (min-width: 800px) { .method-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .method-grid { grid-template-columns: 1fr 2fr; gap: 48px; } }

/* Faixa de consultoria */
.band { background: var(--ink); color: var(--white); padding: 56px 0; }
.band-grid { display: grid; gap: 16px 48px; }
.band h2 { color: var(--white); margin: 0; }
.band p { color: rgba(255,255,255,.8); max-width: 60ch; font-size: 1.08rem; }
.band p:last-child { margin-bottom: 0; }
@media (min-width: 1000px) { .band { padding: 80px 0; } .band-grid { grid-template-columns: 1fr 2fr; } }

/* Cidades */
.cities { background: var(--paper); }
.city-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.city-list a { display: flex; flex-direction: column; height: 100%; padding: 22px 0 26px; border-top: 1px solid var(--ink); text-decoration: none; color: inherit; }
.city-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); margin-bottom: 18px; background: var(--mist); }
.city-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.city-list a:hover .city-photo img { transform: scale(1.025); }
.city-list a:has(.city-photo) { border-top: 0; padding-top: 0; }
.city-name { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; margin-bottom: 10px; }
.city-desc { color: var(--stone); font-size: .98rem; flex: 1; }
.city-count { margin-top: 14px; font-weight: 600; font-size: .92rem; text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: .3em; }
.city-list a:hover .city-name { color: var(--brass-deep); }

/* Depoimentos */
.quote-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 28px; }
.quote { margin: 0; border-left: 2px solid var(--brass); padding-left: 20px; }
.quote blockquote { margin: 0 0 12px; font-family: var(--serif); font-size: 1.2rem; line-height: 1.5; }
.quote blockquote p { margin: 0 0 .6em; }
.quote figcaption { font-weight: 600; font-size: .95rem; }
.quote figcaption span { display: block; font-weight: 400; color: var(--stone); }

/* Vender */
.sell { padding-top: 32px; }
.sell-grid { display: grid; gap: 24px; align-items: end; border-top: 1px solid var(--ink); padding-top: 32px; }
.sell h2 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.sell p { max-width: 54ch; color: var(--stone); font-size: 1.08rem; }
.sell-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (min-width: 1000px) { .sell-grid { grid-template-columns: 1.4fr 1fr; } .sell-actions { justify-content: flex-end; } }

/* Artigos (cards) */
.post-grid { display: grid; gap: 40px 28px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post-card a { display: block; text-decoration: none; color: inherit; }
.post-card-media { aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--r); margin-bottom: 14px; background: var(--mist); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-cat { font-size: .85rem; color: var(--brass-deep); font-weight: 600; margin: 0 0 6px; }
.post-card-title { font-size: 1.4rem; margin-bottom: 8px; }
.post-card a:hover .post-card-title { color: var(--brass-deep); }
.post-card-excerpt { color: var(--stone); font-size: .98rem; margin: 0; }
.post-card { border-top: 1px solid var(--line); padding-top: 18px; }
.post-card:has(.post-card-media) { border-top: 0; padding-top: 0; }

/* Cabeçalho de página */
.page-head { background: var(--paper); padding: 28px 0 36px; border-bottom: 1px solid var(--line); }
.page-head h1 { max-width: 22ch; margin-bottom: .3em; }
.head-photo { margin-top: 28px; border-radius: var(--r); overflow: hidden; aspect-ratio: 7 / 2; background: var(--mist); }
.head-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .head-photo { aspect-ratio: 4 / 3; } }
.page-intro { color: var(--stone); font-size: 1.12rem; max-width: 60ch; margin: 0; }
.crumbs ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; font-size: .85rem; color: var(--stone); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--line); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
@media (min-width: 1000px) { .page-head { padding: 36px 0 52px; } }

/* Lista com filtros */
.listing-layout { display: grid; gap: 24px; padding-top: 28px; padding-bottom: 80px; }
.filters { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.filters summary { display: flex; align-items: center; gap: 10px; padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none; }
.filters summary::-webkit-details-marker { display: none; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--brass); color: var(--ink); font-size: .78rem; }
.filter-form { padding: 4px 16px 18px; display: grid; gap: 14px; }
.field label, .carac legend { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; background: var(--white);
	border: 1px solid #b9c3bf; border-radius: var(--r); font-size: 1rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field select:disabled { background: var(--paper); color: var(--stone); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 10px; font-size: .95rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--ink); }
.carac { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.filter-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-actions .btn { flex: 1; }
.link-clear { font-size: .9rem; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.results-count { margin: 0; font-family: var(--sans); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--stone); }
.sort select { min-height: 40px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 10px; background: var(--white); color: var(--text); }
.pagination { margin-top: 48px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (min-width: 1000px) {
	.listing-layout { grid-template-columns: 290px minmax(0, 1fr); gap: 48px; padding-top: 40px; }
	.filters { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; }
	.filters summary { cursor: default; pointer-events: none; border-bottom: 1px solid var(--line); }
	.filter-form { padding-top: 16px; }
}

/* Página do imóvel */
.listing .crumbs { padding-top: 22px; }
.gallery { position: relative; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 88%; aspect-ratio: 4 / 3; scroll-snap-align: start; padding: 0; border: 0; background: var(--mist); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.gallery-1 .gallery-item { flex-basis: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-all { position: absolute; right: calc(var(--gutter) + 12px); bottom: 12px; min-height: 40px; padding: 8px 14px; font-size: .88rem; }
@media (min-width: 800px) {
	.gallery { display: grid; overflow: visible; margin: 0; padding: 0; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; }
	.gallery-item { aspect-ratio: auto; }
	.gallery-item:first-child { grid-row: span 2; }
	.gallery-1 { grid-template-columns: 1fr; grid-template-rows: 520px; }
	.gallery-1 .gallery-item { grid-row: auto; }
	.gallery-2 { grid-template-columns: 2fr 1fr; }
	.gallery-3 { grid-template-columns: 2fr 1fr; }
	.gallery-4 { grid-template-columns: 2fr 1fr 1fr; }
	.gallery-4 .gallery-item:nth-child(4) { grid-column: span 2; }
	.gallery-all { right: 14px; bottom: 14px; }
}
@media (min-width: 1200px) { .gallery { grid-template-rows: 290px 290px; } }
.listing-grid { display: grid; gap: 40px; padding-top: 28px; padding-bottom: 72px; }
.listing-place { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--stone); font-size: .95rem; margin-bottom: 8px; }
.listing-place span { padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--line); }
.listing-head h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 3rem); margin-bottom: .25em; }
.listing-code { color: var(--stone); font-size: .9rem; }
.head-price { font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; margin: 8px 0 6px; font-variant-numeric: lining-nums; }
@media (min-width: 1000px) { .head-price { display: none; } }
.more summary { cursor: pointer; font-size: .85rem; font-weight: 600; padding: 4px 0; }
.more[open] summary { margin-bottom: 8px; }
.facts { list-style: none; padding: 18px 0; margin: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 14px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: flex; align-items: center; gap: 8px; font-size: .98rem; }
.facts .ico { color: var(--brass-deep); width: 22px; height: 22px; }
.facts strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.facts span { color: var(--stone); }
.listing-block { margin-top: 44px; }
.listing-block h2 { font-size: 1.6rem; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 24px; }
.feature-list li { padding-left: 18px; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 1px; background: var(--brass-deep); }
.spec-table { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); column-gap: 32px; }
.spec-table > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.spec-table dt { color: var(--stone); }
.spec-table dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.embed { position: relative; aspect-ratio: 16 / 9; background: var(--mist); border-radius: var(--r); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-map { aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; }
.aside-price { font-family: var(--serif); font-size: 2rem; line-height: 1.1; margin-bottom: 16px; font-variant-numeric: lining-nums tabular-nums; }
.contact-card .btn-wa { width: 100%; }
.aside-or { text-align: center; color: var(--stone); font-size: .88rem; margin: 18px 0 10px; }
.card-heading { font-size: 1.5rem; }
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.mobile-bar .btn:only-child { grid-column: span 2; }
.single-imovel .site-footer { padding-bottom: 80px; }
@media (min-width: 1000px) {
	.listing-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; padding-top: 36px; }
	.listing-aside { position: relative; }
	.contact-card { position: sticky; top: calc(var(--header-h) + 20px); }
	.mobile-bar { display: none; }
	.single-imovel .site-footer { padding-bottom: 0; }
}

/* Fotos ampliadas */
.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: #081719; color: var(--white); }
.lightbox::backdrop { background: #081719; }
.lightbox[open] { display: flex; flex-direction: column; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.lb-count { margin: 0; font-size: .9rem; color: rgba(255,255,255,.75); font-variant-numeric: tabular-nums; }
.lb-close, .lb-nav { background: rgba(255,255,255,.08); border: 0; color: var(--white); width: 48px; height: 48px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.18); }
.lb-track { flex: 1; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 0 0 16px; }
.lb-slide img { max-width: 100%; max-height: calc(100vh - 90px); width: auto; object-fit: contain; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
@media (max-width: 700px) { .lb-nav { display: none; } }

/* Página com formulário */
.split { display: grid; gap: 40px; padding-top: 40px; padding-bottom: 80px; }
@media (min-width: 1000px) {
	.split { grid-template-columns: minmax(0, 1fr) 420px; gap: 72px; padding-top: 56px; }
	.split-aside .contact-card { position: sticky; top: calc(var(--header-h) + 20px); }
}
.contact-list { list-style: none; margin: 32px 0; padding: 0; display: grid; gap: 18px; font-family: var(--sans); font-size: 1rem; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { color: var(--brass-deep); margin-top: 3px; }
.contact-list strong { display: block; font-weight: 600; }

/* Formulários */
.ci-form .fields { display: grid; gap: 14px; }
@media (min-width: 560px) { .ci-form .fields { grid-template-columns: 1fr 1fr; } .ci-form .span-2 { grid-column: span 2; } }
.listing-aside .ci-form .fields, .split-aside .ci-form .fields { grid-template-columns: 1fr; }
.listing-aside .ci-form .span-2, .split-aside .ci-form .span-2 { grid-column: auto; }
.opt { font-weight: 400; color: var(--stone); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--stone); margin: 16px 0; line-height: 1.45; }
.consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--ink); }
.ci-form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-ok { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--wa); padding: 18px; border-radius: var(--r); }
.form-ok-title { font-family: var(--serif); font-size: 1.4rem; margin-bottom: .3em; }
.form-error { background: #fbeeee; border-left: 3px solid #a33a3a; padding: 12px 14px; color: #6e2222; font-size: .95rem; border-radius: var(--r); }

/* Texto corrido */
.prose { font-family: var(--serif); font-size: 1.18rem; line-height: 1.7; font-variation-settings: "opsz" 16; }
.prose > * { max-width: 40rem; }
.prose h2 { font-size: 1.75rem; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.35rem; margin: 1.6em 0 .4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--brass-deep); }
.prose a { color: var(--ink); text-decoration-color: var(--brass); text-decoration-thickness: 1.5px; }
.prose a:hover { color: var(--brass-deep); }
.prose blockquote { margin: 1.5em 0; padding-left: 20px; border-left: 2px solid var(--brass); font-style: italic; }
.prose img { border-radius: var(--r); }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-family: var(--sans); font-size: .85rem; color: var(--stone); margin-top: 8px; }
.prose strong { font-weight: 620; }
.prose .spec-table, .prose .contact-list { font-family: var(--sans); font-size: 1rem; }
.listing-desc { font-size: 1.15rem; }
.listing-desc h2 { font-size: 1.45rem; margin-top: 1.4em; }
.listing-desc h3 { font-size: 1.25rem; }

/* Artigo */
.article-head { padding-top: 28px; padding-bottom: 28px; }
.article-cat { margin: 0 0 12px; font-size: .9rem; font-weight: 600; }
.article-cat a { color: var(--brass-deep); text-decoration: none; }
.article-head h1 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 3.4rem); line-height: 1.06; }
.article-lead { font-family: var(--serif); font-size: 1.35rem; line-height: 1.45; color: var(--stone); }
.article-meta { font-size: .9rem; color: var(--stone); }
.article-cover { margin: 0 auto 40px; }
.article-cover img { width: 100%; border-radius: var(--r); max-height: 620px; object-fit: cover; }
.article-cover figcaption { font-size: .85rem; color: var(--stone); margin-top: 8px; }
.article-body { padding-bottom: 32px; }
.article-cta { border-top: 1px solid var(--ink); padding-top: 24px; padding-bottom: 72px; }
.article-cta p:first-child { font-family: var(--serif); font-size: 1.5rem; line-height: 1.25; }
.cat-nav ul { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-nav a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 20px; text-decoration: none; font-size: .9rem; background: var(--white); }
.cat-nav a:hover { border-color: var(--ink); color: var(--ink); }

/* Rodapé */
.site-footer { background: var(--ink); color: rgba(255,255,255,.78); font-size: .95rem; }
.footer-grid { display: grid; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.footer-logo { height: 88px; width: auto; margin-bottom: 16px; }
.footer-brand p { max-width: 36ch; }
.footer-brand .legal { font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-title { font-family: var(--sans); font-size: .9rem; font-weight: 600; color: var(--brass); letter-spacing: .02em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--brass); }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; }
.footer-contact .ico { color: var(--brass); width: 18px; height: 18px; }
.social { margin-top: 18px !important; display: flex !important; flex-wrap: wrap; gap: 8px 16px !important; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 20px; padding-bottom: 28px; border-top: 1px solid var(--line-dark); font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-bottom .link-btn { color: rgba(255,255,255,.86); text-decoration: none; }
.footer-bottom .link-btn:hover { color: var(--brass); }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }

/* WhatsApp flutuante */
.wa-float { position: fixed; right: 16px; bottom: 16px; z-index: 45; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(8, 23, 25, .28); }
.wa-float .ico { width: 30px; height: 30px; }
.wa-float:hover { background: #0a6332; color: var(--white); }
@media (min-width: 720px) { .wa-float { right: 24px; bottom: 24px; } }

/* Aviso de cookies */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; background: var(--ink); color: rgba(255,255,255,.88); padding: 18px; border-radius: var(--r); border: 1px solid var(--line-dark); font-size: .92rem; box-shadow: 0 10px 30px rgba(8, 23, 25, .3); }
.cookie a { color: var(--brass); }
.cookie p { margin-bottom: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-actions .btn { min-height: 40px; padding: 8px 16px; flex: 1; }
@media (min-width: 720px) { .cookie { right: auto; max-width: 430px; left: 24px; bottom: 24px; } }
.single-imovel .cookie { bottom: 84px; }
@media (min-width: 1000px) { .single-imovel .cookie { bottom: 24px; } }

/* Blocos do editor */
.alignwide { max-width: 1100px; }
.wp-block-image img { border-radius: var(--r); }
.has-text-align-center { text-align: center; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .wa-float, .mobile-bar, .cookie, .listing-aside, .gallery-all { display: none !important; }
}
