/* ===================================
   Ferienwohnung Wusterwitz
   Editorial tourism layout
   =================================== */

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('fonts/cormorant-garamond-v21-latin-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('fonts/cormorant-garamond-v21-latin-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('fonts/cormorant-garamond-v21-latin-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Cormorant Garamond';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('fonts/cormorant-garamond-v21-latin-700.woff2') format('woff2');
}

:root {
    --ink: #1f2623;
    --muted: #6c746f;
    --paper: #ffffff;
    --soft: #f4f7f1;
    --stone: #e4e7df;
    --forest: #34463c;
    --forest-dark: #223027;
    --clay: #b86f4c;
    --clay-dark: #8f5134;
    --line: #d7ddd2;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', Arial, sans-serif;
    --nav-height: 72px;
    --section-space: clamp(3rem, 5vw, 7rem); /* mobile-friendly spacing, preserves large desktop gaps */
    --container: 1180px;
    --primary-color: var(--forest);
    --accent: var(--clay);
    --accent-dark: var(--clay-dark);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

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

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 3rem));
    margin: 0 auto;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: var(--paper);
    animation: fadeOutLoading 0.35s ease forwards;
    animation-delay: 0.45s;
}

.loader {
    width: 44px;
    height: 1px;
    background: var(--forest);
}

@keyframes fadeOutLoading {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Navigation */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--paper);
    border-bottom: 1px solid rgba(31, 38, 35, 0.08);
    transition: border-color 0.25s ease;
}

.navbar.scrolled {
    border-bottom-color: rgba(31, 38, 35, 0.18);
}

.navbar-content {
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.logo-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.logo-text {
    color: var(--forest);
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    list-style: none;
}

.nav-link {
    position: relative;
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -0.55rem;
    height: 1px;
    background: var(--clay);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
    transform: scaleX(1);
}

.hamburger {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--paper);
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: var(--ink);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Shared type */

.eyebrow {
    color: var(--clay-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.08;
}

h2 {
    font-size: clamp(1.6rem, 3vw, 3.15rem);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.85rem 1.35rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--forest);
    color: var(--paper);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--forest-dark);
}

.btn-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    color: var(--paper);
    font-size: 0.96rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

.section-line {
    display: grid;
    grid-template-columns: 0.85fr 1.5fr;
    gap: 3rem;
    align-items: end;
    margin-bottom: 3.2rem;
}

.section-line h2 {
    max-width: 620px;
}

/* Hero */

.hero {
    position: relative;
    min-height: 560px;
    height: calc(100svh - 120px);
    max-height: 790px;
    margin-top: var(--nav-height);
    overflow: hidden;
    background: var(--forest);
}

.hero-background,
.hero-overlay {
    position: absolute;
    inset: 0;
}

.hero-background {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    background:
        linear-gradient(90deg, rgba(10, 15, 12, 0.78) 0%, rgba(10, 15, 12, 0.48) 44%, rgba(10, 15, 12, 0.12) 100%),
        linear-gradient(0deg, rgba(10, 15, 12, 0.5) 0%, rgba(10, 15, 12, 0) 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(860px, calc(100% - 4rem));
    margin-left: max(2rem, calc((100vw - var(--container)) / 2));
    padding-top: 7rem;
    color: var(--paper);
}

.hero-content .eyebrow {
    color: #f2c1a9;
    margin-bottom: 1rem;
}

.hero-title {
    max-width: 770px;
    color: var(--paper);
    font-size: 4.8rem;
}

.hero-title {
    max-width: 770px;
    color: var(--paper);
    font-size: clamp(2.4rem, 6vw, 4.8rem);
    line-height: 1.02;
}
.hero-subtitle {
    max-width: 620px;
    margin-top: 1.2rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(1rem, 2.2vw, 1.18rem);
}
.hero-actions {    
    display: flex;
    gap: 1.4rem;
    margin-top: 2.2rem;
}

.hero-actions .btn-primary {
    background: var(--paper);
    color: var(--forest);
}

.hero-actions .btn-primary:hover,
.hero-actions .btn-primary:focus-visible {
    background: #eef3e8;
}

.hero-note {
    position: absolute;
    right: max(1.5rem, calc((100vw - var(--container)) / 2));
    bottom: 1.5rem;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.55rem;
    max-width: 580px;
}

.hero-note span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.36rem 0.7rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--forest-dark);
    font-size: 0.84rem;
    font-weight: 600;
}

/* Intro */

.intro {
    padding: 4.8rem 0 3rem;
    background: var(--paper);
}

.intro-grid {
    display: grid;
    grid-template-columns: 0.72fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.intro-kicker {
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
}

.intro-kicker span {
    color: var(--forest);
    font-family: var(--font-serif);
    font-size: 1.45rem;
    font-weight: 600;
}

/* ======================
   Gallery / Lightbox
   ====================== */

.gallery-tabs {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.gallery-tab {
    background: transparent;
    border: 1px solid rgba(31,38,35,0.06);
    color: var(--ink);
    padding: 0.5rem 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.gallery-tab:hover {
    transform: translateY(-2px);
}

.gallery-tab.active {
    background: var(--accent);
    color: var(--paper);
    border-color: transparent;
    box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

.gallery-categories {
    margin-top: 1.2rem;
}

.gallery-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    align-items: start;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: var(--soft);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s cubic-bezier(.2,.9,.2,1);
}

.gallery-item:hover img {
    transform: scale(1.06) translateZ(0);
}

.gallery-item figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.6rem 0.9rem;
    background: none;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
}

.gallery-btn {
    position: absolute;
    top: 0.6rem;
    right: 0.6rem;
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
    cursor: pointer;
}

/* Lightbox tweaks */
.lightbox {
    background: rgba(6,8,6,0.85);
}

.lightbox-content img {
    max-width: 92vw;
    max-height: 82vh;
    box-shadow: 0 18px 50px rgba(0,0,0,0.6);
    border-radius: 6px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,0.06);
    color: #fff;
    border: none;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
}

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

    .hero-title {
        padding-right: 1rem;
    }
}

/* ======================
   Contact form & Footer
   ====================== */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 2.4rem;
    align-items: start;
}

.contact-info h2 {
    color: var(--forest-dark);
    font-size: 1.6rem;
    margin-bottom: 0.6rem;
}

.contact-form {
    background: var(--soft);
    padding: 1.4rem;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form label {
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--forest);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 0.95rem;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    box-shadow: 0 6px 18px rgba(52,70,60,0.08);
    border-color: var(--accent);
}

.contact-form .btn-primary {
    background: var(--forest);
    color: var(--paper);
    border-radius: 8px;
    padding: 0.9rem 1.2rem;
    min-height: 48px;
    border: 1px solid rgba(0,0,0,0.04);
}

.contact-form .btn-primary:hover,
.contact-form .btn-primary:focus-visible {
    background: var(--forest-dark);
}

/* Kontakt-spezifische Farbübersteuerungen */
.contact .eyebrow {
    color: var(--forest);
}

.contact .contact-details a {
    color: var(--forest);
    text-decoration: underline;
    text-decoration-color: var(--forest);
    font-weight: 700;
}

.contact-form .form-notice {
    margin-top: 0.6rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.contact-details .detail-item {
    margin-bottom: 0.6rem;
}

.footer {
    background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
    color: #ffffff;
    padding: 2.4rem 0;
}

.footer h2 {
    color: #fff;
}

.footer-nav a {
    color: rgba(255,255,255,0.9);
    margin-right: 1rem;
    text-decoration: none;
    font-weight: 600;
}

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

.footer-bottom {
    margin-top: 1rem;
    color: rgba(255,255,255,0.85);
}

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

    .footer {
        text-align: center;
    }
}

.intro-copy {
    max-width: 820px;
}

.intro-copy h2 {
    margin-bottom: 1.2rem;
}

.intro-copy p {
    max-width: 760px;
    font-size: 1.12rem;
}

/* Story sections */

.story-section {
    padding: var(--section-space) 0;
}

.story-section-left {
    background: var(--soft);
}

.story-section-right {
    background: var(--paper);
}

.story-grid {
    display: grid;
    grid-template-columns: 1.22fr 0.78fr;
    gap: 5.5rem;
    align-items: center;
}

.story-grid-reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.story-image {
    min-height: 420px;
    overflow: hidden;
}

.story-image-large {
    min-height: 520px;
}

.story-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.story-copy {
    max-width: 520px;
}

.story-copy-wide {
    max-width: 600px;
}

.story-copy .eyebrow,
.amenities-copy .eyebrow,
.location-copy .eyebrow,
.pricing-intro .eyebrow,
.contact-text .eyebrow {
    margin-bottom: 1rem;
}

.story-copy h2,
.amenities-copy h2,
.location-copy h2,
.pricing-intro h2,
.contact-text h2 {
    margin-bottom: 1.4rem;
}

.story-copy p + p,
.amenities-copy p + p {
    margin-top: 1rem;
}

/* Mood panel */

.mood-panel {
    position: relative;
    overflow: hidden;
    background-image: url('bilder/See1.jpeg');
    background-position: center;
    background-size: cover;
    max-width: var(--container);
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    min-height: 240px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
}

.mood-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 16, 13, 0.45), rgba(11, 16, 13, 0.15));
}

.mood-copy {
    position: relative;
    z-index: 1;
    max-width: 740px;
    text-align: center;
    color: var(--paper);
}

.mood-copy span {
    display: block;
    margin-bottom: 0.75rem;
    color: #f2c1a9;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.mood-copy p {
    margin: 0;
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 600;
    line-height: 1.4;
}

/* Gallery */

.gallery {
    padding: var(--section-space) 0;
    background: var(--paper);
}

.gallery-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.8rem;
}

.gallery-tab {
    appearance: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.85rem 1.2rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.gallery-tab:hover,
.gallery-tab:focus-visible {
    border-color: var(--forest);
}

.gallery-tab.active {
    background: var(--forest);
    color: var(--paper);
    border-color: var(--forest);
}

.gallery-categories {
    display: grid;
    gap: 1.5rem;
}

.gallery-category {
    display: none;
}

.gallery-category.active {
    display: block;
}

.gallery-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
        gap: 1rem;
        align-items: start;
    }

    .gallery-item {
        position: relative;
        overflow: hidden;
        background: var(--stone);
        border-radius: 0.8rem;
        width: 100%;
    }

    .gallery-item img {
        width: 100%;
        aspect-ratio: 16/9;
        height: auto;
        min-height: 180px;
        object-fit: cover;
        transition: transform 0.45s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.025);
    }

    .gallery-item::after {
        content: "";
        position: absolute;
        inset: auto 0 0 0;
        height: 48%;
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0));
        pointer-events: none;
    }

    .gallery-item figcaption {
        position: absolute;
        left: 1rem;
        bottom: 1rem;
        z-index: 1;
        color: var(--paper);
        font-family: var(--font-serif);
        font-size: clamp(1rem, 2.2vw, 1.2rem);
        font-weight: 600;
    }

    .gallery-btn {
        position: absolute;
        top: 0.9rem;
        right: 0.9rem;
        z-index: 2;
        min-height: 40px;
        padding: 0.55rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.72);
        border-radius: 0.85rem;
        background: rgba(31, 38, 35, 0.55);
        color: var(--paper);
        font-family: var(--font-sans);
        font-size: 0.95rem;
        font-weight: 700;
        cursor: pointer;
    }

.gallery-btn:hover,
.gallery-btn:focus-visible {
    background: var(--paper);
    color: var(--forest);
}

/* Lightbox */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(12, 16, 14, 0.94);
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 88vh;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(0, 0, 0, 0.35);
    color: var(--paper);
    cursor: pointer;
}

.lightbox-close {
    top: -46px;
    right: 0;
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    width: 44px;
    height: 54px;
    transform: translateY(-50%);
    font-size: 2rem;
}

.lightbox-prev {
    left: -58px;
}

.lightbox-next {
    right: -58px;
}

/* Amenities */

.amenities {
    padding: var(--section-space) 0;
    background: var(--soft);
}

.amenities-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 5rem;
    align-items: start;
}

.amenities-copy {
    max-width: 560px;
}

.amenities-list {
    border-top: 1px solid var(--line);
}

.amenities-list div {
    display: grid;
    grid-template-columns: 0.34fr 0.66fr;
    gap: 2rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--line);
}

.amenities-list strong {
    color: var(--forest);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 700;
}

.amenities-list span {
    color: var(--muted);
}

/* Location */

.location {
    padding: var(--section-space) 0;
    background: var(--paper);
}

.location-grid {
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    gap: 5rem;
    align-items: center;
}

.location-copy {
    max-width: 540px;
}

.route-notes {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}

.route-notes p {
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--line);
}

.route-notes strong {
    display: block;
    color: var(--forest);
}

.location-map {
    min-height: 420px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.location-map iframe {
    display: block;
    width: 100%;
    min-height: 420px;
}

/* Pricing */

.pricing {
    padding: var(--section-space) 0;
    background: var(--forest);
    color: var(--paper);
}

.pricing-layout {
    display: grid;
    grid-template-columns: 0.86fr 1.14fr;
    gap: 5rem;
    align-items: start;
}

.pricing-intro {
    max-width: 540px;
}

.pricing-intro .eyebrow {
    color: #f2c1a9;
}

.pricing-intro p,
.pricing-intro h2 {
    color: var(--paper);
}

.pricing-intro p {
    color: rgba(255, 255, 255, 0.78);
}

.price-list {
    border-top: 1px solid rgba(255, 255, 255, 0.28);
}

.price-row {
    display: grid;
    grid-template-columns: 1fr auto 0.6fr;
    gap: 1.4rem;
    align-items: baseline;
    padding: 1.7rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.price-row span {
    color: var(--paper);
    font-family: var(--font-serif);
    font-size: 1.55rem;
    font-weight: 700;
}

.price-row strong {
    color: var(--paper);
    font-size: 1.25rem;
    white-space: nowrap;
}

.price-row small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.price-list .btn {
    margin-top: 2rem;
    background: var(--paper);
    color: var(--forest);
}

.price-list .btn:hover,
.price-list .btn:focus-visible {
    background: #eef3e8;
}

/* Contact */

.contact {
    padding: var(--section-space) 0;
    background: var(--paper);
    padding-top: 0;
}

.contact-image {
    width: min(100%, var(--container));
    margin: 0 auto 3rem;
    overflow: hidden;
    max-height: 420px;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 5rem;
    align-items: start;
    padding-top: 1rem;
}

.contact-info {
    padding: 0;
}

.contact-info h2 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.contact-info > p:nth-of-type(2) {
    margin-bottom: 2rem;
    color: var(--muted);
}

.contact-details {
    margin-top: 2.5rem;
    border-top: 1px solid var(--line);
    padding-top: 1.5rem;
}

.detail-item {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--line);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item strong {
    display: block;
    color: var(--forest);
    font-size: 0.88rem;
    margin-bottom: 0.4rem;
}

.detail-item a {
    color: var(--ink);
    text-decoration-color: var(--clay);
    text-underline-offset: 0.2rem;
    font-size: 0.96rem;
}

.contact-form {
    padding: 2.1rem;
    border: 1px solid var(--line);
    background: #fbfcf9;
}

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

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--forest);
    font-size: 0.88rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    min-height: 46px;
    padding: 0.78rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.96rem;
}

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

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

.form-notice {
    margin-top: 0.8rem;
    font-size: 0.86rem;
    text-align: center;
}

/* Legal pages */

.legal-page {
    background: var(--paper);
}

.legal-hero {
    margin-top: var(--nav-height);
    padding: 6.5rem 0 5rem;
    background: var(--soft);
}

.legal-hero-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: end;
}

.legal-hero .eyebrow {
    margin-bottom: 1rem;
}

.legal-hero h1 {
    max-width: 720px;
    font-size: 4rem;
}

.legal-hero p:not(.eyebrow) {
    max-width: 620px;
    font-size: 1.08rem;
}

.legal-content {
    padding: 5.5rem 0 6.5rem;
}

.legal-layout {
    display: grid;
    grid-template-columns: 0.34fr 0.66fr;
    gap: 4.5rem;
    align-items: start;
}

.legal-meta {
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
    border-top: 1px solid var(--line);
}

.legal-meta p {
    display: grid;
    gap: 0.2rem;
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--line);
}

.legal-meta strong {
    color: var(--forest);
    font-size: 0.82rem;
    text-transform: uppercase;
}

.legal-meta span,
.legal-meta a {
    color: var(--ink);
}

.legal-text {
    max-width: 760px;
}

.legal-section {
    padding-bottom: 2.4rem;
    margin-bottom: 2.4rem;
    border-bottom: 1px solid var(--line);
}

.legal-section h2 {
    margin-bottom: 1rem;
    color: var(--forest);
    font-size: 2rem;
}

.legal-section p + p {
    margin-top: 0.9rem;
}

.legal-note {
    padding: 1.5rem;
    border: 1px solid var(--line);
    background: #fbfcf9;
}

/* Footer */

.footer {
    padding: 4.5rem 0 2rem;
    background: var(--ink);
    color: var(--paper);
}

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

.footer h2 {
    color: var(--paper);
    font-size: 2.25rem;
}

.footer p {
    color: rgba(255, 255, 255, 0.72);
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(120px, 1fr));
    gap: 0.65rem 2rem;
    justify-self: end;
}

.footer-nav a,
.footer-bottom a {
    color: rgba(255, 255, 255, 0.84);
    text-decoration-color: rgba(255, 255, 255, 0.35);
    text-underline-offset: 0.18rem;
}

.footer-bottom {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

/* Scroll reveal */

[data-aos] {
    opacity: 0;
}

[data-aos].show {
    animation: reveal 0.6s ease forwards;
}

@keyframes reveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */

@media (max-width: 1050px) {
    :root {
        --section-space: 5.5rem;
    }

    h2 {
        font-size: 2.55rem;
    }

    .hero-title {
        font-size: 3.8rem;
    }

    .hero-actions .btn-primary {
        background: var(--forest);
        color: var(--paper);
        padding: 0.95rem 1.5rem;
        min-height: 52px;
        box-shadow: 0 6px 18px rgba(52, 70, 60, 0.12);
        border: 1px solid rgba(0,0,0,0.04);
    }

    .hero-actions .btn-primary:hover,
    .hero-actions .btn-primary:focus-visible {
        background: var(--forest-dark);
    }
    .story-copy-wide,
    .amenities-copy,
    .location-copy,
    .pricing-intro {
        max-width: 720px;
    }

    .story-image,
    .story-image-large {
        min-height: 500px;
    }

    .gallery-tabs {
        overflow-x: auto;
    }

    .gallery-strip {
        gap: 0.9rem;
    }

    .gallery-item {
        min-width: 280px;
    }

    .legal-meta {
        position: static;
    }

    .gallery-item-wide {
        grid-column: span 1;
    }

    .gallery-item-tall {
        grid-row: span 1;
    }
}

@media (max-width: 820px) {
    .container {
        width: min(var(--container), calc(100% - 2rem));
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        display: grid;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        transition: max-height 0.25s ease;
    }

    .nav-links.active {
        max-height: 420px;
    }

    .nav-links li {
        border-top: 1px solid var(--line);
    }

    .nav-link {
        display: block;
        padding: 0.95rem 1.25rem;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        min-height: 540px;
        height: calc(100svh - 110px);
    }

    .hero-content {
        width: calc(100% - 2rem);
        margin-left: 1rem;
        padding-top: 4.7rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-note {
        left: 1rem;
        right: 1rem;
        justify-content: flex-start;
    }

    .intro-grid,
    .section-line,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .story-image,
    .story-image-large,
    .mood-panel,
    .mood-panel img,
    .contact-image img {
        min-height: 390px;
    }

    .mood-copy {
        left: 1rem;
        right: 1rem;
        bottom: 2rem;
    }

    .mood-copy p {
        font-size: 2.55rem;
    }

    .legal-hero {
        padding: 5rem 0 4rem;
    }

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

    .legal-hero h1 {
        font-size: 3rem;
    }

    .legal-content {
        padding: 4rem 0 5rem;
    }

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

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

    .location-map {
        min-height: 320px;
    }

    .location-map iframe {
        min-height: 320px;
    }

    .gallery-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: 310px;
    }

    .amenities-list div,
    .contact-details p,
    .price-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .price-row strong {
        white-space: normal;
    }

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

    .footer-layout,
    .footer-bottom {
        grid-template-columns: 1fr;
        display: grid;
    }

    .footer-nav {
        justify-self: stretch;
    }

    .lightbox-prev {
        left: 0;
    }

    .lightbox-next {
        right: 0;
    }
}

@media (max-width: 768px) {
    :root {
        --section-space: clamp(2.5rem, 4.5vw, 5rem);
    }

    .hero-content {
        width: calc(100% - 2rem);
        padding-top: 5rem;
    }

    .story-grid,
    .story-grid-reverse,
    .intro-grid,
    .pricing-layout,
    .amenities-grid,
    .location-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .gallery-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        flex-wrap: initial;
    }

    .gallery-tab {
        flex: initial;
        min-width: initial;
        padding: 0.65rem 0.8rem;
        font-size: 0.85rem;
    }

    .legal-hero {
        padding: 4rem 0 3rem;
    }

    .legal-hero h1 {
        font-size: 2.5rem;
    }

    .legal-content {
        padding: 3rem 0 4rem;
    }

    .legal-meta {
        border-top: none;
        padding-bottom: 2rem;
        margin-bottom: 2rem;
    }

    .story-image,
    .story-image-large {
        min-height: 320px;
    }

    .gallery-strip {
        grid-template-columns: 1fr;
    }

    .gallery-tab {
        flex: 1 1 auto;
        min-width: 12rem;
    }

    .mood-copy p {
        font-size: clamp(1.15rem, 3.8vw, 1.4rem);
    }
}

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

    h2 {
        font-size: 2.12rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .hero-title {
        font-size: 2.38rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 0.9rem;
    }

    .text-link {
        width: max-content;
    }

    .intro {
        padding-top: 3.4rem;
    }

    .story-section,
    .gallery,
    .amenities,
    .location,
    .pricing,
    .contact {
        padding: 4rem 0;
    }

    .legal-hero h1 {
        font-size: 2.12rem;
    }

    .legal-hero p:not(.eyebrow) {
        font-size: 0.95rem;
    }

    .legal-section h2 {
        font-size: 1.5rem;
    }

    .legal-meta p {
        padding: 0.8rem 0;
    }

    .legal-meta strong {
        font-size: 0.75rem;
    }

    .gallery-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
        flex-wrap: initial;
    }

    .gallery-tab {
        flex: initial;
        min-width: initial;
        padding: 0.55rem 0.7rem;
        font-size: 0.8rem;
    }

    .story-image,
    .story-image-large,
    .mood-panel,
    .mood-panel img,
    .contact-image img {
        min-height: 320px;
    }

    /* Make gallery items adapt better on very small screens */
    .gallery-strip {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        width: 100%;
    }

    .gallery-btn {
        min-height: 44px;
        padding: 0.65rem 1rem;
        font-size: 0.95rem;
    }

    .hero-actions .btn,
    .hero-actions .text-link {
        width: 100%;
    }

    .contact-form,
    .hero-content,
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .gallery-mosaic {
        grid-auto-rows: 270px;
    }

    .location-grid {
        gap: 1.4rem;
    }

    .location-map {
        min-height: 280px;
    }

    .location-map iframe {
        min-height: 280px;
    }

    .contact-form {
        padding: 1.2rem;
    }

    .footer-nav {
        grid-template-columns: 1fr;
    }
}

/* Extra small devices tweaks */
@media (max-width: 420px) {
    .hero {
        min-height: 420px;
        height: calc(100svh - 100px);
    }

    .hero-content {
        padding-top: 3.2rem;
        width: calc(100% - 2rem);
        margin-left: 1rem;
    }

    .hero-title {
        font-size: 2.15rem;
    }

    /* give horizontal gallery some breathing room */
    .gallery-strip {
        padding-inline: 1rem;
    }

    /* improve lightbox controls on narrow screens */
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 44px;
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
        width: 36px;
        height: 36px;
        font-size: 1.4rem;
    }

    /* Accessible skip-link styling (script injects the element) */
    .skip-link {
        position: absolute;
        left: 0;
        top: -48px;
        background: var(--primary-color);
        color: var(--paper);
        padding: 10px 14px;
        z-index: 1200;
        border-radius: 0 0 6px 0;
        text-decoration: none;
        font-weight: 700;
    }

    .skip-link:focus {
        top: 0;
    }
}

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