@media only screen and (max-width: 767px) {
  #preferences .panel-body {
    padding: 10px;
  }
}

#basemaps {
  height: 500px;
  display: flex;
  flex-direction: column-reverse;
}

.thumbs {
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: auto;
  margin-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}

.thumbs .list {
  display: flex;
  margin: 0;
  padding: 0;
}

.thumbs .list-item {
  width: 180px; 
  height: 120px;
  background-size: cover;
  border: 4px solid white;
  border-radius: 8px;
  cursor: pointer;
  display: flex; 
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
}

.thumbs .list-item.active {
  border-color: #f05514;
}

.thumbs .list-item .map-type-label {
  width: 130px; 
  background-color: #f2f2f2;
  border-top-right-radius: 4px;
  border-bottom-left-radius: 3px; 
  padding: 0 4px;
}

.thumbs .list-item .map-type-circle {
  width: 24px;
  height: 24px;
  background-color: #fff;
  border: 3px solid #f05514;
  border-radius: 50%;
  margin-top: 4px;
  margin-right: 4px;
  align-self: flex-start;
}

.thumbs .list-item .map-type-circle  i {
  font-size: 24px;
  color: #f05514;
  margin: -4px -1px;
}

.thumbs .list-item span {
  user-select: none;
}

@media only screen and (min-width: 768px) {
  #basemaps {
    max-height: 800px;
    flex-direction: row;
  }

  .thumbs {
    margin-left: 10px;
    margin-bottom: 0;
  }

  .thumbs .list {
    flex-direction: column;
  }
}

.basemap-container {
  display: flex;
  flex: 1 1 auto;
}

#basemap-map {
  -webkit-box-flex: 1;
      -ms-flex: 1 0 0px;
          flex: 1 0 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  overflow: hidden;
  z-index: 1;
}