:root {
    --black: #0a0a0a;
    --black-mid: #1a1a1a;
    --gold: #c4a35a;
    --gold-light: #e0c788;
    --cream: #f4f1ea;
    --cream-dark: #e8e2d4;
    --ink: #1a1a1a;
    --muted: #5c6570;
    --white: #ffffff;
    --shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
    --header-h: 84px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Sans 3", system-ui, sans-serif;
    color: var(--ink);
    background: var(--cream);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

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

a {
    color: var(--black);
    text-decoration: none;
}

h1, h2, h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.container {
    width: min(1120px, calc(100% - 2.5rem));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(10, 10, 10, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(196, 163, 90, 0.35);
}

.nav-container {
    width: min(1120px, calc(100% - 2rem));
    margin: 0 auto;
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--cream);
}

.brand-mark {
    width: 44px;
    height: 44px;
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.brand-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--cream);
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cream);
}

.mobile-overlay,
.mobile-sidebar {
    display: none;
}

.hero {
    min-height: calc(88vh - var(--header-h));
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.88) 100%),
        radial-gradient(ellipse at 20% 80%, rgba(196, 163, 90, 0.18) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, #1a1a1a 0%, var(--black) 55%);
    color: var(--cream);
    display: flex;
    align-items: center;
    text-align: center;
    padding: 4rem 1.25rem;
}

.hero-inner {
    width: min(800px, 100%);
    margin: 0 auto;
}

.hero-kicker {
    letter-spacing: 0.28em;
    text-transform: uppercase;
    font-size: 0.78rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    margin-bottom: 0.4rem;
}

.hero .hero-sub {
    font-size: 1.25rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.25rem;
}

.hero p {
    max-width: 36rem;
    margin: 0 auto 1.75rem;
    font-size: 1.1rem;
}

.btn {
    display: inline-block;
    background: var(--gold);
    color: var(--black);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.85rem 1.4rem;
    border: 0;
    cursor: pointer;
    font-family: inherit;
}

.btn:hover {
    background: var(--gold-light);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border: 1px solid var(--gold);
    margin-left: 0.6rem;
}

.section {
    padding: 4.5rem 0;
}

.section-alt {
    background: var(--white);
}

.section-head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-head h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
}

.section-head p {
    color: var(--muted);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.listing-card {
    background: var(--white);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.listing-card-link {
    color: inherit;
    display: block;
}

.listing-card-media {
    height: 190px;
    background: var(--black-mid) center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 2.4rem;
}

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--gold);
    color: var(--black);
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.3rem 0.55rem;
}

.listing-photo-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(10, 10, 10, 0.75);
    color: var(--cream);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.28rem 0.5rem;
}

.is-sold .listing-badge {
    background: var(--black);
    color: var(--gold);
}

.listing-card-body {
    padding: 1.1rem 1.15rem 1.3rem;
}

.listing-card-body h3 {
    font-size: 1.35rem;
}

.listing-city,
.listing-size {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.listing-price {
    margin: 0.6rem 0 0;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 0.04em;
}

.about-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2.5rem;
    align-items: center;
}

.about-photo {
    height: 340px;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.55)),
        var(--black-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-size: 4rem;
}

.about-role {
    color: var(--gold);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
}

.contact-card,
.contact-form {
    background: var(--white);
    padding: 1.75rem;
    box-shadow: var(--shadow);
}

.contact-card h3,
.contact-form h3 {
    margin-bottom: 1rem;
}

.contact-card p {
    margin: 0.35rem 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 0.85rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--cream-dark);
    font: inherit;
    background: var(--cream);
}

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

.form-message {
    padding: 0.9rem 1rem;
    margin-bottom: 1rem;
}

.form-message.success {
    background: #e8f5e9;
    color: #1b5e20;
}

.form-message.error {
    background: #ffebee;
    color: #b71c1c;
}

.listing-hero {
    background: var(--black);
    color: var(--cream);
    padding: 2.5rem 0 2rem;
}

.listing-hero a {
    color: var(--gold);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.listing-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr;
    gap: 2rem;
    padding: 2.5rem 0 4rem;
}

.gallery-main {
    height: 420px;
    background: var(--black-mid) center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 3rem;
}

.listing-gallery {
    margin-bottom: 0.5rem;
}

.gallery-stage {
    position: relative;
    background: var(--black);
}

.gallery-stage img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.gallery-zoom {
    cursor: zoom-in;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(10, 10, 10, 0.65);
    color: var(--gold);
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-prev { left: 10px; }
.gallery-next { right: 10px; }

.gallery-nav:hover {
    background: rgba(10, 10, 10, 0.9);
}

.gallery-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(10, 10, 10, 0.7);
    color: var(--cream);
    font-size: 0.8rem;
    padding: 0.3rem 0.55rem;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.92);
    align-items: center;
    justify-content: center;
    padding: 3rem 4rem;
}

.lightbox.is-open {
    display: flex;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-image {
    max-width: min(1200px, 92vw);
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
    color: var(--gold);
    font-size: 2.2rem;
    line-height: 1;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    background: rgba(10, 10, 10, 0.55);
    color: var(--gold);
    font-size: 2rem;
    cursor: pointer;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-count {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--cream);
    letter-spacing: 0.08em;
}

.gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.gallery-thumbs button {
    width: 72px;
    height: 56px;
    border: 2px solid transparent;
    background: var(--black-mid) center/cover no-repeat;
    cursor: pointer;
}

.gallery-thumbs button.is-active {
    border-color: var(--gold);
}

.listing-map {
    margin-top: 2rem;
}

.listing-map iframe {
    width: 100%;
    height: 360px;
    border: 0;
    background: var(--black-mid);
}

.listing-map a {
    color: var(--black);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.facts {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.facts li {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid var(--cream-dark);
    padding: 0.55rem 0;
}

.page-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 4rem 1rem;
}

.site-footer {
    background: var(--black);
    color: var(--cream);
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.site-footer a {
    color: var(--gold-light);
}

.footer-brand {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.3rem;
    margin: 0.6rem 0 0.3rem;
}

.copyright {
    text-align: center;
    color: rgba(244, 241, 234, 0.55);
    font-size: 0.85rem;
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid rgba(196, 163, 90, 0.2);
}

.empty-note {
    text-align: center;
    color: var(--muted);
}

@media (max-width: 800px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s;
        z-index: 50;
    }

    .mobile-overlay.open {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: min(300px, 86vw);
        height: 100%;
        background: var(--black);
        color: var(--cream);
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.25s ease;
        padding: 1.25rem;
    }

    .mobile-sidebar.open {
        transform: none;
    }

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

    .close-menu {
        background: none;
        border: 0;
        color: var(--cream);
        font-size: 1.4rem;
        cursor: pointer;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .mobile-nav a {
        color: var(--cream);
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .about-grid,
    .contact-grid,
    .listing-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .btn-ghost {
        margin-left: 0;
        margin-top: 0.6rem;
    }

    .gallery-main,
    .gallery-stage img {
        height: 260px;
    }

    .lightbox {
        padding: 3.5rem 0.75rem 2.5rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .listing-map iframe {
        height: 260px;
    }
}
