/* The stay date-range calendar (#409): date-range.js. Used in the homepage
   search bar's panel and inline on /book. */
.ecr {
  --ecr-ink: #1e2419; --ecr-muted: #6a6f5c; --ecr-line: #e3e1cf; --ecr-gold: #b89647; --ecr-gold-soft: #f1e8d2;
  --ecr-green: #1d4038; --ecr-booked: #a9ab9c;
  font-family: 'Inter', system-ui, sans-serif; color: var(--ecr-ink);
}
.ecr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ecr-nav { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--ecr-line); background: transparent; color: var(--ecr-ink); cursor: pointer; transition: background .15s ease; }
.ecr-nav svg { width: 16px; height: 16px; }
.ecr-nav:hover:not(:disabled) { background: rgba(0, 0, 0, .04); }
.ecr-nav:disabled { opacity: .3; cursor: default; }
.ecr-steps { display: flex; align-items: center; gap: 14px; justify-content: center; min-width: 0; }
.ecr-step { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 14px; border-radius: 10px; font-size: 15px; color: var(--ecr-muted); transition: background .2s ease, color .2s ease; white-space: nowrap; }
.ecr-step b { font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; }
.ecr-step.is-on { background: var(--ecr-gold-soft); color: var(--ecr-ink); }
.ecr-arrow { color: var(--ecr-muted); }
.ecr-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px; margin-top: 14px; transition: opacity .2s ease; }
.ecr.is-loading .ecr-months { opacity: .55; }
.ecr-mname { font-family: 'Fraunces', Georgia, serif; font-size: 17px; text-align: center; margin: 4px 0 10px; }
.ecr-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; }
.ecr-dow { font-size: 11px; letter-spacing: .06em; color: var(--ecr-muted); text-align: center; padding: 4px 0 6px; }
.ecr-day { position: relative; height: 42px; padding: 0; border: 0; background: none; cursor: pointer; font: 400 14px/1 'Inter', system-ui, sans-serif; color: var(--ecr-ink); font-variant-numeric: tabular-nums; }
.ecr-day span { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; margin: 0 auto; border-radius: 50%; transition: background .12s ease, box-shadow .12s ease; }
.ecr-day:hover:not(:disabled) span { box-shadow: inset 0 0 0 1.5px var(--ecr-ink); }
.ecr-day:disabled { cursor: default; }
.ecr-day.r-past { color: #c8c9be; }
.ecr-day.r-booked, .ecr-day.r-blocked { color: var(--ecr-booked); }
.ecr-day.r-booked span { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .25); }
.ecr-day.r-short { color: #b9baae; }
.ecr-day.is-today span { box-shadow: inset 0 0 0 1px var(--ecr-line); }
/* The range: a soft band behind the days, solid gold ends. */
.ecr-day.is-in::before, .ecr-day.has-range::before, .ecr-day.is-end::before { content: ''; position: absolute; top: 1px; bottom: 1px; background: var(--ecr-gold-soft); }
.ecr-day.is-in::before { left: 0; right: 0; }
.ecr-day.has-range::before { left: 50%; right: 0; }
.ecr-day.is-end::before { left: 0; right: 50%; }
.ecr-day.is-start span, .ecr-day.is-end span { background: var(--ecr-gold); color: #1e1a10; font-weight: 500; box-shadow: none; }
.ecr-day.is-preview.is-end span { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ecr-gold); color: var(--ecr-ink); }
.ecr-day.is-preview::before { opacity: .6; }
.ecr-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ecr-line); }
.ecr-hint { font-size: 13.5px; color: var(--ecr-muted); }
.ecr-hint.is-warn { color: #9a3b2a; }
.ecr-btns { display: flex; align-items: center; gap: 16px; flex: none; }
.ecr-clear { background: none; border: 0; padding: 6px 2px; font: 500 14px 'Inter', system-ui, sans-serif; color: var(--ecr-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ecr-clear[hidden] { display: none; }
.ecr-done { height: 42px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--ecr-green); color: #f5f3ea; font: 500 14px 'Inter', system-ui, sans-serif; cursor: pointer; }
.ecr button:focus-visible { outline: 2px solid var(--ecr-gold); outline-offset: 2px; }
@media (max-width: 720px) {
  .ecr-step { padding: 4px 8px; font-size: 14px; }
  .ecr-day { height: 46px; }
  .ecr-day span { width: 42px; height: 42px; }
}
