:root {
  color-scheme: light;
  --paper: #fbf5f4;
  --white: #ffffff;
  --ink: #343532;
  --muted: #85847f;
  --rose: #d24f43;
  --rose-dark: #ad382f;
  --rose-pale: #fff0ee;
  --free: #4d8060;
  --free-dark: #3f694e;
  --free-pale: #e9f1eb;
  --whatsapp: #25d366;
  --whatsapp-dark: #168f45;
  --line: #e9e5e3;
  --font: "Lato", Arial, sans-serif;
  --display: "Lora", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}
button, a { font: inherit; }
a { color: inherit; }
.page-shell { width: min(960px, calc(100% - 48px)); margin: 0 auto; }

.topbar { height: 74px; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { width: min(960px, calc(100% - 48px)); height: 100%; display: flex; align-items: center; justify-content: space-between; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name { font-family: var(--display); font-size: 19px; font-weight: 500; letter-spacing: -.5px; }
.brand-name span { margin-left: 3px; color: var(--rose-dark); font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.booking { padding: 34px 0; }
.booking-heading { max-width: 590px; display: flex; justify-content: flex-start; margin: 0 auto 8px; }
.legend { display: flex; align-items: center; gap: 16px; color: #73726d; font-size: 11px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--free); }
.legend-dot.occupied { background: var(--rose); }
.calendar-card { max-width: 590px; margin: 0 auto; padding: 17px 20px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--white); }
.calendar-toolbar { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 14px; }
.month-title { color: var(--ink); font-family: var(--display); font-size: 16px; font-weight: 500; text-align: center; text-transform: capitalize; }
.month-arrow { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: #6c6b66; font-size: 23px; line-height: 1; cursor: pointer; transition: background .18s, border .18s, color .18s; }
.month-arrow:hover:not(:disabled) { border-color: var(--rose); background: var(--rose-pale); color: var(--rose-dark); }
.month-arrow:disabled { cursor: default; opacity: .3; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px 2px; }
.weekday { padding: 7px 0 8px; color: #96948f; font-size: 10px; font-weight: 600; text-align: center; text-transform: uppercase; }
.weekday.weekend { color: #ad8982; }
.day-cell { position: relative; display: flex; justify-content: center; align-items: center; min-height: 43px; }
.day-button { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: #777670; font-size: 12px; cursor: default; transition: transform .16s, background .16s, color .16s, box-shadow .16s; }
.day-cell.available .day-button { background: var(--free-pale); color: var(--free-dark); font-weight: 700; cursor: pointer; }
.day-cell.available .day-button::after { content: ""; position: absolute; width: 4px; height: 4px; bottom: 4px; border-radius: 50%; background: var(--free); }
.day-cell.available .day-button:hover { background: #dce9df; transform: translateY(-1px); }
.day-cell.available .day-button[aria-pressed="true"] { background: var(--free); color: white; box-shadow: 0 0 0 3px var(--free-pale); }
.day-cell.available .day-button[aria-pressed="true"]::after { background: white; }
.day-cell.occupied .day-button { background: var(--rose-pale); color: var(--rose-dark); }
.day-cell.past .day-button { color: #c3c1be; }
.calendar-hint { min-height: 15px; margin: 10px 0 0; color: #94928d; font-size: 10px; text-align: center; }
.empty-month { grid-column: 1 / -1; padding: 25px 10px; color: var(--muted); font-size: 12px; text-align: center; }

.selection-card { max-width: 590px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 12px auto 0; padding: 14px 0 5px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.selection-card[hidden] { display: none; }
.selection-copy { display: grid; gap: 2px; }
.selection-copy strong { font-size: 15px; font-weight: 600; }
.whatsapp-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 42px; padding: 0 15px; border-radius: 5px; background: var(--whatsapp); color: #fff; font-size: 12px; font-weight: 700; text-decoration: none; transition: background .16s, transform .16s; }
.whatsapp-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.whatsapp-button:hover { background: #20bd5b; transform: translateY(-1px); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 10; max-width: calc(100vw - 40px); padding: 12px 16px; border-radius: 8px; background: #343532; color: #fff; font-size: 12px; box-shadow: 0 6px 22px #3435322b; }
.toast[hidden] { display: none; }
:focus-visible { outline: 3px solid #c58b80; outline-offset: 3px; }

@media (max-width: 680px) {
  .page-shell { width: min(calc(100% - 36px), 480px); }
  .topbar { height: 66px; }
  .topbar-inner { width: min(calc(100% - 36px), 480px); }
  .brand-name { font-size: 17px; }
  .brand-name span { font-size: 9px; }
  .booking { padding: 30px 0 24px; }
  .legend { gap: 12px; }
  .calendar-card { padding: 13px 10px 11px; border-radius: 10px; }
  .calendar-grid { gap: 3px 1px; }
  .day-cell { min-height: 42px; }
  .day-button { width: 35px; height: 35px; }
  .selection-card { grid-template-columns: 1fr; gap: 8px; padding: 12px 0 3px; }
  .whatsapp-button { justify-self: stretch; min-height: 43px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
