/* ===========================================================================
   Clark Power — REMAX Mid-Island Realty
   Upscale, editorial real-estate theme. Self-contained to /cp/.
   =========================================================================== */

:root {
    --ink: #14110d;
    --charcoal: #1f1b16;
    --graphite: #33302b;
    --gold: #b08d57;
    --gold-2: #c9a86a;
    --gold-soft: #e8dcc6;
    --cream: #f7f3ec;
    --paper: #ffffff;
    --line: #e7dfd2;
    --muted: #857d71;
    --text: #2a2620;

    --shadow-sm: 0 6px 18px rgba(20, 17, 13, 0.06);
    --shadow-md: 0 20px 50px rgba(20, 17, 13, 0.12);
    --serif: "Cormorant Garamond", Georgia, serif;
    --sans: "Jost", "Segoe UI", system-ui, sans-serif;
    --wrap: 1240px;
    --header-h: 88px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--sans);
    font-weight: 300;
    color: var(--text);
    background: var(--cream);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.1;
    color: var(--ink);
    margin: 0 0 0.5em;
    letter-spacing: 0.01em;
}

p { margin: 0 0 1rem; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 32px;
}

.eyebrow {
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1rem;
    display: inline-block;
}

.section {
    padding: 110px 0;
}
.section--tight { padding: 72px 0; }
.section--cream { background: var(--cream); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--gold-soft); }
.section--ink h1, .section--ink h2, .section--ink h3 { color: var(--paper); }

.section-head { max-width: 640px; margin: 0 auto 64px; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-head--left { margin-left: 0; text-align: left; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 16px 34px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.35s ease;
    background: none;
}
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--ink); color: var(--gold-2); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--ghost { border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn--block { width: 100%; justify-content: center; }

/* ===========================================================================
   Header
   =========================================================================== */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1100;
    transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
    padding: 10px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: calc(var(--header-h) - 20px);
}
.brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    line-height: 1.1;
}
.brand__logo {
    width: 42px;
    height: auto;
    flex-shrink: 0;
    display: block;
}
.brand__text {
    display: flex;
    flex-direction: column;
}
.brand__name {
    font-family: var(--serif);
    font-size: 1.7rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: 0.02em;
    transition: color 0.4s ease;
}
.brand__sub {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-top: 3px;
}
.site-nav { display: flex; align-items: center; gap: 38px; }
.site-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.85);
    font-weight: 400;
    transition: color 0.3s ease;
    position: relative;
}
.site-nav a:hover, .site-nav a.is-active { color: #fff; }
.site-nav a:not(.nav-cta).is-active::after {
    content: "";
    position: absolute;
    left: 0; bottom: -8px;
    width: 100%; height: 1px;
    background: var(--gold);
}
.nav-cta {
    border: 1px solid rgba(255,255,255,0.4);
    padding: 11px 22px !important;
    color: #fff !important;
}
.nav-cta:hover { background: var(--gold); border-color: var(--gold); }

/* scrolled state */
.site-header.is-solid {
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}
.site-header.is-solid .brand__name { color: var(--ink); }
.site-header.is-solid .site-nav a { color: var(--graphite); }
.site-header.is-solid .site-nav a:hover,
.site-header.is-solid .site-nav a.is-active { color: var(--ink); }
.site-header.is-solid .nav-cta { border-color: var(--ink); color: var(--ink) !important; }
.site-header.is-solid .nav-cta:hover { background: var(--gold); border-color: var(--gold); color: #fff !important; }
.site-header.is-solid .nav-toggle span { background: var(--ink); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 6px;
}
.nav-toggle span {
    width: 26px; height: 2px;
    background: #fff;
    transition: all 0.3s ease;
}

.site-main { min-height: 60vh; }

/* ===========================================================================
   Hero
   =========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    overflow: hidden;
}
.hero__bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20,17,13,0.55) 0%, rgba(20,17,13,0.35) 40%, rgba(20,17,13,0.75) 100%),
        url("https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
    transform: scale(1.05);
}
.hero__inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 40px 44px 44px;
    text-align: center;
    background: rgba(20, 17, 13, 0.52);
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(176, 141, 87, 0.55);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    overflow: hidden;
}
.hero__inner-shine {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    padding: 1px;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
            mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
            mask-composite: exclude;
}
.hero__inner-shine span {
    position: absolute;
    inset: -60%;
    background: conic-gradient(
        from 210deg,
        rgba(176, 141, 87, 0.2) 0deg,
        rgba(176, 141, 87, 0.35) 50deg,
        rgba(232, 220, 198, 0.75) 100deg,
        rgba(255, 246, 220, 0.98) 128deg,
        var(--gold-2) 145deg,
        rgba(176, 141, 87, 0.4) 175deg,
        rgba(176, 141, 87, 0.2) 230deg,
        rgba(176, 141, 87, 0.25) 360deg
    );
    animation: hero-inner-sheen 7s linear infinite;
}
.hero__inner > *:not(.hero__inner-shine) {
    position: relative;
    z-index: 1;
}
@keyframes hero-inner-sheen {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__inner-shine span { animation: none; }
}
.hero .eyebrow { color: var(--gold-2); }
.hero h1 {
    color: #fff;
    font-size: clamp(2.4rem, 5.2vw, 4.4rem);
    font-weight: 500;
    margin-bottom: 0.3em;
    white-space: nowrap;
}
.hero p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.92);
    font-weight: 300;
    max-width: 560px;
    margin: 0 auto 2.4rem;
}
.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}
.hero__scroll {
    position: absolute;
    bottom: 34px; left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    font-size: 0.68rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hero__scroll::after {
    content: "";
    width: 1px; height: 46px;
    background: linear-gradient(var(--gold-2), transparent);
}

/* ---- Hero search bar ---- */
.hero-search {
    position: relative;
    z-index: 3;
    margin-top: 36px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    padding: 10px;
    display: flex;
    gap: 8px;
    max-width: 100%;
    flex-wrap: wrap;
}
.hero-search input, .hero-search select {
    flex: 1;
    min-width: 140px;
    background: rgba(255,255,255,0.92);
    border: 0;
    padding: 15px 16px;
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--ink);
}
.hero-search .btn { flex: 0 0 auto; }

/* ===========================================================================
   Stats strip
   =========================================================================== */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat__num {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--gold);
    line-height: 1;
}
.stat__label {
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
}

/* ===========================================================================
   Property cards
   =========================================================================== */
.prop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 34px;
}
.prop-card {
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}
.prop-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.prop-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--graphite);
}
.prop-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.prop-card:hover .prop-card__media img { transform: scale(1.06); }
.prop-card__tag {
    position: absolute;
    top: 16px; left: 16px;
    background: var(--gold);
    color: #fff;
    font-size: 0.62rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 7px 12px;
}
.prop-card__price {
    position: absolute;
    bottom: 0; left: 0;
    background: rgba(20,17,13,0.82);
    color: #fff;
    font-family: var(--serif);
    font-size: 1.5rem;
    padding: 10px 18px;
}
.prop-card__body { padding: 24px 26px 28px; }
.prop-card__addr {
    font-family: var(--serif);
    font-size: 1.35rem;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.25;
}
.prop-card__meta {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-transform: uppercase;
}
.prop-card__type {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.center-cta { text-align: center; margin-top: 64px; }

/* ===========================================================================
   Split / feature blocks
   =========================================================================== */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}
.split--reverse .split__media { order: 2; }
.split__media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__media::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255,255,255,0.35);
    pointer-events: none;
}
.split__media--portrait {
    background: #f3f1ed;
}
.split__media--portrait img {
    object-fit: cover;
    object-position: center 12%;
}
.split__media--portrait::after {
    border-color: rgba(20, 17, 13, 0.08);
}
.split__body h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.split__body p { color: var(--muted); font-size: 1.05rem; }
.split__body .btn { margin-top: 18px; }
.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}
.btn-row .btn { margin-top: 0; }
.btn--ghost-ink {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}
.btn--ghost-ink:hover {
    background: var(--ink);
    color: #fff;
}

.signature {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.6rem;
    color: var(--gold);
    margin-top: 24px;
}

/* ===========================================================================
   Areas
   =========================================================================== */
.area-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.area-card {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 30px;
}
.area-card img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}
.area-card::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20,17,13,0) 30%, rgba(20,17,13,0.8) 100%);
}
.area-card:hover img { transform: scale(1.07); }
.area-card__name {
    position: relative;
    z-index: 2;
    font-family: var(--serif);
    font-size: 1.7rem;
}
.area-card__name span {
    display: block;
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-top: 4px;
}

/* ===========================================================================
   CTA band
   =========================================================================== */
.cta-band {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 120px 0;
    background:
        linear-gradient(rgba(20,17,13,0.82), rgba(20,17,13,0.82)),
        url("https://images.unsplash.com/photo-1512917774080-9991f1c4c750?auto=format&fit=crop&w=2000&q=80") center/cover fixed;
}
.cta-band h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.4rem); }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto 32px; }

/* ===========================================================================
   Page banner (interior pages)
   =========================================================================== */
.page-banner {
    position: relative;
    padding: calc(var(--header-h) + 90px) 0 90px;
    color: #fff;
    text-align: center;
    background:
        linear-gradient(rgba(20,17,13,0.6), rgba(20,17,13,0.7)),
        url("https://images.unsplash.com/photo-1600607687939-ce8a6c25118c?auto=format&fit=crop&w=2000&q=80") center/cover no-repeat;
}
.page-banner h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4rem); }
.page-banner p { color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto; }

/* ===========================================================================
   Prose (content pages)
   =========================================================================== */
.prose { max-width: 760px; }
.prose h2 { font-size: 2rem; margin-top: 2em; }
.prose h3 { font-size: 1.4rem; margin-top: 1.6em; }
.prose p { color: var(--text); font-size: 1.05rem; }
.prose ul { padding-left: 1.2em; color: var(--text); }
.prose li { margin-bottom: 0.6rem; }
.prose blockquote {
    border-left: 2px solid var(--gold);
    padding: 6px 0 6px 26px;
    margin: 2em 0;
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--graphite);
}

/* ---- Pull quote ---- */
.pull-quote {
    padding: 90px 0;
    text-align: center;
    background: var(--cream);
}
.pull-quote blockquote {
    margin: 0 auto;
    max-width: 720px;
}
.pull-quote blockquote p {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    line-height: 1.2;
    color: var(--ink);
    margin: 0 0 1rem;
}
.pull-quote cite {
    font-family: var(--sans);
    font-style: normal;
    font-size: 0.72rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold);
}

/* ---- Value grid (about / living) ---- */
.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px 40px;
}
.value h3 {
    font-size: 1.45rem;
    margin-bottom: 0.4em;
}
.value p {
    color: var(--muted);
    margin: 0;
    font-size: 0.98rem;
}

.steps { counter-reset: step; display: grid; gap: 30px; margin-top: 40px; }
.step {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 24px;
    align-items: start;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--gold);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; }

/* ===========================================================================
   Listings page
   =========================================================================== */
.listing-layout { display: grid; grid-template-columns: 300px 1fr; gap: 48px; }
.filters {
    background: var(--paper);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 16px);
}
.filters h3 { font-size: 1.2rem; }
.filters label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 18px 0 6px;
}
.filters input, .filters select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    background: var(--cream);
    font-family: var(--sans);
    font-size: 0.9rem;
    color: var(--ink);
}
.filters .chk { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.filters .chk input { width: auto; }
.filters .chk label { margin: 0; }
.area-checks { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.area-checks .chk { margin-top: 0; }

.listing-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}
.listing-head .count { color: var(--muted); font-size: 0.85rem; letter-spacing: 0.08em; }

.listing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; }

.pagination { display: flex; justify-content: center; gap: 10px; margin-top: 56px; }
.pagination a, .pagination span {
    min-width: 46px; height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--graphite);
    transition: all 0.3s ease;
}
.pagination a:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.pagination .is-current { background: var(--gold); color: #fff; border-color: var(--gold); }

.empty-state { text-align: center; padding: 80px 20px; color: var(--muted); }

/* ===========================================================================
   Property detail
   =========================================================================== */
.pd-gallery {
    padding-top: var(--header-h);
    background: var(--ink);
}
.pd-hero {
    position: relative;
    height: 68vh;
    min-height: 460px;
    background: var(--graphite);
    overflow: hidden;
}
.pd-hero img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pd-hero__nav {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    pointer-events: none;
}
.pd-hero__nav button {
    pointer-events: auto;
    width: 56px; height: 56px;
    border: 1px solid rgba(255,255,255,0.5);
    background: rgba(20,17,13,0.35);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pd-hero__nav button:hover { background: var(--gold); border-color: var(--gold); }
.pd-count {
    position: absolute;
    right: 24px; bottom: 24px;
    background: rgba(20,17,13,0.7);
    color: #fff;
    padding: 8px 16px;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}
.pd-thumbs {
    display: flex;
    gap: 8px;
    padding: 8px;
    overflow-x: auto;
    background: var(--charcoal);
}
.pd-thumbs img {
    width: 108px; height: 74px;
    object-fit: cover;
    opacity: 0.5;
    cursor: pointer;
    transition: opacity 0.3s ease;
    flex: 0 0 auto;
}
.pd-thumbs img.is-active, .pd-thumbs img:hover { opacity: 1; }

.pd-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 56px;
    padding: 72px 0;
}
.pd-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 6px; }
.pd-sub { color: var(--muted); letter-spacing: 0.06em; margin-bottom: 24px; }
.pd-price {
    font-family: var(--serif);
    font-size: 2.6rem;
    color: var(--gold);
    margin-bottom: 30px;
}
.pd-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-bottom: 40px;
}
.pd-fact { background: var(--paper); padding: 24px 16px; text-align: center; }
.pd-fact strong { display: block; font-family: var(--serif); font-size: 1.8rem; color: var(--ink); }
.pd-fact span { font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.pd-section { margin-bottom: 48px; }
.pd-section h3 {
    font-size: 1.5rem;
    padding-bottom: 14px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--line);
}
.info-table { width: 100%; }
.info-table .row {
    display: flex;
    justify-content: space-between;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}
.info-table .row span:first-child { color: var(--muted); }
.info-table .row span:last-child { color: var(--ink); font-weight: 400; }

.contact-map {
    position: relative;
    min-height: 420px;
    background: var(--cream);
    border: 1px solid var(--line);
    overflow: hidden;
}
.contact-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    border: 0;
}
.contact-map__link {
    display: inline-block;
    margin-top: 14px;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 500;
}
.contact-map__link:hover { color: var(--ink); }

.feature-cols {
    columns: 2;
    column-gap: 40px;
}
.feature-cols .feat {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    break-inside: avoid;
    font-size: 0.92rem;
}
.feature-cols .feat span:first-child { color: var(--muted); }

.room-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.room {
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 16px 18px;
}
.room__name { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.room__dim { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }

#pd-map {
    height: 380px;
    border: 1px solid var(--line);
    position: relative;
    z-index: 0;
    isolation: isolate;
}

/* Photo grid under map */
.pd-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
.pd-photo-grid__item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--ink);
    aspect-ratio: 4 / 3;
    overflow: hidden;
    cursor: zoom-in;
}
.pd-photo-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
    opacity: 0.92;
}
.pd-photo-grid__item:hover img {
    transform: scale(1.05);
    opacity: 1;
}

/* Fullscreen lightbox */
body.pd-lightbox-open { overflow: hidden; }
.pd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 10, 8, 0.94);
    padding: 56px 72px;
}
.pd-lightbox[hidden] { display: none !important; }
.pd-lightbox__img {
    max-width: 100%;
    max-height: calc(100vh - 112px);
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.pd-lightbox__close,
.pd-lightbox__nav {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(20, 17, 13, 0.55);
    color: #fff;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
}
.pd-lightbox__close:hover,
.pd-lightbox__nav:hover {
    background: var(--gold);
    border-color: var(--gold);
}
.pd-lightbox__close {
    top: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    font-size: 1.8rem;
    line-height: 1;
}
.pd-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2rem;
    line-height: 1;
}
.pd-lightbox__nav--prev { left: 18px; }
.pd-lightbox__nav--next { right: 18px; }
.pd-lightbox__count {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
}

/* sticky contact card */
.pd-aside { align-self: start; position: sticky; top: calc(var(--header-h) + 16px); }
.agent-card {
    background: var(--ink);
    color: #fff;
    padding: 40px 34px;
    text-align: center;
}
.agent-card .name { font-family: var(--serif); font-size: 1.7rem; color: #fff; }
.agent-card .role { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 24px; }
.agent-card .line { color: rgba(255,255,255,0.8); font-size: 0.95rem; margin: 4px 0; }
.agent-card .divider { height: 1px; background: rgba(255,255,255,0.15); margin: 24px 0; }
.agent-card .btn { margin-top: 10px; }

/* ===========================================================================
   Footer
   =========================================================================== */
.site-footer {
    position: relative;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.72);
    padding: 80px 0 0;
}
.footer-top-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    overflow: hidden;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(176, 141, 87, 0.35) 12%,
        rgba(176, 141, 87, 0.55) 50%,
        rgba(176, 141, 87, 0.35) 88%,
        transparent 100%
    );
}
.footer-top-line span {
    position: absolute;
    top: 0;
    left: 0;
    width: 28%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(232, 220, 198, 0.35) 25%,
        rgba(255, 246, 220, 0.95) 50%,
        var(--gold-2) 65%,
        transparent 100%
    );
    animation: footer-line-sheen 4.5s ease-in-out infinite;
}
@keyframes footer-line-sheen {
    0%   { transform: translateX(-120%); }
    100% { transform: translateX(460%); }
}
@media (prefers-reduced-motion: reduce) {
    .footer-top-line span { animation: none; left: 36%; opacity: 0.7; }
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    padding-bottom: 56px;
}
.footer-brand__name {
    font-family: var(--serif);
    font-size: 1.9rem;
    color: #fff;
    line-height: 1.1;
}
.footer-brand__title {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-2);
    margin-top: 6px;
}
.footer-tagline {
    margin-top: 18px;
    max-width: 360px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
}
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    margin-bottom: 22px;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.footer-social a:hover {
    color: var(--ink);
    background: #fff;
    border-color: #fff;
}
.footer-cabins {
    margin-top: 0;
}
.footer-cabins a {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}
.footer-cabins a:hover { color: var(--gold-2); }
.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 20px;
}
.footer-legal a {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.footer-legal a:hover { color: var(--gold-2); }
.footer-social--ink a {
    color: var(--ink);
    border-color: rgba(20, 17, 13, 0.22);
}
.footer-social--ink a:hover {
    color: #fff;
    background: var(--ink);
    border-color: var(--ink);
}
.footer-col h4 {
    color: #fff;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
    padding: 6px 0;
    transition: color 0.3s ease;
}
.footer-col a:hover { color: var(--gold-2); }
.footer-office {
    display: inline-block;
    margin-top: 0;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.85);
}
.footer-addr {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.6);
}
.footer-brand__logo {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-top: 18px;
    margin-bottom: 10px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 26px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================================================================
   Scroll to top
   =========================================================================== */
.scroll-top {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 90;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background 0.3s ease;
    box-shadow: var(--shadow-md);
}
.scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-top:hover {
    background: var(--gold);
    border-color: var(--gold);
}

/* Cookie consent */
.cookie-banner {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 24px;
    z-index: 1500;
    width: calc(100% - 64px);
    max-width: var(--wrap);
    margin: 0;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.9);
    border: 2px solid #fff;
    box-shadow: var(--shadow-md);
    padding: 22px 28px;
}
.cookie-banner[hidden] { display: none !important; }
.cookie-banner p {
    margin: 0 0 16px;
    font-size: 0.92rem;
    line-height: 1.5;
}
.cookie-banner a { color: var(--gold-2); text-decoration: underline; }
.cookie-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}
.cookie-banner__link {
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75) !important;
    text-decoration: none !important;
}
.cookie-banner__link:hover { color: #fff !important; }

@media (max-width: 560px) {
    .cookie-banner {
        width: calc(100% - 40px);
        bottom: 16px;
        padding: 18px 20px;
        border-width: 2px;
    }
}

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
    .scroll-top { right: 16px; bottom: 16px; width: 44px; height: 44px; }
}

/* ===========================================================================
   Responsive
   =========================================================================== */
@media (max-width: 1024px) {
    .prop-grid, .area-grid { grid-template-columns: repeat(2, 1fr); }
    .value-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 28px; }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split--reverse .split__media { order: 0; }
    .listing-layout { grid-template-columns: 1fr; }
    .filters { position: static; }
    .pd-layout { grid-template-columns: 1fr; }
    .pd-aside { position: static; }
}

@media (max-width: 860px) {
    .site-nav {
        position: fixed;
        top: 0; right: 0;
        height: 100vh;
        width: min(340px, 82vw);
        background: var(--ink);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        padding: 48px;
        gap: 26px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 120;
    }
    .site-nav.is-open { transform: translateX(0); }
    .site-nav a { color: rgba(255,255,255,0.85) !important; font-size: 1rem; }
    .nav-toggle { display: flex; z-index: 130; }
    .nav-toggle.is-open span { background: #fff; }
    .nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
    .nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .stats { grid-template-columns: repeat(2, 1fr); gap: 36px; }
    .section { padding: 72px 0; }
    .pd-facts { grid-template-columns: repeat(2, 1fr); }
    .feature-cols { columns: 1; }
    .pd-photo-grid { grid-template-columns: repeat(2, 1fr); }
    .pd-lightbox { padding: 64px 20px 72px; }
    .pd-lightbox__nav { width: 44px; height: 44px; font-size: 1.6rem; }
    .pd-lightbox__nav--prev { left: 10px; }
    .pd-lightbox__nav--next { right: 10px; }
}

@media (max-width: 560px) {
    .wrap { padding: 0 20px; }
    .prop-grid, .area-grid, .listing-grid, .room-grid, .value-grid { grid-template-columns: 1fr; }
    .pd-photo-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hero__inner { padding: 28px 22px 30px; }
    .hero h1 { font-size: clamp(1.55rem, 7.5vw, 2.4rem); }
    .hero-search { flex-direction: column; }
    .hero-search .btn { width: 100%; justify-content: center; }
}
