/* ==========================================
   Wrapper
========================================== */

.coh-style-location-page-view-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================
   EXPOSED FILTER
   ========================== */
.coh-style-location-page-view-block .views-exposed-form {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  margin-top: 32px;
}

.coh-style-location-page-view-block .views-exposed-form .js-form-item-region-id {
  width: 100%;
  max-width: 500px;
  position: relative;
}

.coh-style-location-page-view-block .views-exposed-form select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #b5b5b5;
  border: 1px solid #A7A7A7;
  border-radius: 24px;
  background: #fff;
  font-size: 18px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
}

.coh-style-location-page-view-block .views-exposed-form .form-actions {
  display: none;
}

/* ==========================================
   Grid Layout
========================================== */

.coh-style-location-page-view-block .view-content {
  position: relative;
}

/* Desktop */

@media (min-width: 1024px) {

  .location-page-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

}

/* Tablet */

@media (min-width: 768px) and (max-width: 1023px) {

  .location-page-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

}

/* Mobile */

@media (max-width: 767px) {

  .location-page-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .coh-style-location-page-view-block .views-exposed-form.bef-exposed-form {
    display: block;
    position: unset;
    background: unset;
    border: unset;
    border-radius: unset;
    padding: unset;
    max-width: unset;
    max-height: unset;
    overflow: unset;
  }

}

/* ==========================================
   Cards
========================================== */

.location-page-items .views-row {
  border: 1px solid #80A8F0;
  border-radius: 4px;
  background: #fff;
  padding: 18px;
  box-sizing: border-box;
}

/* ==========================
   TITLE
   ========================== */

.views-field-title h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #0047C8;

}

.views-field-title h3 a {
  color: #224bb8;
  text-decoration: none;
}

/* ==========================
   ADDRESS
   ========================== */

.views-field-nothing {
  position: relative;
  padding-left: 28px;
  margin-bottom: 18px;
  color: #333;
  line-height: 1.5;
}

.views-field-nothing .field-location-address a {
  color: #232323;
  text-decoration: underline;
  text-decoration-style: solid;
  text-decoration-thickness: 0%;
  text-decoration-skip-ink: auto;
  text-decoration-color: #003595;
}

/* ==========================
   PHONE
   ========================== */

.views-field-field-location-phone {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #232323;
  font-size: 16px;
  letter-spacing: 0%;
}

.views-field-field-location-phone a {
   color: #232323;
  border-bottom: 1px solid #003595
}

.views-field-field-location-phone .mobile-phone-field {
  display: none;
}

/* ==========================
   WEBSITE
   ========================== */

.views-field-field-location-link {
  position: relative;
  padding-left: 28px;
}

.views-field-field-location-link a {
  color: #232323;
  border-bottom: 1px solid #003595
}


/* ==========================================
   Loader
========================================== */

@media (min-width: 768px) {

  .view-content.loading {
    position: relative;
  }

  .view-content.loading::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.7);
    z-index: 99;
  }

  .view-content.loading::after {
    content: "";
    width: 42px;
    height: 42px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -21px;
    margin-left: -21px;
    border-radius: 50%;
    border: 4px solid #dce2ed;
    border-top-color: #224bb8;
    animation: spin .8s linear infinite;
    z-index: 100;
  }

}

@keyframes spin {

  to {
    transform: rotate(360deg);
  }

}

/* ==========================================
   Mobile Navigation Arrows
========================================== */

@media (min-width: 768px) {
  .location-mobile-arrow {
    display: none;
  }

}

/* ==========================================
   Pager
========================================== */

.location-custom-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
  margin-bottom: 32px;
  font-size: 14px;
}

.pager-arrow {
  width: 32px;
  height: 32px;
  border-radius: 9999px;
  border: 2px solid #DBE3EB;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  background: var(--background-brand-neutral-disabled-1, #F8FAFB);
}

.pager-arrow:disabled {
  cursor: default;
}

.pager-arrow:disabled::after {
  opacity: .5;
}

.pager-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
}

.pager-select {
  width: 72px;
  height: 32px;
  border-radius: 4px;
  border: 1px solid #A4B7CC;
  text-align: center;
  font-size: 14px;
  padding: 6px 8px;
  gap: 8px;
  text-align: left;
  appearance: none;
}

/* ==========================================
   Slider
========================================== */

@media (max-width: 767px) {

  .coh-style-location-page-view-block {
    padding: 0 35.5px;
  }

  .location-slider-wrapper {
    overflow: hidden;
    transition: height .35s ease;
  }

  .location-slider-track {
    display: flex;
    align-items: flex-start;
    transition: transform 0.45s ease-in-out;
  }

  .location-slide {
    min-width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    height: auto;
    align-self: flex-start;
  }

  .views-field-field-location-phone .mobile-phone-field {
    display: block;
  }
  .views-field-field-location-phone .desktop-phone-field {
    display: none;
  }
  .location-custom-pager {
    gap: 16px;
  }

  /* ==========================================
   Mobile Navigation Arrows
  ========================================== */

  .location-mobile-arrow {
    position: absolute;
    top: 50%;
    z-index: 10;
    border: 0;
    background: transparent;
    cursor: pointer;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Left Arrow */

  .location-mobile-arrow.prev {
    left: -12px;
  }

  /* Right Arrow */

  .location-mobile-arrow.next {
    right: -12px;
  }

  /* hover */

  .location-mobile-arrow:hover::after {
    border-color: #224bb8;
  }

}
