/* ==========================================================================
   7X Imóveis - Core Design System
   Design tokens, reset, layout, header, footer, utilities
   Cores gerenciadas por themes.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Spacing & Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transition */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Global Reset ───────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.container-narrow {
    max-width: 800px;
}

main {
    flex: 1;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-hover);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

p {
    line-height: 1.7;
}

/* ── Section Utilities ──────────────────────────────────────────────────── */
.section {
    padding: 5rem 0;
}

.section-surface {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 650px;
    margin: 0 auto 3.5rem auto;
}

.section-header h2 {
    margin-top: 0.75rem;
}

.section-header p {
    color: var(--text-secondary);
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* Accent divider line */
.accent-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 2px;
    margin: 1rem auto 0 auto;
}

.text-center {
    text-align: center;
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-primary-color {
    color: var(--primary);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.mb-3 {
    margin-bottom: 1.5rem;
}

.mb-4 {
    margin-bottom: 2rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* ══════════════════════════════════════════════════════════════════════════
   PREMIUM ANIMATED HEADER
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Entrance animation ─────────────────────────────────────────────────── */
@keyframes headerSlideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% center;
    }

    100% {
        background-position: 200% center;
    }
}

@keyframes glowPulse {

    0%,
    100% {
        text-shadow: 0 0 8px rgba(201, 172, 119, 0);
    }

    50% {
        text-shadow: 0 0 22px rgba(201, 172, 119, 0.6);
    }
}

@keyframes navBarSlide {
    from {
        transform: scaleX(0);
    }

    to {
        transform: scaleX(1);
    }
}

/* ── Base Header ────────────────────────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 1px solid var(--border-color);
    /* Entrance */
    animation: headerSlideDown 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
    /* Smooth size transition on scroll */
    transition: height 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease,
        background 0.3s ease;
}

/* Gold shimmer line at top of header */
.site-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1.5px;
    background: linear-gradient(90deg,
            transparent 0%,
            var(--primary) 30%,
            #f0d98a 50%,
            var(--primary) 70%,
            transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.site-header.scrolled::before {
    opacity: 1;
}

/* ── Scrolled State (compact) ───────────────────────────────────────────── */
.site-header.scrolled {
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.18);
    border-bottom-color: var(--border-highlight);
    background: var(--bg-glass);
}

.site-header.scrolled .header-inner {
    height: 58px;
}

/* ── Inner Layout ───────────────────────────────────────────────────────── */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
    gap: 2rem;
    transition: height 0.3s ease;
}

/* ── Text Logotype ──────────────────────────────────────────────────────── */
.brand-logo {
    display: flex;
    align-items: baseline;
    gap: 0.18em;
    text-decoration: none;
    flex-shrink: 0;
    user-select: none;
    transition: var(--transition);
}

.brand-mark {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 1000;
    line-height: 1;
    /* Animated shimmer gradient */
    background: linear-gradient(105deg,
            var(--primary-hover) 0%,
            #f0d98a 30%,
            var(--primary) 50%,
            #f0d98a 70%,
            var(--primary-hover) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 4s linear infinite;
    transition: var(--transition);
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
    transition: var(--transition);
}

/* Logo hover — glow + name brightens */
.brand-logo:hover .brand-mark {
    animation: shimmer 1.2s linear infinite, glowPulse 1.2s ease-in-out infinite;
    filter: brightness(1.2);
}

.brand-logo:hover .brand-name {
    color: var(--primary);
    letter-spacing: 0.22em;
}

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.nav-link {
    position: relative;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.45rem 0.9rem;
    border-radius: var(--radius-full);
    transition: color 0.25s ease, background 0.25s ease;
    letter-spacing: 0.02em;
    text-decoration: none;
    overflow: hidden;
}

/* Ripple/glow background on hover */
.nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: radial-gradient(circle at center, var(--primary-glow), transparent 70%);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Animated underbar */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0.9rem;
    right: 0.9rem;
    height: 1.5px;
    background: var(--primary);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 0 6px var(--primary);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::before {
    opacity: 1;
    transform: scale(1);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

.nav-link.active::after {
    transform: scaleX(1);
    animation: navBarSlide 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

/* ── Nav Link Publique — Sutil ──────────────────────────────────────────── */
.nav-link-publique {
    color: var(--text-secondary) !important;
    font-weight: 500 !important;
    opacity: 0.85;
}

.nav-link-publique:hover {
    color: var(--primary) !important;
    opacity: 1;
}

.nav-link-publique.active {
    color: var(--primary) !important;
    opacity: 1;
}


/* ── Header Actions ─────────────────────────────────────────────────────── */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

/* CTA with shimmer sweep on hover */
.header-cta {
    position: relative;
    padding: 0.55rem 1.2rem;
    font-size: 0.88rem;
    border-radius: var(--radius-full);
    overflow: hidden;
}

.header-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.22), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.header-cta:hover::after {
    left: 150%;
}

/* Theme toggle styles → ver themes.css (fonte única) */

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem; /* Botão proporcional ao header mais baixo */
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: var(--transition);
}

.mobile-nav-toggle:hover {
    color: var(--primary);
}

/* ── Toast Notifications ────────────────────────────────────────────────── */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.alert-toast {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    border-left: 4px solid var(--primary);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    animation: slideInRight 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    backdrop-filter: blur(12px);
}

.alert-toast.success {
    border-left-color: var(--accent-emerald);
}

.alert-toast.error {
    border-left-color: #ef4444;
}

@keyframes slideInRight {
    from {
        transform: translateX(120%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ── Footer Premium ─────────────────────────────────────────────────────── */
.site-footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding: 5rem 0 0 0;
    position: relative;
    overflow: hidden;
}

/* Subtle dark overlay gradient for depth */
.site-footer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 40% at 10% 100%, var(--primary-glow, rgba(201,172,119,0.06)) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

/* Gold shimmer accent line on top of footer */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--primary) 30%,
        #f0d98a 50%,
        var(--primary) 70%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 4s linear infinite;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ── Footer Brand Column ── */
.footer-brand-logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.18em;
    text-decoration: none;
    user-select: none;
    transition: var(--transition);
    margin-bottom: 1.25rem;
}

/* Scale down brand-mark slightly for footer context */
.footer-brand-logo .brand-mark {
    font-size: 2rem;
}

.footer-brand-logo .brand-name {
    font-size: 1.2rem;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 300px;
    line-height: 1.75;
}

/* ── Social Links ── */
.footer-social {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    background: transparent;
    transition: var(--transition);
    text-decoration: none;
}

.footer-social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(201, 172, 119, 0.08);
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(201, 172, 119, 0.2);
}

/* ── Footer Column Headings ── */
.footer-col h4 {
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 28px;
    height: 1.5px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 1px;
}

/* ── Footer Links ── */
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition);
    text-decoration: none;
    padding: 0.1rem 0;
}

.footer-links a::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--border-highlight, var(--border-color));
    flex-shrink: 0;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-links a:hover::before {
    background: var(--primary);
}

/* ── Contact Items ── */
.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    transition: var(--transition);
    text-decoration: none;
    padding: 0.15rem 0;
    line-height: 1.5;
}

a.footer-contact-item:hover {
    color: var(--primary);
}

a.footer-contact-item:hover .footer-contact-icon {
    color: var(--primary);
    border-color: var(--primary);
    background: rgba(201, 172, 119, 0.08);
}

.footer-contact-address {
    cursor: default;
}

.footer-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: var(--transition);
    margin-top: 0.05rem;
}

/* ── CRECI Badge ── */
.footer-creci-badge {
    display: inline-flex;
    align-items: center;
    margin-top: 1.25rem;
    padding: 0.3rem 0.85rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    text-transform: uppercase;
    background: rgba(201, 172, 119, 0.04);
}

/* ── Footer Bottom Bar ── */
.footer-bottom {
    padding: 1.75rem 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.footer-bottom-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.7;
    letter-spacing: 0.05em;
}

/* ── Floating WhatsApp Button ────────────────────────────────────────────── */
@keyframes waPulseRing {
    0%   { transform: scale(1);   opacity: 0.55; }
    80%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

a.whatsapp-float,
a.whatsapp-float::before {
    border-radius: 9999px !important;   /* alta especificidade — vence o override global */
}

a.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
    width: auto;
    min-width: 56px;
    max-width: 56px;
    height: 56px;
    padding: 0;
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37,211,102,0.3);
    transition: max-width 0.35s cubic-bezier(0.34,1.56,0.64,1),
                padding 0.35s ease,
                gap 0.3s ease,
                box-shadow 0.25s ease;
    overflow: hidden;
    white-space: nowrap;
}

/* Anel pulsante */
a.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: 0;
    background: #25D366;
    z-index: -1;
    animation: waPulseRing 2.5s ease-out infinite;
}

.wa-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.wa-label {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.35s ease, opacity 0.25s ease, margin 0.3s ease;
    position: relative;
    z-index: 1;
}

/* Hover: expande */
a.whatsapp-float:hover {
    max-width: 200px;
    height: 56px;
    padding: 0 1.2rem;
    gap: 0.5rem;
    box-shadow: 0 6px 28px rgba(37,211,102,0.5);
    color: #fff;
}

a.whatsapp-float:hover .wa-label {
    max-width: 100px;
    opacity: 1;
}

a.whatsapp-float:hover::before {
    animation: none;
    opacity: 0;
}


/* ── Reveal Animation Class ─────────────────────────────────────────────── */
/* GSAP handles initial opacity via .from() — no CSS opacity:0 needed.
   This prevents content from being invisible if GSAP fails to load. */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Safety: property cards must NEVER stay invisible after GSAP completes.
   GSAP inline styles override CSS during animation; clearProps cleans them up.
   This CSS acts as the safe default state before and after animation. */
.properties-grid .property-card {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 992px) {
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
    }

    .header-inner {
        height: 10px !important;
        gap: 0.5rem;
    }

    .site-header.scrolled .header-inner {
        height: 5px !important;
    }

    .site-header.scrolled .nav-menu {
        top: 30px;
    }
    
    .brand-mark {
        font-size: 1.9rem;
    }
    
    .brand-name {
        font-size: 1.3rem;
        letter-spacing: 0.05em;
    }

    /* Ocultar elementos desnecessários no mobile para deixar apenas Logo + Hamburger */
    .header-icon-group-absolute,
    .theme-toggle-btn,
    .header-cta {
        display: none !important;
    }

    /* Ajustar o container de ações (apenas o hamburger vai ficar) */
    .header-actions {
        margin-right: 0;
        gap: 0;
    }

    .nav-menu {
        display: flex;
        position: absolute;
        top: 45px;
        left: 0;
        right: 0;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 2.5rem 1rem 1rem 1rem; /* Margem maior no topo para os itens ficarem mais abaixo */
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
        gap: 0.25rem;
        z-index: -1; 
        opacity: 0;
        pointer-events: none;
        
        /* Efeito girando 90 graus para 0 (mais lento) */
        transform-origin: top right;
        transform: perspective(1000px) rotateZ(90deg) scale(0.6);
        transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.8s ease;
    }

    .nav-link {
        width: 100%;
        padding: 1rem 1.2rem;
        border-radius: 6px;
        font-size: 1.25rem;
        font-weight: 500;
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: auto;
        transform: perspective(1000px) rotateZ(0deg) scale(1);
    }

    .mobile-nav-toggle {
        display: block;
    }

    .header-cta {
        display: none;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 2rem;
        margin-bottom: 0;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .section {
        padding: 3.5rem 0;
    }

    a.whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 46px;
        height: 46px;
        font-size: 1.3rem;
    }
}

/* ══ Top Announcement Bar ════════════════════════════════════════════════ */

@keyframes topBarSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to   { transform: translateY(0);     opacity: 1; }
}

@keyframes dotPulse {
    0%, 100% { opacity: 1;   transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.top-bar {
    width: 100%;
    background: linear-gradient(90deg,
        rgba(74, 81, 99, 0.98) 0%,
        rgba(20, 22, 32, 0.98) 100%
    );
    border-bottom: 1px solid rgba(201, 172, 119, 0.2);
    padding: 0.55rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    z-index: 1001;
    animation: topBarSlideDown 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.top-bar-inner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    justify-content: center;
}

.top-bar-dot {
    width: 6px;
    height: 6px;
    background: var(--primary, #c9ac77);
    border-radius: 50% !important;
    flex-shrink: 0;
    animation: dotPulse 2s ease-in-out infinite;
}

.top-bar-msg {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.02em;
    line-height: 1;
    margin: 0;
}

.top-bar-msg strong { color: #fff; font-weight: 600; }

.top-bar-link {
    color: var(--primary, #c9ac77);
    font-weight: 600;
    text-decoration: none;
    margin-left: 0.75rem;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    transition: color 0.2s ease, letter-spacing 0.2s ease;
}

.top-bar-link:hover { color: #fff; letter-spacing: 0.07em; }

.top-bar-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.2rem 0.4rem;
    line-height: 1;
    flex-shrink: 0;
    position: absolute;
    right: 1rem;
    transition: color 0.2s ease;
}

.top-bar-close:hover { color: rgba(255, 255, 255, 0.8); }

@media (max-width: 992px) {
    .top-bar { display: none !important; } /* Removido a faixa de mensagem */
    .top-bar-msg { font-size: 0.72rem; }
    .top-bar-link { display: none; }
}

/* ══ Header Icon Group (Search & Favorites on Extreme Right) ═════════════════════════════════════════════ */
.header-icon-group-absolute {
    position: absolute;
    right: 20px; /* Padding lateral para afastar da borda da tela */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px; /* canto redondo de todos os lados */
    z-index: 50; /* ficar acima dos itens do header */
    overflow: hidden; /* para respeitar o border-radius */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0;
    text-decoration: none;
    position: relative;
}

.header-icon-btn:last-child {
    border-right: none;
}

.header-icon-btn:hover {
    color: var(--primary);
    background: rgba(201, 172, 119, 0.08);
}

.header-fav-btn:hover {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.08);
}

.header-fav-btn.has-favorites {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.04);
}

.header-fav-btn.has-favorites svg {
    fill: #ef4444;
    stroke: #ef4444;
}

/* Count badge on the button */
.favorites-count-badge {
    position: absolute;
    top: 4px;
    right: 4px; /* Movido para dentro do botão para não ser cortado pelo overflow:hidden do grupo */
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0;
    border-radius: 9px !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.45);
    animation: badgePop 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes badgePop {
    0%   { transform: scale(0.5); }
    60%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ══ Favorites Side Drawer ═══════════════════════════════════════════════ */
.fav-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.fav-drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.fav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 390px;
    max-width: calc(100vw - 2rem);
    height: 100dvh;
    background: var(--bg-surface);
    border-left: 1px solid var(--border-color);
    box-shadow: none;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
    overflow: hidden;
}

.fav-drawer.open {
    transform: translateX(0);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.35);
}

.fav-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-surface);
}

/* Gold accent line at top */
.fav-drawer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
}

.fav-drawer-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.02em;
}

.fav-drawer-title svg {
    color: #ef4444;
    fill: rgba(239, 68, 68, 0.12);
    stroke: #ef4444;
}

.fav-drawer-close {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
    flex-shrink: 0;
}

.fav-drawer-close:hover {
    background: var(--bg-muted, rgba(0,0,0,0.05));
    border-color: var(--text-muted);
    color: var(--text-primary);
}

.fav-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

/* Empty State */
.fav-drawer-empty {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 3rem 2rem;
    text-align: center;
    color: var(--text-muted);
}

.fav-drawer-empty svg {
    opacity: 0.2;
    color: var(--text-muted);
}

.fav-drawer-empty p {
    font-size: 0.9rem;
    line-height: 1.5;
}

.fav-drawer-empty a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 1.25rem;
    background: var(--primary);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: opacity 0.2s;
    margin-top: 0.5rem;
}

.fav-drawer-empty a:hover { opacity: 0.85; }

/* Individual Favorite Item Card */
.fav-item {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 0.85rem;
    align-items: center;
    padding: 0.85rem;
    background: var(--bg-page, var(--bg-surface));
    border: 1px solid var(--border-color);
    transition: border-color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.fav-item:hover {
    border-color: var(--primary);
    transform: translateX(-2px);
}

.fav-item-img {
    width: 82px;
    height: 62px;
    object-fit: cover;
    flex-shrink: 0;
    display: block;
}

.fav-item-img-placeholder {
    width: 82px;
    height: 62px;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-muted);
}

.fav-item-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.fav-item-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.fav-item-loc {
    font-size: 0.73rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fav-item-price {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--primary);
    white-space: nowrap;
}

.fav-item-remove {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: color 0.2s ease;
    align-self: flex-start;
}

.fav-item-remove:hover { color: #ef4444; }

/* ══════════════════════════════════════════════════════════════════
   GLOBAL SQUARE OVERRIDE — force 0 border-radius on everything
   Cobre qualquer valor hardcoded, variavel ou de terceiros
   ══════════════════════════════════════════════════════════════════ */
*, *::before, *::after {
    border-radius: 0 !important;
}

/* --- INÍCIO DO CSS RESPONSIVO GLOBAL --- */
/* Injetado via solicitação: não alterar HTML/CSS existente */
@media (max-width: 992px) {
    /* 1. Prevenir rolagem horizontal indesejada */
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
    }
    
    /* 2. Forçar containers a usarem a tela toda com margem segura */
    .container, .container-fluid, .wrapper, .main-container, main {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        box-sizing: border-box !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* 3. Empilhar elementos Flexbox e Grid */
    .d-flex, .row, .flex-row, .grid, .properties-grid, .features-grid, .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    /* 4. Ajustar larguras fixas de colunas */
    .col, .col-6, .col-4, .col-3, .col-12, [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 1rem !important;
    }

    /* 5. Imagens e vídeos responsivos */
    img, video, iframe, canvas {
        max-width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }

    /* 6. Ajustar fontes e espaçamentos gigantes */
    h1 { font-size: 2.2rem !important; line-height: 1.2 !important; }
    h2 { font-size: 1.8rem !important; line-height: 1.3 !important; }
    h3 { font-size: 1.5rem !important; }
    p { font-size: 1rem !important; }
    
    section, .section, .hero, header, footer {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
        height: auto !important;
        min-height: auto !important;
    }

    /* 7. Formulários adaptados para toque */
    input, select, textarea, button, .btn {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 10px !important;
    }
}
/* --- FIM DO CSS RESPONSIVO GLOBAL --- */

/* ══ Search Overlay ══════════════════════════════════════════════════════ */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 15, 25, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-close-btn {
    position: absolute;
    top: 2rem;
    right: 3rem;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.search-close-btn:hover {
    color: var(--primary);
}

.search-overlay-content {
    width: 100%;
    max-width: 800px;
    padding: 0 2rem;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    z-index: 1;
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 300;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.1);
}

.search-icon {
    margin: 0 1rem;
    color: rgba(255, 255, 255, 0.5);
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.25rem;
    padding: 1rem 0;
    outline: none;
    min-width: 0;
}

.search-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.search-submit-btn {
    padding: 1rem 2rem !important;
    font-size: 1.1rem;
    border-radius: 8px;
    width: auto !important;
    margin-bottom: 0 !important;
}

.search-suggestions {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.search-suggestions a {
    color: #fff;
    text-decoration: none;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: background 0.3s ease, color 0.3s ease;
}

.search-suggestions a:hover {
    background: var(--primary);
    color: #111;
}
