﻿/* POP LOCATION LIST
------------------------------------------------------------------------*/
.pop-locations-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
}

.pop-locations-wrapper .loader {
  display: none;
}

.pop-locations-wrapper .loader.active {
  position: absolute;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0060E1;
  color: var(--bomb-blue);
  font-size: 1.4rem;
  background: rgba(255,255,255,0.9);
}

.pop-locations-map {
  position: relative;
  height: 50vh;
  overflow: hidden;
  margin: -3rem -8% 3rem;
}

.pop-locations-map img {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.pop-locations-list .text-label {
  margin-left: 2rem;
}

.pop-location {
  position: relative;
  padding: 2rem;
  margin-top: -3px;
}

.pop-location::before,
.pop-location::after {
  content: '';
  position: absolute;
  top: 0;
  left: 3rem;
  width: calc(100% - 3rem);
  height: 3px;
  background: #E5EFFC;
  background: var(--bomb-blue-focus);
}

.pop-location::after {
  top: auto;
  bottom: 0;
}

.pop-location:hover {
  background: #E5EFFC;
  background: var(--bomb-blue-focus);
  cursor: pointer;
}

.pop-location.active {
  z-index: 1;
  color: #fff;
  background: #fd0e24;
  background: var(--bomb-red);
  cursor: pointer;
}

.pop-location.active a {
  color: #fff;
}

.pop-location.active::before,
.pop-location.active::after {
  background: #fd0e24;
  background: var(--bomb-red);
}

.pop-location:first-of-type {
  margin-top: 3rem;
}

.pop-location p {
  margin: 0;
  text-transform: uppercase;
}

.pop-location .pop-location-address,
.pop-location .pop-location-phone {
  font-weight: bold;
}

.pop-location a {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  text-decoration: underline;
}

@media screen and (min-width: 1040px) {
  .pop-locations-wrapper {
    flex-direction: row;
    height: 75vh;
    overflow: hidden;
  }

  .pop-locations-map,
  .pop-locations-list {
    flex: 1;
    margin: 0;
  }

  .pop-locations-map {
    height: auto;
  }

  .pop-locations-list .text-label {
    margin-left: 3rem;
  }

  .pop-locations-list {
    overflow-y: scroll;
  }

  .pop-location {
    position: relative;
    padding: 1.5rem 3rem;
    margin-top: -3px;
  }
}
