﻿/* 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 */
  }
}