/* Shared styles for the booking system: schedule grid, booking modal,
   cancellation page and admin dashboard. Palette matches the site's
   original design: #F3EADC background, #3D3A37 text, pink/green/blue accents. */

/* .page-card .booking-submit below sets display:inline-flex, which otherwise
   outranks the UA [hidden] rule and keeps hidden buttons visible. */
[hidden] { display: none !important; }

.schedule-status {
  text-align: center;
  font-size: 14px;
  color: #8A847E;
  margin-bottom: 24px;
}
.schedule-status.is-hidden { display: none; }
.schedule-status.is-error { color: #A9515C; }

/* ---- schedule grid (rendered by js/schedule.js) ---- */
.day-card {
  background: rgba(255,255,255,0.75);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(61,58,55,0.05);
}
.day-title {
  margin: 0 0 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
}
.day-slots {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.slot-card {
  background: #FFFFFF;
  border: 1px solid rgba(61,58,55,0.07);
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.slot-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.slot-title { font-size: 16px; font-weight: 700; }
.slot-time { font-size: 13px; font-weight: 600; color: #6B6560; }
.slot-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.slot-badge {
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}
.slot-btn {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 999px;
  color: #3D3A37;
  min-height: 40px;
  transition: filter 0.15s ease;
}
.slot-btn:hover:not(:disabled) { filter: brightness(0.96); }
.slot-btn:disabled { cursor: not-allowed; opacity: 0.7; }
.slot-date { font-size: 12px; color: #8A847E; }

/* ---- booking modal ---- */
dialog.booking-modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  max-width: 420px;
  width: calc(100% - 48px);
  box-shadow: 0 24px 60px rgba(24,20,18,0.25);
  font-family: 'Manrope', sans-serif;
  color: #3D3A37;
}
dialog.booking-modal::backdrop {
  background: rgba(24,20,18,0.45);
  backdrop-filter: blur(2px);
}
.booking-form, .booking-result {
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.booking-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #8A847E;
  cursor: pointer;
  padding: 4px;
}
.booking-close:hover { color: #3D3A37; }
.booking-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9DB894;
}
.booking-form h3, .booking-result h3 {
  margin: 0 0 6px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
}
.booking-slot-meta {
  margin: 0 0 20px;
  font-size: 14px;
  color: #6B6560;
}
.booking-label {
  font-size: 13px;
  font-weight: 600;
  color: #55504B;
  margin: 12px 0 6px;
}
.booking-input {
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(61,58,55,0.16);
  background: #FBF9F6;
  color: #3D3A37;
}
.booking-input:focus {
  outline: none;
  border-color: #C88799;
  background: #FFFFFF;
}
.booking-error {
  margin: 14px 0 0;
  font-size: 13px;
  color: #A9515C;
  background: #F6E4E9;
  padding: 10px 14px;
  border-radius: 10px;
}
.booking-submit {
  margin-top: 22px;
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 13px 20px;
  border-radius: 999px;
  background: #F3DDE3;
  color: #3D3A37;
  min-height: 46px;
  transition: background 0.15s ease;
}
.booking-submit:hover { background: #EBCBD5; }
.booking-submit:disabled { opacity: 0.6; cursor: wait; }

.booking-result { text-align: center; align-items: center; }
.booking-result-icon {
  font-size: 34px;
  margin: 0 0 6px;
  color: #5A7052;
}
.booking-result.is-waitlist .booking-result-icon { color: #4F6478; }
.booking-result-text { font-size: 14px; line-height: 1.6; color: #55504B; }

/* ---- lemondás / cancel page ---- */
.page-card-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.page-card {
  max-width: 460px;
  width: 100%;
  background: #FFFFFF;
  border-radius: 24px;
  padding: 40px 32px;
  box-shadow: 0 10px 30px rgba(61,58,55,0.08);
  text-align: center;
}
.page-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0 0 14px;
}
.page-card p { font-size: 15px; line-height: 1.6; color: #55504B; }
.page-card .booking-submit { display: inline-flex; align-items: center; justify-content: center; }
.page-card .booking-error { text-align: left; }

/* ---- admin ---- */
.admin-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.admin-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  margin: 0;
}
.admin-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 8px 24px rgba(61,58,55,0.06);
  margin-bottom: 28px;
}
.admin-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 16px;
}
.admin-login {
  max-width: 360px;
  margin: 96px auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(61,58,55,0.08);
}
.admin-table th { color: #8A847E; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.admin-badge.confirmed { background: #E3EDE0; color: #5A7052; }
.admin-badge.waitlisted { background: #DEE8F1; color: #4F6478; }
.admin-badge.cancelled { background: #EFE9E4; color: #8A847E; }
.admin-form-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-form-row .booking-label { margin: 0 0 6px; }
.admin-form-field { display: flex; flex-direction: column; flex: 1; min-width: 140px; }
.admin-btn-sm {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  padding: 7px 14px;
  border-radius: 999px;
  background: #F6E4E9;
  color: #7C5A66;
}
.admin-btn-sm:hover { background: #EFD3DA; }
.admin-btn-sm:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-select, .admin-input {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(61,58,55,0.16);
  background: #FBF9F6;
  color: #3D3A37;
}
.admin-empty { color: #8A847E; font-size: 14px; }
.admin-logout {
  font-size: 13px;
  font-weight: 600;
  color: #6B6560;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
}
