/*
  Aspland House — site stylesheet.
  Light, photo-led hospitality design. Tokens first, then components in page order.
*/

/* Self-hosted Google Fonts (SIL Open Font License): Fraunces, Kumbh Sans */
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Fraunces';
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url('../fonts/fraunces-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Kumbh Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/kumbh-sans-latin-ext.woff2') format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
    font-family: 'Kumbh Sans';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/kumbh-sans-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: "Fraunces";
    font-style: italic;
    font-weight: 400 600;
    font-display: swap;
    src: url("../fonts/fraunces-italic-latin.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


:root {
    --bg: #f6f0e4;
    --surface: #fffcf6;
    --band: #ece3d2;
    --text: #1f1b17;
    --muted: #5e564c;
    --accent: #9e4527;
    --accent-hover: #7e351c;
    --accent-soft: rgba(158, 69, 39, 0.12);
    --brass: #c4923a;
    --brass-text: #7f5a14;
    --ochre: var(--brass);
    --ochre-mid: #9c7226;
    --border: #e2d8c6;
    --border-strong: #8f8478;
    --footer-bg: #1f1b17;
    --footer-text: #d8cfc0;
    --shadow: 0 10px 30px -12px rgba(31, 27, 23, 0.18);
    --shadow-strong: 0 24px 48px -20px rgba(31, 27, 23, 0.45);
    --radius: 6px;
    --radius-sm: 4px;
    --content-max: 1180px;
    --gutter: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left), env(safe-area-inset-right));
    --header-h: 76px;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Kumbh Sans", "Segoe UI", Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    color-scheme: light;
}

/* ---------- base ---------- */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 0.5rem);
    scroll-padding-bottom: 1rem;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    overflow-x: clip;
}

[hidden] {
    display: none !important;
}

img,
picture,
svg,
iframe {
    max-width: 100%;
}

img {
    display: block;
    height: auto;
}

a {
    color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.15em;
}

a:hover {
    color: var(--accent-hover);
}

p {
    margin: 0 0 1.25rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 1rem;
    color: var(--text);
    text-wrap: balance;
}

h1 {
    font-size: clamp(2.4rem, 5.5vw, 4.25rem);
    font-variation-settings: "opsz" 144;
}

h2 {
    font-size: clamp(1.9rem, 3.6vw, 2.75rem);
    font-variation-settings: "opsz" 96;
}

h3 {
    font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
    font-variation-settings: "opsz" 48;
}

h4 {
    font-size: 1.1rem;
}

ul,
ol {
    margin: 0;
    padding: 0;
}

address {
    font-style: normal;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.icon {
    width: 1.25em;
    height: 1.25em;
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: -0.3em;
}

.site-footer :focus-visible,
.lightbox :focus-visible {
    outline-color: #fff;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    z-index: 100;
    padding: 0.75rem 1rem;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
    color: #fff;
}

/* ---------- layout helpers ---------- */

.container {
    width: min(100% - 2 * var(--gutter), var(--content-max));
    margin-inline: auto;
}

.section {
    padding-block: clamp(3.5rem, 8vw, 6.5rem);
}

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

.section-heading {
    max-width: 44rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading p:last-child {
    margin-bottom: 0;
}

.section-heading--center {
    margin-inline: auto;
    text-align: center;
}

.kicker {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--brass-text);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lead {
    color: var(--muted);
    font-size: 1.15rem;
}

.muted {
    color: var(--muted);
}

.split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.split--start {
    align-items: start;
}

.media-rounded picture {
    display: block;
    padding: 8px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
}

.media-rounded img {
    border-radius: 2px;
    box-shadow: none;
}

.media-rounded img {
    width: 100%;
    box-shadow: var(--shadow);
}

/* ---------- buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--accent);
    border-radius: var(--radius-sm);
    background: var(--accent);
    line-height: 1.25;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease), transform 180ms var(--ease);
}

.button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.button:active {
    transform: translateY(1px);
}

.button--outline {
    background: transparent;
    color: var(--accent);
}

.button--outline:hover {
    background: var(--accent-soft);
    color: var(--accent-hover);
}

.button--light {
    background: #fff;
    border-color: #fff;
    color: var(--text);
}

.button--light:hover {
    background: var(--bg);
    border-color: var(--bg);
    color: var(--text);
}

.button--ghost-light {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
    backdrop-filter: blur(6px);
}

.button--ghost-light:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: #fff;
    color: #fff;
}

.button.is-busy {
    opacity: 0.7;
    cursor: progress;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

/* ---------- header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   turn it into the containing block for the position:fixed navigation drawer. */
.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: rgba(255, 252, 246, 0.96);
}

/* The backdrop blur costs a re-filter on every scroll frame, so it is reserved for
   desktop pointers where the GPU budget is not an issue. */
@media (min-width: 1141px) and (hover: hover) {
    .site-header::before {
        background: rgba(255, 252, 246, 0.92);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
    }
}

.site-header.is-scrolled {
    border-bottom-color: var(--border);
    box-shadow: 0 1px 0 var(--ochre), 0 8px 24px rgba(31, 27, 23, 0.06);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: var(--header-h);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text);
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-decoration: none;
    font-variation-settings: "opsz" 48;
}

.site-brand:hover {
    color: var(--accent);
}

.site-brand .icon {
    width: 1.1em;
    height: 1.1em;
    color: var(--accent);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(1rem, 2.5vw, 2rem);
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(0.9rem, 2.2vw, 1.9rem);
    list-style: none;
}

.site-nav__list a {
    color: var(--text);
    font-weight: 500;
    text-decoration: none;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
    transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.site-nav__list a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.nav-close,
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.9rem;
    height: 2.9rem;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
}

.nav-toggle .icon,
.nav-close .icon {
    width: 1.4rem;
    height: 1.4rem;
}

@media (min-width: 1141px) {
    .site-nav__cta {
        min-height: 2.75rem;
        padding: 0.5rem 1.15rem;
        background: transparent;
        color: var(--accent);
    }

    .site-nav__cta:hover,
    .site-header.is-scrolled .site-nav__cta {
        background: var(--accent);
        color: #fff;
    }
}

h1 em,
h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--accent);
}

/* ---------- hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: clamp(520px, 78vh, 820px);
    min-height: clamp(520px, 78svh, 820px);
    overflow: hidden;
}

.hero__media,
.hero__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero__media img {
    object-fit: cover;
    object-position: 62% 45%;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Just enough shading to seat the plate; the sunlit house stays bright. */
    background: linear-gradient(0deg, rgba(31, 27, 23, 0.45) 0%, rgba(31, 27, 23, 0.12) 45%, rgba(31, 27, 23, 0) 75%);
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

/* The copy sits on an ivory plate, like a mounted print, so the photo never has to be darkened. */
.hero__plate {
    max-width: 40rem;
    padding: clamp(1.5rem, 3.5vw, 2.5rem);
    background: var(--surface);
    border: 1px solid var(--text);
    border-radius: var(--radius-sm);
    box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6px var(--ochre), var(--shadow-strong);
}

.hero__plate h1 {
    margin-bottom: 1rem;
}

.hero__plate .lead {
    max-width: 34rem;
    font-size: clamp(1.05rem, 1.6vw, 1.2rem);
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

/* ---------- quick facts strip ---------- */

.facts {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.facts__list {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
}

.facts__list li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1.1rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-left: 1px solid var(--border);
}

.facts__list li:first-child {
    border-left: 0;
    padding-left: 0;
}

.facts__list .icon {
    color: var(--accent);
    width: 1.4rem;
    height: 1.4rem;
}

/* ---------- about ---------- */

.about-list {
    display: grid;
    gap: 1.1rem;
    list-style: none;
    margin-top: 1.5rem;
}

.about-list li {
    display: grid;
    grid-template-columns: 2.75rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.about-list .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

.about-list h3 {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 0.2rem;
}

.about-list p {
    margin: 0;
    color: var(--muted);
}

/* ---------- rooms ---------- */

.room-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.room-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 220ms var(--ease), border-color 220ms var(--ease);
}

.room-card:hover {
    transform: translateY(-2px);
    border-color: var(--ochre);
    box-shadow: none;
}

.room-card__media {
    position: relative;
}

.room-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.room-card__media .room-card__meta {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 252, 246, 0.94);
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(31, 27, 23, 0.12);
}

.room-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0.6rem;
    padding: 1.25rem 1.25rem 1.4rem;
}

.room-card h3 {
    margin: 0;
    font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.3rem);
}

.room-card__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.room-card__features {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.5rem;
    list-style: none;
    margin-top: 0.25rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.room-card__features li {
    padding: 0;
    background: none;
    border-radius: 0;
    font-weight: 400;
}

.room-card__features li + li::before {
    content: "\00b7";
    margin-right: 0.5rem;
    color: var(--ochre-mid);
}

.room-card .text-link {
    margin-top: auto;
    padding-top: 0.75rem;
}

.rooms-note {
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

/* ---------- self check-in ---------- */

.steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding: 1.5rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.steps li::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: inline-block;
    min-width: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--ochre);
    color: var(--ochre-mid);
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 1.5rem + 1vw, 2.25rem);
    font-weight: 500;
    line-height: 1;
    font-variation-settings: "opsz" 96;
}

.steps h3 {
    font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.3rem);
    margin-bottom: 0.4rem;
}

.steps p {
    margin: 0;
    color: var(--muted);
}

.inclusions {
    margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.inclusions h3 {
    margin-bottom: 1.25rem;
}

.inclusions__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem 1.5rem;
    list-style: none;
}

.inclusions__grid li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.inclusions__grid .icon {
    color: var(--accent);
    width: 1.35rem;
    height: 1.35rem;
}

/* ---------- gallery ---------- */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
}

.chip {
    min-height: 2.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 500;
    transition: background 160ms var(--ease), color 160ms var(--ease), border-color 160ms var(--ease);
}

.chip:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.chip.is-active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 1.25rem;
}

@media (min-width: 1025px) {
    .gallery-item.is-feature {
        grid-column: span 2;
        grid-row: span 2;
        display: flex;
        flex-direction: column;
    }

    .gallery-item.is-feature a {
        position: relative;
        flex: 1;
        min-height: 0;
    }

    .gallery-item.is-feature picture {
        position: absolute;
        inset: 4px;
    }

    .gallery-item.is-feature img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
    }
}

.gallery-item {
    margin: 0;
    min-width: 0;
}

.gallery-item a {
    display: block;
    padding: 4px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 200ms var(--ease);
}

.gallery-item picture {
    display: block;
    overflow: hidden;
    border-radius: 2px;
    background: var(--band);
}

.gallery-item a:hover,
.gallery-item a:focus-visible {
    border-color: var(--ochre);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 400ms var(--ease);
}

.gallery-item a:hover img,
.gallery-item a:focus-visible img {
    transform: scale(1.04);
}

.gallery-item figcaption {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.92rem;
}

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

/* ---------- lightbox ---------- */

.lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
}

.lightbox::backdrop {
    background: rgba(24, 20, 17, 0.94);
}

html.has-lightbox,
html.nav-open {
    overflow: hidden;
}

/* --sbw is set by JS to the scrollbar width so the layout does not shift when scrolling is locked. */
html.has-lightbox body,
html.nav-open body {
    padding-right: var(--sbw, 0px);
}

.lightbox-stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4.5rem 4.5rem 5rem;
    touch-action: none; /* the stage owns its gestures (swipe in JS) */
    -webkit-user-select: none;
    user-select: none;
}

.lightbox-figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: min(100%, 1400px);
    max-height: 100%;
    margin: 0;
}

.lightbox-figure picture {
    display: block;
    max-width: 100%;
    line-height: 0;
}

.lightbox-figure img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 10rem);
    max-height: calc(100dvh - 10rem);
    object-fit: contain;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-strong);
    transition: opacity 200ms var(--ease);
}

.lightbox.is-loading img {
    opacity: 0.35;
}

.lightbox.is-loading .lightbox-stage::after {
    content: "";
    position: absolute;
    width: 2.5rem;
    height: 2.5rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 999px;
    animation: lightbox-spin 800ms linear infinite;
}

@keyframes lightbox-spin {
    to {
        transform: rotate(360deg);
    }
}

.lightbox-caption {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.98rem;
    text-align: center;
}

.lightbox-counter {
    color: rgba(255, 255, 255, 0.6);
    font-variant-numeric: tabular-nums;
}

.lightbox-button {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transition: background 160ms var(--ease);
}

.lightbox-button:hover {
    background: rgba(255, 255, 255, 0.24);
}

.lightbox-button:focus-visible {
    outline-color: #fff;
}

.lightbox-button .icon {
    width: 1.5rem;
    height: 1.5rem;
}

.lightbox-close {
    top: 1rem;
    right: max(1rem, env(safe-area-inset-right));
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: max(1rem, env(safe-area-inset-left));
}

.lightbox-next {
    right: 1rem;
}

.lightbox.is-single .lightbox-prev,
.lightbox.is-single .lightbox-next {
    display: none;
}

/* ---------- location ---------- */

.distances {
    display: grid;
    gap: 0.6rem;
    list-style: none;
    margin: 1.5rem 0;
}

.distances li {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--border);
}

/* Dotted leader between place and time, like a timetable. */
.distances li::after {
    content: "";
    order: 1;
    flex: 1;
    min-width: 1.5rem;
    border-bottom: 2px dotted var(--border);
    transform: translateY(-0.3em);
}

.distances span:first-child {
    order: 0;
}

.distances span:last-child {
    order: 2;
    color: var(--muted);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.address-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem 1.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.address-card .icon {
    color: var(--accent);
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0.15rem;
}

.address-card address {
    margin-bottom: 0.6rem;
}

.map-panel {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 30% 30%, rgba(158, 69, 39, 0.1), transparent 45%),
        radial-gradient(circle at 70% 70%, rgba(196, 146, 58, 0.18), transparent 40%),
        var(--band);
    overflow: hidden;
}

.map-facade {
    max-width: 22rem;
    text-align: center;
}

.map-facade .icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.map-facade p {
    color: var(--muted);
    font-size: 0.95rem;
}

.map-panel.is-loaded {
    padding: 0;
}

.map-panel iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ---------- faq ---------- */

.faq-list {
    max-width: 52rem;
    margin-inline: auto;
}

.faq-list details {
    border-bottom: 1px solid var(--border);
}

.faq-list summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 1.05rem + 0.45vw, 1.3rem);
    font-weight: 500;
    cursor: pointer;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    content: "+" / "";
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border: 1px solid var(--text);
    border-radius: 3px;
    background: transparent;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1;
    transition: color 160ms var(--ease), border-color 160ms var(--ease);
}

.faq-list summary:hover {
    color: var(--accent);
}

.faq-list summary:hover::after {
    color: var(--accent);
    border-color: var(--accent);
}

.faq-list details[open] summary::after {
    content: "\2212";
    content: "\2212" / "";
}

.faq-list details > div {
    padding-bottom: 1.25rem;
    color: var(--muted);
}

.faq-list details > div p:last-child {
    margin-bottom: 0;
}

.price-table {
    width: 100%;
    margin: 0.75rem 0 1rem;
    border-collapse: collapse;
    font-size: 0.97rem;
}

.price-table td {
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.price-table td:last-child {
    text-align: right;
    white-space: nowrap;
    color: var(--text);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

/* ---------- contact ---------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: start;
}

.card {
    padding: clamp(1.5rem, 3vw, 2.25rem);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.card--band {
    background: var(--band);
}

.contact-details {
    display: grid;
    gap: 1.25rem;
    list-style: none;
}

.contact-details li {
    display: grid;
    grid-template-columns: 2.5rem minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.contact-details .icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: var(--surface);
    color: var(--accent);
}

.contact-details strong {
    display: block;
    margin-bottom: 0.15rem;
}

.contact-details p {
    margin: 0;
    color: var(--muted);
}

.contact-form {
    display: grid;
    gap: 1.1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.form-group {
    display: grid;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
}

.form-group label .optional {
    color: var(--muted);
    font-weight: 400;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-width: 0;
    min-height: 3rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-sm);
    background: var(--surface);
    color: var(--text);
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
    line-height: 1.25;
}


.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #6f665b;
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--accent);
}

.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    box-shadow: none;
}

.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
    border-color: #8a2a22;
    box-shadow: 0 0 0 3px rgba(138, 42, 34, 0.15);
}

.field-error {
    margin: 0;
    color: #8a2a22;
    font-size: 0.85rem;
}

.form-group textarea {
    min-height: 8rem;
    resize: vertical;
}

.form-group small {
    color: var(--muted);
    font-size: 0.82rem;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235E564C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1.1rem;
    padding-right: 2.6rem;
}

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-smallprint {
    margin: 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.form-status {
    margin: 0;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-sm);
    background: var(--band);
    color: var(--text);
    font-size: 0.95rem;
}

.form-status.is-success {
    background: #e4ecdd;
    color: #2f4a2e;
}

.form-status.is-info {
    background: var(--band);
}

.form-status.is-error {
    background: #f6e3e1;
    color: #8a2a22;
}

.flatpickr-calendar {
    font-family: var(--font-body);
    box-shadow: 0 0 0 1px var(--border), var(--shadow-strong);
    border-radius: var(--radius-sm);
}

.flatpickr-calendar.open {
    z-index: 35; /* above the mobile booking bar (30), below the sticky header (40) */
}

.flatpickr-calendar .flatpickr-day {
    border-radius: var(--radius-sm);
}

.flatpickr-calendar .flatpickr-day:hover,
.flatpickr-calendar .flatpickr-day:focus {
    background: var(--band);
    border-color: var(--band);
    color: var(--text);
}

.flatpickr-calendar .flatpickr-day:focus {
    outline: 3px solid var(--accent);
    outline-offset: -3px;
}

.flatpickr-calendar .flatpickr-day.today {
    border-color: var(--brass-text);
}

.flatpickr-calendar .flatpickr-day.today:hover,
.flatpickr-calendar .flatpickr-day.today:focus {
    background: var(--brass-text);
    border-color: var(--brass-text);
    color: #fff;
}

.flatpickr-calendar .flatpickr-day.selected,
.flatpickr-calendar .flatpickr-day.selected:hover,
.flatpickr-calendar .flatpickr-day.selected:focus,
.flatpickr-calendar .flatpickr-day.startRange,
.flatpickr-calendar .flatpickr-day.startRange:hover,
.flatpickr-calendar .flatpickr-day.startRange:focus,
.flatpickr-calendar .flatpickr-day.endRange,
.flatpickr-calendar .flatpickr-day.endRange:hover,
.flatpickr-calendar .flatpickr-day.endRange:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.flatpickr-calendar .flatpickr-day.prevMonthDay,
.flatpickr-calendar .flatpickr-day.nextMonthDay {
    color: var(--muted);
}

.flatpickr-calendar .flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-calendar .flatpickr-months .flatpickr-next-month:hover svg {
    fill: var(--accent);
}

/* ---------- footer ---------- */

.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #e2b865;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-grid p {
    margin: 0 0 0.75rem;
    color: var(--footer-text);
}

.footer-heading {
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    gap: 0.6rem;
    list-style: none;
}

.footer-links a {
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-top: 1.5rem;
    font-size: 0.88rem;
    color: rgba(217, 210, 197, 0.8);
}

.footer-bottom p {
    margin: 0;
}

/* ---------- mobile booking bar ---------- */

.mobile-bar {
    position: fixed;
    inset: auto 0 0;
    z-index: 30;
    display: none;
    gap: 0.75rem;
    padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
    background: rgba(255, 252, 246, 0.96);
    border-top: 1px solid var(--border);
    box-shadow: 0 -8px 24px rgba(31, 27, 23, 0.08);
    transform: translateY(110%);
    transition: transform 260ms var(--ease);
}

.mobile-bar .button {
    flex: 1;
}

.mobile-bar.is-visible {
    transform: translateY(0);
}

/* ---------- small pages (thanks, 404, privacy) ---------- */

.page {
    padding-block: clamp(3rem, 8vw, 6rem);
    min-height: 60vh;
}

.page--narrow {
    max-width: 46rem;
}

.page h2 {
    margin-top: 2.5rem;
}

/* ---------- responsive ---------- */

@media (max-width: 1100px) {
    .room-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts__list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0 2.5rem;
    }

    .facts__list li {
        border-left: 0;
        padding: 0.7rem 0;
    }
}

@media (max-width: 1140px) {
    :root {
        --header-h: 68px;
    }

    .nav-toggle,
    .nav-close {
        display: inline-flex;
    }

    .nav-close {
        position: absolute;
        top: calc((var(--header-h) - 2.9rem) / 2);
        right: var(--gutter);
    }

    .site-nav {
        position: fixed;
        inset: 0;
        z-index: 50;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 0;
        padding: calc(var(--header-h) + 1rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
        background: var(--bg);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform 260ms var(--ease), visibility 0s linear 260ms;
    }

    .site-nav.is-open {
        transform: translateX(0);
        visibility: visible;
        transition: transform 260ms var(--ease), visibility 0s;
    }

    .site-nav__list {
        flex: 1 1 auto;
        min-height: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .site-nav__list a {
        display: block;
        padding: 1rem 0;
        border-bottom: 1px solid var(--border);
        font-family: var(--font-display);
        font-size: 1.6rem;
        font-weight: 500;
    }

    .site-nav__list a:hover {
        border-bottom-color: var(--border);
    }

    .site-nav__cta {
        flex-shrink: 0;
        margin-top: 1rem;
        width: 100%;
    }
}

/* Short viewports (landscape phones): tighter drawer so every link and the CTA stay reachable. */
@media (max-width: 1140px) and (max-height: 600px) {
    .site-nav {
        padding-top: calc(var(--header-h) + 0.25rem);
    }

    .site-nav__list a {
        padding: 0.55rem 0;
        font-size: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .split,
    .contact-layout {
        grid-template-columns: 1fr;
    }

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

    .inclusions__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    .lightbox-stage {
        padding: 4.5rem 1rem 6rem;
    }

    .lightbox-figure img {
        max-width: 100%;
        max-height: calc(100vh - 12rem);
        max-height: calc(100dvh - 12rem);
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: calc(1.25rem + env(safe-area-inset-bottom));
        transform: none;
    }

    .lightbox-prev {
        left: calc(50% - 3.75rem);
    }

    .lightbox-next {
        right: calc(50% - 3.75rem);
    }

    .gallery-item.is-feature {
        grid-column: span 2;
    }

    .map-panel {
        position: static;
        aspect-ratio: 3 / 2;
        min-height: 300px;
    }

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

    .mobile-bar {
        display: flex;
    }

    /* Keep the footer's last line and any focused control clear of the fixed booking bar. */
    .site-footer {
        padding-bottom: calc(2rem + 4.75rem + env(safe-area-inset-bottom));
    }

    html {
        scroll-padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }
}

/* Landscape phones: give the photo the height back (mirrored by fitSizes() in js/lightbox.js). */
@media (max-width: 1024px) and (max-height: 560px) {
    .lightbox-stage {
        padding: 0.75rem 4.5rem 2.5rem;
    }

    .lightbox-figure {
        gap: 0.35rem;
    }

    .lightbox-figure img {
        max-height: calc(100vh - 6rem);
        max-height: calc(100dvh - 6rem);
    }

    .lightbox-caption {
        font-size: 0.85rem;
    }

    .lightbox-prev,
    .lightbox-next {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
    }

    .lightbox-prev {
        left: max(0.75rem, env(safe-area-inset-left));
    }

    .lightbox-next {
        right: max(0.75rem, env(safe-area-inset-right));
    }

    .lightbox-close {
        top: 0.5rem;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 1rem;
    }

    .hero__actions .button {
        flex: 1 1 100%;
    }

    .facts__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .facts__list li:last-child {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .facts__list li {
        border-left: 0;
        padding: 0.7rem 0;
    }

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

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

    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.5rem;
    }

    .gallery-item figcaption {
        display: none;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-footer .button {
        width: 100%;
    }
}

/* Phones: the photo becomes a 4:3 block and the plate slides up over its bottom edge, so the
   house stays bright and the headline plus buttons land on the first screen. */
@media (max-width: 767px) {
    .hero {
        display: block;
        min-height: 0;
        background: var(--bg);
    }

    .hero__media,
    .hero__media img {
        position: static;
        height: auto;
    }

    .hero__media img {
        aspect-ratio: 4 / 3;
        display: block;
    }

    .hero::after {
        display: none;
    }

    .hero__media img {
        max-height: 45svh;
    }

    .hero__content {
        margin-top: -4.5rem;
        padding-block: 0 2rem;
    }

    .hero__actions {
        margin-top: 1.25rem;
    }

    .hero__plate {
        max-width: none;
    }
}

/* Landscape phones: the sticky header plus the booking bar would take 38% of the screen. */
@media (max-width: 1024px) and (max-height: 500px) {
    .mobile-bar {
        display: none;
    }

    .site-footer {
        padding-bottom: 2.5rem;
    }

    html {
        scroll-padding-bottom: 1rem;
    }
}

/* Landscape phones and short desktops: let the hero shrink so the plate stays on the first screen. */
@media (min-width: 768px) and (max-height: 600px) {
    .hero {
        min-height: 0;
    }

    .hero__content {
        padding-block: 2rem 2.5rem;
    }
}

/* ---------- motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .site-nav {
        transition: none;
    }
}

@media print {
    .site-header,
    .mobile-bar,
    .hero__actions,
    .gallery-filters,
    .gallery-actions,
    .map-panel,
    .contact-form {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
    }

    .hero {
        min-height: 0;
        color: #000;
    }

    .hero__media,
    .hero::after {
        display: none;
    }

    .hero__content .kicker,
    .hero__content h1,
    .hero__content .lead {
        color: #000;
    }

    .steps li::before {
        background: none;
        border: 0;
        border-bottom: 1px solid #000;
        color: #000;
    }

    .site-footer {
        background: none;
        color: #000;
        padding-block: 1.5rem;
    }

    .site-footer a,
    .footer-brand,
    .footer-heading,
    .footer-grid p,
    .footer-bottom {
        color: #000;
    }
}
