.locations-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: clamp(55vh, 65vh, 75vh);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: var(--space-xl);
  padding-bottom: var(--space-xl);
}

.locations-hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.locations-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.locations-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content-wrapper {
  max-width: 800px;
  margin-left: 0;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

.hero-image-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

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

.locations-hero.theme-blue h1,
.locations-hero.theme-blue p {
  color: var(--nv-white);
}

.locations-hero.theme-blue.has-bg-image::before {
  background-color: rgba(0, 44, 71, 0.6);
}

.locations-hero.theme-white {
  background-color: var(--background-color);
}

.locations-hero.theme-white h1,
.locations-hero.theme-white p {
  color: var(--text-color);
}

.locations-hero.theme-white.has-bg-image::before {
  background-color: rgba(0, 0, 0, 0.5);
}

@media (min-width: 769px) {
  /* Removed background-image rule */
}

@media (max-width: 768px) {
  .locations-hero {
    min-height: clamp(50vh, 60vh, 70vh);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
  }

  .hero-content-wrapper {
    max-width: 100%;
    text-align: center;
    align-items: center;
  }

  .hero-image-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    width: 100%;
  }

  .hero-actions {
    justify-content: center;
  }
}