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

:root {
    --primary: #1E3A5F;
    --primary-light: #2563EB;
    --primary-dark: #152D4A;
    --primary-glow: rgba(30, 58, 95, 0.35);
    --secondary: #0C1222;
    --secondary-light: #162032;
    --accent: #D4A853;
    --accent-warm: #E8522E;
    --accent-gold: #D4A853;
    --success: #10B981;
    --text-dark: #111827;
    --text-body: #374151;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;
    --white: #ffffff;
    --bg-main: #F8F9FA;
    --bg-light: #F1F3F5;
    --bg-dark: #080D14;
    --bg-card: #ffffff;
    --glass: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-dark: rgba(12, 18, 34, 0.94);
    --shadow-xs: 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 24px 48px rgba(0, 0, 0, 0.10);
    --shadow-xl: 0 32px 64px rgba(0, 0, 0, 0.14);
    --shadow-glow: 0 0 40px rgba(212, 168, 83, 0.15);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 999px;
    --transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-fast: all 0.2s ease;
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}


/* ==================== RESET & BASE ==================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-dark);
    line-height: 1.7;
    overflow-x: hidden;
    font-size: 16px;
}

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

ul {
    list-style: none;
}

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

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 24px 0;
    background: transparent;
}

.navbar.scrolled {
    padding: 16px 0;
    background: var(--glass-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-dark);
    position: relative;
    z-index: 10;
}

.brand img {
    height: 40px;
    transition: var(--transition);
}

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

.brand-text {
    background: linear-gradient(135deg, var(--primary), var(--accent-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.logo-symbol {
    width: 34px;
    height: 34px;
}

.desktop-menu {
    display: flex;
    gap: 6px;
    align-items: center;
}

.nav-item {
    position: relative;
    padding: 8px 0;
}

.nav-link {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-link:hover {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    color: var(--accent-gold);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ==================== BUTTONS ==================== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    letter-spacing: -0.01em;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.15));
    opacity: 0;
    transition: var(--transition);
}

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

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

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

.btn-outline {
    background: transparent;
    border: 2px solid rgba(30, 58, 95, 0.2);
    color: var(--primary);
    padding: 11px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(30, 58, 95, 0.06);
    transform: translateY(-2px);
    color: var(--primary);
}

.btn-white {
    background: white;
    color: var(--primary);
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* ==================== HERO SECTION ==================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, #0C1222 0%, #152D4A 50%, #1E3A5F 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(12, 18, 34, 0.3) 0%,
            rgba(12, 18, 34, 0.5) 40%,
            rgba(12, 18, 34, 0.8) 100%);
    z-index: 1;
}

.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: center;
    color: white;
    padding: 130px 24px 90px;
    max-width: 950px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(212, 168, 83, 0.12) !important;
    border: 1px solid rgba(212, 168, 83, 0.25) !important;
    padding: 10px 24px !important;
    border-radius: var(--radius-full) !important;
    backdrop-filter: blur(20px) !important;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.2rem) !important;
    font-weight: 800 !important;
    margin: 24px 0 !important;
    line-height: 1.12 !important;
    letter-spacing: -1.5px !important;
    background: linear-gradient(180deg, #ffffff 30%, rgba(255, 255, 255, 0.75) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem !important;
    color: rgba(255, 255, 255, 0.55) !important;
    max-width: 560px;
    margin: 0 auto !important;
    font-weight: 400;
    line-height: 1.7;
}

/* Hero Search Box */
.search-box {
    margin-top: 48px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    padding: 8px !important;
    border-radius: var(--radius-full) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    max-width: 720px !important;
    width: 92% !important;
    display: inline-flex !important;
}

.search-box form {
    display: flex;
    width: 100%;
    gap: 8px;
    align-items: center;
}

.search-box input {
    width: 100%;
    border: none !important;
    background: transparent !important;
    padding: 12px 16px !important;
    font-size: 1rem !important;
    outline: none !important;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

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

.search-box select {
    border: none !important;
    background: transparent !important;
    font-weight: 600 !important;
    outline: none !important;
    font-size: 0.9rem !important;
    color: var(--text-dark) !important;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    appearance: none;
    padding-right: 16px;
}

/* ==================== SECTIONS ==================== */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
    position: relative;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 20px;
    padding: 8px 20px;
    background: rgba(212, 168, 83, 0.1);
    border: 1px solid rgba(212, 168, 83, 0.15);
    border-radius: var(--radius-full);
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--secondary);
    letter-spacing: -1.5px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ==================== PROPERTY CARDS ==================== */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 28px;
}

.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.04), 0 20px 40px -10px rgba(0, 0, 0, 0.03);
    transition: var(--transition-bounce);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(212, 168, 83, 0.1);
    border-color: rgba(212, 168, 83, 0.2);
}

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

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.33, 1, 0.68, 1);
}

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

.card-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(12, 18, 34, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-price-badge {
    position: absolute;
    bottom: 16px;
    left: 16px;
    background: linear-gradient(135deg, var(--accent-gold), #B98E3A);
    color: var(--secondary);
    padding: 10px 22px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px -5px rgba(212, 168, 83, 0.4);
    letter-spacing: -0.01em;
    z-index: 10;
}

.card-content {
    padding: 24px;
}

.card-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--secondary);
    letter-spacing: -0.02em;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-features {
    display: flex;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--bg-light);
    font-size: 0.85rem;
    color: var(--text-light);
}

.card-features .feature {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* ==================== CATEGORIES GRID ==================== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.category-card {
    display: block;
    text-decoration: none;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition-bounce);
    box-shadow: var(--shadow-sm);
}

.category-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.category-img-wrapper {
    position: relative;
    height: 240px !important;
    overflow: hidden;
}

.category-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.category-card:hover .category-img {
    transform: scale(1.12);
}

.category-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(15, 15, 35, 0.9), rgba(15, 15, 35, 0.1) 80%, transparent);
    padding: 24px 20px 20px;
    color: white;
}

.category-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.category-count {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* ==================== AGENTS GRID ==================== */
.agents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
}

.agent-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 40px 24px 32px;
    text-align: center;
    transition: var(--transition-bounce);
    border: 1px solid rgba(30, 58, 95, 0.06);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    opacity: 0.08;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(30, 58, 95, 0.15);
}

.agent-img-wrapper {
    width: 110px;
    height: 110px;
    margin: 0 auto 20px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    position: relative;
    z-index: 1;
}

.agent-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

.agent-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 4px;
    letter-spacing: -0.02em;
}

.agent-email {
    color: var(--text-light);
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.agent-properties {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.agent-info {
    position: relative;
    z-index: 1;
}

/* ==================== CITY CARDS ==================== */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.city-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: block;
    box-shadow: var(--shadow-md);
    transition: var(--transition-bounce);
    height: 280px !important;
}

.city-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.city-card img {
    transition: transform 0.8s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.city-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 15, 35, 0.9), rgba(15, 15, 35, 0.1) 70%, transparent) !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px !important;
}

/* ==================== STATISTICS SECTION ==================== */
.stats-section {
    background: linear-gradient(135deg, var(--secondary) 0%, #162032 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat-item {
    position: relative;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--white) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
    line-height: 1;
    margin-bottom: 8px;
}

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

/* ==================== CTA SECTION ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 50%, #0C1222 100%);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.15), transparent 70%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(212, 168, 83, 0.1), transparent 70%);
    pointer-events: none;
}

/* ==================== FAQ SECTION ==================== */
.faq-section {
    padding: 100px 0;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    margin-bottom: 12px;
    border: 1px solid rgba(30, 58, 95, 0.06);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-xs);
}

.faq-item:hover {
    border-color: rgba(30, 58, 95, 0.15);
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: rgba(30, 58, 95, 0.2);
    box-shadow: var(--shadow-md);
}

.faq-question {
    padding: 22px 28px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--secondary);
    transition: var(--transition);
    user-select: none;
}

.footer-dark a:hover {
    color: var(--accent-gold);
    transform: translateX(4px);
}

.footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.footer-social-link:hover {
    background: var(--accent-gold);
    color: var(--secondary);
    border-color: var(--accent-gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px -5px rgba(212, 168, 83, 0.4);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 28px 22px;
    color: var(--text-body);
    line-height: 1.8;
    font-size: 0.95rem;
}

/* ==================== FOOTER ==================== */
.footer-dark {
    background: var(--bg-dark);
    color: #fff;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.footer-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(30, 58, 95, 0.08), transparent 70%);
    pointer-events: none;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    letter-spacing: -0.02em;
}

.footer-links-group ul li {
    margin-bottom: 12px;
}

.footer-links-group ul li a {
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
    font-size: 0.9rem;
    font-weight: 400;
}

.footer-links-group ul li a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.85rem;
    position: relative;
}

/* ==================== DROPDOWN ==================== */
.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1001;
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.dropdown-link {
    display: block;
    padding: 10px 16px;
    color: var(--text-body);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition-fast);
    border-radius: var(--radius-sm);
}

.dropdown-link:hover {
    background: rgba(30, 58, 95, 0.06);
    color: var(--primary);
    transform: translateX(4px);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: rgba(30, 58, 95, 0.06);
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: var(--transition);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.hamburger-line:nth-child(1) {
    top: 12px;
}

.hamburger-line:nth-child(2) {
    top: 19px;
}

.hamburger-line:nth-child(3) {
    top: 26px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    top: 19px;
    transform: translateX(-50%) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    top: 19px;
    transform: translateX(-50%) rotate(-45deg);
}

.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 35, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    height: 100vh;
    background: white;
    z-index: 1000;
    padding: 80px 24px 24px;
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 14px 16px;
    font-size: 1.1rem;
    color: var(--secondary) !important;
    font-weight: 600;
    border-bottom: 1px solid var(--bg-light);
}

.mobile-menu .btn-primary {
    width: 100%;
    margin-top: 16px;
    padding: 14px;
}

/* ==================== PAGINATION ==================== */
.pagination-wrapper {
    margin-top: 48px;
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 6px;
    list-style: none;
}

.pagination .page-item .page-link {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(30, 58, 95, 0.1);
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    text-decoration: none;
}

.pagination .page-item .page-link:hover {
    background: rgba(30, 58, 95, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 95, 0.3);
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 24px;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-success {
    background: rgba(0, 196, 140, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 196, 140, 0.2);
}

.alert-danger {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-warm);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* ==================== FORM STYLES ==================== */
.form-control {
    width: 100%;
    padding: 14px 18px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.5;
    color: var(--text-dark);
    background-color: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

/* ==================== SCROLL ANIMATIONS ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.1);
    }
}

@keyframes float {

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

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

@keyframes floatSlow {

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

    50% {
        transform: translateY(-20px) rotate(3deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade {
    animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.scroll-animate {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}




/* ==================== NO RESULTS ==================== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
}

.no-results h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 16px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .listings-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

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

    .mobile-menu {
        display: block;
    }

    .mobile-menu-overlay {
        display: block;
    }

    .nav-right .auth-buttons {
        display: none;
    }

    .nav-right a.btn-primary {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem !important;
        letter-spacing: -1px !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .search-box {
        border-radius: var(--radius) !important;
        flex-direction: column !important;
    }

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

    .search-box select {
        width: 100%;
        padding: 12px !important;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .listings-grid {
        grid-template-columns: 1fr;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .agents-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .stat-number {
        font-size: 2.2rem;
    }

    .property-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 85vh;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .category-img-wrapper {
        height: 160px !important;
    }
}

/* ==================== LOADING SKELETON ==================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-light) 25%, #e8e8f4 50%, var(--bg-light) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}

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

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

/* ==================== FILTER BAR ==================== */
.filter-bar {
    background: var(--bg-card);
    padding: 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.filter-bar form {
    display: flex;
    gap: 12px;
    width: 100%;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    flex: 1;
    min-width: 160px;
    padding: 12px 16px;
    border: 2px solid transparent;
    background: var(--bg-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    outline: none;
    transition: var(--transition);
}

.filter-bar input:focus,
.filter-bar select:focus {
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

/* ==================== GALLERY ==================== */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 200px;
    gap: 8px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.gallery-grid .gallery-item:first-child {
    grid-row: 1 / -1;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-grid .gallery-item {
    overflow: hidden;
    position: relative;
    cursor: pointer;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
}

::-webkit-scrollbar-thumb {
    background: rgba(30, 58, 95, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(30, 58, 95, 0.4);
}

/* ==================== BACK TO TOP ==================== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

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

/* ==================== PAGE HEADER ==================== */
.page-header {
    background: linear-gradient(160deg, #0C1222 0%, #152D4A 50%, #1E3A5F 100%);
    padding: 120px 24px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(212, 168, 83, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(30, 58, 95, 0.12) 0%, transparent 50%);
    pointer-events: none;
}

.page-header h1 {
    color: white;
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.page-header p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    position: relative;
    margin-top: 16px;
}

.breadcrumb a {
    color: var(--primary-light);
    font-weight: 500;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.3);
}

/* ==================== FILTER BAR ==================== */
.filter-bar {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    border: 1px solid rgba(30, 58, 95, 0.06);
}

.filter-bar form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-bar input,
.filter-bar select {
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.9rem;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
    min-width: 140px;
    flex: 1;
}

.filter-bar input:focus,
.filter-bar select:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

.filter-bar input {
    flex: 2;
    min-width: 200px;
}

/* ==================== FORM STYLES ==================== */
.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-control {
    width: 100%;
    background: var(--bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.95rem;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    background: white;
    box-shadow: 0 0 0 4px rgba(30, 58, 95, 0.1);
}

textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

/* ==================== NO RESULTS ==================== */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.no-results h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--secondary);
    margin-top: 12px;
    margin-bottom: 8px;
}

/* ==================== ALERTS ==================== */
.alert {
    padding: 16px 24px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.alert-success {
    background: rgba(0, 196, 140, 0.1);
    color: var(--success);
    border: 1px solid rgba(0, 196, 140, 0.2);
}

.alert-danger {
    background: rgba(255, 107, 107, 0.1);
    color: var(--accent-warm);
    border: 1px solid rgba(255, 107, 107, 0.2);
}

/* ==================== PROPERTY DETAIL LAYOUT ==================== */
@media (max-width: 900px) {
    .property-grid {
        grid-template-columns: 1fr !important;
    }

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

/* ==================== PAGINATION FIX ==================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.pagination-wrapper .pagination {
    display: flex;
    gap: 6px;
    list-style: none;
    padding: 0;
}

.pagination-wrapper .page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-body);
    border: 1px solid var(--bg-light);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}

.pagination-wrapper .page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border-color: transparent;
    box-shadow: var(--shadow-md);
}

.pagination-wrapper .page-item .page-link:hover {
    background: var(--bg-light);
    color: var(--primary);
}

.pagination-wrapper .page-item.disabled .page-link {
    opacity: 0.4;
    pointer-events: none;
}

/* ==================== RESPONSIVE REFINEMENTS ==================== */
@media (max-width: 992px) {
    .hero-split {
        flex-direction: column;
        text-align: center;
        padding-top: 100px;
    }

    .hero-badge {
        margin: 0 auto 20px;
    }

    .search-box-premium {
        margin: 40px auto 0;
        max-width: 100%;
    }

    .trending-tags {
        justify-content: center;
    }

    .trust-indicators {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }
}

@media (max-width: 768px) {
    .search-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .search-inputs {
        grid-template-columns: 1fr;
    }

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

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .cities-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .filter-bar form {
        flex-direction: column;
    }

    .filter-bar input,
    .filter-bar select {
        min-width: 100%;
    }

    .listings-grid {
        grid-template-columns: 1fr !important;
    }

    .agents-grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
    }
}