/* #region Page Header; Search; Chosen */
.page-header {
  margin-top: -10px;
  padding-top: 2px;
  margin-left: -8px;
  padding-left: 8px;
  margin-right: -8px;
  padding-right: 8px;
  padding-bottom: 8px;
  background-color: #eae7dc;
}

h2.title {
  color: #0B426F;
  margin: 0.5em 0;
}

.query-form input {
  font-size: 14px;
  border-radius: 6px;
  padding: 4px;
  min-width: 105px;
}

.feedback-btn {
  font-size: 14px;
  border-radius: 6px;
  padding: 4px;
  min-width: 135px;
  float: right;
  margin-right: 1.75em;
  margin-top: 3px;
}

.query-form input[type=submit]:hover,
.query-form input[type=button]:hover,
.feedback-btn:hover {
  outline: -webkit-focus-ring-color auto 1px;
}

.chosen-container {
  margin-top: 0.5em;
  font-size: 14px;
}
/* #endregion */

/* #region Filters List */
span#filterHeader {
  font-weight: bold;
  color: #3B729F;
  font-size: 20px;
  font-variant: all-small-caps;
  margin-left: 0.5em;
  text-decoration-line: overline underline;
  text-underline-offset: 0.42em;
}
ul.filters {
  display: inline-flex;
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-left: 0.6em;
  gap: 0.6em;
}
ul.filters li a {
  display: block;
  padding: 5px 12px;
  text-decoration: none;
  background-color: #3B729F;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
ul.filters li a:hover {
  background-color: rgba(59, 114, 159, 0.4);
}
ul.filters li a img {
  height: 14px;
  position: absolute;
  margin-left: 3px;
  margin-top: -10px;
}
/* #endregion */

/* #region Map and Pop-Up Customization */
div:has(> .tt_name_sm) {
  display: none;
}
div:has(> .tt_name_sm>.state-name) {
  display: block;
}
.tt_mobile_sm a {
  border: 1px solid #aaaaaa;
  background-color: #e9e9e9;
  font-weight: bold;
}

.sm_location {
  opacity: 0.9;
}
.sm_location:hover {
  opacity: 1;
  filter: drop-shadow(0px 0px 2px #FFF);
}
/* #endregion */

/* #region Tabs UI */
.ui-tabs-panel li:not(:last-child) {
  margin-bottom: 6px;
}
#tabs-alumni li:not(:last-child) {
  margin-bottom: 3px;
}
.ui-tabs-panel li:first-child {
  margin-top: -0.5em;
}
#tabs-summary span:first-of-type {
  font-size: larger;
}

.tab-header {
  font-weight: bold;
  font-size: larger;
  margin-top: 8px;
}

#tabs-stats > div {
  display: flex;
}
#tabs-stats > div > div {
  flex: 1;
}

#tabs-alumni > div {
  max-height: 432px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}
/* #endregion */

/* #region Campus Images */
.campus-image {
  border-radius: 0.3em;
  cursor: pointer;
  transition: 0.3s;
  float: left;
  margin-right: 0.8em;
}

.campus-image-right {
  border-radius: 0.3em;
  cursor: pointer;
  transition: 0.3s;
  float: right;
  margin-left: 0.8em;
}

.campus-image:hover,
.campus-image-right:hover {
  opacity: 0.7;
}
/* #endregion */

/* #region Base Modal Styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 4; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

#campusModal h2 {
  font-size: 1.25em;
  margin: auto;
  width: 1100px;
  margin-top: 0.75em;
  font-weight: normal;
}
#campusModal h2 a {
  color: white;
  text-decoration: underline;
  cursor: pointer;
}
#campusModal h2 a:hover,
#campusModal h2 a:focus,
#campusModal h2 a:active {
  color: #98B4CC
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 1100px;
}
/* #endregion */

/* #region Image Modal */
.campus-close, .help-close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.campus-close:hover,
.campus-close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}
/* #endregion */

/* #region Help Modal */
.help-button {
  float: right;
  margin-right: 1em;
  height: 42px;
  cursor: pointer;
}
.help-button-inline {
  margin-left: 0.35em;
  margin-top: 0.2em;
  height: 16px;
  position: absolute;
  cursor: pointer;
}
.help-button:hover,
.help-button-inline:hover {
  filter: drop-shadow(0px 0px 2px #3B729F);
}

#helpModal .modal-content {
  width: 55%;
}

.help-header {
  padding: 2px 16px;
  background-color: #3B729F;
  color: white;
  border-radius: 0.3em 0.3em 0 0;
}

.help-body {
  padding: 2px 16px;
  background-color: white;
}
.help-body strong {
  color: #3B729F;
}
.help-body p.help-list-header {
  margin-bottom: 0
}
.help-body ul {
  margin-top: 0;
}
.help-body li {
  margin-top: 6px;
  font-size: 14px;
}

.help-footer {
  padding: 2px 16px;
  background-color: #98B4CC;
  color: white;
  border-radius: 0 0 0.3em 0.3em;
  display: flex;
  justify-content: center;
}

#helpAccept {
  font-size: 18px;
  border-radius: 6px;
  padding: 8px;
  margin: 0.5em;
  min-width: 175px;
  font-weight: bold;
}
/* #endregion */

/* #region School Badges and Favorites */
.award-badge { margin-top: 0.6em; }

.badge-button {
  position: absolute;
  height: 16px;
  cursor: pointer;
}

.top-libarts-badge {
  height: 22px;
  margin-top: -3px;
  margin-left: -1px;
}

.top-private-badge:hover {
  filter: drop-shadow(0px 0px 1px #016853);
}
.top-public-badge:hover,
.top-libarts-badge:hover {
  filter: drop-shadow(0px 0px 2px #016853);
}

.hbcu-badge {
  margin-top: 2px;
}
.hbcu-badge:hover {
  filter: drop-shadow(0px 0px 1px #00853e);
}

img.fave-button {
  height: 36px;
  float: left;
  margin-right: 0.5em;
  cursor: pointer;
}
img.fave-button:hover {
  filter: drop-shadow(0px 0px 3px #AF2121);
}

.ladue-badge {
  float: right;
  margin-left: 0.8em;
  margin-top: 0px;
  height: 54px;
  cursor: pointer;
}
.ladue-badge:hover {
  filter: drop-shadow(0px 0px 3px #022f8a);
}
/* #endregion */

/* #region Viewport and Media Queries */
#map, #map_holder, #map_inner, #map_background {
  height: 82vh !important;
}

/* Ladue-issued laptop */
@media only screen and (max-width: 1440px) {
  #map, #map_holder, #map_inner, #map_background {
    height: 80.5vh !important;
  }
  .modal-content {
    max-width: 925px;
  }
  #campusModal h2 {
    width: 925px;
  }
  #helpModal .modal-content {
    width: 70%;
  }
  div#tt_sm_map {
    max-width: unset !important;
    width: 60% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    inset: 0px !important;
  }
}

/* iPad Pro */
@media only screen and (max-width: 1366px) {
  .modal-content {
    width: 100%;
  }
  #map, #map_holder, #map_inner, #map_background {
    height: 81vh !important;
  }
  #helpModal .modal-content {
    width: 55%;
  }
}
/* #endregion */

/* #region Tooltip UI */
.ui-tooltip {
  padding: 6px;
  background: #c8e4fc !important;
  color: #000 !important;
  max-width: 400px !important;
}

.ui-tooltip-content {
  font-size: smaller;
}
/* #endregion */