/* Scoped styles for the optional booking calendar enhancement. */
.booking-date-enhanced {
  min-height: 54px;
  cursor: pointer;
  padding-right: 3.25rem;
  caret-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a96e' stroke-width='1.7' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M7 3v4m10-4v4M3 11h18'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 21px;
}
.booking-calendar-selection {
  color: var(--text-muted, #b0b0b8);
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.78rem;
  line-height: 1.55;
  margin: 3px 0 0;
}
dialog.booking-calendar {
  box-sizing: border-box;
  color: #fff;
  background: #19191c;
  width: min(420px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100svh - 32px);
  margin: auto;
  padding: 24px;
  border: 1px solid #626268;
  border-radius: 22px;
  box-shadow: 0 24px 90px #0009;
  overflow: auto;
  font-family: var(--font-body, 'Inter', sans-serif);
  color-scheme: dark;
}
dialog.booking-calendar:not([open]) { display: none; }
dialog.booking-calendar::backdrop { background: rgb(0 0 0 / 68%); }
.booking-calendar *, .booking-calendar *::before, .booking-calendar *::after { box-sizing: border-box; }
.booking-calendar button { font: inherit; cursor: pointer; touch-action: manipulation; }
.booking-calendar button:focus-visible { outline: 3px solid #e2bd79; outline-offset: 3px; }
.booking-calendar button:disabled { cursor: default; }
.booking-calendar-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.booking-calendar-title {
  font-family: var(--font-heading, 'Cormorant Garamond', Georgia, serif);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}
.booking-calendar-close, .booking-calendar-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #77777f;
  color: #fff;
  background: transparent;
  padding: 0;
}
.booking-calendar-close { font-size: 1.65rem !important; }
.booking-calendar-nav { font-size: 1.8rem !important; }
.booking-calendar-nav:disabled { color: #737379; border-color: #45454b; }
.booking-calendar-help { margin: 10px 0 20px; color: #c1c1c9; font-size: 0.78rem; line-height: 1.55; }
.booking-calendar-navigation { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.booking-calendar-month { font: 600 0.98rem/1.35 var(--font-body, 'Inter', sans-serif); text-align: center; margin: 0; }
.booking-calendar-grid { table-layout: fixed; border-collapse: separate; border-spacing: 3px 5px; width: 100%; margin: 0; }
.booking-calendar-grid th { color: #c1c1c9; text-align: center; font-size: 0.69rem; font-weight: 500; padding: 0 0 6px; }
.booking-calendar-grid td { padding: 0; text-align: center; }
.booking-calendar-day {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  width: 100%;
  aspect-ratio: 1;
  min-height: 34px;
  padding: 0;
  color: #f5f5f8;
  background: transparent;
  font-size: 0.83rem !important;
  font-weight: 500 !important;
}
.booking-calendar-day:not(:disabled):hover, .booking-calendar-nav:not(:disabled):hover, .booking-calendar-close:hover { background: #ffffff17; }
.booking-calendar-day:disabled { color: #6e6e76; text-decoration: line-through; text-decoration-thickness: 1px; }
.booking-calendar-day.is-today { border-color: #c9a96e; }
.booking-calendar-day.is-selected, .booking-calendar-day.is-selected:not(:disabled):hover { color: #17171a; background: #d8b77a; border-color: #d8b77a; }
.booking-calendar-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid #47474f; }
.booking-calendar-today, .booking-calendar-clear { min-height: 44px; border: 1px solid #77777f; border-radius: 10px; padding: 9px 16px; background: transparent; color: #fff; font-size: 0.8rem !important; }
.booking-calendar-today { background: #d8b77a; color: #17171a; border-color: #d8b77a; }
.booking-calendar-clear:disabled { color: #77777f; border-color: #45454b; }
.booking-calendar-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 380px) {
  dialog.booking-calendar { padding: 18px 14px; width: calc(100vw - 20px); max-width: calc(100vw - 20px); }
  .booking-calendar-title { font-size: 1.3rem; }
  .booking-calendar-grid { border-spacing: 2px 4px; }
}
@media (forced-colors: active) {
  .booking-calendar-day.is-selected { border: 2px solid Highlight; color: HighlightText; background: Highlight; forced-color-adjust: none; }
  .booking-calendar-day:disabled { color: GrayText; }
  .booking-calendar-day.is-today { border-color: CanvasText; }
}
