/* Booking page + admin dashboard (shares tokens with style.css) */

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--text-mute); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 12px; }
.btn--block { width: 100%; }
.round--sm { width: 44px; height: 44px; font-size: 20px; }

/* ---------- app bar ---------- */
.appbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 18px var(--pad); border-bottom: 1px solid var(--line); }
.appbar__brand { color: var(--text); text-decoration: none; line-height: 1.05; }
.appbar__brand:hover { color: var(--text); }
.appbar__brand .brand__name { font-size: 28px; }
.appbar__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; font-size: 14px; }
.appbar__nav a { color: var(--text); font-weight: 600; }
.who { display: inline-flex; align-items: center; gap: 8px; color: var(--text-mute); }
.who img { width: 28px; height: 28px; border-radius: 50%; }
.demo-banner { margin: 0; padding: 10px var(--pad); background: #3A2A14; color: var(--amber-hi); font-size: 14px; text-align: center; }

.app-main { padding-top: 56px; padding-bottom: 80px; }
.app-head { max-width: 720px; margin-bottom: 40px; }
.app-head .display-2 { font-size: clamp(42px, 5vw, 72px); }
.app-head__lead { margin-top: 14px; color: var(--text-soft); }

.panel { background: var(--ink-2); border-radius: 22px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- booking layout ---------- */
.book-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, 1fr); gap: 24px; align-items: start; }

/* calendar (cell styles are shared, in style.css) */
.cal__months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px; }
.cal__load { margin-top: 12px; font-size: 13px; color: var(--text-mute); }
.cal__load:empty { display: none; }

/* request */
.req { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; }
.req__title { font-family: var(--serif); font-weight: 400; font-size: 28px; }
#reqForm { display: flex; flex-direction: column; gap: 16px; }
.req__dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req__dates > div { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.req__dates small, .req__row small { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.req__dates strong { font-size: 17px; margin: 2px 0; }
.req__dates span { font-size: 13px; color: var(--text-mute); }
.req__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.req__row > span:first-child { display: flex; flex-direction: column; }
.req__row small { letter-spacing: .04em; text-transform: none; font-weight: 500; font-size: 13px; }
.req__check { cursor: pointer; }
.req__check input, .agree input { width: 22px; height: 22px; accent-color: var(--amber); flex: none; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper output { min-width: 20px; text-align: center; font-weight: 700; font-size: 18px; }
#details { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field small { font-weight: 400; color: var(--text-mute); }
.field input, .field textarea, .field select {
  width: 100%; border: 0; border-radius: 12px; padding: 12px 14px; background: var(--ink); color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(239, 230, 216, .2); font-size: 16px; font-weight: 400; outline: none; color-scheme: dark;
}
.field textarea { resize: vertical; }
.field--inline { flex-direction: row; align-items: center; gap: 10px; }
.field--inline select { width: auto; }
.field input:focus, .field textarea:focus, .field select:focus { box-shadow: inset 0 0 0 1.5px var(--amber); }
.field .invalid, .field input:user-invalid { box-shadow: inset 0 0 0 1.5px #E07A6A; }
.price { display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; }
.price div { display: flex; justify-content: space-between; gap: 12px; }
.price dt { color: var(--text-soft); }
.price .total { padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); align-items: baseline; }
.price .total dt { color: var(--text); font-weight: 700; }
.price .total dd { font-family: var(--serif); font-size: 28px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-soft); cursor: pointer; }
.form-error { color: #F0A595; font-size: 14px; font-weight: 600; }
.form-error:empty { display: none; }
.req__fine { font-size: 13px; color: var(--text-mute); text-align: center; }
.req__done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.req__done h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; }
.req__done p { color: var(--text-soft); }
.done-mark { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--amber); color: var(--ink); font-size: 26px; font-weight: 700; }

/* my bookings */
.mine { margin-top: 80px; }
.mine .display-3 { font-size: clamp(34px, 4vw, 52px); margin-bottom: 24px; }
.mine__list { display: flex; flex-direction: column; gap: 12px; }
.bk { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; padding: 18px 22px; border-radius: 16px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.bk__main { display: flex; flex-direction: column; gap: 2px; }
.bk__dates { font-size: 17px; font-weight: 700; }
.bk__meta { font-size: 14px; color: var(--text-mute); }
.bk__side { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.pill-status { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.st-pending { color: var(--ink); background: repeating-linear-gradient(135deg, #F2CD9C 0 6px, #E9B47A 6px 12px); }
.st-approved { background: #2F6B57; color: #EAF7F1; }
.st-declined { background: #5A2E2A; color: #F8E3DF; }
.st-cancelled { background: #2A3B42; color: var(--text-mute); }

.help { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; }
.help p { color: var(--text-soft); }
.help a { color: var(--amber); }
.app-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-mute); }
.app-foot a { color: var(--text-mute); }

/* =====================================================================
   ADMIN
   ===================================================================== */
.gate { max-width: 520px; margin: 40px auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.gate h1 { font-family: var(--serif); font-weight: 400; font-size: 40px; }
.gate p { color: var(--text-soft); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 28px; }
.stat { padding: 18px 22px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
.stat small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.stat strong { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1.15; }
.stat--hot { background: repeating-linear-gradient(135deg, #F2CD9C 0 8px, #E9B47A 8px 16px); color: var(--ink); }
.stat--hot small { color: var(--ink); }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; border-bottom: 1px solid var(--line); }
.tab { padding: 12px 18px; border: 0; background: none; color: var(--text-mute); font-weight: 700; font-size: 14px; letter-spacing: .06em; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; min-height: 44px; }
.tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--amber); }
.tab .count { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 6px; border-radius: 999px; background: var(--amber); color: var(--ink); font-size: 12px; }
.req-card { padding: 22px; border-radius: 18px; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 12px; }
.req-card + .req-card { margin-top: 12px; }
.req-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: baseline; }
.req-card__name { font-size: 20px; font-weight: 700; }
.req-card__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 15px; color: var(--text-soft); }
.req-card__meta strong { color: var(--text); }
.req-card__msg { padding: 10px 14px; border-radius: 12px; background: var(--ink); font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.req-card__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.warn { padding: 10px 14px; border-radius: 12px; background: #4A2A22; color: #F8D8CF; font-size: 14px; font-weight: 600; }
.btn--approve { background: #3C8A6E; color: #fff; }
.btn--approve:hover { background: #46A07F; color: #fff; }
.btn--decline { background: transparent; color: #F0A595; box-shadow: inset 0 0 0 1px #8A4A40; }
.btn--decline:hover { background: #3A1F1B; color: #F8D8CF; }
.table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 760px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-mute); background: var(--ink-2); }
tr.dim td { opacity: .55; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.admin-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, 1fr); gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.blocks li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px 20px; }
.ok-msg { color: #9FDCC4; font-weight: 600; font-size: 14px; }
.empty { padding: 28px; border-radius: 16px; text-align: center; color: var(--text-mute); box-shadow: inset 0 0 0 1px var(--line); }

/* call-to-book panel (while online booking is off) */
.callbook { display: flex; flex-direction: column; gap: 14px; }
.callbook__lead { color: var(--text-soft); font-size: 15px; }
.callbook__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.callbook .btn--ghost { font-size: 12px; padding: 0 12px; }
body.offline [data-online] { display: none !important; }

/* legal page */
.legal { max-width: 760px; }
.legal h2 { font-family: var(--serif); font-weight: 400; font-size: 28px; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--text-soft); }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .book-grid, .admin-cols { grid-template-columns: 1fr; }
  .req { position: static; }
}
@media (max-width: 700px) {
  .cal__months { grid-template-columns: 1fr; }
  .cal__months .month + .month { display: none; }
  .panel { padding: 20px; border-radius: 18px; }
  .app-main { padding-top: 36px; }
  .appbar__brand .brand__name { font-size: 24px; }
}
