/*
Theme Name: Evenue Luxury
Description: Bauhaus minimalism on warm paper — typographic hero with geometric ornaments, running section numerals, hairline grammar, one brass accent. Port of the legacy evenue-luxury design exploration onto the v2 starter structure.
Version: 0.6.1


Requires PHP: 8.1
Author: Evenue
Text Domain: evenue-luxury
Contract: 2.12.0
*/

/* Colors, fonts, and hairlines come from the --evenue-* tokens; geometry is
   the design's identity and stays fixed (zero radius, no surface shadows —
   hierarchy comes from type size, whitespace, and rules alone).

   Local vocabulary: ink = heading-text, paper = page-bg, band = surface-bg,
   brass = secondary (the ONE accent), hairlines = divider tokens. */

:root {
    --lux-ink: var(--evenue-heading-text);
    --lux-paper: var(--evenue-page-bg);
    --lux-band: var(--evenue-surface-bg);
    --lux-brass: var(--evenue-secondary);
    --lux-text: var(--evenue-body-text);
    --lux-muted: var(--evenue-muted-text);
    /* Muted on the ink ground (footer, CTA band): no single grey clears
       4.5:1 on paper and on ink alike, so the dark surfaces get their own
       tone. Fallback value for browsers without color-mix(), see below. */
    --lux-muted-on-ink: #a9a9a3;
    --lux-line-light: var(--evenue-divider-h-color);
    --lux-line-dark: var(--evenue-heading-text);
    --lux-serif: var(--evenue-heading-font);
    --lux-sans: var(--evenue-body-font);

    --lux-container: 1400px;
    --lux-narrow: 1080px;
    --lux-header-h: 88px;
    --lux-crumb-h: 3.25rem;
    --sp-xs: 0.5rem;
    --sp-sm: 1rem;
    --sp-md: 2rem;
    --sp-lg: 3rem;
    --sp-xl: 5rem;
    --sp-2xl: 8rem;
    --t-base: 250ms ease;
    --t-slow: 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
    --t-slower: 700ms cubic-bezier(0.25, 0.1, 0.25, 1);
}
@supports (color: color-mix(in srgb, red, blue)) {
    :root { --lux-muted-on-ink: color-mix(in srgb, var(--evenue-page-bg) 65%, var(--lux-ink)); }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--lux-paper);
    color: var(--lux-text);
    font-family: var(--lux-sans);
    letter-spacing: var(--evenue-body-letter-spacing);
    line-height: 1.75;
    font-size: 16px;
}

::selection { background: var(--lux-ink); color: var(--lux-paper); }

/* Two voices: serif display (never bold), 12px uppercase micro-labels. */
h1, h2, h3, h4 {
    font-family: var(--lux-serif);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--lux-ink);
    margin: 0 0 0.5em;
}
/* A title keeps its words whole. lux_fit() (functions.php) writes the letter
   count of the title's longest word to the h1 as --fit, and every title size
   below is capped so that many letters fit the title's line: its own box where
   that box is a size container (the front and event heroes, measured
   layout-neutral), elsewhere the .wrap line at its widest padding. 0.66em per
   letter is above the widest heading fonts measured at weight 400 and -0.02em
   tracking (Libre Baskerville 0.64em, Montserrat 0.63em, Cormorant Garamond
   0.47em). The ch max-widths grow with the word for the same reason. A word
   only breaks when even 1.25rem cannot hold it. */
.hero__copy, .event-hero__inner { container-type: inline-size; }
h1 {
    --fit-size: calc(min(100cqi, min(100vw, var(--lux-container)) - 2 * var(--sp-lg)) / (var(--fit, 1) * 0.66));
    font-size: max(1.25rem, min(clamp(3rem, 6vw, 5rem), var(--fit-size)));
    line-height: 1.02;
}
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 2.25rem; }
h4 { font-size: 1.75rem; }

.label, h5, h6 {
    font-family: var(--lux-sans);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
    margin: 0;
}

p { margin: 0 0 1.25em; }
.lead { font-size: 1.125rem; }

a { color: inherit; text-decoration: none; transition: color var(--t-base); }
a:hover { color: var(--lux-brass); }
.prose a, .text-link {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25em;
    text-decoration-color: var(--evenue-divider-h-color);
}
.prose a:hover { text-decoration-color: var(--lux-brass); }

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

hr {
    border: 0;
    border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark);
    margin: var(--sp-xl) 0;
}

.wrap { max-width: var(--lux-container); margin: 0 auto; padding: 0 var(--sp-lg); }
.wrap-narrow { max-width: var(--lux-container); margin: 0 auto; padding: 0 var(--sp-lg); }
.wrap-narrow .prose, .wrap-narrow .lead { max-width: var(--lux-narrow); }
@media (max-width: 1024px) { .wrap, .wrap-narrow { padding: 0 var(--sp-md); } }
@media (max-width: 480px) { .wrap, .wrap-narrow { padding: 0 var(--sp-sm); } }

.muted { color: var(--lux-muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }


/* ---------- section grammar: ink rule above, [NN] LABEL, serif title ---------- */

.section { padding: var(--sp-2xl) 0; }
/* A single page keeps a tighter rhythm and spaces its sections from above,
   so stacked sections do not double their gap. That only works while the
   next section's top padding lands on the SAME ground — so a section that
   paints its own, or is the last one before a band or the footer, still
   holds its content off its bottom edge. */
.single .section { padding: var(--sp-xl) 0 0; }
.single .section-band,
.single .section-ink,
.single .section:last-child { padding-bottom: var(--sp-xl); }
/* `.wrap.single`, never a bare `.single`: WordPress puts `single` on <body>
   of every detail page, and a bare selector padded the whole document —
   80px above the sticky header, which only reached the top once you had
   scrolled past it. This class belongs to two containers in this theme. */
.wrap.single { padding-top: var(--sp-xl); }
@media (max-width: 768px) { .section { padding: var(--sp-xl) 0; } }
.section-band { background: var(--lux-band); }
.section-ink { background: var(--lux-ink); color: var(--evenue-page-bg); }
.section-ink h2, .section-ink h3 { color: inherit; }

.section-header {
    border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark);
    padding-top: var(--sp-sm);
    margin-bottom: var(--sp-lg);
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--sp-sm);
}
.section-header__label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
}
.section-header__index { color: var(--lux-ink); margin-right: 0.75em; }
.section-header__link {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 1px solid var(--lux-line-dark);
    padding-bottom: 0.35em;
}
.section-header__title {
    flex-basis: 100%;
    margin: var(--sp-sm) 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1; /* same box whether the title is the page's h1 or an h2 */
}


/* ---------- buttons: the admin's button tokens, in the luxury voice ---------- */

.btn, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--evenue-button-padding-y) var(--evenue-button-padding-x);
    font-family: var(--lux-sans);
    font-size: var(--evenue-button-font-size);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    line-height: 1;
    border: var(--evenue-button-border-width) solid var(--evenue-button-border-color);
    border-radius: var(--evenue-button-radius);
    background: var(--evenue-button-bg);
    color: var(--evenue-button-text);
    cursor: pointer;
    transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.btn:hover, .button:hover { background: var(--evenue-button-bg-hover); color: var(--evenue-button-text-hover); }
.btn:active, .button:active { background: var(--evenue-button-bg-active); }

/* No outline/ghost tokens exist: the outline variant is derived from the button family. */
.btn--outline { background: transparent; color: var(--evenue-button-bg); border-color: var(--evenue-button-border-color); }
.btn--outline:hover { background: var(--evenue-button-bg-hover); color: var(--evenue-button-text-hover); }

.btn--on-dark { background: transparent; border-color: var(--evenue-page-bg); color: var(--evenue-page-bg); }
.btn--on-dark:hover { background: var(--evenue-page-bg); color: var(--lux-ink); }
.btn--on-dark.btn--fill { background: var(--evenue-page-bg); color: var(--lux-ink); }
.btn--on-dark.btn--fill:hover { background: transparent; color: var(--evenue-page-bg); }

.btn--text {
    background: none;
    border: 0;
    border-bottom: 1px solid var(--lux-line-dark);
    color: var(--lux-ink);
    padding: 0 0 0.35em;
}
.btn--text:hover { color: var(--lux-brass); border-color: var(--lux-brass); background: none; }

.btn--sm { padding: calc(var(--evenue-button-padding-y) * 0.67) calc(var(--evenue-button-padding-x) * 0.625); }

/* ---------- header: a hairline and a wordmark ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 300;
    height: var(--lux-header-h);
    background: var(--lux-paper);
    border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
    transition: border-color var(--t-base);
}
.site-header.scrolled { border-bottom-color: var(--lux-line-dark); }
.header-inner {
    height: var(--lux-header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-md);
}
.brand {
    font-family: var(--lux-serif);
    font-size: 1.75rem;
    letter-spacing: -0.02em;
    color: var(--lux-ink);
    transition: opacity var(--t-base);
}
.brand:hover { color: var(--lux-ink); opacity: 0.7; }
.brand img { height: 44px; width: auto; }

.site-nav { display: flex; align-items: center; gap: var(--sp-lg); }
.site-nav > a:not(.button) {
    position: relative;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-ink);
    padding: 4px 0;
}
.site-nav > a:not(.button)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--lux-line-dark);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}
.site-nav > a:not(.button):hover,
.site-nav > a:not(.button)[aria-current] { color: var(--lux-ink); }
.site-nav > a:not(.button):hover::after,
.site-nav > a:not(.button)[aria-current]::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: var(--sp-md); }
.header-actions .button { padding: calc(var(--evenue-button-padding-y) * 0.67) calc(var(--evenue-button-padding-x) * 0.625); }
.site-nav .button { display: none; } /* the drawer's copy of the booking button, phones only */

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { width: 24px; height: 1px; background: var(--lux-ink); transition: transform var(--t-base), opacity var(--t-base); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
    .burger { display: flex; }
    .header-actions .button { display: none; }
    .site-nav .button { display: inline-flex; min-height: 44px; }
    /* Full-screen paper panel from the right; links re-cast in the serif voice. */
    .site-nav {
        position: fixed;
        inset: 0;
        left: auto;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: var(--sp-md);
        padding: var(--sp-xl) var(--sp-lg);
        background: var(--lux-paper);
        transform: translateX(100%);
        /* Closed drawer is out of the tab order and the AX tree, not just
           off-screen; visibility flips after the slide-out, before the slide-in. */
        visibility: hidden;
        transition: transform var(--t-slow), visibility 0s var(--t-slow);
        z-index: 400;
    }
    .site-nav.open { transform: translateX(0); visibility: visible; transition: transform var(--t-slow), visibility 0s; }

    .site-nav > a:not(.button) {
        font-family: var(--lux-serif);
        font-size: 2.25rem;
        text-transform: none;
        letter-spacing: -0.02em;
        font-weight: 400;
    }
    .site-nav > a:not(.button)::after { display: none; }
    .nav-scrim { display: none; }
    .burger { position: relative; z-index: 500; }
}
@media (max-width: 768px) {
    :root { --lux-header-h: 64px; }
    .brand { font-size: 1.125rem; }
}

/* ---------- footer: dark ground, serif wordmark, disciplined columns ---------- */

.site-footer { margin-top: var(--sp-2xl); background: var(--lux-ink); color: var(--lux-muted-on-ink); }
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--sp-xl);
    padding: var(--sp-2xl) 0 var(--sp-xl);
}
.footer-wordmark { font-family: var(--lux-serif); font-size: 3rem; line-height: 1; color: var(--evenue-page-bg); margin: 0 0 var(--sp-sm); }
.footer-tagline { font-size: 0.875rem; max-width: 36ch; }
.footer-col .label { color: var(--lux-muted-on-ink); margin-bottom: var(--sp-sm); display: block; }
.footer-col a { display: block; padding: 4px 0; color: var(--evenue-page-bg); font-size: 0.875rem; }
.footer-col a:hover { color: var(--lux-brass); }
.footer-meta {
    border-top: 1px solid var(--evenue-divider-h-color);
    display: flex;
    justify-content: space-between;
    gap: var(--sp-sm);
    flex-wrap: wrap;
    padding: var(--sp-md) 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.footer-legal { display: flex; gap: var(--sp-md); flex-wrap: wrap; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--lux-brass); }
.footer-note { margin: 0; padding-bottom: var(--sp-md); font-size: 0.75rem; }
.header-actions .lang-switcher { display: inline-flex; gap: 12px; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.header-actions .lang { color: var(--lux-muted); text-decoration: none; }
.header-actions .lang.current, .header-actions a.lang:hover { color: var(--lux-ink); }

/* From four languages up the codes fold into a disclosure. */
.lang-switcher--menu { position: relative; }
.lang-switcher--menu > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    min-height: 44px;
}
.lang-switcher--menu > summary::-webkit-details-marker { display: none; }
.lang-switcher--menu > summary::after {
    content: '\203a';
    transform: rotate(90deg);
    transition: transform var(--t-base);
}
.lang-switcher--menu[open] > summary::after { transform: rotate(-90deg); }
.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 320;
    display: flex;
    flex-direction: column;
    gap: 0.9em;
    padding: var(--sp-sm);
    background: var(--lux-paper);
    border: var(--evenue-border-width) var(--evenue-border-style) var(--evenue-divider-h-color);
}
.lang-menu .lang { text-align: right; }
@media (max-width: 768px) {
    .footer-main { grid-template-columns: 1fr; gap: var(--sp-lg); padding: var(--sp-xl) 0 var(--sp-lg); }
    .footer-meta { flex-direction: column; }
}

/* ---------- hero: typographic, with the Bauhaus ornaments ---------- */

.hero {
    position: relative;
    min-height: calc(100vh - var(--lux-header-h));
    display: flex;
    align-items: center;
    background: var(--lux-band);
    overflow: hidden;
}
.hero__ornament { position: absolute; pointer-events: none; }
.hero__ornament--circle {
    width: 46vw;
    aspect-ratio: 1;
    border: 1px solid var(--evenue-divider-h-color);
    border-radius: 50%;
    right: -12vw;
    top: 50%;
    transform: translateY(-50%);
}
.hero__ornament--square {
    width: clamp(48px, 6vw, 96px);
    aspect-ratio: 1;
    background: var(--lux-brass);
    right: 18vw;
    bottom: 18%;
    z-index: 2;
}
.hero__ornament--line { width: 1px; height: 38%; background: var(--evenue-divider-h-color); right: 34vw; top: 31%; }

.hero__inner { position: relative; width: 100%; z-index: 1; }
.hero__label { display: block; margin-bottom: var(--sp-md); }
.hero__title { font-size: max(1.25rem, min(clamp(3rem, 8vw, 6.5rem), var(--fit-size))); line-height: 1; max-width: max(14ch, calc(var(--fit, 1) * 0.66em)); margin-bottom: var(--sp-md); }
.hero__subtitle { font-size: 1.125rem; max-width: 44ch; margin-bottom: var(--sp-lg); }
.hero__actions { display: flex; align-items: center; gap: var(--sp-lg); flex-wrap: wrap; }
.hero__scroll {
    position: absolute;
    left: 50%;
    bottom: var(--sp-md);
    transform: translateX(-50%);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.hero__scroll::after { content: ""; width: 1px; height: 48px; background: var(--lux-line-dark); }

/* Plate variant: the picture joins the composition rather than replacing it. */
.hero--plate .hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); gap: var(--sp-xl); align-items: center; }
.hero__plate { position: relative; z-index: 1; justify-self: end; max-height: 62vh; aspect-ratio: 3 / 4; width: 100%; max-width: 480px; margin: 0; }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) {
    .hero--plate .hero__inner { grid-template-columns: 1fr; }
    .hero__plate { order: -1; aspect-ratio: 16 / 10; max-height: none; max-width: none; justify-self: stretch; }
}
@media (max-width: 1024px) {
    .hero__ornament--circle { right: -30vw; width: 70vw; }
    .hero__ornament--line { display: none; }
}
@media (max-width: 768px) {
    .hero { min-height: 80vh; }
    .hero__ornament--square { display: none; } /* on a phone it sat on the second hero link */
    .hero__scroll { display: none; }
}

/* Archive image hero (banner set): 56vh photograph, type at the bottom. */
.archive-hero {
    position: relative;
    height: 56vh;
    min-height: 420px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--lux-ink);
}
.archive-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.archive-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0.6) 100%); /* structural scrim */
}
.archive-hero .hero__inner { z-index: 1; padding-bottom: var(--sp-xl); color: var(--evenue-page-bg); }
.archive-hero .hero__label { color: var(--evenue-page-bg); opacity: 0.75; }
.archive-hero h1 { color: inherit; font-size: max(1.25rem, min(clamp(2.5rem, 6vw, 5rem), var(--fit-size))); max-width: max(18ch, calc(var(--fit, 1) * 0.66em)); }
.archive-hero p { max-width: 52ch; opacity: 0.85; margin: 0; }
@media (max-width: 768px) { .archive-hero { height: 48vh; min-height: 340px; } }

/* Compact archive header (no banner). */
.archive-header { padding-top: var(--sp-xl); }
.archive-header .section-header__title { font-size: clamp(2.5rem, 5vw, 4rem); }
.archive-header__intro { font-size: 1.125rem; max-width: 60ch; margin-top: var(--sp-sm); }

/* ---------- cards: no borders, no shadows — image, numeral, type ---------- */

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-2xl) var(--sp-xl);
    margin-top: var(--sp-lg);
}
@media (max-width: 1024px) { .card-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-xl) var(--sp-lg); } }
@media (max-width: 768px) { .card-grid { grid-template-columns: 1fr; } }

.card { display: block; color: inherit; }
.card:hover { color: inherit; }
.card-image-wrap {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--lux-band);
    margin-bottom: var(--sp-sm);
}
.card-image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slower); }
.card:hover .card-image { transform: scale(1.04); }
/* Index numeral without a photo underneath: plain ink on the band. Looks the
   same as white blended by difference, but is measurable as 4.5:1 text. */
.card-image-wrap:not(:has(.card-image)) .card-index { color: var(--lux-ink); mix-blend-mode: normal; }

.card-index {
    position: absolute;
    top: var(--sp-sm);
    left: var(--sp-sm);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: #fff;
    mix-blend-mode: difference;
    z-index: 1;
}
.card-meta {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
    margin-bottom: 0.5em;
}
.card-title {
    display: block;
    font-family: var(--lux-serif);
    font-size: 1.75rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--lux-ink);
    margin: 0 0 0.4em;
    transition: color var(--t-base);
}
.card:hover .card-title { color: var(--lux-brass); }
.card-excerpt { display: block; font-size: 0.95rem; color: var(--lux-text); }
.card-excerpt p { margin: 0; }
.card-tags { display: block; font-size: 0.8rem; color: var(--lux-muted); margin-top: 0.4em; }

/* List view: hairline rows, one thumbnail and one column of prose. A card
   has five children, so the image is told to span every row — otherwise the
   two-column grid deals meta, title, tags and excerpt out left and right. */
.card-grid.list-view { display: block; margin-top: var(--sp-md); }
.card-grid.list-view .card {
    display: block;
    overflow: hidden; /* contains the floated thumbnail */
    padding: var(--sp-md) 0;
    border-top: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
}
.card-grid.list-view .card:last-child { border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color); }
/* Floated, not a grid cell: a grid item spanning every row stretches the
   text rows apart, which is what put a gap between the meta and the title. */
.card-grid.list-view .card-image-wrap {
    float: left;
    width: 220px;
    margin: 0 var(--sp-md) var(--sp-sm) 0;
    aspect-ratio: 3 / 2;
}
/* flow-root, so each line of a paragraph keeps the same left edge instead
   of the last one slipping underneath the thumbnail. */
.card-grid.list-view .ai-label,
.card-grid.list-view .card-meta,
.card-grid.list-view .card-title,
.card-grid.list-view .card-tags,
.card-grid.list-view .card-excerpt { display: flow-root; }
.card-grid.list-view .card-title { font-size: 1.5rem; margin-top: 0.15em; }
.card-grid.list-view .card-tags { margin-top: 0.15em; }
.card-grid.list-view .card-excerpt { margin-top: 0.5em; max-width: 68ch; }
@media (max-width: 768px) {
    .card-grid.list-view .card-image-wrap { width: 96px; aspect-ratio: 1; margin-right: var(--sp-sm); }
    .card-grid.list-view .card-title { font-size: 1rem; }
    .card-grid.list-view .card-excerpt, .card-grid.list-view .card-index { display: none; }
}

/* ---------- filters: tabs, underlined inputs, quiet chips ---------- */

/* Filter rows stay on one line and are dragged — a wrapped block of
   categories reads as a paragraph of links, not as a control. */
.tab-nav, .chip-row {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-snap-type: none;
    cursor: grab;
}
.tab-nav::-webkit-scrollbar, .chip-row::-webkit-scrollbar { display: none; }
.tab-nav.dragging, .chip-row.dragging { cursor: grabbing; scroll-behavior: auto; }
.tab-nav.dragging a, .chip-row.dragging a { pointer-events: none; }
.tab-nav { gap: var(--sp-md); }
.tab-nav__item { white-space: nowrap; }

/* Card rail: three across on the desktop, the rest one swipe away. The
   track is a scroller with snap points, so a keyboard, a trackpad and the
   two arrows all move it the same way. */
.slider { position: relative; margin-top: var(--sp-lg); }
.slider__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 2 * var(--sp-xl)) / 3);
    gap: var(--sp-xl);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    padding-bottom: var(--sp-sm);
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; }
.slider__controls { display: flex; justify-content: flex-end; gap: var(--sp-sm); margin-top: var(--sp-sm); }
.slider__arrow {
    width: 44px;
    height: 44px;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--lux-ink);
    background: none;
    border: var(--evenue-border-width) var(--evenue-border-style) var(--evenue-divider-h-color);
    cursor: pointer;
    transition: color var(--t-base), border-color var(--t-base), opacity var(--t-base);
}
.slider__arrow:hover:not(:disabled) { color: var(--lux-brass); border-color: var(--lux-brass); }
.slider__arrow:disabled { opacity: 0.3; cursor: default; }
@media (max-width: 1024px) { .slider__track { grid-auto-columns: calc((100% - var(--sp-lg)) / 2); gap: var(--sp-lg); } }
@media (max-width: 768px) { .slider__track { grid-auto-columns: 82%; gap: var(--sp-md); } }

/* Property chips on the events archive: the Stay row filters the programme
   in place, while the cards themselves lead to the houses. */
.chip-row { gap: var(--sp-sm); margin-top: var(--sp-md); }
.chip {
    white-space: nowrap;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
    text-decoration: none;
    padding: 0.6em 0.9em;
    border: var(--evenue-border-width) var(--evenue-border-style) var(--evenue-divider-h-color);
}
.chip:hover { color: var(--lux-ink); }
.chip.active { color: var(--lux-paper); background: var(--lux-ink); border-color: var(--lux-ink); }
.tab-nav__item {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
    padding: 0 0 0.5em;
    border-bottom: 2px solid transparent;
    background: none;
    cursor: pointer;
}
.tab-nav__item:hover { color: var(--lux-ink); }
.tab-nav__item.active { color: var(--lux-ink); border-bottom-color: var(--lux-line-dark); }

.filter-form { display: flex; gap: var(--sp-md); align-items: flex-end; flex-wrap: wrap; }
.filter-form input {
    font-family: var(--lux-sans);
    font-size: 1rem;
    color: var(--lux-ink);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--evenue-divider-h-color);
    border-radius: 0;
    padding: 0.5em 0;
    outline: none;
    transition: border-color var(--t-base);
}
.filter-form input:focus { border-bottom-color: var(--lux-line-dark); }
.filter-form input[type="search"] { min-width: 220px; }
.reset-link { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lux-muted); }

.filter-tag {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-ink);
    border: var(--evenue-border);
    padding: 0.5em 1em;
}
.filter-tag a { color: var(--lux-muted); }

.results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-sm);
    border-top: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
    padding-top: var(--sp-sm);
    margin-top: var(--sp-lg);
}
.results-count { font-size: 0.875rem; color: var(--lux-muted); }
.results-count strong { color: var(--lux-ink); font-weight: 500; }

/* Breadcrumbs — one hairline bar above the page, scrollable on phones. Its
   height is a token because the property quicklinks stack underneath it. */
.breadcrumbs {
    height: var(--lux-crumb-h);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--lux-paper);
    border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
}
.breadcrumbs__inner { display: flex; align-items: center; height: 100%; }
.breadcrumbs ol { display: flex; gap: var(--sp-sm); list-style: none; margin: 0; padding: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.breadcrumbs ol::-webkit-scrollbar { display: none; }
.breadcrumbs li { display: flex; gap: var(--sp-sm); align-items: center; }
.breadcrumbs li + li::before { content: '\203a'; color: var(--lux-muted); }
.breadcrumbs a { color: var(--lux-muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--lux-ink); }
.breadcrumbs [aria-current] { color: var(--lux-ink); }

/* On the desktop the trail rides under the header; the property quicklinks
   are the second sticky layer and start below it. */
@media (min-width: 1025px) {
    .breadcrumbs { position: sticky; top: var(--lux-header-h); z-index: 250; }
}

/* Pager — the mono voice of the results bar, mirrored under the grid. */
.pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-sm);
    border-top: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
    margin-top: var(--sp-lg);
    padding-top: var(--sp-sm);
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.pager__step { color: var(--lux-ink); text-decoration: none; padding: 0.75em 0; }
.pager__step:hover { color: var(--lux-brass); }
.pager__step[aria-hidden] { color: var(--lux-muted); opacity: 0.4; }
.pager__position { color: var(--lux-muted); letter-spacing: 0.1em; }
.view-toggle { display: inline-flex; gap: var(--sp-md); }
.view-toggle button {
    background: none;
    border: 0;
    padding: 0 0 0.5em;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
    border-bottom: 2px solid transparent;
    cursor: pointer;
}
.view-toggle button.active { color: var(--lux-ink); border-bottom-color: var(--lux-line-dark); }

/* ---------- index list (destinations / cities) ---------- */

.index-list { list-style: none; margin: var(--sp-lg) 0 0; padding: 0; counter-reset: city; }
.index-list__item { border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color); }
.index-list__item:first-child { border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark); }
.index-list__link {
    counter-increment: city;
    display: grid;
    grid-template-columns: 4rem 1fr auto;
    align-items: baseline;
    gap: var(--sp-md);
    padding: var(--sp-md) 0;
}
.index-list__link::before {
    content: counter(city, decimal-leading-zero);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
}
.index-list__name {
    font-family: var(--lux-serif);
    font-size: 2.25rem;
    letter-spacing: -0.02em;
    color: var(--lux-ink);
    transition: color var(--t-base), transform var(--t-base);
}
.index-list__link:hover .index-list__name { color: var(--lux-brass); transform: translateX(var(--sp-xs)); }
.index-list__count { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lux-muted); }
@media (max-width: 768px) {
    .index-list__link { grid-template-columns: 2.5rem 1fr auto; }
    .index-list__name { font-size: 1.75rem; }
}

/* ---------- facts: micro-label / serif-value rows ---------- */

.facts { margin: 0; }
.facts__row {
    display: grid;
    grid-template-columns: minmax(140px, 16rem) 1fr;
    align-items: baseline;
    gap: var(--sp-md);
    padding: var(--sp-md) 0;
    border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
}
.facts__row:first-child { border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark); }
.facts__label { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lux-muted); }
.facts__value { font-family: var(--lux-serif); font-size: 1.75rem; letter-spacing: -0.02em; color: var(--lux-ink); margin: 0; }
.facts__value a { border-bottom: 1px solid var(--evenue-divider-h-color); }
@media (max-width: 768px) { .facts__row { grid-template-columns: 1fr; gap: var(--sp-xs); } }

.facts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark);
    border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
}
.fact-item { padding: var(--sp-md) var(--sp-md) var(--sp-md) 0; }
.fact-item + .fact-item { border-left: var(--evenue-divider-v-weight) solid var(--evenue-divider-h-color); padding-left: var(--sp-md); }
.fact-item .label { display: block; margin-bottom: 0.5em; }
.fact-item__value { font-family: var(--lux-serif); font-size: 2.25rem; letter-spacing: -0.02em; color: var(--lux-ink); }
@media (max-width: 768px) {
    .facts-grid { grid-template-columns: 1fr; }
    .fact-item + .fact-item { border-left: 0; border-top: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color); padding-left: 0; }
}

/* ---------- prose ---------- */

.prose { max-width: 68ch; }
.prose p { font-size: 1.125rem; line-height: 1.75; }
.prose > p:first-child {
    font-family: var(--lux-serif);
    font-size: 1.75rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--lux-ink);
}
.prose blockquote { border-left: 1px solid var(--evenue-divider-v-color); margin: 1em 0; padding-left: 1em; color: var(--lux-muted); }

/* ---------- galleries ---------- */

/* Event gallery: equal row, or a 16/9 lead over the rest. */
.event-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--sp-sm); margin-top: var(--sp-lg); }
.event-gallery figure, .event-gallery a { margin: 0; overflow: hidden; background: var(--lux-band); aspect-ratio: 4 / 3; }
.event-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slower); }
.event-gallery a:hover img { transform: scale(1.04); }
.event-gallery--lead { grid-auto-flow: row; grid-template-columns: repeat(var(--lead-cols, 3), 1fr); }
.event-gallery--lead > :first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
@media (max-width: 768px) {
    .event-gallery, .event-gallery--lead { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
    .event-gallery--lead > :first-child { grid-column: span 2; }
}

/* Property gallery: hairline mortar between plates. */
.gallery-multi {
    display: grid;
    grid-template-columns: 1fr 1fr;
    aspect-ratio: 2 / 1;
    gap: var(--evenue-divider-h-weight);
    background: var(--evenue-divider-h-color);
    border: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
    margin-bottom: var(--sp-lg);
}
.gallery-multi a { position: relative; overflow: hidden; background: var(--lux-band); display: block; }
.gallery-multi img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slower); }
.gallery-multi a:hover img { transform: scale(1.04); }
.gallery-side { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: var(--evenue-divider-h-weight); }
.gallery-more-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55); /* structural scrim */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}
.gallery-single { aspect-ratio: 21 / 9; overflow: hidden; background: var(--lux-band); border: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color); margin-bottom: var(--sp-lg); }
.gallery-single img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 768px) {
    .gallery-multi { grid-template-columns: 1fr; aspect-ratio: auto; }
    .gallery-multi > a:first-child { aspect-ratio: 4 / 3; }
    .gallery-side { aspect-ratio: 2 / 1; }
}

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-sm); margin: var(--sp-lg) 0; }
.gallery-grid img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.gallery-grid__item { padding: 0; border: 0; background: none; display: block; cursor: zoom-in; } /* focus ring stays the browser default, like everywhere else */

@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- event single ---------- */

.event-hero {
    position: relative;
    height: 76vh;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--lux-ink);
}
.event-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.event-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%); }
.event-hero__inner { position: relative; z-index: 1; width: 100%; max-width: var(--lux-container); margin: 0 auto; padding: 0 var(--sp-lg) var(--sp-xl); color: var(--evenue-page-bg); }
.event-hero__label { color: inherit; opacity: 0.8; display: block; margin-bottom: var(--sp-sm); font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; }
.event-hero__inner h1 { color: inherit; max-width: max(18ch, calc(var(--fit, 1) * 0.66em)); margin: 0; overflow-wrap: anywhere; }
.event-hero--plain { height: auto; min-height: 40vh; background: var(--lux-band); }
.event-hero--plain::after { display: none; }
.event-hero--plain .event-hero__inner { color: var(--lux-ink); padding-top: var(--sp-2xl); }
.event-hero--plain .event-hero__label { color: var(--lux-muted); opacity: 1; } /* muted at 0.8 lands at 3.5:1 on the band */
@media (max-width: 768px) { .event-hero:not(.event-hero--plain) { height: 62vh; min-height: 400px; } } /* the plain band keeps its own height */

/* Full-bleed map band, ink rules top and bottom. */
.map-band {
    border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark);
    border-bottom: var(--evenue-divider-h-weight) solid var(--lux-line-dark);
    background: var(--lux-band);
    margin-top: var(--sp-lg);
}
.map-band .map-embed { margin: 0; border: 0; border-radius: 0; }

/* Greyscale tiles + square vocabulary on every Leaflet map. */
.map-embed { border: var(--evenue-border); border-radius: 0; background: var(--lux-band); margin: var(--sp-lg) 0; overflow: hidden; z-index: 0; width: 100%; }
.map-embed .leaflet-tile { filter: grayscale(1) contrast(1.02); }
.lux-marker {
    width: 14px;
    height: 14px;
    background: var(--lux-ink);
    transform: rotate(45deg);
    border: 1px solid var(--lux-paper);
}
.leaflet-popup-content-wrapper { border-radius: 0 !important; box-shadow: var(--evenue-modal-shadow) !important; }

.stay-stars { font-size: 1.125rem; letter-spacing: 0.35em; color: var(--lux-ink); }
.stay-facts {
    display: flex;
    gap: var(--sp-xs) var(--sp-xl);
    flex-wrap: wrap;
    border-top: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
    border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
    padding: var(--sp-sm) 0;
    margin: var(--sp-md) 0;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-muted);
}
.stay-amenities { columns: 3; column-gap: var(--sp-lg); margin: var(--sp-md) 0; padding: 0; list-style: none; }
.stay-amenities li { break-inside: avoid; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lux-muted); padding: 0.4em 0; }
@media (max-width: 768px) { .stay-amenities { columns: 2; } }

.booking-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--sp-xl); }
@media (max-width: 1024px) { .booking-grid { grid-template-columns: 1fr; } }
.contact-block { border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark); padding-top: var(--sp-sm); }
.contact-block__name { font-family: var(--lux-serif); font-size: 1.75rem; letter-spacing: -0.02em; color: var(--lux-ink); margin: 0.5em 0; }
.contact-block a { text-decoration: underline; text-decoration-color: var(--evenue-divider-h-color); text-underline-offset: 0.25em; }
.contact-block a:hover { text-decoration-color: var(--lux-brass); }

/* ---------- property single ---------- */

.property-masthead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-md); padding: var(--sp-lg) 0 var(--sp-md); flex-wrap: wrap; }
.property-masthead h1 { font-size: max(1.25rem, min(clamp(2.25rem, 5vw, 4rem), var(--fit-size))); margin: 0.2em 0; }
.property-masthead address { font-style: normal; font-size: 0.875rem; color: var(--lux-muted); }
.share-button {
    background: none;
    border: var(--evenue-border);
    padding: 0.6rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lux-ink);
    cursor: pointer;
    transition: background var(--t-base), color var(--t-base), border-color var(--t-base);
}
.share-button:hover { background: var(--lux-ink); color: var(--lux-paper); }
.share-button.copied { border-color: var(--lux-brass); color: var(--lux-brass); background: none; }

.property-quicklinks {
    position: sticky;
    /* Second sticky layer: below the header AND below the trail. */
    top: calc(var(--lux-header-h) + var(--lux-crumb-h));
    z-index: 200;
    background: var(--lux-paper);
    border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark);
    border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
}
.quicklinks-list { display: flex; gap: var(--sp-md); overflow-x: auto; scrollbar-width: none; padding-block: var(--sp-sm); }
.quicklinks-list::-webkit-scrollbar { display: none; }
.quicklinks-list a { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lux-muted); white-space: nowrap; }
.quicklinks-list a:hover { color: var(--lux-ink); }
/* Under 1025px the trail scrolls away, so the quicklinks sit on the header. */
@media (max-width: 1024px) { .property-quicklinks { top: var(--lux-header-h); } }

.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; column-gap: var(--sp-xl); align-items: start; padding-top: var(--sp-lg); }
@media (max-width: 1024px) { .property-layout { grid-template-columns: 1fr; } }
.property-layout section { margin-bottom: var(--sp-2xl); }
/* In-page jumps glide instead of cutting — the hero's "our houses", the
   property quicklinks, the filter anchors. Motion is a preference. */
@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Anchor targets clear whatever is stuck above them: header + trail +
   quicklinks on the property page, header + trail everywhere else. */
[id] { scroll-margin-top: calc(var(--lux-header-h) + var(--lux-crumb-h) + var(--sp-md)); }
.property-layout section,
#units, #amenities, #events { scroll-margin-top: calc(var(--lux-header-h) + var(--lux-crumb-h) + 5rem); }

.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list__item {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr);
    gap: var(--sp-md);
    padding: var(--sp-md) 0;
    border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
}
.feature-list__index { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; color: var(--lux-muted); padding-top: 0.5em; }
.feature-list__title { font-family: var(--lux-serif); font-size: 1.75rem; letter-spacing: -0.02em; color: var(--lux-ink); margin: 0 0 0.2em; }
.feature-list__body { font-size: 0.9rem; color: var(--lux-muted); }

/* Clears header + trail + quicklinks, so the sidebar never starts under them. */
.property-sidebar { position: sticky; top: calc(var(--lux-header-h) + var(--lux-crumb-h) + 5rem); }
@media (max-width: 1024px) { .property-sidebar { position: static; } }
.sidebar-panel { border: 1px solid var(--evenue-divider-h-color); }
.sidebar-box { padding: var(--sp-md); border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color); }
.sidebar-box:last-child { border-bottom: 0; }
.sidebar-box .label { display: block; margin-bottom: var(--sp-sm); }
.sidebar-box p { margin: 0 0 0.5em; font-size: 0.9rem; }
.sidebar-box .button { width: 100%; margin-top: var(--sp-sm); }
/* Booking embed: 290px holds the booking widget's stacked form, a second
   status line included. A shorter frame gets a denser form, never a cut one. */
.booking-embed { display: block; width: 100%; height: 290px; border: 0; margin-top: var(--sp-sm); }
.sidebar-row { display: flex; justify-content: space-between; gap: var(--sp-sm); font-size: 0.9rem; padding: 0.35em 0; }

/* Amenities band. */
.amenities-band { background: var(--lux-band); padding: var(--sp-2xl) 0; }
.amenity-grid { list-style: none; margin: var(--sp-lg) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-xl); }
@media (max-width: 1024px) { .amenity-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .amenity-grid { grid-template-columns: 1fr; } }
.amenity { border-top: var(--evenue-divider-h-weight) solid var(--lux-line-dark); padding-top: var(--sp-sm); }
.amenity-name { display: block; font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--lux-ink); }
a.amenity-name:hover { color: var(--lux-brass); }
.amenity-comment { display: block; font-size: 0.875rem; color: var(--lux-muted); margin-top: 0.4em; }

/* CTA: ink band with the brass square. */
.cta-band { background: var(--lux-ink); color: var(--lux-muted-on-ink); padding: var(--sp-2xl) 0; margin-top: var(--sp-2xl); }

.cta-band .cta-content { max-width: 720px; }
.cta-ornament { width: 48px; height: 48px; background: var(--lux-brass); margin-bottom: var(--sp-lg); }
.cta-band h2 { color: var(--evenue-page-bg); font-size: 3rem; }
.cta-band p { font-size: 1.125rem; margin-bottom: var(--sp-lg); }
.cta-band .btn--on-dark { margin-right: var(--sp-sm); }
/* A band that nothing follows (a house without events, a page without
   neighbours) would face the ink footer across an empty gap, ink on ink: it
   takes the light band surface instead and the footer closes on it. */
.cta-band:last-child { background: var(--lux-band); color: var(--lux-text); }
.cta-band:last-child h2 { color: var(--lux-ink); }
.cta-band:last-child .btn--on-dark.btn--fill { background: var(--evenue-button-bg); color: var(--evenue-button-text); border-color: var(--evenue-button-border-color); }
.cta-band:last-child .btn--on-dark.btn--fill:hover { background: var(--evenue-button-bg-hover); color: var(--evenue-button-text-hover); }
.site-main:has(.cta-band:last-child) + .site-footer { margin-top: 0; }

/* ---------- misc ---------- */

.place-block { display: flex; align-items: baseline; gap: var(--sp-md); flex-wrap: wrap; margin: var(--sp-md) 0; }
.place-block address { font-style: normal; font-family: var(--lux-serif); font-size: 1.75rem; letter-spacing: -0.02em; color: var(--lux-ink); }
.maps-link { font-size: 0.75rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; border-bottom: 1px solid var(--lux-line-dark); padding-bottom: 0.35em; white-space: nowrap; }
.maps-link:hover { color: var(--lux-brass); border-color: var(--lux-brass); }

.assoc-link { margin-top: var(--sp-md); color: var(--lux-muted); }

/* Single header + fact row (unit and amenity-page singles) */
.single-head { margin-bottom: var(--sp-md); }
.single-meta { display: block; margin-bottom: 0.5em; color: var(--lux-muted); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.single-image { width: 100%; max-height: 520px; object-fit: cover; margin: var(--sp-md) 0 var(--sp-lg); }
.facts-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    padding: var(--sp-sm) 0;
    margin: 0 0 var(--sp-md);
    border-top: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
    border-bottom: var(--evenue-divider-h-weight) solid var(--evenue-divider-h-color);
    color: var(--evenue-heading-text);
    font-weight: 500;
}

.rating { color: var(--lux-ink); letter-spacing: 0.25em; font-size: 0.8em; vertical-align: 0.1em; }

.error-404 {
    position: relative;
    min-height: calc(100vh - var(--lux-header-h));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: var(--lux-band);
    overflow: hidden;
    padding: 0 20px;
}
.error-404::before {
    content: "";
    position: absolute;
    width: min(74vh, 88vw);
    aspect-ratio: 1;
    border: 1px solid var(--evenue-divider-h-color);
    border-radius: 50%;
}
.error-404 > * { position: relative; }
.error-404 h1 { font-size: clamp(7rem, 22vw, 15rem); line-height: 1; margin: 0.1em 0; }
.error-404 p { font-size: 1.125rem; max-width: 44ch; margin: 0 auto var(--sp-lg); color: var(--lux-muted); }

/* ---------- AI-generated images: the label line ---------- */

/* An image the plugin flags as AI-generated (contract 2.11.0) carries one
   line in the micro-label voice, no symbol: under a plate or a gallery tile,
   or as the first line of a card's text. Muted on paper, like every label. */
.ai-label--caption {
    display: block;
    margin: var(--sp-xs) 0 0;
    font-family: var(--lux-sans);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-align: left;
    /* On a narrow tile the line takes two rows: they break at the dot, not after "KI-". */
    text-wrap: balance;
    color: var(--lux-muted);
}
.card .ai-label { margin: 0 0 0.5em; }
/* A plate hands its gap to the line, so the line reads with the picture. */
.gallery-single:has(+ .ai-label),
.single-image:has(+ .ai-label) { margin-bottom: 0; }
.gallery-single + .ai-label,
.single-image + .ai-label { margin-bottom: var(--sp-lg); }
/* The front page plate is sized by its ratio: the line hangs under it. */
.hero__plate .ai-label { position: absolute; top: 100%; left: 0; }
/* A gallery tile grows by the line instead of cropping its picture; the
   line's paper covers the lower edge of the hover zoom. */
.event-gallery a:has(.ai-label) { aspect-ratio: auto; }
.event-gallery a:has(.ai-label) img { aspect-ratio: 4 / 3; height: auto; }
.event-gallery--lead > a:first-child:has(.ai-label) img { aspect-ratio: 16 / 9; }
.event-gallery .ai-label { position: relative; margin: 0; padding-top: var(--sp-xs); background: var(--lux-paper); }
/* Where the picture is the ground (a hero under its title, a mosaic tile)
   there is no "under": the line sits in the corner on a solid ink ground. */
.archive-hero .ai-label,
.event-hero .ai-label,
.gallery-multi .ai-label {
    position: absolute;
    right: var(--sp-sm);
    bottom: var(--sp-sm);
    z-index: 1;
    margin: 0;
    padding: 0.35em 0.75em;
    background: var(--lux-ink); /* without color-mix() */
    background: color-mix(in srgb, var(--lux-ink) 80%, transparent);
    color: var(--lux-paper);
}
.gallery-multi .ai-label { right: var(--sp-xs); bottom: var(--sp-xs); }

.starter-lightbox { display: none; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.88); z-index: 2000; align-items: center; justify-content: center; }
.starter-lightbox.open { display: flex; }
.starter-lightbox img { max-width: 88vw; max-height: 86vh; object-fit: contain; }
.starter-lightbox button { position: absolute; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; padding: 12px 20px; line-height: 1; }
.lb-close { top: 12px; right: 16px; }
.lb-prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 8px; top: 50%; transform: translateY(-50%); }
.starter-lightbox .lb-ai { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 2rem); text-align: center; margin: 0; padding: 4px 12px; background: rgba(0, 0, 0, 0.72); color: #fff; font-size: 0.75rem; letter-spacing: 0.06em; }
