/* Reservations page — extends site styles */
.res-page {
  padding: 7rem 0 4rem;
  min-height: 80vh;
  background:
    radial-gradient(ellipse at top, rgba(92, 21, 40, 0.06), transparent 55%),
    var(--cream);
}
.res-hero {
  text-align: center;
  margin-bottom: 2rem;
}
.res-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 0.35em;
}
.res-hero p {
  color: var(--ink-muted);
  max-width: 34rem;
  margin-inline: auto;
}
.res-layout {
  display: grid;
  gap: 1.5rem;
  max-width: 720px;
  margin-inline: auto;
}
.res-card {
  background: var(--white);
  border-top: 3px solid var(--burgundy);
  box-shadow: var(--shadow-soft);
  padding: 1.75rem 1.5rem 1.5rem;
}
@media (min-width: 640px) {
  .res-card { padding: 2rem 2.25rem; }
}
.res-step-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burgundy-soft);
  margin-bottom: 0.75rem;
}
.res-card h2 {
  font-size: 1.65rem;
  margin-bottom: 1rem;
}
.res-progress {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.res-progress span {
  width: 2.25rem;
  height: 3px;
  background: var(--stone);
  border-radius: 2px;
}
.res-progress span.is-on { background: var(--burgundy); }
.res-progress span.is-done { background: var(--candle); }

.res-fields {
  display: grid;
  gap: 1rem;
}
.res-fields.two {
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .res-fields.two { grid-template-columns: 1fr 1fr; }
}
.res-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.4rem;
}
.res-field input,
.res-field select,
.res-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.res-field input:focus,
.res-field select:focus,
.res-field textarea:focus {
  outline: 2px solid rgba(92, 21, 40, 0.35);
  border-color: var(--burgundy);
  background: var(--white);
}
.res-field textarea { min-height: 5.5rem; resize: vertical; }
.res-hp {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.res-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}
.res-actions .btn { flex: 1 1 auto; min-width: 8rem; }
.res-actions .btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.res-times {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
}
@media (min-width: 560px) {
  .res-times { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 720px) {
  .res-times { grid-template-columns: repeat(5, 1fr); }
}
.res-time {
  appearance: none;
  border: 1px solid var(--stone);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 0.4rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.res-time:hover:not(:disabled) {
  border-color: var(--burgundy);
  color: var(--burgundy);
}
.res-time.is-selected {
  background: var(--burgundy);
  border-color: var(--burgundy);
  color: var(--cream);
}
.res-time:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.res-msg {
  padding: 0.85rem 1rem;
  background: var(--success-soft);
  border-left: 3px solid var(--candle);
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 0;
}
.res-msg.is-error {
  border-left-color: var(--burgundy);
  background: #f6e8eb;
  color: var(--burgundy-deep);
}
.res-msg.is-warn {
  border-left-color: var(--wood-light);
}

.res-summary {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}
.res-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 1rem;
}
.res-summary li span:first-child { color: var(--ink-muted); }
.res-summary li span:last-child {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--burgundy-deep);
  text-align: right;
}

.res-confirm-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--burgundy);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}
.res-confirm-icon.is-request { background: var(--wood); }

.res-fallback {
  text-align: center;
  margin-top: 2rem;
  padding: 1.25rem;
  color: var(--ink-muted);
  font-size: 0.95rem;
}
.res-fallback a { font-weight: 600; }

.res-mock-banner {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--wood);
  color: var(--cream);
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
}
.res-mock-banner code {
  font-family: ui-monospace, monospace;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.9;
}

.res-hidden { display: none !important; }

.res-manage-panel .res-actions { margin-top: 1rem; }

@media (max-width: 520px) {
  .res-actions {
    flex-direction: column;
  }
  .res-actions .btn {
    width: 100%;
    min-width: 0;
  }
  .res-time {
    padding: 0.95rem 0.35rem;
    font-size: 0.9rem;
  }
}
.res-card {
  border-radius: 0;
}


/* Patio seating preference (shown when patioAvailable) */
.res-seating-prefs {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.25rem;
}
.res-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
}
.res-check-label input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--burgundy, #5c1528);
}


.res-seating-policy {
  margin: 0.85rem 0 0.35rem;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-muted, #5a4a40);
  background: rgba(92, 21, 40, 0.04);
  border-left: 3px solid rgba(92, 21, 40, 0.35);
  border-radius: 0 6px 6px 0;
}

/* Always-visible dining space photos */
.res-spaces {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 0 0 1.75rem;
}
.res-space {
  margin: 0;
  background: var(--white, #fffdf9);
  border-top: 3px solid var(--burgundy, #5c1528);
  box-shadow: 0 12px 40px rgba(31,22,18,.08);
  overflow: hidden;
}
.res-space img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  display: block;
}
.res-space figcaption {
  padding: 0.75rem 0.9rem 0.95rem;
  font-size: 0.92rem;
  color: var(--ink-muted, #5a4a40);
}
.res-seating-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted, #5a4a40);
  margin-bottom: 0.55rem;
}
.res-seating-select-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.res-seating-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
}
.res-seat-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 0;
  border: 1px solid var(--stone, #d9cfc0);
  background: var(--white, #fffdf9);
  cursor: pointer;
  border-radius: 2px;
  overflow: hidden;
  font: inherit;
  color: inherit;
}
.res-seat-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}
.res-seat-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.7rem 0.8rem;
}
.res-seat-card-title {
  font-family: var(--font-serif, Georgia, serif);
  font-size: 1.05rem;
  color: var(--burgundy-deep, #3a0d18);
}
.res-seat-card-note {
  font-size: 0.82rem;
  color: var(--ink-muted, #5a4a40);
}
.res-seat-card.is-selected {
  border-color: var(--burgundy, #5c1528);
  box-shadow: 0 0 0 2px rgba(92, 21, 40, 0.25);
}
.res-seat-card[data-seat="any"] .res-seat-card-body {
  min-height: 4.5rem;
  justify-content: center;
}
@media (max-width: 700px) {
  .res-spaces,
  .res-seating-cards {
    grid-template-columns: 1fr;
  }
}
