﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}


html {
  font-size: 12px;
  position: relative;
  min-height: 100%;
}
@media (min-width: 768px) {
  html {
    font-size: 14px;
  }
}

.border-top {
  border-top: 1px solid #e5e5e5;
}
.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

#The_LayerMenu {
    display: none;
    top: -7px;
    position: relative;
    color: #000000;
    background-color: #ffffff;
}

#The_LayerMenu label {
    margin-left: 0.5rem;
}

#The_LayerMenu {
    overflow-y: auto;
    flex-wrap: wrap;
    align-content: flex-start;
    max-height: calc(33%);
    flex-direction: column;
}

/* Left navigation panel with improved scrolling */
.nav-bar-wrapper {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
}

/* Make each major section in left nav independently scrollable */
.nav-bar-wrapper .info-container .info-sub-container,
.nav-bar-wrapper .info-container .container-shadow {
  max-height: 40vh; /* Limit height to 40% of viewport */
  overflow-y: auto; /* Enable vertical scrolling */
  margin-bottom: 0.5rem; /* Consistent spacing between sections */
}

/* Keep section headers visible when scrolling */
.container-shadow-title,
.bus-stop-school-header,
.school-results-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: inherit; /* Maintain background color */
}

/* Ensure parent container properly handles multiple scrollable sections */
.nav-bar-wrapper .info-container {
  overflow-y: auto; /* Main container still scrolls */
  display: flex;
  flex-direction: column;
  height: auto; /* Let it adapt to content */
  max-height: 100%; /* Use full available height */
}

/* Add responsive adjustments for different screen sizes */
@media screen and (max-height: 768px) {
  .nav-bar-wrapper .info-container .info-sub-container,
  .nav-bar-wrapper .info-container .container-shadow {
      max-height: 30vh; /* Smaller max height on smaller screens */
  }
}

@media screen and (min-height: 1080px) {
  .nav-bar-wrapper .info-container .info-sub-container,
  .nav-bar-wrapper .info-container .container-shadow {
      max-height: 50vh; /* More space on larger screens */
  }
}

.geocoder-container input[type="text"],
.geocoder-container .mapboxgl-ctrl-geocoder--input {
    border: 1px solid #b3d1f7 !important; /* Very light blue border */
    box-shadow: 0 1px 4px #2196F311 !important; /* Subtle blue shadow */
    border-radius: 6px !important;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.geocoder-container input[type="text"]:focus,
.geocoder-container .mapboxgl-ctrl-geocoder--input:focus {
    border-color: #2196F3 !important; /* More blue on focus */
    box-shadow: 0 0 6px #2196F333 !important;
}

.status-bar-loader {
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #f44336 30%, #fff 50%, #f44336 70%);
  background-size: 200% 100%;
  animation: statusBarMove 2.2s linear infinite;
  border-radius: 2px;
  margin-top: 8px;
}

@keyframes statusBarMove {
  0% { background-position: 200% 0; }
  100% { background-position: 0 0; }
}