.has-room-calendar .booking-heading > p {
  display: none;
}

.has-room-calendar .booking-back-link {
  margin-bottom: 4px;
}

.has-room-calendar .booking-heading h1 {
  margin: 3px 0 0;
  font-size: clamp(32px, 3.7vw, 48px);
}

.has-room-calendar .booking-progress {
  margin: 20px 0 24px;
}

.has-room-calendar .booking-progress button {
  min-height: 53px;
  padding-block: 9px;
}

.booking-step:has(.stay-calendar:not([hidden])) > .step-heading {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stay-calendar {
  --stay-copper: #965022;
  --stay-muted: #695e52;
  --stay-wash: #f5e8d8;
  --stay-rule: #e5dace;
  margin: 0 0 25px;
  border-bottom: 1px solid var(--stay-rule);
  padding-bottom: 18px;
}

.stay-calendar[hidden],
.stay-calendar [hidden] {
  display: none !important;
}

#change-stay-room[hidden] {
  display: none;
}

.booking-page .stay-calendar-heading {
  margin: 0;
  color: var(--booking-ink);
  font: 500 clamp(28px, 3vw, 39px)/1.05 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -.025em;
}

.stay-calendar-instruction {
  margin: 7px 0 18px;
  color: var(--stay-muted);
  font-size: 14px;
  line-height: 1.5;
}

.stay-calendar-nav {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  padding: 10px 0 7px;
  border-top: 1px solid var(--stay-rule);
}

.booking-page .stay-calendar-month {
  margin: 0;
  font: 500 clamp(22px, 2.1vw, 27px)/1.2 'Cormorant Garamond', Georgia, serif;
  text-align: center;
}

.stay-calendar-nav button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--stay-rule);
  border-radius: 50%;
  color: var(--booking-ink);
  background: transparent;
  font-size: 18px;
}

.stay-calendar-nav button:disabled {
  border-color: transparent;
  color: #b5aba2;
  cursor: default;
}

.stay-calendar-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 0;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.stay-calendar-grid th {
  padding: 8px 0;
  border-bottom: 1px solid var(--stay-rule);
  color: var(--stay-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.stay-calendar-grid td {
  padding: 2px 0;
  border-bottom: 1px solid #f3ede6;
  vertical-align: middle;
}

.stay-calendar-grid tr:last-child td {
  border-bottom: 0;
}

.stay-calendar-day {
  display: inline-grid;
  place-items: center;
  position: relative;
  width: 100%;
  height: 43px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--booking-ink);
  font: 500 15px/1 'Manrope', Arial, sans-serif;
  font-variant-numeric: tabular-nums;
}

.stay-calendar-day.is-past,
.stay-calendar-day.is-unreachable,
.stay-calendar-day[aria-disabled="true"] {
  color: #9c958f;
  cursor: default;
}

.stay-calendar-day.is-booked {
  color: #79736e;
  background: #eeedeb;
  text-decoration: line-through;
}

.stay-calendar-day.is-checkout-only {
  color: var(--stay-copper);
  background: linear-gradient(125deg, #fffaf3 49%, #eae6e0 50%);
  box-shadow: inset 0 0 0 1px #ccb7a2;
  text-decoration: none;
}

.stay-calendar-day.is-range:not(.is-booked) {
  background: var(--stay-wash);
  color: #603b24;
}

.stay-calendar-day.is-arrival,
.stay-calendar-day.is-departure {
  background: var(--stay-copper);
  color: white;
  box-shadow: none;
  text-decoration: none;
}

.stay-calendar-day.is-arrival {
  border-radius: 22px 0 0 22px;
}

.stay-calendar-day.is-departure {
  border-radius: 0 22px 22px 0;
}

.stay-calendar-day.is-today::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

.stay-calendar button:focus-visible {
  z-index: 1;
  outline: 2px solid var(--booking-ink);
  outline-offset: -3px;
}

.stay-calendar-day:is(.is-arrival, .is-departure):focus-visible {
  outline-color: white;
}

@media (hover: hover) {
  .stay-calendar-nav button:hover:enabled,
  .stay-calendar-day:not([aria-disabled="true"]):not(:disabled):not(.is-arrival):not(.is-departure):hover {
    box-shadow: inset 0 0 0 1px var(--stay-copper);
    color: var(--stay-copper);
  }
}

.stay-calendar-legend,
.stay-calendar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 18px;
}

.stay-calendar-legend {
  margin-top: 10px;
  color: var(--stay-muted);
  font-size: 12px;
}

.stay-calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stay-calendar-legend-booked::before,
.stay-calendar-legend-checkout::before {
  content: '';
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: none;
  border: 1px solid #bfb8b1;
  background: linear-gradient(0deg, #eeedeb 44%, #918a83 45% 55%, #eeedeb 56%);
}

.stay-calendar-legend-checkout::before {
  border-color: #b2977f;
  background: linear-gradient(125deg, #fffaf3 49%, #d9d4cd 50%);
}

.stay-calendar-actions {
  justify-content: flex-end;
}

.stay-calendar-actions button {
  padding: 7px 0;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: var(--stay-copper);
  font: 600 12px/1.5 'Manrope', Arial, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.stay-calendar:not([hidden]) + .booking-date-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.stay-calendar:not([hidden]) + .booking-date-fields input {
  height: 44px;
  min-height: 44px;
  padding: 7px 9px;
  font-size: 14px;
}

@media (max-width: 800px) {
  .has-room-calendar .booking-layout:has(.booking-step[data-step="1"]:not([hidden])) .booking-summary {
    order: 1;
  }

  .has-room-calendar .booking-progress {
    margin: 14px 0;
  }
}

@media (max-width: 520px) {
  .has-room-calendar .booking-main {
    padding-top: 16px;
  }

  .has-room-calendar .booking-progress button {
    flex-direction: row;
    gap: 5px;
    min-height: 50px;
    padding: 9px 2px;
    font-size: 11px;
  }

  .has-room-calendar .step-number {
    width: 21px;
    height: 21px;
    font-size: 11px;
  }

  .booking-step:has(.stay-calendar:not([hidden])) {
    padding: 18px 12px;
  }

  .stay-calendar-nav {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
  }

  .stay-calendar-nav button {
    width: 40px;
    height: 40px;
  }

  .stay-calendar-day {
    height: 40px;
    font-size: 14px;
  }

  .stay-calendar:not([hidden]) + .booking-date-fields input {
    font-size: 16px;
    max-width: 100%;
  }
}

@media (max-width: 365px) {
  .stay-calendar:not([hidden]) + .booking-date-fields {
    grid-template-columns: 1fr;
  }
}
