@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --bg-warm: #FDFBF7;
    --primary-yellow: #FFD700;
    --primary-soft: #FFEA70;
    --text-charcoal: #2A2A2A;
    /* Slightly softer than pure charcoal */
    --text-muted: #666666;
    --white: #FFFFFF;
    --black: #000000;
    --radius-full: 100px;
    --radius-lg: 40px;
    --radius-md: 24px;
    --radius-sm: 12px;
    --shadow-premium: 0 20px 60px rgba(0, 0, 0, 0.05);
    /* Softer, deeper shadow */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body.dark-theme {
    --bg-warm: #050505;
    /* True Void Black */
    --primary-yellow: #D4AF37;
    /* Metallic Gold (less neon) */
    --text-charcoal: #F0F0F0;
    --text-muted: #888888;
    --white: #141414;
    /* Almost black cards */
    --black: #FFFFFF;
    --shadow-premium: 0 25px 80px rgba(0, 0, 0, 0.8);
}

/* Dark Theme Specific Overrides */
body.dark-theme .nav-container {
    background: rgba(10, 10, 10, 0.95);
    /* Deeper, solid-feeling black */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    transition: var(--transition);
}

body.dark-theme .navbar.scrolled .nav-container {
    background: rgba(5, 5, 5, 0.98);
    /* Near black on scroll */
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark-theme .nav-links a.active {
    color: var(--primary-yellow);
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

body.dark-theme .logo-icon {
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

body.dark-theme .search-bar-rounded {
    background: #252525;
    /* Distinct from container */
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .floating-property-card {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .neighborhoods-section,
body.dark-theme .search-box-container {
    background: #111111;
    /* Deeper black for container */
    border: 1px solid rgba(255, 255, 255, 0.05);
}

body.dark-theme .f-icon {
    background: rgba(255, 215, 0, 0.15);
}

body.dark-theme .drop-item {
    border-color: rgba(255, 255, 255, 0.05);
    /* Very subtle separator */
    background: transparent;
    /* Seamless blending */
}

body.dark-theme .filter-dropdowns {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .drop-label {
    color: var(--primary-yellow);
    /* Elegant gold labels */
    opacity: 0.9;
}

body.dark-theme select {
    color: #FFFFFF !important;
    appearance: none;
    -webkit-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='%23D4AF37' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0px center;
    padding-right: 20px;
}

body.dark-theme .drop-item {
    border-color: rgba(255, 255, 255, 0.1);
    padding-top: 5px;
    padding-bottom: 5px;
}

/* Dark Mode Inputs */
body.dark-theme input,
body.dark-theme textarea {
    background: #1A1A1A;
    border-color: #333;
    color: #FFFFFF;
}

body.dark-theme input::placeholder,
body.dark-theme textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

body.dark-theme .nav-arrow {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Agent Stats Pills in Dark Mode */
body.dark-theme .feature-card-v span[style*="background: #F1F0EC"] {
    background: #252525 !important;
    color: var(--white);
}

/* Theme Switch */
.theme-switch {
    background: none;
    border: 1px solid currentColor;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-charcoal);
    transition: var(--transition);
    margin-right: 15px;
}

.theme-switch:hover {
    background: var(--text-charcoal);
    color: var(--bg-warm);
    border-color: transparent;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    /* Modern, premium sans-serif */
    background-color: var(--bg-warm);
    color: var(--text-charcoal);
    line-height: 1.7;
    /* Increased for better readability */
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Sharper text */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
    line-height: 1.1;
}

h1 {
    font-size: 64px;
}

h2 {
    font-size: 48px;
}

h3 {
    font-size: 32px;
}

h4 {
    font-size: 24px;
}

p {
    font-size: 16px;
    margin-bottom: 20px;
}

/* Text Utilities */
.text-lg {
    font-size: 20px;
    font-weight: 500;
}

.text-sm {
    font-size: 14px;
    opacity: 0.8;
}

.text-xl {
    font-size: 80px;
}

/* For Hero */

/* Utilities */
.container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.text-center {
    text-align: center;
}

/* Navigation Bar */
.navbar {
    padding: 30px 5%;
    display: flex;
    justify-content: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 15px 5%;
}

.navbar.scrolled .nav-container {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.nav-container {
    width: 100%;
    max-width: 1400px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.65);
    /* Increased opacity for legibility */
    backdrop-filter: blur(24px);
    /* Increased blur */
    padding: 15px 40px;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(255, 255, 255, 0.8);
    /* Crisp edge */
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: var(--primary-yellow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-charcoal);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-charcoal);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--black);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-actions a {
    text-decoration: none;
    color: var(--text-charcoal);
    font-weight: 500;
    font-size: 15px;
}

.join-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.join-btn:hover {
    transform: scale(1.05);
}

/* Hero Section */
.hero {
    padding-top: 180px;
    padding-bottom: 150px;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.hero-title {
    font-size: 84px;
    line-height: 1;
    margin-bottom: 40px;
    letter-spacing: -3px;
}

.hero-title .light-text {
    font-weight: 300;
    color: var(--text-muted);
}

.hero-title .bold-text {
    font-weight: 700;
}

.search-module {
    margin-top: 50px;
}

.tab-selector-pill {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-pill {
    background: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.tab-pill.active {
    background: var(--black);
    color: var(--white);
}

.search-bar-rounded {
    background: var(--white);
    padding: 8px 10px 8px 30px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
    box-shadow: var(--shadow-premium);
}

.search-bar-rounded input {
    border: none;
    flex: 1;
    font-size: 16px;
    padding: 10px 0;
    outline: none;
    color: var(--text-charcoal);
}

.search-circle-btn {
    width: 48px;
    height: 48px;
    background: var(--primary-yellow);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.search-circle-btn:hover {
    transform: scale(1.1);
}

/* Hero Image side */
.house-visual-container {
    position: relative;
    border-radius: 50px;
    overflow: hidden;
    height: 700px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.1);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-property-card {
    position: absolute;
    bottom: 40px;
    left: 40px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    padding: 24px;
    border-radius: var(--radius-md);
    width: 300px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.prop-name {
    font-size: 18px;
    margin-bottom: 5px;
}

.prop-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.prop-price {
    font-weight: 700;
    font-size: 20px;
    color: var(--text-charcoal);
}

.card-nav {
    display: flex;
    gap: 10px;
}

.nav-arrow {
    width: 32px;
    height: 32px;
    border: 1px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-arrow.active {
    background: var(--black);
    color: var(--white);
    border-color: var(--black);
}

/* Trust Section */
.trust-container {
    padding: 100px 5%;
}

.trust-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.trust-headline {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 24px;
}

.trust-headline .highlight {
    font-weight: 300;
    color: var(--text-muted);
}

.trust-subtext {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

/* Center subtext only when parent is centered */
.text-center .trust-subtext {
    margin-left: auto;
    margin-right: auto;
}

.trust-left {
    padding-right: 60px;
    /* Separation from right column */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.user-avatars {
    display: flex;
    align-items: center;
    margin-bottom: 50px;
}

.user-avatars img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid var(--bg-warm);
    margin-right: -20px;
}

.avatar-more {
    width: 56px;
    height: 56px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    box-shadow: var(--shadow-premium);
}

.stats-row {
    display: flex;
    gap: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 40px;
    font-weight: 700;
}

.stat-text {
    font-size: 14px;
    color: var(--text-muted);
}

/* Vertical Feature Cards */
.trust-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card-v {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
}

.feature-card-v:hover {
    transform: scale(1.02);
}

.f-icon {
    width: 64px;
    height: 64px;
    background: #FFF9E1;
    color: var(--primary-yellow);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.f-text h3 {
    font-size: 20px;
    font-weight: 600;
}

.f-arrow {
    margin-left: auto;
    color: #ddd;
}

/* Featured Listings */
.featured-listings {
    padding: 100px 5%;
}

.section-header-row {
    max-width: 1400px;
    margin: 0 auto 60px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.properties-grid-premium {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Neighborhoods */
.neighborhoods-section {
    padding: 100px 5%;
    background: #F1F0EC;
    border-radius: 60px;
    margin: 60px 5% 100px;
}

.neighbor-grid-premium {
    max-width: 1400px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 350px);
    gap: 30px;
}

.neighbor-card-premium {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.neighbor-card-premium.large {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.neighbor-card-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.neighbor-card-premium:hover img {
    transform: scale(1.1);
}

.neighbor-overlay-new {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: var(--white);
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
}

.neighbor-overlay-new h3 {
    font-size: 28px;
}

/* Testimonials */
.testimonials-premium {
    padding: 100px 5%;
}

.testimonial-box-new {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    background: var(--white);
    border-radius: 50px;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

.testimonial-img-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info-side {
    padding: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quote-symbol {
    font-size: 100px;
    color: var(--primary-yellow);
    line-height: 1;
    margin-bottom: -20px;
    font-family: serif;
}

.testimonial-text-new {
    font-size: 24px;
    font-weight: 500;
    color: var(--text-charcoal);
    margin-bottom: 40px;
    line-height: 1.4;
}

.author-row-new {
    display: flex;
    align-items: center;
    gap: 20px;
}

.author-row-new img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
}

.author-meta-new strong {
    display: block;
    font-size: 18px;
}

.author-meta-new span {
    color: var(--text-muted);
    font-size: 14px;
}

/* Bottom Search Section */
.bottom-search {
    padding: 100px 5%;
}

.search-box-container {
    max-width: 1400px;
    margin: 0 auto;
    background: #F1F0EC;
    padding: 100px 60px;
    border-radius: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bottom-headline {
    font-size: 56px;
    margin-bottom: 60px;
}

.filter-dropdowns {
    background: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 1100px;
    box-shadow: var(--shadow-premium);
}

.drop-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0 25px;
    border-right: 1px solid #F0F0F0;
}

.drop-item:nth-last-child(2) {
    border-right: none;
}

.drop-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 4px;
}

.drop-item select {
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-charcoal);
    outline: none;
    width: 100%;
    cursor: pointer;
}

.black-search-btn {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 20px 50px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.black-search-btn:hover {
    background: #333;
    transform: scale(1.05);
}

/* Footer Simple */
.footer-simple {
    padding: 80px 5%;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1100px) {

    .hero-container,
    .trust-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 60px;
    }

    .filter-dropdowns {
        flex-direction: column;
        border-radius: 30px;
        padding: 40px;
    }

    .drop-item {
        border-right: none;
        border-bottom: 1px solid #F0F0F0;
        width: 100%;
        padding: 20px 0;
    }

    .properties-grid-premium {
        grid-template-columns: 1fr;
    }

    .neighbor-grid-premium {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .neighbor-card-premium.large {
        grid-column: 1;
        grid-row: auto;
    }

    .testimonial-box-new {
        grid-template-columns: 1fr;
    }

    .testimonial-info-side {
        padding: 40px;
    }
}

/* --- NEW UTILITIES --- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

/* --- RESPONSIVE UPDATES --- */

/* Hamburger Logic */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    cursor: pointer;
    z-index: 1100;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--text-charcoal);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Tablet Override */
@media (max-width: 1100px) {
    .properties-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .neighbor-grid-premium {
        grid-template-columns: repeat(2, 1fr);
    }

    .neighbor-card-premium.large {
        grid-column: 1 / -1;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-container {
        padding: 15px 25px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        display: flex;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: 40px 0;
        gap: 30px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: var(--transition);
        border-radius: 0 0 24px 24px;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    }

    body.dark-theme .nav-links {
        background: rgba(10, 10, 10, 0.98);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.05);
        border-top: none;
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: all;
        transform: translateY(0);
    }

    .nav-actions {
        display: none;
    }

    .hero-title {
        font-size: 42px;
    }

    h1 {
        font-size: 42px;
    }

    h2 {
        font-size: 36px;
    }

    h3 {
        font-size: 28px;
    }

    .hero-container {
        gap: 40px;
    }

    .house-visual-container {
        height: 400px;
        border-radius: 30px;
    }

    .trust-headline {
        font-size: 36px;
    }

    .stats-row {
        gap: 30px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .properties-grid-premium {
        grid-template-columns: 1fr;
    }

    .neighbor-grid-premium {
        grid-template-columns: 1fr;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .bottom-headline {
        font-size: 36px;
    }

    .search-box-container {
        padding: 50px 20px;
    }

    .filter-dropdowns {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }

    .trust-headline,
    .bottom-headline {
        font-size: 28px;
    }
}

/* --- ADDITIONAL UTILITIES --- */
.form-grid,
.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.agents-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.property-details-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: start;
}

.agent-profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

/* Mobile & Tablet Overrides for New Utilities */
@media (max-width: 1100px) {
    .agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .property-details-grid,
    .agent-profile-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {

    .form-grid,
    .grid-2-col,
    .agents-grid {
        grid-template-columns: 1fr;
    }
}

/* --- BACKGROUND AMBIENCE --- */
body::before {
    content: '';
    position: fixed;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.04), transparent 70%);
    filter: blur(80px);
    z-index: -1;
    animation: float 20s infinite ease-in-out;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(100, 100, 100, 0.03), transparent 70%);
    filter: blur(60px);
    z-index: -1;
    animation: float 25s infinite ease-in-out reverse;
    pointer-events: none;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, 40px) scale(1.05);
    }
}