/* Import Lato */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');
.locations-tabs-section,
.locations-tabs-section * {
  font-family: 'Lato', sans-serif !important;
}
/* Wrapper */
.locations-tabs-section {
  padding: 2rem 1rem;
  font-family: 'Lato', sans-serif; /* <-- Apply Lato to entire module */
}

.locations-tabs {
  max-width: 1100px;          /* adjust as needed */
  margin: 0 auto;
  border-radius: 6px;
  background-color: #ffffff;
  overflow: hidden;           /* keeps borders clean at corners */
}

.locations-tabs__heading {
  text-align: center !important;
  padding-bottom: 1.25rem !important;
}

.locations-tabs__subheading {
  text-align: center !important;
  margin-bottom: 1.5rem;
}

/* Tabs nav */
/* Tabs row at the top */
.locations-tabs__nav {
  display: flex;
  border-bottom: 1px solid #d1d5db;
  background-color: #f3f4f6; /* light gray bar */
}

/* Individual tab */
.locations-tabs__tab {
  flex: 1 1 0;
  border: none;
  background: #f3f4f6; 
  padding: 0.75rem 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  color: #374151;
  border-right: 1px solid #d1d5db;
  border-bottom: 1px solid #d1d5db;
  border-top: 1px solid #d1d5db;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Remove right border on last tab */
.locations-tabs__tab:last-child {
  border-right: none;
}

/* Active tab visually connected to panel */
.locations-tabs__tab.is-active {
  background-color: #ffffff;
  color: #0b5785;

  border-bottom-color: transparent !important; /* hide bottom border */
  margin-bottom: -1px; /* pull tab down to sit flush with panel */
  position: relative;
  z-index: 2; /* ensures it renders above the panel border */
}

/* Optional: hover effect */
.locations-tabs__tab:is(:hover, :focus-visible):not(.is-active) {
  background-color: #e5e7eb;
}

/* Panels */
.locations-tabs__panel {
  padding: 1.5rem 1.5rem 1.75rem;
}

/* headings inside */
.locations-tabs__heading {
  text-align: left;
  padding: 1.25rem 1.5rem 0.25rem;
  margin: 0;
}

.locations-tabs__subheading {
  text-align: left;
  padding: 0 1.5rem 1rem;
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

/* Grid stays the same */
/* Desktop: 3 fixed columns per grid (per county / branch group) */
.locations-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start; /* keeps 1–2 cards left-aligned */
}
.atm-county-group .locations-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start; /* allow different heights per row */
}

/* Medium screens: 2 columns */
@media (max-width: 1024px) {
  .locations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Mobile: 1 column */
@media (max-width: 640px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }
}

/* Group header (city sections) */
.branch-group {
  margin-bottom: 2rem;
}

.branch-group__header {
  margin-bottom: 0.75rem;
}

.branch-group__title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0b5785; /* DuGood blue */
  margin: 0 0 0.1rem;
}

.branch-group__note {
  margin: 0;
  color: #4b5563;
  font-size: 0.9rem;
}

/* Card container */
.location-card.branch-card {
  display: flex;
  flex-direction: row;
  background-color: #ffffff;
  box-shadow: 0 8px 15px rgba(0,0,0,0.25);
  overflow: hidden;
  height: 100%;
  border-top: 3px solid #036;
  width: 100%;      /* important */
  max-width: none;  /* remove any 335px cap */
}

/* Image column */
.location-card__image {
  flex: 0 0 115px;     /* fixed-ish width like your existing cards */
  max-width: 115px;
  overflow: hidden;
}

.location-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content column */
.location-card__body {
  flex: 1;
  padding: 0.75rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
}

.location-card__body p{
  line-height: 1.5 !important;
  padding: 0 !important;
  margin: 2%;
}

/* Name */
.branch-card__name {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: #0b5785;
}

/* Address */
.branch-card__address {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: #374151;
}

/* Phone */
.branch-card__phone {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  color: #374151;
}

.branch-card__phone-label {
  font-weight: 600;
}

.branch-card__phone a {
  color: #0b5785;
  text-decoration: underline;
}

.branch-card__phone a:hover {
  text-decoration: none;
}

/* Tags / features line */
.branch-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 2%;
}

.branch-card__badge {
  display: inline-block;
  padding: 0.15rem 0.2rem;
  border-radius: 999px;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: none;
  white-space: nowrap;
}

/* Directions link area */
.branch-card__footer {
  padding: 0 1rem 0.75rem;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.branch-card__map-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b5785;
  text-decoration: underline;
  line-height: 1.5;
  margin: 2%;
}

.branch-card__map-link:hover {
  text-decoration: none;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 640px) {
  .location-card.branch-card {
    flex-direction: column;
  }

  .location-card__image {
    max-width: 100%;
    flex: 0 0 auto;
  }

  .branch-card__footer {
    padding-top: 0;
  }
}
{# END BRANCH #}
{# BEGIN ATM #}
.location-card.atm-card {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
  box-shadow: 0 8px 15px rgba(0,0,0,0.15);
  border-top: 3px solid #036;
  padding: 0.75rem 1rem 1rem;
  width: 100%;      /* important */
  min-height: 245px;
}
/* City header */
.atm-card__header {
  margin-bottom: 0.5rem;
}

.atm-card__city {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0b5785;
}

/* ATM list */
.atm-card__list {
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0;
}

.atm-card__item {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.5;
}

.atm-card__cu {
  display: block;
  font-weight: 600;
  color: #111827;
}

.atm-card__address {
  display: block;
  color: #4b5563;
  line-height: 1.5;
}

/* Extra items hidden until "Show more" */
.atm-card__item--extra {
  display: none;
}

.atm-card__list.is-expanded .atm-card__item--extra {
  display: block;
}

/* Show more button */
.atm-card__toggle {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0b5785;
  cursor: pointer;
  text-decoration: underline;
}

.atm-card__toggle:hover {
  text-decoration: none;
}
.atm-controls {
  text-align: right;
}

.atm-expand-all {
  border: none;
  background: transparent;
  padding: 10px;
  font-size: 0.9rem;
  font-weight: 700 !important;
  color: #0b5785 !important;
  cursor: pointer;
  text-decoration: underline !important;
}

.atm-expand-all:hover {
  text-decoration: none !important;
}
.atm-card__county {
  margin: 0 0 0.5rem;
  font-size: 20px;
  font-weight: 700;
  color: #0b5785;
}

.atm-card__city-name {
  margin: 0.5rem 0 0.25rem;
  font-size: 18px;
  font-weight: 300;
  color: #0b5785;
}
/* County table of contents */
.atm-toc {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.atm-toc__label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #374151;
  margin-right: 0.5rem;
}

.atm-toc__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.atm-toc__item {
  margin: 0;
}

.atm-toc__link {
  border: 1px solid #036;
  background-color: #fff;
  border-radius: 5px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #014C6E;
  cursor: pointer;
  white-space: nowrap;
}

.atm-toc__link:hover {
  background-color: #e5e7eb;
}

/* Make county sections scroll nicely below sticky headers (if any) */
.atm-county-group {
  scroll-margin-top: 100px; /* adjust if you have a sticky header height */
  padding-bottom: 30px;
}
.atm-county-group .location-card.atm-card {
  flex: 0 0 calc((100% - 2 * 1.5rem) / 3); /* 3 columns with 2 gaps */
}
.atm-county-heading{
  padding-bottom: 10px;
}
/* Medium screens: 2 per row */
@media (max-width: 1024px) {
  .atm-county-group .location-card.atm-card {
    flex: 0 0 calc((100% - 1.5rem) / 2); /* 2 columns, 1 gap */
  }
}

/* Mobile: 1 per row */
@media (max-width: 640px) {
  .atm-county-group .location-card.atm-card {
    flex: 0 0 100%;
  }
}
