body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: sans-serif;
}

body {
  background: #f7f7f7;
}

.business-card {
  padding: 10px;
  margin-bottom: 10px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 5px;
  cursor: pointer;
}

.business-card:hover {
  background: #eef;
}

.controls {
  overflow: auto;
  height: 100%;
  box-sizing: border-box;
}

.left-column {
  height: 100%;
  max-width: 1200px;
  width: 350px;
}

main {
  display: flex;
  height: 100%;
  margin: 0 auto;
  max-width: 1200px;
  padding: 15px 0;
  box-sizing: border-box;
}

#map {
  border-radius: 6px;
  position: relative;
  width: calc(100% - 370px);
  height: 100%;
  padding-right: 10px;
}

.options {
  position: sticky;
  text-align: right;
  margin-right: 20px;
  display: grid;
  grid-template-columns: 185px auto;
  grid-column-gap: 10px;
  max-width: 325px;
  margin: 0 20px;
}

#searchInput,
#categoryFilter {
  padding: 8px;
  font-size: 1em;
}

.sidebar {
  max-width: 315px;
  height: calc(100% - 50px);
  overflow-y: auto;
  margin: 10px auto 0 auto;
}

@media screen and (max-width: 768px) {
  .controls {
    padding: 10px 10px 0 10px;
  }

  .left-column {
    width: 100%;
    height: 235px;
  }
  main {
    display: grid;
    grid-template-rows: max-content;
    padding: 0 0 10px 0;
  }

  #map {
    margin: 0 10px;
    width: calc(100% - 30px);
  }

  .sidebar {
    max-width: none;
  }

  .options {
    text-align: center;
  }
}
