﻿/* Base styles from provided CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  font-weight: 300;
  line-height: 1.6;
  color: #333;
  background-color: #1e1e1e;
  overflow-x: hidden; /* Prevent horizontal overflow */
}

.container {
  margin: 10px 5%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* Navbar styles from provided CSS */
.ml-auto {
  display: flex;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  font-size: 16px;
  position: relative;
  padding: 5px;
}

.nav-link:hover {
  color: #ffffff;
}

/* Search Container */
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: relative;
}

.search-icon:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 2px;
  background: #ffffff;
  transition: width 0.3s ease;
}

/* Search Input */
.search-input {
  position: absolute;
  right: 0;
  opacity: 0;
  width: 0;
  height: 30px;
  border: none;
  border-bottom: 2px solid #ffffff;
  outline: none;
  font-size: 14px;
  transition: width 0.3s ease, opacity 0.3s ease;
  background: transparent;
  color: #ffffff;
  z-index: 10;
  cursor: pointer;
}

.search-container:focus-within .search-input {
  width: 150px;
  opacity: 1;
  cursor: text;
}

/* Language Dropdown */
.language-dropdown {
  position: relative;
  display: inline-block;
}

.language-dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px 0;
  z-index: 1000;
  min-width: 100px;
}

.language-dropdown .dropdown-menu a {
  display: block;
  padding: 5px 15px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
}

.language-dropdown .dropdown-menu a:hover {
  background-color: #f4f4f4;
}

.language-dropdown:hover .dropdown-menu {
  display: block;
}

.navbar {
  top: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  position: fixed;
}

.navbar-brand img {
  width: 75px;
  height: 45.03px;
}

.navbar-dark .navbar-nav .nav-link {
  color: white;
}

.navbar-nav .nav-link {
  position: relative;
  padding: 10px 0;
  transition: transform 0.5s, border-bottom 1s;
}

.navbar-nav .nav-link:hover {
  transform: translateX(-15px);
  border-bottom: 3px solid white;
}

.nav-link {
  color: black !important;
}

.navbar-nav .nav-item {
  margin-left: 15px;
}

.ml-auto .nav-link {
  margin-left: 20px;
}

/* Hero section styles */
.hero-section {
  background-image: url("../Images/Trip/tripheader.webp");
  background-size: cover;
  background-position: center;
  min-height: auto; /* Auto height to fit content */
  padding: 100px 20px 40px; /* Top padding to account for navbar + content spacing */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  position: relative;
  margin-top: 40px; /* To account for fixed navbar */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
}

@media (max-width: 992px) {
  .hero-section {
    height: 107vh;
  }
}

@media (max-width: 768px) {
  .hero-section {
    height: 110vh;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  color: white;
  width: 100%;
  max-width: 400px; /* Match form width on mobile */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-content h1 {
  margin: 10px auto !important;
  font-size: 28px;
  font-weight: 700;
}

.hero-content p {
  margin: 0 0 20px 0 !important;
  font-size: 14px;
  text-align: left;
}

/* Trip planner styles */
.trip-planner-container {
  width: 100%;
  max-width: 400px;
  margin: 0;
}

.trip-planner {
  background-color: white;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.date-picker {
  display: flex;
  align-items: center;
  padding: 0 0 15px 0;
  border-right: none;
  border-bottom: 1px solid #eee;
  width: 100%;
  color: #333;
  margin-bottom: 15px;
}

.date-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  width: 100%;
}

.date-input {
  border: none;
  background: transparent;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  width: 100%;
  pointer-events: none; /* Make sure the input itself doesn't interfere with the flatpickr */
}

.date-input:focus {
  outline: none;
}

.date-picker i {
  color: #666;
}

.people-counter {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 0;
  width: 100%;
  margin-bottom: 20px;
}

.counter-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 5px 0;
}

.counter-group label {
  font-size: 14px;
  color: #333;
  margin-bottom: 0;
}

.counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

main {
  padding-bottom: 0 !important;
}

.footer {
  padding: 50px !important;
}

.counter-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #f0f0f0;
  color: #333;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.counter-btn:hover {
  background-color: #e0e0e0;
}

.count-input {
  width: 30px;
  text-align: center;
  border: none;
  background: transparent;
  font-weight: 500;
  color: #333;
}

.next-step {
  width: 100%;
}

.next-btn {
  background-color: #000;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background-color 0.2s;
  width: 100%;
}

.next-btn:hover {
  background-color: #333;
}

/* Footer styles */
.footer {
  background-color: #000;
  color: #fff;
  padding: 150px 0;
  width: 100%;
}

.footer-logo {
  margin-left: 15%;
  font-size: 3rem;
  font-weight: bold;
}

.footer-section-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 15px;
}

.footer-link {
  color: #bbb;
  text-decoration: none;
  font-size: 1rem;
}

.footer-link:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-contact p,
.footer-about p,
.footer-links p {
  margin: 5px 0;
}

/* Flatpickr customization */
.flatpickr-calendar {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected {
  background: #000;
  border-color: #000;
}

.flatpickr-day.selected:hover {
  background: #333;
  border-color: #333;
}

/* Fix for form container */
form {
  width: 100%;
  max-width: 400px;
}

.transport-option-group.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.transport-option-group.disabled .transport-header {
  cursor: not-allowed;
  background-color: #f5f5f5;
}

.transport-option-group.disabled .transport-name {
  color: #999;
}

.unavailable-message {
  padding: 10px;
  background-color: #f9f9f9;
  border-left: 3px solid #ddd;
  margin-top: 5px;
}

.unavailable-message p {
  margin: 0;
  color: #666;
  font-style: italic;
  font-size: 14px;
}

@media (min-width: 480px) {
  .hero-content {
    max-width: 450px;
  }

  .hero-content p,
  h1 {
    margin: 0 !important;
  }

  .trip-planner-container,
  form {
    max-width: 450px;
  }

  .hero-content h1 {
    text-align: center;
    font-size: 30px;
  }

  .hero-content p {
    font-size: 15px;
  }
}

/* Medium tablets - FOCUSED FIX FOR 600-780px RANGE */
@media (min-width: 600px) and (max-width: 780px) {
  .hero-section {
    padding: 80px 20px 40px;
  }

  .hero-content {
    max-width: 540px;
    margin: 0 auto;
  }

  .hero-content h1 {
    font-size: 32px;
    margin-top: 20px !important;
    margin-bottom: 15px !important;
    text-align: center;
  }

  .hero-content p {
    font-size: 15px;
    margin: 0 auto 30px !important;
    text-align: center;
  }

  .trip-planner-container,
  form {
    max-width: 540px;
    margin: 0 auto;
  }

  /* Keep the mobile vertical layout but with improved spacing */
  .trip-planner {
    padding: 25px;
  }

  .date-picker {
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  /* Make the people counter more tablet-friendly */
  .people-counter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
  }

  .counter-group {
    width: 100%;
  }

  /* Make the button look better */
  .next-btn {
    padding: 15px 20px;
  }
}
@media (min-width: 576px) {
  .hero-content {
    margin: 100px auto 0 !important;
  }
}

/* Large tablets and small laptops */
@media (min-width: 781px) {
  .hero-section {
    min-height: auto;
    padding: 40px 20px;
    align-items: center;
    text-align: center;
  }

  .hero-content {
    max-width: 700px;
    align-items: center;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 38px;
    text-align: center;
    margin-top: 60px !important;
  }

  .hero-content p {
    font-size: 16px;
    text-align: center;
    margin: 0 auto 60px !important;
  }

  .trip-planner-container,
  form {
    max-width: 700px;
    margin: 0 auto;
  }

  /* Transition to horizontal layout */
  .trip-planner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 25px;
  }

  .date-picker {
    flex: 1 1 100%;
    margin-bottom: 20px;
  }

  .people-counter {
    flex: 1 1 60%;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0;
    padding-right: 20px;
  }

  .counter-group {
    width: auto;
  }

  .next-step {
    flex: 1 1 35%;
    display: flex;
    align-items: center;
  }

  .next-btn {
    width: 100%;
  }
}

/* Medium laptops and desktops */
@media (min-width: 992px) {
  .hero-content {
    max-width: 900px;
  }

  .hero-content h1 {
    font-size: 40px;
    margin-top: 80px !important;
  }

  .hero-content p {
    margin-bottom: 80px !important;
  }

  .trip-planner-container,
  form {
    max-width: 900px;
  }

  .trip-planner {
    align-items: center;
    flex-wrap: nowrap;
  }

  .date-picker {
    flex: 1;
    border-right: 1px solid #eee;
    border-bottom: none;
    padding-right: 20px;
    padding-bottom: 0;
    margin-bottom: 0;
  }

  .people-counter {
    flex: 2;
    padding: 0 20px;
    border-right: 1px solid #eee;
  }

  .counter-group {
    flex-direction: column;
  }

  .counter-group label {
    margin-bottom: 8px;
  }

  .next-step {
    flex: 1;
    text-align: right;
  }

  .next-btn {
    width: auto;
    display: inline-flex;
    justify-content: center;
    gap: 10px;
  }
}

/* Large desktops */
@media (min-width: 1200px) {
  .hero-content {
    max-width: 1000px;
  }

  .hero-content h1 {
    font-size: 42px;
    margin-top: 100px !important;
  }

  .hero-content p {
    margin-bottom: 100px !important;
  }

  .trip-planner-container,
  form {
    max-width: 1000px;
  }
}

/* Fix for very small screens */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 24px;
  }

  .hero-content p {
    font-size: 12px;
  }

  .trip-planner {
    padding: 15px;
  }
}

/* Ensure smooth transitions between breakpoints */
.hero-section,
.hero-content,
.trip-planner-container,
.trip-planner,
.date-picker,
.people-counter,
.next-step,
.next-btn {
  transition: all 0.3s ease-in-out;
}
