/* Date picker (property page and the Review and continue sheet) -------------------- */
.dates-section {
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.dates-section h2 {
  margin: 0;
}
.dates-range {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}
.dates-room {
  display: grid;
  gap: 6px;
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
}
.dates-room select {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid #c9c9c2;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.cal {
  position: relative;
  max-width: 420px;
  margin-top: 22px;
}
.cal-months {
  display: grid;
  grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr));
  gap: 0 44px;
}
.cal-title {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 44px;
  text-align: center;
}
.cal-prev,
.cal-next {
  position: absolute;
  top: 0;
  z-index: 1;
}
.cal-prev {
  left: 0;
}
.cal-next {
  right: 0;
}
.cal-nav {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.cal-nav:hover:not(:disabled) {
  background: #f2f2f0;
}
.cal-nav:disabled {
  color: #c4c4be;
  cursor: default;
}
.cal-week,
.cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.cal-week span {
  padding: 8px 0;
  color: #4a4a46;
  font-size: 14px;
  text-align: center;
}
.cal-days {
  row-gap: 4px;
}
.cal-day {
  position: relative;
  display: grid;
  place-items: center;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #1d1d1b;
  font: inherit;
  font-size: 17px;
  cursor: pointer;
}
.cal-day:hover:not(.is-off):not(.is-start):not(.is-end) {
  box-shadow: inset 0 0 0 1.5px #1d1d1b;
  border-radius: 50%;
}
.cal-day.is-off {
  color: #aaa9a3;
  text-decoration: line-through;
  cursor: default;
}
.cal-day.is-between,
.cal-day.is-start,
.cal-day.is-end {
  background: #f4f4f1;
}
.cal-day.is-start {
  border-radius: 24px 0 0 24px;
}
.cal-day.is-end {
  border-radius: 0 24px 24px 0;
}
.cal-day.is-start.is-end {
  border-radius: 24px;
}
.cal-day.is-start::before,
.cal-day.is-end::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  border-radius: 50%;
  background: #1d1d1b;
}
.cal-day.is-start,
.cal-day.is-end {
  color: #fff;
  text-decoration: none;
  z-index: 0;
}
.cal-day span {
  position: relative;
  z-index: 1;
}
.cal-day:focus-visible {
  outline: 2px solid #1d1d1b;
  outline-offset: 2px;
}
.dates-weekend {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.cal-reset {
  margin-top: 16px;
  padding: 10px 4px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.cal-reset[hidden] {
  display: none;
}
@media (min-width: 900px) {
  .cal {
    max-width: 720px;
  }
}
@media (min-width: 769px) {
  /* On a large screen the sheets are centred dialogs rather than bottom sheets. */
  dialog.sheet {
    margin: auto;
    border-radius: 24px;
    max-height: min(86vh, 760px);
  }
  dialog.sheet[open] {
    animation: sheet-pop 0.22s ease;
  }
}
@keyframes sheet-pop {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
  }
}
@media (max-width: 700px) {
  .cal {
    max-width: none;
  }
  .dates-section h2 {
    font-size: 22px;
  }
}

/* Bottom sheets ------------------------------------------------------------------ */
dialog.sheet {
  width: 100%;
  max-width: 640px;
  max-height: min(88vh, 760px);
  max-height: min(88dvh, 760px);
  margin: auto auto 0;
  padding: 0;
  border: 0;
  border-radius: 24px 24px 0 0;
  background: #fff;
  color: #1d1d1b;
  overflow: hidden;
}
dialog.sheet:focus {
  outline: none;
}
.sheet-close:focus:not(:focus-visible) {
  outline: none;
}
dialog.sheet[open] {
  display: flex;
  flex-direction: column;
  animation: sheet-up 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
dialog.sheet::backdrop {
  background: #00000066;
  animation: sheet-fade 0.2s ease;
}
@keyframes sheet-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes sheet-fade {
  from {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  dialog.sheet[open],
  dialog.sheet::backdrop {
    animation: none;
  }
}
.sheet-top {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 0 64px;
  border-bottom: 1px solid #e6e6e1;
}
.sheet-top h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.sheet-close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: inherit;
  cursor: pointer;
}
.sheet-close:hover {
  background: #f2f2f0;
}
.sheet-close .icon {
  width: 20px;
  height: 20px;
}
.sheet-body {
  /* `auto`, not 0: iPhone Safari collapses a 0-based body in a dialog with no set height. */
  flex: 1 1 auto;
  min-height: min(320px, 46vh);
  padding: 0 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid #e6e6e1;
  background: #fff;
}
.sheet-link {
  padding: 12px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.sheet-save {
  min-width: 140px;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 12px;
  background: #1d1d1b;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 650;
  cursor: pointer;
}
.sheet-save:disabled {
  background: #c9c9c4;
  cursor: default;
}
.sheet-calendar .cal-weekbar {
  position: sticky;
  top: 0;
  z-index: 2;
  padding-top: 6px;
  background: #fff;
}
.sheet-calendar .cal-month {
  padding: 18px 0 6px;
}
.sheet-calendar .cal-month h3 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 650;
}
.sheet-notes p {
  margin: 20px 0 0;
  color: #4a4a46;
  font-size: 16px;
  line-height: 1.45;
}
.sheet-notes + .stepper-list {
  margin-top: 8px;
}
.stepper-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}
.stepper-row h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.stepper-row p {
  margin: 2px 0 0;
  color: #6b6b66;
  font-size: 15px;
}
.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
}
.stepper output {
  min-width: 28px;
  font-size: 18px;
  text-align: center;
}
.stepper button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #efefec;
  color: #1d1d1b;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.stepper button:disabled {
  color: #b7b7b1;
  cursor: default;
}
