/* Keep the native tour-filter calendar readable and inside the mobile drawer.
   iOS/Android may otherwise render date segments using the phone's dark
   appearance even though the input and drawer have a white background. */
aside input[type="date"],
[role="dialog"] input[type="date"] {
  box-sizing: border-box;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  color-scheme: light;
  color: #0f172a;
  -webkit-text-fill-color: #0f172a;
}

aside input[type="date"]::-webkit-datetime-edit,
[role="dialog"] input[type="date"]::-webkit-datetime-edit {
  color: #0f172a;
}

aside input[type="date"]::-webkit-calendar-picker-indicator,
[role="dialog"] input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 1;
}

/* Leave the drawer at its original width; inset the date control slightly so
   Safari never lets it impose its own minimum width on the filter column. */
.tour-filter-date-button {
  width: calc(100% - 8px);
  margin-inline: 4px;
}

#tour-filters > .overflow-y-auto {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
