/* Shared Glisse surface: strong text contrast keeps both pickers readable. */
html:has(body.site-glass.home-picker-open) { scroll-snap-type: none; }

body.site-glass .home-date-dialog {
  position: fixed;
  inset: auto;
  width: min(260px, calc(100vw - 24px));
  max-width: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: #102e3d;
  font: 400 .875rem/1.4 var(--font-testo);
  overflow: auto;
  overscroll-behavior: contain;
}
body.site-glass .home-date-dialog::backdrop { background: transparent; }
body.site-glass .home-date-surface {
  --lg-glass: rgb(247 251 254 / .64);
  --lg-blur: 8px;
  --lg-bezel: 14px;
  --lg-thickness: 32px;
  --lg-refraction: 1.25;
  --lg-zoom: 1.025;
  --lg-rim-saturation: 4.5;
  --lg-edge: rgb(255 255 255 / .65);
  border-radius: inherit;
  box-shadow: 0 14px 38px rgb(7 35 52 / .22);
}
body.site-glass .home-date-content { position: relative; padding: 8px 10px; }
body.site-glass .home-date-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.site-glass .home-date-heading h2 { margin: 0; padding-left: 6px; font: 600 .875rem var(--font-display); }
body.site-glass .home-date-close,
body.site-glass .home-date-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #0b3156;
  font: 600 .875rem var(--font-testo);
  cursor: pointer;
}
body.site-glass .home-date-close { padding: 0; color: inherit; }
body.site-glass .home-date-dialog .rdp-root {
  --rdp-accent-color: #0b3156;
  --rdp-day-height: 32px;
  --rdp-day-width: 32px;
  --rdp-day_button-height: 32px;
  --rdp-day_button-width: min(32px, 100%);
  --rdp-day_button-border-radius: 8px;
  --rdp-nav_button-width: 32px;
  --rdp-nav_button-height: 32px;
  --rdp-nav-height: 32px;
  --rdp-weekday-padding: 4px 0;
  --rdp-disabled-opacity: 1;
  --rdp-weekday-opacity: 1;
  width: 100%;
}
body.site-glass .home-date-dialog .rdp-months,
body.site-glass .home-date-dialog .rdp-month { width: 100%; max-width: none; }
body.site-glass .home-date-dialog .rdp-month_grid { width: 100%; table-layout: fixed; border-collapse: collapse; }
body.site-glass .home-date-dialog .rdp-day { padding: 0; }
body.site-glass .home-date-dialog .rdp-month_caption { font-size: .9375rem; padding: 0 100px 0 4px; }
body.site-glass .home-date-dialog .rdp-weekday { color: #193847; font-size: .75rem; font-weight: 600; }
body.site-glass .home-date-dialog .rdp-day_button { margin: auto; font: 500 .875rem var(--font-testo); }
body.site-glass .home-date-dialog .rdp-disabled .rdp-day_button { color: #284755; text-decoration: line-through; }
body.site-glass .home-date-dialog .rdp-today:not(.rdp-selected) .rdp-day_button { box-shadow: inset 0 0 0 1px #0b3156; }
body.site-glass .home-date-dialog .rdp-selected .rdp-day_button { background: #1558b0; color: #fff; font-weight: 700; }
body.site-glass .home-date-dialog button:hover:not(:disabled) { background: rgb(21 88 176 / .1); }
body.site-glass .home-date-dialog .rdp-selected .rdp-day_button:hover { background: #104789; }
body.site-glass .home-date-dialog button:focus-visible { outline: 2px solid #102e3d; outline-offset: 2px; }
body.site-glass .home-date-dialog button:disabled { cursor: default; }
body.site-glass .home-date-actions { display: flex; justify-content: space-between; margin-top: 2px; }
body.site-glass .home-date-actions button:disabled { color: #284755; }
@media (prefers-reduced-transparency: reduce) {
  body.site-glass .home-date-surface { --lg-glass: #f7fbfe; --lg-blur: 0px; }
}
@media (forced-colors: active) {
  body.site-glass .home-date-dialog { background: Canvas; color: CanvasText; outline: 1px solid CanvasText; }
  body.site-glass .home-date-dialog .rdp-selected .rdp-day_button { background: Highlight; color: HighlightText; }
}
body.site-glass .home-guest-options {
  display: grid;
  flex: 1;
  min-height: 0;
  gap: 2px;
  margin-top: 4px;
  padding: 4px;
  overflow-y: auto;
  scroll-padding: 4px;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgb(40 71 85 / .5) transparent;
}
body.site-glass .home-guest-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: 500 .875rem var(--font-testo);
  text-align: left;
  cursor: pointer;
}
body.site-glass .home-date-dialog .home-guest-option[aria-selected="true"] { background: #1558b0; color: #fff; }
body.site-glass .home-date-dialog .home-guest-option[aria-selected="true"]:hover { background: #104789; }

/* Calendar title remains available to screen readers without a redundant row. */
body.site-glass .home-date-dialog[data-picker="calendar"] .home-date-heading { height: 0; }
body.site-glass .home-date-dialog[data-picker="calendar"] .home-date-heading h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
body.site-glass .home-date-dialog[data-picker="calendar"] .home-date-close { position: absolute; z-index: 2; top: 8px; right: 10px; }
body.site-glass .home-date-dialog[data-picker="calendar"] .rdp-nav { right: 34px; }
body.site-glass .home-date-dialog[data-picker="guests"] { width: min(220px, calc(100vw - 24px)); height: 194px; overflow: hidden; }
body.site-glass .home-date-dialog[data-picker="guests"] .home-date-surface { height: 100%; }
body.site-glass .home-date-dialog[data-picker="guests"] .home-date-content { display: flex; flex-direction: column; height: 100%; box-sizing: border-box; }
body.site-glass .home-date-dialog[data-picker="guests"] .home-date-heading { flex-shrink: 0; }
