/**
 * ImobFlow - Ultra Premium CSS
 * Design de Alto Nível com Micro-interações
 * 
 * @version 3.0.0
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================================
   CUSTOM PROPERTIES - DESIGN SYSTEM
   ============================================================================ */

:root {
    /* Brand Colors - Luxuoso e Elegante */
    --brand-primary: #7c3aed;
    --brand-secondary: #06b6d4;
    --brand-accent: #f59e0b;
    
    /* Gradientes Premium */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-hero: linear-gradient(135deg, #0c0c1d 0%, #1a1a3e 50%, #2d1b4e 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.05) 100%);
    --gradient-shine: linear-gradient(45deg, transparent 40%, rgba(255,255,255,0.1) 50%, transparent 60%);
    
    /* Cores de Status */
    --success: #10b981;
    --success-soft: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-soft: rgba(245, 158, 11, 0.1);
    --danger: #ef4444;
    --danger-soft: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-soft: rgba(59, 130, 246, 0.1);
    
    /* Escala de Cinzas - Mais Refinada */
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --slate-950: #020617;
    
    /* Tipografia */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Espaçamento */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-bg-light: rgba(255, 255, 255, 0.85);
    --glass-border-light: rgba(255, 255, 255, 0.5);
    
    /* Sombras Premium */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.16);
    --shadow-xl: 0 16px 60px rgba(0, 0, 0, 0.2);
    --shadow-2xl: 0 24px 80px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 60px rgba(124, 58, 237, 0.4);
    --shadow-glow-lg: 0 0 100px rgba(124, 58, 237, 0.3);
    
    /* Border Radius */
    --radius-sm: 0.5rem;
    --radius-md: 0.875rem;
    --radius-lg: 1.25rem;
    --radius-xl: 1.75rem;
    --radius-2xl: 2.5rem;
    --radius-full: 9999px;
    
    /* Transições */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 200ms;
    --duration-normal: 350ms;
    --duration-slow: 500ms;
}

/* ============================================================================
   RESET & BASE
   ============================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    color: var(--slate-700);
    background: var(--slate-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

::selection {
    background: var(--brand-primary);
    color: white;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--slate-100);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
    border-radius: var(--radius-full);
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

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

/* ============================================================================
   TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-shine {
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #667eea);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ============================================================================
   NAVBAR - ULTRA PREMIUM
   ============================================================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--glass-bg-light);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-expo);
}

.navbar.scrolled::before {
    opacity: 1;
}

.navbar.scrolled {
    padding: 0.875rem 0;
    box-shadow: var(--shadow-lg);
}

.navbar > .container {
    position: relative;
    z-index: 1;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.75rem;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform var(--duration-fast) var(--ease-out-back);
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar .nav-link {
    position: relative;
    color: var(--slate-600);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.625rem 1.125rem !important;
    border-radius: var(--radius-full);
    transition: all var(--duration-fast) var(--ease-out-expo);
    overflow: hidden;
}

.navbar .nav-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--duration-fast);
    border-radius: inherit;
}

.navbar .nav-link:hover::before {
    opacity: 0.1;
}

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

.navbar .dropdown-menu {
    border: none;
    background: white;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(0,0,0,0.03);
    border-radius: var(--radius-lg);
    padding: 0.75rem;
    margin-top: 0.75rem;
    min-width: 220px;
    animation: dropdownSlide var(--duration-normal) var(--ease-out-expo);
    transform-origin: top center;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.navbar .dropdown-item {
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    font-weight: 500;
    color: var(--slate-600);
    transition: all var(--duration-fast) var(--ease-out-expo);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.navbar .dropdown-item i {
    font-size: 1.1rem;
    opacity: 0.7;
    transition: all var(--duration-fast);
}

.navbar .dropdown-item:hover {
    background: var(--slate-50);
    color: var(--brand-primary);
    transform: translateX(4px);
}

.navbar .dropdown-item:hover i {
    opacity: 1;
    color: var(--brand-primary);
}

/* Botão CTA na Navbar */
.navbar .btn-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 0.625rem 1.5rem !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    box-shadow: var(--shadow-md), 0 0 20px rgba(124, 58, 237, 0.3);
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.navbar .btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(124, 58, 237, 0.4);
}

/* ============================================================================
   HERO SECTION - CINEMATIC
   ============================================================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Animated Background Elements */
.hero-section::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.3) 0%, transparent 70%);
    top: -200px;
    right: -200px;
    animation: float 15s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.2) 0%, transparent 70%);
    bottom: -150px;
    left: -150px;
    animation: float 20s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -30px) rotate(5deg); }
    50% { transform: translate(-20px, 20px) rotate(-5deg); }
    75% { transform: translate(20px, 10px) rotate(3deg); }
}

/* Grid de pontos decorativos */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

/* Partículas flutuantes */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: particleFloat 20s infinite linear;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 25s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 20s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 28s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 22s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 18s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 30s; }
.particle:nth-child(7) { left: 70%; animation-delay: 2s; animation-duration: 24s; }
.particle:nth-child(8) { left: 80%; animation-delay: 4s; animation-duration: 26s; }
.particle:nth-child(9) { left: 90%; animation-delay: 1s; animation-duration: 21s; }

@keyframes particleFloat {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out-expo) forwards;
}

.hero-badge i {
    color: var(--brand-accent);
}

.hero-section h1 {
    color: white;
    font-weight: 800;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.1s forwards;
    opacity: 0;
}

.hero-section h1 .highlight {
    position: relative;
    display: inline-block;
}

.hero-section h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 0.3em;
    background: var(--gradient-secondary);
    opacity: 0.3;
    border-radius: var(--radius-full);
    z-index: -1;
}

.hero-section .lead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
    max-width: 480px;
    line-height: 1.8;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.2s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out-expo) 0.3s forwards;
    opacity: 0;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: var(--slate-900);
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    box-shadow: var(--shadow-xl);
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: pointer;
}

.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    color: var(--brand-primary);
}

.btn-hero-primary i {
    font-size: 1.2rem;
    transition: transform var(--duration-fast);
}

.btn-hero-primary:hover i {
    transform: translateX(4px);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--duration-normal) var(--ease-out-expo);
    cursor: pointer;
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-4px);
    color: white;
}

/* ============================================================================
   SEARCH BOX - FLOATING GLASS
   ============================================================================ */

.search-box-wrapper {
    animation: floatUp 1s var(--ease-out-expo) 0.4s forwards;
    opacity: 0;
}

@keyframes floatUp {
    from {
        opacity: 0;
        transform: translateY(60px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-2xl);
    padding: 2rem;
    box-shadow: var(--shadow-2xl), 0 0 100px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: var(--gradient-shine);
    animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
    0%, 100% { transform: translateX(-50%); }
    50% { transform: translateX(50%); }
}

.search-tabs {
    display: flex;
    background: var(--slate-100);
    border-radius: var(--radius-full);
    padding: 0.35rem;
    margin-bottom: 2rem;
    position: relative;
}

.search-tab {
    flex: 1;
    text-align: center;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--slate-600);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-expo);
    position: relative;
    z-index: 1;
    border: none;
    background: transparent;
}

.search-tab.active {
    color: white;
}

.search-tab-indicator {
    position: absolute;
    top: 0.35rem;
    bottom: 0.35rem;
    left: 0.35rem;
    width: calc(50% - 0.35rem);
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: transform var(--duration-normal) var(--ease-out-expo);
    box-shadow: var(--shadow-md);
}

.search-tabs[data-active="rent"] .search-tab-indicator {
    transform: translateX(100%);
}

.search-form .form-group {
    margin-bottom: 1.25rem;
}

.search-form .form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.search-form .form-control,
.search-form .form-select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--slate-200);
    border-radius: var(--radius-lg);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--slate-800);
    background: white;
    transition: all var(--duration-fast) var(--ease-out-expo);
    -webkit-appearance: none;
}

.search-form .form-control:focus,
.search-form .form-select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.search-form .form-control::placeholder {
    color: var(--slate-400);
}

.btn-search {
    width: 100%;
    padding: 1.125rem 2rem;
    background: var(--gradient-primary);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out-expo);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 40px rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-search::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn-search:hover::before {
    opacity: 1;
}

.btn-search:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.4);
}

.btn-search i {
    font-size: 1.1rem;
}

/* ============================================================================
   SECTIONS
   ============================================================================ */

.section {
    padding: 7rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md), 0 0 30px rgba(124, 58, 237, 0.2);
}

.section-title {
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--slate-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================================================
   PROPERTY CARDS - 3D PREMIUM
   ============================================================================ */

.property-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-out-expo);
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--slate-100);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.property-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-12px);
    border-color: transparent;
}

.property-card .card-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
}

.property-card .card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease-out-expo);
}

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

.property-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, transparent 50%, rgba(0,0,0,0.7) 100%);
    opacity: 0;
    transition: opacity var(--duration-normal);
}

.property-card:hover .card-overlay {
    opacity: 1;
}

.property-card .card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.property-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.property-badge.sale {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(5, 150, 105, 0.9));
    color: white;
}

.property-badge.rent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9), rgba(37, 99, 235, 0.9));
    color: white;
}

.property-badge.featured {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.9), rgba(217, 119, 6, 0.9));
    color: white;
}

.property-badge.new {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.9), rgba(219, 39, 119, 0.9));
    color: white;
}

.property-card .card-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-back);
    color: var(--slate-400);
    z-index: 2;
    box-shadow: var(--shadow-lg);
}

.property-card .card-favorite:hover {
    transform: scale(1.15);
    color: var(--danger);
}

.property-card .card-favorite.active {
    background: var(--danger);
    color: white;
    animation: heartBeat 0.6s var(--ease-out-back);
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    75% { transform: scale(1.2); }
}

.property-card .card-favorite i {
    font-size: 1.15rem;
}

.property-card .card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.property-card .property-type {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.property-card .property-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--slate-800);
    margin-bottom: 0.5rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color var(--duration-fast);
}

.property-card:hover .property-title {
    color: var(--brand-primary);
}

.property-card .property-location {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: var(--slate-500);
    margin-bottom: 1.5rem;
}

.property-card .property-location i {
    color: var(--brand-primary);
    font-size: 1rem;
}

.property-card .property-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--slate-100);
    border-bottom: 1px solid var(--slate-100);
    margin-bottom: 1.5rem;
}

.property-card .feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
}

.property-card .feature i {
    font-size: 1.35rem;
    color: var(--brand-primary);
    opacity: 0.8;
}

.property-card .feature span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate-600);
}

.property-card .card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-card .property-price {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.property-card .property-price small {
    font-size: 0.85rem;
    font-weight: 500;
    -webkit-text-fill-color: var(--slate-500);
}

.property-card .btn-details {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    background: var(--slate-100);
    color: var(--slate-700);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.property-card .btn-details:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(4px);
}

/* ============================================================================
   STATS SECTION
   ============================================================================ */

.stats-section {
    background: var(--gradient-hero);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.stat-card {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem;
}

.stat-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out-back);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1) rotate(5deg);
    background: rgba(255, 255, 255, 0.15);
}

.stat-icon i {
    font-size: 2rem;
    background: linear-gradient(135deg, #a78bfa, #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ============================================================================
   FEATURE CARDS
   ============================================================================ */

.feature-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    transition: all var(--duration-normal) var(--ease-out-expo);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-out-expo);
}

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

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 2rem;
    background: var(--slate-100);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-normal) var(--ease-out-back);
}

.feature-card:hover .feature-icon {
    background: var(--gradient-primary);
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--brand-primary);
    transition: color var(--duration-fast);
}

.feature-card:hover .feature-icon i {
    color: white;
}

.feature-card h5 {
    font-weight: 700;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--slate-500);
    line-height: 1.7;
    margin: 0;
}

/* ============================================================================
   TESTIMONIALS
   ============================================================================ */

.testimonial-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--slate-100);
    height: 100%;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
}

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

.testimonial-card .quote-icon {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 4rem;
    color: var(--slate-100);
    line-height: 1;
}

.testimonial-card .rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.testimonial-card .rating i {
    color: var(--brand-accent);
    font-size: 1rem;
}

.testimonial-card .testimonial-text {
    font-size: 1.05rem;
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 2rem;
    position: relative;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-card .author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-card .author-info h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.testimonial-card .author-info span {
    font-size: 0.9rem;
    color: var(--slate-500);
}

/* ============================================================================
   CTA SECTION
   ============================================================================ */

.cta-section {
    background: var(--gradient-primary);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -150px;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-section p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

.cta-section .btn-cta {
    background: white;
    color: var(--brand-primary);
    padding: 1.125rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    box-shadow: var(--shadow-xl);
    transition: all var(--duration-normal) var(--ease-out-expo);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.cta-section .btn-cta:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* ============================================================================
   WHATSAPP FLOAT
   ============================================================================ */

.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all var(--duration-normal) var(--ease-out-back);
}

.whatsapp-float::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37, 211, 102, 0.3);
    animation: whatsappPulse 2s ease-out infinite;
}

@keyframes whatsappPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 10px 40px rgba(37, 211, 102, 0.5);
    color: white;
}

/* ============================================================================
   BACK TO TOP
   ============================================================================ */

.btn-back-to-top {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    transition: all var(--duration-normal) var(--ease-out-expo);
    box-shadow: var(--shadow-glow);
    cursor: pointer;
}

.btn-back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.btn-back-to-top:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-glow-lg);
}

/* ============================================================================
   FOOTER
   ============================================================================ */

.footer {
    background: var(--slate-900);
    padding-top: 6rem;
}

.footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.75rem;
    font-size: 1.1rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.875rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all var(--duration-fast) var(--ease-out-expo);
}

.footer-links a:hover {
    color: white;
    transform: translateX(6px);
}

.footer .social-icons {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
}

.footer .social-icons a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: all var(--duration-fast) var(--ease-out-back);
}

.footer .social-icons a:hover {
    background: var(--gradient-primary);
    transform: translateY(-4px) scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
    margin-top: 4rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ============================================================================
   LOADING & ANIMATIONS
   ============================================================================ */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader {
    width: 60px;
    height: 60px;
    position: relative;
}

.loader::before,
.loader::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
}

.loader::before {
    border-top-color: var(--brand-primary);
    animation: spin 1s linear infinite;
}

.loader::after {
    border-bottom-color: var(--brand-secondary);
    animation: spin 0.5s linear infinite reverse;
}

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

/* ============================================================================
   RESPONSIVE
   ============================================================================ */

@media (max-width: 1199.98px) {
    .hero-section h1 { font-size: 3rem; }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 1rem;
        right: 1rem;
        background: white;
        padding: 1.5rem;
        border-radius: var(--radius-xl);
        box-shadow: var(--shadow-2xl);
        margin-top: 0.5rem;
    }
    
    .hero-section {
        min-height: auto;
        padding: 140px 0 80px;
    }
    
    .hero-section h1 { font-size: 2.5rem; }
    
    .search-box-wrapper {
        margin-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .section { padding: 5rem 0; }
    
    .hero-section h1 { font-size: 2rem; }
    .hero-section .lead { font-size: 1.1rem; }
    
    .hero-buttons { flex-direction: column; }
    .hero-buttons .btn-hero-primary,
    .hero-buttons .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .stat-number { font-size: 2.5rem; }
    
    .property-card .property-features {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
    
    .btn-back-to-top {
        bottom: 90px;
        right: 20px;
        width: 48px;
        height: 48px;
    }
}