// Restaurant: open Google in a NEW TAB (outside website)
function openRestaurantFinderOutside() {
const area = prompt(
'Enter a city or area to find the best restaurants (e.g., Nashville TN, Midtown Atlanta):'
);
if (!area) return;
const q = encodeURIComponent('best restaurants in ' + area);
const url = 'https://www.google.com/search?q=' + q;
// Open in a NEW TAB / WINDOW
window.open(url, '_blank', 'noopener,noreferrer');
}
// Button handler
document
.getElementById('btnRestaurant')
.addEventListener('click', openRestaurantFinderOutside);