/* booking.css — calendar UX similar a cal.com / crislorente */
.booking-section {
  padding: 72px 16px;
  background: var(--ivory, #F8F3ED);
}
.booking-container {
  max-width: 920px;
  margin: 0 auto;
  background: var(--ivory, #F8F3ED);
  border: 1px solid var(--border, #DDD0C2);
  border-radius: 20px;
  padding: 36px 32px;
  box-sizing: border-box;
  box-shadow:
    0 1px 1px rgba(42, 31, 20, 0.03),
    0 6px 14px rgba(42, 31, 20, 0.05),
    0 18px 40px rgba(42, 31, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}
.booking-header { text-align: center; margin-bottom: 24px; }
.booking-header h2 {
  font-family: var(--font-display, "Playfair Display", serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 8px;
}
.booking-subtitle { color: #6b6b6b; margin: 0; }
.booking-scarcity-note {
  font-size: 0.875rem;
  font-style: italic;
  color: var(--ink-soft, #6b6357);
  margin: 6px 0 0;
}

.booking-body[hidden],
.booking-loading[hidden] { display: none; }

.booking-body {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 720px) {
  .booking-body { grid-template-columns: 1fr; gap: 16px; }
}

.booking-month-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.booking-month-label {
  font-size: 1.1rem; font-weight: 600; margin: 0; text-transform: capitalize;
}
.booking-nav-btn {
  background: transparent; border: 1px solid #d8c9a3; border-radius: 8px;
  padding: 6px 12px; cursor: pointer; color: #b88a3a;
}
.booking-nav-btn:hover { background: #f6efde; }

.booking-weekdays {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px; text-align: center; font-size: 0.78rem; color: #888;
  margin-bottom: 6px;
}
.booking-days {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
}
.booking-day {
  aspect-ratio: 1 / 1;
  border: 0; background: transparent; border-radius: 10px;
  font-size: 0.95rem; cursor: pointer; color: #333;
  display: flex; align-items: center; justify-content: center;
}
.booking-day[disabled] { color: #c7c7c7; cursor: not-allowed; }
.booking-day.has-slots { background: #f6efde; color: #1a1a1a; font-weight: 600; }
.booking-day.has-slots:hover { background: #ecdcb5; }
.booking-day.selected { background: #b88a3a; color: #fff; }
.booking-day.today { position: relative; }
.booking-day.today::after {
  content: "";
  position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: #b88a3a;
}
.booking-day.today.selected::after { background: #fff; }

.booking-slots h4 { margin: 0 0 12px; font-size: 1rem; color: #444; }
.booking-slot-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  max-height: 320px; overflow-y: auto;
}
.booking-slot {
  background: var(--ivory, #F8F3ED); border: 1px solid var(--border, #DDD0C2); color: #1a1a1a;
  padding: 10px 8px; border-radius: 8px; font-size: 0.95rem; cursor: pointer;
  text-align: center;
}
.booking-slot:hover { background: #b88a3a; color: #fff; border-color: #b88a3a; }
.booking-no-slots { color: #888; font-size: 0.9rem; }

.booking-loading {
  display: flex; justify-content: center; padding: 48px 0;
}
.booking-spinner {
  width: 28px; height: 28px;
  border: 3px solid #ecdcb5; border-top-color: #b88a3a;
  border-radius: 50%; animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.booking-error {
  text-align: center; padding: 24px;
}
.booking-fallback-cta {
  display: inline-block; margin-top: 12px;
  background: #25d366; color: #fff; padding: 10px 18px;
  border-radius: 8px; text-decoration: none; font-weight: 600;
}

.booking-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: 460px; width: min(92vw, 460px);
  max-height: min(90vh, 640px);
  border: 0; border-radius: 18px; padding: 32px 28px;
  background: #FAF7F0;
  box-shadow: 0 24px 64px rgba(48, 30, 10, 0.22);
  overflow: auto;
  overflow-x: hidden;
}
.booking-modal::backdrop {
  background: rgba(36, 24, 8, 0.55);
  backdrop-filter: blur(2px);
}
.booking-form { display: grid; gap: 14px; min-width: 0; }
.booking-form h3 {
  margin: 0 0 4px;
  font-family: var(--font-display, "Cormorant Garamond", "Playfair Display", serif);
  font-size: 1.5rem; font-weight: 600;
  color: #1a1208; letter-spacing: 0.01em;
  text-transform: capitalize;
}
.booking-form label {
  display: grid; gap: 6px; min-width: 0;
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-light, #8a7a5a);
}
.booking-form input, .booking-form select, .booking-form textarea {
  width: 100%; max-width: 100%; box-sizing: border-box;
  background: var(--ivory, #f5ede0); border: 1px solid var(--border, #e2d3a8);
  padding: 11px 14px; font-size: 14px;
  font-family: 'Jost', sans-serif; color: var(--text, #1a1208);
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color 0.2s;
}
.booking-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23B87254' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 36px; cursor: pointer;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus {
  border-color: var(--terra, #b87254);
}
.booking-form textarea { resize: vertical; min-height: 56px; line-height: 1.6; }
.booking-form-actions {
  display: flex; gap: 10px; align-items: center; margin-top: 10px;
}
.booking-btn-cancel {
  background: transparent; border: 1px solid #d8c9a3;
  border-radius: 10px; padding: 11px 16px; cursor: pointer;
  color: #6b5a3a; font-size: 1rem; line-height: 1;
  transition: background .15s, border-color .15s;
}
.booking-btn-cancel:hover { background: #f6efde; border-color: #b88a3a; }
.booking-btn-submit {
  flex: 1;
  background: #25d366; color: #fff; border: 0;
  border-radius: 10px; padding: 12px 20px; cursor: pointer;
  font-weight: 600; font-size: 0.98rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.32);
  transition: transform .12s, box-shadow .12s, background .12s;
}
.booking-btn-submit:hover { background: #1fb756; box-shadow: 0 6px 20px rgba(37, 211, 102, 0.38); }
.booking-btn-submit:active { transform: translateY(1px); }
.booking-success {
  text-align: center; color: #2e7d32;
  font-family: var(--font-display, "Cormorant Garamond", serif);
  font-size: 1.2rem; padding: 32px 0;
}
