/* Guest reviews. Uses the tokens and the radius rule from styles.css so these blocks sit in
   the same family as the rest of the site, in light and in dark. Mobile-first. */

/* Rating summary -------------------------------------------------------- */
.rsum { display: grid; gap: 6px; justify-items: start; }
.rsum__score { font-family: var(--display); font-weight: 400; font-size: 2.75rem; line-height: 1; }
.rsum__count { color: var(--muted); font-size: .9375rem; }

/* Stars ------------------------------------------------------------------ */
.stars { display: inline-flex; gap: 2px; color: var(--saffron); line-height: 1; }
.stars svg { width: 20px; height: 20px; display: block; }
.stars--sm svg { width: 16px; height: 16px; }
.stars .is-off { color: var(--line); }

/* Star picker: real radios, styled. Keyboard and screen readers get the radio group. */
.rate { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.rate__row { display: flex; flex-wrap: wrap; gap: 6px; }
.rate__opt { position: relative; }
.rate__opt input {
  position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.rate__opt span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 10px 14px;
  border: 2px solid var(--field); border-radius: var(--r); background: var(--surface);
  font-weight: 600; font-size: .9375rem;
}
.rate__opt input:checked + span { border-color: var(--accent); background: var(--tint); }
.rate__opt input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }

/* Review cards ----------------------------------------------------------- */
.rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.rcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px; display: grid; gap: 8px;
}
.rcard__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rcard h3 { font-size: 1.0625rem; }
.rcard__meta { color: var(--muted); font-size: .875rem; }
.rcard p { margin: 0; }
.rcard__dish { align-self: start; font-size: .8125rem; font-weight: 600; background: var(--tint);
  border-radius: 999px; padding: 3px 10px; }
.rcard__reply {
  border-left: 4px solid var(--saffron); background: var(--bg); border-radius: var(--r);
  padding: 12px 16px; display: grid; gap: 4px;
}
.rcard__reply b { font-size: .9375rem; }

@media (min-width: 700px) {
  .rlist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rlist > li:only-child { grid-column: 1 / -1; }
}

/* Sold out ---------------------------------------------------------------
   Toast reports an item as 86'd; the dish stays listed but cannot be ordered. */
.soldout {
  display: inline-flex; align-items: center; white-space: nowrap;
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px;
  font-size: .8125rem; font-weight: 600; color: var(--muted); background: var(--tint);
}

/* Reservations -----------------------------------------------------------
   Two steps, like the booking services guests already know: choose a time,
   then give your details. Built from the site's own tokens, mobile first. */

/* The search bar: guests, date and time in one control. */
.rsearch {
  display: grid; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow); overflow: hidden; margin: 0;
}
.rsearch__field { display: grid; gap: 2px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.rsearch__field label { color: var(--muted); font-size: .8125rem; font-weight: 500; }
.rsearch__hint { color: var(--accent-text); font-weight: 600; }
.rsearch__field select, .rsearch__field input[type="date"] {
  appearance: none; -webkit-appearance: none;
  width: 100%; min-height: 32px; padding: 0 22px 0 0; margin: 0;
  border: 0; background: transparent; color: var(--ink);
  font: 600 1.0625rem/1.4 var(--font); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 8px center, right 3px center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.rsearch__field select:focus-visible,
.rsearch__field input[type="date"]:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 3px; border-radius: 4px; }
/* The date field uses the browser's own calendar, so it keeps its picker control. */
.rsearch__field input[type="date"] { background-image: none; padding-right: 0; }
/* Long labels shorten rather than spill out of the control. */
.rsearch__field select { text-overflow: ellipsis; white-space: nowrap; overflow: hidden; }
.rsearch__go {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 14px 24px; margin: 0; border: 0; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 600 1rem var(--font);
}
.rsearch__go:hover { background: var(--accent-hover); }
/* With scripting the form submits itself on change, so the button is redundant. Hidden in CSS
   rather than by script: the script runs before hydration, and changing the DOM there would
   leave React reconciling against markup it did not render. */
.js .rsearch__go { display: none; }

/* Slot grid. */
.rslots { display: grid; gap: 24px; margin-top: 24px; }
.rslots__group { display: grid; gap: 10px; }
.rslots__group h3 {
  font-family: var(--display); font-weight: 400; font-size: 1.0625rem;
  color: var(--muted); letter-spacing: .02em;
}
.rslots__row { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); }
.rslot {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 10px 8px; border-radius: var(--r);
  background: var(--maroon); color: var(--cream-fixed); text-decoration: none;
  font: 600 1rem/1.2 var(--font); text-align: center;
  transition: background .18s var(--ease), transform .18s var(--ease);
}
.rslot:hover { background: var(--accent); transform: translateY(-1px); }
.rslot:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.rslot small { font-weight: 500; font-size: .75rem; opacity: .85; }

.rnone {
  margin-top: 24px;
  border: 1px dashed var(--line); border-radius: var(--r);
  padding: 24px; text-align: center; color: var(--muted);
}
.rnone p { margin: 0 auto .75rem; }

/* The chosen booking, carried into step two. */
.rpick {
  display: grid; gap: 0;
  background: var(--tint); border-radius: var(--r); overflow: hidden;
  border: 1px solid var(--line);
}
.rpick__row { display: flex; }
.rpick__cell { flex: 1; padding: 12px 16px; display: grid; gap: 2px; border-right: 1px solid var(--line); }
.rpick__cell:last-child { border-right: 0; }
.rpick__cell span { color: var(--muted); font-size: .8125rem; }
.rpick__cell strong { font-size: 1rem; }
.rpick__change {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 16px; border-top: 1px solid var(--line);
  color: var(--accent-text); text-decoration: none; font-weight: 600; font-size: .9375rem;
  min-height: 48px;
}
.rpick__change:hover { background: var(--surface); }

@media (min-width: 640px) {
  .rsearch { grid-template-columns: 1fr 1fr 1fr auto; }
  .rsearch__field { border-bottom: 0; border-right: 1px solid var(--line); }
  .rsearch__go { min-height: auto; }
}

/* Select and date controls ------------------------------------------------
   The browser's own arrow sits hard against the right edge and reads as
   detached from the control. One caret instead, drawn in currentColor so it
   follows the theme, with room made for it so the text never runs underneath. */
.field select,
.rsearch__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 19px center, right 14px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}
.rsearch__field select { padding-right: 26px; background-position: right 5px center, right 0 center; }

/* The date field keeps the browser's calendar button, but pulled in off the edge. */
.field input[type="date"] { padding-right: 12px; }
.field input[type="date"]::-webkit-calendar-picker-indicator,
.rsearch__field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: .6; cursor: pointer; padding: 4px; margin-inline-start: 4px;
}
.field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.rsearch__field input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; }
