@import '../helpers/helpers';
@import '../components/special-opening-schedule';
@import '../components/accordion';
@import '../components/store-locator-facilities';
@import '../components/store-locator-about';
@import '../components/store-locator-lookup';

h1 {
  margin-bottom: 30px;
}

.store-locator {
  &__container {
    margin-bottom: 20px;

    &:last-child {
      margin-bottom: 0;
    }
  }

  &__map {
    position: relative;
    min-height: 258px;
  }

  &__btn {
    @include button-full;
    margin-bottom: 10px;
  }

  &__column  {
    & .accordion:last-child {
      margin: 0;
    }
  }

  &__facilities {
    @include make-col(12);
  }

  .container > .accordion {
    padding: 15px 0 30px;
  }

  main .container .offer-banner {
    position: relative;
  }
}

.store-locator-info {
  &__title {
    font-weight: 300;
    font-size: 1.5rem;
    line-height: 2rem;
    color: $blue-dark;
    text-align: left;
    margin-bottom: 10px;
    padding-top: 0;
  }

  &-list {
    @include make-col-ready;
    margin-bottom: 20px;

    &__actions {
      margin: 0 auto;
    }
  }

  &-wrapper {
    padding-top: 40px;
  }
}

.container > .accordion {
  .accordion__header {
    font-size: 1rem;
  }

  .accordion__content {
    padding: 20px 0 0;

    .container {
      padding-left: 0;
      padding-right: 0;
    }
  }
}

.container {
  .offer-banner {
    margin-bottom: 20px;
  }
}

.map-container {
  margin: 0 0 20px;
}

.pagination-holder {
  padding-top: 20px;
}

.store-locator-info-list__actions {
  margin: 0 auto;
}

@include media-breakpoint-up(sm) {
  .store-locator {
    &__map {
      min-height: 382px;
    }
  }

  .store-locator-info {
    &-list {
      @include make-col-ready;
      @include make-col(12);

      &__actions {
        @include make-col-ready;
        @include make-col(12);

        .icon__eye {
          svg {
            vertical-align: -.45em;
            height: 1.375rem;
            width: 1.3125rem;
            margin-right: 5px;
          }
        }
      }
    }
  }

  .accordion__content {
    .container {
      padding-right: 0;
      padding-left: 0;
    }
  }
}

@include media-breakpoint-up(md) {
  .store-locator {
    &__map {
      min-height: 292px;
    }

    &__container {
      display: flex;
      justify-content: space-between;
      gap: 0;
    }

    &__row-holder {
      @include make-col-ready;
      @include make-col(6.5);
      padding-left: 5px;
      padding-right: 0;
    }
  }

  .store-locator-info {
    @include make-col-ready;
    @include make-col(5.5);
    max-width: 45%;
    padding-left: 0;

    &__title {
      font-size: 1.875rem;
      line-height: 2.875rem;
    }

    &-list {
      &__actions {
        display: none;
      }
    }
  }
}

@include media-breakpoint-up(lg) {
  .store-locator {
    &__map {
      min-height: 408px;
    }

    &__row-holder {
      max-width: 59%;
      flex: 0 0 59%;
      padding-right: 0;
      padding-left: 20px;
    }
  }

  .store-locator-info {
    @include make-col(5);
    max-width: 41%;
    padding-right: 0;
  }
}

@include media-breakpoint-up(xl) {
  .store-locator {
    &__map {
      width: 100%;
      min-height: 555px;
    }

    &__row-holder {
      @include make-col(8);
      padding-right: 0;
      padding-left: 20px;
    }
  }

  .store-locator-info {
    @include make-col(4);
    padding-right: 10px;
  }
}
