rface;
        }
        chat_interface = new ChatInterface('tripadvisor', "single_site", "list");
        return chat_interface;
      }
      
      function handleSearch() {
        const query = searchInput.value.trim();
        chatContainer.style.display = 'block';
        chat_interface = findChatInterface();
        searchInput.value = '';
        chat_interface.sendMessage(query);
      }
    });
    
    document.getElementById('close-icon').addEventListener('click', () => {
      document.getElem