* {
  box-sizing: border-box;
}

body {
  color: #404040;
  /* font-family: "Nuosu SIL", sans-serif; */
  font-family: "Noto Serif SC", serif;
  font-optical-sizing: auto;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  /* background-color: #fafaff; */
  /* background-color: #EAFEF4; */
  background: linear-gradient(90deg, #e3ffe7 0%, #d9e7ff 100%);
}

/* #body-about {
  background: #EAFEF4;
} */

h1 {
  font-size: 44px;
  /* font-family: "Notable", sans-serif; */
  font-family: "Gasoek One", sans-serif;
  margin: 0;
  font-weight: 400;
  line-height: 33px;
  padding: 20px 2px;
}

a {
  color: #404040;
  text-decoration: none;
}

a:hover {
  color: #101010;
}

button {
  height: 44px;
  border-radius: 20px;
  background: transparent;
  box-shadow: 3px 3px .5px gray;
}

select {
  background: transparent;
}

.header {
  display: grid;
  place-items: center;
}

#header-title {
  font-family: Arial, sans-serif;
  font-size: 60px;
  text-transform: uppercase;
  color: transparent;
  background-color: transparent;
  padding: 10px 20px;
  display: inline-block;
  transform: skew(-1deg);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  height: 185px;
  width: 326px;
  border: .5px solid gray;
  border-radius: 25px;
  box-shadow: 12px 12px 2px 1px gray;
  background: #666;
    background-clip: border-box;
  background-clip: border-box;
  background-clip: text;
  text-shadow: 0px 3px 3px rgba(255,255,255,0.5);
  display: grid;
  place-items: center;
  line-height: 50px;
}

#intro, #outro {
  background: #EAFEF4;
  /* color: #fafaff; */
  text-align: center;
  padding: 100px 0;
}

#options {
  display: flex;
  justify-content: space-around;
}

#map-container {
  position: relative;
  height: 100vh;
  width: 100%;
}

.sidebar {
  position: absolute;
  width: 33.3333%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  border-right: 1px solid #ff3855;
}

.map {
  position: absolute;
  left: 33.3333%;
  width: 66.6666%;
  top: 0;
  bottom: 0;
}

.heading {
  background: #fff;
  border-bottom: 1px solid #eee;
  height: 60px;
  line-height: 60px;
  padding: 0 10px;
}

.listings {
  height: 100%;
  overflow: auto;
  padding-bottom: 60px;
  background-color: #fafaff;
}

.listings .item {
  border-bottom: 1px solid #eee;
  padding: 10px;
  text-decoration: none;
}

.listings .item:last-child {
  border-bottom: none;
}

.listings .item .title {
  display: block;
  color: #135484;
  font-weight: 700;
}

.listings .item .title small {
  font-weight: 400;
}

.listings .item.active .title,
.listings .item .title:hover {
  color: black;
}

.listings .item:hover {
  border: 1px solid #fAf26b;
}

.listings .item.active {
  background-color: #EAFEF4;
}

::-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;
}

/* Marker tweaks */
.mapboxgl-popup-close-button {
  display: none;
}

.mapboxgl-popup-content {
  font: 400 15px/22px "Source Sans Pro", "Helvetica Neue", sans-serif;
  padding: 0;
  width: 180px;
}

.mapboxgl-popup-content h3 {
  background: #EAFEF4;
  color: black;
  margin: 0;
  padding: 10px;
  border-radius: 3px 3px 0 0;
  font-weight: 700;
  /* margin-top: -15px; */
}

.mapboxgl-popup-content h4, p {
  margin: 0;
  padding: 10px;
  font-weight: 400;
}

.mapboxgl-popup-content div {
  padding: 10px;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-content {
  margin-top: 15px;
}

.mapboxgl-popup-anchor-top > .mapboxgl-popup-tip {
  border-bottom-color: #91c949;
}

.marker {
  border: none;
  cursor: pointer;
  height: 40px;
  width: 40px;
  background-image: url("img/marker.png");
}

.mapboxgl-popup {
  padding-bottom: 50px;
}

.mapboxgl-ctrl-geocoder {
  border: 0;
  border-radius: 0;
  position: relative;
  top: 0;
  width: 800px;
  margin-top: 0;
}

.mapboxgl-ctrl-geocoder > div {
  min-width: 100%;
  margin-left: 0;
}


.modal {
  display: none;
  position: absolute;
  z-index: 999;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0,0,0);
  background-color: rgba(0,0,0,0.4);
}

.modal-content {
  background-color: #fafaff;
  margin: 15% auto;
  padding: 20px;
  border: 1px solid #ff3855;
  width: 80%;
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.modal-close:hover,
.modal-close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.read-more-btn {
  background: #F7DDD2;
  border-radius: 20px;
}


body.dark-mode {
  color: #fafaff; /* Text color */
  background-color: #1a1a1a; /* Background color */

  #header-title {
    text-shadow: 0px 3px 3px rgba(43, 43, 43, 0.5);
  }

  select {
    color: #fafaff;
  }

  #intro, #outro, .heading {
    background: #1a1a1a;
    color: #fafaff;
  }

  #intro {
    border-bottom: 1px solid #fafaff;
  }

  #outro {
    border-top: 1px solid #fafaff;
  }

  a {
    color: #fafaff;
  }

  button {
    background: #404040;
    color: #fafaff;
    box-shadow: 1px 1px #fafaff;
  }

  .listings {
    background-color: #1a1a1a;
  }

  .listings .item {
    border-bottom: 1px solid #404040;
  }

  .listings .item.active {
    background-color: #404040;
  }

  .listings .item .title {
    color: #fafaff;
  }

  .listings .item.active .title,
  .listings .item .title:hover {
    color: #fafaff;
  }

  .listings .item:hover {
    border: 1px solid #fafaff;
  }

  .mapboxgl-ctrl-geocoder {
    background-color: #404040;
    color: #fafaff;
    border: 1px solid #fafaff;
  }

  .mapboxgl-ctrl-geocoder--input {
    color: #fafaff;
  }

  .mapboxgl-popup-content h3 {
    background: #404040;
    color: #fafaff;
  }

  .mapboxgl-popup-content {
    background-color: #1a1a1a;
    color: #fafaff;
    border: 1px solid #fafaff;
  }

  .modal-content {
    background-color: #1a1a1a;
    color: #fafaff;
  }

  .marker {
    border: none;
    cursor: pointer;
    height: 40px;
    width: 40px;
    background-image: url("img/marker-dark.png");
  }

  #footer {
    background-color: #1a1a1a;
    color: #fafaff;
  }

}

