:root {
    --ink: #23211f;
    --muted: #6d6862;
    --paper: #fbfaf7;
    --panel: #ffffff;
    --line: #ddd7cf;
    --terracotta: #a84f36;
    --terracotta-dark: #7d3422;
    --olive: #67775a;
    --pool: #6d9aa5;
    --shadow: 0 18px 45px rgba(38, 31, 25, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 72px);
    background: rgba(251, 250, 247, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.brand {
    font-weight: 750;
    text-decoration: none;
}

nav {
    display: flex;
    gap: clamp(12px, 3vw, 30px);
    color: var(--muted);
    font-size: 0.95rem;
}

nav a {
    text-decoration: none;
}

.hero {
    min-height: min(760px, 92vh);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(31, 27, 22, 0.72), rgba(31, 27, 22, 0.22) 62%, rgba(31, 27, 22, 0.04));
}

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

.hero-copy {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100% - 36px));
    align-self: center;
    margin-left: clamp(18px, 6vw, 84px);
    color: #fff;
    padding: 72px 0 118px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--terracotta);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: #f2cdbd;
}

h1,
h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 500;
    line-height: 1.05;
}

h1 {
    font-size: clamp(3.1rem, 8vw, 7.6rem);
    max-width: 780px;
}

h2 {
    font-size: clamp(2.1rem, 4vw, 4.2rem);
}

.hero-copy p:not(.eyebrow) {
    max-width: 620px;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.hero-actions,
.form-footer,
.admin-topline,
.status-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.button,
button {
    min-height: 46px;
    border: 1px solid var(--terracotta);
    border-radius: 6px;
    padding: 12px 18px;
    background: var(--terracotta);
    color: #fff;
    font: inherit;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.button.secondary,
.status-actions button,
.admin-topline button {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}

.status-actions .danger {
    border-color: #a83232;
    color: #a83232;
}

.hero .button.secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.72);
}

.button:hover,
button:hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
}

.button.secondary:hover,
.status-actions button:hover,
.admin-topline button:hover {
    color: #fff;
}

.band {
    padding: clamp(54px, 8vw, 104px) clamp(18px, 5vw, 72px);
}

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

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

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.feature-grid article {
    min-height: 150px;
    padding: 24px;
    background: var(--panel);
}

.feature-grid strong,
.feature-grid span {
    display: block;
}

.feature-grid strong {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.feature-grid span {
    color: var(--muted);
}

.property-copy {
    background: #f1eee8;
}

.perfect-section {
    background: #fbfaf7;
}

.perfect-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.perfect-grid article {
    min-height: 168px;
    padding: 24px;
    background: #fff;
}

.perfect-grid strong,
.perfect-grid span {
    display: block;
}

.perfect-grid strong {
    margin-bottom: 8px;
    font-size: 1.08rem;
}

.perfect-grid span {
    color: var(--muted);
}

.nearby-section {
    background: #f8f4ec;
}

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

.nearby-grid article,
.trust-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.nearby-grid strong,
.nearby-grid span,
.trust-grid strong,
.trust-grid span {
    display: block;
}

.nearby-grid strong,
.trust-grid strong {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.nearby-grid span,
.trust-grid span {
    color: var(--muted);
}

.trust-section {
    background: #f1eee8;
}

.gallery-section {
    background: var(--ink);
    color: #fff;
    padding-top: clamp(42px, 6vw, 72px);
    padding-bottom: clamp(42px, 6vw, 72px);
}

.gallery-section .eyebrow {
    color: #f2cdbd;
}

.gallery-section .muted {
    color: rgba(255, 255, 255, 0.72);
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px;
}

.photo-tile {
    position: relative;
    overflow: hidden;
    height: clamp(118px, 13vw, 178px);
    border: 0;
    border-radius: 4px;
    padding: 0;
    background: #111;
    color: #fff;
    box-shadow: none;
}

.photo-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 220ms ease, filter 220ms ease;
}

.photo-tile span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 10px 9px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    text-align: left;
}

.photo-tile:hover img {
    transform: scale(1.035);
    filter: brightness(1.04);
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    grid-template-columns: 64px minmax(0, 1fr) 64px;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    padding: clamp(16px, 4vw, 54px);
    background: rgba(20, 17, 14, 0.92);
}

.lightbox.is-open {
    display: grid;
}

.lightbox img {
    grid-column: 2;
    grid-row: 1;
    max-width: min(1180px, 100%);
    max-height: 82vh;
    object-fit: contain;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.lightbox p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 12px 0 0;
    color: #fff;
    font-weight: 800;
    text-align: center;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    width: 46px;
    min-height: 46px;
    border-color: rgba(255, 255, 255, 0.32);
    border-radius: 50%;
    padding: 0;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 2rem;
    line-height: 1;
}

.lightbox-close {
    top: 16px;
    right: 18px;
}

.lightbox-nav {
    position: static;
    width: 54px;
    min-height: 54px;
    font-size: 3rem;
}

.lightbox-prev {
    grid-column: 1;
    grid-row: 1;
}

.lightbox-next {
    grid-column: 3;
    grid-row: 1;
}

.copy-stack {
    display: grid;
    gap: 16px;
    color: var(--muted);
    font-size: 1.04rem;
}

.copy-stack p {
    margin: 0;
}

.amenities-section {
    background: #f8f4ec;
}

.faq-section {
    background: #fbfaf7;
}

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

.faq-grid article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
    background: #fff;
}

.faq-grid h3 {
    margin: 0 0 8px;
    font-size: 1.06rem;
}

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

.amenity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.amenity-grid span {
    min-height: 48px;
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    background: #fff;
    color: var(--muted);
    font-weight: 700;
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.65fr);
    gap: clamp(28px, 5vw, 76px);
    align-items: start;
}

.availability-panel,
.booking-form,
.booking-card,
.admin-login {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.availability-panel,
.booking-form {
    padding: clamp(18px, 3vw, 30px);
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
    color: var(--ink);
    background: #fff;
    font: inherit;
    font-weight: 500;
}

textarea {
    resize: vertical;
}

.details-list {
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
    color: var(--muted);
}

.details-list li {
    padding: 12px 0;
    border-top: 1px solid var(--line);
}

.request-section {
    background: #f1eee8;
}

.booking-form {
    display: grid;
    gap: 16px;
    max-width: 820px;
}

.payment-note {
    display: grid;
    gap: 4px;
    border: 1px solid #d8c4a4;
    border-radius: 8px;
    padding: 14px 16px;
    background: #fff8e9;
    color: var(--muted);
}

.payment-note strong {
    color: var(--ink);
}

.booking-calendar-control {
    display: grid;
    gap: 12px;
}

.booking-calendar {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.availability-calendar {
    margin-bottom: 14px;
}

.availability-date-row {
    margin-top: 12px;
}

.booking-calendar-top {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    text-align: center;
}

.booking-calendar-top button {
    width: 42px;
    min-height: 42px;
    padding: 0;
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
    font-size: 1.7rem;
}

.booking-calendar-help {
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 750;
}

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

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

.booking-calendar-legend i {
    width: 16px;
    height: 16px;
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.booking-calendar-legend .airbnb,
.picker-day.airbnb {
    background: #e6edf5;
    border-color: #8ca9c8;
    color: #244f78;
}

.booking-calendar-legend .direct,
.picker-day.direct {
    background: #fff2cf;
    border-color: #deb758;
    color: #755313;
}

.booking-calendar-legend .selected,
.picker-day.selected {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: #fff;
}

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

.picker-month h3 {
    margin: 0 0 10px;
    font-size: 1rem;
}

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

.picker-weekdays {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 850;
    text-align: center;
}

.picker-day {
    min-width: 0;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 5px;
    padding: 0;
    background: #fff;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 850;
}

.picker-day:not(:disabled):hover {
    background: var(--terracotta-dark);
    border-color: var(--terracotta-dark);
    color: #fff;
}

.picker-day.in-selection {
    background: #f5dfd5;
    border-color: #d89a83;
    color: var(--terracotta-dark);
}

.picker-day.outside,
.picker-day.past {
    opacity: 0.28;
}

.picker-day:disabled {
    cursor: not-allowed;
}

.result {
    min-height: 28px;
    color: var(--muted);
    font-weight: 650;
}

.result.success {
    color: var(--olive);
}

.result.error {
    color: var(--terracotta-dark);
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 28px clamp(18px, 5vw, 72px);
    color: var(--muted);
    border-top: 1px solid var(--line);
}

.admin-body {
    background: #f1eee8;
}

.admin-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 40px 0;
}

.admin-shell h1 {
    color: var(--ink);
    font-size: clamp(2.4rem, 5vw, 4.5rem);
}

.admin-heading,
.admin-topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.admin-heading {
    justify-content: space-between;
}

.admin-heading h1 {
    margin: 0;
}

.admin-topline {
    justify-content: space-between;
    margin: 18px 0 26px;
}

code {
    overflow-wrap: anywhere;
    color: var(--terracotta-dark);
}

.booking-list {
    display: grid;
    gap: 16px;
}

.admin-calendar {
    margin: 26px 0;
}

.admin-section-title {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.admin-section-title h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.admin-section-title span {
    color: var(--muted);
    font-weight: 800;
}

.admin-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-calendar-nav .button {
    min-height: 38px;
    padding: 8px 12px;
    font-size: 0.88rem;
}

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

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

.month-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.month-card h3 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}

.weekday-row,
.day-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
}

.weekday-row {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
}

.day-cell {
    min-height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 5px;
    background: #f8f6f2;
    font-size: 0.86rem;
    font-weight: 800;
}

.day-cell.outside {
    opacity: 0.32;
}

.day-cell.airbnb,
.calendar-legend .airbnb {
    background: #e6edf5;
    border-color: #8ca9c8;
    color: #244f78;
}

.day-cell.pending,
.calendar-legend .pending {
    background: #fff2cf;
    border-color: #deb758;
    color: #755313;
}

.day-cell.confirmed,
.calendar-legend .confirmed {
    background: #e4efe1;
    border-color: #8eae82;
    color: #3d6534;
}

.day-cell.cleaning,
.calendar-legend .cleaning {
    background: #f0e8db;
    border-color: #c8a978;
    color: #695030;
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 800;
}

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

.calendar-legend i {
    width: 16px;
    height: 16px;
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #f8f6f2;
}

.calendar-details {
    margin-top: 14px;
}

.calendar-details summary {
    cursor: pointer;
    color: var(--muted);
    font-weight: 800;
}

.calendar-details .calendar-list {
    margin-top: 12px;
}

.calendar-list article {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
}

.calendar-list article p {
    margin: 8px 0 0;
    color: var(--muted);
}

.health-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0 0 22px;
}

.health-grid span {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    font-weight: 800;
}

.health-grid .ok {
    color: var(--olive);
}

.health-grid .warn {
    color: var(--terracotta-dark);
}

.booking-card {
    padding: 20px;
    box-shadow: none;
}

.booking-card > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.status {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 4px 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.status.confirmed {
    color: var(--olive);
}

.status.declined,
.status.cancelled {
    color: var(--terracotta-dark);
}

@media (max-width: 860px) {
    .site-header,
    footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .feature-grid,
    .perfect-grid,
    .nearby-grid,
    .trust-grid,
    .split,
    .amenity-grid,
    .faq-grid,
    .picker-months,
    .admin-section-title,
    .month-grid,
    .calendar-list,
    .health-grid {
        grid-template-columns: 1fr;
    }

    .admin-section-title {
        display: grid;
        align-items: start;
    }

    .admin-calendar-nav {
        justify-content: flex-start;
    }

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

@media (max-width: 560px) {
    nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero-copy {
        padding-top: 54px;
    }

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

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

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

    .photo-tile {
        height: 128px;
    }

    .lightbox {
        grid-template-columns: 48px minmax(0, 1fr) 48px;
        padding: 48px 10px 22px;
    }

    .lightbox-nav {
        width: 42px;
        min-height: 42px;
        font-size: 2.3rem;
    }
}
