:root {
  --book-bg: #060814;
  --book-bg-2: #0b1326;
  --book-panel: rgba(15, 23, 42, 0.92);
  --book-border: rgba(148, 163, 184, 0.18);
  --book-border-strong: rgba(148, 163, 184, 0.3);
  --book-text: rgba(248, 250, 252, 0.97);
  --book-muted: rgba(176, 188, 204, 0.94);
  --book-accent: #38bdf8;
  --book-accent-2: #22c55e;
  --book-danger: #ef4444;
  --book-success: #22c55e;
  --book-radius: 22px;
  --book-radius-sm: 14px;
  --book-shadow: 0 26px 80px rgba(0,0,0,0.48);
  --book-ring: 0 0 0 4px rgba(56,189,248,0.18);
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body.book-shell {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--book-text);
  background:
    radial-gradient(1100px 780px at 18% -10%, rgba(56,189,248,0.18) 0%, rgba(6,8,20,0) 58%),
    radial-gradient(980px 680px at 92% 8%, rgba(34,197,94,0.12) 0%, rgba(6,8,20,0) 55%),
    linear-gradient(180deg, #070b17 0%, #050814 46%, #050611 100%);
}

a { color: var(--book-accent); text-decoration: none; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: var(--book-ring);
}

.book-header {
  padding: 18px 16px;
  border-bottom: 1px solid var(--book-border);
  background: rgba(5, 8, 22, 0.72);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 1320px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(56,189,248,0.96), rgba(34,197,94,0.9));
  box-shadow: 0 18px 36px rgba(56,189,248,0.18);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: rgba(226,232,240,0.82);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.page-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--book-accent), var(--book-accent-2));
  box-shadow: 0 0 0 6px rgba(56,189,248,0.12);
}

.title {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 22px;
}

.sub {
  color: var(--book-muted);
  font-size: 14px;
  line-height: 1.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--book-border);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--book-muted);
  background: rgba(255,255,255,0.04);
}

.book-main {
  max-width: 1320px;
  margin: 20px auto 0;
  padding: 0 14px 40px;
  display: grid;
  grid-template-columns: 1.16fr 0.84fr;
  gap: 16px;
}

@media (max-width: 900px) {
  .book-main { grid-template-columns: 1fr; }
}

.card {
  background:
    radial-gradient(900px 520px at 10% -10%, rgba(56,189,248,0.08), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)),
    var(--book-panel);
  border: 1px solid var(--book-border);
  border-radius: var(--book-radius);
  padding: 22px;
  box-shadow: var(--book-shadow);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.card.card-compact {
  padding: 18px;
}

.card.card-compact h2 {
  margin-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: 1fr; }
}

label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  color: var(--book-muted);
}

.label-span { grid-column: 1 / -1; }

input,
select,
button {
  border: 1px solid var(--book-border-strong);
  background: rgba(2, 6, 23, 0.62);
  color: var(--book-text);
  padding: 12px 12px;
  border-radius: var(--book-radius-sm);
  font-size: 14px;
}

input::placeholder { color: rgba(148, 163, 184, 0.7); }
input:focus,
select:focus { border-color: rgba(56,189,248,0.78); }

button {
  cursor: pointer;
  font-weight: 700;
  transition: transform .14s ease, filter .14s ease, border-color .14s ease;
}

button:hover { transform: translateY(-1px); border-color: rgba(56,189,248,0.58); }

button.primary {
  background: linear-gradient(135deg, rgba(56,189,248,0.98), rgba(34,197,94,0.84));
  color: #031018;
  border-color: rgba(56,189,248,0.4);
  box-shadow: 0 16px 34px rgba(56,189,248,0.18);
}

.times {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.timebtn {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(2,6,23,0.62);
  border: 1px solid var(--book-border);
  font-size: 13px;
}

.timebtn[aria-pressed="true"] {
  border-color: rgba(56,189,248,0.78);
  box-shadow: 0 0 0 3px rgba(56,189,248,0.16) inset;
}

.muted,
.fine {
  color: var(--book-muted);
  font-size: 13px;
  line-height: 1.55;
}

.msg {
  min-height: 18px;
  margin-top: 12px;
  font-size: 13px;
}

.msg.ok { color: #86efac; }
.msg.err { color: #fca5a5; }

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

.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.times-hint { margin-top: 8px; }
.section-divider {
  border: 0;
  border-top: 1px solid var(--book-border);
  margin: 18px 0;
}
.actions-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fine-spacing { margin-top: 12px; }
.fine-block { margin-top: 14px; }

.public-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px 28px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--book-muted);
  font-size: 12px;
  line-height: 1.5;
}

.book-main--single {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}

.booking-card-wide {
  max-width: 760px;
  width: 100%;
}

.booking-status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.booking-title {
  margin: 0;
}

.booking-subtitle {
  margin-top: 8px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--book-border);
  background: rgba(255,255,255,0.05);
  color: rgba(226,232,240,0.94);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--book-border);
  background: rgba(2,6,23,0.46);
  font-size: 14px;
}

.detail-row span:last-child {
  text-align: right;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--book-border-strong);
  background: rgba(2,6,23,0.62);
  color: var(--book-text);
  padding: 12px 12px;
  border-radius: var(--book-radius-sm);
  font-size: 14px;
  font-weight: 700;
}

.button-link:hover {
  border-color: rgba(56,189,248,0.58);
  transform: translateY(-1px);
}

.info-panel {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--book-border);
  background: rgba(255,255,255,0.04);
  line-height: 1.6;
}

@media (max-width: 640px) {
  .detail-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-row span:last-child {
    text-align: left;
  }
}

/* Guest booking flow: concise criteria -> explicit slot -> guest details. */
.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 2000;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--book-text);
  color: var(--book-bg);
  font-weight: 800;
}

.skip-link:focus { top: 12px; }

.book-main--booking {
  max-width: 1120px;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 18px;
}

.booking-flow-card,
.booking-summary-card { box-shadow: 0 16px 42px rgba(0, 0, 0, .24); }

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

.booking-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.booking-section-head h2 { margin: 4px 0 0; font-size: 24px; }

.booking-step {
  display: block;
  color: var(--book-muted);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.booking-live-label {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid var(--book-border);
  border-radius: 999px;
  color: #86efac;
  background: rgba(34, 197, 94, .09);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.booking-criteria-grid { margin-bottom: 12px; }
.booking-criteria-grid input,
.booking-contact-grid input { min-height: 52px; }

.booking-availability-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 0;
}

.booking-availability-actions p { margin: 0; }
.booking-availability-actions .is-error { color: #fca5a5; }

.booking-times {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 9px;
  margin-top: 14px;
}

.booking-times .timebtn {
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 14px;
}

.booking-empty-state {
  grid-column: 1 / -1;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px dashed var(--book-border-strong);
  border-radius: 14px;
  color: var(--book-muted);
}

.booking-empty-state strong { color: var(--book-text); }

.booking-selected-slot {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(34, 197, 94, .34);
  border-radius: 16px;
  background: rgba(34, 197, 94, .08);
}

.booking-selected-slot span {
  color: #86efac;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.booking-selected-slot strong { font-size: 17px; }
.booking-selected-slot small { color: var(--book-muted); line-height: 1.5; }
.booking-details-head { margin-bottom: 14px; }
.field-optional { color: var(--book-muted); font-size: 11px; font-weight: 600; }

.booking-policy-panel {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--book-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.booking-policy-panel ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
  color: var(--book-muted);
  font-size: 13px;
  line-height: 1.5;
}

.booking-submit { width: 100%; min-height: 56px; margin-top: 10px; font-size: 15px; }
.booking-summary { padding: 2px 0; background: transparent; }

.booking-summary .row {
  align-items: center;
  min-height: 48px;
  padding: 0 2px;
  border-bottom: 1px solid var(--book-border);
}

.booking-summary .row:last-child { border-bottom: 0; }
.booking-summary strong { text-align: right; }

.booking-restaurant-facts {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--book-border);
  border-radius: 14px;
}

.booking-restaurant-facts p { margin: 0; color: var(--book-muted); line-height: 1.55; }
.booking-restaurant-facts a { font-weight: 800; }
.booking-privacy-copy { margin: 16px 0 0; }

@media (max-width: 900px) {
  .book-main--booking { grid-template-columns: 1fr; max-width: 760px; }
  .booking-summary-card { position: static; }
}

@media (max-width: 640px) {
  .book-header { padding: 12px; }
  .book-header .brand { flex-wrap: nowrap; align-items: center; }
  .book-header .mark { width: 38px; height: 38px; border-radius: 12px; }
  .book-header .page-kicker { margin-bottom: 2px; font-size: 10px; }
  .book-header .title { font-size: 18px; }
  .book-header .sub { display: none; }
  .booking-location-link { min-height: 44px; padding: 8px 10px; text-align: center; }
  .book-main--booking { margin-top: 12px; padding-inline: 10px; }
  .booking-flow-card,
  .booking-summary-card { padding: 18px 16px; border-radius: 18px; }
  .booking-section-head h2 { font-size: 22px; }
  .booking-availability-actions { align-items: stretch; flex-direction: column; }
  .booking-availability-actions .button-link { width: 100%; }
  .booking-times { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .booking-times .timebtn { padding-inline: 6px; font-size: 13px; }
  .booking-contact-grid { gap: 10px; }
}

/* Private reservation confirmation and cancellation. */
.confirmation-main { max-width: 820px; }
.confirmation-card { box-shadow: 0 16px 42px rgba(0, 0, 0, .24); }

.confirmation-hero {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.confirmation-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(34, 197, 94, .13);
  color: #86efac;
  font-size: 24px;
  font-weight: 900;
}

.confirmation-hero .booking-title { margin-top: 4px; font-size: 26px; }
.confirmation-detail-grid { display: grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:10px; margin-top:20px; }

.confirmation-detail {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 14px 16px;
  border: 1px solid var(--book-border);
  border-radius: 16px;
  background: rgba(2, 6, 23, .34);
}

.confirmation-detail span { color: var(--book-muted); font-size:12px; font-weight:750; text-transform:uppercase; letter-spacing:.06em; }
.confirmation-detail strong { font-size:17px; line-height:1.4; }
.confirmation-detail.is-featured { background: rgba(56, 189, 248, .07); border-color: rgba(56, 189, 248, .25); }

.confirmation-visit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--book-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, .035);
}

.confirmation-visit > div { display:grid; gap:5px; }
.confirmation-visit p { margin:0; color:var(--book-muted); line-height:1.5; }
.confirmation-policy { margin-top:16px; }
.confirmation-actions { margin-top:18px; }
.he-guest .confirmation-actions > * { min-height:48px; flex:1 1 220px; }

.confirmation-cancel-trigger,
.confirmation-danger {
  border-color: rgba(239, 68, 68, .5);
  background: rgba(239, 68, 68, .08);
  color: #fca5a5;
}

.confirmation-cancel-dialog {
  width: min(92vw, 500px);
  padding: 0;
  border: 1px solid var(--book-border);
  border-radius: 22px;
  background: var(--book-panel);
  color: var(--book-text);
  box-shadow: var(--book-shadow);
}

.confirmation-cancel-dialog::backdrop { background: rgba(2, 6, 23, .72); backdrop-filter: blur(3px); }
.confirmation-cancel-dialog-card { display:grid; gap:12px; padding:22px; }
.confirmation-cancel-dialog-card h2 { margin:0; }
.confirmation-cancel-dialog-card p { margin:0; color:var(--book-muted); line-height:1.6; }
.confirmation-dialog-actions { display:grid; grid-template-columns:1fr 1fr; gap:10px; margin-top:8px; }
.confirmation-dialog-actions button { min-height:50px; }

@media (max-width: 640px) {
  .confirmation-main { padding-inline:10px; }
  .confirmation-card { padding:18px 16px; }
  .confirmation-hero { grid-template-columns:42px minmax(0, 1fr); }
  .confirmation-icon { width:42px; height:42px; border-radius:14px; }
  .confirmation-hero .status-badge { grid-column:2; justify-self:start; }
  .confirmation-hero .booking-title { font-size:23px; }
  .confirmation-detail-grid { grid-template-columns:1fr 1fr; }
  .confirmation-detail { min-height:80px; padding:12px; }
  .confirmation-detail strong { font-size:15px; }
  .confirmation-visit { align-items:stretch; flex-direction:column; }
  .confirmation-visit .button-link { width:100%; }
  .confirmation-actions { display:grid; grid-template-columns:1fr; }
  .confirmation-dialog-actions { grid-template-columns:1fr; }
}
