:root {
  color-scheme: dark;
  font: 16px/1.5 system-ui, sans-serif;
  --surface: #211b18;
  --field: #2b2420;
  --line: #56483e;
  --text: #f7eee4;
  --muted: #d2c0af;
  --accent: #e8cbac;
  --accent-ink: #2e211a;
  --green: #bdd9b3;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: #221a15; color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: Georgia, serif; font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(2.1rem, 5vw, 2.65rem); letter-spacing: -.035em; }
h2 { font-size: 1.55rem; margin-bottom: 11px; }
h3 { font-size: 1rem; }

.restaurant { position: relative; min-height: 100svh; display: grid; align-items: end; isolation: isolate; }
.restaurant-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 58%; z-index: -2; }
.restaurant::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, rgb(20 13 10 / 86%), transparent 66%),
              linear-gradient(90deg, rgb(20 13 10 / 36%), transparent 75%);
}
.restaurant-copy { padding: 0 0 clamp(52px, 13vh, 142px) clamp(27px, 8vw, 125px); }
.restaurant-location { color: #f4dec5; font-size: .86rem; letter-spacing: .14em; }
.wordmark {
  font-family: Georgia, serif; font-size: clamp(2rem, 6vw, 5.4rem);
  font-weight: 400; letter-spacing: .055em; line-height: 1.12; margin: 8px 0 22px;
}
.primary, .secondary {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  border: 1px solid var(--accent); border-radius: .35rem; padding: 9px 16px;
  text-decoration: none; font-weight: 700; text-align: center;
}
.primary { background: var(--accent); color: var(--accent-ink); }
.primary:not(:disabled):hover { background: #f6dec5; }
.secondary { color: var(--accent); background: transparent; }
.primary:disabled, .secondary:disabled { opacity: .58; }

.booking-drawer {
  position: fixed; inset: auto clamp(24px, 5vw, 76px) clamp(22px, 5vh, 58px) auto;
  width: min(calc(100vw - 48px), 445px); max-width: none;
  max-height: calc(100dvh - clamp(44px, 10vh, 116px)); margin: 0; padding: 0;
  overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); color: var(--text);
  border: 1px solid #705b4a; border-radius: .85rem;
  box-shadow: 0 24px 80px rgb(15 9 6 / 58%);
}
.booking-drawer::backdrop { background: rgb(16 10 7 / 34%); }
.drawer-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 20px; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 1;
}
.drawer-brand { margin-right: auto; font-size: .87rem; font-weight: 650; letter-spacing: .17em; }
.language { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: .4rem; }
.language button { min-width: 37px; min-height: 33px; border: 0; border-radius: .25rem; background: transparent; color: var(--muted); font-size: .82rem; }
.language [aria-pressed="true"] { background: #47372d; color: var(--text); }
.close-button { width: 42px; height: 42px; border: 1px solid transparent; border-radius: .35rem; color: var(--text); background: none; font-size: 1.56rem; line-height: 1; }
.close-button:hover { border-color: var(--line); }
.drawer-content { padding: 21px clamp(15px, 4.5vw, 24px) 16px; }
#intro { margin: 6px 0 16px; color: var(--muted); font-size: .87rem; }
.mode { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 16px; color: var(--muted); font-size: .78rem; }

.visit-grid, .grid { min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.calendar { border: 1px solid var(--line); border-radius: .54rem; overflow: clip; }
.date-toggle {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left;
  width: 100%; min-height: 46px; padding: 10px 12px; border: 0; background: var(--field); color: var(--text);
}
.date-toggle span { color: var(--muted); font-size: .89rem; }
.date-toggle strong { flex: 1 1 auto; text-align: right; font-size: .9rem; line-height: 1.25; }
.date-toggle::after {
  content: ""; width: .4em; height: .4em; margin: 0 3px 3px 4px;
  border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
}
.date-toggle[aria-expanded="true"]::after { transform: rotate(225deg); margin-bottom: 0; }
.date-toggle:focus-visible { outline-offset: -3px; }
#calendar-details { padding: 9px 12px 13px; }
.calendar-navigation { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 6px; }
.calendar-navigation p { text-align: center; font-size: .95rem; font-weight: 650; text-transform: capitalize; }
.month-button {
  width: 41px; height: 41px; padding: 0 0 2px; border: 1px solid var(--line);
  border-radius: .35rem; background: transparent; color: var(--text); font-size: 1.45rem; line-height: 1;
}
.month-button:disabled { opacity: .42; }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; }
.weekdays { font-size: .79rem; color: var(--muted); margin-bottom: 5px; }
.calendar-day {
  min-width: 0; min-height: 38px; padding: 0; border: 1px solid #7a624e;
  border-radius: .34rem; background: #45372c; color: var(--text); font-size: .9rem; font-variant-numeric: tabular-nums;
}
.calendar-day:not(:disabled):hover { border-color: var(--accent); background: #5d493a; }
.calendar-day[aria-pressed="true"], .calendar-day[aria-pressed="true"]:hover {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 750;
}
.calendar-day:disabled { background: #221d1a; border-color: #43372e; color: #b1a397; }
.calendar-day.is-closed { text-decoration: line-through; }
.calendar-day.is-outside { border-color: transparent; background: transparent; }
.calendar-day.is-full { background: #482d2a; color: #f2c6bd; border-color: #805450; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 5px 12px; margin: 11px 0 0; color: var(--muted); font-size: .76rem; }
.calendar-legend span::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 5px;
  border: 1px solid #9b8068; border-radius: 2px; background: #45372c;
}
.calendar-legend .legend-full::before { background: #482d2a; border-color: #b58880; }
.calendar-legend .legend-closed::before { background: #221d1a; border-color: #a89a8b; }

.experiences { margin-top: 15px; }
.experience-status, .small, small { color: var(--muted); font-size: .87rem; }
.experience-cards { display: grid; gap: 7px; }
.experience-option { position: relative; margin: 0; cursor: pointer; }
.experience-option input {
  position: absolute; width: 1px; height: 1px; margin: 0;
  overflow: hidden; clip-path: inset(50%);
}
.experience-card {
  display: grid; grid-template-columns: clamp(66px, 20vw, 95px) minmax(0, 1fr); align-items: stretch;
  overflow: hidden; border-radius: .42rem; border: 1px solid var(--line); background: var(--field);
}
.experience-option:hover .experience-card { background: #392e26; border-color: #9c7d64; }
.experience-option input:checked + .experience-card { border-color: var(--accent); background: #49382a; }
.experience-option input:focus-visible + .experience-card { outline: 2px solid var(--accent); outline-offset: 2px; }
.experience-card img { width: 100%; height: 100%; min-height: 65px; max-height: 94px; object-fit: cover; }
.experience-copy { display: grid; align-content: center; gap: 3px; padding: 6px 10px; }
.experience-copy strong { font-family: Georgia, serif; font-weight: 400; font-size: 1.13rem; line-height: 1.15; }
.experience-copy small { line-height: 1.28; }
#visit-options { margin-top: 13px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.wide { grid-column: 1 / -1; }
label { display: block; font-size: .9rem; }
label > span:first-child { display: block; margin: 0 0 4px; }
select, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), textarea {
  width: 100%; min-width: 0; min-height: 43px; padding: 7px 9px; display: block;
  border: 1px solid #7c6756; border-radius: .34rem; background: var(--field); color: var(--text);
}
textarea { resize: vertical; }
form > .primary, #visit-options > .primary { width: 100%; margin-top: 13px; }
.guarantee { padding: 12px; background: var(--field); border-radius: .4rem; }
.guarantee p { margin: 6px 0 0; color: var(--muted); font-size: .875rem; }
.consent { display: flex; align-items: start; gap: 8px; margin-top: 12px; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 2px 0; accent-color: var(--accent); }
.notice { margin: 0 0 13px; padding: 9px 11px; border-left: 2px solid #db9e89; background: #432d29; color: #fbe4db; }
.status { color: var(--green); font-weight: 650; font-size: .85rem; }
.summary { color: var(--accent); margin: 4px 0 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.text-button { border: 0; padding: 7px 0; background: transparent; color: var(--muted); text-decoration: underline; }
#edit-visit { margin-bottom: 6px; }
.receipt dt { color: var(--muted); font-size: .88rem; }
.receipt dd { margin: 0 0 7px; overflow-wrap: anywhere; }
.receipt a { color: var(--accent); }
.receipt button { margin-top: 10px; }

@media (max-width: 705px) {
  .booking-drawer { inset: auto 0 0; width: 100%; max-height: 94dvh; border-radius: .85rem .85rem 0 0; }
  .drawer-content { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .drawer-header { padding-left: 16px; }
  .restaurant-copy { padding-bottom: max(40px, env(safe-area-inset-bottom)); }
}
