/* Base Styles */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #000;
  transition: background 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4 {
  margin: 0 0 15px;
  font-weight: 600;
  text-align: center;
}

a { color: inherit; text-decoration: none; }

/* Top Bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffffd9;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
}

.brand {
  font-weight: 700;
  display: flex;
  gap: 8px;
  align-items: center;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.auth-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  background: #ffd26a;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.auth-btn:hover { background: #e0b84c; }

/* Profile mini menu */
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}
.profile .avatar {
  width: 34px; height: 34px;
  border-radius: 50%; object-fit: cover;
  border: 2px solid #ffd26a;
}
.profile .name {
  font-weight: 600;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile .menu-btn {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
}
.profile .dropdown {
  position: absolute;
  top: 110%;
  right: 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  min-width: 180px;
  display: none;
}
.profile .dropdown.open { display: block; }
.profile .dropdown a,
.profile .dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
}
.profile .dropdown a:hover,
.profile .dropdown button:hover {
  background: #fafafa;
}

/* Dark Mode */
body.dark { background: #121212; color: #f0f0f0; }
body.dark .package-card,
body.dark .booking-form,
body.dark .confirmation-box,
body.dark .booking-container { background-color: #1f1f1f; color: #fff; }
body.dark .site-footer { background-color: #1a1a1a; }
body.dark .discount-card { background: rgba(30, 30, 30, 0.9) !important; }
body.dark .topbar { background: #151515e6; border-color: #222; }
body.dark .profile .dropdown { background: #1f1f1f; border-color: #2a2a2a; }

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active { opacity: 1; }

.hero-overlay {
  position: relative;
  z-index: 2;
  background: rgba(0, 0, 0, 0.4);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 30px;
  text-align: center;
}
.hero-overlay h1 { font-size: 48px; }
.hero-overlay p { font-size: 20px; margin-bottom: 20px; }

.book-btn {
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  background-color: #ffd26a;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.book-btn:hover { background-color: #e0b84c; }

/* Discount Offers */
.discount-offers {
  display: flex; justify-content: center; gap: 20px;
  margin-top: 30px; flex-wrap: wrap;
}
.discount-card {
  position: relative;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  padding: 25px; width: 280px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease; overflow: hidden;
}
.discount-card:hover { transform: translateY(-5px); }
.discount-card.winter {
  background: linear-gradient(135deg, rgba(23, 107, 135, 0.9), rgba(100, 181, 246, 0.9));
  color: white;
}
.discount-card.summer {
  background: linear-gradient(135deg, rgba(239, 108, 0, 0.9), rgba(255, 167, 38, 0.9));
  color: white;
}
.discount-badge {
  position: absolute; top: -10px; right: -10px;
  background: #ff4081; color: white; font-weight: bold;
  font-size: 1.2rem; padding: 8px 15px; border-radius: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); transform: rotate(15deg);
}
.discount-card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.discount-card p { font-size: 0.95rem; margin-bottom: 20px; opacity: 0.9; }
.discount-btn {
  background: white; color: #003580; border: none; padding: 10px 20px;
  border-radius: 30px; font-weight: bold; cursor: pointer; transition: all 0.3s ease;
}
.discount-btn:hover { background: #003580; color: white; transform: scale(1.05); }

/* Booking Section */
.booking-section { max-width: 1200px; margin: 40px auto; padding: 0 20px; }
.booking-tabs {
  display: flex; justify-content: center;
  background-color: #003580; padding: 10px; border-radius: 5px 5px 0 0;
}
.booking-tab {
  color: white; padding: 10px 20px; font-weight: bold; cursor: pointer;
}
.booking-tab.active { background-color: #ff6d00; border-radius: 4px; }

.booking-container {
  border: 1px solid #ddd; border-radius: 0 0 5px 5px;
  padding: 20px; background-color: white; display: none;
}
.booking-container.active { display: block; }
.trip-type { display: flex; margin-bottom: 15px; flex-wrap: wrap; }
.trip-option { margin-right: 15px; margin-bottom: 10px; }
.search-fields { display: flex; flex-wrap: wrap; gap: 10px; }
.search-field { flex: 1; min-width: 200px; }
.search-fields input, .search-fields select {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 1rem;
}
.search-btn {
  background-color: #ff6d00; color: white; border: none; padding: 12px 25px;
  border-radius: 4px; cursor: pointer; font-weight: bold; margin-top: 10px; font-size: 1rem;
  transition: background-color 0.3s;
}
.search-btn:hover { background-color: #e65c00; }
.phone-deal { text-align: center; margin-top: 20px; font-style: italic; color: #666; }

/* Package combo options */
.combo-options { display: flex; gap: 15px; margin-bottom: 20px; }
.combo-option { padding: 10px 15px; background-color: #f5f5f5; border-radius: 4px; cursor: pointer; }
.combo-option.active { background-color: #003580; color: white; }

/* Packages Section */
.packages { padding: 60px 20px; background: #f8f8f8; }
.package-grid { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }
.package-card {
  background: #fff; width: 280px; border-radius: 10px; overflow: hidden;
  box-shadow: 0 0 8px rgba(0,0,0,0.1); text-align: center; transition: transform 0.3s ease;
}
.package-card:hover { transform: translateY(-5px); }
.package-card img { width: 100%; height: 180px; object-fit: cover; }
.package-card h3 { margin: 10px 0 5px; }
.package-card button {
  margin-bottom: 15px; padding: 8px 16px; background: #ffd26a; border: none; border-radius: 4px; cursor: pointer;
}
.package-card button:hover { background: #e0b84c; }

/* Testimonials */
.testimonials { padding: 40px 20px; background: #fff; }
.testimonial-slider { max-width: 700px; margin: auto; text-align: center; }
.testimonial { display: none; }
.testimonial.active { display: block; }
.testimonial p { font-style: italic; font-size: 18px; }
.testimonial h4 { margin-top: 10px; font-weight: 400; color: #999; }

/* Booking & Confirmation Modals */
.booking-modal,
.confirmation-modal,
.auth-modal {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; z-index: 2000;
}
.hidden { display: none; }

.booking-form, .confirmation-box, .auth-box {
  background: #fff; color: #000; padding: 30px; border-radius: 10px;
  width: 90%; max-width: 450px; position: relative; box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.booking-form h2, .confirmation-box h3 { text-align: center; }

.booking-form input, .booking-form select,
.auth-box input {
  width: 100%; padding: 10px; margin: 8px 0; border-radius: 6px; border: 1px solid #ccc;
}
.booking-form button, .auth-box button {
  background: #ffd26a; font-weight: bold; border: none; padding: 10px 16px; border-radius: 6px; cursor: pointer;
}
.booking-form button:hover, .auth-box button:hover { background: #e0b84c; }

.close-btn, .close-confirm, .close-auth {
  position: absolute; top: 12px; right: 14px;
  width: 34px; height: 34px; line-height: 34px; text-align: center;
  border-radius: 50%; background: #fff; color: #000;
  border: 1px solid #eee; cursor: pointer; font-size: 20px; font-weight: 700;
}
.close-confirm { position: relative; top: auto; right: auto; margin-top: 12px; border-radius: 6px; width: auto; height: auto; line-height: 1; }

.google-btn-holder { display: flex; justify-content: center; margin-bottom: 10px; }
.divider {
  display: flex; align-items: center; gap: 10px; color: #888; margin: 10px 0 6px;
}
.divider::before, .divider::after {
  content: ""; height: 1px; background: #eee; flex: 1;
}
.auth-switch { text-align: center; margin-top: 10px; font-size: 14px; }
.auth-switch a { color: #003580; text-decoration: underline; }

/* Footer */
.site-footer {
  background: #333; color: #fff; text-align: center; padding: 25px 10px;
  font-size: 14px; margin-top: 60px;
}
.site-footer a { color: #ffd26a; }

/* Car Grid Layout */
.car-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.car-card {
  background: rgba(255,255,255,0.08); padding: 15px; border-radius: 12px;
  width: 250px; text-align: center; backdrop-filter: blur(8px); transition: transform 0.3s ease;
}
.car-card:hover { transform: translateY(-5px); }
.car-image-container { position: relative; overflow: hidden; border-radius: 10px; }
.car-image { width: 100%; height: 160px; object-fit: cover; display: block; border-radius: 8px; }
.car-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%; padding: 8px;
  background: rgba(0, 0, 0, 0.5); font-size: 14px; display: flex; justify-content: space-around; color: #fff;
}
.car-features { display: flex; justify-content: center; gap: 12px; margin: 8px 0; }
.select-car {
  background: #ffd369; border: none; padding: 10px 16px; font-size: 14px; font-weight: bold; color: #000;
  border-radius: 6px; cursor: pointer; transition: background 0.3s ease;
}
.select-car:hover { background: #e0b84c; }

/* ========= UNIFIED SUBMIT BUTTON ========= */
.unified-submit {
  margin-top: 30px;
  text-align: center;
}

.submit-all-btn {
  background-color: #003580;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background-color 0.3s;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.submit-all-btn:hover {
  background-color: #002366;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Dark mode for submit button */
body.dark .submit-all-btn {
  background-color: #ff6d00;
}

body.dark .submit-all-btn:hover {
  background-color: #e65c00;
}

/* ========= CAR BOOKING SECTION ENHANCEMENTS ========= */
.car-options {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0, 53, 128, 0.05);
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-overlay h1 { font-size: 32px; }
  .package-card { width: 90%; }
  .discount-offers { flex-direction: column; align-items: center; }
  .discount-card { width: 100%; max-width: 300px; }
  .booking-tabs { flex-wrap: wrap; }
  .booking-tab { padding: 8px 12px; font-size: 0.9rem; }
  .search-field { min-width: 100%; }
  .name { display: none; }
  
  /* Unified submit button responsive */
  .submit-all-btn {
    width: 100%;
    padding: 12px;
  }
  
  .car-grid {
    grid-template-columns: 1fr;
  }
}