.served-locations.theme-white {
  background-color: var(--background-color);
}
.served-locations.theme-blue {
  background-color: var(--nv-blue);
}

.served-locations-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}
.theme-white .served-locations-header h2 {
  color: var(--nv-blue);
}
.theme-blue .served-locations-header h2 {
  color: var(--nv-white);
}

.served-locations-footer {
  text-align: center;
  margin-top: var(--space-lg);
}

.served-locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
  justify-content: center;
}

.location-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  padding: var(--space-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  border: 2px solid var(--nv-orange);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.theme-white .location-card {
  background-color: var(--nv-blue);
}
.theme-blue .location-card {
  background-color: var(--nv-white);
}

.location-card-overlay {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--nv-blue) 14%, transparent);
}

.location-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.location-card-title-link {
  text-align: center;
  text-decoration: none;
}
.location-card-title {
  margin: 0 0 var(--space-md) 0;
}

.location-card-cities {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm) var(--space-md);
  flex-grow: 1;
  justify-items: center;
  align-items: start;
}
.location-card-cities a {
  text-decoration: none;
  text-align: center;
}
.location-card-cities p {
  font-size: 1.5rem;
  margin: 0;
}

.location-card-more {
  text-align: center;
  font-weight: 700;
  margin-top: var(--space-md);
  text-decoration: none;
  align-self: center;
  display: inline-block;
}

.location-card h3,
.location-card p,
.location-card-more {
  transition: transform 0.25s ease, font-weight 0.25s ease;
}
.location-card h3:hover,
.location-card p:hover,
.location-card-more:hover {
  transform: scale(1.15);
  font-weight: 700;
}

.theme-white .location-card,
.theme-white .location-card h3,
.theme-white .location-card p,
.theme-white .location-card a {
  color: var(--nv-white);
}
.theme-blue .location-card,
.theme-blue .location-card h3,
.theme-blue .location-card p,
.theme-blue .location-card a {
  color: var(--nv-blue);
}

.served-locations-mobile {
  display: none;
}
.mobile-card-display {
  margin-bottom: var(--space-md);
}
.mobile-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-sm);
}

.mobile-tab {
  background-color: transparent;
  border: 1px solid;
  padding: 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.theme-white .mobile-tab {
  border-color: var(--nv-blue);
  color: var(--nv-blue);
}
.theme-white .mobile-tab.is-active {
  background-color: var(--nv-blue);
  color: var(--nv-white);
}
.theme-blue .mobile-tab {
  border-color: var(--nv-white);
  color: var(--nv-white);
}
.theme-blue .mobile-tab.is-active {
  background-color: var(--nv-white);
  color: var(--nv-blue);
}

@media (max-width: 1350px) and (min-width: 769px) {
  .served-locations-grid {
    grid-template-columns: repeat(2, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .served-locations-desktop {
    display: none;
  }
  .served-locations-mobile {
    display: block;
  }

  .served-locations .mobile-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: row dense;
  }

  .served-locations .mobile-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 44px;
  }
}
