/*
*
* RD Google Map
* --------------------------------------------------
*/

$map-height: 200px;
$map-xs-height: 250px;
$map-md-height: 400px;

.google-map-container {
  max-width: 870px;
  margin-left: auto;
  margin-right: auto;
 
}
.google-map {
  width: 100%;
}

.rd-google-map-default {
  max-width: none;
}

@include media-breakpoint-up(lg) {
  .rd-google-map-with-icon {
    .gm-style {
      > div:nth-child(1) {
        > div:nth-child(4) {
          > div:nth-child(4) {
            > div:nth-child(1) {
              border-radius: $border-sm !important;
              > div:nth-child(1) {
                > div:nth-child(2) {
                  box-shadow:  none !important;
                  background-color: transparent !important;
                }
              }
            }
          }
        }
      }
    }
    .gm-wrapper {
      > div:nth-child(1) {
        > div:nth-child(1) {
          > div:nth-child(3) {
            z-index: 100;
            > div {
              margin-top: -5px;
              > div {
                box-shadow: none !important;
              }
            }
          }
          > div:nth-child(4) {
            border-radius: $border-sm !important;
            box-shadow:  0 8px 21px 0 rgba(#cdced6, 1) !important;
          }
        }
      }
    }
    .gm-style-iw {
      > div:nth-child(1) {
        overflow: visible !important;
        > div:nth-child(1) {
          overflow: visible !important;
        }
      }
    }
    .iw-content {
      p {
        position: relative;
        text-align: center;
        margin-left: 15px;
        margin-top: 30px;
        margin-bottom: 30px;
        padding-top: 50px;
        color: $gray-darker;
        letter-spacing: $spacing-sm;
        &:before {
          position: absolute;
          top: 0;
          left: 50%;
          display: block;
          width: 30px;
          height: 30px;
          line-height: 30px;
          content: '\f440';
          font-family: 'Material Design Icons', sans-serif;
          font-size: 36px;
          letter-spacing: 768px;
          color: $secondary;
          transform: translateX(-50%);
        }
      }
    }
  }
}

.rd-google-map-wrap {
  .google-map-container {
    max-width: 940px;
  }
}

.page-footer-extended {
  .rd-google-map-wrap {
    .google-map-container {
      max-width: none;
    }
  }
}

.rd-google-map-wrap-full-height {
  @include media-breakpoint-up(xl) {
    position: relative;
    padding-bottom: 70%;
    width: 100%;
    .google-map-container.rd-google-map-full-height {
      position: absolute !important;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      min-height: 100%;
      height: 100%;
      max-width: none;
    }
  }
}

.rd-google-map {
  &.rd-google-map-full-height {
    @include media-breakpoint-up(xl) {
      
    }
  }
}

.rd-google-map__model {
  color: $black;
  height: $map-height;
  
  img {
    max-width: none !important;
  }
  
  @include media-breakpoint-up(sm) {
    height: $map-xs-height;
  }
  
  @include media-breakpoint-up(lg) {
    height: $map-md-height;
  }

  &.rd-google-map-sm {
    @include media-breakpoint-up(lg) {
      min-height: 500px;
    }
  }
  
  &.rd-google-map-md {
    @include media-breakpoint-up(lg) {
      min-height: 600px;
    }
  }
}

.map_locations {
  display: none;
}

* + .rd-google-map { margin-top: 50px; }

.rd-google-map-wrap + .shell { margin-top: 50px; }

@include media-breakpoint-up(xl) {
  .rd-google-map-wrap + .shell { margin-top: 0; }
}

.page-footer-extended .google-map-wrap {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: calc(50% + 250px);
}
.page-footer-extended .google-map {
  height: 100%;
  max-width: none;
}
.page-footer-extended .google-map-container {
  height: 100%;
}


@media (min-width: 1600px) {
  .page-footer-extended {
    padding: 160px 0 60px;
  }
  .page-footer-extended * + h6 {
    margin-top: 115px;
  }
  .page-footer-extended .google-map-wrap {
    right: calc(50% + 330px);
  }
}

/*
* @subsection Google Map
* @description Describes style declarations for RD Google Map extension
* @version     1.0.0
*/
//.google-map-markers {
//  display: none;
//}

.google-map-container {
  width: 100%;
}

.google-map-default {
  max-width: none;
}

@media (min-width: 992px) {
  .google-map-with-icon .gm-style > div:nth-child(1) > div:nth-child(4) > div:nth-child(4) > div:nth-child(1) {
    border-radius: 9px !important;
  }
  .google-map-with-icon .gm-style > div:nth-child(1) > div:nth-child(4) > div:nth-child(4) > div:nth-child(1) > div:nth-child(1) > div:nth-child(2) {
    box-shadow: none !important;
    background-color: transparent !important;
  }
  .google-map-with-icon .gm-wrapper > div:nth-child(1) > div:nth-child(1) > div:nth-child(3) {
    z-index: 100;
  }
  .google-map-with-icon .gm-wrapper > div:nth-child(1) > div:nth-child(1) > div:nth-child(3) > div {
    margin-top: -5px;
  }
  .google-map-with-icon .gm-wrapper > div:nth-child(1) > div:nth-child(1) > div:nth-child(3) > div > div {
    box-shadow: none !important;
  }
  .google-map-with-icon .gm-wrapper > div:nth-child(1) > div:nth-child(1) > div:nth-child(4) {
    border-radius: 9px !important;
    box-shadow: 0 8px 21px 0 #cdced6 !important;
  }
  .google-map-with-icon .gm-style-iw > div:nth-child(1) {
    overflow: visible !important;
  }
  .google-map-with-icon .gm-style-iw > div:nth-child(1) > div:nth-child(1) {
    overflow: visible !important;
  }
  .google-map-with-icon .iw-content p {
    position: relative;
    text-align: center;
    margin-left: 15px;
    margin-top: 30px;
    margin-bottom: 30px;
    padding-top: 50px;
    color: #29293a;
    letter-spacing: 0.02em;
  }
  .google-map-with-icon .iw-content p:before {
    position: absolute;
    top: 0;
    left: 50%;
    display: block;
    width: 30px;
    height: 30px;
    line-height: 30px;
    content: '\f440';
    font-family: 'Material Design Icons', sans-serif;
    font-size: 36px;
    letter-spacing: 768px;
    color: #ed1c94;
    transform: translateX(-50%);
  }
}

.google-map-wrap .google-map {
  max-width: 940px;
}

.page-footer-extended .google-map-wrap .google-map {
  max-width: none;
}

@media (min-width: 1200px) {
  .google-map-wrap-full-height {
    position: relative;
    padding-bottom: 70%;
    width: 100%;
  }
  .google-map-wrap-full-height .rd-google-map.rd-google-map-full-height {
    position: absolute !important;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 100%;
    height: 100%;
    max-width: none;
  }
}

.google-map {
  color: #000000;
  height: 200px;
}

.google-map img {
  max-width: none !important;
}

@media (min-width: 480px) {
  .google-map {
    height: 250px;
  }
}

@media (min-width: 992px) {
  .google-map {
    height: 400px;
  }
}

@media (min-width: 992px) {
  .google-map.google-map-sm {
    min-height: 500px;
  }
}

@media (min-width: 992px) {
  .google-map.google-map-md {
    min-height: 600px;
  }
}

.map_locations {
  display: none;
}

* + .google-map-container {
  margin-top: 50px;
}

.google-map-wrap + .container {
  margin-top: 50px;
}

@media (min-width: 1200px) {
  .google-map-wrap + .container {
    margin-top: 0;
  }
}