/* ============================================================
   PETER MILNER PROPERTIES — Main Stylesheet
   Design: Deep navy + warm gold, Cormorant Garamond + DM Sans
   Feel: Spa-like, unhurried, image-forward
   ============================================================ */

/* --- Google Fonts are loaded in header.php --- */

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
    /* Colors */
    --navy:         #0d1b2a;
    --navy-mid:     #152233;
    --navy-light:   #1e3248;
    --navy-soft:    #243c55;
    --gold:         #c9a84c;
    --gold-light:   #e2c47a;
    --gold-pale:    #f0dea0;
    --linen:        #f5f0e8;
    --linen-dark:   #ede6d8;
    --warm-white:   #fdfaf6;
    --warm-white-2: #faf7f2;
    --text-dark:    #1a1a1a;
    --text-mid:     #4a4a4a;
    --text-soft:    #7a7a7a;
    --text-pale:    #a8a8a8;
    --white:        #ffffff;

    /* Typography */
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body:    'DM Sans', system-ui, sans-serif;

    /* Spacing */
    --spacing-xs:   0.5rem;
    --spacing-sm:   1rem;
    --spacing-md:   2rem;
    --spacing-lg:   4rem;
    --spacing-xl:   7rem;
    --spacing-2xl:  10rem;

    /* Layout */
    --container-max: 1280px;
    --container-wide: 1480px;

    /* Transitions */
    --ease-smooth:  cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);
    --duration:     0.35s;
    --duration-slow:0.6s;

    /* Shadows */
    --shadow-sm:    0 2px 12px rgba(13,27,42,0.08);
    --shadow-md:    0 8px 32px rgba(13,27,42,0.14);
    --shadow-lg:    0 20px 60px rgba(13,27,42,0.22);
    --shadow-gold:  0 4px 20px rgba(201,168,76,0.25);

    /* Border radius */
    --radius-sm:    4px;
    --radius-md:    8px;
    --radius-lg:    16px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--text-dark);
    background: var(--warm-white);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration) var(--ease-smooth);
}

ul { list-style: none; }

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: var(--font-body);
    font-size: 1rem;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

.container--wide {
    width: 92%;
    max-width: var(--container-wide);
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section--linen {
    background: var(--linen);
}

.section--navy {
    background: var(--navy);
    color: var(--warm-white);
}

.section--navy-mid {
    background: var(--navy-mid);
    color: var(--warm-white);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.display-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.card-title {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    line-height: 1.25;
}

.eyebrow {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
}

.lead {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    line-height: 1.65;
    color: var(--text-mid);
}

.body-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
}

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 27, 42, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background var(--duration-slow) var(--ease-smooth),
                box-shadow var(--duration-slow) var(--ease-smooth),
                padding var(--duration-slow) var(--ease-smooth);
    padding: 0;
}

.site-header.scrolled {
    background: rgba(13, 27, 42, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 30px rgba(0,0,0,0.3);
}

.site-header.header--solid {
    background: var(--navy);
    box-shadow: 0 1px 20px rgba(0,0,0,0.2);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 90%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 1.6rem 0;
    transition: padding var(--duration-slow) var(--ease-smooth);
}

.site-header.scrolled .header-inner {
    padding: 1.1rem 0;
}

.site-logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.logo-name {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.5rem;
    color: var(--warm-white);
    letter-spacing: 0.02em;
    transition: color var(--duration) var(--ease-smooth);
}

.logo-tag {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

.site-nav ul {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.site-nav a {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(253, 250, 246, 0.8);
    position: relative;
    padding-bottom: 4px;
    transition: color var(--duration) var(--ease-smooth);
}

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

.site-nav a:hover,
.site-nav a.active {
    color: var(--warm-white);
}

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

#nav-contact {
    border: 1px solid rgba(201,168,76,0.5);
    padding: 0.45rem 1.2rem 0.45rem;
    border-radius: 2px;
    color: var(--gold-light) !important;
    transition: background var(--duration), border-color var(--duration);
}

#nav-contact::after { display: none; }

#nav-contact:hover {
    background: var(--gold);
    color: var(--navy) !important;
    border-color: var(--gold);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--warm-white);
    transition: transform var(--duration) var(--ease-smooth),
                opacity var(--duration) var(--ease-smooth);
    transform-origin: center;
}

.hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; }
.hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.03);
    transition: transform 8s ease-out;
}

.hero.is-loaded .hero__bg img {
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13,27,42,0.92) 0%,
        rgba(13,27,42,0.55) 40%,
        rgba(13,27,42,0.2) 70%,
        rgba(13,27,42,0.1) 100%
    );
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 6rem 0 5rem;
}

.hero__eyebrow {
    margin-bottom: 1.2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.3s forwards;
}

.hero__title {
    color: var(--warm-white);
    max-width: 750px;
    margin-bottom: 1.8rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.9s var(--ease-out) 0.5s forwards;
}

.hero__title em {
    color: var(--gold-light);
    font-style: italic;
}

.hero__tagline {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: rgba(245,240,232,0.85);
    max-width: 500px;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.7s forwards;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out) 0.9s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    color: rgba(245,240,232,0.5);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeIn 1.5s ease 1.5s both;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.2rem;
    border-radius: 2px;
    transition: all var(--duration) var(--ease-smooth);
    cursor: pointer;
    border: 1.5px solid transparent;
    white-space: nowrap;
}

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

.btn--gold:hover {
    background: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy);
    box-shadow: var(--shadow-gold);
    transform: translateY(-2px);
}

.btn--outline {
    background: transparent;
    color: var(--warm-white);
    border-color: rgba(245,240,232,0.5);
}

.btn--outline:hover {
    border-color: var(--warm-white);
    background: rgba(255,255,255,0.1);
}

.btn--navy {
    background: var(--navy);
    color: var(--warm-white);
    border-color: var(--navy);
}

.btn--navy:hover {
    background: var(--navy-light);
    border-color: var(--navy-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--outline-navy {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--outline-navy:hover {
    background: var(--navy);
    color: var(--warm-white);
}

/* ============================================================
   PHILOSOPHY STRIP
   ============================================================ */
.philosophy-strip {
    background: var(--navy);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.philosophy-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a84c' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.philosophy-strip blockquote {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    color: var(--warm-white);
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.philosophy-strip blockquote em {
    color: var(--gold);
    font-style: normal;
}

/* ============================================================
   FEATURED LISTINGS
   ============================================================ */
.featured-listings {
    padding: var(--spacing-xl) 0;
    background: var(--warm-white-2);
}

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

.section-header__text .eyebrow {
    margin-bottom: 0.8rem;
}

/* ============================================================
   LISTING CARDS
   ============================================================ */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
}

.listing-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--duration) var(--ease-smooth),
                box-shadow var(--duration) var(--ease-smooth);
    display: flex;
    flex-direction: column;
}

.listing-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.listing-card__image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.listing-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-smooth);
}

.listing-card:hover .listing-card__image img {
    transform: scale(1.07);
}

.listing-card__badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--navy);
    color: var(--warm-white);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 0.35rem 0.8rem;
    border-radius: 2px;
}

.listing-card__badge--sold   { background: var(--text-mid); }
.listing-card__badge--leased { background: var(--gold); color: var(--navy); }

.listing-card__body {
    padding: 1.6rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-card__price {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 0.3rem;
}

.listing-card__address {
    font-size: 0.875rem;
    color: var(--text-soft);
    margin-bottom: 1rem;
}

.listing-card__title {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.25rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.listing-card__features {
    display: flex;
    gap: 1.2rem;
    font-size: 0.825rem;
    color: var(--text-mid);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--linen-dark);
}

.listing-card__feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.listing-card__feature svg {
    opacity: 0.6;
    flex-shrink: 0;
}

/* ============================================================
   ABOUT PREVIEW (homepage)
   ============================================================ */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.about-preview__image {
    position: relative;
    overflow: hidden;
}

.about-preview__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.about-preview__image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, transparent 70%, var(--linen) 100%);
}

.about-preview__content {
    background: var(--linen);
    padding: 6rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-preview__content .eyebrow {
    margin-bottom: 1.2rem;
}

.about-preview__content .section-title {
    margin-bottom: 1.5rem;
    color: var(--navy);
}

.about-preview__content .lead {
    margin-bottom: 1.5rem;
}

.about-preview__content p {
    color: var(--text-mid);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================================
   CONTACT STRIP (homepage CTA)
   ============================================================ */
.contact-strip {
    background: var(--navy-mid);
    padding: 5rem 0;
    text-align: center;
    position: relative;
}

.contact-strip h2 {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--warm-white);
    margin-bottom: 1rem;
}

.contact-strip p {
    font-family: var(--font-display);
    font-style: italic;
    color: rgba(245,240,232,0.7);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
    background: var(--navy);
    padding: 10rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold), transparent);
    opacity: 0.4;
}

.page-hero__inner {
    position: relative;
    z-index: 1;
}

.page-hero__title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(2.5rem, 6vw, 5rem);
    color: var(--warm-white);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.page-hero__sub {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: 1.2rem;
    color: rgba(245,240,232,0.65);
}

/* ============================================================
   LISTINGS PAGE
   ============================================================ */
.listings-filters {
    background: var(--white);
    border-bottom: 1px solid var(--linen-dark);
    padding: 1.5rem 0;
    position: sticky;
    top: 72px;
    z-index: 100;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.filters-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.filter-group label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 500;
}

.filter-group select,
.filter-group input {
    border: 1px solid var(--linen-dark);
    border-radius: var(--radius-sm);
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
    color: var(--text-dark);
    background: var(--warm-white);
    min-width: 140px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%237a7a7a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.2rem;
    cursor: pointer;
    transition: border-color var(--duration);
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--gold);
}

.filters-form .btn {
    margin-top: 1.1rem;
}

/* ============================================================
   SINGLE LISTING
   ============================================================ */
/* --- Modern Gallery Layouts --- */
.listing-gallery-modern {
    background: var(--navy-mid);
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* --- Simplified and Premium Gallery System --- */
.property-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 3.5rem;
}

.property-gallery__main {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    box-shadow: var(--shadow-md);
    background: var(--navy-dark);
}

.property-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--duration-slow) var(--ease-smooth), opacity 0.3s ease;
}

.property-gallery__main img.fade-out {
    opacity: 0.3;
}

.property-gallery__main:hover img {
    transform: scale(1.015);
}

.property-gallery__zoom-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(13, 27, 42, 0.85);
    backdrop-filter: blur(8px);
    color: var(--warm-white);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.15);
    pointer-events: none;
    transition: background var(--duration), transform var(--duration);
    z-index: 2;
}

.property-gallery__main:hover .property-gallery__zoom-badge {
    background: var(--gold);
    color: var(--navy);
    transform: translateY(-2px);
    border-color: var(--gold);
}

.property-gallery__thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 12px;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) rgba(255,255,255,0.05);
}

/* Custom scrollbar for thumbnails */
.property-gallery__thumbs::-webkit-scrollbar {
    height: 6px;
}
.property-gallery__thumbs::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}
.property-gallery__thumbs::-webkit-scrollbar-thumb {
    background-color: var(--gold);
    border-radius: 3px;
}

.gallery-thumb-btn {
    flex: 0 0 120px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color var(--duration), opacity var(--duration), transform var(--duration);
    opacity: 0.65;
}

.gallery-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.gallery-thumb-btn.is-active {
    border-color: var(--gold);
    opacity: 1;
    transform: translateY(-2px);
}

/* --- Detail Layout Grid --- */
.listing-detail {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4.5rem;
    padding: var(--spacing-md) 0 var(--spacing-lg);
    align-items: start;
}

/* --- Redesigned Modern Header Info --- */
.listing-header-modern {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid var(--linen-dark);
    padding-bottom: 2rem;
}

.listing-meta-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.listing-id-badge {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    background: var(--linen);
    padding: 0.35rem 0.8rem;
    border-radius: 2px;
}

.listing-title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 1rem;
}

.listing-title-modern {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 400;
    color: var(--navy);
    line-height: 1.15;
    flex: 1;
}

.listing-price-modern {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.5vw, 2.6rem);
    font-weight: 400;
    color: var(--gold);
    white-space: nowrap;
    text-align: right;
}

.listing-address-modern {
    color: var(--text-mid);
    font-size: 1.05rem;
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* --- Redesigned Specs Cards --- */
.listing-specs-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.spec-card-modern {
    background: var(--warm-white-2);
    border: 1px solid var(--linen-dark);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
    min-width: 140px;
    transition: transform var(--duration) var(--ease-smooth),
                box-shadow var(--duration) var(--ease-smooth);
}

.spec-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
    border-color: var(--gold-light);
}

.spec-card-modern__icon {
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-card-modern__info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.spec-card-modern__value {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--navy);
}

.spec-card-modern__label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 500;
}

/* --- Story Narrative Layout --- */
.listing-description h2 {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.7rem;
    color: var(--navy);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.listing-description h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 1.5px;
    background: var(--gold);
}

.listing-story-intro {
    background: var(--linen-dark);
    border-left: 3px solid var(--gold);
    padding: 2.2rem 2.5rem;
    margin-bottom: 2.5rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    position: relative;
}

.story-quote-mark {
    position: absolute;
    top: -0.4rem;
    left: 1rem;
    font-family: var(--font-display);
    font-size: 4rem;
    color: rgba(201, 168, 76, 0.25);
    line-height: 1;
}

.listing-story-intro p {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-style: italic;
    font-weight: 300;
    color: var(--navy);
    line-height: 1.6;
    margin: 0;
}

.listing-story-body p {
    color: var(--text-mid);
    line-height: 1.9;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Sidebar contact card */
.listing-sidebar {
    position: sticky;
    top: 100px;
}

.agent-card {
    background: var(--navy);
    color: var(--warm-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.agent-card__header {
    background: var(--navy-mid);
    padding: 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.agent-card__photo {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    margin: 0 auto 1rem;
    border: 2px solid var(--gold);
}

.agent-card__name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--warm-white);
    margin-bottom: 0.2rem;
}

.agent-card__title {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
}

.agent-card__form {
    padding: 1.8rem;
}

.agent-card__form h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--warm-white);
    margin-bottom: 1.2rem;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group {
    margin-bottom: 1.2rem;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    border: 1px solid var(--linen-dark);
    border-radius: var(--radius-sm);
    padding: 0.85rem 1rem;
    font-size: 0.95rem;
    color: var(--text-dark);
    background: var(--white);
    transition: border-color var(--duration);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.1);
}

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

/* Dark form variant (agent card) */
.form--dark .form-group label {
    color: rgba(245,240,232,0.6);
}

.form--dark .form-group input,
.form--dark .form-group textarea {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
    color: var(--warm-white);
}

.form--dark .form-group input::placeholder,
.form--dark .form-group textarea::placeholder {
    color: rgba(245,240,232,0.3);
}

.form--dark .form-group input:focus,
.form--dark .form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.09);
    box-shadow: 0 0 0 3px rgba(201,168,76,0.15);
}

/* ============================================================
   ALERTS / FLASH MESSAGES
   ============================================================ */
.alert {
    padding: 1rem 1.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.alert--success {
    background: rgba(44,160,100,0.1);
    border: 1px solid rgba(44,160,100,0.3);
    color: #1a6639;
}

.alert--error {
    background: rgba(200,50,50,0.1);
    border: 1px solid rgba(200,50,50,0.25);
    color: #8b1a1a;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-story {
    display: grid;
    grid-template-columns: 580px 1fr;
    gap: 6rem;
    align-items: center;
    padding: var(--spacing-xl) 0;
}

.about-story__image {
    position: relative;
}

.about-story__image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-story__image::before {
    content: '';
    position: absolute;
    inset: -20px 20px 20px -20px;
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    opacity: 0.3;
    z-index: -1;
}

.about-story__text .eyebrow { margin-bottom: 1rem; }
.about-story__text .section-title {
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.about-story__text p {
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: var(--spacing-xl) 0;
}

.value-card {
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-md);
    border-top: 3px solid var(--gold);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--duration), transform var(--duration);
}

.value-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.value-card__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.value-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--navy);
    margin-bottom: 0.8rem;
}

.value-card p {
    color: var(--text-mid);
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 5rem;
    padding: var(--spacing-xl) 0;
    align-items: start;
}

.contact-info__item {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
    margin-bottom: 2rem;
}

.contact-info__icon {
    width: 48px;
    height: 48px;
    background: var(--linen);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--gold);
}

.contact-info__label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-soft);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.contact-info__value {
    font-family: var(--font-display);
    font-size: 1.1rem;
    color: var(--navy);
}

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

.contact-form-card {
    background: var(--navy);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.contact-form-card h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--warm-white);
    margin-bottom: 0.5rem;
}

.contact-form-card p {
    color: rgba(245,240,232,0.6);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--linen-dark);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-mid);
    transition: all var(--duration);
}

.pagination a:hover {
    background: var(--navy);
    color: var(--warm-white);
    border-color: var(--navy);
}

.pagination span.current {
    background: var(--navy);
    color: var(--warm-white);
    border-color: var(--navy);
}

/* ============================================================
   LIGHTBOX CAROUSEL
   ============================================================ */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 27, 42, 0.96);
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    user-select: none;
    opacity: 0;
    transition: opacity var(--duration) var(--ease-smooth);
}

.lightbox-overlay.is-open {
    display: flex;
    opacity: 1;
}

.lightbox-container {
    position: relative;
    width: 90vw;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: rgba(253, 250, 246, 0.6);
    font-size: 3rem;
    cursor: pointer;
    line-height: 1;
    z-index: 10002;
    transition: color var(--duration);
}

.lightbox-close:hover { color: var(--gold); }

/* Left/Right Arrows */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--warm-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all var(--duration) var(--ease-smooth);
}

.lightbox-nav:hover {
    background: var(--gold);
    color: var(--navy);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-nav--prev { left: 2.5rem; }
.lightbox-nav--next { right: 2.5rem; }

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

/* Status Indicator */
.lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: rgba(253, 250, 246, 0.6);
    font-family: var(--font-body);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    z-index: 10001;
}

/* Bottom thumbnails strip */
.lightbox-thumbs-container {
    width: 100%;
    max-width: 720px;
    padding: 1.5rem;
    margin-top: 1.5rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(201,168,76,0.3) transparent;
}

.lightbox-thumbs-container::-webkit-scrollbar {
    height: 4px;
}
.lightbox-thumbs-container::-webkit-scrollbar-thumb {
    background: rgba(201,168,76,0.3);
    border-radius: 2px;
}

.lightbox-thumbs-strip {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
}

.lightbox-thumb-item {
    width: 72px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.4;
    flex-shrink: 0;
    transition: all var(--duration);
}

.lightbox-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lightbox-thumb-item:hover {
    opacity: 0.8;
}

.lightbox-thumb-item.is-active {
    opacity: 1;
    border-color: var(--gold);
    transform: scale(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    color: rgba(245,240,232,0.7);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    padding: 5rem 0 4rem;
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.footer-logo .logo-name {
    font-size: 1.3rem;
}

.footer-tagline {
    font-family: var(--font-display);
    font-style: italic;
    color: rgba(245,240,232,0.5);
    font-size: 1rem;
}

.site-footer h4 {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 0.65rem;
}

.footer-links a {
    color: rgba(245,240,232,0.65);
    font-size: 0.9rem;
    transition: color var(--duration);
}

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

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

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

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(245,240,232,0.6);
    transition: all var(--duration);
}

.social-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 1.8rem 0;
    font-size: 0.8rem;
    color: rgba(245,240,232,0.35);
    letter-spacing: 0.05em;
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   KEYFRAME ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(25px); }
    to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(0.7); }
}

/* ============================================================
   RESPONSIVE — Tablet
   ============================================================ */
@media (max-width: 1024px) {
    .about-preview { grid-template-columns: 1fr; }
    .about-preview__image { max-height: 500px; }
    .about-preview__image::after { display: none; }
    .about-preview__content { padding: 4rem 3rem; }

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

    .property-gallery__main {
        height: 400px;
    }

    .listing-detail {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .listing-sidebar { position: static; }

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

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

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

/* ============================================================
   RESPONSIVE — Mobile
   ============================================================ */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2.5rem;
    }

    .hamburger { display: flex; }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--navy);
        padding: 6rem 2.5rem 3rem;
        transition: right var(--duration-slow) var(--ease-smooth);
        box-shadow: -10px 0 40px rgba(0,0,0,0.3);
        z-index: 999;
    }

    .site-nav.is-open {
        right: 0;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .site-nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .site-nav a {
        display: block;
        padding: 1rem 0;
        font-size: 0.9rem;
    }

    #nav-contact {
        margin-top: 1.5rem;
        display: inline-flex;
        border-radius: 2px;
    }

    .hero__content { padding: 5rem 0 4rem; }

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

    .property-gallery__main {
        height: 300px;
    }
    .gallery-thumb-btn {
        flex: 0 0 90px;
        height: 60px;
    }
    .listing-title-price-row {
        flex-direction: column;
        gap: 0.5rem;
    }
    .listing-price-modern {
        text-align: left;
    }
    .listing-specs-modern {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
    }
    .spec-card-modern {
        min-width: 0;
        padding: 0.8rem 1rem;
        flex: 1;
    }
    .listing-story-intro {
        padding: 1.5rem;
    }
    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
    .lightbox-nav--prev { left: 1rem; }
    .lightbox-nav--next { right: 1rem; }

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

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

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3.5rem 0 3rem;
    }

    .hero__actions { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }

    .filters-form { flex-direction: column; align-items: stretch; }
    .filter-group select, .filter-group input { min-width: unset; }
}
