/* Navbar, hero/slider, page sections, footer */

/* ── Navbar ──────────────────────────────────────────────────────────────── */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand img { height: 40px; width: auto; }

/* Hamburger button */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: var(--sp-sm);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111111;
  margin: 5px 0;
  transition: var(--t);
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--sp-xs);
}

.nav-menu a {
  position: relative;
  display: block;
  padding: 8px 12px;
  color: #111111;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--t);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 0;
  width: 0; height: 2px;
  background: #ffc107;
  transform: translateX(-50%);
  transition: width var(--t);
}

.nav-menu a:hover,
.nav-menu a.active { color: #111111; }

.nav-menu a:hover::after,
.nav-menu a.active::after { width: 80%; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  height: clamp(440px, 62vh, 620px);
  overflow: hidden;
  background: var(--c-navy-dark);
}

.hero-bg-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: kenBurns 20s infinite alternate ease-in-out;
}

@keyframes kenBurns {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

/* Updated Scrim to bottom-heavy gradient */
.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 40px; 
}

.hero-title {
  color: var(--c-white);
  font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 0.9rem + 1vw, 1.25rem);
  font-weight: 500;
  max-width: 600px;
}

/* Entrance Animations */
.animate-hero-text {
  opacity: 0;
  animation: fadeInUp 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
}

.animate-hero-text.delay-1 {
  animation-delay: 0.2s;
}

.animate-on-load {
  opacity: 0;
  animation: slideUpFade 0.8s forwards cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-delay: 0.4s;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Search (floats over the hero's bottom edge) ─────────────────────────── */

.search-shell {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}

.search-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--r-lg);
  box-shadow: 0 10px 30px rgba(0, 27, 77, 0.15), 0 1px 3px rgba(0,0,0,0.05);
  padding: var(--sp-lg);
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--sp-md);
}

.search-fields {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: var(--sp-md);
  flex: 1 1 480px;
}

.location-group {
  display: contents;
}

.search-field { 
  flex: 1 1 140px; 
  min-width: 0; 
}

.search-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin: 0 0 6px;
}

.search-submit { flex: 0 0 auto; white-space: nowrap; }

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 12px;
  color: var(--c-text-muted);
  pointer-events: none;
}

.filter-control {
  width: 100%;
  height: 52px; /* slightly taller */
  padding: 8px 14px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-white);
  font-family: inherit;
  font-size: 16px;
  color: var(--c-text);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: all var(--t);
  font-weight: 500;
}

.filter-control.has-icon {
  padding-left: 40px;
}

.filter-control:focus {
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px var(--c-blue-ring);
  background: #fff;
}

select.filter-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* Webkit Date Picker adjustments */
input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.6;
  transition: 0.2s;
}
input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Swap button */
.search-swap-container {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px; /* aligns with inputs, accounting for labels */
}

.btn-swap {
  background: var(--c-bg-light);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-navy);
  transition: all var(--t);
  cursor: pointer;
}

.btn-swap:hover {
  background: var(--c-blue-soft);
  color: var(--c-blue);
  transform: rotate(180deg);
  border-color: var(--c-blue-light);
}

.btn-search.with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 24px;
  height: 52px;
  font-size: 16px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-blue-hover));
  border: none;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
  transition: all var(--t);
}

.btn-search.with-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.4);
}

.quick-routes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin: var(--sp-md) 0 0;
}

.route-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--c-navy-dark);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  transition: all var(--t);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.route-chip .chip-icon {
  color: var(--c-orange);
  transition: all var(--t);
}

.route-chip:hover { 
  background: var(--c-white); 
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.route-chip:focus-visible {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

/* ── Results section ─────────────────────────────────────────────────────── */

#resultsSection { display: none; }

/* Direction containers */
#badullaSection,
#colomboSection { display: none; }

/* ── Static content sections ─────────────────────────────────────────────── */

.static-section {
  padding: var(--sp-2xl) 0;
}

.section-heading {
  text-align: center;
  margin-bottom: var(--sp-lg);
  font-weight: 700;
  color: var(--c-navy-dark);
}

/* ── Footer ──────────────────────────────────────────────────────────────── */

.site-footer {
  background: linear-gradient(135deg, #041e4f, #0b3e9c);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 30px;
  border-top: 5px solid var(--c-blue-light);
  margin-top: var(--sp-2xl);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg); /* 24px — matches Bootstrap 5 gutter */
}

/* 5 : 3 : 4 ratio, same as Bootstrap col-md-5 / col-md-3 / col-md-4 */
.footer-brand     { flex: 5 1 200px; }
.footer-links-col { flex: 3 1 140px; }
.footer-partners  { flex: 4 1 180px; }

.site-footer h5 {
  color: var(--c-white);
  font-weight: 600;
  margin-bottom: var(--sp-lg);
  position: relative;
  display: inline-block;
}

.site-footer h5::after {
  content: '';
  position: absolute;
  left: 0; bottom: -5px;
  width: 40px; height: 2px;
  background: var(--c-blue-light);
}

.footer-desc {
  opacity: 0.8;
  font-size: 0.9rem;
  max-width: 90%;
  line-height: 1.6;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  padding: 0; margin: 0;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all var(--t);
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--c-blue-light);
  transform: translateX(5px);
}

.partner-logos {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.partner-logos img {
  height: 85px;
  opacity: 0.9;
  transition: all var(--t);
}

.partner-logos img:hover {
  opacity: 1;
  transform: translateY(-3px) scale(1.05);
}

.footer-bottom {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--c-white);
  font-size: 0.9rem;
}
