/* =============================
   Global Styles
============================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: #f4f6fc;
  color: #222;
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: auto;
}

/* =============================
   Header
============================= */
header {
  background: #0f486e; /* MAIN THEME COLOR */
  padding: 16px 0;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 22px;
  font-weight: 700;
}

/* Desktop Nav */
nav {
  display: flex;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 500;
  transition: 0.25s;
}

nav ul li a:hover {
  background: rgba(255,255,255,0.18);
}

/* =============================
   Mobile Menu
============================= */
header {
    background: #0f486e;
    padding: 12px 0;
}

/* Container */
.nav-container {
    width: 90%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
}

/* PC menu */
.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-size: 17px;
}

/* Mobile Toggle Button */
.menu-toggle {
    font-size: 30px;
    display: none;
    cursor: pointer;
    user-select: none;
}

/* Mobile View */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #0f486e;
        width: 200px;
        padding: 20px;
        display: none;
        flex-direction: column;
        gap: 15px;
    }

    .nav-links.active {
        display: flex;
    }
}


/* =============================
   Search Box
============================= */
.search-box {
  background: #fff;
  padding: 22px;
  margin: 28px 0;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.12);
}

.search-box h2 {
  margin-bottom: 12px;
  color: #0f486e;
  font-weight: 600;
}

.search-box input {
  width: 100%;
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 15px;
}

.search-box button {
  width: 100%;
  background: #0f486e;
  padding: 12px 14px;
  color: white;
  border: none;
  border-radius: 8px;
  margin-top: 10px;
  cursor: pointer;
  font-size: 16px;
}

.search-box button:hover {
  background: #0c3a56;
}

/* =============================
   Popular Route Cards
============================= */
.routes h2 {
  margin-bottom: 15px;
  color: #0f486e;
}

.route-item {
  background: #fff;
  padding: 14px;
  margin: 10px 0;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
  border-left: 5px solid #0f486e;
  box-shadow: 0 1px 6px rgba(0,0,0,0.1);
  transition: 0.25s;
}

.route-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

/* =============================
   Footer
============================= */
footer {
  background: #0f486e;
  padding: 30px 0;
  text-align: center;
  color: #fff;
  margin-top: 40px;
}

.footer-box .footer-title {
  font-size: 22px;
  font-weight: 700;
}

.footer-sub {
  margin-top: 4px;
  opacity: 0.9;
}

.social-row {
  margin: 15px 0;
}

.social-btn img {
  width: 28px;
  margin: 0 6px;
  filter: brightness(0) invert(1);
}

.footer-links a {
  margin: 0 10px;
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-copy {
  opacity: 0.8;
  margin-top: 10px;
}



/* =============================
   NAVBAR VISIBILITY / SLIDE FIX
   (Paste this at the very end of your CSS)
============================= */

/* Ensure desktop nav always shows */
@media (min-width: 769px) {
  nav { display: block !important; }          /* keep nav block in desktop */
  nav ul { display: flex !important; }        /* show list horizontally */
  .menu-icon { display: none !important; }    /* hide hamburger on desktop */
  /* Make sure mobile panel doesn't overlay or shift desktop layout */
  #navbar { position: static !important; right: auto !important; width: auto !important; height: auto !important; background: transparent !important; box-shadow: none !important; padding-top: 0 !important; }
  #closeMenu { display: none !important; }
}

/* Mobile / slide panel behavior */
@media (max-width: 768px) {
  /* Ensure the slide panel is above header and visible */
  #navbar {
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    width: 320px !important;
    height: 100vh !important;
    background: #0f486e !important;
    padding-top: 70px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: right 0.35s cubic-bezier(.2,.9,.2,1) !important;
    box-shadow: -6px 0 18px rgba(0,0,0,0.32) !important;
    z-index: 1200 !important;      /* above header */
    visibility: visible !important;
  }

  /* When opened slide fully in */
  #navbar.open {
    right: 0 !important;
  }

  /* Ensure list items inside panel are shown vertically */
  #navbar ul {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    padding-left: 20px !important;
  }

  /* Make sure close button is on top */
  #closeMenu {
    position: fixed !important;
    top: 18px !important;
    right: 22px !important;
    font-size: 28px !important;
    color: #fff !important;
    cursor: pointer !important;
    z-index: 1250 !important;
    display: block !important;
  }

  /* Ensure link color visible */
  #navbar ul li a,
  #navbar a {
    color: #fff !important;
    opacity: 1 !important;
    text-decoration: none !important;
  }
}

/* Extra: make sure nav ul globally visible unless explicitly hidden elsewhere */
nav ul { display: flex !important; }

/* Auto Suggest Box Styles */
.suggestion-box {
    position: relative;
}

.suggestion-output {
    position: absolute;
    background: #fff;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
}

.suggestItem {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.suggestItem:last-child {
    border-bottom: none;
}

.suggestItem:hover {
    background: #f4f6fc;
}

.suggestion-box {
    position: relative;
}

.suggestion-output {
    position: absolute;
    background: #fff;
    width: 100%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    border-radius: 8px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 9999;
}

.suggestItem {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 15px;
    border-bottom: 1px solid #eee;
}

.suggestItem:hover {
    background: #f4f6fc;
}

