:root {
    --bg: #f7f3ea;
    --paper: #fffdf8;
    --ink: #1e2528;
    --muted: #637077;
    --line: #ded8cd;
    --brand: #1f6f63;
    --brand-dark: #123f3a;
    --accent: #b94856;
    --gold: #d7a84d;
    --sky: #d9edf1;
    --soft: #eef4ef;
    --danger: #9f2d3d;
    --ok: #287a4b;
    --radius: 8px;
    --shadow: 0 18px 48px rgba(30, 37, 40, .08);
    --container: min(1160px, calc(100% - clamp(24px, 6%, 76px)));
}

* {
    box-sizing: border-box;
}

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

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

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

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

.site-footer,
.section {
    width: var(--container);
    margin-inline: auto;
}

.site-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: 100%;
    padding: 16px clamp(16px, 4vw, 48px);
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 243, 234, .94);
    backdrop-filter: blur(12px);
}

.brand {
    display: inline-grid;
    min-width: 0;
    font-size: clamp(1.15rem, 2%, 1.45rem);
    font-weight: 850;
    letter-spacing: 0;
}

.brand span,
.muted {
    color: var(--muted);
    font-size: .86rem;
    font-weight: 650;
}

.nav,
.inline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.nav {
    justify-content: flex-end;
}

.nav a,
.button,
button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    font-weight: 760;
}

.primary,
button.primary,
.button.primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.ghost {
    background: rgba(255, 255, 255, .14);
    color: #fff;
    border-color: rgba(255, 255, 255, .35);
}

.nav-toggle {
    display: none;
}

.hero {
    min-height: clamp(440px, 68vh, 680px);
    display: grid;
    align-items: center;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(18, 63, 58, .88), rgba(31, 111, 99, .44)),
        url("https://images.unsplash.com/photo-1566073771259-6a8506099945?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.restaurant-hero {
    background:
        linear-gradient(90deg, rgba(64, 24, 30, .88), rgba(185, 72, 86, .38)),
        url("https://images.unsplash.com/photo-1414235077428-338989a2e8c0?auto=format&fit=crop&w=1800&q=78") center/cover;
}

.hero-inner {
    width: var(--container);
    margin-inline: auto;
    max-width: 760px;
}

.section {
    padding: clamp(30px, 7%, 76px) 0;
}

.section-head {
    max-width: 760px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(2.2rem, 6vw, 5rem);
    line-height: 1.04;
    letter-spacing: 0;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.hero p,
.lead {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
}

.eyebrow {
    color: var(--gold);
    font-weight: 850;
    letter-spacing: 0;
    text-transform: uppercase;
}

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

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

.grid.one {
    grid-template-columns: minmax(0, 760px);
}

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

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(16px, 3vw, 24px);
}

.room-card {
    overflow: hidden;
    padding: 0;
}

.room-card > .stack {
    padding: clamp(16px, 3vw, 24px);
}

.room-card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

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

.trust-row > div {
    border-top: 1px solid var(--line);
    padding-top: 16px;
}

.trust-row strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.room-hero {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr);
    align-items: center;
    gap: clamp(18px, 5vw, 54px);
}

.room-hero-copy {
    max-width: 620px;
}

.room-hero-image,
.media-grid img {
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: var(--shadow);
}

.room-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    gap: clamp(18px, 5vw, 54px);
    align-items: start;
}

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

.feature-list li {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    padding: 12px 14px;
    font-weight: 750;
}

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

.mini-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.mini-list div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
}

.mini-list dt,
.mini-list dd {
    margin: 0;
}

.mini-list dt {
    color: var(--muted);
}

.mini-list dd {
    font-weight: 820;
}

.booking-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
    align-items: start;
    gap: clamp(18px, 4vw, 36px);
}

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

.booking-flow fieldset {
    margin: 0;
    border: 0;
}

.booking-flow legend {
    margin-bottom: 14px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 850;
}

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

.booking-steps span {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--muted);
    display: grid;
    place-items: center;
    padding: 8px;
    font-size: .88rem;
    font-weight: 820;
    text-align: center;
}

.booking-steps .is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

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

.room-choice {
    display: grid;
    align-content: start;
    justify-items: start;
    gap: 8px;
    min-height: 100%;
    padding: 0;
    overflow: hidden;
    text-align: left;
}

.room-choice img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.room-choice > :not(img) {
    margin-inline: 14px;
}

.room-choice > :last-child {
    margin-bottom: 14px;
}

.room-choice.is-selected {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(31, 111, 99, .18), var(--shadow);
}

.price {
    color: var(--brand);
    font-weight: 850;
}

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

.option-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    padding: 14px;
    gap: 12px;
}

.option-card input[type="number"] {
    width: 74px;
}

.option-card small,
.hint {
    color: var(--muted);
}

.restaurant-soft-box,
.confidence-row {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    padding: 14px;
}

.confidence-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.confidence-row span {
    border-radius: 999px;
    background: #fff;
    padding: 6px 10px;
    color: var(--brand);
    font-size: .9rem;
    font-weight: 780;
}

.summary-trust {
    display: grid;
    gap: 8px;
}

.summary-trust span {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    padding: 10px 12px;
    color: var(--brand-dark);
    font-weight: 780;
}

.booking-summary {
    position: sticky;
    top: 86px;
}

.booking-summary dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.booking-summary dl > div {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.booking-summary dt {
    color: var(--muted);
    font-weight: 780;
}

.booking-summary dd {
    margin: 0;
    font-weight: 820;
}

.confirmation-list {
    display: grid;
    gap: 10px;
    margin: 0;
}

.confirmation-list div {
    display: grid;
    grid-template-columns: minmax(110px, 34%) 1fr;
    gap: 10px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 10px;
}

.confirmation-list dt,
.confirmation-list dd {
    margin: 0;
}

.confirmation-list dt {
    color: var(--muted);
    font-weight: 780;
}

.confirmation-list dd {
    font-weight: 820;
}

.room-preview[hidden],
.modal[hidden] {
    display: none;
}

.room-selected {
    display: grid;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--soft);
    overflow: hidden;
}

.room-selected img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.room-selected > .stack {
    padding: 16px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vw, 42px);
    background: rgba(30, 37, 40, .52);
}

.modal-panel {
    position: relative;
    width: min(760px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.modal-panel.stack {
    padding: clamp(20px, 4vw, 34px);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 42px;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
}

.band {
    background: var(--brand-dark);
    color: #fff;
}

.stack {
    display: grid;
    gap: 12px;
}

.split {
    justify-content: space-between;
}

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

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

label {
    display: grid;
    gap: 6px;
    color: var(--muted);
    font-weight: 720;
}

label.inline {
    display: flex;
}

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

input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

textarea {
    min-height: 112px;
    resize: vertical;
}

.badge,
.pill {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    background: var(--soft);
    color: var(--brand);
    padding: 4px 10px;
    font-size: .84rem;
    font-weight: 820;
}

.pill.warning,
.pill.warning {
    background: #fff1d2;
    color: #8a5b00;
}

.pill.dev,
.pill.info {
    background: var(--sky);
    color: #235866;
}

.pill.ok {
    background: #e5f4e9;
    color: var(--ok);
}

.flash {
    width: var(--container);
    margin: 8px auto 0;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid var(--ok);
    background: var(--paper);
    color: var(--ok);
    font-weight: 760;
}

.flash.error {
    border-color: var(--danger);
    color: var(--danger);
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: clamp(28px, 5%, 56px) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(4, 1fr);
    gap: 24px;
}

.site-footer a,
.link-button {
    color: var(--muted);
    justify-content: flex-start;
    min-height: auto;
    padding: 0;
    border: 0;
    background: transparent;
    font-weight: 700;
    text-align: left;
}

.cookie-panel {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: grid;
    place-items: end center;
    padding: 18px;
    background: rgba(30, 37, 40, .28);
}

.cookie-panel[hidden] {
    display: none;
}

.cookie-box {
    width: min(720px, 100%);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(18px, 4%, 28px);
}

.map-box {
    min-height: 320px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--sky), var(--paper));
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
}

.map-box iframe {
    width: 100%;
    height: min(52vh, 440px);
    min-height: 320px;
    border: 0;
    border-radius: var(--radius);
}

.admin-body {
    display: grid;
    grid-template-columns: 264px 1fr;
    min-height: 100vh;
}

.admin-sidebar {
    background: var(--ink);
    color: #fff;
    padding: 24px;
}

.admin-sidebar a,
.admin-sidebar .brand span {
    color: #fff;
}

.admin-main {
    padding: clamp(20px, 4%, 48px);
}

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

.kpi {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px;
}

.kpi strong {
    display: block;
    font-size: 2rem;
}

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

.ops-item {
    display: grid;
    gap: 4px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.ops-item:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.ops-item span {
    color: var(--muted);
}

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

th,
td {
    padding: 12px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: .86rem;
}

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

.compact-form select,
.compact-form button {
    width: auto;
}

.quick-actions {
    margin-top: 8px;
}

.quick-actions form {
    display: inline-flex;
}

.auth-card {
    max-width: 480px;
    margin-inline: auto;
}

.team-row {
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.team-row:first-of-type {
    border-top: 0;
    padding-top: 0;
}

@media (max-width: 900px) {
    .site-header {
        grid-template-columns: 1fr auto;
        position: static;
        padding-inline: 14px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav {
        display: none;
        grid-column: 1 / -1;
        align-items: stretch;
        flex-direction: column;
    }

    .nav.is-open {
        display: flex;
    }

    .grid,
    .grid.two,
    .grid.three-tight,
    .trust-row,
    .room-hero,
    .room-detail-layout,
    .feature-list,
    .media-grid,
    .booking-shell,
    .room-choice-grid,
    .option-grid,
    .form-grid,
    .footer-grid,
    .kpis,
    .ops-grid {
        grid-template-columns: 1fr;
    }

    .booking-summary {
        position: static;
        order: -1;
    }

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

    .admin-body {
        grid-template-columns: 1fr;
    }

    table,
    thead,
    tbody,
    tr,
    th,
    td {
        display: block;
    }

    thead {
        display: none;
    }

    tr {
        padding: 10px 0;
    }

    td::before {
        content: attr(data-label);
        display: block;
        color: var(--muted);
        font-size: .8rem;
        font-weight: 850;
    }
}
