/* Calendar layout and states shared by entry tickets and guided tours. */
.calendar-with-update {
  max-width: 100%;
  margin: 0 auto 1.5rem;
}
.calendar {
  margin: 0 auto 0.75rem;
  border: 1px solid var(--line);
}
.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.month-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.5rem;
}
.month-year-group {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50%;
  font-weight: 700;
}
.month-change {
  width: 44px;
  height: 44px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  border-radius: 5px;
  color: var(--ink);
}
.month-change:hover:not(:disabled) {
  background: #dce4d4;
}
.calendar-body {
  display: flex;
  justify-content: space-between;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.calendar-months {
  display: flex;
  flex-shrink: 0;
  min-width: 28rem;
}
.calendar-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.calendar-week-days,
.calendar-days {
  display: grid;
}
.calendar-week-days > div {
  color: var(--muted);
  text-align: center;
}
.min-price {
  display: block;
}
.availability-freshness {
  margin: 0 12px;
  color: var(--muted);
  text-align: right;
}
.vm-toggle {
  display: block;
  margin-inline: auto;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 4px;
}
.hint-call-to-action {
  text-align: center;
}
/* Accessible date buttons, shared by tickets and tours. */
.calendar-with-update {
  width: 100%;
  margin-top: 18px;
}
.calendar {
  width: 100%;
  max-width: 100%;
  padding: 18px 14px 12px;
  background: var(--paper);
  border-color: var(--line);
  border-radius: 5px;
}
.calendar-header {
  padding: 0 2px;
  margin-bottom: 17px;
}
.calendar-months {
  width: 100%;
  gap: 24px;
}
.calendar-week-days,
.calendar-days {
  width: 100%;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-month {
  min-width: 0;
}
.calendar-days button {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 61px;
  margin: 1px;
  border: 1px solid transparent;
  background: none;
  border-radius: 4px;
  font-size: var(--text-min);
  color: var(--ink);
  padding: 7px 2px;
  line-height: 1.4;
}
.calendar-days button:hover:not(:disabled) {
  background: var(--soft);
  border-color: #acb99c;
}
.calendar-days button:disabled {
  cursor: default;
  color: #72766d;
}
.calendar-days button.past-date {
  color: #8b9085;
}
.calendar-days button.selected-date {
  background: #e7eddc;
  border: 2px solid var(--ink);
}
.calendar-days button.current-date:not(.selected-date) {
  font-weight: 700;
}
.calendar-days > div {
  cursor: default;
  min-height: 0;
  border: 0 !important;
}
.min-price {
  font-size: var(--text-min);
  margin-top: 4px;
  white-space: nowrap;
  padding: 2px 5px;
  border-radius: 3px;
  line-height: 1.4;
  font-weight: 500;
}
.month-year-group {
  font-size: var(--text-min);
}
.month-change {
  background: var(--soft);
  border: 1px solid var(--line);
}
.month-change:disabled {
  opacity: 0.4;
  cursor: default;
}
.calendar-week-days > div {
  font-size: var(--text-min);
  padding-block: 7px 13px;
}
.availability-freshness {
  font-size: var(--text-min);
  padding-top: 7px;
}
.hint-call-to-action {
  font-family: var(--serif);
  font-size: 1.8125rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
}
.vm-toggle {
  min-height: 44px;
  font-size: var(--text-min);
  padding: 10px 20px;
  margin-top: 18px;
}
.closed-row {
  opacity: 1;
}
.price-table tbody th {
  background: none;
  font-weight: 400;
}
.calendar .low,
.min-price.low {
  background: #e3eddd;
  color: #325638;
}
.calendar .middle,
.min-price.middle {
  background: #f3e7d2;
  color: #7b4a20;
}
.calendar .high,
.min-price.high {
  background: #f2ddda;
  color: #833e34;
}
.price-table .hidden-row {
  display: none;
}
@media (max-width: 900px) {
  .calendar-months {
    flex-direction: row;
  }
  .calendar-week-days,
  .calendar-days {
    width: 100%;
  }
  .calendar-days button {
    min-height: 59px;
  }
  .calendar-week-days > div {
    font-size: var(--text-min);
  }
  .availability-freshness {
    text-align: center;
  }
  .calendar-days button:disabled .min-price {
    background: none;
  }
}
@media (max-width: 700px) {
  .calendar {
    padding: 12px 5px 9px;
  }
  .calendar-header {
    padding: 0 6px;
  }
  .calendar-days button {
    font-size: var(--text-min);
    min-height: 58px;
    margin: 1px 0;
    padding: 6px 0;
  }
  .min-price {
    font-size: var(--text-min);
    padding: 2px 3px;
  }
  .month-year-group {
    font-size: var(--text-min);
  }
  .hint-call-to-action {
    font-size: 1.6875rem;
  }
  .availability-freshness {
    font-size: var(--text-min);
  }
  .calendar-week-days > div {
    font-size: var(--text-min);
  }
  .calendar-days {
    width: 100%;
  }
}

html:not(.js) .calendar,
html:not(.js) #dates-toggle {
  display: none;
}

/* Keep prices visible, including when the visitor enlarges the text. */
.calendar-months {
  gap: 16px;
}
.min-price {
  padding-inline: 0;
}
.calendar-hint {
  font-size: var(--text-min);
  text-align: center;
  margin: 14px 0 0;
}
.month-year-group {
  flex-wrap: wrap;
  line-height: 1.4;
}
.calendar-scroll-hint {
  display: none;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: var(--text-min);
}

/* Relative container queries also respond to enlarged text. */
.calendar {
  container: availability / inline-size;
}
@container availability (max-width: 57rem) {
  .calendar-month:last-child,
  .month-year-group:nth-child(3) {
    display: none;
  }
  .month-year-group {
    width: 100%;
  }
}
@container availability (max-width: 28rem) {
  .calendar-scroll-hint {
    display: block;
  }
}
