/* 1. Define the TTF font */
@font-face {
  font-family: 'Henry Sans';
  src: url('../fonts/HenrySans-Regular.ttf') format('truetype');
  font-display: swap;
  font-weight: normal;
  font-style: normal;
  
}
/* Apply to the entire document */
html, body {
  font-family: 'Henry Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
/* Ensure headings inherit it properly or handle bold weights */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Henry Sans', sans-serif;
  font-weight: 700; /* Uses the bold variant */
}
/* Blocky Tab Navbar Design */
.navbar-default {
  background-color: #fff;
  border: none;
  margin-bottom: 0;
  padding-top: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
}
.navbar-brand {
  padding: 15px 15px;
  font-size: 18px;
  font-weight: bold;
  color: #001A9C !important;
  display: flex;
  align-items: center;
}
.nav-tabs-custom {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-tabs-custom > li > a {
  display: block;
  padding: 24px 20px;
  color: #555;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
}
.nav-tabs-custom > li > a:hover {
  background-color: #f0f4ff;
  color: #001A9C;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}
.nav-tabs-custom > li.active > a {
  background-color: #001A9C !important;
  color: #fff !important;
  border-top-left-radius: 30px;
  border-top-right-radius: 30px;
}
/* Banner Map Top Section */
.map-banner-hero {
  position: relative;
  background: linear-gradient(180deg, rgba(0, 23, 171, 0.85) 0%, rgba(244, 247, 246, 0) 80%), url('../bgmoa.webp') no-repeat center center;
  background-size: cover;
  padding: 15px 15px 100px 15px;
  color: #fff;
}
.map-banner-hero::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 26, 156, 0.4) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 1) 100%);
  z-index: 1;
}
.map-banner-hero .container {
  position: relative;
  z-index: 2;
}
.banner-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 5px;
}
.banner-subtitle {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 2px;
}
.banner-sub-text {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 25px;
  width: 40%
}
.btn-smooth-banner {
  display: inline-block;
  background-color: #ffffff;
  color: #001A9C;
  font-weight: bold;
  padding: 12px 32px;
  border-radius: 25px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  border: 1px solid transparent;
}
.btn-smooth-banner:hover {
  background-color: #f0f4ff;
  color: #00116b;
  text-decoration: none;
  transform: translateY(-2px);
}
/* Map Panel layout */
.map-card-wrapper {
  background-color: #fff;
  border-radius: 24px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  margin-top: -60px;
  margin-bottom: 50px;
  overflow: hidden;
  width: 100%;
  z-index: 3;
}
.map-scroll-pane {
  width: 100%;
}
.map-frame-display {
  width: 100%;
  height: 580px;
  position: relative;
  background-color: #e5e3df;
  overflow: hidden;
}
#map {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
}
.nav-control-box {
  position: absolute;
  left: 25px;
  bottom: 25px;
  width: 250px;
  background: rgba(240, 243, 244, 0.96);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}
.control-box-title {
  font-size: 17px;
  font-weight: bold;
  color: #1c2d5a;
  margin-bottom: 15px;
}
/* Dropdown custom selectors with internal padding for embedded icons */
.input-group-custom {
  margin-bottom: 12px;
}
.input-group-custom select {
  width: 100%;
  padding: 10px 15px 10px 42px;
  border-radius: 25px;
  border: 2px solid #001A9C;
  font-weight: bold;
  font-size: 13px;
  color: #333;
  background-color: #fff;
  outline: none;
  appearance: none;
  background-repeat: no-repeat;
  background-position: left 15px center;
  background-size: 16px 16px;
}
/* Maintained original color profiles for starting/ending text rules */
.input-group-custom.destination select {
  border-color: #83b719;
  color: #83b719;
}
/* Your location indicator icon inside selection input */
#originInput {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23001A9C'/%3E%3Ccircle cx='12' cy='12' r='3' fill='%23FFFFFF'/%3E%3C/svg%3E");
}
/* Destination tracking pin icon inside destination input */
#destInput {
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2383b719'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}
.map-layer-toggles {
  margin: 0 0 14px;
}
.parking-layer-toggle {
  align-items: center;
  color: #8a8f9b;
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  gap: 7px;
}
.parking-layer-toggle input {
  height: 1px;
  opacity: 0;
  position: absolute;
  width: 1px;
}
.toggle-track {
  background: #a7a9ad;
  border-radius: 999px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
  display: inline-block;
  height: 14px;
  position: relative;
  width: 30px;
}
.toggle-track::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  content: "";
  height: 12px;
  left: 1px;
  position: absolute;
  top: 1px;
  transition: left 0.18s ease;
  width: 12px;
}
.parking-layer-toggle input:checked + .toggle-track {
  background: #1e3fff;
}
.parking-layer-toggle input:checked + .toggle-track::after {
  left: 17px;
}
.parking-badge {
  align-items: center;
  background: #E8FF1A;
  border: 2px solid #A3B800;
  border-radius: 50%;
  color: #111827;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 25px;
  justify-content: center;
  line-height: 1;
  width: 25px;
}
.parking-marker-label {
  color: #4338CA;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff, 0 2px 4px rgba(255, 255, 255, 0.9);
  white-space: pre-line;
}
.btn-action-nav {
  background-color: #1e3fff;
  color: white;
  width: 100%;
  border-radius: 25px;
  padding: 10px;
  font-weight: bold;
  border: none;
  margin-bottom: 10px;
  text-align: center;
  display: block;
  text-decoration: none;
}
.btn-action-nav:hover, .btn-action-nav:focus {
  color: #fff;
  background-color: #1632d0;
  outline: none;
}
.btn-action-nav:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.route-info-panel {
  display: none;
  background: #fff;
  border: 1px solid #dfe3ec;
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0 10px;
}
.route-info-panel.is-visible {
  display: none;
}
.route-metrics {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.route-metric-label {
  color: #6c7280;
  display: block;
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.route-metric-value {
  color: #001A9C;
  display: block;
  font-size: 20px;
  font-weight: bold;
  line-height: 1.1;
}
.route-metric-value.distance {
  color: #333;
  font-size: 16px;
  padding-top: 3px;
  text-align: right;
}
.route-source-badge {
  border-radius: 999px;
  display: inline-block;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 9px;
}
.route-source-badge.custom {
  background: #e7f7ee;
  border: 1px solid #a8dec0;
  color: #137a3d;
}
.route-source-badge.google {
  background: #fff5df;
  border: 1px solid #efcf89;
  color: #8a5a00;
}
.route-source-badge.error {
  background: #ffe8e8;
  border: 1px solid #efadad;
  color: #a11c1c;
}
.route-message {
  color: #4f5665;
  font-size: 11px;
  margin-top: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.map-loading-overlay {
  align-items: center;
  background: rgba(255, 255, 255, 0.88);
  color: #001A9C;
  display: flex;
  font-weight: bold;
  height: 100%;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 5;
}
.map-loading-overlay.is-hidden {
  display: none;
}
.map-toast {
  background: #fff;
  border-left: 4px solid #d33;
  border-radius: 8px;
  bottom: 25px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  color: #a11c1c;
  display: none;
  font-size: 13px;
  font-weight: bold;
  max-width: 320px;
  padding: 12px 14px;
  position: absolute;
  right: 25px;
  z-index: 15;
}
.map-toast.is-visible {
  display: block;
}
.gm-style .gm-ui-hover-effect {
  display: none !important;
}
.parking-info-bubble {
  background: #4338CA;
  border-radius: 8px;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 10px;
}
.gm-style .gm-style-iw-c {
  padding: 0 !important;
}
.gm-style .gm-style-iw-d {
  overflow: hidden !important;
}
.gm-style .gm-style-iw-tc::after {
  background: #4338CA !important;
}
.legend-control-box {
  position: absolute;
  right: 25px;
  bottom: 25px;
  width: 180px;
  background: rgba(254, 254, 254, 0.94);
  border-radius: 14px;
  padding: 15px 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  z-index: 10;
}
.legend-title {
  font-size: 16px;
  font-weight: bold;
  color: #222;
  margin-bottom: 10px;
}
.legend-item {
  align-items: center;
  background: transparent;
  border: 0;
  color: #555;
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 500;
  gap: 8px;
  margin: 0 0 6px;
  padding: 0;
  text-align: left;
  width: 100%;
}
.legend-item:hover {
  color: #001A9C;
}
.legend-item.is-unavailable {
  cursor: not-allowed;
  opacity: 0.45;
}
.legend-color-dot {
  background: #fff;
  border: 4px solid var(--legend-color);
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  height: 11px;
  width: 11px;
}
.btn-directions {
  background-color: #fff;
  color: #001A9C;
  font-weight: bold;
  border-radius: 25px;
  padding: 12px 35px;
  border: none;
  font-size: 15px;
  display: inline-block;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 3;
}
.btn-directions:hover {
  background-color: #e6e6e6;
  color: #001A9C;
}
@media (max-width: 767px) {
  .navbar-container {
    flex-direction: column;
    align-items: center;
  }
  .navbar-brand {
    padding: 12px 15px 6px 15px;
  }
  .nav-tabs-custom > li > a {
    padding: 12px 12px;
    font-size: 11px;
  }
  .map-banner-hero {
    text-align: center;
    padding: 40px 15px 80px 15px;
  }
  .banner-title {
    font-size: 34px;
  }
  .banner-subtitle {
    font-size: 18px;
  }
  .banner-sub-text {
    font-size: 16px;
    width: 100%
  }
  .map-card-wrapper {
    margin-top: -40px;
    background-color: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .map-frame-display {
    height: 350px;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 15px;
    position: relative;
  }
  .nav-control-box {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    margin: 0 0 15px 0;
    background: #f9f9f9;
    border-radius: 18px;
  }
  /* Legend styling pushed fully under the canvas height bounds */
  .legend-control-box {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    width: 100% !important;
    margin: 15px 0 0 0 !important;
    background: #ffffff !important;
    border-radius: 18px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    display: block !important;
  }
  .map-toast {
    bottom: 15px;
    left: 15px;
    right: 15px;
    max-width: none;
  }
}
/* widen default container*/
.container {
  width: 100%;
  max-width: 1350px; /* Increase this from 1200px or 1140px */
  margin: 0 auto; /* Keeps the container centered */
}
.navbar-flex-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.mobile-burger-btn {
  display: none !important;
}
@media (max-width: 767px) {
  .navbar-default {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100% !important;
    z-index: 9999 !important;
  }
  body {
    padding-top: 60px !important;
  }
  .navbar-flex-container {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 5px 15px !important;
  }
  .mobile-burger-btn {
    display: block !important;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    outline: none;
  }
  .mobile-burger-btn .line {
    display: block;
    width: 22px;
    height: 3px;
    background-color: #001A9C;
    margin: 4px 0;
    border-radius: 1px;
  }
  .menu-wrapper {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 100% !important;
    background-color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1) !important;
    border-top: 1px solid #eee !important;
    padding: 0 !important;
  }
  .menu-wrapper.open {
    display: block !important;
  }
  .nav-tabs-custom {
    flex-direction: column !important;
    width: 100% !important;
    height: auto !important;
  }
  .nav-tabs-custom > li {
    width: 100% !important;
    display: block !important;
  }
  .nav-tabs-custom > li > a {
    padding: 15px 20px !important;
    font-size: 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .nav-tabs-custom > li > a:hover, .nav-tabs-custom > li > a:focus {
    background-color: #001A9C !important;
    color: #fff !important;
    border-radius: 0px;
  }
  .nav-tabs-custom > li.active > a {
    border-radius: 0 !important;
  }
}