/* Copied from rio-travel-search static/css/page-flights.css (02/11/2026) — styles for rt-calendar.js. */
.rtc {
  position: absolute; z-index: 60; width: 720px; max-width: calc(100vw - 24px);
  background: var(--paper); color: var(--ink);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 60px -18px rgba(15, 27, 45, .35), 0 2px 8px rgba(15, 27, 45, .08);
  padding: 20px 22px 16px; font-family: var(--font-sans);
  transform-origin: 50% 0;
}
.rtc[hidden] { display: none; }
/* Arrives from the field it belongs to and leaves quicker and smaller than it
   came — the eye is already back on the form. Month changes slide 8px the way
   the arrow points; a keyboard move does not animate (rt-calendar.js). */
@media (prefers-reduced-motion: no-preference) {
  .rtc { animation: rtc-in var(--d-fast) var(--e-out); }
  .rtc.is-leaving { animation: rtc-out 120ms var(--e-ui) forwards; pointer-events: none; }
  .rtc-months.is-from-next { animation: rtc-month-next var(--d-fast) var(--e-out); }
  .rtc-months.is-from-prev { animation: rtc-month-prev var(--d-fast) var(--e-out); }
}
@keyframes rtc-in { from { opacity: 0; transform: translateY(-6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rtc-out { to { opacity: 0; transform: translateY(-4px); } }
@keyframes rtc-month-next { from { opacity: 0; transform: translateX(8px); } to { opacity: 1; transform: none; } }
@keyframes rtc-month-prev { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
.rtc-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.rtc-sum { display: flex; gap: 10px; }
.rtc-slot { display: flex; flex-direction: column; gap: 2px; padding: 8px 14px; border-radius: 12px;
  border: 1px solid var(--line); min-width: 132px; }
.rtc-slot[hidden] { display: none; }
.rtc-slot.is-on { border-color: var(--ink); box-shadow: 0 0 0 3px var(--champagne-wash); }
.rtc-k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); font-weight: 600; }
.rtc-v { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.rtc-hint { margin: 0; color: var(--ink-70); font-size: 14px; text-align: right; }
.rtc-body { position: relative; }
.rtc-months { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.rtc.is-sheet .rtc-months { grid-template-columns: 1fr; }
.rtc-title { margin: 2px 0 12px; text-align: center; font: 500 21px/1.2 var(--font-serif); color: var(--ink);
  text-transform: capitalize; }
.rtc-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 2px; }
.rtc-wd { text-align: center; font-size: 12px; font-weight: 600; color: var(--ink-45); padding-bottom: 6px;
  text-transform: uppercase; }
.rtc-day { position: relative; height: 42px; border: 0; padding: 0; background: transparent; cursor: pointer;
  font: 500 15px/1 var(--font-sans); color: var(--ink); font-variant-numeric: tabular-nums; }
.rtc-day span { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; transition: background var(--d-fast) var(--e-ui), color var(--d-fast) var(--e-ui); }
@media (hover: hover) { .rtc-day:hover:not([disabled]) span { background: var(--stone); } }
.rtc-day:focus-visible { outline: 0; }
.rtc-day:focus-visible span { box-shadow: 0 0 0 2px var(--ink); }
.rtc-day.is-today span { box-shadow: inset 0 0 0 1.5px var(--champagne); }
.rtc-day[disabled] { color: color-mix(in srgb, var(--ink-45) 55%, transparent); cursor: default; }
.rtc-day[disabled] span { text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .12); }
.rtc-day.is-in::before, .rtc-day.is-edge-lo::before, .rtc-day.is-edge-hi::before {
  content: ''; position: absolute; top: 1px; bottom: 1px; left: 0; right: 0; background: rgba(200, 169, 106, .18); }
.rtc-day.is-edge-lo::before { left: 50%; }
.rtc-day.is-edge-hi::before { right: 50%; }
.rtc-day.is-start span, .rtc-day.is-end span { background: var(--navy); color: var(--paper); font-weight: 700; }
.rtc-day.is-start:hover span, .rtc-day.is-end:hover span { background: var(--navy); }
.rtc-nav { position: absolute; top: -2px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2; }
.rtc-nav:hover:not([disabled]) { border-color: var(--ink); }
.rtc-nav[disabled] { opacity: .35; cursor: default; }
.rtc-prev { left: 0; }
.rtc-next { right: 0; }
.rtc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px;
  padding-top: 12px; border-top: 1px solid var(--line); }
.rtc-clear { border: 0; background: none; color: var(--ink-70); font: 600 14px var(--font-sans); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
.rtc-nights { color: var(--champagne-deep); font-weight: 600; font-size: 14px; }
.rtc-done { border: 0; border-radius: 999px; background: var(--navy); color: var(--paper); cursor: pointer;
  font: 600 15px var(--font-sans); padding: 11px 24px; }
.rtc-done:hover { background: color-mix(in srgb, var(--navy) 86%, var(--paper)); }

/* Phone: a bottom sheet over a dimmed page, thumb-sized days. */
@media (max-width: 759px) {
  html.rtc-open { overflow: hidden; }
  html.rtc-open body::after { content: ''; position: fixed; inset: 0; background: rgba(10, 20, 33, .45); z-index: 59; }
  .rtc.is-sheet { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none;
    border-radius: 22px 22px 0 0; padding: 18px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: 88vh; overflow-y: auto; }
  @media (prefers-reduced-motion: no-preference) {
    .rtc.is-sheet { animation: rtc-up var(--d-base) var(--e-out); }
    .rtc.is-sheet.is-leaving { animation: rtc-down var(--d-fast) var(--e-ui) forwards; }
  }
  @keyframes rtc-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  @keyframes rtc-down { to { transform: translateY(16px); opacity: 0; } }
  .rtc-head { flex-direction: column; align-items: stretch; gap: 10px; }
  .rtc-hint { text-align: left; }
  .rtc-sum { width: 100%; }
  .rtc-slot { flex: 1; min-width: 0; }
  .rtc-day { height: 46px; }
  .rtc-day span { width: 44px; height: 44px; }
}
