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



* {
    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;
    overflow-x: hidden;
}


.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 ────────────────────────────────── */
.hero-section {
    position: relative;
    margin-top: 60px;
    padding: var(--page-padding);
    padding-bottom: 2rem;
    overflow: visible;
}

.hero-image-container {
    position: relative;
    width: 100%;
    height: clamp(380px, 48vh, 600px);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.hero-image-container > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,25,50,0.15) 0%, rgba(15,25,50,0.65) 100%);
    border-radius: var(--radius-2xl);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-heading {
    font-size: clamp(1.75rem, 3.5vw, 2.75rem);
    font-weight: 700;
    color: white;
    text-align: center;
    line-height: 1.25;
    margin: 0;
    text-shadow: 0 2px 16px rgba(0,0,0,0.4);
    max-width: 820px;
}

/* ── Search card ─────────────────────────── */
.search-card {
    position: relative;
    z-index: 10;
    width: clamp(280px, 96%, 1300px);
    margin: clamp(-140px, -10vw, -60px) auto 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 32px rgba(0,0,0,0.14);
    border: 1px solid rgba(0,0,0,0.06);
    direction: ltr;
    padding: 1.125rem 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Tabs row */
.search-tabs-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-tabs-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.s-tab {
    padding: 0.375rem 1.125rem;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.18s;
}

.s-tab.active {
    background: #1B3A6B;
    color: white;
    font-weight: 600;
}

.s-tab:not(.active):hover { color: #1B3A6B; }

.advanced-filters-link {
    font-size: 0.875rem;
    color: #1B3A6B;
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    white-space: nowrap;
}

.advanced-filters-link:hover { text-decoration: underline; }

/* Controls row — separate bordered boxes */
.search-controls-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* Desktop: filter fields are inline in the controls row */
.search-filters-row {
    display: contents;
}

.search-input-wrap {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex: 2.5;
    padding: 0 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    min-width: 0;
    background: white;
    transition: border-color 0.2s;
}

.search-input-wrap:focus-within { border-color: #1B3A6B; }
.search-input-wrap svg { flex-shrink: 0; }

.search-city-input {
    flex: 1;
    padding: 0.75rem 0;
    border: none;
    outline: none;
    font-size: 0.9375rem;
    color: #1e293b;
    background: transparent;
    min-width: 0;
}

.search-city-input::placeholder { color: #94a3b8; }

.search-divider {
    width: 1px;
    height: 32px;
    background: #e2e8f0;
    flex-shrink: 0;
}

.sf-field {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.75rem 0.875rem;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    min-width: 120px;
    background: white;
    transition: border-color 0.2s;
}

.sf-field:hover { border-color: #94a3b8; }
.sf-field.open  { border-color: #1B3A6B; }

.sf-field svg {
    flex-shrink: 0;
    color: #94a3b8;
    transition: transform 0.2s;
}

.sf-field.open svg { transform: rotate(180deg); }

.sf-ph {
    font-size: 0.875rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sf-val {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.sf-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 200px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 300;
    overflow: hidden;
}

.sf-opt {
    padding: 0.6875rem 1.125rem;
    font-size: 0.875rem;
    color: #334155;
    cursor: pointer;
    transition: background 0.15s;
}

.sf-opt:hover { background: #f8fafc; }
.sf-opt.sel   { background: #eff6ff; color: #1B3A6B; font-weight: 600; }

.sf-clear {
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}

.sf-clear:hover { color: #475569; background: #f1f5f9; }

.sf-mobile-backdrop { display: none; }

.search-go-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.375rem;
    background: #1B3A6B;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.search-go-btn:hover { background: #163060; }

.search-btn-full { display: none; }
.search-btn-short { display: inline; }

/* Popular row */
.popular-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    padding-top: 0.125rem;
}

.popular-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.popular-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.18s;
    text-decoration: none;
}

.popular-chip svg { color: #94a3b8; flex-shrink: 0; }
.popular-chip:hover { border-color: #1B3A6B; color: #1B3A6B; background: #eff6ff; }
.popular-chip:hover svg { color: #1B3A6B; }
.popular-chip.active { border-color: #1B3A6B; background: #1B3A6B; color: white; }
.popular-chip.active svg { color: white; }

/* Advanced filters panel */
.advanced-filters-panel {
    border-top: 1px solid #f1f5f9;
    padding-top: 0.875rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.af-row {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.af-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

.af-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.af-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.af-chip {
    padding: 0.3125rem 0.875rem;
    border: 1.5px solid #e2e8f0;
    background: white;
    color: #475569;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.18s;
}

.af-chip:hover { border-color: #1B3A6B; color: #1B3A6B; }
.af-chip.active { border-color: #1B3A6B; background: #1B3A6B; color: white; font-weight: 600; }

.af-clear-all {
    align-self: flex-start;
    padding: 0;
    border: none;
    background: none;
    color: #94a3b8;
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.18s;
}

.af-clear-all:hover { color: #475569; }



.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-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);
}


.section-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}


.listing-section {
    padding-top: 4rem;
    margin-top: 0;
}


.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);
}


.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-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);
}


.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);
}


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


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

.trust-content {
    max-width: 1200px;
    margin: 0 auto;
}

.trust-badge {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(59,130,246,0.1);
    color: var(--primary-500);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

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

.trust-header h2 {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--neutral-950);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

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

.trust-header p {
    font-family: var(--font-primary);
    color: var(--neutral-500);
    max-width: 560px;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.7;
}

.trust-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.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;
}

.trust-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-get-started {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    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);
}

.btn-meet-agents {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-500);
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-meet-agents:hover { opacity: 0.75; }

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

@media (max-width: 640px) {
    .trust-features { grid-template-columns: 1fr; }
    .trust-header h2 { font-size: 1.5rem; }
}


/* ── Value Section ───────────────────────────────────── */
.value-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0f172a 100%);
    padding: 5rem var(--page-padding);
    position: relative;
    overflow: hidden;
}

.value-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 60% 50%, rgba(59,130,246,0.15) 0%, transparent 70%);
    pointer-events: none;
}

.value-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
}

.value-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.value-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.875rem;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.35);
    color: #93c5fd;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
}

.value-text h2 {
    font-family: var(--font-primary);
    font-size: 2.25rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
}

.value-subtitle {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 500;
    color: #93c5fd;
    margin: 0;
}

.value-description {
    font-family: var(--font-primary);
    font-size: 0.9rem;
    line-height: 1.7;
    color: #94a3b8;
    margin: 0;
}

.value-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.btn-calculate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    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, box-shadow 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}

.btn-calculate:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(59,130,246,0.45);
}

.btn-browse-link {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    font-weight: 600;
    color: #93c5fd;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn-browse-link:hover { opacity: 0.75; }

.value-visual {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.value-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    backdrop-filter: blur(8px);
}

.value-card-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.value-card-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.value-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.value-card-sub {
    font-size: 0.75rem;
    color: #64748b;
}

.value-stat-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.value-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-md);
    padding: 1rem 0.75rem;
    text-align: center;
}

.value-stat-num {
    font-size: 1.4rem;
    font-weight: 700;
    color: #93c5fd;
}

.value-stat-label {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.3;
    text-align: center;
}

.value-features-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.value-feature-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.85rem;
    color: #cbd5e1;
}

.value-feature-item svg {
    color: #4ade80;
    flex-shrink: 0;
}

@media (max-width: 900px) {
    .value-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .value-text h2 { font-size: 1.75rem; }
}

@media (max-width: 480px) {
    .value-text h2 { font-size: 1.5rem; }
    .value-stat-row { grid-template-columns: repeat(3, 1fr); }
}


.agent-section {
    background: #FFFFFF;
    position: relative;
}

.agent-section .section-header {
    background: transparent;
}

.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-slider-wrapper {
    position: relative;
}

.agent-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: all 0.2s;
    color: var(--text-dark);
}

.agent-nav-btn:hover:not(:disabled) {
    background: var(--primary-500);
    border-color: var(--primary-500);
    color: #FFFFFF;
}

.agent-nav-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.agent-nav-prev { left: -20px; }
.agent-nav-next { right: -20px; }

.agent-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.agent-card {
    position: relative;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-card);
    overflow: hidden;
    aspect-ratio: 184 / 282;
    background: var(--neutral-200);
    border: none;
    padding: 0;
    transition: transform 0.2s, box-shadow 0.2s;
}

.agent-card:first-child {
    aspect-ratio: 368 / 282;
}

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

.agent-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.agent-card-placeholder {
    position: absolute;
    inset: 0;
    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;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 50%, transparent 100%);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}

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

.agent-name {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.25rem;
    color: #FFFFFF;
    margin-bottom: 0.25rem;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.agent-card:not(:first-child) .agent-name {
    font-size: 1rem;
}

.agent-title {
    font-family: var(--font-primary);
    color: #F3F3F3;
    font-size: 0.875rem;
    text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.agent-card:not(:first-child) .agent-title {
    font-size: 0.8125rem;
}


/* ── GTA Statistics Section ──────────────────────────── */
.stats-section {
    background: var(--neutral-50);
    padding: 5rem var(--page-padding);
}

.stats-content {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stats-title-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    background: #dcfce7;
    color: #15803d;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    width: fit-content;
}

.stats-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.stats-title {
    font-family: var(--font-primary);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--neutral-950);
    margin: 0;
}

.stats-subtitle {
    font-size: 0.875rem;
    color: var(--neutral-500);
    margin: 0;
}

.stats-tabs {
    display: flex;
    gap: 0.35rem;
    background: var(--bg-white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-md);
    padding: 0.25rem;
}

.stats-tab {
    padding: 0.45rem 1.1rem;
    border: none;
    background: transparent;
    border-radius: calc(var(--radius-md) - 2px);
    cursor: pointer;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--neutral-500);
    transition: background 0.15s, color 0.15s;
}

.stats-tab:hover { color: var(--neutral-800); }

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

/* Loading skeleton */
.stats-loading { display: flex; flex-direction: column; gap: 1.5rem; }
.stats-skeleton-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.stats-skeleton-kpi {
    height: 100px;
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}
.stats-skeleton-chart {
    height: 220px;
    background: linear-gradient(90deg, var(--neutral-200) 25%, var(--neutral-100) 50%, var(--neutral-200) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-lg);
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Stats body */
.stats-body { display: flex; flex-direction: column; gap: 1.5rem; }

/* KPI row */
.stats-kpis {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.stats-kpi {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: var(--bg-white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s;
}

.stats-kpi:hover { box-shadow: var(--shadow-card); }

.stats-kpi-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: white;
}

.stats-kpi-icon--price  { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.stats-kpi-icon--listings { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.stats-kpi-icon--days   { background: linear-gradient(135deg, #f59e0b, #d97706); }

.stats-kpi-content { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }

.stats-kpi-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neutral-500);
}

.stats-kpi-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--neutral-950);
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.stats-kpi-change {
    font-size: 0.75rem;
    font-weight: 500;
}

.stats-kpi-change.up     { color: #16a34a; }
.stats-kpi-change.down   { color: #dc2626; }
.stats-kpi-change.neutral { color: var(--neutral-400); }

/* Chart area */
.stats-chart-area {
    background: var(--bg-white);
    border: 1px solid var(--neutral-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem 2rem 1.25rem;
    box-shadow: var(--shadow-sm);
}

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

.stats-chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--neutral-700);
}

.stats-chart-legend {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.stats-legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.stats-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 160px;
    padding-bottom: 2rem;
    position: relative;
}

/* Horizontal guide lines */
.stats-bars::before {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 0; bottom: 2rem;
    background: repeating-linear-gradient(
        to bottom,
        var(--neutral-100) 0px,
        var(--neutral-100) 1px,
        transparent 1px,
        transparent 25%
    );
    pointer-events: none;
}

.stats-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    height: 100%;
}

.stats-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    position: relative;
}

.stats-bar-fill {
    width: 100%;
    background: linear-gradient(to top, #2563eb, #60a5fa);
    border-radius: 4px 4px 0 0;
    min-height: 2px;
    transition: height 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.stats-bar-fill:hover { background: linear-gradient(to top, #1d4ed8, #93c5fd); }

.stats-bar-tip {
    position: absolute;
    top: -22px;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--neutral-600);
    white-space: nowrap;
}

.stats-bar-label {
    font-size: 0.65rem;
    color: var(--neutral-500);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.stats-chart-footer {
    margin-top: 1rem;
    display: flex;
    justify-content: flex-end;
}

.stats-view-all {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}
.stats-view-all:hover { opacity: 0.75; }

/* Responsive */
@media (max-width: 900px) {
    .stats-header { align-items: flex-start; flex-direction: column; }
    .stats-kpis { grid-template-columns: 1fr; }
    .stats-bars { gap: 0.4rem; }
    .stats-bar-label { font-size: 0.55rem; }
}

@media (max-width: 640px) {
    .stats-skeleton-kpis { grid-template-columns: 1fr; }
    .stats-kpi-value { font-size: 1.35rem; }
}

/* Dark mode */
[data-theme="dark"] .stats-section { background: #0f172a; }

[data-theme="dark"] .stats-badge {
    background: rgba(22,163,74,0.15);
    color: #4ade80;
}

[data-theme="dark"] .stats-title { color: #e2e8f0; }
[data-theme="dark"] .stats-subtitle { color: #64748b; }

[data-theme="dark"] .stats-tabs {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] .stats-tab { color: #64748b; }
[data-theme="dark"] .stats-tab:hover { color: #e2e8f0; }
[data-theme="dark"] .stats-tab.active { background: #2563eb; color: white; }

[data-theme="dark"] .stats-skeleton-kpi,
[data-theme="dark"] .stats-skeleton-chart {
    background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
    background-size: 200% 100%;
}

[data-theme="dark"] .stats-kpi {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .stats-kpi-value { color: #e2e8f0; }
[data-theme="dark"] .stats-kpi-label { color: #475569; }

[data-theme="dark"] .stats-chart-area {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .stats-chart-title { color: #94a3b8; }
[data-theme="dark"] .stats-chart-legend { color: #475569; }
[data-theme="dark"] .stats-bar-tip { color: #94a3b8; }
[data-theme="dark"] .stats-bar-label { color: #475569; }
[data-theme="dark"] .stats-bars::before {
    background: repeating-linear-gradient(
        to bottom, #334155 0, #334155 1px, transparent 1px, transparent 25%
    );
}
[data-theme="dark"] .stats-view-all { color: #93c5fd; }


.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-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 {
    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 {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 199;
}


.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-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;
}


@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

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

    .agent-grid {
        grid-template-columns: 2fr 1fr 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-section {
        padding: var(--page-padding);
        padding-bottom: 1rem;
    }

    .hero-image-container {
        height: clamp(320px, 55vw, 440px);
        border-radius: 12px;
    }

    .hero-heading {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }

    /* Search card — mobile layout */
    .search-card {
        margin: -48px auto 0;
        border-radius: 14px;
        padding: 0.875rem 1rem 1rem;
        gap: 0.75rem;
        z-index: 9999;
    }

    .search-tabs-row {
        justify-content: flex-start;
    }

    .advanced-filters-link {
        display: none;
    }

    /* Search input row — full width */
    .search-controls-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .search-input-wrap {
        flex: 1 1 100%;
        order: 0;
    }

    /* Mobile backdrop for open dropdowns */
    .sf-mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        z-index: 9997;
    }

    /* Filter chips row — wrapping on mobile */
    .search-filters-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 0.5rem;
        overflow: visible;
        padding: 2px 0;
        flex: 1 1 100%;
    }

    .search-divider { display: none; }
    .search-filters-row .search-divider { display: none; }

    /* Filter fields become compact pill chips */
    .sf-field {
        flex: 0 0 auto;
        min-width: unset;
        padding: 0.4375rem 0.875rem;
        border-radius: 50px;
        font-size: 0.8125rem;
        white-space: nowrap;
        position: relative;
    }

    /* Dropdown appears directly below chip on mobile */
    .sf-dropdown {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        min-width: 200px;
        max-height: 50vh;
        overflow-y: auto;
        z-index: 10000;
    }

    .sf-opt {
        padding: 0.75rem 1.125rem;
        font-size: 0.9375rem;
    }

    /* Search button goes full-width at bottom */
    .search-go-btn {
        flex: 1 1 100%;
        order: 99;
        justify-content: center;
        border-radius: 10px;
        padding: 0.875rem;
        font-size: 1rem;
    }

    .search-btn-full { display: inline; }
    .search-btn-short { display: none; }

    .popular-row { gap: 0.375rem; }
    .popular-chip { font-size: 0.8125rem; }

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

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

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

    .value-text 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: 1fr 1fr;
        gap: 1rem;
    }

    .agent-nav-btn { display: none; }

    .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: 1.5rem 1rem 5.5rem;
    }

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

    .footer-brand {
        grid-column: 1 / -1 !important;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left !important;
    }

    .footer-brand p { display: none; }

    .footer-logo { justify-content: flex-start !important; }

    .footer-column h4 {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
        letter-spacing: 0.05em;
    }

    .footer-column a {
        font-size: 0.8125rem;
        padding: 0.15rem 0;
    }

    .footer-middle { padding: 0.75rem 0; }

    .footer-social { gap: 0.75rem; }
    .footer-social span { font-size: 0.8125rem; }

    .footer-bottom p {
        font-size: 0.7rem;
        line-height: 1.5;
    }

    body {
        padding-bottom: 60px;
    }
}


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

    .hero-section {
        padding: var(--page-padding);
        padding-bottom: 0.5rem;
    }

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

    .search-card {
        margin: -40px auto 0;
        padding: 0.75rem 0.875rem 0.875rem;
    }

    .s-tab { padding: 0.35rem 0.875rem; font-size: 0.875rem; }

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

    .agent-grid {
        grid-template-columns: 1fr 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 {
    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;
}


.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);
}


.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;
}


.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);
}


.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 {
    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; }
}


.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);
}


.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);
}


.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);
}


@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;
    }
}


.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 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 {
    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 {
    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 {
    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);
}


@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 {
    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);
    }
}


[data-theme="dark"] {

    --primary-50: #1a2744;
    --primary-100: #1e2f52;
    --primary-400: #6b8fc4;
    --primary-500: #4a7ab5;
    --primary-700: #8fb5e0;
    --primary-900: #c5daf0;
    --primary-blue: #4a7ab5;


    --secondary-50: #2e2518;
    --secondary-100: #3a2f1e;
    --secondary-500: #d4a853;
    --secondary-600: #e0b85e;
    --primary-gold: #d4a853;


    --neutral-50: #1a1a2e;
    --neutral-100: #1e293b;
    --neutral-200: #334155;
    --neutral-300: #475569;
    --neutral-500: #94a3b8;
    --neutral-600: #a8b8cc;
    --neutral-700: #cbd5e1;
    --neutral-900: #e2e8f0;
    --neutral-950: #f1f5f9;


    --text-dark: #e2e8f0;
    --text-gray: #94a3b8;
    --text-light: #64748b;
    --bg-light: #111827;
    --bg-white: #0f172a;
    --border-color: #334155;


    --for-sale-bg: #0d2e1a;
    --for-sale-text: #34d399;
    --for-rent-bg: #2e2008;
    --for-rent-text: #fbbf24;
    --sold-bg: #1e293b;
    --sold-text: #9ca3af;


    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.4);
    --shadow-card: 0px 16px 40px -8px rgba(0, 0, 0, 0.35);
    --shadow-feature: 0px 8px 24px -4px rgba(0, 0, 0, 0.3);

    color-scheme: dark;
}


[data-theme="dark"] .landing-wrapper {
    color: #e2e8f0;
    background: #0f172a;
}

[data-theme="dark"] .landing-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: #334155;
}

[data-theme="dark"] .landing-nav a {
    color: #94a3b8;
}

[data-theme="dark"] .landing-nav a:hover,
[data-theme="dark"] .landing-nav a.active {
    color: #e2e8f0;
}

[data-theme="dark"] .btn-login {
    color: #e2e8f0;
    border-color: #475569;
}

[data-theme="dark"] .btn-login:hover {
    background: #1e293b;
}



[data-theme="dark"] .section {
    background: #0f172a;
}

[data-theme="dark"] .section-title {
    color: #e2e8f0;
}

[data-theme="dark"] .property-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .property-card:hover {
    border-color: #475569;
}

[data-theme="dark"] .card-price {
    color: #e2e8f0;
}

[data-theme="dark"] .card-address {
    color: #94a3b8;
}

[data-theme="dark"] .card-details span {
    color: #64748b;
}

[data-theme="dark"] .agent-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .agent-name {
    color: #e2e8f0;
}

[data-theme="dark"] .agent-role {
    color: #94a3b8;
}

[data-theme="dark"] .trust-section {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
}

[data-theme="dark"] .trust-header h2 {
    color: #e2e8f0;
}

[data-theme="dark"] .trust-header .trust-main-title {
    color: #94a3b8;
}

[data-theme="dark"] .trust-header p {
    color: #64748b;
}

[data-theme="dark"] .trust-badge {
    background: rgba(59,130,246,0.15);
    color: #93c5fd;
}

[data-theme="dark"] .trust-feature {
    background: #1e293b;
    border: 1px solid #334155;
}

[data-theme="dark"] .trust-feature h3 {
    color: #e2e8f0;
}

[data-theme="dark"] .trust-feature p {
    color: #64748b;
}

[data-theme="dark"] .btn-meet-agents {
    color: #93c5fd;
}

[data-theme="dark"] .trust-card {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .value-text h2 {
    color: #ffffff;
}

[data-theme="dark"] .footer {
    background: #0d1117;
    border-top-color: #1e293b;
}

[data-theme="dark"] .footer-heading {
    color: #e2e8f0;
}

[data-theme="dark"] .footer-link {
    color: #94a3b8;
}

[data-theme="dark"] .footer-link:hover {
    color: #e2e8f0;
}

[data-theme="dark"] .footer-bottom {
    border-top-color: #1e293b;
    color: #64748b;
}


[data-theme="dark"] .mobile-menu-drawer {
    background: #1e293b;
}

[data-theme="dark"] .mobile-menu-links a {
    color: #94a3b8;
    border-bottom-color: #334155;
}

[data-theme="dark"] .mobile-menu-links a:hover,
[data-theme="dark"] .mobile-menu-links a.active {
    color: #e2e8f0;
}

[data-theme="dark"] .mobile-menu-overlay {
    background: rgba(0, 0, 0, 0.6);
}

/* ── Hero search dark mode ── */
[data-theme="dark"] .search-card {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

[data-theme="dark"] .s-tab {
    color: #94a3b8;
}

[data-theme="dark"] .s-tab.active {
    background: #1d3a8a;
    color: white;
}

[data-theme="dark"] .s-tab:not(.active):hover {
    color: #93c5fd;
}

[data-theme="dark"] .advanced-filters-link {
    color: #93c5fd;
}

[data-theme="dark"] .search-input-wrap {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .search-city-input {
    background: transparent;
    color: #e2e8f0;
}

[data-theme="dark"] .search-city-input::placeholder {
    color: #64748b;
}

[data-theme="dark"] .sf-field {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .sf-field:hover {
    border-color: #4a7ab5;
}

[data-theme="dark"] .sf-field.open {
    border-color: #4a7ab5;
}

[data-theme="dark"] .sf-ph {
    color: #64748b;
}

[data-theme="dark"] .sf-val {
    color: #e2e8f0;
}

[data-theme="dark"] .sf-dropdown {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

[data-theme="dark"] .sf-opt {
    color: #cbd5e1;
}

[data-theme="dark"] .sf-opt:hover {
    background: #334155;
}

[data-theme="dark"] .sf-opt.sel {
    background: #1e3a5f;
    color: #93c5fd;
}

[data-theme="dark"] .popular-label {
    color: #64748b;
}

[data-theme="dark"] .popular-chip {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .popular-chip svg {
    color: #64748b;
}

[data-theme="dark"] .popular-chip:hover {
    border-color: #4a7ab5;
    color: #93c5fd;
    background: #1e3a5f;
}

[data-theme="dark"] .popular-chip:hover svg {
    color: #93c5fd;
}

[data-theme="dark"] .popular-chip.active {
    border-color: #1d3a8a;
    background: #1d3a8a;
    color: white;
}

[data-theme="dark"] .search-divider {
    background: #334155;
}

[data-theme="dark"] .welcome-modal {
    background: #1e293b;
    border-color: #334155;
}

[data-theme="dark"] .welcome-title {
    color: #e2e8f0;
}

[data-theme="dark"] .welcome-close-btn {
    background: #0f172a;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .welcome-close-btn:hover {
    background: #334155;
    color: #e2e8f0;
}

[data-theme="dark"] .welcome-divider {
    border-top-color: #334155;
}

[data-theme="dark"] .advanced-filters-panel {
    border-top-color: #1e293b;
}

[data-theme="dark"] .af-label {
    color: #64748b;
}

[data-theme="dark"] .af-chip {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

[data-theme="dark"] .af-chip:hover {
    border-color: #4a7ab5;
    color: #93c5fd;
}

[data-theme="dark"] .af-chip.active {
    border-color: #1d3a8a;
    background: #1d3a8a;
    color: white;
}

[data-theme="dark"] .af-clear-all {
    color: #64748b;
}

[data-theme="dark"] .af-clear-all:hover {
    color: #94a3b8;
}
