/* BRANCH LOCATIONS LISTING PAGE */

.locations {
    padding: 60px 20px;
  }
  
  /* Title */
  .locations-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
    line-height: 1.2;
    color: #052E78;
  }
  
  /* Grid */
  .locations-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 20px; 
    align-items: stretch;
  }

  /* Mobile */
  @media (max-width: 768px) {
    .locations-grid {
      grid-template-columns: 1fr;
      gap: 32px; /* optional: tighten spacing */
    }
  }

  .location-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: flex-end;
  }
  
  /* Card text */
  .location-card p {
    color: #052E78;
    opacity: 0.8;
    margin: 0 0 5px;
  }
  
  /* Headings */
  .location-state {
    font-size: 24px;
    font-weight: 900;
    color: #000;
    padding-bottom: 12px;
    margin-bottom: 0;
    line-height: normal;
  }
  
  .location-meta {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
  }
  
  /* Body text */
  .location-address,
  .location-phone,
  .location-hours {
    font-size: 16px;
  }
  
  /* Links */
  .location-address a {
    color: inherit;
    text-decoration: underline;
  }
  
  .location-address a:hover {
    color: #000;
  }
  
  .location-phone a {
    color: inherit;
  }
  
  .location-phone a:hover {
    color: #000;
  }

  .location-features {
    margin: 10px 0 14px 0;
  }
  
  .feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
  }
  
  .feature img {
    width: 24px;
    height: 24px;
  }
  
  .feature span {
    color: #052E78;
    opacity: .8;
    font-weight: 600;
  }
  
  /* Button */
  .location-btn {
    display: block;
    padding: 12px 14px;
    text-align: center;
    text-decoration: none;
    background: #0b2e6b;
    color: #fff;
    opacity: 1;
    border-radius: 5px;

    &:hover {
        color: #0b2e6b;
        background-color:  #F7BC14;
    }
  }


    /* Content under the locations listing */
  .locations-block-content {
    margin-top: 180px;
  }

    /* Mobile */
    @media (max-width: 768px) {
      .locations-block-content {
        margin-top: 30px;
      }
    }

/* INDIVIDUAL BRANCH LOCATION PAGES */

/* individual page hero */

/* remove weirdness from theme */
.single-branch_location .main {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer .main,
.alert-box .main {
  display: block;
}

@media (min-width: 768px) {
  .single-branch_location .main:not(.site-footer .main) {
    padding-top : 0;
    justify-content: center;
  }
}

.single-branch_location p br {
  display: block !important;
}

.single-branch_location ul li {
  padding-bottom: 0;
}

.single-branch_location .content-block p {
  font-size: 15px;
}

.locations-single-hero {
  position: relative;
  z-index: 5;
  color: white;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 60px;
  width: 100%;
}

@media (max-width: 768px) {
  .locations-single-hero {
    gap: 20px;
  }
}

.locations-single-hero > .col-md-6 {
  display: flex;
  flex-direction: column;
}

 /* Hero */
 .location-h1 {
  font-size: 28px !important;
  line-height: 120% !important; 
 }

 .locations-single-hero-subcopy {
  font-size: 15px;
  padding-top: 20px;
 }

/* Left side grid */
 .location-hero-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: stretch;
  color: white;
 }

 @media (max-width: 768px) {
  .location-hero-grid {
    grid-template-columns: 1fr;
  }

  .location-hero-col-2 {
    margin-top: 20px;
  }
}
 
 .location-hero-grid p {
  font-size: 15px;
 }

 /* Fake feature buttons */

.location-hero-features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

 .location-hero-feature {
    width: 100%;
    border-radius: 5px;
    padding: 6px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
 }

 .location-hero-feature.yellow {
    background-color: #F7BC14;
    margin-bottom: 12px;
 }

 .location-hero-feature.yellow span {
    color:#052E78;
    opacity: .8;
    font-weight: 700;
    font-size: 15px;
 }

 .location-hero-feature.blue {
  border: 1px solid white;
}

.location-hero-feature.blue span {
  color:white;
  opacity: .8;
  font-weight: 700;
  font-size: 15px;
}


 /* Main locations - single content section */

 .single-branch_location .main-content {
  padding: 60px 0;
 }

 @media (max-width: 768px) {
  .single-branch_location .main-content {
    padding: 30px 0;
   }
}

 .single-branch_location .main-content h3 {
  color:#052E78;
  font-size: 28px;
  font-weight: 700;
  padding-bottom: 20px;
  letter-spacing: normal !important;
 }

 @media (max-width: 768px) {
  .single-branch_location .main-content h3  {
    font-size: 20px;
  }
}

 .location-map-content, .location-details, .why-visit, .banking-services {
  padding-bottom: 60px;
 }

 @media (max-width: 768px) {
  .location-map-content, .location-details, .why-visit, .banking-services  {
    padding-bottom: 30px;
  }
}

 .location-map-content p, .location-details li, .why-visit p {
  font-size: 15px !important;
}

.location-map-content p strong {
  font-size: 19px;
  color:#052E78;
  font-weight: 700;
}

.acf-map {
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.nearby-list {
  list-style: none;
  padding-left: 0 !important;
  padding-bottom: 20px;
}

.nearby-list li {
  position: relative;
  padding-left: 28px; 
  list-style: none;
}

.nearby-list li a {
  color:#052E78;
  opacity: .8;
}

.nearby-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background-image: url('/wp-content/themes/westtown.20251202/assets/images/icon-placeholder.svg');
  background-size: contain;
  background-repeat: no-repeat;
}

.locations-link {
    background-color: #052E78;
    width: 100%;
    border-radius: 5px;
    display: block;
    padding: 14px 12px;
    text-align: center;
    color: white !important;
    text-decoration: none !important;

    &:hover {
      background-color: #F7BC14;
      color:#052E78;
    }
}

 /* Mobile chaos */
.show-desktop {
  display: block;
}

.show-mobile {
  display: none;
}

/* mobile */
@media (max-width: 767px) {
  .show-desktop {
    display: none;
  }

  .show-mobile {
    display: block;
  }
}