:root {
    --green: #007E41;
    --green-dark: #046334;
    --green-soft: #e7f5ee;
    --red: #ED1C22;
    --red-dark: #c41218;
    --ink: #202020;
    --muted: #5e6560;
    --line: #e4e7e4;
    --bg: #f4f6f4;
    --white: #fff;
    --shadow: 0 16px 40px rgba(32, 32, 32, .08);
    --header: 86px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Outfit, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.5;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: var(--green); color: white; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

.sr, .hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.skip {
    position: absolute;
    left: 8px;
    top: -40px;
    background: white;
    padding: 8px 12px;
    z-index: 80;
}
.skip:focus { top: 8px; }
.container { width: min(1140px, calc(100% - 32px)); margin-inline: auto; }

.brand-bar { height: 6px; background: linear-gradient(#007E41 0 50%, #ED1C22 50% 100%); }
.topbar { background: var(--ink); color: white; font-size: 13px; }
.topbar .container { min-height: 34px; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.topbar a { color: white; text-decoration: none; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.bar { min-height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo img { height: 72px; width: auto; }
.nav-wrap { display: flex; align-items: center; gap: 18px; }
.nav-wrap a { text-decoration: none; font-weight: 550; font-size: 15px; }
.nav-wrap a.is-on { color: var(--green); }
.nav-wrap a:hover { color: var(--green); }
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--ink);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--green);
    color: white;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { background: var(--green-dark); color: white; }
.btn-red { background: var(--red); }
.btn-red:hover { background: var(--red-dark); color: white; }
.btn-ink { background: var(--ink); }
.btn-ghost { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-dark); background: white; }
.btn-sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; }
.nav-wrap .btn:hover { color: white; }

.hero { position: relative; color: white; background: #163528; overflow: hidden; }
.slider { position: absolute; inset: 0; }
.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity .7s ease;
}
.slide.is-on { opacity: 1; }
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(32, 32, 32, .72) 0%, rgba(32, 32, 32, .28) 58%, rgba(32, 32, 32, .2) 100%),
        linear-gradient(180deg, rgba(32, 32, 32, .15), rgba(32, 32, 32, .55));
}
.hero-content { position: relative; z-index: 2; padding: 48px 0 28px; }
.eyebrow {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero h1 {
    margin: 0 0 12px;
    max-width: 12ch;
    font-family: "Barlow Condensed", sans-serif;
    font-size: clamp(46px, 7vw, 78px);
    font-weight: 600;
    line-height: .9;
    letter-spacing: .01em;
}
.lede { max-width: 48ch; margin: 0 0 22px; font-size: 18px; color: rgba(255, 255, 255, .92); }
.slider-ui { position: absolute; top: 18px; right: 0; display: flex; align-items: center; gap: 8px; }
.slider-ui button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .18);
    color: white;
    cursor: pointer;
}
.dots { display: flex; gap: 6px; align-items: center; }
.slider-ui button.dot {
    width: 10px;
    height: 10px;
    min-height: 0;
    padding: 0;
    background: rgba(255, 255, 255, .45);
}
.slider-ui button.dot.is-on { background: white; }

.search-card {
    display: grid;
    grid-template-columns: 1.15fr 1fr .7fr 1.15fr auto;
    gap: 12px;
    align-items: end;
    background: white;
    color: var(--ink);
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .18);
}
.finalidade-switch { grid-column: 1 / -1; display: flex; gap: 8px; }
.search-card.is-full { grid-template-columns: repeat(4, 1fr); }
.search-card.is-full .btn { grid-column: 1 / -1; }
.tab {
    position: relative;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 16px;
    font-weight: 650;
    cursor: pointer;
}
.tab input { position: absolute; opacity: 0; pointer-events: none; }
.tab:has(input:checked) { background: var(--green); border-color: var(--green); color: white; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field span { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid #d9ddd9;
    border-radius: 10px;
    padding: 10px 12px;
    background: white;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); outline: 2px solid rgba(0, 126, 65, .25); }

.type-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 18px 0 6px; }
.type-row a {
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 14px;
    font-weight: 650;
    font-size: 14px;
    background: white;
}
.type-row a:hover { border-color: var(--green); color: var(--green-dark); }

.section { padding: 68px 0; }
.section-alt { background: var(--bg); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 22px; }
.kicker {
    margin: 0 0 6px;
    color: var(--green);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.section-head h2, .page-title, .price-lg, .logo-text {
    font-family: "Barlow Condensed", sans-serif;
    font-weight: 600;
    letter-spacing: .01em;
    line-height: .95;
}
.section-head h2 { margin: 0; font-size: clamp(34px, 4vw, 48px); }
.link-all { color: var(--green-dark); font-weight: 700; text-decoration: none; white-space: nowrap; }
.link-all:hover { color: var(--red); }
.intro { max-width: 68ch; color: var(--muted); margin-top: 0; }

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card-link { display: block; color: inherit; text-decoration: none; }
.card-media { position: relative; aspect-ratio: 16/10; background: #eceeea; }
.card-media img, .ph { width: 100%; height: 100%; object-fit: cover; }
.ph { display: grid; place-items: center; color: var(--green); }
.ph svg { width: 48px; height: 48px; }
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 750;
    color: white;
}
.badge-venda { background: var(--red); }
.badge-aluguel { background: var(--green); }
.badge-star { left: auto; right: 12px; background: var(--ink); }
.card-price {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: white;
    border-radius: 10px;
    padding: 6px 10px;
    font-weight: 750;
}
.card-body { padding: 14px 14px 16px; }
.card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.3; }
.card-loc, .card-meta { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.card-loc { margin: 0 0 10px; font-size: 14px; }
.card-meta { list-style: none; padding: 0; margin: 0; flex-wrap: wrap; gap: 12px; font-size: 13px; }
.card-meta li { display: inline-flex; align-items: center; gap: 5px; }
.card svg, .card-loc svg { width: 16px; height: 16px; flex: none; }
.card-code { margin: 10px 0 0; font-size: 12px; letter-spacing: .04em; color: var(--muted); }

.empty {
    padding: 28px;
    border: 1px dashed #cfd5cf;
    border-radius: 16px;
    background: white;
}

.anuncie { background: var(--green); color: white; }
.anuncie .kicker { color: #d7ffe9; }
.anuncie-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: center; }
.anuncie h2 { margin: 0 0 10px; font-family: "Barlow Condensed", sans-serif; font-size: clamp(40px, 5vw, 60px); line-height: .92; font-weight: 600; }
.steps { list-style: none; padding: 0; margin: 22px 0 0; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; margin: 14px 0; align-items: start; }
.steps b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--red); }
.form-card { background: white; color: var(--ink); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.stack { display: grid; gap: 12px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { margin: 0; color: var(--muted); font-size: 13px; }

.map-frame { height: 420px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--bg); }
.map-frame iframe { width: 100%; height: 100%; border: 0; }
.map-note { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 12px; }
.map-note a { color: var(--green-dark); font-weight: 700; }

.site-footer { background: var(--ink); color: #ececec; padding: 48px 0 18px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.1fr; gap: 28px; }
.site-footer h2 { margin: 0 0 10px; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: white; }
.site-footer a, .site-footer p { display: block; color: #dedede; text-decoration: none; margin: 6px 0; }
.site-footer a:hover { color: #9be0bc; }
.logo-text { margin: 0; font-size: 52px; color: var(--red); }
.logo-sub { margin: 0 0 12px; color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .14em; }
.legal {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 28px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    color: #bdbdbd;
    font-size: 13px;
}

.wa {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: white;
    box-shadow: 0 12px 24px rgba(0, 126, 65, .35);
}
.wa svg { width: 30px; height: 30px; position: relative; z-index: 1; }
.wa.is-hidden { opacity: 0; pointer-events: none; }
.wa::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 0 0 rgba(0, 126, 65, .45);
    animation: pulse 2.2s infinite;
}
@keyframes pulse {
    70% { box-shadow: 0 0 0 16px rgba(0, 126, 65, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 126, 65, 0); }
}

.flash { padding: 12px 18px; text-align: center; font-weight: 650; }
.flash-ok { background: var(--green-soft); color: var(--green-dark); }
.flash-erro { background: #fde8e8; color: #9d1016; }

.page { padding: 34px 0 70px; }
.page-title { margin: 6px 0 10px; font-size: clamp(40px, 6vw, 64px); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--green-dark); text-decoration: none; }
.panel-filter { margin: 18px 0 26px; }
.panel-filter .search-card { box-shadow: none; border: 1px solid var(--line); }
.result-count { margin: 0 0 16px; color: var(--muted); }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 26px; }
.pager a, .pager span {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    text-decoration: none;
    border: 1px solid var(--line);
    background: white;
}
.pager .is-on { background: var(--green); color: white; border-color: var(--green); }

.detail { display: grid; grid-template-columns: 1.45fr .75fr; gap: 28px; align-items: start; }
.gallery-main { aspect-ratio: 16/10; background: #eceeea; border-radius: 18px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button {
    width: 86px;
    height: 64px;
    padding: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
}
.thumbs button.is-on { border-color: var(--green); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.detail h1 { margin: 8px 0; font-family: "Barlow Condensed", sans-serif; font-size: clamp(36px, 4vw, 52px); line-height: .95; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; padding: 0; list-style: none; }
.facts li { background: var(--bg); border-radius: 12px; padding: 10px 12px; min-width: 110px; }
.facts strong { display: block; font-size: 16px; }
.facts span { color: var(--muted); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.prose { font-size: 17px; line-height: 1.65; }
.prose p { margin: 0 0 12px; }
.panel {
    position: sticky;
    top: 102px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    box-shadow: var(--shadow);
}
.price-lg { margin: 4px 0 8px; font-size: 46px; }
.panel .hint { padding-right: 72px; }

.narrow { max-width: 760px; }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: start; }

@media (max-width: 980px) {
    .search-card, .grid-cards { grid-template-columns: 1fr 1fr; }
    .finalidade-switch, .search-card .btn { grid-column: 1 / -1; }
    .search-card.is-full { grid-template-columns: 1fr 1fr; }
    .anuncie-grid, .detail, .contact-grid, .foot-grid { grid-template-columns: 1fr 1fr; }
    .panel { position: static; }
}
@media (max-width: 760px) {
    .nav-toggle { display: block; }
    .nav-wrap {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: white;
        border-bottom: 1px solid var(--line);
        padding: 8px 20px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    .nav-wrap.is-open { display: flex; }
    .nav-wrap a { padding: 10px 0; }
    .nav-wrap .btn { width: 100%; }
    .site-header { position: sticky; }
    .bar { position: relative; }
    .logo img { height: 58px; }
    .search-card, .grid-cards, .anuncie-grid, .detail, .contact-grid, .foot-grid, .two { grid-template-columns: 1fr; }
    .hero h1 { max-width: none; }
    .section { padding: 46px 0; }
    .section-head { flex-direction: column; align-items: flex-start; }
    .map-frame { height: 300px; }
    .map-note, .legal, .topbar .container { flex-direction: column; align-items: flex-start; }
    .slider-ui { position: static; margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .slide, .card { transition: none; }
    .wa::before { animation: none; }
}
