/* Date range calendar. Colours follow the page: --dr-accent can be overridden. */
.dr { --dr-accent: var(--brown, var(--brand, #4b2121)); --dr-soft: var(--beige, #f2e9e1); position: relative; grid-column: span 2; min-width: 0; text-align: left; }
.dr-fields { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #cdbfb2; border-radius: 12px; background: #fff; overflow: hidden; }
.dr-field { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; min-height: 62px; padding: 10px 18px; border: 0; background: transparent; color: #181310; font: inherit; text-align: left; cursor: pointer; }
.dr-field + .dr-field { border-left: 1px solid #cdbfb2; }
.dr-field:hover { background: #faf6f1; }
.dr-field.active { background: #fff; box-shadow: inset 0 0 0 2px var(--dr-accent); border-radius: 11px; }
.dr-name { font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.dr-value { font-size: 1rem; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.dr-value.empty { color: #75685d; }
.dr-warning { margin: 6px 2px 0; color: #a52a1d; font-size: .85rem; }
.dr-warning:empty { display: none; }

.dr-panel { position: absolute; z-index: 60; top: calc(100% + 10px); left: 0; width: 660px; max-width: calc(100vw - 24px); padding: 20px 24px 16px; background: #fff; color: #181310; border: 1px solid #e5dcd3; border-radius: 20px; box-shadow: 0 24px 60px rgb(40 22 8 / 22%); }
.dr-panel.to-right { left: auto; right: 0; }
.dr-panel.up { top: auto; bottom: calc(100% + 10px); }
.dr-panel[hidden] { display: none; }
.dr-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.dr-head strong { display: block; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.dr-head span { display: block; min-height: 1.4em; color: #6f6259; font-size: .9rem; }
.dr-arrows { display: flex; gap: 8px; }
.dr-nav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0 0 3px; border: 1px solid #ddd2c8; border-radius: 50%; background: #fff; color: inherit; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.dr-nav:disabled { opacity: .3; cursor: default; }
.dr-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; }
.dr-title { margin-bottom: 8px; font-weight: 600; text-align: center; text-transform: capitalize; }
.dr-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); row-gap: 2px; }
.dr-week { padding: 4px 0; color: #75685d; font-size: .75rem; text-align: center; text-transform: capitalize; }
.dr-day { position: relative; isolation: isolate; aspect-ratio: 1; min-width: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: inherit; font-family: inherit; font-size: .9rem; font-weight: 500; line-height: 1; cursor: pointer; }
.dr-day:not(:disabled):hover { box-shadow: inset 0 0 0 1.5px #181310; }
.dr-day.dr-today { text-decoration: underline; text-underline-offset: 4px; }
.dr-day:disabled { color: #bdb3aa; cursor: default; }
.dr-day.dr-busy { text-decoration: line-through; }
.dr-day.dr-between { border-radius: 0; background: var(--dr-soft); }
.dr-day.dr-start, .dr-day.dr-end { color: #fff; }
.dr-day.dr-start::after, .dr-day.dr-end::after { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: 50%; background: var(--dr-accent); }
/* Half of each end is shaded, so the soft band joins the two round ends. */
.dr-day.dr-start.dr-ranged { border-radius: 0; background: linear-gradient(90deg, transparent 50%, var(--dr-soft) 50%); }
.dr-day.dr-end.dr-ranged { border-radius: 0; background: linear-gradient(270deg, transparent 50%, var(--dr-soft) 50%); }
.dr-day.dr-start:not(:disabled):hover, .dr-day.dr-end:not(:disabled):hover { box-shadow: none; }
.dr-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.dr-link { padding: 10px 0; border: 0; background: none; color: inherit; font-family: inherit; font-size: .9rem; font-weight: 600; text-decoration: underline; cursor: pointer; }
.dr-done { min-height: 42px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--dr-accent); color: #fff; font-family: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }

/* The home page booking bar */
.bookbar.dr-open { z-index: 40; }
.bookbar .dr-fields { height: 100%; border: 0; border-right: 1px solid var(--line, #e9e0d5); border-radius: 0; }
.bookbar .dr-field { padding-inline: 22px; justify-content: center; }
.grid .dr { grid-column: 1 / -1; max-width: 520px; }
@media (max-width: 820px) { fieldset .dr { grid-column: 1 / -1; } }

/* Phones: the calendar slides up from the bottom of the screen */
@media (max-width: 820px) { .bookbar .dr { grid-column: 1 / -1; } .bookbar .dr-fields { border: 1px solid var(--line, #e9e0d5); border-radius: 6px; } }
@media (max-width: 700px) {
  .dr-panel, .dr-panel.to-right, .dr-panel.up { position: fixed; top: auto; right: 0; bottom: 0; left: 0; width: auto; max-width: none; max-height: 92vh; overflow-y: auto; padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; box-shadow: 0 -10px 60px rgb(20 10 4 / 45%); }
  .dr.is-open { z-index: 80; }
}
