/* Two-month range picker for the booking app's date fields (dist/js/range-picker.js, 2026-10-27; Blue Car
   Rental's styles with Arctic Campers' colours). Popover under the fields on wider screens, bottom sheet on phones.
   Hand-kept like mobile-overrides.css; loaded by _partials/_html/_html-header.twig. */
.rp {
  --rp-blue: #11385b; --rp-ink: #141c24; --rp-muted: #5d6873; --rp-bg: #f5f6f7; --rp-card: #fff; --rp-line: #e3e8ee;
  position: absolute; z-index: 10000; width: 640px;   /* above the sticky header (9999) when the page is scrolled while open */ max-width: calc(100vw - 24px);
  padding: 16px 18px 14px; border-radius: 18px; background: var(--rp-card);
  border: 1px solid var(--rp-line); box-shadow: 0 18px 44px rgba(11, 34, 57, .2);
  font-family: Raleway, system-ui, sans-serif; font-size: 15px; color: var(--rp-ink); text-align: left;
}
.rp__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.rp__hint { flex: 1; margin: 0; text-align: center; font-weight: 600; font-size: .95rem; }
.rp__nav {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--rp-line); background: var(--rp-card);
  font-size: 1.3rem; line-height: 1; color: var(--rp-ink); cursor: pointer;
}
.rp__nav:disabled { opacity: .3; cursor: default; }
.rp__months { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rp__title { text-align: center; font-weight: 600; margin: 4px 0 8px; }
.rp__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.rp__dow { text-align: center; font-size: .75rem; color: var(--rp-muted); padding-bottom: 4px; }
.rp__day {
  height: 38px; border: 0; background: none; font: inherit; color: var(--rp-ink); cursor: pointer; border-radius: 10px;
}
.rp__day:hover:not(:disabled) { background: var(--rp-bg); }
.rp__day.is-off { color: #c3ccd5; cursor: default; }
.rp__day.is-today { font-weight: 700; }
.rp__day.is-in { background: #e6eef5; border-radius: 0; }
.rp__day.is-start, .rp__day.is-end { background: var(--rp-blue) !important; color: #fff; font-weight: 600; }
.rp__day.is-start { border-radius: 10px 0 0 10px; }
.rp__day.is-end { border-radius: 0 10px 10px 0; }
.rp__day.is-start.is-end, .rp__day.is-start:last-child { border-radius: 10px; }
.rp__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rp-line); }
.rp__clear { padding: 10px 6px; border: 0; background: none; color: var(--rp-muted); font: inherit; text-decoration: underline; cursor: pointer; }
.rp__done {
  min-height: 40px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--rp-blue); color: #fff;
  font: inherit; font-weight: 600; cursor: pointer;
}
.rp__done:disabled { opacity: .4; cursor: default; }
/* phones: a sheet from the bottom, months stacked and scrollable */
@media (max-width: 699px) {
  .rp {
    position: fixed; left: 0 !important; right: 0; bottom: 0; top: auto !important; width: auto; max-width: none;
    max-height: 86vh; overflow-y: auto; border-radius: 20px 20px 0 0; padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  }
  .rp__months { grid-template-columns: 1fr; gap: 14px; }
  .rp__day { height: 42px; }
  .rp__head { position: sticky; top: -14px; background: var(--rp-card); padding-top: 4px; z-index: 1; }
  .rp__foot { position: sticky; bottom: calc(-14px - env(safe-area-inset-bottom)); background: var(--rp-card); padding-bottom: 4px; }
  html.rp-open body::after { content: ""; position: fixed; inset: 0; background: rgba(11, 34, 57, .35); z-index: 9999; }
}
