:root {
    --ink: #1c1b19;
    --muted: #5e5a54;
    --line: #e4ddd3;
    --paper: #f6f3ee;
    --card: #fffcf8;
    --sea: #173f3c;
    --sea-deep: #102c2a;
    --sand: #efe6d8;
    --danger: #8d2f2f;
    --shadow: 0 12px 40px rgba(28, 27, 25, 0.08);
    --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
    --sans: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.5;
    font-weight: 380;
    overflow-x: clip;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--sea); }
h1, h2, h3 { font-family: var(--serif); font-weight: 560; letter-spacing: -0.03em; line-height: 1.15; }
h1 { font-size: clamp(2.4rem, 4vw, 4rem); margin: 0.15em 0; }
h2 { font-size: 1.8rem; margin: 0 0 0.6em; }
h3 { font-size: 1.2rem; margin: 0 0 0.3em; }
p { margin: 0 0 0.8em; }

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    background: var(--sea);
    color: white;
    padding: 0.5rem 0.8rem;
}
.skip:focus { top: 0.5rem; }

.site-header, .site-footer, .hero, .listing, .page {
    width: min(1180px, calc(100% - 2rem));
    margin-inline: auto;
}
.site-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.1rem 0;
    position: relative;
}
.menu-btn { display: none; }
.brand {
    font-family: var(--serif);
    font-size: 1.55rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 620;
}
.nav { display: flex; gap: 1.1rem; margin-left: auto; }
.nav a, .lang { color: var(--ink); text-decoration: none; }
.nav a:hover, .lang:hover, .text-link:hover { text-decoration: underline; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.75rem; }

.hero { padding-bottom: 1.4rem; }
.mosaic {
    display: grid;
    grid-template-columns: 1.45fr 1fr 1fr;
    grid-template-rows: 210px 210px;
    gap: 8px;
    position: relative;
}
.shot {
    padding: 0;
    border: 0;
    background: var(--sand);
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}
.shot-main { grid-row: span 2; border-radius: 16px 8px 8px 16px; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.show-photos {
    position: absolute;
    right: 14px;
    bottom: 14px;
    border: 0;
    background: #fffcf8;
    border-radius: 999px;
    padding: 0.55rem 0.85rem;
    box-shadow: var(--shadow);
    cursor: pointer;
}

.listing {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 3.5rem;
    align-items: start;
    padding-bottom: 4rem;
}
.kicker, .place, .facts, .fine, .host, .rating { color: var(--muted); }
.kicker { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.75rem; margin-bottom: 0.4rem; }
.lede { font-size: 1.15rem; }
.section { border-top: 1px solid var(--line); padding: 1.6rem 0; }
.prose p:last-child { margin-bottom: 0; }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.room { background: white; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1rem 0.4rem; }
.offer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem 1.6rem;
}
.offer-list li { display: grid; gap: 0.12rem; align-content: start; }
.offers:not(.is-open) .is-extra { display: none; }
.offer-name { font-weight: 520; }
.offer-detail { color: var(--muted); font-size: 0.92rem; }
.offer-list .is-missing .offer-name { color: #6d675f; }
.review { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.review header { display: flex; justify-content: space-between; gap: 1rem; }
.review-meta { color: var(--muted); margin: 0.2rem 0 0.6rem; }
.host-reply { margin: 0.8rem 0 0; padding: 0.8rem 1rem; background: white; border-radius: 12px; }
.desk-nav { display: flex; flex-wrap: wrap; gap: 0.8rem 1rem; align-items: center; margin-bottom: 1.2rem; }
.desk-nav form { margin: 0; }
.stack-form, .review-edit { display: grid; gap: 0.8rem; max-width: 36rem; margin: 1rem 0 2rem; }
.stay-list { list-style: none; margin: 0; padding: 0; }
.stay-list li { border-top: 1px solid var(--line); }
.stay-list a, .stay-list li { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; padding: 0.8rem 0; color: inherit; text-decoration: none; }
.desk-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1rem; }
.desk-actions .btn { width: auto; }
.checkline { display: flex; gap: 0.5rem; align-items: center; }
.offer-more {
    margin-top: 1.1rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 560;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.booking-card {
    position: sticky;
    top: 1rem;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    padding: 1.25rem;
}
.card-price { font-size: 1.05rem; }
.card-price strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 560; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--ink); border-radius: 12px; overflow: hidden; }
.date-field, .guest-field, .stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: left;
    background: white;
}
.date-field { border: 0; padding: 0.7rem 0.8rem; cursor: pointer; }
.date-field + .date-field { border-left: 1px solid var(--ink); }
.date-field span, .guest-field span, .stack span { font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.guest-field, .stack { margin-top: 0.7rem; }
.guest-field select, .stack input, .stack textarea, .date-grid.plain input {
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 0.7rem 0.75rem;
    background: white;
    width: 100%;
}
.date-grid.plain { border: 0; gap: 0.7rem; }
.date-grid.plain .date-field { border: 0; padding: 0; cursor: auto; }
.quote { margin: 1rem 0 0.4rem; }
.quote p, .quote-total { display: flex; justify-content: space-between; gap: 1rem; }
.quote-total { font-weight: 580; border-top: 1px solid var(--line); padding-top: 0.6rem; }
.btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.9rem;
    background: var(--sea);
    color: white;
    text-decoration: none;
    border: 0;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    cursor: pointer;
}
.btn:hover { background: var(--sea-deep); }
.prose-page .btn, .page > p .btn { width: auto; padding-inline: 1.2rem; }
.card-error { color: var(--danger); min-height: 0; }
.card-error:empty { display: none; }
.popover {
    margin-top: 0.8rem;
    border-top: 1px solid var(--line);
    padding-top: 0.8rem;
}
.cal-toolbar { display: flex; justify-content: flex-end; gap: 0.4rem; }
.text-btn {
    border: 1px solid var(--line);
    background: white;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    cursor: pointer;
}
.cal-board { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
[data-popover-board] { display: block; }
.month { min-width: 0; }
.month-head {
    display: grid;
    grid-template-columns: 2.4rem 1fr 2.4rem;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.35rem;
}
.month-head h3, .month > h3 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 580;
    letter-spacing: 0;
    text-align: center;
    margin: 0 0 0.35rem;
}
.month-head h3 { margin: 0; }
.weekdays, .days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 2px;
}
.weekdays span, .day, .day-pad {
    height: 2.6rem;
    min-width: 0;
    display: grid;
    place-items: center;
}
.weekdays span { color: var(--muted); font-size: 0.72rem; height: 1.4rem; }
.day {
    border: 0;
    background: transparent;
    border-radius: 999px;
    cursor: pointer;
    padding: 0;
}
.notes { margin: 0; padding-left: 1.2rem; }
.notes li { margin: 0.45rem 0; }
.day:hover:not(:disabled) { background: var(--sand); }
.day:disabled { color: #b7b1a8; text-decoration: line-through; cursor: not-allowed; }
.day.in-range { background: #e7f0ee; border-radius: 0; }
.day.is-start, .day.is-end { background: var(--sea); color: white; }
.day.is-start { border-radius: 999px 0 0 999px; }
.day.is-end { border-radius: 0 999px 999px 0; }
.day.is-start.is-end { border-radius: 999px; }

.page { padding: 1rem 0 4rem; }
.gallery-grid { columns: 3 240px; column-gap: 10px; }
.gallery-grid .shot { width: 100%; margin: 0 0 10px; border-radius: 14px; display: block; }
.gallery-grid img { height: auto; }
.request-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; align-items: start; }
.static-card { position: static; }
.errors { background: #fdecec; border-radius: 12px; padding: 0.8rem 1rem; color: var(--danger); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.site-footer { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); padding: 1rem 0 5rem; border-top: 1px solid var(--line); }
.lightbox {
    width: min(1100px, calc(100% - 1.5rem));
    max-height: calc(100dvh - 1.5rem);
    overflow: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 16px;
    padding: 0 1rem 1rem;
}
.lightbox::backdrop { background: rgba(28, 27, 25, 0.72); }
.lightbox-close {
    position: sticky;
    top: 0.75rem;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    height: 0;
    margin: 0;
}
.lightbox-close button {
    transform: translateY(0.75rem);
    background: #fff;
    color: var(--ink);
    border-color: transparent;
    box-shadow: 0 8px 24px rgba(28, 27, 25, 0.18);
    padding: 0.45rem 0.95rem;
}
.lightbox-grid { display: grid; gap: 1rem; padding-top: 0.5rem; }
.lightbox figcaption { color: var(--muted); font-size: 0.85rem; }
.mobile-bar {
    display: none;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.mobile-bar .btn { width: auto; margin: 0; padding-inline: 1rem; }

.host-body { background: #efe8de; }
.host-shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.host-side {
    background: var(--sea);
    color: #f6f3ee;
    padding: 1.4rem 1rem 1.1rem;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
}
.host-brand { font-family: var(--serif); font-size: 1.55rem; color: inherit; text-decoration: none; font-weight: 620; }
.host-kicker { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.68rem; opacity: 0.72; margin: 0.35rem 0 0; }
.host-nav { display: grid; gap: 0.2rem; margin-top: 1.6rem; }
.host-nav a { color: inherit; text-decoration: none; border-radius: 10px; padding: 0.55rem 0.75rem; }
.host-nav a:hover, .host-nav a.is-current { background: rgba(255, 252, 248, 0.12); }
.host-side-foot { margin-top: auto; display: grid; gap: 0.7rem; }
.host-side-foot a { color: inherit; text-decoration: none; padding: 0.2rem 0.75rem; }
.host-side-foot a:hover { text-decoration: underline; }
.host-side .text-btn { background: transparent; color: inherit; border-color: rgba(246, 243, 238, 0.28); width: 100%; }
.host-main { padding: 2rem 2.2rem 4rem; width: min(1080px, 100%); }
.host-main h1, .host-login h1 { font-size: clamp(2rem, 3vw, 2.7rem); }
.host-main h2 { font-size: 1.25rem; margin-bottom: 0.7rem; }
.host-login { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; }
.host-card, .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
}
.host-card { width: min(420px, 100%); padding: 1.6rem 1.4rem 1.3rem; }
.page:has(.host-card) { display: grid; justify-items: center; padding-top: 2.4rem; }
.host-card .host-kicker { color: var(--muted); opacity: 1; }
.host-card h1 { font-size: clamp(2rem, 3vw, 2.7rem); }
.host-card .stack-form { margin: 0; max-width: none; }
.desk-head { margin-bottom: 1.2rem; }
.desk-head .lede { max-width: 40rem; }
.panel { padding: 1.1rem 1.15rem 1.15rem; }
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.panel-wide { grid-column: 1 / -1; }
.split-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.host-main .stack { margin-top: 0.65rem; }
.stack .with-affix {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 1rem;
    color: inherit;
}
.with-affix b { font-weight: 520; color: var(--muted); padding: 0 0.75rem; }
.stack .with-affix input { border: 0; background: transparent; width: 100%; margin: 0; border-radius: 0; }
.host-main .btn, .host-card .btn { width: auto; min-width: 8rem; margin-top: 0.8rem; }
.desk-save { margin-top: 1rem; }
.notice { background: #e7f0ee; color: var(--sea-deep); border-radius: 12px; padding: 0.7rem 0.9rem; }
.host-main .errors { margin-bottom: 1rem; }
.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.15rem 0.65rem;
    font-size: 0.82rem;
    background: var(--sand);
}
.pill-approved { background: #e7f0ee; color: var(--sea-deep); }
.pill-declined, .pill-cancelled { background: #f3e4e4; color: var(--danger); }
.host-main .stay-list { display: grid; gap: 0.7rem; }
.host-main .stay-list li { border: 0; padding: 0; }
.host-main .stay-list a, .block-list li {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 0.95rem 1.05rem;
    align-items: center;
    justify-content: space-between;
}
.host-main .stay-list strong { font-family: var(--serif); font-size: 1.25rem; font-weight: 560; }
.stay-main { display: grid; gap: 0.1rem; }
.stay-main span, .stay-total { color: var(--muted); }
.stay-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.empty-panel p { margin: 0; }
.block-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.block-list li { display: flex; gap: 0.8rem; }
.add-form { display: grid; grid-template-columns: 1.2fr 1fr 1fr auto; gap: 0.8rem; align-items: end; }
.add-form .btn { margin-top: 0; }
.add-panel .fine { margin: 0.8rem 0 0; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-top: 1rem; }
.photo-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 0.7rem; box-shadow: var(--shadow); }
.photo-card.is-dragging { opacity: 0.45; }
.photo-frame { position: relative; }
.photo-frame img { width: 100%; height: 210px; object-fit: cover; object-position: center; border-radius: 12px; background: var(--sand); }
.photo-save { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.35rem; }
.photo-save .btn { margin: 0; }
.file-btn { position: relative; display: inline-flex; align-items: center; overflow: hidden; cursor: pointer; max-width: 14rem; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-index {
    position: absolute;
    left: 0.55rem;
    top: 0.55rem;
    background: rgba(255, 252, 248, 0.94);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.78rem;
}
.drag {
    position: absolute;
    right: 0.55rem;
    top: 0.55rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 252, 248, 0.94);
    cursor: grab;
    padding: 0;
}
.photo-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.photo-tools form { margin: 0; }
.danger-btn { color: var(--danger); }
.review-board { display: grid; gap: 1rem; }
.review-edit { max-width: none; margin: 0; }
.file-stack input { padding: 0.45rem 0; border: 0; background: transparent; }

@media (max-width: 900px) {
    .menu-btn {
        display: inline-flex;
        margin-left: auto;
        border: 1px solid var(--line);
        background: white;
        border-radius: 999px;
        padding: 0.4rem 0.8rem;
        cursor: pointer;
    }
    .nav {
        display: none;
        position: absolute;
        top: calc(100% - 0.2rem);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0.2rem;
        background: var(--card);
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 0.6rem;
        box-shadow: var(--shadow);
        z-index: 5;
    }
    .nav.is-open { display: flex; }
    .nav a { padding: 0.7rem 0.6rem; }
    .listing, .request-page, .rooms, .offer-list, .cal-board { grid-template-columns: 1fr; }
    .mosaic { grid-template-columns: 1fr; grid-template-rows: 280px; }
    .shot:not(.shot-main) { display: none; }
    .shot-main { border-radius: 16px; }
    .booking-card { position: static; }
    .mobile-bar { display: flex; }
    .gallery-grid { columns: 1; }
    .host-shell { grid-template-columns: 1fr; }
    .host-side { position: sticky; top: 0; height: auto; z-index: 6; }
    .host-nav { display: flex; gap: 0.35rem; margin-top: 0.8rem; overflow-x: auto; }
    .host-side-foot { margin-top: 0.8rem; }
    .panel-grid, .add-form, .split-fields { grid-template-columns: 1fr; }
    .host-main { padding: 1.2rem 1rem 3rem; }
}
