/* ========================================
   SYLVIE ZHAO REAL ESTATE - MAIN STYLESHEET
   ======================================== */

/* CSS Variables */
:root {
    --gold: #C4A052;
    --gold-light: #D4B872;
    --gold-dark: #A68A3C;
    --charcoal: #1A1A1A;
    --charcoal-light: #2D2D2D;
    --cream: #FAF8F5;
    --cream-dark: #EDE8E0;
    --text-dark: #1A1A1A;
    --text-light: #6B6B6B;
    --white: #FFFFFF;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 0.02em;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

/* ========================================
   NAVIGATION
   ======================================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(250, 248, 245, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(196, 160, 82, 0.2);
    transition: all 0.4s ease;
}

nav.scrolled {
    padding: 1rem 4rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--charcoal);
    letter-spacing: 0.1em;
}

.logo span {
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-cta {
    background: var(--charcoal);
    color: var(--white) !important;
    padding: 0.8rem 1.5rem !important;
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--gold) !important;
    color: var(--charcoal) !important;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background: var(--charcoal);
    transition: all 0.3s ease;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.4s ease;
    cursor: pointer;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

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

.btn-primary:hover {
    background: var(--gold);
    color: var(--charcoal);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--charcoal);
    border: 1px solid var(--charcoal);
}

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

.btn-gold {
    background: var(--gold);
    color: var(--charcoal);
}

.btn-gold:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
}

/* ========================================
   SECTION STYLES
   ======================================== */
.section-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--charcoal);
}

.section-title.light {
    color: var(--white);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    direction: rtl;
    position: relative;
    overflow: hidden;
}

.hero-content,
.hero-image {
    direction: ltr;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 6rem 6rem;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.3s;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--charcoal);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.5s;
}

.hero-title em {
    font-style: italic;
    color: var(--gold);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-light);
    max-width: 480px;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.7s;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.9s;
}

.hero-image {
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(196, 160, 82, 0.1), transparent);
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    animation: fadeIn 1.2s ease forwards 0.4s;
}

.hero-decoration {
    position: absolute;
    bottom: 4rem;
    left: 6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1.1s;
}

.hero-decoration span {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-light);
}

.hero-decoration-line {
    width: 60px;
    height: 1px;
    background: var(--gold);
}

/* ========================================
   STATS BAR
   ======================================== */
.stats-bar {
    background: var(--charcoal);
    padding: 4rem 6rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.stat-item {
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 60%;
    width: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    padding: 8rem 6rem;
}

.about-image {
    position: relative;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: -2rem;
    bottom: -2rem;
    border: 1px solid var(--gold);
    z-index: -1;
}

.about-image img {
    width: 100%;
    filter: grayscale(20%);
    transition: filter 0.5s ease;
}

.about-image:hover img {
    filter: grayscale(0%);
}

.about-content {
    padding: 2rem 0;
}

.about-text {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-signature {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-style: italic;
    color: var(--gold);
    margin-top: 2rem;
}

/* Video thumbnail link */
.video-thumbnail {
    display: block;
    position: relative;
    margin: 1.5rem 0 2rem;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    display: block;
    border-radius: 8px;
    transition: brightness 0.2s ease;
}

.video-thumbnail:hover img {
    filter: brightness(0.85);
}

.video-thumbnail .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    background: rgba(0, 0, 0, 0.65);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    padding-left: 5px;
    pointer-events: none;
    transition: background 0.2s ease;
}

.video-thumbnail:hover .play-btn {
    background: rgba(196, 160, 82, 0.85);
}

/* About section full width */
.about-content.full-width {
    max-width: 1000px;
    margin: 0 auto;
}

/* Language toggle buttons */
.language-toggle {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.lang-btn {
    padding: 0.75rem 2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    border: 1px solid var(--gold);
    color: var(--gold);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.lang-btn:hover,
.lang-btn.active {
    background: var(--gold);
    color: var(--charcoal);
}

/* About headings */
.about-heading {
    font-size: 1.5rem;
    color: var(--charcoal);
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gold);
}

/* Achievements grid */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.achievement-column h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.achievement-list li strong {
    color: var(--charcoal);
}

/* Expertise grid */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.expertise-item {
    background: var(--cream-dark);
    padding: 1.5rem;
}

.expertise-item h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.expertise-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Services list */
.services-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.services-list li {
    font-size: 0.95rem;
    color: var(--text-light);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.services-list li::before {
    content: '•';
    color: var(--gold);
    position: absolute;
    left: 0;
}

/* Responsive */
@media (max-width: 992px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }

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

/* Expertise list */
.expertise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.expertise-list li {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Contact box */
.contact-box {
    background: var(--gold);
    color: var(--charcoal);
    padding: 2rem;
    margin-top: 3rem;
    text-align: center;
}

.contact-box h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.contact-box p {
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.8;
}

/* ========================================
   LISTINGS SECTION
   ======================================== */
.listings {
    padding: 8rem 6rem;
    background: var(--charcoal);
}

.listings-header {
    text-align: center;
    margin-bottom: 4rem;
}

.listings-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

.listings-tabs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.tab-btn.active,
.tab-btn:hover {
    color: var(--gold);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gold);
}

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

.listing-card {
    background: var(--charcoal-light);
    overflow: hidden;
    position: relative;
    transition: transform 0.5s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.listing-card:hover {
    transform: translateY(-10px);
}

.listing-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

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

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

.listing-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: var(--gold);
    color: var(--charcoal);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
}

.listing-badge.sold {
    background: #dc2626;
    /* red */
    color: var(--white);
}

.listing-info {
    padding: 1.5rem;
    flex: 1;
}

.listing-price {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.listing-address {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--white);
    margin-bottom: 1rem;
}

.listing-details {
    display: flex;
    gap: 1.5rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.listing-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.listing-detail svg {
    width: 16px;
    height: 16px;
}

.view-all-link {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.view-all-link a {
    color: var(--gold);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: gap 0.3s ease;
}

.view-all-link a:hover {
    gap: 1.25rem;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */
.testimonials {
    padding: 8rem 6rem;
    background: var(--cream);
    position: relative;
    overflow: hidden;
}

.testimonials::before {
    content: '"';
    position: absolute;
    top: 4rem;
    left: 4rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20rem;
    color: var(--cream-dark);
    line-height: 1;
    pointer-events: none;
}

.testimonials-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
    z-index: 1;
}

.testimonials-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.testimonial-item {
    text-align: center;
    padding: 0 2rem;
    display: none;
}

.testimonial-item.active {
    display: block;
    animation: fadeIn 0.6s ease;
}

.testimonial-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 2rem;
}

.testimonial-author {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.testimonial-dots {
    display: flex;
    gap: 1rem;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: transparent;
    cursor: pointer;
    transition: background 0.3s ease;
}

.testimonial-dot.active {
    background: var(--gold);
}

.testimonial-arrow {
    width: 50px;
    height: 50px;
    border: 1px solid var(--charcoal);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.testimonial-arrow:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.testimonial-arrow svg {
    width: 20px;
    height: 20px;
    color: var(--charcoal);
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services {
    padding: 8rem 6rem;
    background: var(--cream-dark);
}

.services-header {
    text-align: center;
    margin-bottom: 5rem;
}

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

.service-card {
    background: var(--white);
    padding: 3rem;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.service-title {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--charcoal);
}

.service-text {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.7;
}

/* ========================================
   CONTACT SECTION
   ======================================== */
.contact {
    padding: 8rem 6rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    background: var(--white);
}

.contact-info {
    padding: 2rem 0;
}

.contact-item {
    margin-bottom: 2rem;
}

.contact-label {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.contact-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--charcoal);
}

.contact-value a {
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: var(--gold);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 3rem;
}

.social-link {
    width: 50px;
    height: 50px;
    border: 1px solid var(--charcoal);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--charcoal);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gold);
    border-color: var(--gold);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

.contact-form {
    background: var(--cream);
    padding: 3rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    border: 1px solid var(--cream-dark);
    background: var(--white);
    color: var(--charcoal);
    transition: border-color 0.3s ease;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--gold);
}

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

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

/* ========================================
   PAGE HEADERS
   ======================================== */
.page-header {
    padding: 12rem 6rem 6rem;
    background: var(--charcoal);
    text-align: center;
}

.page-header .section-title {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header-subtitle {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   LISTINGS PAGE SPECIFIC
   ======================================== */
.listings-page {
    padding: 6rem;
    background: var(--cream);
}

.listings-filters {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--white);
    border: 1px solid var(--cream-dark);
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
    border-color: var(--gold);
    color: var(--gold);
}

.listings-count {
    font-size: 0.85rem;
    color: var(--text-light);
}

.listings-page .listings-grid {
    background: transparent;
}

.listings-page .listing-card {
    background: var(--white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.listings-page .listing-price {
    color: var(--charcoal);
}

.listings-page .listing-address {
    color: var(--text-dark);
}

.listings-page .listing-details {
    color: var(--text-light);
}

/* ========================================
   CONTACT PAGE SPECIFIC
   ======================================== */
.contact-page {
    padding: 6rem;
    background: var(--cream);
}

.contact-page .contact {
    background: var(--cream);
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-map {
    margin-top: 4rem;
    height: 400px;
    overflow: hidden;
}

.contact-map img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   FOOTER
   ======================================== */
footer {
    background: var(--charcoal);
    padding: 4rem 6rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--white);
    letter-spacing: 0.1em;
}

.footer-logo span {
    color: var(--gold);
}

.footer-text {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
}

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

/* ========================================
   LISTING DETAIL PAGE
   ======================================== */
.listing-hero {
    padding-top: 80px;
}

.listing-hero-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.listing-hero-main {
    height: auto;
}

.listing-hero-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.listing-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
}

.listing-hero-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.listing-hero-grid img:hover {
    opacity: 0.9;
}

.listing-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    padding: 4rem 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.listing-header {
    margin-bottom: 2rem;
}

.listing-status {
    display: inline-block;
    background: var(--gold);
    color: var(--charcoal);
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    margin-bottom: 1rem;
}

.listing-status.sold {
    background: var(--charcoal);
    color: var(--white);
}

.listing-title {
    font-size: 3rem;
    color: var(--charcoal);
    margin-bottom: 0.5rem;
}

.listing-location {
    font-size: 1.1rem;
    color: var(--text-light);
}

.listing-price-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.5rem 0;
    border-top: 1px solid var(--cream-dark);
    border-bottom: 1px solid var(--cream-dark);
    margin-bottom: 2rem;
}

.listing-price-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--charcoal);
}

.listing-price-details {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--text-light);
}

.listing-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    padding: 2rem;
    background: var(--cream);
    margin-bottom: 3rem;
}

.listing-feature {
    text-align: center;
}

.listing-feature-value {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: var(--charcoal);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.listing-feature-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

.listing-description {
    margin-bottom: 3rem;
}

.listing-description h2,
.listing-details-grid h2,
.listing-amenities h2 {
    font-size: 1.8rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
}

.listing-description p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.listing-details-grid {
    margin-bottom: 3rem;
}

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

.detail-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--cream);
}

.detail-label {
    font-size: 0.85rem;
    color: var(--text-light);
}

.detail-value {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
}

.listing-amenities {
    margin-bottom: 3rem;
}

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

.amenity-tag {
    padding: 0.6rem 1.2rem;
    background: var(--cream);
    font-size: 0.8rem;
    color: var(--charcoal);
    border: 1px solid var(--cream-dark);
}

/* Listing Sidebar */
.listing-sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.agent-card {
    background: var(--white);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.agent-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
}

.agent-name {
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 0.25rem;
}

.agent-title {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.agent-brokerage {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.5rem;
}

.agent-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.agent-phone,
.agent-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--charcoal);
    transition: color 0.3s ease;
}

.agent-phone:hover,
.agent-email:hover {
    color: var(--gold);
}

.agent-phone svg,
.agent-email svg {
    width: 18px;
    height: 18px;
}

.inquiry-form {
    background: var(--cream);
    padding: 2rem;
}

.inquiry-form h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    text-align: center;
}

.inquiry-form .form-group {
    margin-bottom: 1rem;
}

.inquiry-form .form-textarea {
    min-height: 100px;
}

.back-to-listings {
    padding: 2rem 6rem;
    background: var(--cream);
}

.back-to-listings a {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gold);
    transition: color 0.3s ease;
}

.back-to-listings a:hover {
    color: var(--gold-dark);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-content {
        padding: 6rem 4rem;
    }

    nav,
    .about,
    .listings,
    .testimonials,
    .services,
    .contact,
    footer,
    .page-header,
    .listings-page,
    .contact-page {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-content {
        padding: 10rem 3rem 4rem;
        order: 2;
    }

    .hero-image {
        height: 60vh;
        order: 1;
    }

    .hero-decoration {
        display: none;
    }

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

    .stat-item:nth-child(2)::after {
        display: none;
    }

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

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

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

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

    .listing-hero-gallery {
        grid-template-columns: 1fr;
    }

    .listing-hero-main {
        height: 50vh;
    }

    .listing-hero-grid {
        height: 200px;
    }

    .listing-content {
        grid-template-columns: 1fr;
        padding: 3rem;
    }

    .listing-sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    nav {
        padding: 1rem 1.5rem;
    }

    .nav-links {
        display: none;
    }

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

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

    .hero-content {
        padding: 8rem 1.5rem 3rem;
    }

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

    .hero-buttons {
        flex-direction: column;
    }

    nav,
    .about,
    .listings,
    .testimonials,
    .services,
    .contact,
    footer,
    .page-header,
    .listings-page,
    .contact-page {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .stats-bar {
        padding: 3rem 1.5rem;
        grid-template-columns: 1fr;
    }

    .stat-item::after {
        display: none;
    }

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

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

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

    .testimonial-text {
        font-size: 1.2rem;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .listings-filters {
        flex-direction: column;
        align-items: flex-start;
    }

    .listing-content {
        padding: 2rem 1.5rem;
    }

    .listing-title {
        font-size: 2rem;
    }

    .listing-price-bar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .listing-price-details {
        gap: 1rem;
    }

    .listing-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 1.5rem;
    }

    .listing-feature-value {
        font-size: 2rem;
    }

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

    .back-to-listings {
        padding: 1.5rem;
    }
}

/* Scrolling carousel for sold listings */
.listings-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 1rem;
    grid-column: 1 / -1;
    width: 100%;
}

.listings-carousel::-webkit-scrollbar {
    height: 8px;
}

.listings-carousel::-webkit-scrollbar-track {
    background: var(--charcoal-light);
    border-radius: 4px;
}

.listings-carousel::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 4px;
}

/* 
.listings-carousel .listing-card {
    min-width: 350px;
    max-width: 350px;
    flex-shrink: 0;
    background: var(--charcoal-light);
}

@media (max-width: 992px) {
    .listings-carousel .listing-card {
        min-width: 300px;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .listings-carousel .listing-card {
        min-width: 280px;
        max-width: 280px;
    }
} */

.listings-carousel .listing-card {
    min-width: calc(33.333% - 1.33rem);
    flex-shrink: 0;
    background: var(--charcoal-light);
}

@media (max-width: 992px) {
    .listings-carousel .listing-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .listings-carousel .listing-card {
        min-width: 100%;
    }
}