* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
    height: 100%;
}

body {
  color: #404040;
  font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

#container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.fav-container {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  row-gap: 10px;
  padding-top: 5px;
  padding-right: 10px;
  padding-bottom: 5px;
  padding-left: 10px;
  
  width: 100%;
}

.map {
  flex-grow: 1;
  width: 100%;
}

.park-fav {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  
  background-color: #3E5FAC;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #FFF, 0 0 0 2px #3E5FAC;
  height: auto;
  width: auto;
  padding: 3px;
  text-align: center;
  font-size: 12px;
  line-height: 14px;
  color:#fff;
  cursor: pointer;
}

.fav-container.scale-153 .park-fav{
  font-size: 14px;
  line-height: 16px;
}

.fav-container.scale-156 .park-fav{
  font-size: 18px;
  line-height: 20px;
}

.fav-container.scale-158 .park-fav{
  font-size: 22px;
  line-height: 24px;
}

.fav-container.scale-16 .park-fav{
  font-size: 26px;
  line-height: 28px;
}

.park-marker {
  background-color: #3E5FAC;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px #FFF, 0 0 0 2px #3E5FAC;
  cursor: pointer;
}

.park-marker:hover {
  z-index:100;
}

.zero {
  background-color: #470000;
  box-shadow: 0 0 0 1px #FFF, 0 0 0 2px #470000;
}

.less-than-5 {
  background-color: #ad4800;
  box-shadow: 0 0 0 1px #FFF, 0 0 0 2px #ad4800;
}

.less-than-10 {
  background-color: #d6b300;
  box-shadow: 0 0 0 1px #FFF, 0 0 0 2px #d6b300;
}

.park-marker div {
  display:flex;
  justify-content:center;
  align-items:center;
  box-sizing:border-box;
  color:#fff;
}

.park-marker div.park-counter {
  position: absolute;
  padding-top: 3px;
  left: 0px;
  width: 18px;
  height: 18px;
  font-size: 11px;
}

.park-marker div.park-name {
  display: none;
}

.park-marker div.park-icon {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 8px;
  height: 8px;
  font-size: 7px;
}

.park-marker.more-than-99 div.park-counter {
  position: absolute;
  top: 0px;
  left: 0px;
  padding-top: 6px;
  font-size: 9px;
}

.park-marker.zoomed-in {
  display:inline-block;
  border-radius: 3px;
  cursor: pointer;
  height: auto;
  width: auto;
  padding: 3px;
  text-align: center;
  line-height: 9px;
}

.park-marker.zoomed-in div.park-name {
  position: static;
  display: block;
  font-size: 11px;
  line-height: 13px;
  white-space: nowrap;
}

.park-marker.zoomed-in.scale-15 div.park-name {
  font-size: 14px;
  line-height: 16px;
}

.park-marker.zoomed-in.scale-153 div.park-name {
  font-size: 16px;
  line-height: 18px;
}

.park-marker.zoomed-in.scale-156 div.park-name {
  font-size: 20px;
  line-height: 22px;
}

.park-marker.zoomed-in.scale-158 div.park-name {
  font-size: 24px;
  line-height: 26px;
}

.park-marker.zoomed-in.scale-16 div.park-name {
  font-size: 28px;
  line-height: 30px;
}

.park-marker.zoomed-in div.park-icon {
  display: none;
}

.park-marker.zoomed-in div.park-counter {
  position: static;
  display: inline;
  padding-top: 0px;
  font-size: 9px;
  line-height: 9px;
}

.park-marker.zoomed-in.scale-15 div.park-counter {
  font-size: 12px;
  line-height: 12px;
}

.park-marker.zoomed-in.scale-153 div.park-counter {
  font-size: 14px;
  line-height: 14px;
}

.park-marker.zoomed-in.scale-156 div.park-counter {
  font-size: 18px;
  line-height: 18px;
}

.park-marker.zoomed-in.scale-158 div.park-counter {
  font-size: 22px;
  line-height: 22px;
}

.park-marker.zoomed-in.scale-16 div.park-counter {
  font-size: 26px;
  line-height: 26px;
}


h1 {
  font-size: 22px;
  margin: 0;
  font-weight: 400;
  line-height: 20px;
  padding: 20px 2px;
}

a {
  color: #404040;
  text-decoration: none;
}

a:hover {
  color: #101010;
}

.heading {
  background: #fff;
  border-bottom: 1px solid #eee;
  height: 60px;
  line-height: 60px;
  padding: 0 10px;
}

::-webkit-scrollbar {
  width: 3px;
  height: 3px;
  border-left: 0;
  background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-track {
  background: none;
}

::-webkit-scrollbar-thumb {
  background: #00853e;
  border-radius: 0;
}

.clearfix { display: block; }

.clearfix::after {
  content: '.';
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}


/* Marker tweaks */
.mapboxgl-popup-close-button {
  display: none;
}

.mapboxgl-popup-tip {
  border-top-color: #bbb !important;
}

.mapboxgl-popup-content {
  font: 400 15px/22px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
  padding: 0;
  background: #bbb;
}

.mapboxgl-popup-content-wrapper {
  padding: 1%;
}

.mapboxgl-popup-content h3 {
  background: #91c949;
  color: #fff;
  margin: 0;
  display: block;
  padding-top: 0px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 0px;
  border-radius: 3px 3px 0 0;
  font-weight: 700;
  margin-top: -15px;
  line-height: 26px;
}

.mapboxgl-popup-content h4 {
  margin: 0;
  display: block;
  padding-top: 0px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 0px;
  font-weight: 400;
}

.mapboxgl-popup-content h5 {
  margin: 0;
  display: block;
  padding-top: 0px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 0px;
  font-size: 10px;
  line-height: 14px;
}

.mapboxgl-popup-content div {
  padding-top: 0px;
  padding-left: 5px;
  padding-right: 5px;
  padding-bottom: 0px;
}

.mapboxgl-popup-content img.popup-icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}

.mapboxgl-popup-content div.popup-pic {
  max-height: 30%;
}

.mapboxgl-popup-content div.popup-pic img {
    max-width: 100%;
    max-height: 100%;
}

.mapboxgl-popup-content div.popup-detail {
  font: 400 12px 'Source Sans Pro', 'Helvetica Neue', Sans-serif;
}

.mapboxgl-container .leaflet-marker-icon {
  cursor: pointer;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-content {
  margin-top: 15px;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
  border-bottom-color: #91c949;
}

.refresh-btn {
  background-image: url('refresh.png');
  background-size: cover;
  background-origin: content-box;
  background-repeat: no-repeat;
  padding: 5px !important;
}

.refresh-btn.disabled {
  opacity: 0.3;
}

.car-btn {
  background-image: url('car.png');
  background-size: cover;
  background-origin: content-box;
  background-repeat: no-repeat;
  padding: 5px !important;
}

.motorcycle-btn {
  background-image: url('motorcycle.png');
  background-size: cover;
  background-origin: content-box;
  background-repeat: no-repeat;
  padding: 5px !important;
}

.fav-edit-btn {
  background-image: url('star-dark.png');
  background-size: cover;
  background-origin: content-box;
  background-repeat: no-repeat;
  padding: 5px !important;
}

.fav-editing-btn {
  background-image: url('star-yellow.png');
  background-size: cover;
  background-origin: content-box;
  background-repeat: no-repeat;
  padding: 5px !important;
}

#last-update {
  position: absolute;
  left: 5px;
  top: 5px;
  font-size: 10px;
  line-height: 10px;
}

#bottom-terms {
  position: absolute;
  right: 5px;
  bottom: 40px;
  font-size: 10px;
  line-height: 10px;
}

.expand {
  color: #006400;
}