/* The tour time picker (tour-picker.js), shared by the tour booking page
 * (tour.html) and Check availability's answer (inquiry.html): the month
 * calendar, open days in light purple and the chosen one filled, then that
 * day's times in a column beside it, or under it when there isn't room (a
 * phone). Every class starts tp-, so it sits on either page unchanged. */

.tp { color: #1B2545; }
.tp [hidden] { display: none !important; }
.tp-body { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.tp-cal { flex: 1 1 360px; min-width: 0; }
.tp-times { flex: 1 1 220px; min-width: 0; }
.tp-h { margin: 0; font-size: 21px; line-height: 1.25; font-weight: 700; }
.tp-error {
  margin: 14px 0 0; padding: 10px 14px; border-radius: 8px;
  background: #F8E9E6; color: #B25646; font-size: 14.5px; line-height: 1.45;
}

.tp-month { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 20px 0 12px; }
.tp-month-name { min-width: 150px; text-align: center; font-size: 16px; font-weight: 600; }
.tp-arr {
  width: 36px; height: 36px; border-radius: 50%; border: 0; padding: 0;
  background: #EEEAFD; color: #5A3FCC; font: inherit; font-size: 22px; line-height: 1; cursor: pointer;
}
.tp-arr:hover:not(:disabled) { background: #E0D9FB; }
.tp-arr:disabled { background: none; color: #C9CCD8; cursor: default; }

.tp-grid {
  display: grid; grid-template-columns: repeat(7, minmax(0, 46px));
  gap: 8px 8px; justify-content: center; justify-items: center;
}
.tp-dow {
  font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: #5A6078;
  padding-bottom: 2px; text-align: center;
}
.tp-d {
  position: relative; width: 100%; max-width: 46px; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; padding: 0; background: none;
  font: inherit; font-size: 15px; color: #A3A8B8;
}
button.tp-d { cursor: pointer; }
.tp-open { background: #EEEAFD; color: #5A3FCC; font-weight: 700; }
.tp-open:hover { background: #E0D9FB; }
.tp-sel, .tp-sel:hover { background: #6B4EE6; color: #FFFFFF; }
.tp-today::after {
  content: ""; position: absolute; bottom: 5px; left: 50%;
  width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: currentColor;
}

.tp-zone { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13.5px; color: #5A6078; line-height: 1.4; }
.tp-zone b { color: #1B2545; font-weight: 600; }
.tp-globe { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #5A6078; stroke-width: 1.7; stroke-linecap: round; }
.tp-empty {
  margin: 18px 0 0; padding: 14px 16px; border-radius: 10px; background: #F6F4FE; border: 1px solid #E4DEFB;
  font-size: 15px; line-height: 1.5; color: #3C4460;
}

.tp-day { margin: 2px 0 14px; font-size: 16px; font-weight: 400; }
.tp-list { display: flex; flex-direction: column; gap: 10px; }
.tp-slot {
  height: 50px; width: 100%; border: 1px solid #B9AEF3; border-radius: 6px; background: #FFFFFF;
  color: #5A3FCC; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
}
.tp-slot:hover:not(:disabled) { border: 2px solid #6B4EE6; }
.tp-pick { display: flex; gap: 8px; }
.tp-chosen, .tp-next {
  flex: 1 1 0; min-width: 0; height: 50px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: 16px; font-weight: 700; color: #FFFFFF;
}
.tp-chosen { background: #5A6078; }
.tp-next { border: 0; background: #6B4EE6; cursor: pointer; }
.tp-next:hover:not(:disabled) { background: #5A3FCC; }
.tp-next:disabled, .tp-slot:disabled { opacity: .65; cursor: default; }
.tp button:focus-visible { outline: 2px solid #6B4EE6; outline-offset: 2px; }

/* Beside the calendar on a wide screen, the times scroll in a column as
   tall as the calendar; under it (a phone), they run their full length. */
@media (min-width: 700px) {
  .tp-list { max-height: 430px; overflow-y: auto; padding: 2px 4px 2px 2px; }
}
@media (max-width: 420px) {
  .tp-grid { gap: 6px 4px; }
  .tp-month { gap: 16px; }
}
@media print {
  .tp { display: none; }
}
