html, body {
  height: 100%;
  border: 0;
  padding: 0;
  margin: 0;
}

#map {
  width: 100%;
  height: 100%;
}

/*
 * Legend styles
 */
.wrap-collabsible {
  margin: 10px;
}

input[type='checkbox'] {
  display: none;
}

.lbl-toggle {
  display: block;
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  padding: 0.5rem;
  color: black;
  background: white;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.25s ease-out;
}

.lbl-toggle:hover {
  background-color: #ebebeb;
}

.lbl-toggle::before {
  content: ' ';
  display: inline-block;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 5px solid currentColor;
  vertical-align: middle;
  margin-right: .7rem;
  transform: translateY(-2px);
  transition: transform .2s ease-out;
}

.collapsible-content .content-inner {
  max-width: 15rem;
  border-top: 1px solid lightgray;
  background-color: white;
  border-bottom-left-radius: 2px;
  border-bottom-right-radius: 2px;
  box-shadow: rgba(0, 0, 0, 0.3) 0px 1px 4px -1px;
  padding: .5rem 1rem;
}

.collapsible-content {
  max-height: 0px;
  overflow: hidden;
  transition: max-height .25s ease-in-out;
}

.toggle:checked + .lbl-toggle + .collapsible-content {
  max-height: 100vh;
}

.toggle:checked + .lbl-toggle::before {
  transform: rotate(90deg) translateX(-3px);
}

.toggle:checked + .lbl-toggle {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

#legend img {
  vertical-align: middle;
}

.search-container {
  margin-top: 10px;
  float: left;
}

.controls {
  margin-bottom: 10px;
  border: 1px solid transparent;
  border-radius: 2px 0 0 2px;
  box-sizing: border-box;
  -moz-box-sizing: border-box;
  height: 32px;
  outline: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

#pac-input,
#stations-search-input,
#advanced-filter-input {
  background-color: #fff;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  font-weight: 300;
  margin-left: 12px;
  padding: 0 11px 0 13px;
  text-overflow: ellipsis;
  width: 400px;
}

#advanced-filter-input {
  margin-top: 6px;
  display: block;
}

#pac-input:focus,
#stations-search-input:focus,
#advanced-filter-input:focus {
  border-color: #4d90fe;
}

.pac-container {
  font-family: Roboto;
}

.filter-help {
  background: #fff;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  color: #333;
  font-family: Roboto, sans-serif;
  font-size: 13px;
  line-height: 1.4;
  margin: -8px 0 12px 12px;
  padding: 10px 12px;
  width: 400px;
  display: none;
}

.filter-help.visible {
  display: block;
}

.filter-help ul {
  padding-left: 1.1em;
  margin: 6px 0 0 0;
}

.filter-help li {
  margin-bottom: 4px;
}

.filter-help code {
  background: #f4f4f4;
  border-radius: 2px;
  padding: 1px 3px;
  font-size: 12px;
}

#type-selector {
  color: #fff;
  background-color: #4d90fe;
  padding: 5px 11px 0px 11px;
}

#type-selector label {
  font-family: Roboto;
  font-size: 13px;
  font-weight: 300;
}

.filter-suggestions {
  position: absolute;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 2px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  max-height: 200px;
  overflow-y: auto;
  min-width: 260px;
  display: none;
  font-family: Roboto, sans-serif;
  font-size: 13px;
}

.filter-suggestion-item {
  padding: 6px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-suggestion-item:hover,
.filter-suggestion-item:focus {
  background: #f0f0f0;
  outline: none;
}

.filter-suggestion-item.active {
  background: #e0e0e0;
}

#map-copyright {
  height: 14px;
  line-height: 14px;
  font-size: 10px;
  font-family: Roboto, Arial, sans-serif;
  margin: 0;
  white-space: nowrap;
  background-color: rgb(245, 245, 245);
  opacity: 0.7;
  z-index: 1;
}

.station-used {
  background-color: #32CD32;
}

.station-active {
  background-color: #FF7F00;
}

.station-inactive {
  background-color: #940000;
  color: #fff;
}

.station-notes {
  width: 20em;
  font-family: inherit;
  white-space: pre-wrap;
  border: 1px dashed dimgray;
  padding: 0.4em;
  background-color: #f5f5f5;
}

.station-notes pre {
  margin-top: 0.2em;
  margin-bottom: 0;
}

.section-grade {
  font-style: italic;
  background-color: #eee;
  border-radius: 3px;
  border: 1px solid #aaa;
  padding: 0 0.2rem;
}

#map-copyright a {
  color: #337ab7;
}

@media only screen and (max-width: 1100px) {
  #pac-input,
  #stations-search-input,
  #advanced-filter-input {
    width: 300px;
  }
}

@media only screen and (max-width: 600px) {
  #pac-input,
  #stations-search-input,
  #advanced-filter-input {
    width: 200px;
  }
}
