:root {
    --ink: #1a1e1b;
    --sage: #596b5d;
    --stone: #f2efe9;
    --pine: #2f3a31;
    --clay: #c88b62;
    --cream: #fbf7f0;
    --shadow: 0 24px 60px rgba(22, 28, 22, 0.18);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Work Sans", "Segoe UI", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top left, #f7f2e8, #f2efe9 35%, #ebe6dd 70%);
    line-height: 1.6;
}

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

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

main {
    overflow: hidden;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px);
    background: rgba(251, 247, 240, 0.85);
    border-bottom: 1px solid rgba(47, 58, 49, 0.08);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 6vw;
    gap: 16px;
}

.brand {
    font-family: "Fraunces", "Georgia", serif;
    font-size: 1.3rem;
    letter-spacing: 0.03em;
}

.nav-links {
    display: flex;
    gap: 18px;
    align-items: center;
    font-size: 0.95rem;
}

.nav-cta {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--pine);
    color: var(--cream);
    font-weight: 600;
}

.auth-form {
    max-width: 420px;
    background: var(--cream);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 32px;
    padding: 48px 6vw 80px;
    align-items: center;
}

.hero-image {
    min-height: 520px;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(26, 30, 27, 0.2), rgba(26, 30, 27, 0));
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    animation: fadeUp 0.9s ease-out;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.72rem;
    color: var(--sage);
}

h1,
h2,
h3 {
    font-family: "Fraunces", "Georgia", serif;
    margin: 0;
}

h1 {
    font-size: clamp(2.6rem, 4vw, 4.2rem);
}

.lede {
    font-size: 1.1rem;
    color: rgba(26, 30, 27, 0.8);
    max-width: 520px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button.primary {
    background: var(--pine);
    color: var(--cream);
    box-shadow: 0 16px 32px rgba(47, 58, 49, 0.2);
}

.button.ghost {
    border-color: rgba(47, 58, 49, 0.3);
    color: var(--pine);
    background: transparent;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(26, 30, 27, 0.18);
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.hero-highlights div {
    background: rgba(251, 247, 240, 0.85);
    padding: 14px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(47, 58, 49, 0.08);
}

.hero-highlights span {
    font-weight: 600;
    display: block;
}

.section {
    padding: 70px 6vw;
}

.section.alt {
    background: var(--cream);
    border-top: 1px solid rgba(47, 58, 49, 0.06);
    border-bottom: 1px solid rgba(47, 58, 49, 0.06);
}

.section-header {
    max-width: 640px;
    margin-bottom: 36px;
}

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

.calendar-shell {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.calendar-panel,
.calendar-sidebar {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.calendar-note {
    margin: 6px 0 0;
    color: rgba(26, 30, 27, 0.7);
}

.calendar-legend {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.85rem;
}

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

.legend::before {
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: rgba(47, 58, 49, 0.2);
}

.legend.selected::before {
    background: var(--pine);
}

.legend.blocked::before {
    background: #c96a5e;
}

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

.calendar-month {
    border: 1px solid rgba(47, 58, 49, 0.12);
    border-radius: var(--radius-sm);
    padding: 16px;
    background: #fff;
}

.calendar-month-title {
    font-weight: 600;
    margin-bottom: 12px;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    text-align: center;
    font-size: 0.85rem;
}

.calendar-day-label {
    color: rgba(26, 30, 27, 0.6);
    font-weight: 600;
}

.calendar-cell {
    border: none;
    background: rgba(47, 58, 49, 0.08);
    border-radius: 10px;
    padding: 8px 0;
    cursor: pointer;
    font-weight: 600;
}

.calendar-cell.disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.calendar-cell.blocked {
    background: #c96a5e;
    color: var(--cream);
    opacity: 1;
}

.calendar-cell.selected,
.calendar-cell.in-range {
    background: var(--pine);
    color: var(--cream);
}

.calendar-cell.in-range {
    opacity: 0.7;
}

.calendar-cell.empty {
    background: transparent;
    border: none;
}

.calendar-message {
    margin-top: 16px;
    font-weight: 600;
    color: var(--sage);
}

.stay-summary {
    display: grid;
    gap: 12px;
    margin: 18px 0 22px;
}

.stay-summary span {
    font-size: 0.85rem;
    color: rgba(26, 30, 27, 0.6);
}

.button.button-disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.calendar-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.calendar-actions .button {
    width: 100%;
}

.booking-form {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 18px;
    margin-bottom: 20px;
}

.form-grid label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-weight: 500;
}

.full-width {
    grid-column: 1 / -1;
}

.booking-form input,
.booking-form textarea,
.booking-form select {
    border: 1px solid rgba(47, 58, 49, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.booking-form ul.errorlist {
    margin: 0;
    padding-left: 18px;
    color: #8e2014;
    font-size: 0.9rem;
}

.form-errors {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 10px;
    background: rgba(176, 58, 46, 0.12);
    color: #7a1e15;
}

.dashboard-section + .dashboard-section {
    margin-top: 24px;
}

.dashboard-table-wrap {
    overflow-x: auto;
}

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid rgba(47, 58, 49, 0.15);
    vertical-align: top;
}

.dashboard-actions {
    display: flex;
    gap: 8px;
}

.button.small {
    padding: 8px 12px;
    font-size: 0.82rem;
}

.status-pill {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.status-pill.declined {
    background: rgba(176, 58, 46, 0.14);
    color: #7f2318;
}

.flash-wrap {
    padding: 18px 6vw 0;
}

.flash {
    margin: 0 0 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: rgba(47, 58, 49, 0.1);
}

.flash-success {
    background: rgba(36, 105, 64, 0.15);
}

.flash-warning {
    background: rgba(194, 136, 36, 0.2);
}

.flash-error {
    background: rgba(176, 58, 46, 0.18);
}

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

.card {
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--cream);
    box-shadow: var(--shadow);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.list {
    padding-left: 18px;
    margin: 20px 0 28px;
}

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

.image-stack img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

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

.gallery img {
    border-radius: var(--radius-md);
    height: 220px;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.location-card,
.booking-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--pine);
    color: var(--cream);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 40px 6vw;
    background: var(--pine);
    color: var(--cream);
}

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

@media (max-width: 960px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-image {
        min-height: 360px;
    }

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

    .card-grid,
    .gallery,
    .split {
        grid-template-columns: 1fr;
    }

    .calendar-shell,
    .calendar-grid,
    .dashboard-grid,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .gallery img {
        height: 260px;
    }
}

@media (max-width: 700px) {
    .nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .location-card,
    .booking-card,
    .site-footer {
        flex-direction: column;
        align-items: flex-start;
    }
}

.calendar-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.calendar-window-label {
    font-weight: 600;
    color: var(--pine);
}

.calendar-nav .button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
