// 404 page: initialize shared notFoundPage Alpine component
document.addEventListener('alpine:init', () => {
  // Ensure search index is preloaded on 404 page
  const notFoundElement = document.querySelector('[x-data*="notFoundPage"]');
  if (notFoundElement && notFoundElement.__x) {
    notFoundElement.__x.$data.init();
  }
  console.log('404 page initialized with shared search functionality');
});
