`});function copyTourData(){const name=document.getElementById("clientName").value;const days=document.getElementById("days").value;const adults=document.getElementById("adults").value;const arrivalTime=document.getElementById("arrivalTime").value;const arrivalDate=document.getElementById("arrivalDate").value;const departureDate=document.getElementById("departureDate").value;const accommodation=document.getElementById("accommodation").value;const notes=document.getElementById("notes").value;let toursOutput="";toursList.forEach((tour,index)=>{const id=`tour-${index}`;const isChecked=document.getElementById(id).checked;const date=document.getElementById(`${id}-date`).value;if(isChecked){toursOutput+=`جولة: ${tour} (📅 ${date})\n`}});const pickup=document.getElementById("airportPickup").checked?"🚗 استقبالكم في المطار بسيارة خاصة وتوصيلكم الى الفندق للراحة":"";const dropoff=document.getElementById("airportDropoff").checked?"👋 توديعكم إلى المطار بسيارة خاصة من الفندق":"";const output=`
✨ برنامج للزبون: ${name} ✨
☀ ${days} أيام
👨👩👧👦 عدد الأفراد: ${adults}
اسم العميل: ${name}
⏰ توقيت الوصول: ${arrivalTime}
✈️ تاريخ الوصول: ${arrivalDate}
✈️ تاريخ المغادرة: ${departureDate}
🏨 المبيت: ${accommodation}
📝 ملاحظات إضافية:
${notes}
الجولات:
${toursOutput}
${pickup}
${dropoff}
`;navigator.clipboard.writeText(output.trim()).then(()=>{alert("✅ تم نسخ الطلب بنجاح!")})}
function printTourData(){copyTourData();setTimeout(()=>window.print(),300)}
function scrollToTop(){window.scrollTo({top:0,behavior:"smooth"})}
function scrollToBottom(){window.scrollTo({top:document.body.scrollHeight,behavior:"smooth"})}