Mucatt commited on
Commit
b3850d0
·
verified ·
1 Parent(s): e9e884b

when i click booking then click select show details like person emalil phone address and his full name - Follow Up Deployment

Browse files
Files changed (1) hide show
  1. index.html +177 -27
index.html CHANGED
@@ -3,7 +3,7 @@
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>Hoy Somali - Hotel Booking Platform</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
  <style>
@@ -58,6 +58,10 @@
58
  .tab-active {
59
  border-bottom: 3px solid var(--accent-color);
60
  font-weight: 500;
 
 
 
 
61
  }
62
 
63
  .rating-stars {
@@ -115,10 +119,10 @@
115
  <div class="container mx-auto px-4 py-3 flex justify-between items-center">
116
  <div class="flex items-center space-x-2">
117
  <i class="fas fa-hotel text-2xl text-green-700"></i>
118
- <a href="#" class="text-xl font-bold text-green-700 somali-font">HOY SOMALI</a>
119
  </div>
120
  <div class="hidden md:flex items-center space-x-6">
121
- <a href="#" class="text-gray-700 hover:text-green-700 font-medium">Home</a>
122
  <a href="#hotels" class="text-gray-700 hover:text-green-700 font-medium">Hotels</a>
123
  <a href="#cities" class="text-gray-700 hover:text-green-700 font-medium">Cities</a>
124
  <a href="#about" class="text-gray-700 hover:text-green-700 font-medium">About</a>
@@ -134,7 +138,7 @@
134
  </nav>
135
 
136
  <!-- Hero Section -->
137
- <section class="hero-section text-white py-20">
138
  <div class="container mx-auto px-4">
139
  <div class="max-w-2xl mx-auto text-center">
140
  <h1 class="text-4xl md:text-5xl font-bold mb-6 somali-font">Raadi Hoygaaga Somaliyeed</h1>
@@ -143,14 +147,14 @@
143
  <!-- Search Form -->
144
  <div class="booking-form bg-white rounded-lg p-6">
145
  <div class="flex border-b mb-4">
146
- <button class="tab-active py-2 px-4 font-medium text-gray-800">Hotels</button>
147
- <button class="py-2 px-4 font-medium text-gray-500">Apartments</button>
148
- <button class="py-2 px-4 font-medium text-gray-500">Guest Houses</button>
149
  </div>
150
  <form id="searchForm" class="grid grid-cols-1 md:grid-cols-4 gap-4">
151
  <div>
152
- <label for="city" class="block text-gray-700 text-sm font-medium mb-1">City</label>
153
- <select id="city" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
154
  <option value="">Select City</option>
155
  <option value="mogadishu">Mogadishu</option>
156
  <option value="hargeisa">Hargeisa</option>
@@ -160,12 +164,12 @@
160
  </select>
161
  </div>
162
  <div>
163
- <label for="checkin" class="block text-gray-700 text-sm font-medium mb-1">Check-in</label>
164
- <input type="date" id="checkin" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
165
  </div>
166
  <div>
167
- <label for="checkout" class="block text-gray-700 text-sm font-medium mb-1">Check-out</label>
168
- <input type="date" id="checkout" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500">
169
  </div>
170
  <div class="flex items-end">
171
  <button type="submit" class="w-full btn-primary text-white py-2 px-4 rounded-md font-medium">
@@ -183,9 +187,9 @@
183
  <div class="container mx-auto px-4">
184
  <h2 class="text-3xl font-bold text-center mb-8 text-gray-800">Popular Cities in Somalia</h2>
185
  <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
186
- <!-- City 1 -->
187
  <div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
188
- <img src="https://images.unsplash.com/photo-1573649083345-7e47b5f7b9c2?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Mogadishu" class="w-full h-48 object-cover">
189
  <div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
190
  <h3 class="text-white text-2xl font-bold">Mogadishu</h3>
191
  </div>
@@ -195,9 +199,9 @@
195
  </div>
196
  </div>
197
 
198
- <!-- City 2 -->
199
  <div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
200
- <img src="https://images.unsplash.com/photo-1581434682229-19c5e477b1a1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Hargeisa" class="w-full h-48 object-cover">
201
  <div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
202
  <h3 class="text-white text-2xl font-bold">Hargeisa</h3>
203
  </div>
@@ -207,9 +211,9 @@
207
  </div>
208
  </div>
209
 
210
- <!-- City 3 -->
211
  <div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
212
- <img src="https://images.unsplash.com/photo-1518544866335-95a8a8a7b9c1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Bosaso" class="w-full h-48 object-cover">
213
  <div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
214
  <h3 class="text-white text-2xl font-bold">Bosaso</h3>
215
  </div>
@@ -240,7 +244,7 @@
240
  <h2 class="text-3xl font-bold text-center mb-8 text-gray-800">Featured Hotels</h2>
241
  <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
242
  <!-- Hotel 1 -->
243
- <div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
244
  <div class="relative">
245
  <img src="https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Jazeera Palace Hotel" class="w-full h-48 object-cover">
246
  <div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
@@ -285,7 +289,7 @@
285
  </div>
286
 
287
  <!-- Hotel 2 -->
288
- <div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
289
  <div class="relative">
290
  <img src="https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Maansoor Hotel" class="w-full h-48 object-cover">
291
  <div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
@@ -330,7 +334,7 @@
330
  </div>
331
 
332
  <!-- Hotel 3 -->
333
- <div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300">
334
  <div class="relative">
335
  <img src="https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Bosaso Beach Resort" class="w-full h-48 object-cover">
336
  <div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
@@ -445,6 +449,24 @@
445
  </div>
446
  </section>
447
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  <!-- Call to Action -->
449
  <section class="py-16 bg-green-700 text-white">
450
  <div class="container mx-auto px-4 text-center">
@@ -462,7 +484,7 @@
462
  <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
463
  <div>
464
  <h3 class="text-xl font-bold mb-4 flex items-center">
465
- <i class="fas fa-hotel text-2xl text-green-500 mr-2"></i> HOY SOMALI
466
  </h3>
467
  <p class="text-gray-400">Your trusted partner for hotel bookings across Somalia. We connect travelers with the best accommodations in major Somali cities.</p>
468
  </div>
@@ -518,11 +540,16 @@
518
  </div>
519
  </div>
520
  <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
521
- <p>&copy; 2023 Hoy Somali. All rights reserved.</p>
522
  </div>
523
  </div>
524
  </footer>
525
 
 
 
 
 
 
526
  <!-- Login Modal -->
527
  <div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
528
  <div class="bg-white rounded-lg w-full max-w-md mx-4">
@@ -890,8 +917,34 @@
890
  <option>2 Adults, 2 Children</option>
891
  </select>
892
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
893
  <button type="submit" class="w-full btn-primary text-white py-2 px-4 rounded-md font-medium">
894
- Book Now
895
  </button>
896
  </form>
897
 
@@ -915,6 +968,28 @@
915
  </div>
916
 
917
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
918
  // Language Toggle
919
  const toggleLanguage = document.getElementById('toggleLanguage');
920
  const currentLanguage = document.getElementById('currentLanguage');
@@ -1031,7 +1106,24 @@
1031
 
1032
  document.getElementById('bookingForm').addEventListener('submit', (e) => {
1033
  e.preventDefault();
1034
- alert('Booking functionality would be implemented here');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1035
  hotelDetailsModal.classList.add('hidden');
1036
  });
1037
 
@@ -1046,9 +1138,67 @@
1046
  return;
1047
  }
1048
 
1049
- alert(`Searching for hotels in ${city} from ${checkin} to ${checkout}`);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1050
  });
1051
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1052
  // Mobile menu toggle (would be implemented with more time)
1053
 
1054
  // Date picker initialization (would use a library like flatpickr in a real implementation)
 
3
  <head>
4
  <meta charset="UTF-8">
5
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>HoyDoon - Hotel Booking Platform</title>
7
  <script src="https://cdn.tailwindcss.com"></script>
8
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
9
  <style>
 
58
  .tab-active {
59
  border-bottom: 3px solid var(--accent-color);
60
  font-weight: 500;
61
+ color: var(--secondary-color);
62
+ }
63
+ .tab-inactive {
64
+ color: #6b7280;
65
  }
66
 
67
  .rating-stars {
 
119
  <div class="container mx-auto px-4 py-3 flex justify-between items-center">
120
  <div class="flex items-center space-x-2">
121
  <i class="fas fa-hotel text-2xl text-green-700"></i>
122
+ <a href="#" class="text-xl font-bold text-green-700 somali-font">HoyDoon</a>
123
  </div>
124
  <div class="hidden md:flex items-center space-x-6">
125
+ <a href="#home" class="text-gray-700 hover:text-green-700 font-medium">Home</a>
126
  <a href="#hotels" class="text-gray-700 hover:text-green-700 font-medium">Hotels</a>
127
  <a href="#cities" class="text-gray-700 hover:text-green-700 font-medium">Cities</a>
128
  <a href="#about" class="text-gray-700 hover:text-green-700 font-medium">About</a>
 
138
  </nav>
139
 
140
  <!-- Hero Section -->
141
+ <section id="home" class="hero-section text-white py-20">
142
  <div class="container mx-auto px-4">
143
  <div class="max-w-2xl mx-auto text-center">
144
  <h1 class="text-4xl md:text-5xl font-bold mb-6 somali-font">Raadi Hoygaaga Somaliyeed</h1>
 
147
  <!-- Search Form -->
148
  <div class="booking-form bg-white rounded-lg p-6">
149
  <div class="flex border-b mb-4">
150
+ <button id="hotelsTab" class="tab-active py-2 px-4 font-medium">Hotels</button>
151
+ <button id="apartmentsTab" class="tab-inactive py-2 px-4 font-medium">Apartments</button>
152
+ <button id="guestHousesTab" class="tab-inactive py-2 px-4 font-medium">Guest Houses</button>
153
  </div>
154
  <form id="searchForm" class="grid grid-cols-1 md:grid-cols-4 gap-4">
155
  <div>
156
+ <label for="city" class="block text-black text-sm font-medium mb-1">City</label>
157
+ <select id="city" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 text-black">
158
  <option value="">Select City</option>
159
  <option value="mogadishu">Mogadishu</option>
160
  <option value="hargeisa">Hargeisa</option>
 
164
  </select>
165
  </div>
166
  <div>
167
+ <label for="checkin" class="block text-black text-sm font-medium mb-1">Check-in</label>
168
+ <input type="date" id="checkin" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 text-black">
169
  </div>
170
  <div>
171
+ <label for="checkout" class="block text-black text-sm font-medium mb-1">Check-out</label>
172
+ <input type="date" id="checkout" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500 text-black">
173
  </div>
174
  <div class="flex items-end">
175
  <button type="submit" class="w-full btn-primary text-white py-2 px-4 rounded-md font-medium">
 
187
  <div class="container mx-auto px-4">
188
  <h2 class="text-3xl font-bold text-center mb-8 text-gray-800">Popular Cities in Somalia</h2>
189
  <div class="grid grid-cols-1 sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
190
+ <!-- City 1 - Mogadishu -->
191
  <div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
192
+ <img src="https://images.unsplash.com/photo-1605152276897-4f618f831968?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Mogadishu" class="w-full h-48 object-cover">
193
  <div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
194
  <h3 class="text-white text-2xl font-bold">Mogadishu</h3>
195
  </div>
 
199
  </div>
200
  </div>
201
 
202
+ <!-- City 2 - Hargeisa -->
203
  <div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
204
+ <img src="https://images.unsplash.com/photo-1582468546235-d5e0d6f11690?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Hargeisa" class="w-full h-48 object-cover">
205
  <div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
206
  <h3 class="text-white text-2xl font-bold">Hargeisa</h3>
207
  </div>
 
211
  </div>
212
  </div>
213
 
214
+ <!-- City 3 - Bosaso -->
215
  <div class="relative rounded-lg overflow-hidden shadow-md hover:shadow-lg transition-shadow duration-300">
216
+ <img src="https://images.unsplash.com/photo-1582468546235-d5e0d6f11690?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Bosaso" class="w-full h-48 object-cover">
217
  <div class="absolute inset-0 bg-black bg-opacity-40 flex items-center justify-center">
218
  <h3 class="text-white text-2xl font-bold">Bosaso</h3>
219
  </div>
 
244
  <h2 class="text-3xl font-bold text-center mb-8 text-gray-800">Featured Hotels</h2>
245
  <div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8">
246
  <!-- Hotel 1 -->
247
+ <div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300" data-city="mogadishu">
248
  <div class="relative">
249
  <img src="https://images.unsplash.com/photo-1566073771259-6a8506099945?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Jazeera Palace Hotel" class="w-full h-48 object-cover">
250
  <div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
 
289
  </div>
290
 
291
  <!-- Hotel 2 -->
292
+ <div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300" data-city="hargeisa">
293
  <div class="relative">
294
  <img src="https://images.unsplash.com/photo-1520250497591-112f2f40a3f4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Maansoor Hotel" class="w-full h-48 object-cover">
295
  <div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
 
334
  </div>
335
 
336
  <!-- Hotel 3 -->
337
+ <div class="hotel-card bg-white rounded-lg overflow-hidden shadow-md transition-all duration-300" data-city="bosaso">
338
  <div class="relative">
339
  <img src="https://images.unsplash.com/photo-1551882547-ff40c63fe5fa?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80" alt="Bosaso Beach Resort" class="w-full h-48 object-cover">
340
  <div class="absolute top-2 right-2 bg-yellow-500 text-white px-2 py-1 rounded-md text-sm font-medium">
 
449
  </div>
450
  </section>
451
 
452
+ <!-- About Section -->
453
+ <section id="about" class="py-16 bg-white">
454
+ <div class="container mx-auto px-4">
455
+ <h2 class="text-3xl font-bold text-center mb-8 text-gray-800">About Hoy Somali</h2>
456
+ <div class="max-w-4xl mx-auto">
457
+ <p class="text-gray-600 mb-6">
458
+ Hoy Somali is the leading hotel booking platform in Somalia, connecting travelers with the best accommodations across the country. Our mission is to make travel planning easy and accessible for everyone visiting Somalia.
459
+ </p>
460
+ <p class="text-gray-600 mb-6">
461
+ Founded in 2020, we've partnered with hundreds of hotels, apartments, and guest houses to provide you with a wide selection of options at competitive prices. Whether you're traveling for business or leisure, we've got you covered.
462
+ </p>
463
+ <p class="text-gray-600">
464
+ Our team is based in Mogadishu with local experts in each major city, ensuring we provide the most accurate information and best customer service to our users.
465
+ </p>
466
+ </div>
467
+ </div>
468
+ </section>
469
+
470
  <!-- Call to Action -->
471
  <section class="py-16 bg-green-700 text-white">
472
  <div class="container mx-auto px-4 text-center">
 
484
  <div class="grid grid-cols-1 md:grid-cols-4 gap-8">
485
  <div>
486
  <h3 class="text-xl font-bold mb-4 flex items-center">
487
+ <i class="fas fa-hotel text-2xl text-green-500 mr-2"></i> HoyDoon
488
  </h3>
489
  <p class="text-gray-400">Your trusted partner for hotel bookings across Somalia. We connect travelers with the best accommodations in major Somali cities.</p>
490
  </div>
 
540
  </div>
541
  </div>
542
  <div class="border-t border-gray-700 mt-8 pt-8 text-center text-gray-400">
543
+ <p>&copy; 2023 HoyDoon. All rights reserved.</p>
544
  </div>
545
  </div>
546
  </footer>
547
 
548
+ <!-- Back to Top Button -->
549
+ <button id="backToTopBtn" class="fixed bottom-8 right-8 w-12 h-12 bg-green-700 text-white rounded-full shadow-lg hover:bg-green-800 transition-all duration-300 transform hover:scale-110 hidden z-40">
550
+ <i class="fas fa-arrow-up text-xl"></i>
551
+ </button>
552
+
553
  <!-- Login Modal -->
554
  <div id="loginModal" class="fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50 hidden">
555
  <div class="bg-white rounded-lg w-full max-w-md mx-4">
 
917
  <option>2 Adults, 2 Children</option>
918
  </select>
919
  </div>
920
+
921
+ <!-- Personal Information Fields -->
922
+ <div class="mt-6 mb-4">
923
+ <h5 class="font-bold text-gray-800 mb-3">Personal Information</h5>
924
+ <div class="mb-4">
925
+ <label for="fullName" class="block text-gray-700 text-sm font-medium mb-1">Full Name</label>
926
+ <input type="text" id="fullName" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
927
+ </div>
928
+ <div class="mb-4">
929
+ <label for="email" class="block text-gray-700 text-sm font-medium mb-1">Email Address</label>
930
+ <input type="email" id="email" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
931
+ </div>
932
+ <div class="mb-4">
933
+ <label for="phone" class="block text-gray-700 text-sm font-medium mb-1">Phone Number</label>
934
+ <input type="tel" id="phone" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500" required>
935
+ </div>
936
+ <div class="mb-4">
937
+ <label for="address" class="block text-gray-700 text-sm font-medium mb-1">Address</label>
938
+ <textarea id="address" rows="2" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"></textarea>
939
+ </div>
940
+ <div class="mb-4">
941
+ <label for="specialRequests" class="block text-gray-700 text-sm font-medium mb-1">Special Requests</label>
942
+ <textarea id="specialRequests" rows="2" class="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-green-500"></textarea>
943
+ </div>
944
+ </div>
945
+
946
  <button type="submit" class="w-full btn-primary text-white py-2 px-4 rounded-md font-medium">
947
+ Complete Booking
948
  </button>
949
  </form>
950
 
 
968
  </div>
969
 
970
  <script>
971
+ // Tab Switching
972
+ const hotelsTab = document.getElementById('hotelsTab');
973
+ const apartmentsTab = document.getElementById('apartmentsTab');
974
+ const guestHousesTab = document.getElementById('guestHousesTab');
975
+
976
+ function setActiveTab(activeTab) {
977
+ [hotelsTab, apartmentsTab, guestHousesTab].forEach(tab => {
978
+ tab.classList.remove('tab-active');
979
+ tab.classList.add('tab-inactive');
980
+ });
981
+
982
+ activeTab.classList.add('tab-active');
983
+ activeTab.classList.remove('tab-inactive');
984
+
985
+ // In a real app, you would update the search results here
986
+ console.log(`Showing ${activeTab.textContent.trim()} results`);
987
+ }
988
+
989
+ hotelsTab.addEventListener('click', () => setActiveTab(hotelsTab));
990
+ apartmentsTab.addEventListener('click', () => setActiveTab(apartmentsTab));
991
+ guestHousesTab.addEventListener('click', () => setActiveTab(guestHousesTab));
992
+
993
  // Language Toggle
994
  const toggleLanguage = document.getElementById('toggleLanguage');
995
  const currentLanguage = document.getElementById('currentLanguage');
 
1106
 
1107
  document.getElementById('bookingForm').addEventListener('submit', (e) => {
1108
  e.preventDefault();
1109
+
1110
+ const bookingData = {
1111
+ roomType: selectedRoomSummary.querySelector('h5').textContent,
1112
+ price: selectedRoomSummary.querySelectorAll('span')[1].textContent,
1113
+ checkin: document.getElementById('checkinDate').value,
1114
+ checkout: document.getElementById('checkoutDate').value,
1115
+ guests: document.getElementById('guests').value,
1116
+ fullName: document.getElementById('fullName').value,
1117
+ email: document.getElementById('email').value,
1118
+ phone: document.getElementById('phone').value,
1119
+ address: document.getElementById('address').value,
1120
+ specialRequests: document.getElementById('specialRequests').value
1121
+ };
1122
+
1123
+ // In a real app, you would send this data to your backend
1124
+ console.log('Booking submitted:', bookingData);
1125
+
1126
+ alert(`Booking confirmed for ${bookingData.fullName}!\nWe've sent details to ${bookingData.email}`);
1127
  hotelDetailsModal.classList.add('hidden');
1128
  });
1129
 
 
1138
  return;
1139
  }
1140
 
1141
+ // Hide all hotels first
1142
+ document.querySelectorAll('.hotel-card').forEach(card => {
1143
+ card.style.display = 'none';
1144
+ });
1145
+
1146
+ // Show only hotels in selected city
1147
+ const matchingHotels = document.querySelectorAll(`.hotel-card[data-city="${city}"]`);
1148
+ if (matchingHotels.length > 0) {
1149
+ matchingHotels.forEach(hotel => {
1150
+ hotel.style.display = 'block';
1151
+ });
1152
+
1153
+ // Scroll to hotels section
1154
+ document.getElementById('hotels').scrollIntoView({
1155
+ behavior: 'smooth'
1156
+ });
1157
+ } else {
1158
+ alert(`No hotels found in ${city}`);
1159
+ // Show all hotels if none match
1160
+ document.querySelectorAll('.hotel-card').forEach(card => {
1161
+ card.style.display = 'block';
1162
+ });
1163
+ }
1164
  });
1165
 
1166
+ // Navigation Smooth Scrolling
1167
+ document.querySelectorAll('a[href^="#"]').forEach(anchor => {
1168
+ anchor.addEventListener('click', function (e) {
1169
+ e.preventDefault();
1170
+
1171
+ const targetId = this.getAttribute('href');
1172
+ if (targetId === '#') return;
1173
+
1174
+ const targetElement = document.querySelector(targetId);
1175
+ if (targetElement) {
1176
+ targetElement.scrollIntoView({
1177
+ behavior: 'smooth',
1178
+ block: 'start'
1179
+ });
1180
+ }
1181
+ });
1182
+ });
1183
+
1184
+ // Back to Top Button
1185
+ const backToTopBtn = document.getElementById('backToTopBtn');
1186
+
1187
+ window.addEventListener('scroll', () => {
1188
+ if (window.pageYOffset > 300) {
1189
+ backToTopBtn.classList.remove('hidden');
1190
+ } else {
1191
+ backToTopBtn.classList.add('hidden');
1192
+ }
1193
+ });
1194
+
1195
+ backToTopBtn.addEventListener('click', () => {
1196
+ window.scrollTo({
1197
+ top: 0,
1198
+ behavior: 'smooth'
1199
+ });
1200
+ });
1201
+
1202
  // Mobile menu toggle (would be implemented with more time)
1203
 
1204
  // Date picker initialization (would use a library like flatpickr in a real implementation)