/* Custom calendar — layout only. Each concept maps its palette onto these variables. */
.hhc {
  --hhc-bg: #fff;
  --hhc-fg: #1b1b19;
  --hhc-muted: #8a857b;
  --hhc-line: rgba(0, 0, 0, 0.12);
  --hhc-accent: #1b1b19;
  --hhc-accent-fg: #fff;
  --hhc-range: rgba(0, 0, 0, 0.08);
  --hhc-open: transparent;
  --hhc-radius: 10px;
  --hhc-font: system-ui, sans-serif;
  --hhc-display: inherit;
  background: var(--hhc-bg);
  color: var(--hhc-fg);
  font-family: var(--hhc-font);
  padding: clamp(16px, 3vw, 28px);
  line-height: 1.4;
}
.hhc button { font: inherit; color: inherit; cursor: pointer; }
.hhc-loading { padding: 60px 0; text-align: center; color: var(--hhc-muted); }

.hhc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hhc-status { font-weight: 600; font-size: 15px; text-align: center; flex: 1; min-height: 22px; }
.hhc-nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--hhc-line); background: transparent; font-size: 22px !important; line-height: 1; display: grid; place-items: center; }
.hhc-nav:hover:not(:disabled) { border-color: var(--hhc-fg); }
.hhc-nav:disabled { opacity: 0.3; cursor: default; }

.hhc-months { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@container (max-width: 560px) { .hhc-months { grid-template-columns: 1fr; } .hhc-month + .hhc-month { display: none; } }
@media (max-width: 640px) { .hhc-months { grid-template-columns: 1fr; } .hhc-month + .hhc-month { display: none; } }
.hhc-mtitle { font-family: var(--hhc-display); font-size: 19px; text-align: center; margin-bottom: 10px; }
.hhc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px 0; }
.hhc-wk { display: contents; }
.hhc-wk span { text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--hhc-muted); padding-bottom: 6px; }
.hhc-day {
  position: relative; aspect-ratio: 1 / 1; min-height: 42px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  border: 0; background: var(--hhc-open); border-radius: var(--hhc-radius); padding: 0;
  transition: background 0.12s, color 0.12s;
}
.hhc-n { font-size: 15px; font-weight: 600; line-height: 1; }
.hhc-p { font-size: 9.5px; color: var(--hhc-muted); line-height: 1; letter-spacing: -0.01em; }
.hhc-day.is-available:hover, .hhc-day.is-checkout:hover { box-shadow: inset 0 0 0 1.5px var(--hhc-fg); }
.hhc-day.is-unavailable, .hhc-day[aria-disabled="true"] { color: var(--hhc-muted); opacity: 0.45; cursor: not-allowed; }
.hhc-day.is-unavailable .hhc-n { text-decoration: line-through; text-decoration-thickness: 1px; }
.hhc-day.is-nocheckin { color: var(--hhc-muted); }
.hhc-day.is-today .hhc-n::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--hhc-accent); }
.hhc-day.in-range, .hhc-day.in-preview { background: var(--hhc-range); border-radius: 0; }
/* The stay reads as one pill: the band rounds wherever it breaks (week or month edge), and the check-in /
   check-out tiles go square on the side where they join it */
.hhc-day.in-range.edge-l, .hhc-day.in-preview.edge-l { border-top-left-radius: var(--hhc-radius); border-bottom-left-radius: var(--hhc-radius); }
.hhc-day.in-range.edge-r, .hhc-day.in-preview.edge-r { border-top-right-radius: var(--hhc-radius); border-bottom-right-radius: var(--hhc-radius); }
.hhc-months:has(.is-end, .in-preview) .hhc-day.is-start:not(.edge-r) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.hhc-day.is-end:not(.edge-l) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.hhc-day.in-range { color: var(--hhc-fg); opacity: 1; } /* nights inside a chosen stay never look unavailable */
.hhc-day.is-start, .hhc-day.is-end { background: var(--hhc-accent); color: var(--hhc-accent-fg); opacity: 1; }
.hhc-day.is-start .hhc-p, .hhc-day.is-end .hhc-p { color: inherit; opacity: 0.8; }
.hhc-day:focus-visible { outline: 2px solid var(--hhc-accent); outline-offset: 1px; z-index: 1; }

.hhc-legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 12.5px; color: var(--hhc-muted); margin: 14px 0 4px; }
.hhc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.hhc-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.lg-open { box-shadow: inset 0 0 0 1.5px var(--hhc-fg); }
.lg-booked { background: var(--hhc-line); }
.lg-sel { background: var(--hhc-accent); }

/* Steps: 1 Dates → 2 Price → 3 Reserve */
.hhc-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; row-gap: 8px; gap: 6px; align-items: center; font-size: 12.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hhc-muted); }
.hhc-steps li { display: inline-flex; align-items: center; gap: 7px; }
.hhc-steps li + li::before { content: ""; width: 22px; height: 1px; background: var(--hhc-line); margin-right: 1px; }
.hhc-steps span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; border: 1.5px solid var(--hhc-line); letter-spacing: 0; }
.hhc-steps .is-current { color: var(--hhc-fg); }
.hhc-steps .is-current span { border-color: var(--hhc-accent); background: var(--hhc-accent); color: var(--hhc-accent-fg); }
.hhc-steps .is-done span { border-color: var(--hhc-accent); color: var(--hhc-accent); }
.hhc-steps .is-done span { font-size: 0; }
.hhc-steps .is-done span::after { content: "✓"; font-size: 12px; }

.hhc-body.is-review { animation: hhc-step-in 0.28s ease-out; }
.hhc-body.is-dates .hhc-months { animation: hhc-step-in 0.22s ease-out; }
@keyframes hhc-step-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Collapsed dates: one tappable summary row */
.hhc-datesbar {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  border: 1px solid var(--hhc-line); border-radius: calc(var(--hhc-radius) + 4px); background: transparent; padding: 14px 16px;
  transition: border-color 0.15s, background 0.15s;
}
.hhc-datesbar:hover { border-color: var(--hhc-fg); }
.hhc-datesbar:focus-visible { outline: 2px solid var(--hhc-accent); outline-offset: 2px; }
.hhc-datesbar svg { width: 24px; height: 24px; flex: none; color: var(--hhc-accent); }
.hhc-db-main { flex: 1; display: grid; gap: 1px; }
.hhc-db-main b { font-family: var(--hhc-display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.hhc-db-main small { font-size: 13px; color: var(--hhc-muted); }
.hhc-db-edit { font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* Price step */
.hhc-review { display: grid; grid-template-columns: minmax(170px, auto) minmax(0, 1fr); gap: 18px 28px; align-items: start; margin-top: 16px; }
.hhc-range .hh-sample { vertical-align: 3px; margin-left: 6px; }
@media (max-width: 640px) { .hhc-review { grid-template-columns: minmax(0, 1fr); } }
.hhc-guests { display: grid; gap: 10px; min-width: 170px; padding-top: 6px; }
.hhc-g { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14.5px; font-weight: 600; }
.hhc-step { display: flex; align-items: center; gap: 10px; }
.hhc-step button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--hhc-line); background: transparent; display: grid; place-items: center; font-size: 16px; line-height: 1; }
.hhc-step button:disabled { opacity: 0.3; cursor: default; }
.hhc-step output { min-width: 14px; text-align: center; }
.hhc-summary { min-height: 44px; }
.hhc-hint { margin: 6px 0 0; color: var(--hhc-muted); font-size: 14.5px; }
/* Price summary card */
.hhc-card {
  --hhc-card-bg: color-mix(in srgb, var(--hhc-fg) 4%, var(--hhc-bg));
  background: var(--hhc-card-bg); border: 1px solid var(--hhc-line);
  border-radius: calc(var(--hhc-radius) + 4px); padding: 16px 18px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 10px 24px -18px rgba(0, 0, 0, 0.35);
}
.hhc-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 20px; flex-wrap: wrap; }
.hhc-range { display: block; font-family: var(--hhc-display); font-size: 19px; font-weight: 600; line-height: 1.2; }
.hhc-nights { display: block; font-size: 13px; color: var(--hhc-muted); margin-top: 2px; }
.hhc-sum { text-align: right; font-family: var(--hhc-display); font-size: 28px; font-weight: 700; line-height: 1.05; color: var(--hhc-fg); }
.hhc-sum small { display: block; font-family: var(--hhc-font); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--hhc-muted); margin-top: 4px; }
.hhc-sum.is-muted small { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.hhc-lines { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--hhc-line); font-size: 14px; color: var(--hhc-muted); display: grid; gap: 5px; }
.hhc-lines li { display: flex; justify-content: space-between; gap: 12px; }
.hhc-lines li span:last-child { font-variant-numeric: tabular-nums; }
.hhc-lines .is-discount { color: var(--hhc-accent); }
.hhc-lines .is-sub, .hhc-lines .is-grand { color: var(--hhc-fg); font-weight: 700; border-top: 1px solid var(--hhc-line); padding-top: 7px; margin-top: 3px; }
.hhc-lines .is-grand { font-size: 15px; }

/* Reserve bar: pinned to the bottom of the scrolling panel, always visible */
.hhc-bar {
  position: sticky; bottom: 0; z-index: 2;
  margin: 18px calc(-1 * clamp(16px, 3vw, 28px)) calc(-1 * clamp(16px, 3vw, 28px));
  padding: 14px clamp(16px, 3vw, 28px) 12px;
  background: var(--hhc-bg); border-top: 1px solid var(--hhc-line);
  box-shadow: 0 -12px 24px -18px rgba(0, 0, 0, 0.35);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px 16px;
}
.hhc-bar-info { display: flex; align-items: baseline; gap: 14px; min-width: 0; flex-wrap: wrap; }
.hhc-bar-hint { font-size: 15px; color: var(--hhc-muted); font-weight: 600; }
.hhc-bar-total { font-family: var(--hhc-display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.hhc-bar-total small { font-family: var(--hhc-font); font-size: 12.5px; font-weight: 600; color: var(--hhc-muted); margin-left: 6px; }
.hhc-clear { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; font-weight: 600; color: var(--hhc-muted) !important; }
.hhc-clear:hover { color: var(--hhc-fg) !important; }
.hhc-reserve { border: 0; border-radius: var(--hhc-radius); background: var(--hhc-accent); color: var(--hhc-accent-fg) !important; padding: 14px 34px; font-weight: 700; font-size: 16px; min-width: 180px; transition: opacity 0.2s, transform 0.15s; }
.hhc-reserve:not(:disabled):hover { transform: translateY(-1px); }
.hhc-reserve:disabled { opacity: 0.35; cursor: not-allowed; }
.hhc-fine { grid-column: 1 / -1; margin: 0; font-size: 12px; color: var(--hhc-muted); text-align: right; }
@media (max-width: 640px) { .hhc-reserve { min-width: 0; padding: 13px 22px; } .hhc-fine { text-align: left; } .hhc-steps li + li::before { width: 12px; } }
.hhc .hh-sample { margin-left: 8px; }

/* When the booking modal shows our calendar instead of Hospitable's iframe */
.modal.is-hhc .modal-panel { width: min(820px, calc(100% - 32px)) !important; }
.modal.is-hhc .modal-body { background: var(--hhc-bg, #fff) !important; padding: 0 !important; display: block !important; }
@media (max-width: 600px) { .modal.is-hhc .modal-panel { width: 100% !important; } }
.hhc-host[hidden], .modal-body iframe[hidden] { display: none !important; }

/* Compact picker (popover under the date fields) */
.hhc-pop {
  position: absolute; z-index: 60; width: min(680px, calc(100vw - 24px));
  border-radius: 16px; overflow: hidden; container-type: inline-size;
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 0, 0, 0.06);
  animation: hhc-pop-in 0.18s ease-out;
}
@keyframes hhc-pop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.hhc-pop[hidden] { display: none; }
.hhc-pop .hhc { padding: 16px 18px 14px; }
.hhc-pop .hhc-day { min-height: 38px; }
.hhc-pop .hhc-loading { padding: 40px 0; }
.hhc-cfoot { display: flex; align-items: center; gap: 16px; border-top: 1px solid var(--hhc-line); margin-top: 12px; padding-top: 12px; flex-wrap: wrap; }
.hhc-cfoot .hhc-legend { margin: 0; }
.hhc-cnote { flex: 1; text-align: right; font-size: 14px; color: var(--hhc-muted); }
.hhc-cnote b { color: var(--hhc-fg); }
.hhc-cfoot .hhc-clear { border: 0; background: none; text-decoration: underline; font-weight: 600; padding: 4px 0; }
.hhc-cfoot .hhc-clear:disabled { opacity: 0.35; cursor: default; }
input.is-hhpick { cursor: pointer; caret-color: transparent; }
input.is-hhpick::-webkit-calendar-picker-indicator { pointer-events: none; }

/* Promo code status under the price lines */
.hhc-lines .hhc-promo { font-size: 13px; color: var(--hhc-muted); font-style: italic; }
.hhc-lines .hhc-promo.is-on { color: var(--hhc-accent); font-style: normal; font-weight: 600; }

/* Loading states: a spinner, a shimmering estimate and skeleton fee lines while the exact quote is fetched */
.hhc-spin { display: inline-block; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; vertical-align: -0.15em; margin-right: 8px; animation: hhc-spin 0.75s linear infinite; }
.hhc-loading .hhc-spin { width: 20px; height: 20px; margin: 0 10px 0 0; vertical-align: -5px; color: var(--hhc-accent); }
.hhc-quoting { display: flex; align-items: center; margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--hhc-fg);
  background: color-mix(in srgb, var(--hhc-accent) 9%, transparent); }
.hhc-quoting .hhc-spin { color: var(--hhc-accent); flex: none; }
.hhc-shimmer { display: inline-block; color: transparent; border-radius: 6px; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(100deg, var(--hhc-muted) 30%, color-mix(in srgb, var(--hhc-muted) 25%, var(--hhc-bg)) 50%, var(--hhc-muted) 70%);
  background-size: 250% 100%; animation: hhc-shimmer 1.3s ease-in-out infinite; }
.hhc-skel span { display: block; height: 11px; border-radius: 6px; margin: 3px 0;
  background: linear-gradient(100deg, var(--hhc-line) 30%, color-mix(in srgb, var(--hhc-line) 30%, transparent) 50%, var(--hhc-line) 70%);
  background-size: 250% 100%; animation: hhc-shimmer 1.3s ease-in-out infinite; }
.hhc-skel span:last-child { width: 64px; }
.hhc-reserve.is-busy { cursor: progress; opacity: 0.85; }
@keyframes hhc-spin { to { transform: rotate(360deg); } }
@keyframes hhc-shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .hhc-spin, .hhc-shimmer, .hhc-skel span { animation-duration: 3s; } }
html[data-motion="off"] .hhc-shimmer, html[data-motion="off"] .hhc-skel span { animation: none; }
