body { color: #333; background: #fff; }
a { color: inherit; }
.topbar { background: var(--topbar-bg); color: var(--topbar-fg); padding: 6px 0; }
.topbar a { color: var(--topbar-fg); text-decoration: none; opacity: .9; }
.topbar a:hover { opacity: 1; }
.site-header { background: var(--menu-bg); box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.site-header .navbar-brand img { max-height: 56px; max-width: 220px; }
.site-header .nav-link { color: var(--menu-fg); font-weight: 500; padding: .6rem .9rem !important; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: var(--accent); }
.site-header .navbar-toggler { border: 0; color: var(--menu-fg); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(.92); color: #fff; }
.text-accent { color: var(--accent); }

/* busca da home */
.hero { position: relative; background: #333 center/cover no-repeat; min-height: 360px; display: flex; align-items: flex-end; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55)); }
.hero .container { position: relative; }
.hero h1 { color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.search-panel { background: var(--search-bg); color: var(--search-fg); border-radius: 10px; padding: 16px; }
.search-panel .form-label { color: var(--search-fg); font-size: .8rem; margin-bottom: 2px; opacity: .85; }
.purpose-toggle .btn { color: var(--search-fg); border-color: rgba(255,255,255,.35); }
.purpose-toggle .btn-check:checked + .btn { background: var(--accent); border-color: var(--accent); color: #fff; }

.section { padding: 48px 0; }
.section-title { font-weight: 700; margin-bottom: 24px; position: relative; padding-bottom: 10px; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; background: var(--accent); }
.bg-soft { background: #f6f7f9; }

/* card de imovel */
.property-card { border: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.08); transition: transform .15s, box-shadow .15s; height: 100%; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.12); }
.property-card .ratio img { object-fit: cover; }
.property-card .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; z-index: 2; }
.property-card .price { font-size: 1.2rem; font-weight: 700; color: var(--accent); }
/* finalidade: venda verde, aluguel laranja (badge e valor) */
.property-card .badge-sale { background: #28a745; }
.property-card .badge-rent { background: #fd7e14; }
.property-card .price-sale { color: #28a745; }
.property-card .price-rent { color: #fd7e14; }
.property-card .badge-auction { background: #dc3545; }
.property-card .price-auction { color: #dc3545; }
.property-card .specs { display: flex; flex-wrap: wrap; gap: 12px; font-size: .85rem; color: #666; }
.property-card a.stretched-link { text-decoration: none; }
.property-list .property-card { display: flex; flex-direction: row; }
.property-list .property-card .card-img { width: 38%; min-width: 180px; flex-shrink: 0; }
@media (max-width: 575.98px) { .property-list .property-card { flex-direction: column; } .property-list .property-card .card-img { width: 100%; } }

.category-tile { position: relative; border-radius: 10px; overflow: hidden; display: block; color: #fff; text-decoration: none; }
.category-tile img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
.category-tile:hover img { transform: scale(1.05); }
.category-tile .label { position: absolute; inset: auto 0 0 0; padding: 12px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }
.category-tile .placeholder { aspect-ratio: 4/3; background: #d1d5db; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; color: #6b7280; }

/* pagina do imovel */
.gallery-main { border-radius: 10px; overflow: hidden; background: #000; }
.gallery-main .carousel-item img { width: 100%; aspect-ratio: 16/10; object-fit: contain; background: #111; }
.gallery-main .caption { position: absolute; bottom: 0; left: 0; right: 0; padding: 8px 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .9rem; }
.gallery-thumbs { display: flex; gap: 6px; overflow-x: auto; padding: 6px 0; }
.gallery-thumbs img { width: 88px; height: 64px; object-fit: cover; border-radius: 4px; cursor: pointer; opacity: .6; flex-shrink: 0; }
.gallery-thumbs img.active { opacity: 1; outline: 2px solid var(--accent); }
.spec-box { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.spec-box > div { background: #f6f7f9; border-radius: 8px; padding: 10px; text-align: center; }
.spec-box i { font-size: 1.3rem; color: var(--accent); }
.feature-list { columns: 2 200px; list-style: none; padding: 0; }
.feature-list li { padding: 3px 0; break-inside: avoid; }
.feature-list li i { color: var(--accent); margin-right: 6px; }
.agent-box { position: sticky; top: 90px; }
.property-description { line-height: 1.7; }
.property-description img { max-width: 100%; height: auto; }
#property-map { height: 340px; border-radius: 10px; }

.site-footer { background: #1f2124; color: #d1d5db; }
.site-footer a { color: #d1d5db; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { background: rgba(0,0,0,.25); }
.whatsapp-float { position: fixed; right: 18px; bottom: 18px; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); z-index: 1050; text-decoration: none; }
.whatsapp-float:hover { color: #fff; filter: brightness(.95); }
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(20,20,20,.95); color: #fff; z-index: 1060; }
#search-map { height: 70vh; min-height: 420px; border-radius: 10px; }
.filters-card .form-label { font-size: .8rem; margin-bottom: 2px; color: #555; }

/* botao "Venda ou alugue seu imovel" no topo (abre o modal de assessoria) */
.btn-advisory { position: relative; overflow: hidden; isolation: isolate; line-height: 1.15; padding: .45rem 1.6rem; font-weight: 700; font-size: .95rem; background: #fff; color: #14305c; border: 2px solid #28a745; border-radius: 24px; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
/* brilho verde passando por dentro do botao, para chamar a atencao */
.btn-advisory::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; z-index: -1;
    background: linear-gradient(100deg, rgba(40,167,69,0) 0%, rgba(40,167,69,.35) 50%, rgba(40,167,69,0) 100%);
    transform: skewX(-20deg); animation: advisory-shine 2.6s ease-in-out infinite; }
@keyframes advisory-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .btn-advisory::before { animation: none; display: none; } }
.btn-advisory:hover, .btn-advisory:focus { background: #28a745; border-color: #28a745; color: #fff; }
.btn-advisory span { display: block; font-size: .7rem; font-weight: 400; opacity: .85; }

/* protecao contra copia (desligavel em Configuracoes > Site) */
.copy-protected body { -webkit-user-select: none; user-select: none; }
.copy-protected input, .copy-protected textarea, .copy-protected select, .copy-protected [contenteditable], .copy-protected .copy-allowed { -webkit-user-select: text; user-select: text; }
.copy-protected img { -webkit-user-drag: none; -webkit-touch-callout: none; }

/* modal "Pedir imovel" (layout do site antigo) */
.lead-modal .modal-content { border: 0; border-radius: 6px; overflow: hidden; }
.lead-modal .modal-header { background: #14305c; color: #fff; border-bottom: 3px solid #28a745; padding: .8rem 1rem; }
.lead-modal .modal-title { font-weight: 700; font-size: 1.05rem; }
.lead-modal .modal-body { color: #14305c; font-size: .95rem; }
.lead-modal .form-label { font-weight: 700; font-size: .85rem; margin-bottom: .3rem; }
.lead-modal hr { border-color: #ccd3dc; opacity: 1; }
.lead-warning { background: #fff5cc; border: 1px solid #f3e1a0; border-radius: 6px; color: #7a5c00; padding: .5rem .8rem; font-size: .88rem; }
.lead-warning i { color: #25d366; }
.lead-modal .modal-footer { padding: 1rem; }
.lead-btn-exit { background: #fff; color: #5a6b7d; font-weight: 700; padding: .7rem 1.4rem; box-shadow: 0 2px 8px rgba(0,0,0,.12); border: 0; }
.lead-btn-send { background: #7cb342; color: #fff; font-weight: 700; padding: .7rem 1.4rem; font-size: 1.05rem; border: 0; }
.lead-btn-send:hover { background: #689f38; color: #fff; }

/* "Venda ou alugue" (avatar) e "Assessoria" */
.anuncie-modal .modal-content { border: 0; border-radius: 14px; overflow: hidden; }
.anuncie-modal .modal-header { background: #132e57; color: #fff; border-bottom: 3px solid #28a745; }
.anuncie-modal .modal-title { font-weight: 700; font-size: 1.1rem; }
.anuncie-modal .anuncie-texto { color: #132e57; font-size: 15px; line-height: 1.6; text-align: center; margin-bottom: 5px; }
.anuncie-modal .form-label { color: #132e57; font-weight: 600; font-size: 13px; margin-bottom: 2px; }
.anuncie-subtitulo { color: #132e57; font-weight: 700; font-size: 15px; border-bottom: 2px solid #28a745; padding-bottom: 4px; margin: 1.2rem 0 .8rem; }
.anuncie-modal .modal-footer { justify-content: center; padding: 10px 15px; border-top: 1px solid #e5e9f0; }
.anuncie-btn { border-radius: 30px; padding: 3px 18px; font-size: 14px; line-height: 1.4; font-weight: 600; color: #fff; border: 0; }
.anuncie-btn:hover, .anuncie-btn:focus { opacity: .9; color: #fff; }
.anuncie-btn-navy, .anuncie-btn-navy:hover { background: #132e57; }
.anuncie-btn-green, .anuncie-btn-green:hover { background: #28a745; }
/* o widget do avatar e mais largo que a caixa: sem rolagem horizontal nem barras */
#venda-alugue .modal-body { overflow-x: hidden; }
#venda-alugue, #venda-alugue * { scrollbar-width: none; }
#venda-alugue ::-webkit-scrollbar { display: none; }
.anuncie-avatar { --avatar-h: 480px; position: relative; height: var(--avatar-h); margin-top: 20px; }
.anuncie-avatar .cp-chat { position: absolute !important; z-index: 1; }
.anuncie-avatar .cp-button-close { display: none !important; }
@media (max-width: 576px) {
    .anuncie-avatar { --avatar-h: 380px; }
    .anuncie-avatar .cp-chat { transform: translateX(-40px) scale(.85); transform-origin: center bottom; }
    #venda-alugue .modal-content { max-height: calc(100dvh - 1rem); }
    #venda-alugue .modal-body { overflow-y: auto; min-height: 0; }
}

/* cartao da pagina inicial com foto 360 ou video no lugar da foto */
.property-card .card-live { width: 100%; height: 100%; border: 0; object-fit: cover; background: #000; pointer-events: none; }
