/* =========================================================
   Pre-Loved Piper — public site
   Palette and typography follow the supplied design concept.
   Fonts are self-hosted (variable woff2, latin subset).
   ========================================================= */

@font-face {
    font-family: "Jost";
    src: url("/assets/fonts/jost.woff2") format("woff2-variations"),
         url("/assets/fonts/jost.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("/assets/fonts/cormorant.woff2") format("woff2-variations"),
         url("/assets/fonts/cormorant.woff2") format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --navy: #122a3f;
    --navy-deep: #0c1f31;
    --navy-soft: #1d3b55;
    --slate: #8fa3b8;
    --cream: #f7f3ea;
    --warm-white: #fbf9f5;
    --sand: #eee6d6;
    --gold: #c9a86a;
    --gold-deep: #b08f52;
    --ink: #1e2a35;
    --muted: #5f6d7a;
    --line: #e3ddd0;
    --sold: #8d96a0;
    --radius: 6px;
    --shadow: 0 18px 45px -28px rgba(18, 42, 63, 0.45);
    --font-serif: "Cormorant Garamond", "Times New Roman", serif;
    --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-weight: 300;
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--warm-white);
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    font-weight: 500;
    line-height: 1.15;
    color: var(--navy);
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

.container {
    width: min(1240px, calc(100% - 3rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--gold);
    color: var(--navy);
    padding: .75rem 1.25rem;
    z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------------- Buttons ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    font-family: var(--font-sans);
    font-size: .8rem;
    font-weight: 500;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 1rem 1.9rem;
    border: 1px solid transparent;
    border-radius: 2px;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .65rem 1.25rem; font-size: .72rem; }
.btn-gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-deep); border-color: var(--gold-deep); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.btn-block { width: 100%; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------------- Header ---------------- */

.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 50;
    background: linear-gradient(to bottom, rgba(8, 22, 35, .82), rgba(8, 22, 35, 0));
    transition: background .3s ease, box-shadow .3s ease, position .3s ease;
}
.site-header.is-solid, body.page-inner .site-header {
    position: sticky;
    top: 0;
    background: var(--navy);
    box-shadow: 0 1px 0 rgba(255,255,255,.08);
}
body.page-inner { padding-top: 0; }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: 92px;
}
body.page-inner .header-inner { min-height: 76px; }

.brand img { width: 230px; height: auto; }

.primary-nav { display: flex; gap: 2rem; }
.primary-nav a {
    position: relative;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255,255,255,.86);
    padding: .4rem 0;
}
.primary-nav a:hover { color: #fff; }
.primary-nav a.active::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: var(--gold);
}

.header-actions { display: flex; align-items: center; gap: 1rem; }

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 2px;
    cursor: pointer;
}
.nav-toggle span { display: block; width: 20px; height: 1.5px; background: #fff; }

.mobile-nav {
    background: var(--navy-deep);
    padding: 1rem 1.5rem 1.75rem;
    display: grid;
    gap: .25rem;
}
.mobile-nav[hidden] { display: none; }
@media (min-width: 861px) { .mobile-nav { display: none !important; } }
.mobile-nav a {
    color: rgba(255,255,255,.9);
    padding: .85rem 0;
    border-bottom: 1px solid rgba(255,255,255,.09);
    font-size: .85rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.mobile-nav .btn { margin-top: 1rem; border-bottom: 0; }

/* ---------------- Hero ---------------- */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(88vh, 880px);
    padding: 9rem 0 6rem;
    color: #fff;
    background: var(--navy);
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(95deg, rgba(6, 18, 30, .9) 0%, rgba(8, 22, 35, .74) 38%, rgba(8, 22, 35, .32) 68%, rgba(8, 22, 35, .12) 100%);
}
.hero-content::before {
    content: "";
    position: absolute;
    inset: -2.5rem -3rem;
    background: radial-gradient(ellipse at 30% 50%, rgba(6, 18, 30, .55), rgba(6, 18, 30, 0) 70%);
    z-index: -1;
    pointer-events: none;
}
.hero-content { position: relative; }
.hero-inner { position: relative; z-index: 1; width: min(1240px, calc(100% - 3rem)); margin-inline: auto; }
.hero-content { max-width: 620px; }
.hero h1 { color: #fff; font-weight: 400; letter-spacing: -.01em; margin-bottom: 1rem; }
.hero .hero-sub { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 34rem; margin-bottom: 2.2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------------- Icon strip ---------------- */

.feature-strip { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.07); }
.feature-strip .container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 1.9rem 0;
}
.feature-strip .feature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    font-size: .9rem;
    letter-spacing: .06em;
    position: relative;
}
.feature-strip .feature + .feature::before {
    content: "";
    position: absolute;
    left: 0; top: 50%;
    transform: translateY(-50%);
    height: 34px; width: 1px;
    background: rgba(255,255,255,.15);
}
.feature-strip .icon { width: 26px; height: 26px; color: var(--gold); flex: none; }

/* ---------------- Sections ---------------- */

.section { padding: 5.5rem 0; }
.section-tight { padding: 3.5rem 0; }
.section-cream { background: var(--cream); }
.section-sand { background: var(--sand); }
.section-dark { background: var(--navy); color: rgba(255,255,255,.85); }
.section-dark h2 { color: #fff; }

.section-head { text-align: center; margin-bottom: 3rem; }
.section-head .eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: .9rem;
}
.section-head h2 { margin-bottom: .75rem; }
.section-head p { color: var(--muted); max-width: 46rem; margin-inline: auto; }
.section-head::after {
    content: "";
    display: block;
    width: 46px; height: 2px;
    background: var(--gold);
    margin: 1.25rem auto 0;
}

/* ---------------- Boat grid/cards ---------------- */

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

.boat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px -26px rgba(18, 42, 63, .5);
    transition: transform .25s ease, box-shadow .25s ease;
}
.boat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.boat-card-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.boat-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.boat-card:hover .boat-card-media img { transform: scale(1.03); }
.boat-card-placeholder {
    display: grid; place-items: center; height: 100%;
    color: var(--muted); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
}
.boat-card-body { padding: 1.35rem 1.5rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.boat-card-title { font-size: 1.55rem; margin-bottom: .3rem; }
.boat-card-model { color: var(--muted); font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 1.1rem; }
.boat-card-model span { color: var(--line); margin: 0 .4rem; }
.boat-card-foot {
    margin-top: auto;
    display: flex; align-items: center; justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: .95rem;
}
.boat-price { font-family: var(--font-serif); font-size: 1.35rem; color: var(--navy); }
.boat-card-arrow {
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--navy);
}
.boat-card-arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.boat-card-arrow .icon { width: 18px; height: 18px; }

.badge {
    position: absolute;
    top: 1rem; left: 1rem;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 500;
    padding: .4rem .75rem;
    border-radius: 2px;
    background: rgba(255,255,255,.94);
    color: var(--navy);
    box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.badge-available { background: rgba(38, 92, 70, .92); color: #fff; }
.badge-coming { background: rgba(201, 168, 106, .95); color: var(--navy-deep); }
.badge-offer { background: rgba(120, 84, 40, .94); color: #fff; }
.badge-sold { background: rgba(40, 52, 64, .92); color: #fff; }

.center-actions { text-align: center; margin-top: 3rem; }

/* ---------------- Split content (Piper Difference) ---------------- */

.split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.split-media { position: relative; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.eyebrow {
    display: inline-block;
    font-size: .72rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--gold-deep);
    margin-bottom: .9rem;
}
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .8rem; }
.check-list li { display: flex; gap: .8rem; align-items: flex-start; font-size: .98rem; }
.check-list .icon { width: 20px; height: 20px; flex: none; color: var(--gold-deep); margin-top: .18rem; }

/* ---------------- Page headers ---------------- */

.page-hero {
    background: var(--navy);
    color: #fff;
    padding: 3.2rem 0 3.4rem;
}
.page-hero h1 { color: #fff; margin-bottom: .4rem; }
.page-hero p { color: rgba(255,255,255,.75); margin: 0; max-width: 46rem; }
.page-hero .breadcrumb { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 1.2rem; }
.page-hero .breadcrumb a:hover { color: var(--gold); }
.page-hero .breadcrumb span { margin: 0 .5rem; }

/* ---------------- Listings / filters ---------------- */

.listing-bar {
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 1rem 0;
    position: sticky;
    top: 76px;
    z-index: 20;
}
.listing-controls { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.select-wrap { position: relative; }
.select-wrap select {
    appearance: none;
    font-family: var(--font-sans);
    font-size: .8rem;
    letter-spacing: .05em;
    padding: .7rem 2.5rem .7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    min-width: 145px;
    cursor: pointer;
}
.select-wrap::after {
    content: "";
    position: absolute; right: 1rem; top: 50%;
    width: 7px; height: 7px;
    border-right: 1px solid var(--navy);
    border-bottom: 1px solid var(--navy);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}
.view-toggle { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.view-toggle button {
    display: grid; place-items: center;
    width: 42px; height: 40px;
    background: #fff; border: 0; cursor: pointer; color: var(--muted);
}
.view-toggle button + button { border-left: 1px solid var(--line); }
.view-toggle button.is-active { background: var(--navy); color: #fff; }
.view-toggle .icon { width: 18px; height: 18px; }

.listing-results-note { font-size: .85rem; color: var(--muted); }

.boat-grid.list-view { grid-template-columns: 1fr; }
.boat-grid.list-view .boat-card { flex-direction: row; }
.boat-grid.list-view .boat-card-media { width: 42%; aspect-ratio: 16 / 10; flex: none; }
.boat-grid.list-view .boat-card-body { justify-content: center; }

.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    background: #fff;
}

/* ---------------- Boat detail ---------------- */

.boat-detail { padding: 3rem 0 5rem; }
.boat-detail-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
    align-items: start;
    margin-bottom: 1.6rem;
}
.boat-detail h1 { margin-bottom: .35rem; }
.boat-detail .boat-meta { color: var(--muted); font-size: .9rem; letter-spacing: .06em; text-transform: uppercase; }
.boat-detail .boat-meta span { margin: 0 .55rem; color: var(--line); }
.boat-detail-side { text-align: right; }
.boat-detail-side .price { font-family: var(--font-serif); font-size: 2rem; color: var(--navy); line-height: 1.2; }
.boat-detail-side .price-note { color: var(--muted); font-size: .85rem; margin-bottom: 1rem; }
.boat-detail-side .actions { display: grid; gap: .6rem; min-width: 250px; }

.badge-inline {
    display: inline-block;
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 500;
    padding: .38rem .7rem;
    border-radius: 2px;
    vertical-align: middle;
}
.badge-inline.badge-sold { background: var(--sold); color: #fff; }
.badge-inline.badge-available { background: #2c6a51; color: #fff; }
.badge-inline.badge-coming { background: var(--gold); color: var(--navy-deep); }
.badge-inline.badge-offer { background: #785428; color: #fff; }
.badge-inline.badge-draft { background: #ddd; color: #444; }

/* Gallery */
.gallery { margin-bottom: 2.5rem; }
.gallery-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--sand);
    aspect-ratio: 16 / 9;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: rgba(10, 24, 36, .58);
    color: #fff;
    border: 0; border-radius: 50%;
    cursor: pointer;
}
.gallery-nav:hover { background: rgba(10, 24, 36, .85); }
.gallery-nav.prev { left: 1rem; }
.gallery-nav.next { right: 1rem; }
.gallery-nav .icon { width: 22px; height: 22px; }
.gallery-counter {
    position: absolute; right: 1rem; bottom: 1rem;
    background: rgba(10, 24, 36, .6); color: #fff;
    font-size: .75rem; letter-spacing: .1em;
    padding: .25rem .65rem; border-radius: 2px;
}
.gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 118px;
    gap: .6rem;
    overflow-x: auto;
    padding-bottom: .4rem;
    margin-top: .75rem;
    scrollbar-width: thin;
}
.gallery-thumbs button {
    padding: 0; border: 2px solid transparent; background: none; cursor: pointer; border-radius: 3px; overflow: hidden;
    aspect-ratio: 3 / 2;
}
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.is-active { border-color: var(--gold); }

/* Tabs */
.boat-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 2rem; }
.boat-tabs a {
    padding: .9rem 0;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.boat-tabs a.active { color: var(--navy); border-color: var(--gold); }

/* Spec panel */
.boat-spec-panel {
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.4rem;
    margin-bottom: 2.5rem;
}
.boat-spec-panel dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem 2rem; margin: 0; }
.boat-spec-panel .spec { display: flex; gap: .5rem; align-items: baseline; font-size: .9rem; padding: .35rem 0; border-bottom: 1px solid rgba(0,0,0,.05); }
.boat-spec-panel dt { color: var(--muted); min-width: 0; }
.boat-spec-panel dt::after { content: ":"; }
.boat-spec-panel dd { margin: 0; font-weight: 400; color: var(--navy); }

/* Prose sections */
.prose { max-width: 62rem; }
.prose p { margin-bottom: 1.1em; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.3em; }
.prose li { margin-bottom: .4em; }
.prose strong { font-weight: 500; color: var(--navy); }

.boat-section { padding: 2.6rem 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.boat-section:first-of-type { border-top: 0; }
.content-block { padding: 1.6rem 0; }
.content-block:first-of-type { padding-top: 0; }
.boat-section h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 1.1rem; }
.section-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .75rem;
    margin-top: 1.6rem;
}
.section-gallery button {
    padding: 0; border: 0; cursor: zoom-in; border-radius: 4px; overflow: hidden; aspect-ratio: 3 / 2; background: var(--sand);
}
.section-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.section-gallery button:hover img { transform: scale(1.04); }

.documents { list-style: none; padding: 0; display: grid; gap: .6rem; }
.documents a {
    display: inline-flex; align-items: center; gap: .6rem;
    border: 1px solid var(--line); border-radius: 3px;
    padding: .75rem 1.1rem; background: #fff; font-size: .9rem;
}
.documents a:hover { border-color: var(--gold); }
.documents .icon { width: 18px; height: 18px; color: var(--gold-deep); }

/* Enquiry block */
.enquiry-band { background: var(--navy); color: #fff; }
.enquiry-band .split { align-items: start; }
.enquiry-band h2 { color: #fff; }
.enquiry-band p { color: rgba(255,255,255,.75); }

/* ---------------- Forms ---------------- */

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; }
.form-grid .full { grid-column: 1 / -1; }
.field label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .45rem; color: inherit; opacity: .85; }
.field input, .field select, .field textarea {
    width: 100%;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(201,168,106,.5); outline-offset: 1px; border-color: var(--gold); }
.field .hint { font-size: .78rem; color: var(--muted); margin-top: .35rem; }
.field .error { font-size: .8rem; color: #b3402f; margin-top: .35rem; }
.honeypot { position: absolute; left: -9999px; opacity: 0; }

.alert { padding: 1rem 1.25rem; border-radius: 3px; margin-bottom: 1.5rem; font-size: .95rem; }
.alert-success { background: #e9f2ea; border: 1px solid #bcd7c1; color: #2c5c3a; }
.alert-error { background: #f8ecea; border: 1px solid #e9c3bc; color: #8f2f1f; }

/* ---------------- Sold archive ---------------- */

.sold-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.sold-card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy); }
.sold-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; opacity: .88; transition: transform .6s ease; }
.sold-card:hover img { transform: scale(1.03); }
.sold-card-body {
    position: absolute; inset: auto 0 0 0;
    padding: 2.4rem 1.4rem 1.4rem;
    background: linear-gradient(to top, rgba(6,18,30,.95) 0%, rgba(6,18,30,.82) 45%, rgba(6,18,30,0) 100%);
    color: #fff;
}
.sold-card-body h3 { color: #fff; font-size: 1.35rem; margin-bottom: .1rem; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.sold-card-body p { margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.85); }
.sold-card .badge { top: 1rem; right: 1rem; left: auto; }

/* ---------------- Lightbox ---------------- */

.lightbox {
    position: fixed; inset: 0; z-index: 200;
    background: rgba(6, 16, 26, .95);
    display: none;
    align-items: center; justify-content: center;
    padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lightbox-close, .lightbox-prev, .lightbox-next {
    position: absolute; background: rgba(255,255,255,.1); color: #fff;
    border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
    width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer;
}
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox .counter { position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.7); font-size: .8rem; letter-spacing: .12em; }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 4rem 0 1.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; padding-bottom: 3rem; }
.footer-brand img { margin-bottom: 1.4rem; }
.footer-brand p { max-width: 26rem; font-size: .95rem; }
.footer-heading { color: #fff; font-family: var(--font-sans); font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.2rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem;
    display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
    font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom p { margin: 0; }

/* ---------------- Responsive ---------------- */

@media (max-width: 1080px) {
    .primary-nav { gap: 1.25rem; }
    .boat-grid, .sold-grid { grid-template-columns: repeat(2, 1fr); }
    .boat-spec-panel dl { grid-template-columns: repeat(2, 1fr); }
    .split { gap: 2.5rem; }
}

@media (max-width: 860px) {
    .primary-nav { display: none; }
    .nav-toggle { display: flex; }
    .site-header .header-actions .btn { display: none; }
    .feature-strip .container { grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
    .feature-strip .feature + .feature::before { display: none; }
    .split { grid-template-columns: 1fr; }
    .split-media { order: -1; }
    .boat-detail-top { grid-template-columns: 1fr; }
    .boat-detail-side { text-align: left; }
    .boat-detail-side .actions { min-width: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .listing-bar { top: 0; }
}

@media (max-width: 620px) {
    body { font-size: 16px; }
    .container { width: calc(100% - 2rem); }
    .hero { padding: 7.5rem 0 4rem; min-height: 78vh; }
    .section { padding: 3.5rem 0; }
    .boat-grid, .sold-grid, .boat-grid.cols-2, .boat-grid.cols-4 { grid-template-columns: 1fr; }
    .boat-grid.list-view .boat-card { flex-direction: column; }
    .boat-grid.list-view .boat-card-media { width: 100%; }
    .form-grid { grid-template-columns: 1fr; }
    .boat-spec-panel dl { grid-template-columns: 1fr; }
    .section-gallery { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .boat-card-title { font-size: 1.35rem; }
    .feature-strip .feature { justify-content: flex-start; }
    .brand img { width: 190px; }
    .listing-controls { flex-direction: column; align-items: stretch; }
    .select-wrap select { width: 100%; }
    .view-toggle { margin-left: 0; align-self: flex-end; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
    html { scroll-behavior: auto; }
}