body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: url("bg.jpeg") no-repeat center center fixed;
  background-size: cover;
  background-attachment: fixed;
  color: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: -1;
}

/* Header */
header {
  background: #0077cc;
  color: white;
  padding: 1rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.header-left {
  text-align: left;
}
.header-logo img {
  height: 120px;
  max-width: 200px;
}
.header-right {
  text-align: right;
}
.header-right a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
  font-weight: bold;
}

/* Main Content */
main {
  flex: 1 0 auto; /* Grow and shrink but never less than content */
  padding: 2rem;
  text-align: center;
  padding-bottom: 70px; /* to avoid overlap with fixed footer */
}

/* Search Bar and Results */
.search-container {
  position: relative;
  max-width: 400px;
  margin: 20px auto;
}
#searchBar {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
}
#results {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: white;
  position: absolute;
  width: 100%;
  max-height: 200px;
  overflow-y: auto;
  display: none;
  z-index: 100;
}
#results li {
  padding: 10px;
  cursor: pointer;
  color: #333;
}
#results li:hover {
  background: #f0f0f0;
}

/* Frequently Visited Itineraries */
.frequent-itineraries {
  max-width: 400px;
  margin: 20px auto;
  padding: 15px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  text-align: center;
}
.frequent-itineraries h2 {
  color: #ffd700;
  margin-bottom: 12px;
  font-size: 1.3rem;
}
.frequent-itineraries ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.frequent-itineraries li {
  padding: 8px;
  margin: 6px 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.frequent-itineraries li:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* About Us Page */
.about-page {
  max-width: 800px;
  margin: auto;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 12px;
  text-align: left;
  line-height: 1.6;
}
.about-page h1,
.about-page h2 {
  color: #ffd700;
  margin-bottom: 10px;
}
.about-page p,
.about-page li {
  color: #f0f0f0;
  margin-bottom: 12px;
}

/* Footer Styling - fixed at bottom */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px 0;
  text-align: center;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  margin-top: 0;
}

/* Footer container */
.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 650px;
  gap: 0;
  margin: 0 auto;
}

/* Footer buttons equally wide */
.footer-social a {
  flex: 1 1 0;
  padding: 10px 0;
  border-radius: 6px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background-color 0.3s;
  border: none;
  margin: 0;
}

/* Background colors */
.footer-social a.whatsapp {
  background: #25d366;
}
.footer-social a.call {
  background: #0077cc;
}
.footer-social a.instagram {
  background: #d6249f;
}
/* Footer fixed at bottom */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw; /* full viewport width explicitly */
  background: rgba(0, 0, 0, 0.8);
  padding: 0; /* remove vertical padding to avoid shrinking content */
  z-index: 9999;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Footer social container fills footer */
.footer-social {
  display: flex;
  width: 100%;
  max-width: 100vw; /* ensure full width */
  margin: 0;
  padding: 0;
  gap: 0;
}

/* Each link takes equal width and full height */
.footer-social a {
  flex-grow: 1;
  flex-basis: 0;
  padding: 15px 0;
  margin: 0;
  text-align: center;
  font-weight: bold;
  color: white;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: 0;
  white-space: nowrap;
  transition: background-color 0.3s ease;
  user-select: none;
}

/* Colored backgrounds */
.footer-social a.whatsapp {
  background: #25d366;
}
.footer-social a.call {
  background: #0077cc;
}
.footer-social a.instagram {
  background: #d6249f;
}

/* Hover effect */
.footer-social a:hover {
  filter: brightness(0.85);
}

/* Instagram icon styling */
.footer-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

/* Remove default padding/margin on footer and main */
main {
  padding-bottom: 60px; /* give space for footer */
}

/* Responsive: stack vertically with spacing */
@media (max-width: 600px) {
  footer {
    flex-direction: column;
    padding: 10px 0;
    height: auto;
    width: 100%;
    bottom: 0;
  }
  .footer-social {
    flex-direction: column;
    gap: 10px;
    max-width: 100vw;
  }
  .footer-social a {
    flex-grow: 0;
    padding: 12px 0;
  }
}
