jQuery(document).ready(function($){// Toggle hotel fields $('select[name="delivery_type"]').change(function(){$('#hotel-fields').toggle($(this).val()==='hotel')}).trigger('change');// Hotel search functionality $('#hotel_search').on('input',function(){const searchTerm=$(this).val().toLowerCase();const results=$('#hotel-results').empty().hide();if (searchTerm.length < 2) return;// Find matching hotels const matches=hotelVars.hotels.filter(hotel=>hotel.name.toLowerCase().includes(searchTerm));// Display results if (matches.length){matches.forEach(hotel=>{results.append(` <div class="hotel-result" data-hotel="${hotel.name}" data-address="${hotel.address}" data-phone="${hotel.phone}"><strong>${hotel.name}</strong><br><small>${hotel.address}</small></div>`)});results.show()}});// Handle hotel selection $(document).on('click','.hotel-result',function(){const hotelName=$(this).data('hotel');$('#hotel_search').val(hotelName);$('input[name="selected_hotel"]').val(hotelName);$('#hotel-results').hide()})});@media only screen and (max-width:48em){