/* Bound native fallback fields and enhanced controls to their own grid columns. */
.stay-dates,.stay-dates>div{min-width:0;max-width:100%;box-sizing:border-box}
.stay-dates input[type="date"]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;-webkit-appearance:none;appearance:none}
.localized-date-field{position:relative}
.stay-dates input.localized-date-source{position:absolute;width:1px;max-width:1px;min-width:0;height:1px;min-height:0;padding:0;border:0;opacity:0;pointer-events:none;overflow:hidden}
.stay-dates .date-field-button{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;max-width:100%;min-width:0;min-height:56px;box-sizing:border-box;margin:0;padding:12px;border:1px solid #c6d7c6;border-radius:12px;background:#f8faf5;color:#103e32;font:inherit;font-size:16px;line-height:1.4;text-align:left;cursor:pointer}
.date-field-value{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.date-field-icon{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.date-field-button:not(.has-date) .date-field-value{color:#526950}
.date-field-button:hover{border-color:#527e34}
.date-field-button[aria-invalid="true"]{border-color:#a8322d}
.date-field-error{margin:8px 0 0;font-size:14px;line-height:1.5;color:#a8322d}
.date-picker-dialog{box-sizing:border-box;width:min(400px,calc(100vw - 24px));max-width:calc(100vw - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px;border:1px solid #93ab8b;border-radius:20px;background:#fbfdf7;color:#103e32;box-shadow:0 24px 80px #0004;overflow:auto;overscroll-behavior:contain}
.date-picker-dialog::backdrop{background:#0b211bb3}
.date-calendar-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:8px}
.date-calendar-top h2{font-family:inherit;font-size:20px;font-weight:750;line-height:1.3;margin:0;color:inherit}
.date-picker-dialog button{font-family:inherit;color:inherit;cursor:pointer}
.date-calendar-close,.date-calendar-controls>button{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0;border:1px solid #b7c8b0;border-radius:10px;background:#eef4e7;font-size:28px;line-height:1}
.date-calendar-controls{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:8px;margin-bottom:10px}
.date-calendar-controls p{margin:0;text-align:center;font-size:clamp(16px,4.6vw,18px);line-height:1.4;font-weight:700;white-space:nowrap}
.date-calendar-grid{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:2px;font-size:16px}
.date-calendar-grid th{padding:4px 0 8px;font-size:13px;font-weight:700;text-align:center;color:#526950}
.date-calendar-grid td{padding:0;text-align:center}
.date-calendar-grid button{box-sizing:border-box;width:100%;height:42px;min-width:0;padding:0;border:1px solid transparent;border-radius:9px;background:transparent;font-size:16px;font-weight:600}
.date-calendar-grid td:not([aria-selected="true"]) button:not(:disabled):hover{background:#e4efda;border-color:#86a275}
.date-calendar-grid button[aria-current="date"]{border-color:#527e34}
.date-calendar-grid td[aria-selected="true"] button{background:#103e32;color:#fff;border-color:#103e32}
.date-picker-dialog button:disabled{opacity:.35;cursor:default}
.date-calendar-footer{display:flex;justify-content:space-between;gap:12px;margin-top:10px}
.date-calendar-footer button{min-height:44px;padding:8px 14px;background:#eef4e7;border:1px solid #b7c8b0;border-radius:10px;font-size:15px;font-weight:650}
.date-calendar-help{margin:12px 0 0;font-size:12px;line-height:1.5;color:#526950}
.date-field-button:focus-visible,.date-picker-dialog button:focus-visible{outline:3px solid #61913a;outline-offset:1px}
@media screen{
  :root[data-theme="dark"] .stay-dates .date-field-button{background:#14231b;color:#e7eee8;border-color:#587360}
  :root[data-theme="dark"] .date-field-button:not(.has-date) .date-field-value{color:#b4c5b8}
  :root[data-theme="dark"] .date-picker-dialog{background:#1a2a22;color:#e7eee8;border-color:#587360}
  :root[data-theme="dark"] :is(.date-calendar-close,.date-calendar-controls>button,.date-calendar-footer button){background:#22372c;border-color:#587360}
  :root[data-theme="dark"] :is(.date-calendar-help,.date-calendar-grid th){color:#b4c5b8}
  :root[data-theme="dark"] .date-calendar-grid td:not([aria-selected="true"]) button:not(:disabled):hover{background:#2b4434;border-color:#b6db83}
  :root[data-theme="dark"] .date-calendar-grid td[aria-selected="true"] button{background:#d8f58c;color:#103e32;border-color:#d8f58c}
  :root[data-theme="dark"] .date-calendar-grid button[aria-current="date"]{border-color:#b6db83}
  :root[data-theme="dark"] :is(.date-field-button,.date-picker-dialog button):focus-visible{outline-color:#d8f58c}
  :root[data-theme="dark"] .date-field-error{color:#ffb4a8}
  :root[data-theme="dark"] .date-field-button[aria-invalid="true"]{border-color:#ffb4a8}
}
@media(forced-colors:active){.date-calendar-grid td[aria-selected="true"] button{outline:2px solid Highlight;outline-offset:-3px}}
