body {
    background-color: white;
    font-family: "Plus Jakarta Sans", "Noto Sans", sans-serif;
    margin: 0;
    color: #111827;
  }
  
  /* Header */
  .header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem; /* Adjusted padding for mobile */
  }
  .header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
  }
  .logo-icon {
    width: 1rem;
    height: 1rem;
    color: #111827;
  }
  .header-title {
    font-size: 1.125rem;
    font-weight: bold;
  }
  .header-right {
    display: flex;
    align-items: center;
    gap: 1rem; /* Adjusted gap for mobile */
  }
  .abc{
    color: black;
    text-decoration: none;
  }

  /* Mobile-first: Hide nav and help button by default */
  .nav-links {
    display: none;
  }

  .help-btn {
    display: none;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    background-color: #f3f4f6;
    font-weight: bold;
    font-size: 0.875rem;
    text-decoration: none;
    color: inherit;
  }

  /* Hamburger menu icon - visible on mobile */
  .menu-icon {
    display: block;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
  }
  .menu-icon .bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: all 0.3s ease-in-out;
    background-color: #111827;
  }

  /* Overlay menu for mobile */
  .overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
  }
  .overlay-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .overlay-menu a {
    font-size: 1.5rem;
    padding: 1rem 2rem;
    color: #111827;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    border-radius: 8px;
    margin: 0.5rem 0;
  }
  .overlay-menu a:hover {
    color: #6b7280;
    background-color: rgba(243, 244, 246, 0.5);
  }

  /* Avatar */
  .avatar {
    background-size: cover;
    background-position: center;
    border-radius: 9999px;
    width: 2.5rem;
    height: 2.5rem;
  }

  /* Route Details */
  .route-container {
    padding: 1rem; /* Adjusted padding for mobile */
  }
  .page-heading h1 {
    font-size: 1.375rem; /* Adjusted font size for mobile */
    font-weight: bold;
  }
  .page-heading p {
    font-size: 0.8rem; /* Adjusted font size for mobile */
    color: #6b7280;
    margin-bottom: 1rem;
  }
  .map-placeholder {
    height: 200px; /* Adjusted height for mobile */
    background-color: #f3f4f6;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
  }
  .map-placeholder p {
    color: #6b7280;
  }
  .route-info h3 {
    font-size: 1.125rem; /* Adjusted font size for mobile */
    font-weight: bold;
  }
  .route-info ul {
    padding-left: 1rem; /* Adjusted padding for mobile */
  }
  .route-info li {
    list-style-type: disc;
    margin-bottom: 0.25rem;
  }
  
  /* Footer */
  .footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9fafb;
    padding: 2.5rem 0;
    gap: 1.5rem;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }
  .footer-links a {
    color: #6b7280;
    padding: 8px 12px; /* Add padding for better touch target */
    border-radius: 4px;
  }
  .footer p {
    color: #6b7280;
    font-size: 0.875rem;
    text-align: center;
  }
  .abc{
    color: black;
  }

  /* Media query for larger screens (e.g., tablets and desktops) */
  @media (min-width: 768px) {
    .header {
      padding: 0.75rem 2.5rem;
    }
    .header-right {
      gap: 2rem;
    }
    
    /* Show nav links and help button on desktop */
    .nav-links {
      display: flex;
      gap: 2.25rem;
    }
    .nav-links a {
      font-size: 0.875rem;
      font-weight: 500;
      text-decoration: none;
    }
    .help-btn {
      display: block;
    }
    
    /* Hide hamburger menu on desktop */
    .menu-icon {
      display: none;
    }
    
    /* Ensure overlay menu is never shown on desktop */
    .overlay-menu {
      display: none !important;
    }
    .route-container {
      padding: 2rem 10rem; /* Original padding for larger screens */
    }
    .page-heading h1 {
      font-size: 1.5rem; /* Original font size for larger screens */
    }
    .page-heading p {
      font-size: 0.875rem; /* Original font size for larger screens */
    }
    .map-placeholder {
      height: 300px; /* Original height for larger screens */
    }
  }

  .step-card {
    display: flex;
    flex-direction: column; /* Stack image and text vertically */
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  }

  .step-card.show {
    opacity: 1;
    transform: translateY(0);
  }

  .bus-img-container {
    width: 100%;
    max-width: 150px; /* Adjust as needed for desired size */
    height: auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease-out;
  }

  .step-card.show .bus-img-container {
    transform: scale(1);
    opacity: 1;
  }

  .bus-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
  }

  .result-info-p.generated {
    text-align: center;
    margin-bottom: 0;
  }

  @media (min-width: 768px) {
    .step-card {
      flex-direction: row; /* Horizontal layout on larger screens */
      justify-content: flex-start;
      padding: 1rem;
      gap: 1.5rem;
    }

    .bus-img-container {
      max-width: 200px; /* Larger images on desktop */
    }
  }