/* ─────────────────────────────────────────────────────────────────
   Event date-range picker — bottom-sheet calendar, no time selection.
   Mirrors the interaction pattern of the admin date-and-time picker
   (calendar grid + bottom drawer), restyled for the public site and
   with the time-strip portion dropped entirely.
───────────────────────────────────────────────────────────────── */

/* -- Trigger (sits in place of a native date input) --------- */
.dr-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  text-align: left;
  cursor: pointer;
  background: none;
}

.dr-trigger-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--grey);
}

.dr-range-part {
  white-space: nowrap;
}

/* -- Modal ------------------------------------------------------- */
.dr-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.dr-drawer.is-open {
  display: flex;
}

.dr-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.55);
}

.dr-panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--white);
  border: 0.5px solid var(--muted-dark);
  box-shadow: 0 1.5rem 4rem rgba(9, 9, 11, 0.2);
  opacity: 0;
  transform: translateY(0.75rem) scale(0.98);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out);
}

.dr-drawer.is-open .dr-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.dr-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem 1.25rem;
  border-bottom: 0.5px solid var(--muted-dark);
}

.dr-title {
  font-size: var(--font-xxs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.dr-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--grey);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
}

.dr-close:hover {
  color: var(--dark);
}

/* -- Calendar ---------------------------------------------------- */
.dr-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.75rem 0.75rem;
}

.dr-cal-nav button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--grey);
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--t-fast);
}

.dr-cal-nav button:hover {
  color: var(--accent);
}

.dr-cal-month-label {
  font-size: var(--font-xs);
  letter-spacing: 0.04em;
  color: var(--dark);
}

.dr-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 1.75rem;
  margin-bottom: 0.375rem;
}

.dr-cal-weekdays span {
  text-align: center;
  font-size: var(--font-xxxxs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--light-grey);
}

.dr-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 1.75rem;
}

.dr-cal-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 0;
}

.dr-cal-cell.is-in-range {
  background: var(--accent-light);
}

.dr-cal-cell.is-in-range:has(.is-range-start) {
  border-radius: 18px 0 0 18px;
}

.dr-cal-cell.is-in-range:has(.is-range-end) {
  border-radius: 0 18px 18px 0;
}

.dr-cal-cell.is-in-range:has(.is-range-start):has(.is-range-end) {
  border-radius: 18px;
}

.dr-cal-day {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: none;
  font-family: var(--f-body);
  font-size: var(--font-xs);
  font-weight: 300;
  color: var(--dark);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast);
}

.dr-cal-day:hover:not(:disabled) {
  background: var(--off-white);
}

.dr-cal-day:disabled {
  color: var(--light-grey);
  cursor: not-allowed;
}

.dr-cal-day.is-range-start,
.dr-cal-day.is-range-end {
  background: var(--accent);
  color: var(--white);
}

.dr-cal-day.is-range-start:hover,
.dr-cal-day.is-range-end:hover {
  background: var(--dark);
}

/* -- Hint ------------------------------------------------------ */
.dr-hint {
  min-height: 1em;
  padding: 0.75rem 1.75rem 0;
  font-size: var(--font-xxxs);
  color: var(--grey);
}

/* -- Footer -------------------------------------------------- */
.dr-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.5rem 1.75rem;
}

.dr-clear,
.dr-confirm {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--f-body);
  font-size: var(--font-xxs);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.dr-clear {
  color: var(--grey);
  transition: color var(--t-fast);
}

.dr-clear:hover {
  color: var(--dark);
}

.dr-confirm {
  color: var(--accent);
  transition: color var(--t-fast);
}

.dr-confirm:hover:not(:disabled) {
  color: var(--dark);
}

.dr-confirm:disabled {
  color: var(--light-grey);
  cursor: not-allowed;
}
