/* Base mínima: mantém o layout mesmo se o bootstrap.min.css não carregar */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { text-decoration: none; }
img { vertical-align: middle; }
label { display: inline-block; margin-bottom: .5rem; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; margin: 0; }
.form-control { display: block; width: 100%; padding: .375rem .75rem; font-size: 1rem; line-height: 1.5; color: #495057; background-color: #fff; border: 1px solid #ced4da; border-radius: .25rem; }
textarea.form-control { height: auto; }
.form-group { margin-bottom: 1rem; }
/* fim da base mínima */

/* ==========================================================================
   Vértice Imobiliária — shared design system (loaded after style.css)
   ========================================================================== */

:root {
    --brand: #1a25ab;
    --brand-600: #151e8f;
    --brand-700: #0f166b;
    --brand-300: #4d61ee;
    --brand-soft: rgba(26, 37, 171, .08);
    --whatsapp: #25d366;
    --whatsapp-700: #128c4b;

    --bg: #f4f6f8;
    --card-dark: #ffffff;
    --card-dark-2: #eef1f6;
    --surface: #fff;
    --surface-2: #eef1f6;
    --line: #e1e5ee;
    --line-dark: #e1e5ee;

    --ink: #1c2130;
    --ink-2: #4d5568;
    --on-dark: #1c2130;
    --on-dark-2: #4d5568;

    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 22px;
    --shadow: 0 10px 30px rgba(8, 12, 60, .18);
    --header-h: 64px;
    --gutter: 16px;
    --font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 992px) {
    :root { --header-h: 78px; --gutter: 24px; }
}

/* ---------- Base ---------- */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background: var(--bg) !important;
    color: var(--ink) !important;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400 !important;
    line-height: 1.55;
    overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, video, iframe { max-width: 100%; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5 { font-family: var(--font); color: var(--ink); font-weight: 700; line-height: 1.25; }
a { color: var(--brand); }
a:hover { color: var(--brand-600); }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; }

.container { padding-left: var(--gutter); padding-right: var(--gutter); }
.site-main { min-height: 60vh; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn { border-radius: 999px; font-weight: 700; padding: 12px 22px; line-height: 1.2; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff !important; border: 1px solid var(--brand); }
.btn-brand:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-light-brand { background: var(--surface); color: var(--brand) !important; border: 1px solid rgba(26, 37, 171, .25); }
.btn-light-brand:hover { background: var(--surface-2); }
.btn-whatsapp { background: var(--whatsapp); color: #fff !important; border: 1px solid var(--whatsapp); }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-dark-ink { background: #000; color: #fff !important; border: 1px solid #000; }
.btn-dark-ink:hover { background: #1a1a1a; }
.btn-block { width: 100%; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }

/* ---------- Header ---------- */
.site-chrome { position: sticky; top: 0; z-index: 1030; }
body.has-preview { --chrome-bottom: calc(var(--header-h) + 38px); }
.preview-bar { background: #8a5a00; color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px 16px; }
.preview-bar a { color: #fff !important; text-decoration: underline; }
.site-header {
    position: relative;
    background: var(--brand);
    height: var(--header-h);
    box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header__logo { display: inline-flex; align-items: center; }
.site-header__logo img { max-height: 36px; width: auto; }
@media (min-width: 992px) { .site-header__logo img { max-height: 46px; } }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.site-header__contact { color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 15px; white-space: nowrap; }
.site-header__contact:hover { color: #fff !important; opacity: .85; }
.site-header__pill {
    display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
    background: #fff; color: var(--brand) !important; text-decoration: none !important; font-weight: 700; font-size: 14px; white-space: nowrap;
}
.site-header__pill:hover { background: var(--surface-2); color: var(--brand) !important; }

.site-nav {
    position: fixed; top: var(--chrome-bottom, var(--header-h)); right: 0; bottom: 0; left: 0; z-index: 1020; background: rgba(16, 22, 48, .46);
    opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.site-nav__panel {
    position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 90vw);
    background: #fff; color: var(--ink); display: flex; flex-direction: column;
    padding: 28px 22px 20px; transform: translateX(16px); transition: transform .2s ease;
    box-shadow: -12px 0 30px rgba(0, 0, 0, .12); overflow-y: auto;
}
.site-nav__label { margin: 0 0 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.site-nav__link {
    display: flex; align-items: center; min-height: 48px; padding: 8px 4px;
    color: var(--ink) !important; text-decoration: none !important; font-weight: 600; font-size: 18px;
    border-bottom: 1px solid var(--line);
}
.site-nav__link:hover, .site-nav__link.is-active { color: var(--brand) !important; }
.site-nav__foot { margin-top: auto; padding-top: 20px; display: grid; gap: 12px; }
.site-nav__foot > a { color: var(--ink) !important; font-weight: 700; text-decoration: none; }
.site-nav__social { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav__social a, .site-footer__social a {
    display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
    border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; font-size: 14px; font-weight: 600;
}
.nav-open .site-nav { opacity: 1; visibility: visible; }
.nav-open .site-nav__panel { transform: none; }

.nav-toggle {
    display: inline-flex; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14);
    color: #fff; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
    display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative; transition: transform .2s ease, background-color .2s ease;
}
.nav-toggle__bar::before, .nav-toggle__bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-open .nav-toggle__bar { background: transparent; }
.nav-open .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 719.98px) {
    .site-header__contact { display: none; }
    .site-header__pill { padding: 0 12px; font-size: 13px; }
}

/* ---------- Section primitives ---------- */
.section { padding: 40px 0; }
@media (min-width: 768px) { .section { padding: 64px 0; } }
.section--tight { padding-top: 24px; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-title {
    text-align: left; text-transform: none; letter-spacing: 0;
    font-size: 28px; font-weight: 700; color: var(--ink); margin: 0;
}
.section-head__link { font-weight: 700; white-space: nowrap; }
.section-subtitle { color: var(--ink-2); margin: 8px 0 0; max-width: 640px; }

.page-header { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-700) 100%); padding: 36px 0 32px; text-align: center; }
@media (min-width: 768px) { .page-header { padding: 56px 0 48px; } }
.page-header__title { font-size: clamp(26px, 5vw, 40px); margin: 0; color: #fff; }
.page-header__lead { color: rgba(255, 255, 255, .82); margin: 10px auto 0; max-width: 640px; font-size: clamp(15px, 2.4vw, 18px); }

.surface { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 20px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .surface { padding: 32px; } }
.surface h1, .surface h2, .surface h3, .surface h4 { color: var(--ink); }
.surface p { color: var(--ink-2); }

.alert { border-radius: var(--radius-sm); }

/* ---------- Property card ---------- */
.property-card {
    display: flex; flex-direction: column; height: 100%;
    background: #fff; color: var(--ink); border-radius: var(--radius);
    overflow: hidden; text-decoration: none !important; border: 1px solid var(--line);
    transition: transform .2s ease, box-shadow .2s ease;
}
.property-card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(20, 28, 70, .12); color: var(--ink); }
.property-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--card-dark-2); overflow: hidden; }
.property-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.property-card:hover .property-card__media img { transform: scale(1.04); }
.property-card__placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--on-dark-2); font-size: 14px; }
.property-card__placeholder img { width: 64px !important; height: 64px !important; object-fit: contain !important; opacity: .5; }
.property-card__badge {
    position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px;
    background: #fff; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.property-card__body { padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.property-card__type { font-size: 15px; font-weight: 500; color: var(--ink-2); margin: 0; }
.property-card__price { font-size: 22px; font-weight: 700; margin: 0; color: var(--ink); letter-spacing: -0.02em; }
.property-card__specs { list-style: none; padding: 12px 0 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px 14px; border-top: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); }
.property-card__specs li { display: inline-flex; align-items: center; gap: 6px; }
.property-card__specs [class^="icon-"] { color: var(--brand); font-size: 16px; }

.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 20px; }

/* ---------- Splide carousels ---------- */
.listing-carousel .splide__slide { height: auto; }
.listing-carousel .splide__arrow { background: #fff; opacity: .92; width: 40px; height: 40px; }
.listing-carousel .splide__arrow svg { fill: var(--brand); }
.listing-carousel .splide__arrow:disabled { opacity: .3; }
.listing-carousel .splide__pagination { bottom: -28px; }
.listing-carousel { padding: 0 8px; }
.listing-carousel .splide__arrow--prev { left: -6px; }
.listing-carousel .splide__arrow--next { right: -6px; }
.listing-carousel .splide__pagination__page { background: #c5cad8; }
.listing-carousel .splide__pagination__page.is-active { background: var(--brand); }
.listing-carousel { margin-bottom: 44px; }
@media (hover: none) { .listing-carousel .splide__arrow { display: none; } }
.listing-carousel__more { text-align: center; margin-top: 8px; }

/* ---------- Search hero ---------- */
.hero { position: relative; background: var(--brand-700); }
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15) 0%, rgba(0, 0, 0, .55) 100%); }
.hero__inner { position: relative; z-index: 1; padding: 48px 0 32px; }
@media (min-width: 992px) { .hero__inner { padding: 72px 0 36px; min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end; } }
.hero__title { color: #fff; font-size: clamp(24px, 5.2vw, 44px); margin: 0 0 20px; text-shadow: 0 2px 16px rgba(0, 0, 0, .35); max-width: 760px; }

.search-box { background: var(--brand); border-radius: var(--radius-lg); padding: 18px; box-shadow: 0 14px 34px rgba(8, 14, 74, .42); border: 1px solid rgba(123, 139, 255, .22); color: #fff; }
@media (min-width: 768px) { .search-box { padding: 26px 28px 20px; border-radius: 32px; } }
.search-box__tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.search-box__tab {
    flex: 1 1 auto; min-height: 44px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(8, 16, 94, .75);
    color: #fff; border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
}
@media (min-width: 576px) { .search-box__tab { flex: 0 0 auto; } }
.search-box__tab[aria-selected="true"] { background: var(--brand-300); border-color: #b8c1ff; }
.search-box__panel[hidden] { display: none; }

.search-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 12px; }
.search-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.search-field--full { grid-column: 1 / -1; }
.search-field label { font-size: 13px; font-weight: 600; margin: 0; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-box .form-control {
    height: 46px; min-height: 46px; border: 0; border-radius: 12px; font-size: 16px; padding: 0 12px;
    color: var(--ink); box-shadow: 0 2px 8px rgba(9, 14, 64, .15);
}
.search-box select.form-control[multiple] { height: 46px; padding: 10px 12px; overflow: hidden; }
.search-box .form-control:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .55) !important; }
.search-more-toggle {
    background: transparent; border: 1px dashed rgba(255, 255, 255, .5); color: #fff;
    border-radius: 12px; min-height: 48px; padding: 0 14px; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.search-actions { display: flex; gap: 10px; }
.search-actions .btn { min-height: 48px; border-radius: 12px; }
.search-actions .btn-submit { flex: 1; }
.search-actions .btn-reset { padding: 0 16px; }

.search-more { display: none; }
.search-box.is-expanded .search-more { display: grid; }
.search-more-toggle[aria-expanded="true"] { background: #fff; color: var(--brand); border-color: #fff; }
@media (max-width: 767.98px) {
    .search-actions { flex-wrap: wrap; }
    .search-more-toggle { flex: 1 1 auto; }
}
@media (min-width: 768px) {
    .search-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .search-grid.search-more { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .search-more .search-field { grid-column: span 2; }
    .search-actions { justify-content: flex-end; }
    .search-actions .btn-submit { flex: 0 0 220px; }
}
@media (min-width: 1200px) {
    .search-grid.search-more { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .search-more .search-field--sm { grid-column: span 1; }
    .search-more .search-field--md { grid-column: span 3; }
}

/* select2 inside search */
.search-box .select2-container { width: 100% !important; }
.search-box .select2-container--default .select2-selection--multiple {
    border: 0 !important; border-radius: 12px !important; min-height: 46px; padding: 4px 30px 4px 8px;
    box-shadow: 0 2px 8px rgba(9, 14, 64, .15);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%23495057' stroke-width='2' stroke-linecap='round' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.search-box .select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: var(--brand-soft); border: 1px solid rgba(26, 37, 171, .3); color: var(--brand); border-radius: 999px; font-size: 13px; margin-top: 4px;
}
.search-box .select2-container--default .select2-search--inline .select2-search__field { height: 30px !important; margin-top: 4px; font-family: var(--font); font-size: 15px; }
.select2-dropdown { border-radius: 12px; overflow: hidden; border-color: var(--line); z-index: 1040; }
.select2-results__option { color: var(--ink); padding: 10px 12px; }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand); }

/* ---------- Results ---------- */
.results-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.results-title { font-size: 32px; margin: 8px 0 18px; }
.results-bar__count { margin: 18px 0; color: var(--ink-2); font-weight: 600; }
.results-pagination { display: flex; justify-content: center; margin: 28px 0 8px; }
.results-pagination nav { max-width: 100%; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; padding: 0; margin: 0; }
.pagination .page-item { list-style: none; margin: 0; }
.pagination .page-link { display: flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; color: var(--brand); background: #fff; border: 1px solid var(--line); border-radius: 8px; margin: 0; font-weight: 700; line-height: 1; text-decoration: none; }
.pagination .page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.pagination .page-item.disabled .page-link { opacity: .45; pointer-events: none; }
@media (max-width: 600px) { .pagination { gap: 4px; } .pagination .page-link { min-width: 32px; height: 32px; padding: 0 6px; font-size: 14px; } }
.about-band { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .about-band { grid-template-columns: 1.2fr .8fr; gap: 48px; } }
.about-band h2 { font-size: 32px; margin: 0 0 12px; }
.about-band p { color: var(--ink-2); font-size: 17px; margin: 0 0 18px; }
.stat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat-grid div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.stat-grid strong { display: block; font-size: 28px; color: var(--brand); line-height: 1.1; }
.stat-grid span { color: var(--ink-2); font-weight: 500; }
.bairro-list { display: flex; flex-wrap: wrap; gap: 10px; }
.bairro-chip { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none !important; font-weight: 600; }
.bairro-chip:hover { border-color: var(--brand); color: var(--brand) !important; }
.site-footer__maps { color: #fff !important; font-weight: 700; }
.site-footer__social { display: flex; gap: 8px; margin-top: 14px; }
.site-footer__social a { color: #fff !important; border-color: rgba(255,255,255,.25); }
.gallery__empty img { width: 100%; height: 100%; object-fit: cover; }
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state h2 { font-size: 22px; }
.empty-state p { color: var(--ink-2); max-width: 460px; margin: 8px auto 20px; }
.empty-state__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- Property detail ---------- */
.detail-top { display: grid; gap: 20px; }
@media (min-width: 992px) { .detail-top { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px; align-items: start; } }

.gallery { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #0d0d12; }
.gallery .splide__slide a { display: block; aspect-ratio: 4 / 3; background: #0d0d12; }
.gallery .splide__slide img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery .splide__arrow { background: rgba(255, 255, 255, .9); width: 42px; height: 42px; }
.gallery .splide__arrow svg { fill: var(--brand); }
.gallery__counter { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(0, 0, 0, .65); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.gallery__empty { aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--on-dark-2); }

.price-card { position: relative; }
@media (min-width: 992px) { .price-card { position: sticky; top: calc(var(--chrome-bottom, var(--header-h)) + 20px); } }
.price-card__pill { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.price-card__title { font-size: 20px; margin: 12px 0 4px; }
.price-card__code { font-size: 14px; color: var(--ink-2); margin: 0; }
.price-card__value { font-size: clamp(28px, 6vw, 36px); font-weight: 700; color: var(--brand); line-height: 1.1; margin: 16px 0 4px; }
.price-card__rows { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.price-card__rows li { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-2); }
.price-card__rows strong { color: var(--ink); text-align: right; }
.price-card__rows .is-total { padding-top: 10px; border-top: 1px dashed var(--line); }
.price-card__rows .is-total strong { color: var(--brand); }
.price-card__actions { display: grid; gap: 10px; margin-top: 18px; }

.detail-grid { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 992px) { .detail-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 28px; margin-top: 28px; } }
.detail-grid > .surface:first-child { display: flex; flex-direction: column; }
.property-map { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 280px; }
.property-map__label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.property-map__label h3 { margin: 0; font-size: 16px; }
.property-map__label a { font-weight: 700; font-size: 14px; white-space: nowrap; }
.property-map__address { margin: 0; color: var(--ink-2); font-size: 14px; }
.property-map__frame { flex: 1; min-height: 260px; aspect-ratio: auto; }
.property-map__frame iframe { min-height: 260px; }
.detail-block h2 { font-size: 18px; margin: 0 0 14px; }
.detail-block + .detail-block { margin-top: 28px; }
.detail-description { white-space: pre-line; color: var(--ink-2); margin: 0; }

.spec-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 576px) { .spec-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spec-list li { background: var(--surface-2); border-radius: var(--radius-sm); padding: 12px; display: flex; flex-direction: column; }
.spec-list span { font-size: 13px; color: var(--ink-2); }
.spec-list strong { font-size: 17px; color: var(--ink); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 15px; color: var(--ink); }
.feature-list i, .feature-list [class^="icon-"] { color: var(--brand); width: 20px; text-align: center; }

.cta-banner { margin-top: 20px; border-radius: var(--radius-lg); padding: 20px; background: linear-gradient(120deg, var(--brand-700) 0%, var(--brand) 60%, var(--brand-300) 100%); color: #fff; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 768px) { .cta-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 28px; } }
.cta-banner strong { display: block; font-size: 20px; }
.cta-banner span { opacity: .88; }

.mobile-cta-bar { display: none; }
@media (max-width: 991.98px) {
    .has-mobile-cta .mobile-cta-bar {
        display: grid; grid-template-columns: 1fr 1fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020;
        padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
        border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .12);
    }
    .has-mobile-cta .mobile-cta-bar .btn { min-height: 48px; padding: 10px; font-size: 15px; }
    .has-mobile-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
    .has-mobile-cta .wa-float { display: none; }
}

/* ---------- Forms (on light surfaces) ---------- */
.form-light label { font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.form-light .form-control { height: 48px; border-radius: var(--radius-sm); border: 1px solid #d7d9e3; font-size: 16px; color: var(--ink); background: #fff !important; }
.form-light textarea.form-control { height: auto; min-height: 120px; padding-top: 10px; }
.form-light .form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 37, 171, .15) !important; }
.form-light .is-invalid { border-color: #dc3545; }
.form-light .invalid-feedback { display: block; }
.form-light .required-mark { color: #c62828; }
.choice-group { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-group input { position: absolute; opacity: 0; pointer-events: none; }
.choice-group label { margin: 0; min-height: 44px; display: inline-flex; align-items: center; padding: 8px 18px; border-radius: 999px; border: 1px solid #d7d9e3; cursor: pointer; font-weight: 500; }
.choice-group input:checked + label { background: var(--brand); border-color: var(--brand); color: #fff; }
.choice-group input:focus-visible + label { outline: 3px solid var(--brand-300); outline-offset: 2px; }

/* ---------- About / Contact ---------- */
.about-grid { display: grid; gap: 24px; align-items: center; }
@media (min-width: 992px) { .about-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.about-grid video { width: 100%; border-radius: var(--radius); display: block; background: #000; }
.about-grid h2 { font-size: 22px; margin: 0 0 10px; }
.about-grid h2 + p { margin-top: 0; }
.about-grid p + h2 { margin-top: 24px; }

.contact-grid { display: grid; gap: 20px; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; align-items: start; } }
.contact-channels { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.contact-channels a { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink) !important; text-decoration: none; font-weight: 600; }
.contact-channels a:hover { background: #e9ebf3; }
.contact-channels svg { width: 22px; height: 22px; fill: var(--brand); flex: 0 0 auto; }
.contact-channels small { display: block; font-weight: 400; color: var(--ink-2); }
.map-embed { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Owner CTA ---------- */
.owner-cta { padding: 8px 0 48px; }
.owner-cta__card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; background: var(--card-dark); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 768px) { .owner-cta__card { flex-direction: row; text-align: left; padding: 24px 32px; } }
.owner-cta__card img { width: 56px; height: 56px; }
.owner-cta__text { flex: 1; }
.owner-cta__text strong { display: block; font-size: 19px; }
.owner-cta__text span { color: var(--on-dark-2); }

/* ---------- Mapa Mapea ---------- */
.mapea-section { padding-top: 8px; padding-bottom: 48px; }
.mapea-section .section-subtitle { margin-bottom: 20px; }
.mapea-frame {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(20, 28, 70, .08);
}
#mapea, #mapea [data-mapea-widget] { width: 100%; }

/* ---------- Footer ---------- */
.site-footer { background: #12172b; padding: 36px 0 0; color: rgba(255, 255, 255, .82); }
@media (min-width: 768px) { .site-footer { padding-top: 40px; } }
.site-footer p { transform: none; font-size: 15px; color: rgba(255, 255, 255, .82); margin: 0 0 10px; }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.3fr 1fr 1.2fr; gap: 40px; } }
.site-footer__logo { max-height: 40px; width: auto; margin-bottom: 14px; }
.site-footer h3 { color: #fff; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 36px; color: rgba(255, 255, 255, .88) !important; text-decoration: none; }
.site-footer li a:hover { color: #fff !important; }
.site-footer__bottom { margin-top: 28px; padding: 16px 0 calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center; font-size: 14px; }
@media (min-width: 768px) { .site-footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.site-footer__bottom p { margin: 0; font-size: 14px; }
.site-footer__credit a { color: #fff !important; font-weight: 700; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 1025;
    width: 56px; height: 56px; border-radius: 50%; background: var(--whatsapp);
    display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 22px rgba(0, 0, 0, .25);
}
@media (min-width: 768px) { .wa-float { right: 24px; bottom: 24px; } }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(37, 211, 102, .35); animation: wa-ring 1.8s infinite; }
.wa-float svg { position: relative; width: 28px; height: 28px; fill: #fff; }
@keyframes wa-ring { from { transform: scale(1); opacity: .85; } to { transform: scale(1.6); opacity: 0; } }
body.nav-open .wa-float { display: none; }

/* ---------- Error pages ---------- */
.error-page { text-align: center; padding: 64px 0 80px; }
.error-page__code { font-size: clamp(64px, 18vw, 120px); font-weight: 700; line-height: 1; color: var(--brand-300); margin: 0; }
.error-page h1 { font-size: clamp(22px, 5vw, 32px); margin: 12px 0; }
.error-page p { color: var(--on-dark-2); max-width: 480px; margin: 0 auto 24px; }
.error-page__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

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

/* Menu visível no computador (sem hambúrguer) */
.site-header__nav { display: none; }
@media (min-width: 1200px) {
  .container { max-width: 1240px; }
  .site-header__nav { display: flex; align-items: center; gap: 26px; margin-right: auto; margin-left: 40px; }
  .site-header__nav a { color: rgba(255,255,255,.88) !important; font-weight: 600; font-size: 15px; text-decoration: none !important; white-space: nowrap; padding: 6px 0; border-bottom: 2px solid transparent; }
  .site-header__nav a:hover, .site-header__nav a.is-active { color: #fff !important; border-bottom-color: #fff; }
  .nav-toggle { display: none !important; }
  .site-nav { display: none !important; }
}

/* Evita que o conteúdo do imóvel estoure a largura no celular */
.detail-grid > * { min-width: 0; }
.detail-grid iframe, .detail-grid img, .detail-grid video { max-width: 100%; }

/* Container centralizado mesmo se o Bootstrap não carregar */
*, *::before, *::after { box-sizing: border-box; }
.container { width: 100%; margin-left: auto !important; margin-right: auto !important; }
@media (min-width: 576px) { .container { max-width: 540px; } }
@media (min-width: 768px) { .container { max-width: 720px; } }
@media (min-width: 992px) { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1240px; } }

/* Página do imóvel: blocos não esticam; semelhantes em 3 colunas (6 = 2 linhas cheias) */
.detail-grid { align-items: start; }
@media (min-width: 992px) { .property-grid--similar { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
