.map {
  position: relative;
  overflow: hidden;
}

#map_canvas {
  height: 512px;
  width: available;
  margin: 1px;
  border: 2px dotted #222;
  box-shadow: inset 0 0 120px 5px #ccff66;
  -moz-box-shadow: inset 0 0 120px 5px #ccff66;
  -webkit-box-shadow: inset 0 0 120px 5px #ccff66;
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
}

#placeDetails {
  position: absolute;
  width: 284px;
  bottom: 2px;
  right: -304px;
  padding-left: 10px;
  padding-right: 10px;
  background-color: rgba(0,0,0,0.8); /* semi-transparent */
  color: white;
  font-size: 80%;
  border-top-left-radius: 15px;
  -moz-border-radius-topleft: 15px;
  -webkit-border-top-left-radius: 15px;
}

#placeDetails h1 {
  font: italic 16px 'Asap', Arial, sans-serif;
  font-weight: 700;
  font-family: sans-serif;
  margin-bottom: 0;
}

#placeDetails p {
  font: italic 14px Palatino, Georgia, Helvetica, serif;
  margin-top: 0;
}

@media only screen and (max-width: 320px) {
  #map-canvas {
    height: 200px;
  }
}

@media only screen and (min-width: 320px) {
  #map-canvas {
    height: 240px;
  }
}

@media only screen and (min-width: 480px) {
  #map-canvas {
    height: 360px;
  }
}

@media only screen and (min-width:640px) {
  #map-canvas {
    height: 512px;
  }
}

@media only screen and (min-width: 768px) {
  #map-canvas {
    height: 512px;
  }
}

@media only screen and (min-width: 980px) {
  #map-canvas {
    height: 512px;
  }
}

@media only screen and (-webkit-min-device-pixel-ratio: 2),
  only screen and (-o-min-device-pixel-ratio: 3/2),
  only screen and (min--moz-device-pixel-ratio: 2),
  only screen and (min-device-pixel-ratio: 2) {
}

.switch {
  height: 28px;
  width: 77px;
  border: 1px solid #979797;
  border-radius: 20px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  margin-top: -5px;
  box-shadow: inset 0 1px 3px #BABABA, inset 0 12px 3px 2px rgba( 232, 232, 232, 0.5);
  cursor: pointer;
  overflow: hidden;
}

.switch input[type=checkbox] {
  display: none;
}

.switch::before {
  content: "";
  display: block;
  position: absolute;
  height: 28px;
  width: 0;
  border-radius: 20px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  box-shadow: inset 0 1px 2px #006387, inset 0 12px 3px 2px rgba( 0, 127, 234, 0.5 );
  background-color: #64B1F2;
}

.switch.on::before {
  width: 77px;
}

.switch > .thumb {
  display: block;
  width: 26px;
  height: 26px;
  position: relative;
  top: 0;
  z-index: 3;
  border: 1px solid #919191;
  border-radius: 28px;
  -moz-border-radius: 28px;
  -webkit-border-radius: 28px;
  box-shadow: inset 0 2px 1px white, inset 0 -2px 1px white;
  background-color: #CECECE;
  background-image: linear-gradient(to left, #CECECE, #FBFBFB);
  background-image: -o-linear-gradient(top, #CECECE, #FBFBFB);
  background-image: -moz-linear-gradient(top, #CECECE, #FBFBFB);
  background-image: -webkit-linear-gradient(top, #CECECE, #FBFBFB);
  background-image: -ms-linear-gradient(top, #CECECE, #FBFBFB);
  background-image: -webkit-gradient(linear,left top,left bottom,color-stop(1, #CECECE),color-stop(1, #FBFBFB));
  transition: all 0.125s ease-in-out;
  -webkit-transition: all 0.125s ease-in-out;
  -moz-transition: all 0.125s ease-in-out;
  -o-transition: all 0.125s ease-in-out;
  transform: translate(0,0,0);
  -webkit-transform: translate(0, 0);
  -moz-transform: translate(0, 0);
  -o-transform: translate(0, 0);
}

.switch.on > .thumb {
  transform: translate(49px,0);
  -webkit-transform: translate(49px, 0);
  -moz-transform: translate(49px, 0);
  -o-transform: translate(49px, 0);
}

.switch > .thumb::before {
  content: "";
  display: block;
  height: 14px;
  width: 2px;
  background-color: white;
  box-shadow: 0 -1px 1px #666;
  border: none;
  position: absolute;
  top: 6px;
  left: -24px;
}

.switch > .thumb::after {
  content: "";
  display: block;
  height: 10px;
  width: 10px;
  border-radius: 10px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border: 2px solid #777;
  position: absolute;
  right: -32px;
  top: 6px;
}
