:root {
    --brand-1: #5c2c70;
    --brand-2: #eb532b;
    --brand-grad: linear-gradient(135deg, #5c2c70 0%, #eb532b 100%);
    --white: #ffffff;
    --bg: #ffffff;
    --bg-deep: #f6f0f8;
    --paper: #ffffff;
    --ink: #2a1235;
    --muted: #6d5a74;
    --line: #eadfec;
    --brand-soft: #f4ecf6;
    --accent-soft: #fdece7;
    --danger: #eb532b;
    --danger-soft: #fdece7;
    --ok: #2f7a4f;
    --ok-soft: #e7f6ee;
    --warn: #5c2c70;
    --shadow: 0 18px 40px rgba(92, 44, 112, 0.08);
    --radius: 22px;
    --font: "Plus Jakarta Sans", sans-serif;
    --serif: "Cormorant Garamond", serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
html {
    background-color: #000;
    min-height: 100%;
}
body {
    font-family: var(--font);
    color: var(--ink);
    min-height: 100vh;
    min-height: 100dvh;
    position: relative;
    background: transparent;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-color: #000;
    background-image: url("/images/background.png");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 100% 100%;
}
body > * {
    position: relative;
    z-index: 1;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-1); text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 6vw;
}
@media (max-width: 640px) {
    .topbar { padding: 12px 16px; gap: 10px; }
    .top-links a, .text-btn { padding: 7px 10px; font-size: 0.8rem; }
    .hero { padding: 4px 0 18px; }
    .sticky-cta {
        width: calc(100% - 16px);
        bottom: 10px;
        padding: 10px 12px;
    }
    .cta-info { font-size: 0.8rem; }
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}
.brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
    background: #000;
}
.brand-name {
    font-family: var(--serif);
    font-size: 1.55rem;
    line-height: 1;
    color: var(--white);
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.brand-sub {
    display: block;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.86);
    margin-top: 3px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.top-links { display: flex; gap: 10px; flex-wrap: wrap; }
.top-links a, .text-btn {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 140px; }
.hero {
    padding: 10px 0 28px;
    text-align: center;
}
.hero h1 {
    font-family: var(--serif);
    font-size: clamp(0.95rem, 4.2vw, 2.75rem);
    font-weight: 600;
    line-height: 1.15;
    margin: 0 auto 12px;
    max-width: none;
    white-space: nowrap;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero p {
    margin: 0 auto;
    color: #ffffff;
    max-width: 52ch;
    font-size: 1.05rem;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.panel::before {
    content: "";
    display: block;
    height: 4px;
    background: var(--brand-grad);
}
.steps {
    list-style: none;
    margin: 0;
    padding: 18px 18px 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.steps li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}
.steps li span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--bg-deep);
    flex: none;
}
.steps li.is-active,
.steps li.is-done { color: var(--brand-1); }
.steps li.is-active span,
.steps li.is-done span { background: var(--brand-grad); color: var(--white); }
.step-label { display: none; }
@media (min-width: 720px) {
    .step-label { display: inline; }
}

.step-panel { display: none; padding: 22px 22px 36px; }
.step-panel.is-visible { display: block; }
.step-panel h2 { margin: 0 0 6px; font-size: 1.35rem; }
.lede { margin: 0 0 22px; color: var(--muted); }

.date-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 720px) {
    .date-grid { grid-template-columns: 1fr 1fr auto; align-items: end; }
}
label.field { display: block; }
label.field span, .field-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 8px;
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
}
input:focus, textarea:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--brand-soft); }
.date-control {
    position: relative;
    display: block;
}
.date-control input[type="text"] { padding-right: 46px; }
.date-control::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.5;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235c2c70' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat;
}
.date-native {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    opacity: 0;
    cursor: pointer;
    border: 0;
    padding: 0;
    background: transparent;
}
.nights-pill {
    background: var(--brand-grad);
    color: var(--white);
    border-radius: 14px;
    padding: 14px 18px;
    font-weight: 800;
    text-align: center;
    min-width: 120px;
}

.room-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 840px) {
    .room-grid { grid-template-columns: repeat(3, 1fr); }
}
.room-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--white);
    text-align: left;
    padding: 0;
    width: 100%;
    color: inherit;
    transition: transform 0.15s ease, border-color 0.15s ease;
}
.room-card:hover { transform: translateY(-2px); }
.room-card.is-selected { border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--brand-soft); }
.room-card.is-full { opacity: 0.55; cursor: not-allowed; }
.room-card img { height: 150px; width: 100%; object-fit: cover; }
.room-body { padding: 14px 16px 16px; }
.room-body h3 { margin: 0; font-family: var(--serif); font-size: 1.7rem; }
.price { margin: 4px 0 8px; font-weight: 800; color: var(--brand-1); }
.facilities { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.facilities li {
    font-size: 0.75rem;
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 4px 8px;
    color: var(--muted);
}
.avail { font-size: 0.85rem; font-weight: 700; color: var(--ok); }
.avail.full { color: var(--danger); }

.guest-grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
    .guest-grid { grid-template-columns: 1fr 1fr; }
    .guest-grid .wide { grid-column: 1 / -1; }
}

.summary {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 18px;
}
.summary dl { display: grid; grid-template-columns: 140px 1fr; gap: 8px 12px; margin: 0; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.total-row { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 1.15rem; }

.bank {
    border: 1px dashed var(--brand-2);
    background: var(--white);
    border-radius: 18px;
    padding: 16px;
    margin-bottom: 16px;
}
.bank strong { display: block; font-size: 1.2rem; letter-spacing: 0.04em; }

.drop {
    border: 2px dashed var(--line);
    border-radius: 18px;
    padding: 22px;
    text-align: center;
    background: var(--white);
    position: relative;
}
.drop input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.preview { margin-top: 12px; max-height: 180px; margin-inline: auto; border-radius: 12px; }

.sticky-cta {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: min(1120px, calc(100% - 24px));
    display: flex;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: var(--shadow);
    z-index: 12;
}
.cta-info { color: var(--muted); font-size: 0.9rem; }
.cta-info b { display: block; color: var(--ink); }

.btn {
    border: 0;
    background: var(--brand-grad);
    color: var(--white);
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 800;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-ghost {
    background: var(--white);
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-gold { background: var(--brand-2); color: var(--white); }
.btn-danger { background: var(--brand-2); color: var(--white); }
.btn-ok { background: var(--ok); color: var(--white); }

.success {
    text-align: center;
    padding: 28px 18px 18px;
}
.success h2 { font-family: var(--serif); font-size: 2.4rem; margin: 0 0 8px; }
.code {
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    font-weight: 800;
    background: var(--brand-soft);
    color: var(--brand-1);
    display: inline-block;
    padding: 10px 16px;
    border-radius: 12px;
    margin: 12px 0;
}
.actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }

.badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 800;
}
.badge.pending { background: var(--brand-soft); color: var(--brand-1); }
.badge.confirmed { background: var(--ok-soft); color: var(--ok); }
.badge.cancelled, .badge.rejected { background: var(--danger-soft); color: var(--danger); }

.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(20px);
    background: var(--brand-1);
    color: var(--white);
    padding: 12px 16px;
    border-radius: 999px;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    z-index: 20;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.page-head { padding: 8px 0 22px; }
.page-head h1 {
    font-family: var(--serif);
    font-size: 2.6rem;
    margin: 0;
    background: var(--brand-grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.page-head .lede { color: rgba(255, 255, 255, 0.86); }

.card-list { display: grid; gap: 14px; }
.res-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    box-shadow: var(--shadow);
}
.res-top, .toolbar, .split {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.proof { width: 120px; height: 90px; object-fit: cover; border-radius: 12px; background: var(--bg-deep); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 999px;
    padding: 8px 12px;
}
.chip.is-on { background: var(--brand-grad); color: var(--white); border-color: transparent; }

.occupancy { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 18px; overflow: hidden; }
.occupancy th, .occupancy td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.full-cell { color: var(--danger); font-weight: 800; }
.ok-cell { color: var(--ok); font-weight: 700; }

.login-box {
    width: min(420px, calc(100% - 32px));
    margin: 8vh auto;
    background: var(--white);
    padding: 28px;
    border-radius: 24px;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}
.login-box::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 4px;
    background: var(--brand-grad);
}

#result { text-align: center; margin-top: 22px; }
#result .summary { text-align: left; }
.hidden { display: none !important; }
.empty { color: var(--muted); padding: 28px; text-align: center; }
.hint { color: var(--muted); font-size: 0.88rem; }
.proof-lg { max-width: 100%; border-radius: 16px; }
.table-wrap { overflow: auto; border-radius: 18px; box-shadow: var(--shadow); }
select {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: 14px;
    padding: 14px 16px;
    outline: none;
    color: inherit;
}
select:focus { border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--brand-soft); }
.report-grid {
    display: grid;
    gap: 16px;
}
@media (min-width: 840px) {
    .report-grid { grid-template-columns: 1fr 1fr 1.2fr; }
}
#reportPanel .lede { color: var(--muted); }
#reportPanel h2 { color: var(--ink); }
