:root {
    --site-color: #1e3a8a;
    --site-color-dark: #152c6b;
    --site-ink: #0f172a;
    --site-muted: #64748b;
    --site-line: #e8eef5;
    --site-bg: #f4f6fb;
}
body { background: #fff; color: var(--site-ink); font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif; }
a { color: inherit; }

.site-nav { background: #fff; border-bottom: 1px solid var(--site-line); box-shadow: 0 1px 0 rgba(15,23,42,.04); }
.site-nav .navbar-brand { font-weight: 700; letter-spacing: -.02em; color: var(--site-ink); }
.site-nav .navbar-brand img { max-height: 48px; width: auto; }
.site-nav .nav-link {
    font-weight: 600; color: #334155; padding: .55rem .95rem; border-radius: 999px; font-size: .92rem;
}
.site-nav .nav-link:hover { color: var(--site-color); background: #f1f5ff; }
.site-nav .nav-link.active { color: var(--site-color); background: #eef2ff; }
.site-nav .navbar-toggler { border: 1px solid var(--site-line); }
.navbar-nav { gap: .15rem; }

.btn-wa {
    background: #128c7e !important; color: #fff !important; border: 0 !important;
    border-radius: 999px; font-weight: 600;
}
.btn-wa:hover, .btn-wa:focus {
    background: #0e7a6e !important; color: #fff !important; filter: none;
}
.btn-site, .btn-site:hover, .btn-site:focus, .btn-site:active,
.btn.btn-site, .btn.btn-site:hover, .btn.btn-site:focus {
    background: var(--site-color) !important;
    color: #fff !important;
    border: 1px solid var(--site-color) !important;
    border-radius: 10px;
    font-weight: 600;
    box-shadow: none;
}
.btn-site:hover, .btn.btn-site:hover { background: var(--site-color-dark) !important; filter: none; }
.btn-outline-primary {
    color: var(--site-color) !important;
    border-color: var(--site-color) !important;
    background: #fff !important;
    font-weight: 600;
    border-radius: 10px;
}
.btn-outline-primary:hover, .btn-outline-primary:focus {
    background: var(--site-color) !important;
    color: #fff !important;
    border-color: var(--site-color) !important;
}

.hero { position: relative; min-height: 540px; display: flex; align-items: center; color: #fff; }
.hero-slide { position: absolute; inset: 0; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,18,40,.42), rgba(8,18,40,.68)); }
.hero-copy { position: relative; z-index: 2; padding: 5.5rem 0 7.5rem; }
.hero-copy h1 { font-weight: 700; letter-spacing: -.03em; }
.search-float { position: relative; z-index: 3; margin-top: -56px; }
.search-panel {
    background: #fff; border-radius: 18px; padding: 1rem 1.15rem;
    box-shadow: 0 18px 50px rgba(15,23,42,.12);
}
.search-panel label { font-size: .68rem; letter-spacing: .06em; color: var(--site-muted); font-weight: 600; }
.search-panel .btn-site { min-height: 42px; }

.feature-card {
    background: #fff; border-radius: 18px; padding: 2rem 1.5rem; text-align: center;
    box-shadow: 0 10px 30px rgba(15,23,42,.06); height: 100%;
}
.feature-ico {
    width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 1rem;
    background: #e8eefc; color: var(--site-color); display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem;
}

.imovel-card {
    display: block; background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 8px 28px rgba(15,23,42,.07);
    transition: transform .18s ease, box-shadow .18s ease;
}
.imovel-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15,23,42,.14); color: inherit; }
.imovel-card-media { position: relative; height: 210px; background: #e2e8f0; }
.imovel-card-media img { width: 100%; height: 210px; object-fit: cover; display: block; }
.imovel-card-ph { height: 210px; display: flex; align-items: center; justify-content: center; font-size: 2.4rem; color: #94a3b8; }
.badge-fin {
    position: absolute; top: 12px; left: 12px; background: var(--site-color); color: #fff;
    font-size: .72rem; font-weight: 600; padding: .28rem .6rem; border-radius: 999px;
}
.badge-vendido {
    position: absolute; top: 12px; right: 12px; background: #dc2626; color: #fff;
    font-size: .72rem; font-weight: 700; padding: .28rem .6rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .05em; z-index: 2;
}
.imovel-card-body { padding: 1rem 1.05rem 1.15rem; }
.imovel-card-meta { font-size: .78rem; color: var(--site-muted); text-transform: capitalize; margin-bottom: .25rem; }
.imovel-card-title { font-size: .98rem; font-weight: 600; margin: 0 0 .45rem; line-height: 1.35; min-height: 2.6em; }
.price { font-weight: 700; color: var(--site-color); font-size: 1.08rem; }
.price-rent { font-weight: 600; color: #0f766e; font-size: .95rem; }
.imovel-card-specs { display: flex; gap: .7rem; flex-wrap: wrap; font-size: .78rem; color: var(--site-muted); margin-top: .5rem; }

.site-gallery { border-radius: 16px; overflow: hidden; background: #0b1220; position: relative; }
.site-gallery-main { width: 100%; height: 460px; object-fit: cover; display: block; cursor: zoom-in; }
.site-gallery-zoom {
    position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff;
    border: 0; border-radius: 999px; padding: .35rem .7rem; font-size: .8rem;
}
.badge-vendido-lg {
    position: absolute; top: 16px; left: 16px; background: #dc2626; color: #fff;
    font-size: 1rem; font-weight: 700; padding: .45rem .9rem; border-radius: 999px;
    text-transform: uppercase; letter-spacing: .05em; z-index: 2;
}
.badge-vendido-lg2 {
    position: absolute; top: 42px; left: 16px; background: #fff;border: 4px solid #dc2626; color: #dc2626;
    font-size: 1.3em; font-weight: 700; padding: .45rem .9rem; border-radius: 10px;
    text-transform: uppercase; letter-spacing: .05em; z-index: 2;
    transform: rotate(-32deg); /* Gira 45 graus no sentido horário */
    transform-origin: center center;
}
.site-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .65rem 0 0; }
.site-thumbs button {
    border: 2px solid transparent; padding: 0; background: #e2e8f0; border-radius: 10px; overflow: hidden;
    width: 88px; height: 64px; flex: 0 0 88px; cursor: pointer;
}
.site-thumbs button.active { border-color: var(--site-color); }
.site-thumbs img { width: 88px; height: 64px; object-fit: cover; display: block; }

.lightbox {
    display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(8,12,24,.92);
    align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 8px; }
.lightbox-close, .lightbox-nav {
    position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
    width: 44px; height: 44px; border-radius: 50%; font-size: 1.4rem;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-nav.prev { left: 18px; }
.lightbox-nav.next { right: 18px; }

.site-specs { background: #f8fafc; border-radius: 14px; padding: 1rem 1.1rem; }
.site-specs span { color: #334155; font-size: .92rem; font-weight: 600; }
.site-specs i { color: var(--site-color); margin-right: .2rem; }
.site-desc { white-space: pre-line; line-height: 1.75; color: #334155; }
.site-side {
    background: #fff; border-radius: 16px; padding: 1.25rem 1.3rem;
    box-shadow: 0 12px 36px rgba(15,23,42,.08); position: sticky; top: 88px;
}
.price-lg { font-size: 1.55rem; font-weight: 700; color: var(--site-color); }
.site-back { color: var(--site-color); font-weight: 600; }

.site-footer { background: #0b1220; color: #94a3b8; padding: 3rem 0 1.5rem; margin-top: 4rem; }
.site-footer h6 { color: #fff; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.page-head { padding: 2.2rem 0 1rem; }

@media (max-width: 768px) {
    .hero { min-height: 380px; }
    .site-gallery-main { height: 240px; }
    .site-side { position: static; }
    .navbar-nav { padding: .75rem 0; }
    .site-nav .nav-link { display: block; }
}
