/* Availability calendar (home page section). Airbnb-clean card, Figtree, one month at a time.
   Everything is scoped under .rcal so it cannot clash with the site styles. */
.avail-sec .avail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  gap: 56px;
  align-items: center;
}
.avail-sec .sub { color: var(--ink-dim); font-size: 19px; max-width: 40ch; margin-top: 20px; line-height: 1.55; }
@media (max-width: 860px) {
  .avail-sec .avail-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

.rcal {
  --rc-bg: #FFFFFF;
  --rc-ink: #222222;
  --rc-ink-2: #6A6A6A;
  --rc-ink-3: #8A8A8A;
  --rc-mute: #C4C4C4;
  --rc-line: #EBEBEB;
  --rc-rose: #FF385C;
  --rc-booked: #222222;
  --rc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  width: 100%;
  max-width: 400px;
  justify-self: end;
  background: var(--rc-bg);
  color: var(--rc-ink);
  border-radius: 20px;
  padding: 20px 18px 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.06);
  font: 400 15px/1.4 Figtree, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}
@media (max-width: 860px) { .rcal { justify-self: center; } }
.rcal *, .rcal *::before, .rcal *::after { box-sizing: border-box; }
.rcal .rc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rcal :focus-visible { outline: 2px solid var(--rc-ink); outline-offset: 2px; }

.rcal .rc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rcal .rc-title { font: 600 17px/1.2 Figtree, sans-serif; letter-spacing: -0.01em; margin: 0; color: var(--rc-ink); }
.rcal .rc-arrows { display: flex; gap: 6px; }
.rcal .rc-arrow {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--rc-line); background: var(--rc-bg); color: var(--rc-ink);
  display: grid; place-items: center; cursor: pointer; padding: 0;
  transition: transform 0.25s var(--rc-ease), background 0.25s var(--rc-ease);
}
.rcal .rc-arrow:hover { background: #F7F7F7; }
.rcal .rc-arrow:active { transform: scale(0.94); }
.rcal .rc-arrow:disabled { opacity: 0.35; cursor: default; }
.rcal .rc-arrow svg { width: 14px; height: 14px; }

.rcal .rc-dows { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 6px; }
.rcal .rc-dows span { text-align: center; font-size: 11px; font-weight: 600; color: var(--rc-ink-2); padding: 4px 0; }
.rcal .rc-stage { overflow: hidden; }
.rcal .rc-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px;
  transition: opacity 0.28s var(--rc-ease), transform 0.28s var(--rc-ease);
}
.rcal .rc-grid.out-left { opacity: 0; transform: translateX(-14px); }
.rcal .rc-grid.out-right { opacity: 0; transform: translateX(14px); }
.rcal .rc-grid.from-right { transform: translateX(14px); transition: none; }
.rcal .rc-grid.from-left { transform: translateX(-14px); transition: none; }

.rcal .rc-cell { aspect-ratio: 1 / 1; min-width: 0; }
.rcal .rc-cell.blank { visibility: hidden; }
.rcal .rc-day {
  position: relative; width: 100%; height: 100%;
  border: 1px solid var(--rc-line); background: var(--rc-bg); color: var(--rc-ink);
  border-radius: 12px; font: 500 14px/1 Figtree, sans-serif; cursor: pointer;
  display: grid; place-items: center; padding: 0;
  transition: transform 0.2s var(--rc-ease), border-color 0.2s var(--rc-ease);
  animation: rc-tile-in 0.5s var(--rc-ease) both;
  animation-delay: calc(var(--i) * 12ms);
}
.rcal .rc-day:active { transform: scale(0.92); }
.rcal .rc-day.b { background: var(--rc-booked); color: #FFFFFF; border-color: var(--rc-booked); cursor: default; }
.rcal .rc-day.b:active, .rcal .rc-day.past:active { transform: none; }
.rcal .rc-day.past { color: var(--rc-mute); border-color: transparent; background: transparent; cursor: default; }
.rcal .rc-day.today::after {
  content: ""; position: absolute; bottom: 5px; left: 50%; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--rc-rose);
}
.rcal .rc-day.b.today::after { background: #FFFFFF; }
.rcal .rc-day.sel { border: 1.5px solid var(--rc-rose); color: var(--rc-rose); font-weight: 600; }
.rcal .rc-day.sel::before {
  content: ""; position: absolute; inset: -4px; border-radius: 14px;
  border: 2px solid var(--rc-rose); opacity: 0;
  animation: rc-ring 0.55s var(--rc-ease) forwards;
}
@keyframes rc-tile-in { from { opacity: 0; transform: translateY(6px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes rc-ring { 0% { opacity: 0; transform: scale(1.25); } 60% { opacity: 1; } 100% { opacity: 0; transform: scale(1); } }

.rcal .rc-message { padding: 60px 12px; text-align: center; color: var(--rc-ink-2); font-size: 14px; }
.rcal .rc-message a { color: var(--rc-ink); font-weight: 600; text-decoration: underline; }

.rcal .rc-status {
  min-height: 40px; margin: 14px 0 0;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.rcal .rc-status-text { font-size: 13px; color: var(--rc-ink-2); }
.rcal .rc-enquire {
  border-radius: 999px; background: var(--rc-rose); color: #FFFFFF;
  font: 600 13px/1 Figtree, sans-serif; padding: 11px 16px; white-space: nowrap; text-decoration: none;
  opacity: 0; transform: translateY(4px); pointer-events: none;
  transition: opacity 0.3s var(--rc-ease), transform 0.3s var(--rc-ease), background 0.2s var(--rc-ease);
}
.rcal .rc-enquire.show { opacity: 1; transform: none; pointer-events: auto; }
.rcal .rc-enquire:hover { background: #E63150; }
.rcal .rc-enquire:active { transform: scale(0.97); }
.rcal .rc-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--rc-ink-2);
  padding: 14px 0 12px; margin-top: 12px; border-top: 1px solid var(--rc-line);
}
.rcal .rc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rcal .rc-lg { width: 12px; height: 12px; border-radius: 4px; border: 1px solid var(--rc-line); display: inline-block; }
.rcal .rc-lg.f { background: var(--rc-bg); }
.rcal .rc-lg.b { background: var(--rc-booked); border-color: var(--rc-booked); }
.rcal .rc-updated { font-size: 11px; color: var(--rc-ink-3); }

@media (prefers-reduced-motion: reduce) {
  .rcal .rc-day, .rcal .rc-grid, .rcal .rc-enquire, .rcal .rc-arrow { animation: none !important; transition: none !important; }
  .rcal .rc-day.sel::before { animation: none; opacity: 0; }
}
