/* 
 * Tziwa Imobiliária - UI/UX PRO MAX Design System 2026
 * Inspirado em Airbnb, Booking, OLX
 * Otimizado para internet lenta (contexto africano)
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ========================================
   DESIGN SYSTEM - VARIÁVEIS GLOBAIS
   ======================================== */

:root {
    /* Paleta Principal - Cores quentes e confiáveis */
    --brand: #FF385C;
    --brand-dark: #E31C5F;
    --brand-light: #FF5A7A;
    --brand-ultra-light: #FFF0F3;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Cores Neutras - Sistema de 50-900 */
    --neutral-50: #F7F7F7;
    --neutral-100: #EEEEEE;
    --neutral-200: #DDDDDD;
    --neutral-300: #CCCCCC;
    --neutral-400: #B0B0B0;
    --neutral-500: #717171;
    --neutral-600: #484848;
    --neutral-700: #333333;
    --neutral-800: #222222;
    --neutral-900: #111111;
    
    /* Cores Funcionais */
    --success: #008A05;
    --success-light: #E6F7E6;
    --warning: #FFB400;
    --warning-light: #FFF8E1;
    --error: #C13515;
    --error-light: #FDECEA;
    --info: #008489;
    --info-light: #E6F7F7;
    
    /* Tipografia */
    --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', sans-serif;
    
    /* Espaçamento - Sistema 4px */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    /* Sombras - Airbnb style */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.12);
    --shadow-md: 0 2px 4px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.12);
    --shadow-lg: 0 4px 8px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.12);
    --shadow-xl: 0 8px 16px rgba(0,0,0,0.08), 0 0 1px rgba(0,0,0,0.12);
    --shadow-card: 0 6px 16px rgba(0,0,0,0.12);
    --shadow-card-hover: 0 12px 24px rgba(0,0,0,0.15);
    
    /* Transições */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-Index */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-overlay: 300;
    --z-modal: 400;
    --z-toast: 500;
    
    /* Container */
    --container-max: 1280px;
    --header-height: 72px;

    /* Admin Panel Variables */
    --dark: #1a1a2e;
    --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;
    --primary: #3B82F6;
    --primary-dark: #2563EB;
    --primary-ultra-light: #DBEAFE;
    --secondary: #8B5CF6;
    --danger: #EF4444;
}

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

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    font-size: 15px;
    line-height: 1.5;
    color: var(--neutral-700);
    background: var(--neutral-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    padding-top: var(--header-height);
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* ========================================
   LAYOUT - CONTAINER
   ======================================== */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* ========================================
   HEADER - AIRBNB STYLE
   ======================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #ffffff;
    border-bottom: 1px solid #e8e8e8;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.logo svg {
    width: 32px;
    height: 32px;
    fill: var(--brand);
}

/* Nav Desktop */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--neutral-600);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--neutral-900);
    background: var(--neutral-100);
}

.nav-link.active {
    color: var(--neutral-900);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.btn-publish {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--neutral-900);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-publish:hover {
    background: var(--neutral-700);
    transform: scale(1.02);
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--neutral-600);
    border: 1px solid var(--neutral-300);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.user-avatar:hover {
    box-shadow: var(--shadow-md);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
}

.mobile-menu-btn:hover {
    background: var(--neutral-100);
}

.mobile-menu-icon {
    width: 20px;
    height: 2px;
    background: var(--neutral-600);
    position: relative;
}

.mobile-menu-icon::before,
.mobile-menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--neutral-600);
    transition: all var(--transition-fast);
}

.mobile-menu-icon::before { top: -6px; }
.mobile-menu-icon::after { top: 6px; }

/* ========================================
   HERO SECTION - AIRBNB STYLE
   ======================================== */

.hero {
    padding: var(--space-16) 0 var(--space-20);
    background: var(--white);
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--brand-ultra-light);
    color: var(--brand);
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--neutral-900);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--space-4);
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--neutral-500);
    max-width: 600px;
    margin: 0 auto var(--space-10);
    line-height: 1.6;
}

/* Search Bar - Airbnb Style */
.search-bar {
    max-width: 850px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--neutral-200);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.search-bar:hover {
    box-shadow: var(--shadow-card-hover);
}

.search-bar-form {
    display: flex;
    align-items: center;
}

.search-field {
    flex: 1;
    padding: var(--space-4) var(--space-6);
    border: none;
    border-right: 1px solid var(--neutral-200);
    min-width: 0;
}

.search-field:last-of-type {
    border-right: none;
}

.search-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-field input,
.search-field select {
    width: 100%;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--neutral-600);
    background: transparent;
    padding: 0;
}

.search-field input::placeholder {
    color: var(--neutral-400);
}

.search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    background: var(--brand);
    color: var(--white);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin: var(--space-3);
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.search-btn:hover {
    background: var(--brand-dark);
    transform: scale(1.02);
}

/* ========================================
   PROPERTY CARDS - AIRBNB STYLE
   ======================================== */

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-6);
    padding: var(--space-10) 0;
}

.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-slow);
    position: relative;
    cursor: pointer;
}

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

.property-image-wrapper {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

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

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

/* Favorite Button */
.favorite-btn {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: var(--z-base);
}

.favorite-btn:hover {
    transform: scale(1.1);
    background: var(--white);
}

.favorite-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--neutral-600);
    stroke-width: 2;
    transition: all var(--transition-fast);
}

.favorite-btn.active svg {
    fill: var(--brand);
    stroke: var(--brand);
}

/* Badge */
.property-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    padding: var(--space-1) var(--space-3);
    background: var(--white);
    color: var(--neutral-900);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    z-index: var(--z-base);
}

.property-badge.featured {
    background: var(--brand);
    color: var(--white);
}

/* Carousel Indicators */
.property-dots {
    position: absolute;
    bottom: var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-1);
}

.property-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.6);
    transition: all var(--transition-fast);
}

.property-dot.active {
    background: var(--white);
    width: 16px;
}

/* Card Content */
.property-info {
    padding: var(--space-4);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-2);
}

.property-location {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-900);
}

.property-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.property-rating svg {
    width: 12px;
    height: 12px;
    fill: var(--neutral-900);
}

.property-title {
    font-size: 0.9rem;
    color: var(--neutral-500);
    margin-bottom: var(--space-2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-price {
    font-size: 1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-top: var(--space-2);
}

.property-price span {
    font-weight: 400;
    color: var(--neutral-500);
}

/* ========================================
   SECTION HEADERS
   ======================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-8);
    padding-top: var(--space-10);
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-900);
    letter-spacing: -0.02em;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--neutral-700);
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color var(--transition-fast);
}

.section-link:hover {
    color: var(--neutral-900);
}

/* ========================================
   CATEGORIES PILLS
   ======================================== */

.categories {
    display: flex;
    gap: var(--space-3);
    padding: var(--space-6) 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.categories::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--neutral-600);
    transition: all var(--transition-fast);
    white-space: nowrap;
    cursor: pointer;
}

.category-pill:hover {
    border-color: var(--neutral-400);
    color: var(--neutral-900);
}

.category-pill.active {
    background: var(--neutral-900);
    border-color: var(--neutral-900);
    color: var(--white);
}

.category-icon {
    font-size: 1.5rem;
}

/* ========================================
   HOW IT WORKS
   ======================================== */

.how-it-works {
    padding: var(--space-20) 0;
    background: var(--neutral-50);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.step-card {
    text-align: center;
    padding: var(--space-8);
}

.step-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    background: var(--brand-ultra-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--neutral-900);
    margin-bottom: var(--space-3);
}

.step-card p {
    font-size: 0.9rem;
    color: var(--neutral-500);
    line-height: 1.6;
}

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

.cta-section {
    padding: var(--space-20) 0;
    background: var(--white);
}

.cta-box {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-16) var(--space-12);
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 800;
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

.cta-box p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

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

.btn-white {
    padding: var(--space-4) var(--space-8);
    background: var(--white);
    color: var(--brand);
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-white:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-outline-white {
    padding: var(--space-4) var(--space-8);
    background: transparent;
    color: var(--white);
    font-weight: 600;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
}

/* ========================================
    DASHBOARD & TABLES
    ======================================== */

.dashboard-header {
    padding: var(--space-8) 0;
    background: var(--white);
    border-bottom: 1px solid var(--neutral-200);
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    margin: var(--space-8) 0;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    text-align: center;
    transition: box-shadow var(--transition-fast);
}

.stat-card:hover {
    box-shadow: var(--shadow-md);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: var(--space-3);
}

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

.stat-label {
    font-size: 0.85rem;
    color: var(--neutral-500);
    margin-top: var(--space-2);
}

.table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--neutral-200);
}

.table thead {
    background: var(--neutral-50);
}

.table th {
    padding: var(--space-4);
    text-align: left;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--neutral-600);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid var(--neutral-200);
}

.table td {
    padding: var(--space-4);
    border-bottom: 1px solid var(--neutral-100);
    font-size: 0.9rem;
}

.table tbody tr:hover {
    background: var(--neutral-50);
}

.badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: capitalize;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: #B8860B;
}

.badge-danger {
    background: var(--error-light);
    color: var(--error);
}

.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    background: var(--white);
    border: 1px dashed var(--neutral-300);
    border-radius: var(--radius-lg);
}

.empty-state h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
}

.empty-state p {
    color: var(--neutral-500);
    margin-bottom: var(--space-6);
}

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

.footer {
    background: var(--neutral-900);
    color: var(--neutral-400);
    padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-10);
    margin-bottom: var(--space-12);
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-4);
}

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

.footer-links a {
    font-size: 0.9rem;
    color: var(--neutral-400);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid var(--neutral-800);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

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

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

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

.btn-secondary:hover {
    background: var(--neutral-700);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--neutral-300);
    color: var(--neutral-700);
}

.btn-outline:hover {
    border-color: var(--neutral-500);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: 0.85rem;
}

.btn-lg {
    padding: var(--space-5) var(--space-8);
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: var(--error);
    color: var(--white);
}

.btn-danger:hover {
    background: #a02b0f;
}

/* Utility Classes */
.d-flex { display: flex; }
.justify-between { justify-content: space-between; }
.align-center { align-items: center; }
.mt-2 { margin-top: var(--space-2); }
.mb-2 { margin-bottom: var(--space-2); }
.text-center { text-align: center; }

/* ========================================
   FORMS
   ======================================== */

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-4);
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-md);
    font-size: 1rem;
    color: var(--neutral-900);
    background: var(--white);
    transition: all var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--neutral-900);
    box-shadow: 0 0 0 2px var(--neutral-200);
}

.form-input::placeholder {
    color: var(--neutral-400);
}

/* ========================================
   AUTH FORMS
   ======================================== */

.auth-container {
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8) var(--space-4) var(--space-8);
    background: var(--neutral-50);
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    box-shadow: var(--shadow-lg);
}

.auth-header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.auth-header h2 {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--neutral-900);
    margin-bottom: var(--space-2);
}

.auth-header p {
    color: var(--neutral-500);
    font-size: 0.95rem;
}

.auth-footer {
    text-align: center;
    margin-top: var(--space-6);
    padding-top: var(--space-6);
    border-top: 1px solid var(--neutral-200);
}

.auth-footer p {
    font-size: 0.9rem;
    color: var(--neutral-500);
}

.auth-footer a {
    color: var(--brand);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-info {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
    padding: var(--space-4);
    background: var(--brand-ultra-light);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--brand);
    margin-bottom: var(--space-6);
}

.auth-info svg {
    color: var(--brand);
    flex-shrink: 0;
    margin-top: 2px;
}

.auth-info p {
    font-size: 0.85rem;
    color: var(--neutral-600);
    margin: 0;
    line-height: 1.5;
}

/* ========================================
   ALERTS
   ======================================== */

.alert {
    padding: var(--space-4);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-5);
    font-size: 0.9rem;
}

.alert-error {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid rgba(193, 53, 21, 0.2);
}

.alert-danger {
    background: var(--error-light);
    color: var(--error);
    border: 1px solid rgba(193, 53, 21, 0.2);
}

.alert-success {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(0, 138, 5, 0.2);
}

.alert-warning {
    background: var(--warning-light);
    color: #7A5C00;
    border: 1px solid rgba(255, 180, 0, 0.2);
}

/* ========================================
   LOADING & SKELETON
   ======================================== */

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

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

.spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--neutral-200);
    border-top-color: var(--brand);
    border-radius: var(--radius-full);
    animation: spin 0.8s linear infinite;
}

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

/* ========================================
   RESPONSIVE - MOBILE FIRST
   ======================================== */

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

@media (max-width: 768px) {
    :root {
        --header-height: 64px;
    }
    
    .nav, .user-menu {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .search-bar-form {
        flex-direction: column;
    }
    
    .search-field {
        border-right: none;
        border-bottom: 1px solid var(--neutral-200);
        padding: var(--space-3) var(--space-4);
    }
    
    .search-btn {
        width: calc(100% - var(--space-6));
        margin: var(--space-3);
    }
    
    .property-grid {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-3);
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
    
    .cta-box {
        padding: var(--space-10) var(--space-6);
    }
    
    .auth-card {
        padding: var(--space-6);
    }
}

/* ========================================
   UTILITIES
   ======================================== */

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

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-2 { gap: var(--space-2); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.mt-2 { margin-top: var(--space-2); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.hidden { display: none; }
.w-full { width: 100%; }
