/* Date picker for the enquiry form's dd/mm/yyyy fields — src/datepicker.js.
   Same palette and the same state marks as the availability calendar: a dot
   under departing days, a hatch across closed ones, so the two read as one. */

.dp-host { position: relative; }

.dp {
  position: absolute;
  z-index: 40;
  left: 0; right: 0;
  top: calc(100% + 6px);
  max-width: 340px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--dark-outline);
  border-radius: 8px;
  box-shadow: 0 24px 50px -20px var(--shaddow), 0 2px 6px rgba(0, 0, 0, .06);
}
.dp[hidden] { display: none; }
/* Clear the fixed header and, on a phone, the fixed call bar when the popup is
   scrolled into view (datepicker.js, open). */
.dp { scroll-margin: calc(var(--nav-h) + 12px) 0 16px; }
@media (max-width: 819px) { .dp { scroll-margin-bottom: 96px; } }
/* Under the second field when it is the "to" date, where there is room. */
@media (min-width: 480px) { .dp.is-to { left: auto; } }

.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dp-title { font-weight: 700; font-size: 15px; }
.dp-step {
  width: 32px; height: 32px;
  border: 1px solid var(--dark-outline);
  border-radius: var(--radius);
  background: #fff;
  color: var(--black);
  font-size: 18px; line-height: 1;
  cursor: pointer;
}
.dp-step:hover:not(:disabled) { border-color: var(--royal-blue); color: var(--royal-blue); }
.dp-step:disabled { opacity: .3; cursor: default; }

.dp-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.dp-grid th { font-size: 11px; font-weight: 500; letter-spacing: 1px; color: var(--body-display); padding-bottom: 6px; }
.dp-grid th abbr { text-decoration: none; border: 0; }
.dp-grid td { padding: 1px; text-align: center; }

.dp-day {
  position: relative;
  width: 100%;
  height: 36px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: none;
  font: inherit; font-size: 14px;
  color: var(--black);
  cursor: pointer;
}
.dp-day:hover:not(:disabled) { border-color: var(--royal-blue); }
.dp-day:focus-visible { outline: 2px solid var(--royal-blue); outline-offset: 1px; }
.dp-day:disabled { color: var(--body-display); opacity: .3; cursor: default; }
.dp-day.is-today { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.dp-day.is-departing, .dp-day.is-full { background: var(--grey-background); border-color: var(--dark-outline); font-weight: 600; }
.dp-day.is-departing::after, .dp-day.is-full::after {
  content: '';
  position: absolute; left: 50%; bottom: 4px;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%;
  background: var(--royal-blue);
}
.dp-day.is-full::after { background: var(--teal); }
.dp-day.is-closed {
  color: var(--teal);
  text-decoration: line-through;
  background: repeating-linear-gradient(-45deg, transparent 0 3px, rgba(160, 134, 116, .28) 3px 5px);
}

.dp-day.is-chosen,
.dp-day.is-chosen:hover { background: var(--royal-blue); border-color: var(--royal-blue); color: #fff; }
.dp-day.is-chosen::after { background: #fff; }

.dp-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.dp-hint { font-size: 12px; color: var(--body-display); }
.dp-close {
  border: 0; background: none; padding: 4px 2px;
  font: inherit; font-size: 13px; font-weight: 500;
  color: var(--royal-blue);
  cursor: pointer;
}

@media (max-width: 479px) {
  .dp { max-width: none; }
  .dp-day { height: 40px; }
}
