/* =============================================
   IMOBILIARIA PRIME - DESIGN MODERNO 2026
   Glassmorphism, Gradientes, Animacoes
   ============================================= */

/* ---- VARIAVEIS ---- */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #dbeafe;
    --primary-glow: rgba(37, 99, 235, 0.3);
    --secondary: #10b981;
    --secondary-light: #d1fae5;
    --accent: #f59e0b;
    --accent-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --info: #06b6d4;

    --bg: #f8fafc;
    --bg-white: #ffffff;
    --bg-gray: #f1f5f9;
    --bg-dark: #0f172a;
    --bg-dark-2: #1e293b;

    --text: #0f172a;
    --text-light: #64748b;
    --text-muted: #94a3b8;

    --border: #e2e8f0;
    --border-light: #f1f5f9;

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

    --glass: rgba(255,255,255,0.7);
    --glass-border: rgba(255,255,255,0.3);

    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: var(--transition-fast); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes gradientShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate].visible { opacity: 1; transform: translateY(0); }

/* ---- UTILITIES ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.narrow-container { max-width: 480px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-gradient { background: linear-gradient(135deg, var(--primary), #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1.5rem; }
.inline-form { display: inline; }

/* ---- ALERTS ---- */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeInDown 0.4s ease;
    border: 1px solid transparent;
}
.alert::before { font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 1.1rem; flex-shrink: 0; }
.alert-success { background: rgba(16,185,129,0.1); color: #065f46; border-color: rgba(16,185,129,0.2); }
.alert-success::before { content: '\f058'; color: #10b981; }
.alert-danger { background: rgba(239,68,68,0.1); color: #991b1b; border-color: rgba(239,68,68,0.2); }
.alert-danger::before { content: '\f06a'; color: #ef4444; }
.alert-warning { background: rgba(245,158,11,0.1); color: #92400e; border-color: rgba(245,158,11,0.2); }
.alert-warning::before { content: '\f071'; color: #f59e0b; }
.alert-info { background: rgba(6,182,212,0.1); color: #155e75; border-color: rgba(6,182,212,0.2); }
.alert-info::before { content: '\f05a'; color: #06b6d4; }

/* ---- BADGES ---- */
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.75rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; }
.badge-venda { background: linear-gradient(135deg, #dbeafe, #eff6ff); color: #1e40af; }
.badge-aluguel { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #92400e; }
.badge-success { background: linear-gradient(135deg, #d1fae5, #ecfdf5); color: #065f46; }
.badge-danger { background: linear-gradient(135deg, #fee2e2, #fef2f2); color: #991b1b; }
.badge-warning { background: linear-gradient(135deg, #fef3c7, #fffbeb); color: #92400e; }
.badge-info { background: linear-gradient(135deg, #cffafe, #ecfeff); color: #155e75; }
.badge-secondary { background: linear-gradient(135deg, #e2e8f0, #f1f5f9); color: #475569; }
.badge-destaque { background: linear-gradient(135deg, #fef3c7, #fde68a); color: #92400e; position: absolute; top: 12px; right: 12px; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.6rem; font-size: 0.9rem; font-weight: 600; font-family: var(--font);
    border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
    text-align: center; transition: var(--transition); line-height: 1.4; position: relative; overflow: hidden;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:active { transform: translateY(0); }
.btn-primary { background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff; box-shadow: 0 4px 15px rgba(37,99,235,0.3); }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; box-shadow: 0 6px 20px rgba(37,99,235,0.4); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-danger { background: linear-gradient(135deg, #ef4444, #f87171); color: #fff; }
.btn-danger:hover { background: linear-gradient(135deg, #dc2626, #ef4444); color: #fff; }
.btn-warning { background: linear-gradient(135deg, #f59e0b, #fbbf24); color: #fff; }
.btn-warning:hover { background: linear-gradient(135deg, #d97706, #f59e0b); color: #fff; }
.btn-white { background: #fff; color: var(--primary); border-color: #fff; box-shadow: var(--shadow-md); }
.btn-white:hover { background: var(--primary-light); }
.btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }
.btn-sm { padding: 0.4rem 1rem; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-control {
    display: block; width: 100%; padding: 0.7rem 1rem; font-size: 0.9rem; font-family: var(--font);
    border: 2px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.form-control:hover { border-color: #cbd5e1; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { appearance: auto; }
.form-help { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.3rem; display: block; }
.form-row { display: flex; gap: 1rem; flex-wrap: wrap; }
.form-row .col-3 { flex: 0 0 calc(25% - 0.75rem); }
.form-row .col-4 { flex: 0 0 calc(33.333% - 0.67rem); }
.form-row .col-6 { flex: 0 0 calc(50% - 0.5rem); }
.form-row .col-8 { flex: 0 0 calc(66.666% - 0.5rem); }
.checkbox-group { display: flex; flex-direction: column; gap: 0.5rem; padding-top: 0.5rem; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 500; cursor: pointer; }
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--primary); }
.form-actions { display: flex; gap: 1rem; align-items: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }

/* ---- HEADER ---- */
.main-header {
    background: linear-gradient(135deg, #0f172a, #172554); backdrop-filter: none;
    border-bottom: 1px solid rgba(255,255,255,0.08); position: sticky; top: 0; z-index: 100; transition: var(--transition);
}
.main-header.scrolled { background: linear-gradient(135deg, #0f172a, #1e3a8a); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.header-inner { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.logo { display: flex; align-items: center; gap: 0.6rem; font-size: 1.3rem; color: #fff; font-weight: 400; transition: var(--transition); }
.logo:hover { color: #60a5fa; transform: scale(1.02); }
.logo-icon {
    font-size: 1.1rem; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff; border-radius: var(--radius);
}
.logo strong { font-weight: 700; color: #60a5fa; }
.main-nav ul { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.main-nav a { display: block; padding: 0.5rem 1.1rem; color: #cbd5e1; font-weight: 500; font-size: 0.9rem; border-radius: var(--radius); transition: var(--transition); position: relative; }
.main-nav a:hover, .main-nav a.active { color: #fff; background: rgba(255,255,255,0.1); }
.main-nav .nav-user { color: #60a5fa; font-weight: 600; cursor: default; }
.main-nav .nav-user:hover { background: transparent; color: #93bbfd; }
.main-nav .nav-user i { margin-right: 0.3rem; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #fff; padding: 0.5rem; border-radius: var(--radius); transition: var(--transition); }
.mobile-toggle:hover { background: rgba(255,255,255,0.1); }

/* ---- HERO ---- */
/* Hero now handled by .hero-carousel */
.hero {
    background: linear-gradient(135deg, #0f172a 0%, #172554 30%, #1e3a8a 60%, #2563eb 100%);
    background-size: 200% 200%; animation: gradientShift 8s ease infinite;
    color: #fff; padding: 5rem 0 4.5rem; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.15) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(59,130,246,0.1) 0%, transparent 50%);
    pointer-events: none;
}
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(to top, var(--bg), transparent); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 3rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.02em; animation: fadeInUp 0.8s ease; }
.hero p { font-size: 1.2rem; opacity: 0.85; margin-bottom: 2.5rem; max-width: 600px; margin-left: auto; margin-right: auto; animation: fadeInUp 0.8s ease 0.15s both; }

.hero-search {
    max-width: 900px; margin: 0 auto; background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-xl);
    padding: 1.5rem; backdrop-filter: blur(20px); animation: fadeInUp 0.8s ease 0.3s both;
}
.search-fields { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.search-input, .search-select {
    flex: 1; min-width: 150px; padding: 0.85rem 1.2rem; border: 2px solid rgba(255,255,255,0.15);
    border-radius: var(--radius); font-size: 0.9rem; font-family: var(--font);
    background: rgba(255,255,255,0.1); color: #fff; transition: var(--transition);
}
.search-input::placeholder { color: rgba(255,255,255,0.5); }
.search-select option { color: var(--text); background: #fff; }
.search-input:focus, .search-select:focus { outline: none; border-color: rgba(255,255,255,0.4); background: rgba(255,255,255,0.15); box-shadow: 0 0 0 3px rgba(255,255,255,0.1); }
.btn-search {
    min-width: 130px; padding: 0.85rem 1.5rem; background: linear-gradient(135deg, var(--primary), #3b82f6);
    border: none; color: #fff; font-weight: 600; border-radius: var(--radius); cursor: pointer;
    transition: var(--transition); font-family: var(--font); font-size: 0.9rem;
}
.btn-search:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.4); }

/* ---- SECTIONS ---- */
.section { padding: 4rem 0; }
.section-gray { background: var(--bg-gray); }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 0.5rem; color: var(--text); letter-spacing: -0.02em; }
.section-subtitle { text-align: center; color: var(--text-light); margin-bottom: 2.5rem; font-size: 1.05rem; }
.page-header {
    background: linear-gradient(135deg, #0f172a, #172554, #1e3a8a); color: #fff;
    padding: 3rem 0; text-align: center; position: relative; overflow: hidden;
}
.page-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 50% 50%, rgba(37,99,235,0.2), transparent 70%); }
.page-header .container { position: relative; z-index: 1; }
.page-header h1 { font-size: 2.25rem; margin-bottom: 0.3rem; font-weight: 800; letter-spacing: -0.02em; }
.page-header p { opacity: 0.8; font-size: 1.05rem; }

/* ---- PROPERTY CARDS ---- */
.property-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.75rem; }
.property-card {
    background: #fff; border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border-light); transition: var(--transition); position: relative;
}
.property-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); border-color: transparent; }
.property-image { display: block; position: relative; height: 220px; overflow: hidden; background: var(--bg-gray); }
.property-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); }
.property-card:hover .property-image img { transform: scale(1.08); }
.property-badge { position: absolute; top: 12px; left: 12px; padding: 0.3rem 0.85rem; border-radius: var(--radius-full); font-size: 0.75rem; font-weight: 600; backdrop-filter: blur(10px); }
.no-image { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 1.2rem; color: var(--text-muted); background: linear-gradient(135deg, #f1f5f9, #e2e8f0); }
.no-image-large { height: 400px; font-size: 1.5rem; }
.property-info { padding: 1.25rem 1.5rem; }
.property-price { font-size: 1.4rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.4rem; }
.property-price small { font-size: 0.8rem; font-weight: 400; -webkit-text-fill-color: var(--text-muted); margin-left: 0.25rem; }
.property-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.3rem; line-height: 1.35; }
.property-title a { color: var(--text); transition: var(--transition); }
.property-title a:hover { color: var(--primary); }
.property-location { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.85rem; display: flex; align-items: center; gap: 0.35rem; }
.property-location i { color: var(--primary); font-size: 0.75rem; }
.property-features { display: flex; gap: 1rem; font-size: 0.8rem; color: var(--text-light); flex-wrap: wrap; padding-top: 0.85rem; border-top: 1px solid var(--border-light); }
.property-features span { display: flex; align-items: center; gap: 0.3rem; }
.property-features i { color: var(--primary); font-size: 0.85rem; }

/* ---- PAGINATION ---- */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2.5rem; flex-wrap: wrap; }
.page-link {
    display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
    padding: 0 0.75rem; border: 2px solid var(--border); border-radius: var(--radius);
    color: var(--text-light); font-weight: 600; font-size: 0.9rem; transition: var(--transition);
}
.page-link:hover, .page-link.active { background: linear-gradient(135deg, var(--primary), #3b82f6); border-color: transparent; color: #fff; box-shadow: 0 4px 12px rgba(37,99,235,0.3); }

/* ---- SEARCH FILTERS ---- */
.search-filters { background: #fff; padding: 1.75rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 2rem; border: 1px solid var(--border-light); }
.filter-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1rem; align-items: end; }
.filter-actions { display: flex; gap: 0.5rem; align-items: flex-end; }
.search-results-info { margin-bottom: 1.5rem; color: var(--text-light); font-weight: 500; }

/* ---- EMPTY STATE ---- */
.empty-state { text-align: center; padding: 5rem 2rem; color: var(--text-light); }
.empty-state i { font-size: 3.5rem; color: var(--text-muted); margin-bottom: 1rem; display: block; opacity: 0.5; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: 0.5rem; color: var(--text); }

/* ---- PROPERTY DETAIL ---- */
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.5rem; padding: 1rem 0 0; display: flex; align-items: center; gap: 0.5rem; }
.breadcrumb a { color: var(--text-light); transition: var(--transition); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb i { font-size: 0.65rem; }
.detail-grid { display: grid; grid-template-columns: 1fr 380px; gap: 2rem; align-items: start; }
.detail-section { margin-bottom: 2rem; background: #fff; padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border-light); }
.detail-section h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; padding-bottom: 0.75rem; border-bottom: 2px solid var(--border); display: flex; align-items: center; gap: 0.5rem; }
.detail-section h2 i { color: var(--primary); }
.description-text { font-size: 0.95rem; line-height: 1.9; color: var(--text-light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1rem; }
.feature-item { text-align: center; padding: 1.25rem; background: linear-gradient(135deg, #f8fafc, #f1f5f9); border-radius: var(--radius); border: 1px solid var(--border-light); transition: var(--transition); }
.feature-item:hover { border-color: var(--primary-light); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.feature-icon { font-size: 1.5rem; display: block; margin-bottom: 0.4rem; color: var(--primary); }
.feature-label { font-size: 0.78rem; color: var(--text-muted); display: block; text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; }
.feature-item strong { font-size: 1.1rem; color: var(--text); }

/* ---- GALLERY ---- */
.gallery-main { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 0.75rem; background: var(--bg-gray); box-shadow: var(--shadow-md); }
.gallery-main img { width: 100%; height: 480px; object-fit: cover; cursor: pointer; transition: var(--transition); }
.gallery-main img:hover { opacity: 0.9; }
.gallery-thumbs { display: flex; gap: 0.5rem; overflow-x: auto; padding-bottom: 0.5rem; }
.gallery-thumb { width: 85px; height: 65px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.5; transition: var(--transition); border: 3px solid transparent; flex-shrink: 0; }
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; border-color: var(--primary); transform: scale(1.05); }

/* ---- LIGHTBOX ---- */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1000; align-items: center; justify-content: center; backdrop-filter: blur(10px); }
.lightbox.open { display: flex; animation: fadeIn 0.3s ease; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: var(--radius-lg); animation: scaleIn 0.3s ease; }
.lightbox-close { position: absolute; top: 1rem; right: 1.5rem; font-size: 2rem; color: #fff; background: rgba(255,255,255,0.1); border: none; cursor: pointer; z-index: 1001; width: 48px; height: 48px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.lightbox-close:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #fff; background: rgba(255,255,255,0.1); border: none; cursor: pointer; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 1001; transition: var(--transition); }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-counter { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500; background: rgba(0,0,0,0.3); padding: 0.4rem 1rem; border-radius: var(--radius-full); }

/* ---- SIDEBAR CARD ---- */
.sidebar-card { background: #fff; padding: 1.75rem; border-radius: var(--radius-lg); border: 1px solid var(--border-light); margin-bottom: 1.25rem; transition: var(--transition); }
.sidebar-card:hover { box-shadow: var(--shadow-md); }
.sidebar-card h3 { font-size: 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.sidebar-card h3 i { color: var(--primary); }
.sidebar-price { font-size: 1.9rem; font-weight: 800; background: linear-gradient(135deg, var(--primary), #3b82f6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 0.3rem; }
.price-card { text-align: center; background: linear-gradient(135deg, #dbeafe, #bfdbfe); border: 2px solid #93c5fd; }

/* ---- AUTH PAGE ---- */
.auth-page {
    min-height: 100vh; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #172554 40%, #1e3a8a 100%);
    position: relative; overflow: hidden; padding: 2rem;
}
.auth-page::before { content: ''; position: absolute; width: 500px; height: 500px; background: radial-gradient(circle, rgba(37,99,235,0.3), transparent 70%); top: -100px; right: -100px; }
.auth-page::after { content: ''; position: absolute; width: 400px; height: 400px; background: radial-gradient(circle, rgba(59,130,246,0.2), transparent 70%); bottom: -100px; left: -100px; }
.auth-card {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px); padding: 2.5rem;
    border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); width: 100%; max-width: 440px;
    position: relative; z-index: 1; animation: scaleIn 0.5s ease;
}
.auth-card .auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-card .auth-logo .logo-icon { font-size: 2rem; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--primary), #3b82f6); color: #fff; border-radius: var(--radius-lg); margin-bottom: 0.75rem; }
.auth-card .auth-logo h1 { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.auth-card .auth-logo p { color: var(--text-light); font-size: 0.9rem; margin-top: 0.25rem; }
.auth-footer { text-align: center; margin-top: 1.75rem; font-size: 0.9rem; color: var(--text-light); padding-top: 1.25rem; border-top: 1px solid var(--border); }

/* ---- CTA SECTION ---- */
.cta-section {
    background: linear-gradient(135deg, #0f172a, #172554, #1e3a8a); color: #fff;
    padding: 5rem 0; position: relative; overflow: hidden;
}
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 50%, rgba(37,99,235,0.2), transparent 60%); }
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { font-size: 2.25rem; margin-bottom: 0.75rem; font-weight: 800; letter-spacing: -0.02em; }
.cta-section p { font-size: 1.1rem; opacity: 0.85; margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ---- MISC ---- */
.success-icon { font-size: 4rem; margin-bottom: 1rem; color: var(--secondary); animation: float 3s ease-in-out infinite; }
.error-page { padding: 5rem 0; }
.error-code { font-size: 8rem; font-weight: 900; background: linear-gradient(135deg, var(--primary-light), #93c5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 1rem; }

/* ---- FOOTER ---- */
.main-footer { background: var(--bg-dark); color: #94a3b8; padding: 4rem 0 0; position: relative; }
.main-footer::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #3b82f6, #60a5fa, var(--primary)); background-size: 200%; animation: shimmer 3s linear infinite; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer-col h3, .footer-col h4 { color: #f8fafc; margin-bottom: 1.25rem; }
.footer-col h3 { font-size: 1.15rem; }
.footer-col h4 { font-size: 0.95rem; font-weight: 600; }
.footer-col p { font-size: 0.9rem; margin-bottom: 0.5rem; line-height: 1.7; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { color: #94a3b8; font-size: 0.9rem; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-col ul a:hover { color: #fff; transform: translateX(4px); }
.footer-col ul a i { font-size: 0.7rem; color: var(--primary); }
.footer-social { display: flex; gap: 0.75rem; margin-top: 1rem; }
.footer-social a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); color: #94a3b8; font-size: 1rem; transition: var(--transition); }
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 1.25rem 0; text-align: center; font-size: 0.85rem; color: #475569; }

/* ---- STATS ROW ---- */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: -3rem; position: relative; z-index: 2; margin-bottom: 2rem; }
.stat-card { background: #fff; padding: 1.75rem; border-radius: var(--radius-lg); text-align: center; box-shadow: var(--shadow-lg); border: 1px solid var(--border-light); transition: var(--transition); }
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); }
.stat-card i { font-size: 1.5rem; color: var(--primary); margin-bottom: 0.75rem; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary-light); border-radius: var(--radius); }
.stat-number { font-size: 1.75rem; font-weight: 800; color: var(--text); display: block; }
.stat-label { font-size: 0.85rem; color: var(--text-light); font-weight: 500; }

/* ---- IMAGES ---- */
.image-preview-grid { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }
.image-preview-grid img { width: 100px; height: 75px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border); }
.current-images-grid { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.current-image-item { position: relative; width: 130px; }
.current-image-item img { width: 130px; height: 100px; object-fit: cover; border-radius: 8px; border: 2px solid var(--border); }
.img-badge { position: absolute; bottom: 4px; left: 4px; font-size: 0.65rem; padding: 0.1rem 0.4rem; }
.img-delete { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; padding: 0; font-size: 0.9rem; line-height: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: rgba(239,68,68,0.9); color: #fff; border: none; cursor: pointer; transition: var(--transition); }
.img-delete:hover { background: #dc2626; transform: scale(1.1); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .mobile-toggle { display: block; }
    .main-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: rgba(15,23,42,0.98); backdrop-filter: blur(20px); box-shadow: var(--shadow-xl); padding: 1rem; z-index: 99; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
    .main-nav.open { display: block; animation: fadeInDown 0.3s ease; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 0.85rem 1rem; }
    .hero { padding: 3rem 0 2.5rem; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .search-fields { flex-direction: column; }
    .property-grid { grid-template-columns: 1fr; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .filter-grid { grid-template-columns: 1fr 1fr; }
    .form-row { flex-direction: column; }
    .form-row [class^="col-"] { flex: 1 1 100%; }
    .gallery-main img { height: 280px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); margin-top: -2rem; }
}
@media (max-width: 480px) {
    .hero { padding: 2.5rem 0 2rem; }
    .hero h1 { font-size: 1.6rem; }
    .section { padding: 2.5rem 0; }
    .filter-grid { grid-template-columns: 1fr; }
    .stats-row { grid-template-columns: 1fr 1fr; gap: 1rem; }
}

/* ---- HERO CAROUSEL ---- */
.hero-carousel {
    position: relative; height: 650px; overflow: hidden;
}
.carousel-slides { position: relative; width: 100%; height: 100%; }
.carousel-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease;
    will-change: opacity;
}
.carousel-slide.active { opacity: 1; z-index: 1; }
.carousel-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.82) 0%, rgba(23,37,84,0.7) 40%, rgba(37,99,235,0.45) 100%);
}
.carousel-content {
    position: relative; z-index: 2; text-align: center; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    height: 100%; padding-bottom: 120px;
}
.carousel-content h1 {
    font-size: 3.2rem; font-weight: 800; margin-bottom: 0.75rem;
    letter-spacing: -0.02em; animation: fadeInUp 0.8s ease;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.carousel-content p {
    font-size: 1.2rem; opacity: 0.9; max-width: 600px;
    animation: fadeInUp 0.8s ease 0.15s both;
    text-shadow: 0 1px 10px rgba(0,0,0,0.2);
}
.carousel-tag {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(37,99,235,0.3); border: 1px solid rgba(255,255,255,0.2);
    padding: 0.5rem 1.25rem; border-radius: var(--radius-full);
    font-size: 0.85rem; font-weight: 600; margin-bottom: 1.25rem;
    backdrop-filter: blur(10px); animation: fadeInDown 0.8s ease;
    letter-spacing: 0.03em; text-transform: uppercase;
}
.text-highlight {
    background: linear-gradient(135deg, #60a5fa, #93c5fd);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Carousel Navigation */
.carousel-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    color: #fff; width: 52px; height: 52px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); font-size: 1.1rem;
    backdrop-filter: blur(10px);
}
.carousel-prev { left: 1.5rem; }
.carousel-next { right: 1.5rem; }
.carousel-arrow:hover { background: rgba(37,99,235,0.5); border-color: rgba(37,99,235,0.6); transform: translateY(-50%) scale(1.05); }

.carousel-dots {
    position: absolute; bottom: 130px; left: 50%; transform: translateX(-50%);
    z-index: 5; display: flex; gap: 0.75rem;
}
.carousel-dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: rgba(255,255,255,0.3); border: 2px solid rgba(255,255,255,0.5);
    cursor: pointer; transition: var(--transition);
}
.carousel-dot.active, .carousel-dot:hover {
    background: #fff; border-color: #fff;
    box-shadow: 0 0 12px rgba(255,255,255,0.5);
    transform: scale(1.2);
}

/* Search bar floating over carousel */
.hero-search-wrapper {
    position: absolute; bottom: 0; left: 0; right: 0; z-index: 10;
    padding: 0 1.5rem 2rem;
}
.hero-carousel .hero-search {
    max-width: 1000px; margin: 0 auto;
    background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius-xl); padding: 1.25rem 1.5rem;
    backdrop-filter: blur(20px);
}
.hero-carousel .hero-search::before {
    content: ''; position: absolute; inset: 0; border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
    pointer-events: none;
}

@media (max-width: 768px) {
    .hero-carousel { height: 550px; }
    .carousel-content h1 { font-size: 2rem; }
    .carousel-content p { font-size: 1rem; }
    .carousel-arrow { display: none; }
    .carousel-dots { bottom: 180px; }
    .carousel-content { padding-bottom: 180px; }
    .hero-search-wrapper { padding: 0 1rem 1.5rem; }
    .hero-carousel .hero-search { padding: 1rem; }
}
@media (max-width: 480px) {
    .hero-carousel { height: 520px; }
    .carousel-content h1 { font-size: 1.6rem; }
    .carousel-tag { font-size: 0.75rem; padding: 0.4rem 1rem; }
}

/* ---- UTILITY CLASSES ---- */
.detail-similares { margin-top: 3rem; }
.section-compact { padding-top: 0; padding-bottom: 2rem; }
.text-accent { color: #f59e0b; }
.text-primary { color: var(--primary, #2563eb); }
.text-left { text-align: left; }
.gallery-data { display: none; }

/* ---- AUTH HOME LINK ---- */
.auth-home-link { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-bottom: 1.5rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: all 0.3s; }
.auth-home-link:hover { color: #fff; transform: translateX(-4px); }
.auth-home-link i { font-size: 0.8rem; }

/* ---- LGPD ---- */
.lgpd-consent { display: flex; align-items: flex-start; gap: 0.5rem; margin-top: 1rem; padding: 0.75rem; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 8px; font-size: 0.85rem; color: #1e40af; }
.lgpd-consent input[type="checkbox"] { margin-top: 3px; accent-color: var(--primary, #2563eb); }
.lgpd-consent a { color: #1d4ed8; text-decoration: underline; }
.cookie-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999; background: #0f172a; color: #e2e8f0; padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; flex-wrap: wrap; font-size: 0.9rem; box-shadow: 0 -4px 20px rgba(0,0,0,0.3); animation: fadeInUp 0.5s ease; }
.cookie-banner a { color: #60a5fa; text-decoration: underline; }
.cookie-banner .btn { white-space: nowrap; }
.cookie-banner.hidden { display: none; }
