/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ============================================
       COLOR SYSTEM - Primary Palette
       ============================================ */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-lighter: #60a5fa;
    --primary-lightest: #dbeafe;
    
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --secondary-light: #34d399;
    --secondary-lighter: #6ee7b7;
    --secondary-lightest: #d1fae5;
    
    /* Status Colors */
    --status-available: #10b981;
    --status-available-dark: #059669;
    --status-pending: #fbbf24;
    --status-pending-dark: #f59e0b;
    --status-error: #ef4444;
    --status-warning: #f59e0b;
    
    /* ============================================
       COLOR SYSTEM - Neutral Palette
       ============================================ */
    --text-dark: #1f2937;
    --text-medium: #4b5563;
    --text-light: #6b7280;
    --text-lighter: #9ca3af;
    --text-lightest: #d1d5db;
    
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-lighter: #f3f4f6;
    --bg-dark: #1f2937;
    --bg-darker: #111827;
    
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --border-dark: #d1d5db;
    
    /* ============================================
       GRADIENT SYSTEM
       ============================================ */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-dark) 100%);
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-hero-start: #667eea;
    --gradient-hero-end: #764ba2;
    --gradient-text-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    --gradient-text-secondary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    --gradient-card: linear-gradient(to bottom, var(--bg-white) 0%, var(--bg-light) 100%);
    --gradient-overlay: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.1), transparent);
    
    /* ============================================
       SHADOW SYSTEM
       ============================================ */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    
    /* Colored Shadows */
    --shadow-primary: 0 4px 12px rgba(37, 99, 235, 0.3), 0 2px 4px rgba(37, 99, 235, 0.2);
    --shadow-primary-lg: 0 8px 20px rgba(37, 99, 235, 0.4), 0 4px 8px rgba(37, 99, 235, 0.3);
    --shadow-secondary: 0 4px 12px rgba(16, 185, 129, 0.3), 0 2px 4px rgba(16, 185, 129, 0.2);
    --shadow-secondary-lg: 0 8px 20px rgba(16, 185, 129, 0.4), 0 4px 8px rgba(16, 185, 129, 0.3);
    --shadow-pending: 0 4px 12px rgba(251, 191, 36, 0.3), 0 2px 4px rgba(251, 191, 36, 0.2);
    
    /* ============================================
       SPACING SYSTEM (8px base unit)
       ============================================ */
    --spacing-xs: 0.25rem;    /* 4px */
    --spacing-sm: 0.5rem;     /* 8px */
    --spacing-md: 1rem;       /* 16px */
    --spacing-lg: 1.5rem;     /* 24px */
    --spacing-xl: 2rem;       /* 32px */
    --spacing-2xl: 2.5rem;    /* 40px */
    --spacing-3xl: 3rem;      /* 48px */
    --spacing-4xl: 4rem;      /* 64px */
    --spacing-5xl: 5rem;      /* 80px */
    
    /* ============================================
       TYPOGRAPHY SYSTEM
       ============================================ */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 1.875rem;    /* 30px */
    --font-size-4xl: 2.5rem;      /* 40px */
    --font-size-5xl: 3rem;       /* 48px */
    --font-size-6xl: 3.5rem;     /* 56px */
    
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
    
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
    --line-height-loose: 2;
    
    /* ============================================
       BORDER RADIUS SYSTEM
       ============================================ */
    --radius-sm: 0.375rem;   /* 6px */
    --radius-md: 0.5rem;     /* 8px */
    --radius-lg: 0.75rem;    /* 12px */
    --radius-xl: 1rem;      /* 16px */
    --radius-2xl: 1.25rem;  /* 20px */
    --radius-full: 9999px;
    
    /* ============================================
       TRANSITION SYSTEM
       ============================================ */
    --transition-fast: 0.15s ease-out;
    --transition-base: 0.3s ease-out;
    --transition-slow: 0.4s ease-out;
    --transition-slower: 0.6s ease-out;
    --transition-cubic: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ============================================
       OPACITY SYSTEM
       ============================================ */
    --opacity-disabled: 0.5;
    --opacity-hover: 0.8;
    --opacity-overlay: 0.3;
    --opacity-overlay-light: 0.1;
    --opacity-overlay-dark: 0.5;
    
    /* ============================================
       Z-INDEX SYSTEM
       ============================================ */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-navbar: 1000;
    
    /* ============================================
       LAYOUT SYSTEM
       ============================================ */
    --container-max-width: 1200px;
    --container-padding: 1.25rem; /* 20px */
    --grid-gap: 2.5rem;
    --grid-gap-sm: 1.5rem;
    --grid-gap-lg: 3rem;
}

body {
    font-family: var(--font-family);
    color: var(--text-dark);
    line-height: var(--line-height-normal);
    background-color: var(--bg-white);
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Performance optimization - will-change for animated elements */
.property-card,
.feature-card,
.hero-content,
.section-header {
    will-change: transform;
}

/* Remove will-change after animation to improve performance */
.property-card.visible,
.feature-card.visible {
    will-change: auto;
}

/* Fade-in animation for sections */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

.fade-in-delay-1 {
    animation-delay: 0.1s;
}

.fade-in-delay-2 {
    animation-delay: 0.2s;
}

.fade-in-delay-3 {
    animation-delay: 0.3s;
}

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

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: var(--z-navbar);
    padding: var(--spacing-md) 0;
    transition: all var(--transition-base);
}

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

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.tagline {
    font-size: 0.75rem;
    color: var(--text-light);
    font-weight: 500;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

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

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-dark);
    transition: all 0.3s;
}

/* Hero Section */
.hero {
    position: relative;
    background: var(--gradient-hero);
    min-height: 600px;
    display: flex;
    align-items: center;
    color: white;
    overflow: hidden;
    isolation: isolate;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, var(--opacity-overlay));
    z-index: var(--z-base);
}

/* Floating particles effect - using hero::before for particles */
.hero::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.5;
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.7;
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
        opacity: 0.6;
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out 0.4s both;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.hero-search {
    margin-top: 2rem;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow-xl);
    max-width: 700px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 0.6s both;
    transition: transform 0.3s, box-shadow 0.3s;
}

.search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    outline: none;
    border-radius: 8px;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

/* Features Section */
.features {
    padding: 5rem 0;
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    animation: expandLine 0.8s ease-out 0.5s both;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-light);
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

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

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

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
    opacity: 0;
    animation: fadeIn 0.6s ease-out 0.2s forwards;
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-2xl);
    overflow: visible;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-cubic);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-light);
    position: relative;
    background: var(--gradient-card);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.property-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.property-card > .property-image-wrapper {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
}

.property-image {
    position: relative;
    z-index: 1;
}

.property-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--shadow-primary-lg);
    border-color: var(--primary-color);
}

.property-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 260px;
    background: var(--gradient-hero);
}

.property-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: relative;
    z-index: 1;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.property-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s;
}

.property-image[loading="lazy"].loaded {
    opacity: 1;
}

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

.property-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 48px,
            rgba(255, 255, 255, 0.15) 48px,
            rgba(255, 255, 255, 0.15) 50px
        );
    z-index: 2;
    animation: streamForward 8s linear infinite;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.property-image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        repeating-linear-gradient(
            0deg,
            transparent 0px,
            transparent 20px,
            rgba(255, 255, 255, 0.1) 20px,
            rgba(255, 255, 255, 0.1) 22px
        );
    animation: streamDown 6s linear infinite;
    pointer-events: none;
}

@keyframes streamForward {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes streamDown {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

.property-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    color: var(--text-dark);
    padding: 0.625rem 1.25rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    z-index: 4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.property-badge.status-available {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-secondary-lg);
}

.property-badge.status-pending {
    background: linear-gradient(135deg, var(--status-pending) 0%, var(--status-pending-dark) 100%);
    color: white;
    box-shadow: var(--shadow-pending);
}

.property-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.property-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    letter-spacing: -0.3px;
}

.property-location {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 600;
}

.property-location svg {
    width: 18px;
    height: 18px;
    fill: var(--primary-color);
    flex-shrink: 0;
    opacity: 0.8;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    padding: 1.5rem;
    margin: 0.5rem 0;
    background: linear-gradient(to bottom, #f8fafc 0%, #ffffff 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.property-detail-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
}

.property-detail-icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.25rem;
    opacity: 0.7;
    stroke: var(--primary-color);
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2));
}

.property-detail-label {
    font-size: 0.6875rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    margin-top: 0.25rem;
}

.property-detail-value {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-top: 0.25rem;
    letter-spacing: -0.2px;
}

.property-price {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-black);
    color: var(--primary-color);
    margin: 0.75rem 0;
    letter-spacing: -0.8px;
    background: var(--gradient-text-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    line-height: var(--line-height-tight);
    position: relative;
    padding: var(--spacing-sm) 0;
}

.property-price::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    opacity: var(--opacity-overlay);
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
    margin-bottom: 1rem;
    min-height: 2rem;
}

.property-feature-tag {
    background: linear-gradient(135deg, var(--primary-lightest) 0%, var(--primary-lighter) 100%);
    color: var(--primary-dark);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    border: 1px solid rgba(37, 99, 235, 0.2);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.property-feature-tag:hover {
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 2px solid var(--border-color);
    gap: 1rem;
}

.property-status {
    padding: 0.625rem 1.25rem;
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    white-space: nowrap;
}

.status-available {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: var(--shadow-secondary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.status-pending {
    background: linear-gradient(135deg, var(--status-pending) 0%, var(--status-pending-dark) 100%);
    color: white;
    box-shadow: var(--shadow-pending);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.view-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-lg);
    font-weight: var(--font-weight-bold);
    cursor: pointer;
    transition: all var(--transition-cubic);
    font-size: var(--font-size-sm);
    box-shadow: var(--shadow-primary);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.view-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-primary-lg);
    background: linear-gradient(135deg, var(--primary-dark) 0%, #1e3a8a 100%);
}

.view-btn:active {
    transform: translateY(-1px) scale(1);
}

/* Featured Properties */
.featured-properties {
    padding: 5rem 0;
}

.view-all {
    text-align: center;
    margin-top: 3rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: var(--spacing-md) var(--spacing-2xl);
    border-radius: var(--radius-md);
    text-decoration: none;
    font-weight: var(--font-weight-semibold);
    display: inline-block;
    transition: all var(--transition-cubic);
    border: none;
    cursor: pointer;
    font-size: var(--font-size-base);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-primary);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

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

.btn-primary:active {
    transform: translateY(0);
}

/* About Section */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: transform 0.3s;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    font-weight: 500;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-form {
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 12px;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.info-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.info-item p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Properties Header */
.properties-header {
    background: var(--gradient-hero);
    color: white;
    padding: var(--spacing-5xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.properties-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.properties-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.properties-header p {
    font-size: 1.375rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

/* Filters Section */
.filters-section {
    background: white;
    padding: 2.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 80px;
    z-index: 100;
    border-bottom: 1px solid var(--border-color);
}

.filters-container {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.search-bar {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
}

.search-bar input {
    flex: 1;
    padding: 1rem 1.75rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: var(--bg-light);
    font-weight: 500;
    position: relative;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

.search-bar input::placeholder {
    transition: opacity 0.3s;
}

.search-bar input:focus::placeholder {
    opacity: 0.6;
}

.search-bar input::placeholder {
    color: var(--text-light);
}

.search-icon-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    padding: 1rem 1.75rem;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    min-width: 60px;
}

.search-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}

.search-icon-btn:active {
    transform: translateY(0);
}

.filters {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filters select {
    flex: 1;
    min-width: 200px;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    background: var(--bg-light);
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* Properties Listing */
.properties-listing {
    padding: 4rem 0;
    background: var(--bg-light);
}

.properties-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding: 1.5rem 0;
}

.results-count {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1.0625rem;
}

.results-count span {
    color: var(--primary-color);
    font-weight: 800;
    font-size: 1.25rem;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-options label {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9375rem;
}

.sort-options select {
    padding: 0.75rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9375rem;
    cursor: pointer;
    background: white;
    font-weight: 500;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.pagination button {
    padding: 0.875rem 1.5rem;
    border: 2px solid var(--border-color);
    background: white;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.9375rem;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:hover:not(:disabled):not(.active) {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pagination button.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

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

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filters select {
        width: 100%;
    }

    .properties-header-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .properties-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .property-card {
        border-radius: 16px;
    }
    
    .property-image {
        height: 220px;
    }
    
    .property-content {
        padding: 1.75rem;
        gap: 0.875rem;
    }
    
    .property-title {
        font-size: 1.375rem;
    }
    
    .property-price {
        font-size: 1.875rem;
    }
    
    .property-details {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1.25rem;
    }
    
    .property-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }
    
    .view-btn {
        width: 100%;
        justify-content: center;
    }
    
    .filters-section {
        top: 70px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .properties-header h1 {
        font-size: 2rem;
    }
}

