.site {
  --ink: #1c2a2e;
  --ink-deep: #142024;
  --accent: #8a6a32;
  --paper: #f7f6f2;
  --muted: #5b6467;
  --line: #e1dfd7;
  --surface: #fff;
  --soft: #f0eee8;
  --primary: #1f3a40;
  --primary-hover: #2a4c53;
  --primary-text: #fff;
  --whatsapp: #1b7a45;
  --whatsapp-hover: #166538;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  line-height: 1.5;
}
.site main { flex: 1; }
.site .wrap { width: min(1200px, calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.site :is(h1, h2, h3) { font-weight: 650; letter-spacing: -.015em; line-height: 1.2; }
.site h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.site h2 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.site .btn { min-height: 44px; padding-inline: 1.1rem; border-radius: 6px; font-size: .92rem; font-weight: 600; }
.site .btn.secondary { color: var(--ink); }
.site .btn.whatsapp { background: var(--whatsapp); color: #fff; }
.site .btn.whatsapp:hover { background: var(--whatsapp-hover); }
.site .btn.light { background: #fff; color: var(--ink); }
.site .btn.light:hover { background: var(--soft); }
.site .text-link { display: inline-flex; align-items: center; gap: .4rem; color: var(--primary); font-size: .92rem; font-weight: 600; }
.site .text-link:hover { color: var(--accent); }
.site .text-link .icon { width: 1em; height: 1em; }
.site .brand { font-size: 1.15rem; font-weight: 650; gap: .6rem; letter-spacing: -.01em; text-decoration: none; }
.site .brand-icon { width: 34px; height: 34px; background: var(--primary); color: var(--primary-text); border: 0; border-radius: 6px; }
.skip-link { position: absolute; z-index: 20; top: .5rem; left: .5rem; transform: translateY(-150%); background: #fff; padding: .75rem; }
.skip-link:focus { transform: none; }

/* Topo */
.topbar { background: var(--ink-deep); color: #d6dcda; font-size: .8rem; }
.topbar .wrap { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; flex-wrap: wrap; padding-block: .35rem; }
.topbar .icon { width: 1.05em; height: 1.05em; margin-right: .35rem; color: #b9c4c0; }
.topbar-creci { margin-left: .9rem; padding-left: .9rem; border-left: 1px solid color-mix(in srgb, var(--ink-deep) 78%, #fff); }
.topbar-contacts { display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; }
.topbar a:hover { color: #fff; }
.site-header { position: sticky; top: 0; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); }
.site-nav { min-height: 72px; display: flex; align-items: center; gap: 1.5rem; }
.site-nav nav { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.site-nav nav a { padding: .55rem .75rem; border-radius: 5px; font-size: .92rem; font-weight: 550; color: #34454a; }
.site-nav nav a:hover { color: var(--ink); background: var(--soft); text-decoration: none; }
.site-nav nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.header-cta { flex: none; }
.header-favorites { display: inline-flex; align-items: center; gap: .35rem; flex: none; min-height: 44px; padding: 0 .75rem; border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; font-weight: 650; }
.header-favorites:hover { border-color: var(--primary); text-decoration: none; }
.header-favorites .icon { color: #b23a3a; fill: currentColor; }
.header-cta .icon { width: 1.1em; height: 1.1em; }

/* Home */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--ink-deep); }
.hero-media img { position: absolute; inset: 0; z-index: -2; height: 100%; object-fit: cover; object-position: 50% 55%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, color-mix(in srgb, var(--ink-deep) 90%, transparent) 0%, color-mix(in srgb, var(--ink-deep) 70%, transparent) 45%, color-mix(in srgb, var(--ink-deep) 25%, transparent) 100%); }
.hero-inner { padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(2.5rem, 5vw, 3.75rem); }
.hero h1 { max-width: 20ch; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.12; }
.hero-description { max-width: 46ch; margin-top: 1rem; color: #e4e8e6; font-size: clamp(1rem, 1.4vw, 1.12rem); }
.hero .site-filters { margin-top: clamp(1.75rem, 4vw, 2.5rem); color: var(--ink); }
.hero-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-size: .9rem; color: #e4e8e6; }
.hero-stats a { text-decoration: underline; text-decoration-color: #ffffff59; text-underline-offset: .25em; }
.hero-stats a:hover { color: #fff; text-decoration-color: #fff; }

.site-filters {
  grid-template-columns: repeat(5, minmax(0, 1fr)) auto;
  padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
  box-shadow: 0 8px 24px #0f1a1d1f;
}
.site label { font-size: .78rem; gap: .35rem; font-weight: 600; color: #3b4a4e; }
.site :is(input:not([type=checkbox]), select, textarea) { padding: .65rem .75rem; border-radius: 5px; border-color: #d7d5cc; min-height: 44px; font-size: .92rem; }
.site :is(input, select, textarea):hover { border-color: #b9bbb2; }
.site select { padding-right: 1.55rem; }
.site .site-filters .btn { white-space: nowrap; }

.section { padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.section-muted { background: var(--soft); border-block: 1px solid var(--line); }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }

.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.type-grid a { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .15rem .85rem; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.type-grid a:hover { border-color: var(--primary); text-decoration: none; }
.type-grid .icon { grid-row: span 2; width: 1.6rem; height: 1.6rem; color: var(--accent); }
.type-grid strong { font-size: 1rem; }
.type-grid span { color: var(--muted); font-size: .85rem; }

.district-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 0 2rem; margin: 0; padding: 0; list-style: none; }
.district-list a { display: grid; grid-template-columns: 1fr auto; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.district-list a:hover { text-decoration: none; }
.district-list a:hover strong { color: var(--accent); }
.district-list span { grid-row: 2; color: var(--muted); font-size: .85rem; }
.district-list em { grid-row: span 2; align-self: center; font-style: normal; font-size: .85rem; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about-copy p { margin: 1rem 0 1.25rem; color: var(--muted); font-size: 1.02rem; line-height: 1.7; max-width: 52ch; }
.services { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.services li { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.services li:first-child { padding-top: 0; }
.services .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); margin-top: .1rem; }
.services h3 { font-size: 1.05rem; }
.services p { margin-top: .25rem; color: var(--muted); font-size: .94rem; }

.cta-band { background: var(--primary); color: var(--primary-text); padding-block: clamp(2.25rem, 5vw, 3.25rem); }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; }
.cta-band p { margin-top: .4rem; color: color-mix(in srgb, var(--primary-text) 80%, var(--primary)); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

/* Listagem */
.search-title { padding: clamp(1.75rem, 4vw, 2.5rem) 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.search-title .site-filters { margin-top: 1.25rem; box-shadow: none; }
.page-intro { margin-top: .6rem; color: var(--muted); max-width: 60ch; }
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--muted); font-size: .82rem; margin-bottom: .9rem; }
.breadcrumbs .icon { width: .85em; height: .85em; }
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs [aria-current] { color: var(--ink); }
.catalog { padding-block: 2rem clamp(3rem, 6vw, 4.5rem); }
.catalog .section-header { align-items: center; }
.catalog .section-header h2 { font-size: 1.1rem; font-weight: 600; white-space: nowrap; }
.results-controls, .sort-form, .active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.results-controls { justify-content: flex-end; }
.sort-form label { display: flex; align-items: center; gap: .6rem; color: var(--muted); white-space: nowrap; }
.sort-form select { min-height: 40px; width: auto; color: var(--ink); }
.sort-form .sort-submit { min-height: 40px; }
.filter-chip { border: 1px solid var(--line); border-radius: 40px; padding: .3rem .55rem .3rem .75rem; background: #fff; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; max-width: min(100%, 22rem); overflow-wrap: anywhere; }
.filter-chip:hover { border-color: var(--primary); text-decoration: none; }
.active-filters .text-link { font-size: .82rem; }
.catalog-empty { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3rem 1.25rem; }
.catalog-empty h3 { font-size: 1.15rem; }
.catalog-empty p { margin: .4rem 0 1.2rem; color: var(--muted); }

/* Cartão de imóvel */
.listing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.listing-card { position: relative; min-width: 0; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: box-shadow .2s; }
.listing-card:hover { box-shadow: 0 10px 28px #1c2a2e1f; }
.listing-card:focus-within { outline: 2px solid #317cb2; outline-offset: 3px; }
.listing-card h3 a:focus-visible { outline: none; }
.listing-card h3 a::after { content: ""; position: absolute; inset: 0; }
.card-photo { position: relative; overflow: hidden; background: #e2e1da; aspect-ratio: 4/3; }
.card-photo :is(img, .no-image) { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.listing-card:hover .card-photo img { transform: scale(1.03); }
.card-photo img[src^="/imagens/"] { transform: scale(1.12); }
.card-photo img[src="/imagens/casa.jpg"] { transform: scale(1.19); }
.listing-card:hover .card-photo img[src^="/imagens/"] { transform: scale(1.15); }
.badge { display: inline-block; padding: .25rem .55rem; border-radius: 4px; background: var(--primary); color: var(--primary-text); font-size: .72rem; font-weight: 650; letter-spacing: .02em; text-transform: uppercase; }
.badge.closed { background: #6b6f6d; }
.card-photo .badge { position: absolute; top: .75rem; left: .75rem; }
.listing-card.unavailable .card-photo img { filter: grayscale(.5); }
.card-body { flex: 1; display: flex; flex-direction: column; padding: 1rem 1.1rem 1.1rem; min-width: 0; }
.card-meta { color: var(--muted); font-size: .78rem; }
.card-body h3 { margin: .3rem 0 .2rem; font-size: 1.05rem; font-weight: 600; overflow-wrap: anywhere; }
.location { color: var(--muted); display: flex; align-items: center; gap: .3rem; font-size: .88rem; overflow-wrap: anywhere; }
.location .icon { color: var(--accent); }
.features { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin: .85rem 0 0; padding: .75rem 0 0; border-top: 1px solid var(--line); list-style: none; color: #3f4d51; font-size: .82rem; }
.features li { display: inline-flex; align-items: center; gap: .3rem; }
.features .icon { color: var(--muted); width: 1.1em; height: 1.1em; }
.card-price { margin-top: auto; padding-top: .85rem; font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.card-price small, .detail-price small { font-size: .7em; font-weight: 500; color: var(--muted); margin-left: .15rem; }

/* Rodapé */
.site-footer { background: var(--ink-deep); color: #c9d1ce; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; padding-block: 3rem 2.25rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand-icon { background: color-mix(in srgb, var(--ink-deep) 75%, #fff); color: #fff; }
.footer-brand p { margin-top: .85rem; max-width: 30ch; }
.footer-brand .footer-creci { margin-top: .5rem; color: #9fb0ab; font-size: .82rem; }
.site-footer h2 { margin-bottom: .85rem; color: #fff; font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.site-footer a:hover { color: #fff; }
.footer-contacts :is(a, span) { display: inline-flex; align-items: flex-start; gap: .5rem; overflow-wrap: anywhere; }
.footer-contacts .icon { width: 1.05em; height: 1.05em; margin-top: .15em; color: #9fb0ab; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: 1.1rem; border-top: 1px solid color-mix(in srgb, var(--ink-deep) 85%, #fff); color: #8f9e9a; font-size: .8rem; }

/* WhatsApp flutuante */
.whatsapp-float {
  position: fixed; z-index: 30; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem);
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; color: #fff; box-shadow: 0 6px 20px #0b3d2140; transition: transform .2s, box-shadow .2s;
}
.whatsapp-float:hover { transform: scale(1.06); box-shadow: 0 8px 26px #0b3d2159; text-decoration: none; }
.whatsapp-float:focus-visible { outline-offset: 4px; }
.whatsapp-float .icon { width: 32px; height: 32px; stroke-width: 1.5; }

/* Área do cliente */
.client-auth { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.client-auth-card { padding: clamp(1.5rem, 3vw, 2.25rem); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.client-auth-card h1 { font-size: 1.6rem; }
.client-lead { margin: .4rem 0 1.4rem; color: var(--muted); }
.client-auth-card .contact-form .btn { width: 100%; }
.client-forgot { justify-self: end; font-size: .85rem; margin-top: -.3rem; }
.client-switch { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; text-align: center; }
.client-auth-aside { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 10px; background: var(--primary); color: var(--primary-text); }
.client-auth-aside > p { margin-top: .5rem; color: color-mix(in srgb, var(--primary-text) 80%, var(--primary)); }
.client-auth-aside h3 { margin: 1.6rem 0 .7rem; color: color-mix(in srgb, var(--primary-text) 72%, var(--primary)); font-size: .78rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }
.client-auth-aside ul { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; }
.client-auth-aside li { display: flex; align-items: center; gap: .8rem; padding: .8rem 1rem; border-radius: 8px; background: color-mix(in srgb, var(--primary-text) 9%, transparent); font-weight: 550; }
.client-auth-aside .icon { width: 1.35rem; height: 1.35rem; color: var(--primary-text); opacity: .85; }

.client-hello { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.client-dashboard { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; padding-block: 2rem clamp(3rem, 6vw, 4.5rem); }
.client-nav { position: sticky; top: 92px; display: grid; gap: .25rem; }
.client-nav a { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-radius: 6px; font-weight: 600; font-size: .94rem; }
.client-nav a:hover { background: var(--soft); text-decoration: none; }
.client-nav .icon { color: var(--accent); }
.client-nav span { margin-left: auto; min-width: 1.6rem; padding: .05rem .45rem; border-radius: 20px; background: var(--soft); color: var(--muted); font-size: .78rem; text-align: center; }
.client-sections { display: grid; gap: 1rem; min-width: 0; }
.client-section { padding: clamp(1.25rem, 3vw, 1.75rem); background: #fff; border: 1px solid var(--line); border-radius: 10px; scroll-margin-top: 92px; }
.client-section .section-header { margin-bottom: 1rem; align-items: center; }
.client-section .listing-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.client-empty, .client-help { color: var(--muted); }
.client-help { margin: -.4rem 0 1rem; font-size: .92rem; }
.radar-form { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; padding: 1rem; border-radius: 8px; background: var(--soft); }
.radar-list { display: grid; gap: 1.25rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.radar-list > li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.radar-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.radar-head strong { display: block; }
.radar-head span { color: var(--muted); font-size: .85rem; }
.radar-head em { color: #1b7a45; font-style: normal; font-weight: 700; }
.radar-head .btn { min-height: 36px; font-size: .85rem; }
.client-properties { display: grid; margin: 0; padding: 0; list-style: none; }
.client-properties li { display: flex; align-items: center; gap: .75rem 1rem; flex-wrap: wrap; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.client-properties li > div { flex: 1; min-width: 220px; display: grid; }
.client-properties li span:not(.status-pill) { color: var(--muted); font-size: .85rem; }
.status-pill { padding: .2rem .6rem; border-radius: 20px; font-size: .78rem; font-weight: 650; }
.status-pill.pending { background: #fbf3e2; color: #6b4c12; }
.status-pill.live { background: #e4f5e9; color: #175337; }
.status-pill.closed { background: #ececea; color: #4d5352; }
.client-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.client-account h3 { font-size: 1rem; }
.client-account input:disabled { background: var(--soft); color: var(--muted); }
.client-submit { padding-block: 2rem clamp(3rem, 6vw, 4.5rem); }
.submission-form { display: grid; gap: 1.1rem; max-width: 820px; }
.submission-form fieldset { margin: 0; padding: 0; border: 0; }
.submission-form legend { margin-bottom: .8rem; font-weight: 650; }
.submission-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.site small { color: var(--muted); font-weight: 450; font-size: .78rem; }
.editor-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* Página do imóvel */
.detail { padding-block: 1.5rem clamp(3rem, 6vw, 4.5rem); }
.detail-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.detail-heading h1 { margin: .45rem 0 .4rem; font-size: clamp(1.6rem, 3vw, 2.2rem); overflow-wrap: anywhere; }
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; color: var(--muted); font-size: .85rem; }
.detail-actions { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; flex: none; }
.print-header { display: none; }
.detail-toolbar { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.detail-toolbar button { display: inline-flex; align-items: center; gap: .45rem; min-height: 42px; padding: 0 .95rem; border: 0; background: none; font-size: .88rem; font-weight: 600; color: var(--ink); }
.detail-toolbar button + button { border-left: 1px solid var(--line); }
.detail-toolbar button:hover { background: var(--soft); }
.detail-toolbar .icon { width: 1.1em; height: 1.1em; color: var(--muted); }
.detail-toolbar [aria-pressed="true"] { background: #fbefef; color: #8f2626; }
.detail-toolbar [aria-pressed="true"] .icon { color: #b23a3a; fill: currentColor; }
.share-status { min-height: 1.2em; font-size: .82rem; color: var(--muted); }
.status-notice { background: #fbf3e2; color: #6b4c12; border: 1px solid #ecd9ae; margin-bottom: 1.25rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
.detail-media { margin: 0; overflow: hidden; border-radius: 8px; background: #e2e1da; aspect-ratio: 3/2; }
.detail-photo { width: 100%; height: 100%; object-fit: cover; }
.detail-photo[src^="/imagens/"] { transform: scale(1.12); }
.detail-photo[src="/imagens/casa.jpg"] { transform: scale(1.19); }
.gallery { display: grid; gap: .6rem; }
.detail-media { position: relative; }
.gallery-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery-step {
  position: absolute; top: 50%; translate: 0 -50%; display: grid; place-items: center; width: 42px; height: 42px;
  border: 0; border-radius: 50%; background: #ffffffe6; color: var(--ink); box-shadow: 0 2px 10px #0000002e;
}
.gallery-step:hover { background: #fff; }
.gallery-step.prev { left: .85rem; }
.gallery-step.prev .icon { rotate: 180deg; }
.gallery-step.next { right: .85rem; }
.gallery-count {
  position: absolute; right: .85rem; bottom: .85rem; display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .6rem; border-radius: 4px; background: #142024d9; color: #fff; font-size: .8rem; font-weight: 600; pointer-events: none;
}
.gallery-count .icon { width: 1em; height: 1em; }
.gallery-thumbs { display: flex; gap: .5rem; margin: 0; padding: 0 0 .25rem; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.gallery-thumbs li { flex: 0 0 auto; }
.gallery-thumbs a { display: block; width: 104px; aspect-ratio: 4/3; overflow: hidden; border-radius: 5px; opacity: .6; outline-offset: -2px; }
.gallery-thumbs a:hover { opacity: .9; }
.gallery-thumbs a[aria-current] { opacity: 1; outline: 2px solid var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox { width: 100vw; max-width: none; height: 100vh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: #0b1214f2; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox img { width: auto; max-width: min(1400px, calc(100vw - 7rem)); max-height: calc(100vh - 6rem); object-fit: contain; }
.lightbox-count { position: fixed; top: 1.1rem; left: 1.25rem; color: #fff; font-size: .9rem; font-weight: 600; }
.lightbox-close { position: fixed; top: .75rem; right: .75rem; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #ffffff1f; color: #fff; }
.lightbox-close:hover { background: #ffffff38; }
.lightbox .gallery-step { position: fixed; }
.site .no-image { align-content: center; gap: .4rem; color: #5d6b67; background: #e4e4dc; font-size: .85rem; }

.fact-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 1.25rem 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.fact-strip li { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.15rem; }
.fact-strip li + li { border-left: 1px solid var(--line); }
.fact-strip .icon { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.fact-strip strong { display: block; font-size: 1.2rem; line-height: 1.2; }
.fact-strip span { color: var(--muted); font-size: .82rem; }

.detail-section { padding-top: 2rem; margin-top: 2rem; border-top: 1px solid var(--line); }
.detail-section h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.75; color: #36454a; max-width: 75ch; }
.spec-sheet { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2.5rem; margin: 0; }
.spec-sheet div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.spec-sheet dt { color: var(--muted); }
.spec-sheet dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.location-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.location-line > .icon { color: var(--accent); }
.location-line .text-link { margin-left: auto; }
.detail-note { margin-top: .6rem; color: var(--muted); font-size: .88rem; }

.detail-aside { position: sticky; top: 92px; display: grid; gap: 1rem; }
.price-card { padding: 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.price-label { display: block; color: var(--muted); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.detail-price { display: block; margin-top: .3rem; font-size: clamp(1.6rem, 2.6vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.price-code { display: block; margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.agent-card { padding: 1.35rem; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.site .agent-card h2 { margin-bottom: 1rem; color: var(--muted); font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.agent { display: flex; align-items: center; gap: .9rem; }
.agent-avatar { display: grid; flex: none; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); color: var(--primary); font-size: 1.1rem; font-weight: 700; letter-spacing: .02em; }
.agent-avatar.brand-avatar { background: var(--primary); border-color: var(--primary); color: #fff; }
.agent-avatar .icon { width: 1.5rem; height: 1.5rem; }
.agent div { display: grid; gap: .1rem; min-width: 0; }
.agent strong { font-size: 1.05rem; overflow-wrap: anywhere; }
.agent span { color: var(--muted); font-size: .85rem; }
.agent a { display: inline-flex; align-items: center; gap: .35rem; margin-top: .2rem; font-size: .9rem; font-weight: 600; }
.agent a .icon { width: 1em; height: 1em; color: var(--accent); }
.agent-actions { display: grid; gap: .55rem; margin-top: 1.15rem; }
.agent-actions .btn { width: 100%; white-space: nowrap; }
.agent-note { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.site .form-panel { padding: 1.35rem; border-radius: 8px; }
.site .form-panel h2 { font-size: 1.1rem; margin-bottom: 1rem; }
.site .contact-form { gap: .8rem; }
.site .contact-form .btn { width: 100%; }
.form-note { color: var(--muted); font-size: .78rem; }
.related { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.mobile-cta { display: none; }

/* Contato e institucional */
.contact-page { display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; padding-block: clamp(2rem, 5vw, 3.5rem); }
.channel-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.channel-list li { display: flex; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.channel-list li:first-child { padding-top: 0; }
.channel-list .icon { width: 1.4rem; height: 1.4rem; color: var(--accent); margin-top: .15rem; }
.channel-list span { display: block; color: var(--muted); font-size: .8rem; }
.channel-list :is(a, p) { font-weight: 600; overflow-wrap: anywhere; }
.prose-page { padding-block: clamp(2rem, 5vw, 3.5rem); max-width: 760px; margin-inline: auto; }
.prose-page .cta-actions { margin-top: 2rem; }
.message-page { padding-block: 4rem; }
.message-page p { margin: 1rem 0; }
.message-page .btn { margin-top: 1rem; }

@media (max-width: 1080px) {
  .site-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-nav nav a { padding-inline: .55rem; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .contact-page, .about-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .site-nav { flex-wrap: wrap; gap: .25rem 1rem; padding-block: .75rem .25rem; }
  .site-nav nav { order: 3; width: 100%; margin: 0 0 0 -.55rem; overflow-x: auto; }
  .site-nav > .brand { margin-right: auto; }
  .site-header { position: static; }
  .detail-page { padding-bottom: 76px; }
  main.detail-page ~ .whatsapp-float { display: none; }
  .client-auth, .client-dashboard { grid-template-columns: 1fr; }
  .client-nav { position: static; display: flex; overflow-x: auto; gap: .35rem; }
  .client-nav a { flex: none; border: 1px solid var(--line); background: #fff; }
  .radar-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .radar-form .btn { grid-column: 1 / -1; }
  .client-account, .submission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-cta {
    position: fixed; z-index: 15; inset: auto 0 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
    padding: .7rem var(--gutter); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px #1c2a2e14;
  }
  .mobile-cta span { display: block; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
  .mobile-cta strong { font-size: 1.15rem; }
  .mobile-cta .btn { flex: none; }
}
@media (max-width: 640px) {
  .topbar-creci, .topbar-contacts a[href^="mailto:"] { display: none; }
  .topbar .wrap { justify-content: center; }
  .topbar .wrap > span:first-child { display: none; }
  .site-nav { min-height: 60px; }
  .site-nav nav { flex-wrap: nowrap; }
  .site-nav nav a { white-space: nowrap; font-size: .88rem; }
  .header-cta { min-height: 40px; padding-inline: .8rem; }
  .hero-inner { padding-block: 2.25rem 1.75rem; }
  .site-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; padding: .85rem; }
  .site-filters .btn { grid-column: 1 / -1; }
  .section-header { flex-wrap: wrap; }
  .catalog .section-header { align-items: flex-start; }
  .results-controls { justify-content: flex-start; }
  .detail-heading { flex-direction: column; align-items: flex-start; }
  .detail-actions { align-items: flex-start; width: 100%; }
  .detail-toolbar { width: 100%; }
  .detail-toolbar button { flex: 1; justify-content: center; padding-inline: .5rem; }
  .header-favorites { min-height: 40px; padding-inline: .6rem; }
  .fact-strip { grid-template-columns: repeat(2, 1fr); }
  .fact-strip li + li { border-left: 0; }
  .fact-strip li:nth-child(even) { border-left: 1px solid var(--line); }
  .fact-strip li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec-sheet { grid-template-columns: 1fr; }
  .location-line .text-link { margin-left: 0; }
  .detail-main .detail-media { border-radius: 0; }
  .detail-main > .gallery, .detail-main > .detail-media { margin-inline: calc(var(--gutter) * -1); }
  .gallery-thumbs { padding-inline: var(--gutter); }
  .gallery-thumbs a { width: 76px; }
  .gallery-step { width: 36px; height: 36px; }
  .lightbox img { max-width: 100vw; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band .btn { flex: 1; }
}
@media (max-width: 480px) {
  .client-account, .submission-grid, .radar-form { grid-template-columns: 1fr; }
  .whatsapp-float { width: 52px; height: 52px; }
  .site-nav { column-gap: .5rem; }
  .header-cta { width: 44px; padding: 0; }
  .header-cta .cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .listing-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media print {
  @page { margin: 14mm; }
  .site { background: #fff; color: #000; font-size: 11pt; }
  .site .wrap { width: 100%; }
  .topbar, .site-header, .site-footer, .skip-link, .breadcrumbs, .detail-actions, .gallery-step, .gallery-thumbs, .lightbox,
  .agent-actions, .site .form-panel, .related, .mobile-cta, .whatsapp-float, .location-line .text-link, .status-notice { display: none !important; }
  .detail { padding: 0; }
  .print-header { display: flex; justify-content: space-between; gap: 6mm; margin-bottom: 6mm; padding-bottom: 4mm; border-bottom: 1px solid #999; font-size: 10pt; }
  .detail-grid { display: block; }
  .detail-heading { margin-bottom: 8mm; }
  .detail-heading h1 { font-size: 20pt; }
  .detail-main > .gallery, .detail-main > .detail-media { margin: 0; }
  .detail-media { aspect-ratio: auto; max-height: 95mm; border-radius: 0; }
  .detail-photo { max-height: 95mm; }
  .gallery-count { display: none; }
  .fact-strip, .price-card, .agent-card { box-shadow: none; break-inside: avoid; }
  .detail-section { break-inside: avoid; margin-top: 6mm; padding-top: 5mm; }
  .detail-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 5mm; margin-top: 6mm; break-inside: avoid; }
  .detail-page { padding-bottom: 0; }
  .site a { text-decoration: none; color: inherit; }
}
@media (prefers-reduced-motion: reduce) {
  .listing-card, .card-photo img { transition: none; }
}

.gallery-viewport, .gallery-track, .gallery-slide { height: 100%; }
.gallery-viewport { overflow: hidden; }
.gallery-track { display: flex; touch-action: pan-y pinch-zoom; }
.gallery-slide { min-width: 0; flex: 0 0 100%; }
.gallery-slide .gallery-open:focus-visible { outline-offset: -4px; }
.lightbox-viewport { display: grid; place-items: center; max-width: 100%; max-height: 100%; }
.lightbox-viewport.is-zoomed { display: block; width: 100%; height: 100%; overflow: auto; padding: 4rem; }
.lightbox-viewport.is-zoomed img { width: 155vw; max-width: none; max-height: none; }
.lightbox-zoom { position: fixed; top: .75rem; right: 4.1rem; min-height: 44px; padding: .5rem .8rem; border: 0; border-radius: 7px; background: #ffffff26; color: #fff; }
.lightbox-zoom[aria-pressed="true"], .lightbox-zoom:hover { background: #fff; color: var(--ink); }
.description-rich { white-space: normal; }
.description-rich :is(p,ul,ol,blockquote,h3,h4) + :is(p,ul,ol,blockquote,h3,h4) { margin-top: .65em; }
.description-rich blockquote { margin-inline: 0; padding-left: .9rem; border-left: 3px solid var(--accent); }
.description-rich a { text-decoration: underline; }
.catalog-actions { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; }
.catalog-map { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(.75rem, 2vw, 1.4rem); align-items: start; }
.map-area { position: sticky; top: 1rem; min-width: 0; }
.map-canvas { height: min(66vh, 650px); min-height: 340px; background: #e7ece3; border-radius: 10px; border: 1px solid var(--line); }
.detail-map { margin-top: 1rem; }
.detail-map .map-canvas { height: clamp(275px, 42vw, 390px); min-height: 0; }
.map-caption { padding: .65rem 0; color: var(--muted); font-size: .875rem; }
.map-results { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .75rem; }
.map-price { background: #fff; color: var(--ink); padding: .35rem .6rem; border: 1px solid #888; border-radius: 28px; box-shadow: 0 2px 7px #13282a30; font-weight: 750; white-space: nowrap; }
.map-price:hover, .map-price[aria-expanded="true"] { background: var(--primary); }
.map-popup-link { display: block; padding: .25rem .4rem; font-weight: 700; text-decoration: underline; }
@media (max-width: 900px) {
  .map-results { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .catalog-map { grid-template-columns: 1fr; }
  .map-area { position: static; }
  .map-canvas { height: 50vh; min-height: 280px; }
  .map-results { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
}
@media print {
  .detail-map { display: none; }
}

/* Campos ampliados do imóvel */
.feature-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .55rem 1.25rem; margin: 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: .5rem; color: var(--ink); font-size: .95rem; }
.feature-list .icon { width: 1rem; height: 1rem; color: var(--accent); }
.price-extras { display: grid; gap: .3rem; margin: .9rem 0 0; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .88rem; }
.price-extras div { display: flex; justify-content: space-between; gap: 1rem; }
.price-extras dt { color: var(--muted); }
.price-extras dd { margin: 0; font-weight: 600; }
.price-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .75rem; }
.price-tags span { padding: .2rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); font-size: .78rem; font-weight: 550; }
.detail-address { margin-top: .6rem; font-weight: 600; }
.detail-address small { display: block; margin-top: .2rem; color: var(--muted); font-weight: 400; }

/* Imóvel com mais de uma transação */
.card-prices { display: grid; gap: .15rem; margin-top: auto; padding-top: .85rem; }
.card-prices .card-price { margin-top: 0; padding-top: 0; }
.price-kind { display: inline-block; min-width: 4.4rem; margin-right: .35rem; color: var(--muted); font-size: .7rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; }
.price-offer + .price-offer { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }

/* Logo enviada pela imobiliária */
.site .brand-logo { display: block; width: auto; height: auto; max-height: 48px; max-width: 220px; object-fit: contain; }
@media (max-width: 640px) { .site .brand-logo { max-height: 38px; max-width: 150px; } }
