/* BalkanScout - Ultra Modern Real Estate Website */
/* Optimized for Performance & SEO */

:root {
    color-scheme: light;
    /* Brand Colors */
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #f59e0b;
    --secondary-dark: #d97706;

    /* Neutral Colors */
    --white: #ffffff;
    --black: #000000;
    --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;

    /* Status Colors */
    --success-color: #10b981;
    --error-color: #ef4444;
    --warning-color: #f59e0b;

    /* Typography */
    --font-heading: 'Clash Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-weight-light: 300;
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Layout */
    --container-max-width: 1280px;
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-bloom: 0 20px 40px rgba(37, 99, 235, 0.15);
    /* New bloom effect */

    /* Transitions */
    --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Visual Effects */
    --glass-background: rgba(255, 255, 255, 0.7);
    --glass-border: 1px solid rgba(255, 255, 255, 0.5);
    --glass-blur: blur(12px);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

html,
body {
    color-scheme: light;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-background);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

/* Base Styles Update */
h1,
h2,
h3,
h4,
h5,
h6,
.brand-text {
    font-family: var(--font-heading);
    letter-spacing: -0.02em;
}

/* Google Ads Styling */
.ad-section {
    padding: 2rem 0;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.ad-banner,
.ad-rectangle {
    text-align: center;
    margin: 0 auto;
    max-width: 100%;
    overflow: hidden;
    position: relative;
}

.ad-banner {
    min-height: 90px;
    max-width: 728px;
}

.ad-rectangle {
    min-height: 250px;
    max-width: 300px;
}

/* Ad Placeholder for localhost testing */
.ad-placeholder {
    background: linear-gradient(135deg, #f0f0f0 25%, #e0e0e0 25%, #e0e0e0 50%, #f0f0f0 50%, #f0f0f0 75%, #e0e0e0 75%);
    background-size: 20px 20px;
    border: 2px dashed #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: var(--font-primary);
    color: #666;
    animation: slide 1s linear infinite;
}

@keyframes slide {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 20px 20px;
    }
}

.ad-placeholder .ad-label {
    background: rgba(255, 255, 255, 0.9);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ad-placeholder .ad-size {
    font-size: 12px;
    color: #999;
    margin-top: 0.5rem;
}

.ad-banner .ad-placeholder {
    height: 90px;
}

.ad-rectangle .ad-placeholder {
    height: 250px;
}

/* Discreet ad slots (placeholder + AdSense-ready) */
.ad-section-discreet {
    padding: 1.25rem 0;
    background: transparent;
    border: 0;
}

.bs-ad-slot {
    position: relative;
    margin: 0 auto;
    max-width: min(100%, 980px);
}

.bs-ad-slot .bs-ad-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-bottom: 0.45rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--gray-500);
}

.bs-ad-slot .bs-ad-label i {
    font-size: 0.7rem;
}

.bs-ad-slot ins.adsbygoogle {
    display: block;
    width: 100%;
    min-height: 96px;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    overflow: hidden;
}

.bs-ad-slot.bs-ad-rectangle {
    max-width: 336px;
}

.bs-ad-slot.bs-ad-rectangle ins.adsbygoogle {
    min-height: 280px;
}

.bs-ad-fallback {
    position: absolute;
    inset: 1.35rem 0 0;
    border-radius: 12px;
    border: 1px dashed var(--gray-300);
    color: var(--gray-500);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.65),
        rgba(255, 255, 255, 0.65) 10px,
        rgba(248, 250, 252, 0.8) 10px,
        rgba(248, 250, 252, 0.8) 20px
    );
    pointer-events: none;
}

.bs-ad-slot.bs-ad-live .bs-ad-fallback {
    display: none;
}

.bs-ad-inline {
    margin: 1rem 0 1.5rem;
}

.bs-ad-inline .bs-ad-slot {
    max-width: 100%;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
    .ad-section {
        padding: 1rem 0;
    }

    .ad-banner {
        min-height: 50px;
        max-width: 320px;
    }

    .ad-rectangle {
        min-height: 200px;
        max-width: 250px;
    }

    .ad-section-discreet {
        padding: 0.9rem 0;
    }

    .bs-ad-slot ins.adsbygoogle {
        min-height: 80px;
        border-radius: 12px;
    }

    .bs-ad-fallback {
        inset: 1.2rem 0 0;
        font-size: 0.78rem;
    }

    .bs-ad-slot.bs-ad-rectangle {
        max-width: 300px;
    }

    .bs-ad-slot.bs-ad-rectangle ins.adsbygoogle {
        min-height: 250px;
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-normal);
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Performance Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

picture,
img {
    will-change: transform;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

p {
    margin-bottom: 1rem;
}

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

a:hover {
    color: var(--primary-dark);
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 12000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-normal);
    --nav-height: 80px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: var(--font-weight-bold);
    font-size: 1.5rem;
    color: var(--gray-900);
}

.brand-icon {
    color: var(--primary-color);
    font-size: 2rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 3rem;
    margin-right: 1rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    transition: var(--transition-fast);
    white-space: nowrap;
}

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

@media (max-width: 1200px) and (min-width: 769px) {
    .nav-menu {
        gap: 1rem;
        margin-left: 1.25rem;
        margin-right: 0.5rem;
    }

    .nav-link {
        padding: 0.45rem 0.65rem;
        font-size: 0.9rem;
    }

    .nav-link i {
        font-size: 0.9rem;
    }
}

/* Language Switcher */
.language-switcher {
    position: relative;
    margin-left: 1rem;
}

.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: var(--font-weight-medium);
    color: var(--gray-700);
    transition: var(--transition-fast);
}

.language-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.language-toggle .flag {
    font-size: 1rem;
}

.language-toggle .lang-code {
    font-weight: var(--font-weight-semibold);
}

.language-toggle i {
    font-size: 0.75rem;
    transition: var(--transition-fast);
}

.language-toggle.active i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: 1001;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--gray-700);
    transition: var(--transition-fast);
    border-bottom: 1px solid var(--gray-100);
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background: var(--gray-50);
    color: var(--primary-color);
}

.language-option.active {
    background: var(--primary-color);
    color: var(--white);
}

.language-option .flag {
    font-size: 1.25rem;
}

.language-option .name {
    font-weight: var(--font-weight-medium);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--gray-700);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.75) 0%, rgba(30, 64, 175, 0.8) 50%, rgba(15, 23, 42, 0.85) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 2rem 0;
}

.page-hero {
    min-height: 460px;
}

.page-hero .hero-content {
    padding: 4rem 0;
}

.hero-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-title {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-extrabold);
}

.hero-highlight {
    display: block;
    color: var(--secondary-color);
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.hero-description {
    color: var(--gray-200);
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.page-hero .hero-description {
    margin-bottom: 0;
}

/* Modern Hero Search */
.hero-search {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.search-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.search-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.3), transparent);
}


/* Desktop Layout */
.search-desktop {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.search-mobile {
    display: none;
}

.search-group {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Dropdowns Row */
.search-filters-row {
    display: flex;
    gap: 1rem;
    background: var(--white);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.search-filters-row:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Text Search and Button Row */
.search-input-row {
    display: flex;
    gap: 1rem;
    align-items: center;
    background: var(--white);
    border-radius: 16px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
}

.search-input-row:hover {
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

.search-input-row:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
}

.search-field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.search-input-row .search-field {
    flex: 3;
}

.search-field i {
    position: absolute;
    left: 1.25rem;
    color: var(--primary-color);
    font-size: 1.1rem;
    z-index: 2;
}

.search-field input {
    width: 100%;
    padding: 1.25rem 1.25rem 1.25rem 3.5rem;
    border: none;
    border-radius: 12px;
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    font-weight: 500;
    background: transparent;
    transition: all 0.3s ease;
    color: var(--gray-900);
}

.search-field input::placeholder {
    color: var(--gray-500);
    font-weight: 400;
    transition: color 0.3s ease;
}

.search-field input:focus {
    outline: none;
}

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

.search-field:focus-within i {
    color: var(--primary-dark);
    transform: scale(1.1);
}

.search-filter-item {
    position: relative;
    flex: 1;
    min-width: 0;
}

.search-filters-row .search-filter-item select {
    width: 100%;
    padding: 1.25rem 2.5rem 1.25rem 1rem;
    border: none;
    border-radius: 12px;
    background: var(--gray-50);
    font-size: clamp(0.875rem, 2vw, 0.95rem);
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    color: var(--gray-700);
}

.search-filter-item::after {
    content: '▾';
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 0.8rem;
    pointer-events: none;
    transition: all 0.3s ease;
}

.search-filters-row .search-filter-item select:hover {
    background: var(--gray-100);
}

.search-filters-row .search-filter-item select:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.search-filter-item:hover::after {
    color: var(--primary-color);
    transform: translateY(-50%) rotate(180deg);
}

.search-filters-row .search-filter-item select:focus+.search-filter-item::after {
    transform: translateY(-50%) rotate(180deg);
}

/* Coming Soon Options Styling */
.search-filters-row .search-filter-item select option:disabled,
.search-filters-mobile select option:disabled {
    color: var(--gray-400);
    font-style: italic;
    background: var(--gray-50);
    cursor: not-allowed;
}

.search-filters-row .search-filter-item select option:disabled::after,
.search-filters-mobile select option:disabled::after {
    content: " 🚧";
    opacity: 0.7;
}

.search-btn-modern {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: clamp(0.875rem, 2vw, 1rem);
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

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

.search-btn-modern:hover::before {
    left: 100%;
}

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

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

/* Mobile-first fallback styles */
.search-filters-mobile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    width: 100%;
}

.search-filters-mobile select {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    background: var(--white);
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 500;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--gray-700);
}

.search-filters-mobile select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-btn-mobile {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: clamp(0.9rem, 3vw, 1rem);
    font-weight: 600;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    cursor: pointer;
    transition: var(--transition-fast);
    white-space: nowrap;
    width: 100%;
}

.search-btn-mobile:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

/* Mobile-First Layout (Default) */
@media (max-width: 767px) {
    .search-form {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .search-group {
        gap: 1.25rem;
    }

    .search-desktop {
        display: none;
        /* Hide desktop layout */
    }

    .search-mobile {
        display: flex;
        /* Show mobile layout */
        flex-direction: column;
        gap: 1rem;
    }

    .search-mobile .search-field {
        flex: none;
    }

    .search-mobile .search-field input {
        padding: 1.125rem 1.125rem 1.125rem 3.25rem;
        border: 2px solid var(--gray-200);
        border-radius: 12px;
        background: var(--white);
        font-size: clamp(0.9rem, 4vw, 1rem);
    }

    .search-mobile .search-field input:focus {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    }

    .search-filters-mobile {
        display: grid;
        /* Show mobile filters */
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .search-btn-mobile {
        display: flex;
        /* Show mobile button */
    }
}

/* Small Mobile Adjustments */
@media (max-width: 480px) {
    .search-form {
        padding: 1.25rem;
    }

    .search-filters-mobile {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .search-btn-mobile {
        padding: 1.125rem 1.5rem;
        font-size: clamp(0.85rem, 4vw, 0.95rem);
    }
}

/* Tablet Layout */
@media (min-width: 768px) and (max-width: 1023px) {
    .search-form {
        padding: 1.75rem;
    }

    .search-main-row {
        display: none;
        /* Still use mobile-style layout */
    }

    .search-filters-mobile {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .search-btn-mobile {
        max-width: 320px;
        margin: 0 auto;
    }
}

/* Desktop Layout - Modern Inline Style */
@media (min-width: 1024px) {
    .search-form {
        padding: 2rem;
    }

    .search-group {
        gap: 1.5rem;
    }

    .search-main-row {
        display: flex;
        /* Show desktop layout */
    }

    .search-field input {
        border: none;
        background: transparent;
    }

    .search-filters-mobile {
        display: none;
        /* Hide mobile filters */
    }

    .search-filters-inline {
        display: flex;
        /* Show inline filters */
    }

    .search-btn-mobile {
        display: none;
        /* Hide mobile button */
    }

    .search-btn-modern {
        display: flex;
        /* Show modern button */
    }
}

/* Large Desktop - Optimized Layout */
@media (min-width: 1280px) {
    .hero-search {
        max-width: 1000px;
    }

    .search-form {
        padding: 2.5rem;
    }

    .search-main-row {
        padding: 0.75rem;
        gap: 1.25rem;
    }

    .search-field {
        flex: 2.5;
    }

    .search-filters-inline {
        flex: 3.5;
        gap: 0.75rem;
    }

    .search-btn-modern {
        padding: 1.25rem 2.5rem;
    }
}

/* Ultra-wide screens - Fixed maximum width */
@media (min-width: 1600px) {
    .hero-search {
        max-width: 1100px;
    }

    .search-form {
        padding: 2.5rem;
    }

    .search-main-row {
        padding: 0.75rem;
        gap: 1.25rem;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-icon {
    color: var(--white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    53%,
    80%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    40%,
    43% {
        transform: translate3d(0, -10px, 0);
    }

    70% {
        transform: translate3d(0, -5px, 0);
    }

    90% {
        transform: translate3d(0, -2px, 0);
    }
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 55%),
                radial-gradient(ellipse at 80% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 55%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 350px;
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
        max-width: 1000px;
        gap: 2rem;
    }
}

.stats-section .stat-item {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.stats-section .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #06b6d4);
    border-radius: 16px 16px 0 0;
}

.stats-section .stat-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.14);
    background: var(--white);
    border-color: rgba(37, 99, 235, 0.25);
}

.stats-section .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transition: all 0.3s ease;
}

.stats-section .stat-item:hover .stat-icon {
    transform: scale(1.05) rotate(3deg);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.stats-section .stat-number {
    font-size: 2.5rem;
    font-weight: var(--font-weight-extrabold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stats-section .stat-label {
    color: var(--gray-600);
    font-weight: var(--font-weight-medium);
    margin: 0;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (min-width: 1400px) {
    .stats-section .stat-item {
        padding: 2.5rem 2rem;
    }

    .stats-section .stat-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
        border-radius: 18px;
    }

    .stats-section .stat-number {
        font-size: 2.8rem;
    }

    .stats-section .stat-label {
        font-size: 1rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title {
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.section-subtitle {
    color: var(--gray-500);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

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

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

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(350px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    padding: 0 1rem;
}

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

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

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

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

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

.property-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

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

.badge-rent {
    background: var(--warning-color);
    color: var(--white);
}

.badge-images {
    background: var(--primary-color);
    color: var(--white);
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-normal);
}

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

.view-details-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    transition: var(--transition-fast);
}

.view-details-btn:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.property-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-title {
    margin-bottom: 0.75rem;
}

.property-title a {
    color: var(--gray-900);
    transition: var(--transition-fast);
}

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

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.property-features {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--gray-600);
    font-size: 0.875rem;
    flex-shrink: 0;
    white-space: nowrap;
}

/* Original property-footer updated - see enhanced version below */

.property-amenities {
    display: flex;
    gap: 0.75rem;
}

.amenity {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--gray-100);
    border-radius: 50%;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.property-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: var(--font-weight-medium);
    transition: var(--transition-fast);
}

.property-link:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.section-footer {
    text-align: center;
}

/* Featured Properties Premium Section */
.featured-properties-premium {
    padding: 5rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.featured-properties-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.featured-header-content {
    max-width: 600px;
}

.featured-badge-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.featured-badge-label i {
    color: #f59e0b;
}

.featured-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.featured-subtitle {
    font-size: 1.1rem;
    color: #6b7280;
    line-height: 1.6;
}

.featured-view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border: 2px solid #2563eb;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.featured-view-all-btn:hover {
    background: #2563eb;
    color: white;
    transform: translateX(5px);
}

.featured-properties-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.featured-loading {
    display: contents;
}

.featured-loading-card {
    background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 20px;
    height: 420px;
}

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

.featured-property-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.featured-property-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.2);
}

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

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.featured-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    pointer-events: none;
}

.investment-score-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.investment-score-badge.top-pick {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.investment-score-badge.premium {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.investment-score-badge.hot {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.investment-score-badge.great {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.investment-score-badge i {
    font-size: 0.9rem;
}

.deal-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.deal-type-badge.sale {
    background: rgba(37, 99, 235, 0.9);
    color: white;
}

.deal-type-badge.rent {
    background: rgba(16, 185, 129, 0.9);
    color: white;
}

.featured-price-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 10;
}

.featured-price-tag {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 10px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.featured-price-amount {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1f2937;
    line-height: 1.2;
}

.featured-price-sqm {
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 2px;
}

.featured-quick-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.featured-property-card:hover .featured-quick-actions {
    opacity: 1;
    transform: translateY(0);
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.quick-action-btn:hover {
    background: #2563eb;
    color: white;
    transform: scale(1.1);
}

.quick-action-btn.favorited {
    background: #ef4444;
    color: white;
}

.featured-card-content {
    padding: 1.25rem;
}

.featured-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #6b7280;
    margin-bottom: 8px;
}

.featured-location i {
    color: #2563eb;
    font-size: 0.9rem;
}

.featured-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 3rem;
}

.featured-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f3f4f6;
}

.featured-feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: #4b5563;
}

.featured-feature i {
    color: #2563eb;
    font-size: 0.9rem;
    width: 16px;
}

.featured-investment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.investment-rating {
    display: flex;
    align-items: center;
    gap: 4px;
}

.investment-rating .star {
    color: #fbbf24;
    font-size: 0.9rem;
}

.investment-rating .star.empty {
    color: #e5e7eb;
}

.investment-label {
    font-size: 0.75rem;
    color: #6b7280;
    margin-left: 6px;
}

.price-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-trend.up {
    color: #10b981;
}

.price-trend.down {
    color: #ef4444;
}

.price-trend.stable {
    color: #6b7280;
}

.featured-card-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.featured-card-cta:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.4);
    color: white;
}

.featured-card-cta i {
    transition: transform 0.3s ease;
}

.featured-card-cta:hover i {
    transform: translateX(4px);
}

.featured-footer {
    text-align: center;
}

.featured-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: white;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.featured-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.28);
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    color: white;
}

.featured-cta-btn i:last-child {
    transition: transform 0.3s ease;
}

.featured-cta-btn:hover i:last-child {
    transform: translateX(5px);
}

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

@media (max-width: 768px) {
    .featured-properties-premium {
        padding: 3rem 0;
    }

    .featured-header {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
    }

    .featured-title {
        font-size: 1.75rem;
    }

    .featured-properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .featured-card-image {
        height: 200px;
    }

    .featured-quick-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .featured-view-all-btn {
        display: none;
    }
}

/* Partner Banner */
.partner-section {
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
}

.partner-banner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    border-radius: 20px;
    padding: 2rem 3rem;
    box-shadow: 0 15px 50px rgba(37, 99, 235, 0.25);
    max-width: 800px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.partner-banner:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.35);
}

.partner-icon {
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
    font-size: 1.75rem;
}

.partner-text {
    flex: 1;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.partner-label {
    font-size: 0.8rem;
    opacity: 0.85;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-name {
    font-size: 1.4rem;
    font-weight: 700;
}

.partner-desc {
    font-size: 0.9rem;
    opacity: 0.8;
}

.partner-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    color: #2563eb;
    padding: 0.875rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    font-size: 0.9rem;
}

.partner-cta:hover {
    background: #f8fafc;
    color: #1e40af;
    transform: scale(1.05);
}

.partner-cta i {
    font-size: 0.75rem;
}

@media (max-width: 768px) {
    .partner-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
        gap: 1.25rem;
    }

    .partner-text {
        align-items: center;
    }
}

/* Why Choose Us */
.why-choose-us {
    padding: 8rem 0;
    background: var(--gray-50);
}

.features-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.2), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
        gap: 2rem;
    }
}

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

.feature-card {
    position: relative;
    text-align: center;
    padding: 2.5rem 1.75rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 20px 20px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
    border-color: rgba(37, 99, 235, 0.15);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    color: #2563eb;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: var(--white);
    transform: scale(1.08);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.feature-title {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
}

.feature-description {
    color: var(--gray-500);
    margin: 0;
    line-height: 1.6;
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
    color: var(--gray-900);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 60%);
}

@keyframes ctaPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
}

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

.cta-title {
    color: var(--gray-900);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
}

.cta-description {
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid transparent;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

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

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

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

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

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

/* Button outline for light backgrounds */
.btn-outline-primary {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    transition: var(--transition-fast);
    cursor: pointer;
}

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

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 4rem 0 2rem;
}

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

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-brand .brand-text {
    font-size: 1.5rem;
    font-weight: var(--font-weight-bold);
    color: var(--white);
}

.footer-description {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    color: var(--gray-300);
    transition: var(--transition-fast);
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--white);
}

.social-link-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
}

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

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

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

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

.coming-soon small {
    color: var(--secondary-color);
    font-size: 0.75rem;
    margin-left: 0.5rem;
}

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

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

.contact-item i {
    color: var(--primary-color);
    width: 20px;
}

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

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

/* Legal Pages Styling */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 6rem 0 4rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.1)"><polygon points="0,100 1000,100 1000,0"/></svg>');
    background-size: cover;
    opacity: 0.1;
}

.page-header .container {
    position: relative;
    z-index: 2;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    font-size: 1.125rem;
    opacity: 0.9;
    font-weight: 300;
}

.page-content {
    padding: 5rem 0;
    background: var(--gray-50);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.legal-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.legal-content h2 {
    color: var(--primary-color);
    font-size: 1.75rem;
    font-weight: 700;
    margin: 2.5rem 0 1.5rem 0;
    padding-left: 1rem;
    border-left: 4px solid var(--primary-color);
    position: relative;
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    position: relative;
    padding-left: 0.5rem;
}

.legal-content h3::before {
    content: '▸';
    color: var(--secondary-color);
    font-size: 1rem;
    margin-right: 0.5rem;
    font-weight: bold;
}

.legal-content p {
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--gray-700);
    font-size: 1rem;
}

.legal-content ul,
.legal-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.legal-content li {
    line-height: 1.6;
    margin-bottom: 0.75rem;
    color: var(--gray-700);
    position: relative;
}

.legal-content ul li::marker {
    color: var(--primary-color);
    font-size: 1.2em;
}

.legal-content ol li::marker {
    color: var(--primary-color);
    font-weight: 600;
}

.legal-content li:hover {
    color: var(--gray-900);
    transform: translateX(4px);
    transition: all 0.2s ease;
}

.legal-content a {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.legal-content a:hover {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-color);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .page-header {
        padding: 4rem 0 3rem;
    }

    .page-header h1 {
        font-size: 2.5rem;
    }

    .legal-content {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
        border-radius: 16px;
    }

    .legal-content h2 {
        font-size: 1.5rem;
        margin: 2rem 0 1rem 0;
    }

    .legal-content h3 {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 3rem 0;
    }

    .legal-content {
        margin: 0 0.5rem;
        padding: 1.5rem 1rem;
    }

    .legal-content ul,
    .legal-content ol {
        padding-left: 1.5rem;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {

    .navbar .nav-container {
        position: relative;
    }

    .navbar .nav-brand {
        padding-right: 8.5rem;
    }

    .navbar .language-selector {
        position: absolute;
        right: 4.25rem;
        top: 50%;
        transform: translateY(-50%);
        margin: 0;
        z-index: 12002;
        transition: opacity 0.2s ease, visibility 0.2s ease;
    }

    body.menu-open .navbar .language-selector {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .navbar .language-selector .lang-dropdown {
        right: 0;
        left: auto;
    }

    /* Smaller language selector on mobile */
    .language-switcher {
        margin-left: 0.5rem;
    }

    .language-toggle {
        padding: 0.35rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.25rem;
        min-width: auto;
    }

    .language-toggle .flag {
        font-size: 0.875rem;
    }

    .language-toggle .lang-code {
        display: none;
        /* Hide text, show only flag and arrow */
    }

    .language-toggle i {
        font-size: 0.65rem;
    }

    .language-dropdown {
        min-width: 160px;
        right: 0;
    }

    .language-option {
        padding: 0.65rem 0.85rem;
        font-size: 0.875rem;
    }

    .language-option .flag {
        font-size: 1.1rem;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        height: 100vh;
        background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
        flex-direction: column;
        padding: 0;
        box-shadow: -8px 0 40px rgba(0, 0, 0, 0.15);
        transform: translateX(100%);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 12000;
        overflow-y: auto;
        overflow-x: hidden;
        margin-left: 0;
        margin-right: 0;
    }

    .nav-menu.active {
        transform: translateX(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-menu a {
        padding: 1.25rem 1.75rem;
        margin: 0.25rem 1rem;
        border-radius: 16px;
        font-size: 1.125rem;
        font-weight: var(--font-weight-semibold);
        display: flex;
        align-items: center;
        gap: 1rem;
        color: var(--gray-700);
        background: transparent;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        border: 2px solid transparent;
        min-height: 60px;
    }

    .nav-menu a:first-child {
        margin-top: calc(80px + 1.5rem);
    }

    /* Animated background on hover/active */
    .nav-menu a::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.05), transparent);
        transition: left 0.5s ease;
    }

    .nav-menu a:active::before {
        left: 100%;
    }

    .nav-menu a i {
        font-size: 1.35rem;
        width: 28px;
        height: 28px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--gray-100);
        border-radius: 10px;
        transition: all 0.3s ease;
        flex-shrink: 0;
    }

    .nav-menu a:active,
    .nav-menu a.active {
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        color: var(--white);
        transform: scale(0.98);
        border-color: transparent;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
    }

    .nav-menu a:active i,
    .nav-menu a.active i {
        background: rgba(255, 255, 255, 0.2);
        color: var(--white);
    }

    /* Touch feedback */
    .nav-menu a:active {
        transform: scale(0.96);
    }

    /* Language switcher in mobile menu */
    .nav-menu .language-switcher {
        margin: 2rem 1rem 1rem;
        padding: 1.25rem 1.75rem;
        background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
        border-radius: 16px;
        border: 2px solid var(--gray-200);
    }

    .nav-toggle {
        display: flex;
        z-index: 12004;
        position: relative;
        padding: 0.75rem;
        border-radius: 12px;
        background: transparent;
        border: 2px solid transparent;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .nav-toggle:hover {
        background: var(--gray-50);
        border-color: var(--gray-200);
    }

    .nav-toggle:active {
        transform: scale(0.95);
    }

    .nav-toggle.active {
        position: fixed;
        right: 1.5rem;
        top: 1.25rem;
        z-index: 12005;
        background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
        border-color: transparent;
        box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    }

    .nav-toggle.active span {
        background: var(--white);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
        transform: scale(0);
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Full-screen overlay with animated entrance */
    body.menu-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.4);
        backdrop-filter: blur(4px);
        z-index: 11990;
        animation: fadeIn 0.4s ease;
    }

    @keyframes fadeIn {
        from {
            opacity: 0;
            backdrop-filter: blur(0px);
        }

        to {
            opacity: 1;
            backdrop-filter: blur(4px);
        }
    }

    /* Prevent body scroll when menu is open */
    body.menu-open {
        overflow: hidden !important;
        position: fixed;
        width: 100%;
        height: 100vh;
    }

    /* Stagger animation for menu items */
    .nav-menu.active a {
        animation: slideInRight 0.4s ease backwards;
    }

    .nav-menu.active a:nth-child(1) {
        animation-delay: 0.1s;
    }

    .nav-menu.active a:nth-child(2) {
        animation-delay: 0.15s;
    }

    .nav-menu.active a:nth-child(3) {
        animation-delay: 0.2s;
    }

    .nav-menu.active a:nth-child(4) {
        animation-delay: 0.25s;
    }

    .nav-menu.active a:nth-child(5) {
        animation-delay: 0.3s;
    }

    .nav-menu.active a:nth-child(6) {
        animation-delay: 0.35s;
    }

    @keyframes slideInRight {
        from {
            opacity: 0;
            transform: translateX(30px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

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

/* Search form is already mobile-first, no changes needed */

/* Mobile styles for grids */
@media (max-width: 576px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Performance & SEO Optimizations */
.main-content {
    min-height: 100vh;
}

/* Critical Rendering Path Optimization */
.hero,
.stats-section,
.featured-properties {
    contain: layout style paint;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-icon {
        animation: none;
    }
}

/* Focus Styles for Accessibility */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {

    .navbar,
    .footer,
    .back-to-top,
    .hero-search,
    .cta-section {
        display: none;
    }

    body {
        font-size: 12pt;
        line-height: 1.4;
    }

    .property-card {
        break-inside: avoid;
        margin-bottom: 1rem;
    }
}

/* =======================
   MODERN REAL ESTATE ENHANCEMENTS
   ======================= */

/* Enhanced Property Cards */
.property-card {
    position: relative;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

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

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s ease;
    opacity: 0;
}

.property-image img.loaded {
    opacity: 1;
}

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

/* Modern Property Badges */
.property-badges {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    z-index: 10;
}

.property-badge {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge-sale {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.badge-rent {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.badge-top-pick {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4a 100%);
    color: #333;
    animation: pulse 2s infinite;
}

.badge-rating {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

/* Enhanced Property Actions */
.property-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
}

.property-card:hover .property-actions {
    opacity: 1;
    transform: translateX(0);
}

.action-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.action-btn.active {
    background: #e74c3c;
    color: white;
}

/* Enhanced Property Content */
.property-content {
    padding: 20px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    color: #666;
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 12px;
}

.feature i {
    color: var(--primary-color);
}

/* Property Highlights */
.property-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 15px;
}

.highlight {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    color: #155724;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Enhanced Price Section */
.property-price-section {
    margin-bottom: 15px;
}

.property-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.price-per-sqm {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

/* Enhanced View Details Button */
.view-details-btn {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.view-details-btn:hover::before {
    left: 100%;
}

.view-details-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.4);
}

/* Modern Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    color: #333;
    padding: 16px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 4px solid #10b981;
    backdrop-filter: blur(10px);
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification-success {
    border-left-color: #10b981;
}

.notification-error {
    border-left-color: #ef4444;
}

.notification i {
    font-size: 18px;
    color: #10b981;
}

.notification-error i {
    color: #ef4444;
}

/* Loading States */
.property-image img {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

.property-image img.loaded {
    animation: none;
    background: none;
}

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

    100% {
        background-position: -200% 0;
    }
}

/* Enhanced Grid Layout */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr));
    gap: 30px;
    padding: 20px 1rem;
    max-width: 100%;
    overflow-x: hidden;
}

/* Modern Search Enhancement */
.hero-search input:focus,
.search-field input:focus {
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    border-color: var(--primary-color);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .property-card {
        margin: 0;
        border-radius: 12px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        background: #ffffff !important;
        border: 1px solid #f0f0f0;
    }

    .property-card:hover {
        transform: none;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    }

    .property-image {
        height: 200px;
    }

    .property-content {
        padding: 1rem;
    }

    .property-title {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 0.5rem;
        color: #333 !important;
    }

    .property-title a {
        color: #333 !important;
        text-decoration: none;
    }

    .property-title a:hover {
        color: var(--primary-color) !important;
    }

    .property-price {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
        color: var(--primary-color) !important;
        font-weight: 700;
    }

    .property-location {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        color: #666 !important;
    }

    .property-location i {
        color: #666 !important;
    }

    .property-features {
        gap: 0.75rem;
        margin-bottom: 0.75rem;
        flex-wrap: wrap;
    }

    .property-features .feature {
        font-size: 0.85rem;
        gap: 0.3rem;
        color: #333 !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef;
    }

    .property-features .feature i {
        font-size: 0.9rem;
        color: var(--primary-color) !important;
    }

    .property-description {
        font-size: 0.9rem;
        line-height: 1.4;
        margin-bottom: 0.75rem;
        color: #666 !important;
    }

    .property-footer {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .property-amenities {
        justify-content: center;
        margin-bottom: 0.5rem;
    }

    .property-amenities .amenity {
        background: #f8f9fa !important;
        color: var(--primary-color) !important;
        border: 1px solid #e9ecef;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
        font-size: 0.8rem;
    }

    .property-link {
        width: 100%;
        justify-content: center;
        padding: 0.75rem;
        font-size: 0.95rem;
        background: var(--primary-color) !important;
        color: white !important;
        border-radius: 8px;
        text-decoration: none;
        font-weight: 500;
    }

    .property-link:hover {
        background: var(--primary-dark) !important;
        color: white !important;
    }

    .property-badges {
        top: 0.75rem;
        left: 0.75rem;
        right: auto;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.75rem;
        font-weight: 600;
        border-radius: 20px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .badge-sale {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
    }

    .badge-rent {
        background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
        color: white !important;
    }

    .badge-images {
        background: var(--primary-color) !important;
        color: white !important;
    }

    .property-overlay {
        display: none;
    }

    .notification {
        right: 10px;
        left: 10px;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .properties-grid {
        padding: 5px;
        gap: 10px;
    }

    .property-card {
        border-radius: 10px;
    }

    .property-image {
        height: 180px;
    }

    .property-content {
        padding: 0.875rem;
    }

    .property-title {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        color: #333 !important;
    }

    .property-title a {
        color: #333 !important;
    }

    .property-price {
        font-size: 1.15rem;
        color: var(--primary-color) !important;
        font-weight: 700;
    }

    .property-location {
        font-size: 0.85rem;
        color: #666 !important;
    }

    .property-features {
        gap: 0.5rem;
    }

    .property-features .feature {
        font-size: 0.8rem;
    }

    .property-description {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .property-link {
        padding: 0.65rem;
        font-size: 0.9rem;
    }
}

/* Premium Property Cards for Top Picks */
.property-card[data-property-id] .property-content {
    position: relative;
}

.property-card .badge-top-pick {
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

/* Verified Badge Enhancement */
.verification-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
    transition: all 0.3s ease;
}

.verification-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.verification-badge i {
    font-size: 0.875rem;
}

/* Property Footer Responsive Fix */
.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.property-verification {
    flex-shrink: 0;
}

/* Desktop specific adjustments */
@media (min-width: 769px) {
    .property-footer {
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
    }

    .verification-badge {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .view-details-btn {
        flex: 1;
        max-width: 140px;
    }
}

/* Performance Optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.property-card {
    contain: layout style;
    will-change: transform;
}

/* Enhanced Mobile Improvements */
@media (max-width: 768px) {

    /* Better touch targets */
    .nav-toggle {
        padding: 0.75rem;
        -webkit-tap-highlight-color: transparent;
        border-radius: 8px;
    }

    .search-btn-mobile,
    .view-details-btn,
    .btn-primary,
    .btn-outline,
    .action-btn {
        min-height: 48px;
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }

    /* Improved property cards on mobile */
    .property-card {
        margin: 0 0.5rem;
        box-shadow: var(--shadow-md);
    }

    .property-card:hover {
        transform: none;
        /* Disable hover transforms on mobile */
    }

    /* Better form inputs */
    .filter-select,
    .search-field input {
        min-height: 48px;
        font-size: 16px;
        /* Prevent iOS zoom */
    }

    /* Improve navigation */
    .nav-menu.active {
        backdrop-filter: blur(10px);
        background: rgba(255, 255, 255, 0.95);
    }

    /* Loading states */
    .loading-placeholder {
        padding: 3rem 1rem;
        text-align: center;
    }

    /* Hero section mobile fixes */
    .hero {
        min-height: 100vh;
        padding-top: 120px;
        /* Extra space for fixed navbar */
    }

    .page-hero {
        min-height: 360px;
        padding-top: 100px;
    }

    .hero-content {
        padding: 2rem 0 4rem;
    }

    .page-hero .hero-content {
        padding: 1.5rem 0 2.5rem;
    }

    /* Mobile: Video fills space with cover */
    .hero-background {
        object-fit: cover !important;
    }

    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }

    .hero-description {
        font-size: 1rem !important;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }

    .page-hero .hero-description {
        margin-bottom: 0;
    }

    .hero-badge {
        margin-bottom: 1.25rem;
        font-size: 0.82rem;
        padding: 0.6rem 1.1rem;
    }

    /* Search improvements */
    .hero-search {
        margin-top: 2rem;
        padding: 0 1rem;
    }

    .search-mobile {
        gap: 1rem;
    }
}

/* Enhanced Loading States */
.loading-placeholder {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 4rem 2rem;
}

.loading-content {
    text-align: center;
    max-width: 400px;
}

.loading-spinner {
    font-size: 3rem;
    color: var(--primary-color);
    animation: float 3s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.loading-placeholder h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.loading-placeholder p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.loading-progress {
    width: 100%;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 2px;
    animation: progress 2s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

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

    50% {
        width: 70%;
        transform: translateX(0%);
    }

    100% {
        width: 100%;
        transform: translateX(100%);
    }
}

/* Error States */
.error-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 4rem 2rem;
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.error-content h3 {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.error-content p {
    color: var(--gray-600);
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .property-card {
        border: 2px solid var(--gray-800);
    }

    .btn-primary {
        border: 2px solid var(--white);
    }
}

/* =======================
   LIST VIEW STYLES
   ======================= */

/* Properties List Container */
.properties-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

/* List View Property Cards */
.property-card-list {
    display: flex;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 200px;
}

.property-card-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

/* List View Image */
.property-card-list .property-image {
    flex-shrink: 0;
    width: 300px;
    height: 200px;
    position: relative;
}

.property-card-list .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* List View Content */
.property-card-list .property-content {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-card-list .property-header {
    margin-bottom: 1rem;
}

.property-card-list .property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.property-card-list .property-title {
    margin-bottom: 0.5rem;
}

.property-card-list .property-title a {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.property-card-list .property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.property-card-list .property-features {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.property-card-list .property-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex-grow: 1;
}

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

.property-card-list .property-amenities {
    display: flex;
    gap: 0.5rem;
}

.property-card-list .property-link {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-card-list .property-link:hover {
    background: var(--primary-dark);
    transform: translateX(4px);
}

/* List View Responsive */
@media (max-width: 768px) {
    .property-card-list {
        flex-direction: column;
        min-height: auto;
    }

    .property-card-list .property-image {
        width: 100%;
        height: 200px;
    }

    .property-card-list .property-content {
        padding: 1rem;
    }

    .property-card-list .property-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .property-card-list .property-amenities {
        justify-content: center;
    }

    .property-card-list .property-link {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .properties-list {
        padding: 0.5rem;
        gap: 1rem;
    }

    .property-card-list .property-content {
        padding: 0.75rem;
    }

    .property-card-list .property-price {
        font-size: 1.25rem;
    }

    .property-card-list .property-title a {
        font-size: 1.1rem;
    }
}

/* Remove borders from property images */
.property-image-link,
.property-image-link img,
.property-image img,
.property-card img {
    border: none !important;
    outline: none !important;
}