.top-container {
  max-width: 1200px;
  margin: 0 auto;
}

.container {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.recs, .map-container {
  width: 50%;
  height: 100%;
  box-sizing: border-box;
  padding: 1rem;
}

.map-container {
  position: sticky;
  width: 60%;
}

#map {
  width: 100%;
  height: 100%;
}
.map-container {
  position: sticky;
}

#map {
  width: 100%;
  height: 100%;
}
.recs {
  width: 40%;
  overflow-y: auto;
}

.recs .rec{
  width: 400px;
  border-top-color: black;
  border-top-width: 3px;
  border-top-style: groove;
  margin-top: 40px;
}

.rec .top {
  margin-bottom: 20px;
}

.rec .name {
  font-size: 20px;
  margin: 20px 0 5px 0;
  font-weight: 600;
}

.rec a {
  font-size: 13px;
}

.recs img, .recs textarea {
  width: 100%;
}

.recs textarea {
  padding: 0px;
}
.recs textarea {
  height: 200px;
  margin: 10px 0;
  display: block;
}

.recs .rec button {
  margin-right: 5px;
}

.custom-map-control {
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    margin: 10px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    z-index: 5;
    width: 30%;
}

.custom-map-control input {
  width: 100%;
  border-width: 0;
}

.custom-map-control input:focus {
  outline: none;
  border: none;
  box-shadow: none;
}

#search-box #results li {
  margin-bottom: 10px;
}

@media (max-width: 768px) {
  .top-container h1 {
    font-size: 20px;
  }
  .container {
    flex-direction: column-reverse;
  }

  .recs {
    display: block;
    width: 100%;
    height: 0;
    overflow-y: unset;
    padding: 0;
  }

  .recs .rec{
    width: 100%;
  }

  .rec {
    display: none;
  }

  .rec.show {
    display: table;
    position: relative;
    top: -250px;
    z-index: 1;
    background: white;
  }

  .rec.show .top {
    float: left;
    margin-left: 20px;
    width: 40%;
  }

  .rec.show img {
    max-width: 140px;
    width: 50%;
    margin-left: 30px;
    margin-top: 10px;
    float: right;
    padding: 10px;
  }

  .rec.show p {
    font-size: 11px;
    margin-left: 22px;
    width: 40%;
  }

  .rec.show .name {
    font-size: 15px;
  }

  .map-container {
    height: 100%;
    width: 100%;
    padding: 0;
  }
}