/* -----------------------------------------------------------------------------
  LEGACY MOE MAP

  Map: Guide to eating Ontario Fish
  page/map-guide-eating-ontario-fish
----------------------------------------------------------------------------- */
/* these are hard overrides for the embedded map elements */
/* The search area (id="SearchControl") of the map must contain the class '.moe-map__ontario-fish' in order for these styles to work */

.moe-map__ontario-fish {
  margin-top: 0.5rem;
}

.moe-map__ontario-fish .element-invisible {
  display: none;
}

.moe-map__ontario-fish input[type="text"] {
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  box-sizing: border-box;
  color: #1a1a1a;
  display: block;
  font-size: 1rem;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  margin: 0 1rem 2.5rem 0;
  max-width: 48rem;
  width: 100%;
  padding: 0.625rem 1rem;
  -webkit-transition: box-shadow 0.1s ease-in-out;
  transition: box-shadow 0.1s ease-in-out;
  float: left;
}

.moe-map__ontario-fish input[type="text"]:focus,
.moe-map__ontario-fish input[type="text"]:active {
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
  -webkit-transition: box-shadow 0.1s ease-in-out;
  transition: box-shadow 0.1s ease-in-out;
}

.moe-map__ontario-fish fieldset {
  border: none;
  margin: 0 0 0 2.5rem;
  padding: 0 0.5rem;
  position: relative;
}

.moe-map__ontario-fish input[type="radio"] {
  cursor: pointer;
  margin: -0.25rem 0 0 0;
  position: absolute;
  opacity: 0;
  width: 36px;
  height: 36px;
  z-index: 1;
  left: -2rem;
}

.moe-map__ontario-fish input[type="radio"] + span label.option {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-all;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
  font-size: 1rem;
  margin: 0.2rem 0 -0.5rem 0;
  padding: 0 0.75rem;
  touch-action: manipulation;
  display: block;
}

@media screen and (max-width: 40em) {
  .moe-map__ontario-fish input[type="radio"] + span label.option  {
    margin: 0.3rem 0;
    padding: 0 1rem;
  }
}

.moe-map__ontario-fish input[type="radio"] + span label.option:before,
.moe-map__ontario-fish input[type="radio"] + span label.option:after {
  left: -2.2rem;
  top: -0.2rem;
}

.moe-map__ontario-fish input[type=radio] + span label.option {
  position: relative;
  display: block;
  left: -0.5rem;
  padding: 0 0.5rem;
}

.moe-map__ontario-fish input[type=radio] + span label.option:before {
  content: "";
  background-color: #fff;
  box-sizing: border-box;
  border: 2px solid #1a1a1a;
  border-radius: 50%;
  position: absolute;
  top: -0.2rem;
  left: -40px;
  width: 32px;
  height: 32px;
  -webkit-transition: border .1s ease-in-out;
  transition: border .1s ease-in-out;
}

.moe-map__ontario-fish input[type="radio"] + span label.option:after {
  content: "";
  border-radius: 50%;
  border: 10px solid #1a1a1a;
  position: absolute;
  top: -0.2rem;
  left: -40px;
  -webkit-transform: translate(6px,6px);
  transform: translate(6px,6px);
  opacity: 0;
}

.moe-map__ontario-fish input[type="checkbox"] {
  cursor: pointer;
  margin: -0.25rem 0 0 0;
  opacity: 0;
  width: 36px;
  height: 36px;
  z-index: 1;
  -webkit-tap-highlight-color: transparent;
  position: relative;
  left: -44px;
  top: 0.9rem;
}

@media screen and (max-width: 40em) {
  .moe-map__ontario-fish input[type="checkbox"]  {
    width: 40px;
    height: 40px;
  }
}

.moe-map__ontario-fish input[type="checkbox"] + label.option {
  overflow-wrap: break-word;
  word-wrap: break-word;
  -ms-word-break: break-all;
  word-break: break-all;
  -ms-hyphens: auto;
  -webkit-hyphens: auto;
  hyphens: auto;
  display: inline-block;
  cursor: pointer;
  line-height: 1.5;
  margin: 0.25rem 0;
  width: 100%;
  position: relative;
  top: -2.5rem;
  left: 0rem;
  padding: 0;
}

@media screen and (max-width: 40em) {
  .moe-map__ontario-fish input[type="checkbox"] + label.option {
    margin: 0.33rem 0;
  }
}

.moe-map__ontario-fish input[type="checkbox"] + label.option:before {
  content: "";
  background-color: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 4px;
  position: absolute;
  top: -0.2rem;
  left: -48px;
  width: 32px;
  height: 32px;
  transition: border 0.1s ease-in-out;
  display: block;
  opacity: 1;
}

.moe-map__ontario-fish input[type="checkbox"] + label.option:after {
  content: "";
  background-image: url(../assets/icons/ontario-checkbox-background-no-width.svg);
  background-repeat: no-repeat;
  height: 30px;
  width: 30px;
  position: absolute;
  top: -0.2rem;
  left: -47px;
  right: 0;
  bottom: 0;
  opacity: 0;
  display: block;
}

.moe-map__ontario-fish input[type="radio"]:checked + span label.option:after {
  opacity: 1;
}

.moe-map__ontario-fish input[type="checkbox"]:checked + label.option:after {
  opacity: 1;
}

#map_canvas {
  width: 100%;
  height: 540px;
  line-height: 1.3;
  position: relative;
  overflow: hidden;
}

#map_canvas button{
  min-width: 0;
}

#map_canvas img {
  max-width: none;
}

.gm-style .gm-style-iw-c {
  font-size: 1rem;
  font-family: "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  padding: 1.5rem;
}

.gm-style .gm-style-iw-c button {
  top: 5px;
  right: 7px;
}

.gm-style .gm-style-iw-c button img {
  float: right;
  max-width: none;
}

#query_table {
  overflow-x: scroll;
  margin-bottom: 1.25rem;
}

/* -----------------------------------------------------------------------------
  LEGACY MOE MAP SUBMIT BUTTON
----------------------------------------------------------------------------- */
input[type=submit] {
  background-color: #06c;
  color: #fff;
  border: none;
  border-radius: 4px;
  box-sizing: border-box;
  box-shadow: none;
  display: inline-block;
  font-size: 1.125rem;
  font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight: 600;
  line-height: 1.5555555556;
  margin: 0 calc(1rem + 0.75rem) 1.5rem 0;
  min-width: 10rem;
  padding: 0.625rem 1.5rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #00478f;
  color: #fff;
}

input[type=submit]:focus {
  background-color: #00478f;
  color: #fff;
  box-shadow: 0 0 0 4px #009adb;
  outline: 4px solid transparent;
}

@media screen and (max-width: 39.9375em) {
  input[type=submit] {
    display: block;
    width: 100%;
  }
}
