/* Landing Page Styles */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Typography - From Figma */
    --font-primary: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Primary Colors - From Figma */
    --primary-50: #E8EEF5;
    --primary-100: #CED6E1;
    --primary-400: #395A87;
    --primary-500: #083169;
    --primary-700: #051D3F;
    --primary-900: #020F20;
    --primary-blue: #083169;

    /* Secondary Colors - From Figma */
    --secondary-50: #F9ECD8;
    --secondary-100: #F5E0C0;
    --secondary-500: #D4A853;
    --secondary-600: #C49A4A;
    --primary-gold: #D4A853;

    /* Neutral Colors - From Figma */
    --neutral-50: #FFFFFF;
    --neutral-100: #F3F3F3;
    --neutral-200: #D7D7D7;
    --neutral-300: #C2C2C2;
    --neutral-500: #9A9A9A;
    --neutral-600: #868686;
    --neutral-700: #727272;
    --neutral-900: #494949;
    --neutral-950: #212121;

    /* Status Colors - From Figma */
    --for-sale-bg: #DCF0DB;
    --for-sale-text: #07C365;
    --for-rent-bg: #FEF3C7;
    --for-rent-text: #D97706;
    --sold-bg: #E5E7EB;
    --sold-text: #6B7280;

    /* Semantic Colors */
    --text-dark: #212121;
    --text-gray: #727272;
    --text-light: #9A9A9A;
    --bg-light: #F3F3F3;
    --bg-white: #FFFFFF;
    --border-color: #D7D7D7;

    /* Shadows - From Figma */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px rgba(8, 49, 105, 0.15);
    --shadow-card: 0px 16px 40px -8px rgba(112, 144, 176, 0.16);
    --shadow-feature: 0px 8px 24px -4px rgba(112, 144, 176, 0.12);

    /* Page Layout */
    --page-padding: 1.5rem;

    /* Border Radius - From Figma */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-card: 24px;
    --radius-image: 16px;
    --radius-button: 12px;
    --radius-badge: 8px;
}

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

.landing-wrapper {
    font-family: var(--font-primary);
    color: var(--text-dark);
    background: var(--bg-white);
    min-height: 100vh;
}

/* Header / Navbar */
.landing-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.landing-logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-blue);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.landing-logo img {
    height: 44px;
    width: auto;
}

.landing-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.landing-nav a {
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.2s;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.landing-nav a:hover {
    color: var(--primary-500);
}

.landing-nav a.active {
    color: var(--primary-500);
    font-weight: 600;
    border-bottom-color: var(--primary-500);
}

.landing-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--neutral-200);
    color: var(--neutral-600);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s;
}

.header-search-btn:hover {
    background: var(--neutral-100);
    color: var(--primary-500);
    border-color: var(--primary-500);
}

.header-divider {
    width: 1px;
    height: 24px;
    background: var(--neutral-200);
}

.btn-login {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--neutral-200);
    background: transparent;
    color: var(--neutral-900);
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-login:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
    background: var(--primary-50);
}

.btn-join {
    padding: 0.75rem 1.5rem;
    border: none;
    background: var(--primary-500);
    color: white;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.btn-join svg {
    width: 16px;
    height: 16px;
}

/* Hero Section */
.hero-section {
    position: relative;
    margin-top: 60px;
    padding: var(--page-padding);
    padding-bottom: 1.5rem;
    overflow: visible;
}

.hero-image-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
    height: clamp(400px, 50vh, 650px);
    border-radius: var(--radius-2xl);
    overflow: visible;
}

.hero-image-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-2xl);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 160px; /* Leave space for search box */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-text-box {
    position: relative;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 20px 60px 20px 60px;
    padding: 2.5rem 5rem;
    text-align: center;
    max-width: 950px;
    width: 90%;
}

/* Decorative dots on corners */
.hero-text-box::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--primary-500);
    border-radius: 50%;
    border: 2px solid white;
}

.hero-text-box::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: 80px;
    width: 12px;
    height: 12px;
    background: var(--primary-500);
    border-radius: 50%;
    border: 2px solid white;
}

.hero-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-family: 'DM Sans', 'Inter', sans-serif;
}

.hero-text h1 .highlight {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
}

.hero-text h1 .highlight svg,
.hero-text h1 .highlight img {
    width: 56px;
    height: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.hero-badge-left {
    position: absolute;
    left: 1.5rem;
    top: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--neutral-900);
    box-shadow: var(--shadow-md);
    writing-mode: horizontal-tb;
}

.hero-badge-right {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.625rem 1rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--neutral-900);
    box-shadow: var(--shadow-md);
}

/* Decorative Dots - Figma style */
.hero-dot {
    position: absolute;
    z-index: 4;
    width: 10px;
    height: 10px;
    background: var(--primary-blue);
    border-radius: 50%;
}

.hero-dot.dot-1 {
    top: 18%;
    left: 15%;
}

.hero-dot.dot-2 {
    top: 22%;
    right: 10%;
}

/* Search Box - Overlaps hero image via negative margin */
.hero-section .search-box {
    position: relative;
    z-index: 10;
    display: block;
    width: clamp(280px, 96%, 1400px);
    margin: clamp(-180px, -12vw, -70px) auto 0;
    padding: 2rem 3.5rem;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(134, 134, 134, 0.08);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    min-width: unset;
}

.search-row {
    display: flex;
    align-items: flex-end;
    gap: 1.5rem;
}

.search-field {
    flex: 1;
    min-width: 0;
}

.field-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--neutral-950);
    margin-bottom: 0.5rem;
    white-space: nowrap;
}

.field-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 0.875rem;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: border-color 0.2s;
}

.field-dropdown:hover {
    border-color: var(--primary-400);
}

.field-dropdown.open {
    border-color: var(--primary-500);
}

.field-value {
    font-size: 0.875rem;
    color: var(--neutral-950);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.field-value.placeholder {
    color: var(--neutral-500);
}

.dropdown-icon {
    flex-shrink: 0;
    color: var(--neutral-600);
    transition: transform 0.2s;
}

.field-dropdown.open .dropdown-icon {
    transform: rotate(180deg);
}

.dropdown-options {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--neutral-50);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
}

.dropdown-options .option {
    padding: 0.625rem 0.875rem;
    font-size: 0.875rem;
    color: var(--neutral-900);
    cursor: pointer;
    transition: background 0.15s;
}

.dropdown-options .option:hover {
    background: var(--neutral-100);
}

.dropdown-options .option.selected {
    background: var(--primary-50);
    color: var(--primary-500);
    font-weight: 500;
}

.search-btn {
    flex: 1;
    min-width: 0;
    padding: 0.625rem 1.5rem;
    background: var(--primary-500);
    color: white;
    border: 1px solid var(--primary-500);
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}

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

/* Section Styles */
.section {
    padding: 5rem var(--page-padding);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.section-title svg {
    color: var(--primary-gold);
}

.see-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.see-more:hover {
    text-decoration: underline;
}

/* Slider Navigation */
.slider-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.slider-arrow {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--neutral-200);
    background: var(--bg-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-600);
    transition: all 0.2s;
}

.slider-arrow:hover:not(:disabled) {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: white;
}

.slider-arrow:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neutral-200);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    padding: 0;
}

.pagination-dot.active {
    background: var(--primary-500);
    width: 24px;
    border-radius: 5px;
}

.pagination-dot:hover:not(.active) {
    background: var(--neutral-300);
}

/* Legacy (keep for backwards compat) */
.section-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

/* Listing Section */
.listing-section {
    padding-top: 4rem;
    margin-top: 0;
}

/* Property Cards - Matching Figma Design */
.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card-link:hover {
    text-decoration: none;
    color: inherit;
}

.property-card {
    background: var(--bg-white);
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 20px 50px -10px rgba(112, 144, 176, 0.25);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: var(--neutral-100);
    border-radius: var(--radius-image) var(--radius-image) 0 0;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.property-image-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

.image-dots {
    display: flex;
    gap: 0.375rem;
}

.image-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s;
}

.image-dots .dot.active {
    background: white;
    width: 20px;
    border-radius: 4px;
}

.days-ago {
    font-family: var(--font-primary);
    font-size: 0.75rem;
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.375rem 0.625rem;
    border-radius: var(--radius-badge);
    backdrop-filter: blur(4px);
}

/* Badge Colors per Figma */
.property-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-2xl);
    z-index: 2;
}

.property-badge.for-sale,
.property-badge:not(.for-rent):not(.sold) {
    background: var(--for-sale-bg);
    color: var(--for-sale-text);
}

.property-badge.for-rent,
.property-badge.lease {
    background: var(--for-rent-bg);
    color: var(--for-rent-text);
}

.property-badge.sold {
    background: var(--sold-bg);
    color: var(--sold-text);
}

/* Watch List Button - Figma Style */
.watch-list-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-2xl);
    font-family: var(--font-primary);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--primary-500);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 2;
    backdrop-filter: blur(8px);
    transition: all 0.2s;
}

.watch-list-btn:hover {
    background: white;
    transform: scale(1.02);
}

/* Watched/Saved state - filled icon style */
.watch-list-btn.watched {
    background: var(--primary-500);
    color: white;
}

.watch-list-btn.watched svg {
    color: white;
    fill: white;
}

.watch-list-btn.watched:hover {
    background: var(--primary-600);
}

.watch-list-btn svg {
    width: 14px;
    height: 14px;
    color: var(--primary-500);
}

.property-info {
    padding: 1rem 1.25rem 1.25rem;
}

.property-address {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    line-height: 1.4;
    color: var(--neutral-950);
    margin-bottom: 0.375rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-type {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--neutral-700);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}

.property-type svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    stroke-width: 1.5;
}

.property-price {
    font-family: var(--font-primary);
    font-weight: 700;
    color: var(--primary-500);
    font-size: 1.125rem;
}

.property-price span {
    font-weight: 400;
    color: var(--neutral-700);
    font-size: 0.875rem;
    margin-right: 0.25rem;
}

.property-features {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.875rem;
    padding-top: 0.875rem;
    border-top: 1px solid var(--neutral-200);
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--primary-500);
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.property-feature svg {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
    color: var(--neutral-600);
}

/* Feature separator */
.property-feature:not(:last-child)::after {
    content: '';
    display: inline-block;
    width: 1px;
    height: 14px;
    background: var(--neutral-200);
    margin-left: 0.75rem;
}

/* Why Trust Us Section - Matching Figma */
.trust-section {
    background: linear-gradient(180deg, var(--neutral-50) 0%, #F8FAFC 100%);
    padding: 5rem var(--page-padding);
}

.trust-content {
}

.trust-header {
    text-align: left;
    margin-bottom: 3rem;
}

.trust-header h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-500);
    margin-bottom: 1rem;
}

.trust-header h2::before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
    border-radius: var(--radius-sm);
}

.trust-header .trust-main-title {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--neutral-900);
    margin-bottom: 0.5rem;
}

.trust-header p {
    font-family: var(--font-primary);
    color: var(--neutral-600);
    max-width: 600px;
    font-size: 0.875rem;
    line-height: 1.6;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.trust-feature {
    background: var(--bg-white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-card);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s, box-shadow 0.2s;
}

.trust-feature:hover {
    transform: translateY(-4px);
    box-shadow: 0px 20px 50px -10px rgba(112, 144, 176, 0.25);
}

.trust-feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-500) 0%, var(--primary-400) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: white;
}

.trust-feature-icon img {
    width: 28px;
    height: 28px;
    filter: brightness(0) invert(1);
}

.trust-feature h3 {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-950);
    margin-bottom: 0.75rem;
}

.trust-feature p {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--neutral-600);
    line-height: 1.6;
}

.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    padding: 1rem 2.5rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-button);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.btn-get-started:hover {
    background: var(--primary-400);
    transform: translateY(-2px);
}

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

@media (max-width: 640px) {
    .trust-features {
        grid-template-columns: 1fr;
    }
}

/* Property Value Section */
.value-section {
    background: var(--bg-white);
    padding: 5rem var(--page-padding);
    position: relative;
}

.value-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-content h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0;
}

.value-subtitle {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-400);
    margin-bottom: 0;
}

.value-description {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--neutral-600);
    max-width: 600px;
}

.btn-calculate {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-500), var(--primary-400));
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    width: fit-content;
}

.btn-calculate:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Agent Team Section */
.agent-section {
    background: var(--bg-white);
}

.section-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.section-subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--neutral-600);
    max-width: 600px;
    line-height: 1.6;
}

.title-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-500), var(--secondary-600));
    border-radius: var(--radius-sm);
    margin-right: 0.5rem;
}

.agent-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.agent-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-card);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.agent-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 20px 50px -10px rgba(112, 144, 176, 0.25);
}

.agent-card-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: var(--radius-card);
    overflow: hidden;
    background: var(--neutral-200);
}

.agent-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.agent-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 2.5rem;
}

.agent-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 2rem 1rem 1rem;
}

.agent-card-info {
    text-align: left;
}

.agent-name {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--neutral-50);
    margin-bottom: 0.25rem;
}

.agent-title {
    font-family: var(--font-primary);
    color: var(--neutral-100);
    font-size: 0.875rem;
}

/* Statistics Section */
.stats-section {
    background: var(--bg-light);
    padding: 4rem var(--page-padding);
}

.stats-content {
}

.stats-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.stats-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-dark);
}

.stats-tabs {
    display: flex;
    gap: 0.5rem;
}

.stats-tab {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.875rem;
}

.stats-tab.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.stats-chart {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    min-height: 300px;
}

.stats-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    gap: 0.75rem;
}

.stats-placeholder p {
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    color: var(--neutral-700);
    margin: 0;
}

.stats-placeholder span {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    color: var(--neutral-500);
}

/* Footer */
.landing-footer {
    background: var(--primary-blue);
    color: white;
    padding: 4rem var(--page-padding) 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 2.5rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.footer-brand p {
    opacity: 0.8;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-column h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

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

.footer-column a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9375rem;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

.footer-middle {
    margin: 2rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    min-width: 200px;
}

.footer-search svg {
    opacity: 0.7;
}

.footer-search input {
    background: transparent;
    border: none;
    color: white;
    font-size: 0.875rem;
    outline: none;
    width: 100%;
}

.footer-search input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

.footer-social span {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-bottom {
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
    opacity: 0.7;
}

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

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.2s;
}

.social-link img {
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.2s;
}

.social-link:hover img {
    opacity: 1;
}

.social-link.facebook:hover {
    background: #1877F2;
}

.social-link.twitter:hover {
    background: #000000;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

/* Bottom Navigation (Mobile) */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-top: 1px solid var(--neutral-200);
    padding: 0.375rem 0 calc(0.375rem + env(safe-area-inset-bottom));
    z-index: 100;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
}

.bottom-nav-items {
    display: flex;
    justify-content: space-around;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    color: var(--neutral-500);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.bottom-nav-item:hover {
    color: var(--primary-blue);
}

.bottom-nav-item.active {
    color: var(--primary-blue);
}

.bottom-nav-item.active::after {
    content: '';
    position: absolute;
    top: -0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 0 0 2px 2px;
}

.bottom-nav-item svg {
    width: 22px;
    height: 22px;
}

/* Mobile Hamburger Button */
.mobile-hamburger {
    display: none;
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--neutral-700);
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

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

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}

/* Mobile Menu Drawer */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-white);
    z-index: 200;
    transition: left 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.15);
}

.mobile-menu-drawer.open {
    left: 0;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--neutral-200);
}

.mobile-menu-close {
    background: transparent;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    color: var(--neutral-600);
    border-radius: var(--radius-sm);
}

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

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    padding: 1rem 0;
    flex: 1;
}

.mobile-menu-links a {
    padding: 0.875rem 1.5rem;
    color: var(--neutral-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: background 0.2s, color 0.2s;
}

.mobile-menu-links a:hover,
.mobile-menu-links a.active {
    background: var(--primary-50);
    color: var(--primary-500);
}

.mobile-menu-actions {
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--neutral-200);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-user-email {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-align: center;
}

/* Map Search Floating Button */
.map-search-btn {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 4px 20px rgba(26, 54, 93, 0.35);
    z-index: 95;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.map-search-btn:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 25px rgba(26, 54, 93, 0.45);
    background: #2d4a7c;
}

.map-search-btn svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 1024px) {
    .search-box {
        width: clamp(280px, 88%, 1200px);
        padding: 1.25rem 1.5rem;
    }

    .search-row {
        gap: 0.75rem;
    }

    .search-field {
        min-width: 140px;
    }

    .field-label {
        font-size: 0.75rem;
    }

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

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text-box {
        padding: 2rem 3rem;
    }

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

    .agent-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .agent-name {
        font-size: 1rem;
    }

}

@media (max-width: 768px) {
    .landing-header {
        padding: 0.75rem 1rem;
    }

    .landing-nav {
        display: none;
    }

    .mobile-hamburger {
        display: flex;
    }

    .landing-header-actions .btn-login,
    .landing-header-actions .btn-join,
    .landing-header-actions .header-divider,
    .landing-header-actions > span {
        display: none;
    }

    :root {
        --page-padding: 1rem;
    }

    .hero-image-container {
        height: 500px;
    }

    .hero-overlay {
        bottom: 180px;
    }

    .hero-text-box {
        padding: 1.5rem 2rem;
        border-radius: 16px 40px 16px 40px;
    }

    .hero-text-box::before,
    .hero-text-box::after {
        width: 10px;
        height: 10px;
    }

    .hero-text h1 {
        font-size: 1.25rem;
    }

    .hero-text h1 .highlight svg,
    .hero-text h1 .highlight img {
        width: 40px;
        height: 28px;
    }

    .hero-badge-left,
    .hero-badge-right {
        font-size: 0.6875rem;
        padding: 0.5rem 0.75rem;
    }

    .search-box {
        width: 92%;
        padding: 1rem;
        border-radius: var(--radius-xl);
    }

    .search-row {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .search-field {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 140px;
    }

    .search-btn {
        flex: 1 1 100%;
        padding: 0.75rem;
        min-height: 48px;
        font-size: 1rem;
    }

    .field-dropdown {
        padding: 0.75rem 1rem;
        min-height: 44px;
    }

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

    .trust-header h2 {
        font-size: 1.0625rem;
    }

    .trust-header .trust-main-title {
        font-size: 1rem;
    }

    .value-content h2 {
        font-size: 1.5rem;
    }

    .value-subtitle {
        font-size: 1rem;
    }

    .stats-title {
        font-size: 1.0625rem;
    }

    .section {
        padding: 2.5rem var(--page-padding);
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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

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

    .trust-features {
        grid-template-columns: 1fr;
    }

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

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

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-column h4 {
        font-size: 0.9375rem;
        margin-bottom: 0.75rem;
    }

    .footer-column a {
        font-size: 0.875rem;
    }

    .footer-middle {
        flex-direction: column;
        text-align: center;
    }

    .footer-search {
        width: 100%;
        max-width: 300px;
    }

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

    .bottom-nav {
        display: block;
    }

    .map-search-btn {
        bottom: 5rem;
    }

    .landing-footer {
        padding: 2.5rem 1.25rem 6rem;
    }

    /* Adjust for mobile bottom nav */
    body {
        padding-bottom: 60px;
    }
}

/* Small phones */
@media (max-width: 480px) {
    :root {
        --page-padding: 0.5rem;
    }

    .hero-section {
        padding-bottom: 4rem;
    }

    .hero-image-container {
        height: 400px;
        border-radius: var(--radius-xl);
    }

    .hero-image-container > img {
        border-radius: var(--radius-xl);
    }

    .hero-overlay {
        bottom: 140px;
    }

    .hero-text-box {
        padding: 1rem 1.25rem;
        border-radius: 12px 30px 12px 30px;
    }

    .hero-text h1 {
        font-size: 1.05rem;
        line-height: 1.5;
    }

    .hero-text h1 .highlight svg,
    .hero-text h1 .highlight img {
        width: 32px;
        height: 22px;
    }

    .hero-badge-left,
    .hero-badge-right {
        display: none;
    }

    .search-box {
        width: 96%;
        padding: 0.875rem;
    }

    .search-field {
        flex: 1 1 100%;
    }

    .field-label {
        font-size: 0.6875rem;
    }

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

    .agent-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .value-content h2 {
        font-size: 1.25rem;
    }

    .value-subtitle {
        font-size: 0.9375rem;
    }

    .section {
        padding: 2rem var(--page-padding);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

}


/* ========================================
   Modal Overlay
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

/* ========================================
   Advanced Filters Modal
   ======================================== */
.filters-modal {
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.filters-header {
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--neutral-200);
    gap: 1rem;
}

.filters-header h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-500);
    margin: 0;
    flex: 1;
}

.filters-header h2 svg {
    color: var(--primary-500);
}

.btn-reset-filters {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--primary-500);
    border-radius: var(--radius-lg);
    color: var(--primary-500);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-filters:hover {
    background: var(--primary-500);
    color: white;
}

.btn-close-modal {
    background: transparent;
    border: none;
    padding: 0.25rem;
    cursor: pointer;
    color: var(--neutral-600);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.btn-close-modal:hover {
    background: var(--neutral-100);
}

.filters-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-950);
    margin-bottom: 0.75rem;
}

.filter-search-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    background: var(--neutral-50);
}

.filter-search-input svg {
    color: var(--neutral-500);
    flex-shrink: 0;
}

.filter-search-input input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 0.875rem;
    outline: none;
}

.btn-clear-input {
    background: transparent;
    border: none;
    color: var(--neutral-500);
    font-size: 0.75rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}

.btn-clear-input:hover {
    color: var(--primary-500);
}

/* Checkboxes */
.filter-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--neutral-900);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--neutral-300);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.checkbox-item.checked .checkmark {
    background: var(--primary-500);
    border-color: var(--primary-500);
}

.checkbox-item.checked .checkmark::after {
    content: '';
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    margin-bottom: 2px;
}

/* Range Inputs */
.filter-range-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.filter-range-inputs input {
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--neutral-50);
}

.filter-range-inputs input:focus {
    outline: none;
    border-color: var(--primary-500);
}

/* Quick Options */
.filter-quick-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.quick-option {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    color: var(--primary-gold);
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-option:hover,
.quick-option.active {
    background: var(--primary-gold);
    color: white;
}

/* ============================================================
   Welcome Overlay (shown on first load of each session)
   ============================================================ */
.welcome-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(5, 29, 63, 0.5);
    animation: welcomeFadeIn 0.4s ease;
}

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

.welcome-modal {
    display: flex;
    flex-direction: column;
    width: 380px;
    max-width: calc(100vw - 2rem);
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    animation: welcomeSlideUp 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

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

/* Header */
.welcome-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem 1rem;
}

.welcome-title {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

.welcome-close-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--neutral-100);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: var(--neutral-700);
    transition: background 0.15s;
    flex-shrink: 0;
}

.welcome-close-btn:hover {
    background: var(--neutral-200);
}

.welcome-divider {
    margin: 0;
    border: none;
    border-top: 1px solid var(--border-color);
}

/* Video */
.welcome-video-container {
    width: 100%;
    background: #f5f5f5;
    overflow: hidden;
    position: relative;
}

.welcome-video {
    width: 100%;
    max-height: 56vh;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.welcome-mute-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.15s;
}

.welcome-mute-btn:hover {
    background: rgba(0, 0, 0, 0.65);
}

/* Buttons */
.welcome-buttons {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem;
}

.welcome-btn {
    flex: 1;
    padding: 0.8125rem 1rem;
    border-radius: 10px;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.18s, transform 0.18s;
    text-align: center;
}

.welcome-btn:hover  { opacity: 0.88; transform: translateY(-1px); }
.welcome-btn:active { transform: translateY(0); }

.welcome-btn-login {
    background: #ffffff;
    color: var(--primary-blue);
    border: 1.5px solid var(--primary-blue);
}

.welcome-btn-ai {
    background: var(--primary-blue);
    color: #ffffff;
    border: 1.5px solid var(--primary-blue);
}

/* ---- Mobile ---- */
@media (max-width: 480px) {
    .welcome-modal {
        width: calc(100vw - 2rem);
        border-radius: 16px;
    }

    .welcome-video-container {
        max-height: 44vh;
    }

    .welcome-buttons {
        flex-direction: column;
        padding: 1rem;
        gap: 0.625rem;
    }

    .welcome-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
}

/* Number Buttons */
.filter-number-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.number-btn {
    padding: 0.5rem 0.875rem;
    background: var(--neutral-100);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    color: var(--neutral-700);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all 0.2s;
}

.number-btn:hover {
    border-color: var(--primary-400);
    color: var(--primary-500);
}

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

/* Filter Select */
.filter-select select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    color: var(--neutral-700);
    background: var(--neutral-50);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23727272' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

.filter-select select:focus {
    outline: none;
    border-color: var(--primary-500);
}

.filter-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: var(--neutral-50);
}

.filter-input:focus {
    outline: none;
    border-color: var(--primary-500);
}

/* Filters Footer */
.filters-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

.btn-show-properties {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-show-properties:hover {
    background: var(--primary-400);
}

.btn-save-filters {
    flex: 1;
    padding: 0.875rem 1.5rem;
    background: var(--neutral-100);
    color: var(--primary-500);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-save-filters:hover {
    background: var(--primary-50);
    border-color: var(--primary-400);
}

/* ========================================
   Saved Filters Modal
   ======================================== */
.saved-filters-modal {
    background: var(--neutral-50);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 340px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.saved-filters-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--neutral-200);
}

.saved-filters-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-950);
    margin: 0;
}

.collection-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
}

.collection-header span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.btn-new-collection {
    background: transparent;
    border: none;
    color: var(--primary-500);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
}

.saved-collections-list {
    padding: 0 1.25rem 1.25rem;
}

.collection-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: var(--neutral-100);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
}

.collection-item:last-child {
    margin-bottom: 0;
}

.collection-name {
    font-size: 0.875rem;
    color: var(--neutral-900);
}

.btn-apply-collection {
    background: transparent;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius-sm);
    padding: 0.375rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neutral-600);
    transition: all 0.2s;
}

.btn-apply-collection:hover {
    border-color: var(--primary-500);
    color: var(--primary-500);
}

.no-collections {
    text-align: center;
    color: var(--neutral-500);
    font-size: 0.875rem;
    padding: 1rem;
}

/* New Collection Form */
.new-collection-form {
    padding: 1.25rem;
}

.new-collection-form .form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.new-collection-form .form-header span {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--neutral-950);
}

.btn-save-collection {
    padding: 0.5rem 1rem;
    background: var(--primary-500);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-save-collection:hover:not(:disabled) {
    background: var(--primary-400);
}

.btn-save-collection:disabled {
    background: var(--neutral-300);
    cursor: not-allowed;
}

.new-collection-form label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--neutral-700);
    margin-bottom: 0.5rem;
}

.new-collection-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.new-collection-form input:focus {
    outline: none;
    border-color: var(--primary-500);
}

/* Mobile Responsive for Modals */
@media (max-width: 768px) {
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }

    .filters-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }

    .saved-filters-modal {
        max-width: 100%;
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    padding: 12px 20px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideIn 0.3s ease-out;
}

.toast-notification.success {
    background-color: #10b981;
    color: white;
}

.toast-notification.error {
    background-color: #ef4444;
    color: white;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toast-content svg {
    flex-shrink: 0;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.watch-list-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.watch-list-btn .spinning {
    animation: spin 1s linear infinite;
}

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