/* ============================================================
   RESERVAS — editorial premium
   ============================================================ */

.reserva { padding-block: clamp(4rem, 8vw, 7rem); }
.reserva-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.reserva .intro .eyebrow { margin-bottom: 1.5rem; }
.reserva .intro h2 { margin-bottom: 1.6rem; }
.reserva .intro .lede { margin-bottom: 2rem; }

/* Dark form panel */
.resform {
  background: var(--noir);
  color: var(--on-noir);
  padding: clamp(2rem, 4vw, 3.2rem);
}
.resform .fhead { font-family: var(--font-heading); font-weight: 300; font-size: 1.8rem; margin-bottom: 0.3rem; color: var(--on-noir); }
.resform .fsub { font-size: 0.92rem; color: var(--on-noir-soft); margin-bottom: 2rem; }

.resform .field { margin-bottom: 1.4rem; }
.resform .field label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.resform .field input,
.resform .field select {
  width: 100%;
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 1px solid oklch(0.94 0.006 90 / 0.22);
  color: var(--on-noir);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  padding: 0.5rem 0;
  letter-spacing: 0.02em;
  border-radius: 0;
  transition: border-color 0.4s var(--ease);
}
.resform .field input:focus,
.resform .field select:focus {
  outline: none;
  border-color: var(--gold);
}
.resform .field select option { color: var(--ink); }
.resform .field input[type="date"]::-webkit-calendar-picker-indicator,
.resform .field input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.8) sepia(0.6) saturate(3) hue-rotate(5deg);
  cursor: pointer;
}

.resform .frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.resform .frow-3 { grid-template-columns: 1fr 1fr 1fr; }

.resform .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0.6rem 0 1.4rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--on-noir-soft);
}
.resform .consent input { margin-top: 0.25rem; accent-color: var(--gold-deep); flex: none; }
.resform .consent a { color: var(--gold); text-decoration: underline; }

.resform .btn-primary { margin-top: 0.4rem; }
.resform .resnote {
  font-size: 0.74rem;
  color: var(--on-noir-soft);
  margin-top: 1.2rem;
  text-align: center;
  letter-spacing: 0.04em;
}

/* ── Mapa de mesas no formulário ──────────────────────────── */
.res-map {
  position: relative;
  width: 100%;
  height: 300px;
  margin-top: 0.5rem;
  background: oklch(0.94 0.006 90 / 0.05);
  background-image: linear-gradient(oklch(0.94 0.006 90 / 0.06) 1px, transparent 1px), linear-gradient(90deg, oklch(0.94 0.006 90 / 0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  border: 1px solid oklch(0.94 0.006 90 / 0.18);
  overflow: hidden;
}
.res-map-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem; color: var(--on-noir-soft); font-size: 0.85rem; line-height: 1.5;
}
.res-table {
  position: absolute;
  width: 58px; height: 58px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid; border-radius: 50%;
  font-size: 0.55rem; color: #fff; cursor: pointer; padding: 0;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.res-table.shape-square { border-radius: 6px; }
.res-table.shape-rect { border-radius: 6px; width: 84px; }
.res-table.free { background: #3f6fa3; border-color: #5b8bc4; }
.res-table.free:hover { background: #4c80ba; transform: translateY(-1px); }
.res-table.busy { background: #6b6b6b; border-color: #7d7d7d; opacity: 0.65; cursor: not-allowed; }
.res-table.sel { background: var(--gold-deep); border-color: var(--gold); color: var(--noir); box-shadow: 0 0 0 3px var(--gold-soft); }
.res-table .rt-name { font-weight: 600; font-size: 0.58rem; line-height: 1; padding: 0 2px; }
.res-table .rt-seats { font-size: 0.5rem; opacity: 0.85; margin-top: 1px; }
.res-map-legend { display: flex; gap: 1.1rem; margin-top: 0.6rem; font-size: 0.62rem; color: var(--on-noir-soft); }
.res-map-legend .lg { display: inline-flex; align-items: center; gap: 0.35rem; }
.res-map-legend .lg::before { content: ''; width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.res-map-legend .free::before { background: #3f6fa3; }
.res-map-legend .busy::before { background: #6b6b6b; }
.res-map-legend .sel::before { background: var(--gold-deep); }

/* Elementos do salão (referência visual; não clicáveis) */
.res-decor {
  position: absolute;
  display: flex; align-items: center; justify-content: center;
  border: 1px dashed oklch(0.94 0.006 90 / 0.28);
  background: oklch(0.94 0.006 90 / 0.06);
  color: var(--on-noir-soft); font-size: 0.55rem; overflow: hidden;
  pointer-events: none; text-align: center;
}
.res-decor span { padding: 2px 4px; white-space: nowrap; }
.res-decor.kind-wall { background: oklch(0.94 0.006 90 / 0.16); border: none; }
.res-decor.kind-window { background: oklch(0.72 0.06 230 / 0.18); border-color: oklch(0.72 0.08 230 / 0.5); }
.res-decor.kind-door { background: oklch(0.66 0.08 50 / 0.2); border-style: solid; }
.res-decor.kind-stairs { background-image: repeating-linear-gradient(90deg, oklch(0.94 0.006 90 / 0.25) 0 2px, transparent 2px 9px); }
.res-decor.kind-bar { background: oklch(0.6 0.06 300 / 0.2); border-style: solid; }

/* Success toast (overrides global .toast positioning) */
.toast-success {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(0.135 0.004 60 / 0.6);
  padding: var(--space-xl);
}
.toast-success.hidden { display: none !important; }
.toast-success .toast-card {
  background: var(--noir);
  border: 1px solid var(--gold-soft);
  color: var(--on-noir);
  max-width: 440px;
  width: 100%;
  text-align: center;
  padding: clamp(2rem, 5vw, 3rem);
  position: relative;
}
.toast-success .dot {
  display: inline-block;
  width: 8px; height: 8px;
  transform: rotate(45deg);
  background: var(--gold);
  margin-bottom: 1.4rem;
}
.toast-success h4 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.toast-success p {
  color: var(--on-noir-soft);
  line-height: 1.7;
  margin-bottom: 1.8rem;
}
.toast-success .btn-outline {
  border-color: var(--gold-soft);
  color: var(--on-noir);
}
.toast-success .btn-outline:hover {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: var(--noir);
}

@media (max-width: 980px) {
  .reserva-grid { grid-template-columns: 1fr; }
  .reserva .intro { order: -1; }
}
@media (max-width: 560px) {
  .resform .frow,
  .resform .frow-3 { grid-template-columns: 1fr; }
}
