/* ========================================
   ESSENZA Imóveis - Main Stylesheet
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --primary: #1a1a2e;
    --primary-light: #2d2d44;
    --secondary: #c9a45c;
    --secondary-light: #dbb872;
    --accent: #e8b84a;
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;

    /* Aliases for template compatibility */
    --navy: #1a1a2e;
    --navy-dark: #0f0f1a;
    --gold: #c9a45c;
    --gold-light: #dbb872;
    --gold-dark: #a8893d;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --black: #000000;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;

    /* Spacing aliases */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;

    /* Transitions */
    --transition-base: 200ms ease;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms;
    --transition: 200ms;
    --transition-slow: 300ms;

    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal: 1040;
    --z-tooltip: 1050;
}

/* Dynamic property detail and 360 gallery */
.property-detail-modern { padding: 110px 0 70px; background: #f7f8fa; min-height: 100vh; }
.legal-page h2 { margin: 2rem 0 .65rem; color: var(--navy); font-size: 1.35rem; }
.legal-page p { color: var(--gray-600); line-height: 1.8; }
.property-breadcrumb { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #64748b; margin-bottom: 18px; overflow: hidden; white-space: nowrap; }
.property-breadcrumb a { color: #334155; text-decoration: none; }
.property-breadcrumb strong { overflow: hidden; text-overflow: ellipsis; }
.property-gallery-modern { background: white; border-radius: 18px; padding: 12px; box-shadow: 0 14px 40px rgba(15,23,42,.08); }
.property-gallery-main { height: min(64vh, 650px); min-height: 420px; position: relative; overflow: hidden; border-radius: 13px; background: #0f172a; }
.property-gallery-main > img { width: 100%; height: 100%; object-fit: cover; }
.property-gallery-main::after { content: ''; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(2,6,23,.72)); pointer-events: none; }
.property-gallery-topbadges { position: absolute; top: 18px; left: 18px; z-index: 2; display: flex; gap: 8px; flex-wrap: wrap; }
.property-gallery-topbadges span { background: rgba(7,31,70,.9); color: white; border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 7px 10px; font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.property-gallery-actions { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; gap: 9px; }
.property-gallery-actions button { border: 1px solid rgba(255,255,255,.45); color: white; background: rgba(7,31,70,.86); backdrop-filter: blur(8px); border-radius: 8px; padding: 11px 15px; font-weight: 700; cursor: pointer; }
.property-gallery-actions button:last-child { background: #c9a45c; color: #071f46; border-color: #c9a45c; }
.property-thumbnails { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(110px, 155px); gap: 9px; overflow-x: auto; padding-top: 10px; scrollbar-width: thin; }
.property-thumbnail { height: 92px; border: 2px solid transparent; border-radius: 9px; padding: 0; overflow: hidden; position: relative; background: #e2e8f0; cursor: pointer; }
.property-thumbnail.is-active { border-color: #c9a45c; }
.property-thumbnail img { width: 100%; height: 100%; object-fit: cover; }
.property-thumbnail span { position: absolute; top: 6px; left: 6px; color: white; background: #4338ca; border-radius: 5px; padding: 3px 6px; font-size: 10px; font-weight: 800; }
.property-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 28px; }
.property-detail-content { display: flex; flex-direction: column; gap: 20px; }
.property-detail-heading,.property-facts,.property-copy-block,.property-interest-card { background: white; border: 1px solid #e7eaf0; border-radius: 15px; box-shadow: 0 8px 25px rgba(15,23,42,.05); }
.property-detail-heading { padding: 26px; display: flex; justify-content: space-between; gap: 24px; }
.property-code { color: #a27f39; font-size: 11px; font-weight: 800; letter-spacing: .12em; margin: 0 0 8px; }
.property-detail-heading h1 { color: #071f46; font-family: var(--font-display); font-size: clamp(27px, 3vw, 42px); line-height: 1.08; margin: 0 0 10px; }
.property-address { color: #64748b; margin: 0; }
.property-detail-price { min-width: 210px; text-align: right; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 5px; }
.property-detail-price small,.property-detail-price span { color: #64748b; font-size: 11px; }
.property-detail-price strong { color: #071f46; font-size: 25px; }
.property-facts { display: grid; grid-template-columns: repeat(5,1fr); padding: 20px; }
.property-facts div { padding: 7px 15px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid #e7eaf0; }
.property-facts div:last-child { border-right: 0; }
.property-facts strong { color: #071f46; font-size: 20px; }.property-facts span { color: #64748b; font-size: 11px; }
.property-copy-block { padding: 26px; color: #475569; line-height: 1.8; }.property-copy-block h2 { color: #071f46; font-family: var(--font-display); margin: 0 0 15px; }
.property-interest-card { position: sticky; top: 95px; padding: 24px; }.property-interest-card h2 { color: #071f46; font-family: var(--font-display); font-size: 28px; margin: 0; }.property-interest-card > p { color: #64748b; font-size: 13px; }
.property-interest-card form { display: flex; flex-direction: column; gap: 13px; margin-top: 18px; }.property-interest-card label { display: flex; flex-direction: column; gap: 6px; color: #334155; font-size: 12px; font-weight: 600; }.property-interest-card input,.property-interest-card textarea { border: 1px solid #d7dce5; border-radius: 8px; padding: 11px 12px; font: inherit; resize: vertical; }.property-interest-card button { border: 0; border-radius: 8px; padding: 13px; background: #c9a45c; color: #071f46; font-weight: 800; cursor: pointer; }.property-interest-card form > a { text-align: center; color: #071f46; text-decoration: none; border: 1px solid #ccd3df; border-radius: 8px; padding: 12px; font-weight: 700; }
.property-form-success,.property-form-error { border-radius: 8px; padding: 10px 12px; font-size: 12px; }.property-form-success { background: #ecfdf5; color: #047857; }.property-form-error { background: #fef2f2; color: #b91c1c; }
.similar-properties-modern { margin-top: 55px; }.similar-properties-modern > div:first-child p { color: #a27f39; font-size: 11px; font-weight: 800; letter-spacing: .13em; }.similar-properties-modern h2 { color: #071f46; font-family: var(--font-display); font-size: 34px; }.similar-properties-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }.similar-property-card { background: white; color: inherit; text-decoration: none; border-radius: 12px; overflow: hidden; box-shadow: 0 9px 25px rgba(15,23,42,.07); }.similar-property-card img { width: 100%; height: 180px; object-fit: cover; }.similar-property-card div { padding: 15px; display: flex; flex-direction: column; gap: 6px; }.similar-property-card small { color: #64748b; }.similar-property-card strong { color: #071f46; }.similar-property-card span { color: #a27f39; font-weight: 800; }
.property-lightbox,.property-panorama-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(2,6,23,.94); display: grid; place-items: center; padding: 30px; }.property-lightbox[hidden],.property-panorama-modal[hidden] { display: none; }.property-lightbox figure { max-width: min(1100px,85vw); margin: 0; text-align: center; color: white; }.property-lightbox figure img { max-width: 100%; max-height: 80vh; object-fit: contain; }.property-lightbox button,.property-panorama-dialog > button { position: absolute; border: 0; background: rgba(255,255,255,.14); color: white; border-radius: 50%; width: 46px; height: 46px; font-size: 30px; cursor: pointer; }.property-lightbox-close,.property-panorama-dialog > button { top: 20px; right: 20px; }.property-lightbox-prev { left: 20px; }.property-lightbox-next { right: 20px; }.property-panorama-dialog { width: min(1200px,94vw); height: min(760px,88vh); position: relative; }.property-panorama-dialog > button { z-index: 3; }.property-panorama-dialog > div { width: 100%; height: 100%; background: #111827; }.property-panorama-dialog img { width: 100%; height: calc(100% - 50px); object-fit: contain; }

@media (max-width: 900px) {
    .property-detail-modern { padding-top: 88px; }
    .property-gallery-main { min-height: 320px; height: 52vh; }
    .property-detail-layout { grid-template-columns: 1fr; }
    .property-interest-card { position: static; }
    .property-detail-heading { flex-direction: column; }
    .property-detail-price { text-align: left; align-items: flex-start; }
    .property-facts { grid-template-columns: repeat(3,1fr); }.property-facts div { border: 0; border-bottom: 1px solid #e7eaf0; }
    .similar-properties-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 560px) {
    .property-detail-modern { padding-top: 78px; }
    .property-gallery-modern { margin-inline: -10px; border-radius: 0; }
    .property-gallery-main { min-height: 300px; height: 44vh; }
    .property-gallery-actions { left: 12px; right: 12px; bottom: 12px; }.property-gallery-actions button { flex: 1; padding: 10px; font-size: 11px; }
    .property-detail-heading,.property-copy-block,.property-interest-card { padding: 19px; }
    .property-facts { grid-template-columns: repeat(2,1fr); }
    .similar-properties-grid { grid-template-columns: 1fr; }
    .property-lightbox { padding: 10px; }.property-lightbox-prev { left: 8px; }.property-lightbox-next { right: 8px; }
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

ul, ol {
    list-style: none;
    padding: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

.text-center { text-align: center; }
.text-secondary { color: var(--gray-500); }

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--secondary);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--primary);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.btn-outline:hover {
    background: var(--secondary);
    color: var(--primary);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    border: 2px solid #25D366;
}

.btn-whatsapp:hover {
    background: #20BD5A;
    border-color: #20BD5A;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.w-full {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full, .w-full {
    width: 100%;
}

/* ========================================
   HEADER
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 26, 46, 0.08);
    transition: all var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.99);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 85px;
    gap: var(--spacing-xl);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    text-decoration: none;
    transition: transform var(--transition);
}

.logo:hover {
    transform: scale(1.02);
}

.logo-image {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.mobile-logo {
    height: 45px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo-tagline {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Navigation */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    padding: var(--spacing-sm) 0;
    position: relative;
    transition: color var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width var(--transition);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Nav Actions */
.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: all var(--transition);
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 320px;
    max-width: 85vw;
    background: var(--white);
    z-index: 1002;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    border-bottom: 1px solid var(--gray-100);
}

.mobile-menu-close {
    padding: var(--spacing-sm);
    color: var(--gray-500);
}

.mobile-menu-nav {
    flex: 1;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.mobile-menu-nav a {
    display: block;
    padding: var(--spacing-md);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--gray-700);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.mobile-menu-nav a:hover {
    background: var(--gray-50);
    color: var(--primary);
}

.mobile-menu-footer {
    padding: var(--spacing-lg);
    border-top: 1px solid var(--gray-100);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero-overline {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(201, 164, 92, 0.2);
    color: var(--secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    margin-bottom: var(--spacing-lg);
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.hero-text {
    font-size: 1.25rem;
    color: var(--gray-300);
    margin-bottom: var(--spacing-xl);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.hero-visual {
    position: absolute;
    right: -5%;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    max-width: 600px;
    opacity: 0.3;
}

/* ========================================
   SEARCH SECTION
   ======================================== */
.search-section {
    position: relative;
    margin-top: -100px;
    z-index: 10;
}

.search-box {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-xl);
}

.search-header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.search-header p {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-sm);
}

.search-header h2 {
    margin-bottom: var(--spacing-sm);
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.form-group select,
.form-group input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-group select:focus,
.form-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.2);
}

.search-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-md);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section {
    padding: var(--spacing-4xl) 0;
}

.section-gray {
    background: var(--gray-50);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section-header p {
    color: var(--secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p:last-of-type {
    color: var(--gray-500);
    font-size: 1.125rem;
}

/* ========================================
   PROPERTY CARDS
   ======================================== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.property-card:hover .property-image img {
    transform: scale(1.05);
}

.property-badge {
    position: absolute;
    top: var(--spacing-md);
    left: var(--spacing-md);
    padding: var(--space-2) var(--space-4);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 25px;
}

.property-badge.lancamento,
.badge-lancamento {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: white;
}

.property-badge.destaque,
.badge-destaque {
    background: var(--navy);
    color: white;
}

.property-badge.aluguel,
.badge-aluguel {
    background: var(--success);
    color: white;
}

.property-badge:not(.lancamento):not(.destaque):not(.aluguel),
.badge-venda {
    background: var(--gray-700);
    color: white;
}
}

.property-favorite {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    width: 40px;
    height: 40px;
    background: var(--white);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
    box-shadow: var(--shadow);
}

.property-favorite:hover {
    color: var(--error);
    transform: scale(1.1);
}

.property-content {
    padding: var(--spacing-lg);
}

.property-content h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.property-location {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--gray-500);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-md);
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: var(--spacing-md);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--gray-100);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem;
    color: var(--gray-600);
}

.property-feature svg {
    width: 18px;
    height: 18px;
    color: var(--secondary);
}

/* View All Link */
.view-all-link {
    display: flex;
    justify-content: center;
    margin-top: var(--spacing-2xl);
}

.view-all-link a {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--secondary);
    font-weight: 600;
    transition: all var(--transition);
}

.view-all-link a:hover {
    gap: var(--spacing-md);
}

/* ========================================
   LOCATIONS GRID
   ======================================== */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
}

.location-card {
    position: relative;
    height: 300px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.location-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.location-card:hover img {
    transform: scale(1.1);
}

.location-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0) 100%);
}

.location-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--spacing-lg);
    z-index: 1;
    color: var(--white);
}

.location-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xs);
}

.location-card p {
    font-size: 0.9375rem;
    opacity: 0.9;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.about-image {
    position: relative;
}

.about-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.about-image-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary);
    color: var(--primary);
    padding: var(--spacing-lg) var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-image-badge strong {
    display: block;
    font-size: 2rem;
}

.about-content h2 {
    margin-bottom: var(--spacing-lg);
}

.about-content p {
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

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

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--secondary);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: var(--spacing-xs);
}

/* ========================================
   FEATURES SECTION
   ======================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

.feature-card h3 {
    margin-bottom: var(--spacing-md);
}

/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
}

.testimonial-card {
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.testimonial-quote {
    font-size: 1.125rem;
    font-style: italic;
    color: var(--gray-700);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
    position: relative;
    padding-left: var(--spacing-xl);
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -10px;
    font-size: 4rem;
    color: var(--secondary);
    opacity: 0.3;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--secondary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary);
}

.testimonial-info strong {
    display: block;
    color: var(--primary);
}

.testimonial-info span {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   CTA SECTION
   ======================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: var(--spacing-4xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.cta-content > p {
    color: var(--gray-300);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* ========================================
   NEWSLETTER
   ======================================== */
.newsletter {
    background: var(--gray-50);
    padding: var(--spacing-3xl) 0;
}

.newsletter-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: var(--spacing-md);
}

.newsletter p {
    color: var(--gray-500);
    margin-bottom: var(--spacing-xl);
}

.newsletter-form {
    display: flex;
    gap: var(--spacing-md);
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 1rem;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--secondary);
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-top: var(--spacing-md);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--primary);
    color: var(--gray-300);
    padding: var(--spacing-4xl) 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-3xl);
    padding-bottom: var(--spacing-3xl);
    border-bottom: 1px solid var(--gray-700);
}

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    margin-bottom: var(--spacing-lg);
}

.footer-logo img {
    height: 40px;
    width: auto;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.8;
    margin-bottom: var(--spacing-lg);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: all var(--transition);
}

.footer-social a:hover {
    background: var(--secondary);
    color: var(--primary);
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: var(--spacing-lg);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.footer-contact-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--secondary);
}

.footer-bottom {
    padding: var(--spacing-lg) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

/* ========================================
   WHATSAPP FAB - Acima do Chatbot
   Chatbot toggle: bottom 24px (60px altura) = ~84px acima do chão
   WhatsApp: bottom 100px = ~16px de gap acima do chatbot
   ======================================== */
/* ── Floating Buttons Group ─────────────────────────────────────── */
.floating-buttons-group {
    position: fixed;
    right: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    z-index: 10001;
    transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Cookie visible: sobe todo o grupo acima do banner de cookies (~90px) */
.floating-buttons-group.cookie-visible {
    bottom: 90px;
}

/* Sem cookie: fica colado em baixo */
.floating-buttons-group:not(.cookie-visible) {
    bottom: 16px;
}

@media (max-width: 480px) {
    .floating-buttons-group {
        right: 16px;
        gap: 10px;
    }
    .floating-buttons-group.cookie-visible {
        bottom: 90px;
    }
    .floating-buttons-group:not(.cookie-visible) {
        bottom: 16px;
    }
}

/* ── WhatsApp FAB ──────────────────────────────────────────────── */
.whatsapp-fab {
    position: relative;
    /* bottom/right agora são 0 porque o group cuida da posição */
    transition: none;
}

/* Remove os offsets individuais quando está no group */
.whatsapp-fab.cookie-visible {
    bottom: auto !important;
}

.whatsapp-fab-button {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.whatsapp-fab-button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

.whatsapp-fab-button svg {
    width: 30px;
    height: 30px;
}

.whatsapp-menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all var(--transition);
}

.whatsapp-fab:hover .whatsapp-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.whatsapp-menu-title {
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 600;
    color: var(--primary);
    border-bottom: 1px solid var(--gray-100);
}

.whatsapp-menu-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-md) var(--spacing-lg);
    transition: background var(--transition);
}

.whatsapp-menu-item:hover {
    background: var(--gray-50);
}

.whatsapp-menu-item-icon {
    width: 40px;
    height: 40px;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.whatsapp-menu-item-label {
    font-weight: 600;
    color: var(--primary);
}

.whatsapp-menu-item-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* ========================================
   COOKIE CONSENT
   ======================================== */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--spacing-lg) 0;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    z-index: var(--z-modal);
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-xl);
}

.cookie-consent-text {
    flex: 1;
    margin: 0;
    font-size: 0.9375rem;
    color: var(--gray-600);
}

.cookie-consent-text a {
    color: var(--secondary);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: var(--spacing-sm);
    flex-shrink: 0;
}

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: calc(80px + var(--spacing-3xl)) 0 var(--spacing-3xl);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: var(--spacing-md);
}

.page-header p {
    color: var(--gray-300);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-2xl);
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }

    .about-image-badge {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu,
    .nav-actions {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        min-height: auto;
        padding: calc(80px + var(--spacing-2xl)) 0 var(--spacing-2xl);
    }

    .hero-visual {
        display: none;
    }

    .search-section {
        margin-top: var(--spacing-xl);
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .footer-social {
        justify-content: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .newsletter-form {
        flex-direction: column;
    }

    .cookie-consent-inner {
        flex-direction: column;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .whatsapp-menu {
        width: 280px;
        right: -20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ========================================
   UTILITY CLASSES (Home Page)
   ======================================== */
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ========================================
   GRID UTILITIES
   ======================================== */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ========================================
   HOME PAGE SPECIFIC STYLES
   ======================================== */

/* Hero Slider */
.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.85) 0%, rgba(26, 26, 46, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.hero-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: white;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title span {
    color: var(--secondary);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Search Form Grid */
.search-form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.search-form-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .search-form-grid {
        grid-template-columns: 1fr;
    }
}

/* Form Elements */
.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--white);
    transition: all var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

.form-select:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.2);
}

/* Section Headers */
.section-subtitle {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 600px;
}

/* Property Card */
.card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.75rem;
    background: var(--secondary);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: var(--radius-full);
}

.card-badge.secondary {
    left: auto;
    right: 1rem;
    background: var(--primary);
    color: white;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: 1rem;
}

.card-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-100);
}

.card-features span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.card-features svg {
    color: var(--secondary);
}

.favorite-btn {
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.favorite-btn:hover {
    color: var(--error);
    transform: scale(1.1);
}

/* Region Cards */
.region-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1;
}

.region-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.region-card:hover img {
    transform: scale(1.1);
}

/* About Section Accent */
.about-accent {
    position: absolute;
    top: -20px;
    left: -20px;
    width: 120px;
    height: 120px;
    border: 4px solid var(--secondary);
    border-radius: var(--radius-lg);
}

/* Stats */
.stat-box {
    padding: 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    text-align: center;
}

.stat-box .stat-value {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary);
}

.stat-box .stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* CTA Badge */
.cta-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary);
    color: var(--primary);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.cta-badge span {
    font-size: 0.875rem;
    font-weight: 400;
}

/* Newsletter Gold */
.newsletter-gold {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 50%, var(--accent) 100%);
}

.newsletter-gold h2 {
    color: var(--primary);
}

.newsletter-gold input {
    flex: 1;
    min-width: 280px;
    padding: 1rem;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
}

/* Checkmark List */
.checkmark-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.checkmark-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkmark-item svg {
    color: var(--secondary);
    flex-shrink: 0;
}

.checkmark-item span {
    color: var(--gray-200);
}

/* ========================================
   RESPONSIVE HERO
   ======================================== */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 100px;
        padding-bottom: 80px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    /* Gallery responsivo */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .gallery-grid > div:first-child {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }

    .destaques-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ========================================
   PREMIUM ANIMATIONS
   ======================================== */

/* Fade In Up Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scale In Animation */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In Left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In Right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Pulse Glow Animation */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(201, 164, 92, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(201, 164, 92, 0.6);
    }
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Animate on scroll - Initial state */
.animate-on-scroll {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
}

.animate-on-scroll.fade-up {
    transform: translateY(30px);
}

.animate-on-scroll.fade-up.animated {
    transform: translateY(0);
}

.animate-on-scroll.fade-in {
    transform: translateY(0);
}

.animate-on-scroll.scale-in {
    transform: scale(0.9);
}

.animate-on-scroll.scale-in.animated {
    transform: scale(1);
}

.animate-on-scroll.slide-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-left.animated {
    transform: translateX(0);
}

.animate-on-scroll.slide-right {
    transform: translateX(50px);
}

.animate-on-scroll.slide-right.animated {
    transform: translateX(0);
}

/* Premium Card Hover Effects */
.premium-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.premium-card:hover::before {
    left: 100%;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 26, 46, 0.15);
}

/* Image Hover Zoom */
.img-zoom {
    overflow: hidden;
}

.img-zoom img,
.img-zoom .hero-slide img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img,
.img-zoom:hover .hero-slide img {
    transform: scale(1.08);
}

/* Gold Shimmer Button */
.btn-shimmer {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--gold-light) 50%, var(--secondary) 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite linear;
}

.btn-shimmer:hover {
    background-position: 100% 0;
}

/* Glow Effect */
.glow-effect {
    position: relative;
}

.glow-effect::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--gold), var(--secondary), var(--gold));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    filter: blur(8px);
}

.glow-effect:hover::after {
    opacity: 0.6;
}

/* Premium Badge */
.premium-badge {
    position: relative;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--navy-dark);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 10px rgba(201, 164, 92, 0.3);
}

/* Section Divider Premium */
.section-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: var(--spacing-3xl) 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: var(--white);
    border: 2px solid var(--gold);
    border-radius: 50%;
}

.section-divider::after {
    content: '◆';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--gold);
    font-size: 1.2rem;
}

/* Stats Counter Animation */
.stat-item {
    position: relative;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Testimonial Card Enhanced */
.testimonial-card {
    background: white;
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    border-color: var(--gold);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Gallery Item Enhanced */
.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26, 26, 46, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Navigation Link Animation */
.nav-link {
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
}

/* Hero Content Animation */
.hero-content {
    animation: fadeInUp 1s ease forwards;
}

/* Logo Animation on Load */
.logo {
    animation: slideInLeft 0.8s ease forwards;
}

/* Smooth Page Transitions */
.page-transition {
    animation: fadeIn 0.5s ease forwards;
}

/* Premium Border Animation */
.border-animate {
    position: relative;
}

.border-animate::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--gold), transparent, var(--gold));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.border-animate:hover::before {
    opacity: 1;
}

/* Parallax Effect Helper */
.parallax-container {
    perspective: 1px;
    overflow-x: hidden;
    overflow-y: auto;
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-100) 50%,
        var(--gray-200) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

/* Cookie Consent Premium */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    padding: var(--space-6) var(--space-8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
    animation: slideInUp 0.5s ease forwards;
}

.cookie-consent.show {
    display: flex;
}

.cookie-consent-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
    width: 100%;
    max-width: var(--container-max-width, 1280px);
    margin: 0 auto;
}

.cookie-consent-text {
    flex: 1;
    margin: 0;
    font-size: 0.9375rem;
    color: rgba(255,255,255,0.9);
}

.cookie-consent-text a {
    color: var(--gold);
    text-decoration: underline;
}

.cookie-consent-actions {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-consent .btn-ghost {
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.3);
}

.cookie-consent .btn-ghost:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Form Focus Enhanced */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 164, 92, 0.2);
    outline: none;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--secondary));
    z-index: 9999;
    transition: width 0.1s ease;
}

/* Enhanced Hero */
.hero {
    position: relative;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(0.8, 0, 1, 1); }
    50% { transform: translateY(0); animation-timing-function: cubic-bezier(0, 0, 0.2, 1); }
}

.animate-bounce {
    animation: bounce 1s infinite;
}

/* Fade In Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* Scale In Animation */
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.scale-in {
    animation: scaleIn 0.3s ease forwards;
}

/* Float Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

/* Pulse Ring Animation for WhatsApp */
@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

.whatsapp-fab-button::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #25D366;
    border-radius: 50%;
    animation: pulse-ring 1.5s ease-out infinite;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
    border-radius: 10px;
    border: 2px solid var(--gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
}

/* Firefox scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--navy) var(--gray-100);
}

/* ========================================
   LANÇAMENTOS - SEARCH & CARDS
   ======================================== */
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.search-filter-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.search-box-modern {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    border-radius: 12px;
    padding: 0 16px;
    flex: 1;
    min-width: 280px;
    max-width: 480px;
    height: 48px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.search-box-modern:focus-within {
    border-color: var(--gold, #c79e46);
    box-shadow: 0 0 0 4px rgba(199,158,70,0.1);
}

.search-box-modern svg {
    color: var(--gray-400, #9ca3af);
    flex-shrink: 0;
}

.search-box-modern input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0 12px;
    height: 100%;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    color: var(--gray-900, #1a1f2e);
}

.search-box-modern input::placeholder {
    color: var(--gray-400, #9ca3af);
}

.results-info {
    flex-shrink: 0;
}

.results-count {
    font-size: 14px;
    color: var(--gray-600, #4b5563);
    margin: 0;
}

.results-count strong {
    color: var(--navy, #1a1f2e);
    font-size: 18px;
    font-weight: 700;
}

.results-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.results-sort label {
    font-size: 13px;
    color: var(--gray-600, #4b5563);
    font-weight: 500;
    white-space: nowrap;
}

.results-sort .form-select {
    height: 44px;
    padding: 0 36px 0 14px;
    font-size: 13.5px;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    border-radius: 10px;
    background-color: #fff;
    cursor: pointer;
    min-width: 170px;
}

/* Property Card Body - Lançamentos */
.property-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold, #c79e46);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.property-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--navy, #1a1f2e);
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500, #6b7280);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.4;
}

.property-location svg {
    flex-shrink: 0;
    color: var(--gold, #c79e46);
}

.property-description {
    font-size: 0.8125rem;
    color: var(--gray-600, #4b5563);
    line-height: 1.5;
    margin: 0;
    padding-top: 4px;
    border-top: 1px dashed var(--gray-200, #e5e7eb);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.property-specs span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--gray-100, #f3f4f6);
    color: var(--gray-700, #374151);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
}

.property-specs span svg {
    color: var(--gold, #c79e46);
}

.property-extra-info {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 6px;
    border-top: 1px solid var(--gray-100, #f3f4f6);
}

.property-extra-info span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--gray-500, #6b7280);
    font-size: 0.7rem;
    font-weight: 500;
}

.property-extra-info svg {
    color: var(--gray-400, #9ca3af);
}

.property-actions {
    padding: 0 22px 20px;
}

.btn-whatsapp {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(37,211,102,0.25);
}

.btn-whatsapp:hover {
    background: #20BD5A;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37,211,102,0.4);
}

.badge-new {
    position: absolute;
    top: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--gold, #c79e46), var(--gold-dark, #b08a30));
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.badge-featured {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--navy, #1a1f2e);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

@media (max-width: 768px) {
    .results-header {
        flex-direction: column;
        align-items: stretch;
    }
    .search-filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    .search-box-modern {
        max-width: 100%;
    }
    .results-sort {
        width: 100%;
    }
    .results-sort .form-select {
        flex: 1;
    }
}
