#hs-map-wrapper {
  max-width: 100% !important;
  display: flex;
  flex-direction: column-reverse;

  .search-icon-position {  
    background-color: #F0584D;
    border-radius: 24px;
    border: 0px;
    color: #FFF;
    font-size: 16px;
    height: 48px;
    line-height: 1;
    margin: 0px;
    padding: 16px 20px;
    text-align: center;
    width: 100%;
    max-width: 94px;
  }

  .hs-map {
    width: 100%;
    height: 300px;
    overflow: hidden;
    cursor: none;
    position: relative;

    .gm-ui-hover-effect {
      position: absolute !important;
      right: 0px !important;
    }

    h3 {
      color: #364141;
      font-size: 16px;
      line-height: 24px;
      margin-top: 10px !important;
      margin-bottom: 12px !important;
      position: relative;
  
      &:before {
        content: " ";
        background-image: url(../images/icon-marker-red.svg);
        background-size: cover;
        height: 20px;
        width: 14px;
        display: block;
        position: absolute;
        top: 2px;
        left: -26px;
      }
    }
    
    p {
      font-style: normal;
      margin: 10px 0 !important;
      color: #f0584d !important;
  
      a {
        pointer-events: none;
        color: #F0584D !important;
        text-decoration: none;
      }
    }
  }

  .hs-data {
    height: auto;
    z-index: 5;
    position: relative;
    margin: 0;
    padding-top: 0px;
    min-height: 560px;
  
    .search-form {
      padding: 0px 30px 34px 30px;

      input {
        font-size: 16px;
        line-height: 16px;
        margin: 0 12px 0 0;
        padding: 0 12px;
        height: 48px;
        border: 1px solid #BABABA;
        border-radius: 5px;
        background-color: white;
        color: #F0584D;
        text-overflow: ellipsis;
        overflow: hidden;
        white-space: nowrap;
      }
    }
  
    .accessibility-text {
      font-size: 14px;
    }

    .map-header {
      font-size: 14px;
      line-height: 22px;
      text-align: left;
      color: #364141;
      padding: 24px 30px 20px 30px;

      p {
        font-size: 14px;
        line-height: 22px;
        text-align: left;
        color: #364141;
      }
    }

    h1 {
      color: #000000;
      font-size: 32px;
      line-height: 36px;
      margin-top: 0;
    }

    a.form-btn {
      color: #000000;
      font-size: 12px;
      line-height: 12px;
      text-decoration: underline;
      padding: 10px 0;

      &:hover {
        color: #f0584d;
      }
    }

    .hs-results-wrapper {
      position: relative;
    }

    .no-results {
      text-align: left;
      padding: 34px 70px 34px 60px;

      .lede-text {
        color: #364141;
        margin-top: 0;
        margin-bottom: 20px;
      }

      p {
        color: #364141;
        text-align: left;
        padding: 34px 70px 34px 60px;
      }
    }
  }
}

/* New Additions from Prod */
.hs-item {
  position: relative;
  padding: 27px 30px 22px 38px;
  background: #ffffff;
  color: #364141;
  font-size: 16px;
  line-height: 20px;
  text-align: left;
  display: -ms-flexbox;
  display: flex;
  flex-direction: column;
  border-top: 1px solid #D8D8D8;

  &.hs-item--active {
    background-color: #fff6f5;
  }

  h2 {
    color: #364141;
    font-size: 16px;
    line-height: 24px;
    margin-top: 0px;
    margin-bottom: 12px;
    position: relative;

    &:before {
      content: " ";
      background-image: url(../images/icon-marker-red.svg);
      background-size: cover;
      height: 20px;
      width: 14px;
      display: block;
      position: absolute;
      top: 2px;
      left: -26px;
    }
  }

  .hs-address {
    font-style: normal;
    margin-bottom: 12px;

    a {
      pointer-events: none;
      color: #F0584D;
      text-decoration: none;
    }
  }

  .hs-website {
    color: #f0584d;
    word-break: break-word;
    text-decoration: none;

    &:hover,
    &.hover {
      color: #cc4b41;
    }
  }
}

/* Media Queries */
@media (min-width: 767px) {
  .hs-address a { 
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  #hs-map-wrapper {
    .hs-map {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
    }

    .hs-address a { 
      color: #f0584d;
      word-break: break-word;

      &:hover,
      &.hover {
        color: #cc4b41;
      }
    }
  }
}

@media (min-width: 1024px) {
  .hs-item h2 {
    font-size: 20px;
    line-height: 24px;
  }
}

@media (min-width: 1026px) {
  #hs-map-wrapper {
    flex-direction: row;

    .hs-data {
      width: calc(440px - 80px);
    }
  
    .hs-map {
      height: 694px;
      height: 100vh !important;
      height: calc(100vh - 159px);
      width: calc(100% - (440px - 80px)) !important;
      z-index: 6;
      position: sticky;
      top: 0;
      left: 440px;
      margin-top: 0 !important;

      &:before {
        content: " ";
        height: 100%;
        width: 25px;
        display: block;
        background: linear-gradient(
          90deg,
          rgba(0, 0, 0, 0) 0%,
          rgba(0, 0, 0, 0.08) 100%
        );
        position: absolute;
        top: 0px;
        right: 0px;
        z-index: 2;
        pointer-events: none !important;
      }
    }
  }
}

@media (max-width: 1151px) {
  #hs-map-wrapper .hs-data h1 {
    font-size: 24px;
    line-height: 28px;
  }
}

@media (min-width: 1151px) {
  #hs-map-wrapper .hs-data .hs-results-wrapper {
    overflow: hidden;
    overflow-y: scroll;
    width: calc(100% + 15px);
    margin-right: -15px;
  }
}

@media (min-width: 1200px) {
  #hs-map-wrapper {
    .hs-data .map-header {
      padding-left: 60px;
      padding-right: 70px;
    }
    
    .hs-map {
      width: calc(100% - 440px) !important;
    }

    .hs-data {
      width: 440px;
    
      .hs-search-wrapper {
        padding-left: 40px;
        padding-right: 20px;
      }
    }

    .hs-item {
      padding-left: 98px;
      padding-right: 72px;
    }
  }
}