:root {
    --ink: #12211d;
    --muted: #53635b;
    --paper: #f4f7f2;
    --surface: #ffffff;
    --line: #d9e2dc;
    --forest: #1d4936;
    --moss: #6f7f41;
    --alpine: #496b7d;
    --clay: #b8613b;
    --snow: #f8faf7;
    --shadow: 0 18px 48px rgba(18, 33, 29, .14);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--paper);
    color: var(--ink);
}

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

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 14px clamp(18px, 4vw, 56px);
    background: rgba(248, 250, 247, .9);
    border-bottom: 1px solid rgba(18, 33, 29, .08);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.main-nav a,
.main-nav button {
    padding: 10px 12px;
    border: 0;
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    font-weight: 700;
    cursor: pointer;
}

.main-nav a:hover,
.main-nav button:hover,
.main-nav .nav-cta {
    color: var(--snow);
    background: var(--forest);
}

.nav-dropdown {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 220px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(248, 250, 247, .98);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown-menu a {
    display: block;
    border-radius: 6px;
    color: var(--ink);
}

.nav-dropdown-menu a:hover {
    color: var(--snow);
}

.flash {
    margin: 18px auto 0;
    max-width: 1120px;
    padding: 14px 18px;
    border: 1px solid #b7dcc4;
    border-radius: 8px;
    background: #eaf7ee;
}

.hero-slider {
    position: relative;
    min-height: 76vh;
    padding: 92px clamp(20px, 6vw, 84px) 58px;
    overflow: hidden;
    isolation: isolate;
    background: #16241f;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 92px clamp(20px, 6vw, 84px) 118px;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s ease, visibility .7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(.58) saturate(.96);
    transform: scale(1.01);
}

.hero-content {
    max-width: 820px;
    color: var(--snow);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .3);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.hero .eyebrow,
.detail-hero .eyebrow {
    color: #f0c08f;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

.hero h1,
.detail-hero h1 {
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 68px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
}

.hero p:not(.eyebrow),
.lead {
    max-width: 660px;
    margin: 22px 0 0;
    font-size: 20px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
}

.button-primary {
    background: var(--clay);
    color: #fffaf5;
}

.button-primary:hover {
    background: #9d4d2f;
}

.button-ghost {
    border-color: rgba(255, 255, 255, .52);
    color: var(--snow);
    background: rgba(255, 255, 255, .12);
}

.button.full {
    width: 100%;
}

.hero-slider-footer {
    position: absolute;
    right: clamp(20px, 6vw, 84px);
    bottom: 34px;
    left: clamp(20px, 6vw, 84px);
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 22px;
    color: var(--snow);
}

.hero-slider-footer span {
    display: block;
    color: rgba(255, 255, 255, .74);
}

.hero-slider-footer strong {
    display: block;
    margin: 6px 0;
    font-size: 22px;
}

.hero-dots {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-dots button {
    width: 36px;
    height: 4px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .45);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: var(--snow);
}

.section {
    padding: 86px clamp(20px, 6vw, 84px);
}

.section-heading {
    max-width: 850px;
    margin-bottom: 36px;
}

.section-heading h2,
.landscape-band h2,
.prose h2,
.booking-panel h2,
.thanks-card h1 {
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 44px;
    line-height: 1.08;
    font-weight: 400;
}

.story-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    gap: 42px;
    align-items: start;
    margin-bottom: 34px;
}

.story-layout .section-heading {
    margin-bottom: 0;
}

.story-copy {
    display: grid;
    gap: 18px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
}

.story-copy p {
    margin: 0;
}

.section-heading.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
    align-items: end;
    gap: 32px;
    max-width: none;
}

.section-heading.split p:last-child,
.landscape-band p,
.intro-grid p,
.activity-grid p,
.gite-card p,
.prose,
.booking-panel p,
.thanks-card p {
    color: var(--muted);
    line-height: 1.7;
}

.intro-band {
    background: var(--snow);
}

.intro-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.intro-grid article,
.activity-grid article,
.gite-card,
.booking-panel,
.thanks-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(18, 33, 29, .08);
}

.intro-grid article {
    padding: 24px;
}

.marker {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--alpine);
    font-weight: 800;
}

.intro-grid h3,
.activity-grid h3,
.gite-card h3,
.feature-columns h2,
.reserved-periods h3 {
    margin: 0 0 10px;
    font-size: 22px;
}

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

.activity-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.activity-grid article {
    display: grid;
    gap: 14px;
    padding: 22px;
}

.activity-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(29, 73, 54, .16);
    border-radius: 8px;
    background: #f8faf7;
    color: var(--forest);
    font-size: 23px;
}

.gites-section {
    background: #e9f0ea;
}

.gite-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.gite-card {
    overflow: hidden;
}

.gite-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #cbd9cf;
}

.gite-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.gite-card:hover .gite-image img {
    transform: scale(1.04);
}

.gite-card-body {
    padding: 22px;
}

.gite-location {
    margin: 0 0 8px;
    color: var(--clay);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

.metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0;
}

.metrics span {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--snow);
    color: var(--forest);
    font-size: 13px;
    font-weight: 800;
}

.text-link,
.back-link {
    display: inline-flex;
    gap: 8px;
    color: var(--forest);
    font-weight: 800;
}

.landscape-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 520px);
    gap: 38px;
    align-items: end;
    color: var(--snow);
    background: var(--forest);
}

.landscape-band .eyebrow {
    color: #e7b678;
}

.landscape-band p {
    color: rgba(255, 255, 255, .72);
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 36px;
    padding: 58px clamp(20px, 6vw, 84px);
    color: var(--snow);
    background: #101a17;
}

.site-footer h2 {
    margin: 0 0 12px;
    font-size: 32px;
}

.site-footer p {
    max-width: 620px;
    color: rgba(255, 255, 255, .72);
}

.site-footer address {
    display: grid;
    gap: 12px;
    align-content: center;
    font-style: normal;
    font-weight: 800;
}

.footer-links {
    display: grid;
    gap: 12px;
    align-content: center;
    color: rgba(255, 255, 255, .72);
    font-weight: 800;
}

.footer-links a:hover {
    color: var(--snow);
}

.legal-hero {
    padding: 96px clamp(20px, 6vw, 84px) 54px;
    background: #e9f0ea;
}

.legal-hero h1 {
    max-width: 900px;
    margin: 0;
    font-family: "Instrument Serif", Georgia, serif;
    font-size: 58px;
    line-height: 1;
    font-weight: 400;
}

.legal-hero p:last-child {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.legal-document {
    max-width: 920px;
    margin: 0 auto;
    padding: 64px clamp(20px, 6vw, 84px) 86px;
}

.legal-document article {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.legal-document article:first-child {
    border-top: 0;
    padding-top: 0;
}

.legal-document h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.legal-document p {
    margin: 10px 0;
    color: var(--muted);
    line-height: 1.75;
}

.legal-document a {
    color: var(--forest);
    font-weight: 800;
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
    min-height: 74vh;
    background: #13241f;
    color: var(--snow);
}

.detail-hero-image {
    min-height: 440px;
}

.detail-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero-content {
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 90px clamp(24px, 5vw, 72px) 58px;
}

.detail-metrics span {
    border-color: rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .1);
    color: var(--snow);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 34px;
    align-items: start;
}

.detail-main {
    min-width: 0;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 54px;
}

.gallery figure {
    margin: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--surface);
}

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

.gallery figcaption {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 13px;
}

.prose {
    max-width: 780px;
    margin-bottom: 44px;
    font-size: 17px;
}

.feature-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.feature-columns section {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
}

.check-list {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 26px;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .55em;
    width: 12px;
    height: 8px;
    border-left: 2px solid var(--moss);
    border-bottom: 2px solid var(--moss);
    transform: rotate(-45deg);
}

.availability-section {
    margin-top: 54px;
}

.detail-main .section-heading.split {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
}

.availability-section .section-heading {
    margin-bottom: 24px;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 800;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.legend-dot {
    display: inline-flex;
    width: 12px;
    height: 12px;
    border-radius: 999px;
}

.legend-dot.available {
    background: #dbeedd;
}

.legend-dot.blocked {
    background: #c46d4f;
}

.legend-dot.rule-limited {
    border: 2px solid var(--alpine);
    background: #eef5f4;
}

.availability-calendar {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 420px;
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(18, 33, 29, .07);
}

.calendar-toolbar strong {
    color: var(--forest);
    font-size: 16px;
}

.calendar-arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--snow);
    color: var(--forest);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
}

.calendar-arrow:hover:not(:disabled) {
    border-color: var(--forest);
    background: var(--forest);
    color: var(--snow);
}

.calendar-arrow:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.calendar-month {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: 0 12px 30px rgba(18, 33, 29, .07);
}

.calendar-month[hidden] {
    display: none;
}

.calendar-month h3 {
    margin: 0 0 10px;
    font-size: 17px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.calendar-weekdays {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-align: center;
}

.calendar-day {
    display: grid;
    place-items: center;
    min-height: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #e9f4eb;
    color: var(--forest);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.calendar-day.is-blocked {
    border-color: #c46d4f;
    background: #c46d4f;
    color: #fffaf5;
    cursor: not-allowed;
}

.calendar-day.is-past {
    border-color: #eef0ec;
    background: #eef0ec;
    color: #9aa49e;
    cursor: not-allowed;
}

.calendar-day.is-rule-limited {
    border-color: rgba(73, 107, 125, .5);
    background: #eef5f4;
    color: var(--alpine);
}

.calendar-day.is-selected {
    border-color: var(--forest);
    background: var(--forest);
    color: var(--snow);
}

.calendar-day.is-in-range {
    border-color: #bfd4c7;
    background: #dcebe2;
}

.calendar-day.is-empty {
    background: transparent;
    cursor: default;
}

.calendar-selection-help,
.booking-rule-message {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.calendar-selection-help.is-error,
.booking-rule-message.is-error {
    color: #a43b30;
    font-weight: 800;
}

.booking-rule-summary {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8faf7;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.booking-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
}

.booking-heading {
    margin-bottom: 20px;
}

.booking-heading h2 {
    font-size: 34px;
}

.booking-form,
.admin-form {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

input,
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfa;
    color: var(--ink);
}

textarea {
    resize: vertical;
}

.form-grid {
    display: grid;
    gap: 12px;
}

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

.error-box {
    margin-bottom: 16px;
    padding: 14px;
    border: 1px solid #d99a8a;
    border-radius: 8px;
    background: #fff1ec;
}

.error-box ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.reserved-periods {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.reserved-periods p {
    margin: 6px 0;
    font-weight: 700;
}

.thanks-section {
    min-height: 66vh;
    display: grid;
    place-items: center;
}

.thanks-card {
    max-width: 760px;
    padding: clamp(28px, 5vw, 54px);
}

@media (max-width: 980px) {
    .site-header,
    .site-footer,
    .story-layout,
    .section-heading.split,
    .landscape-band,
    .detail-hero,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .main-nav {
        gap: 2px;
        font-size: 13px;
    }

    .main-nav a {
        padding: 8px 9px;
    }

    .hero-slide {
        min-height: 78vh;
    }

    .hero h1,
    .detail-hero h1 {
        font-size: 54px;
    }

    .hero-slider-footer {
        align-items: start;
        flex-direction: column;
    }

    .intro-grid,
    .activity-grid,
    .gite-grid,
    .feature-columns,
    .availability-calendar {
        grid-template-columns: 1fr;
    }

    .booking-panel {
        position: static;
    }
}

@media (max-width: 680px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .hero {
        padding-top: 92px;
    }

    .hero-slide {
        padding: 82px 20px 128px;
    }

    .nav-dropdown-menu {
        position: fixed;
        right: 16px;
        left: 16px;
        top: 116px;
    }

    .hero p:not(.eyebrow),
    .lead {
        font-size: 17px;
    }

    .section {
        padding-top: 62px;
        padding-bottom: 62px;
    }

    .section-heading h2,
    .landscape-band h2,
    .prose h2,
    .thanks-card h1 {
        font-size: 34px;
    }

    .gallery,
    .form-grid.two {
        grid-template-columns: 1fr;
    }
}
