/* Service areas (locations index, home teaser, city page) */

/* City pages load home.css for Our Solutions; home uses row-reverse in hero.
   Services hero uses row (pages.css): copy left, Yelp/Google right — keep that here. */
@media (width >= 1440px) {
  body .hero .hero__box-wrap.section-box-wrap {
    flex-direction: row;
  }
}

.service-areas-page {
  padding: 0 0 72px;
}

.service-areas-page__hero {
  margin-bottom: 40px;
}

/* /locations index — optional photo intro */
.locations-index-hero-wrap {
  margin-bottom: 8px;
}

.locations-index-hero {
  /* Same idea as .hero: clears fixed header via --scroll-padding-top */
  padding-top: calc(var(--scroll-padding-top) + 40px);
  padding-bottom: 40px;
  border-radius: 0 0 24px 24px;
}

/* Текст інтро вужчий за повну сітку — візуально ближче до «плашки» навігації */
.locations-index-hero__inner {
  max-width: 720px;
}

.locations-index-hero--photo {
  position: relative;
  background-image: var(--loc-index-hero-bg);
  background-size: cover;
  background-position: center;
  color: #fff;
}

.locations-index-hero--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0.25) 100%);
  pointer-events: none;
}

.locations-index-hero--photo .locations-index-hero__inner {
  position: relative;
  z-index: 1;
}

.locations-index-hero--photo .service-areas-page__eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.locations-index-hero--photo .service-areas-page__title {
  color: #fff;
}

.locations-index-hero--photo .service-areas-page__title-accent {
  color: #0e7aed;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

.locations-index-hero--photo .service-areas-page__lead {
  color: rgba(255, 255, 255, 0.92);
}

.locations-index-hero__cta {
  margin-top: 16px;
  text-decoration: none;
}

.service-areas-page__lower {
  padding-top: 24px;
}

.service-areas-page__map-section-head {
  margin-bottom: 32px;
}

.service-areas-page__map-section-title {
  margin: 0 0 12px;
  color: #111827;
}

.service-areas-page__map-section-lead {
  max-width: 65ch;
  margin: 0;
  color: #4b5563;
  line-height: 1.55;
  font-size: 1rem;
}

/* Same markup as home solutions block; home.css provides grid + .service__* cards.
   Modifier avoids home-only padding-bottom (overlap with process CTA). */
.solutions-index--page {
  padding-bottom: 40px !important;
}

@media (width <= 767px) {
  .solutions-index--page {
    padding-bottom: 24px !important;
  }
}

.service-areas-page__eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin: 0 0 12px;
  font-weight: 600;
}

.service-areas-page__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #111827;
}

.service-areas-page__title-accent {
  display: block;
  color: #0e7aed;
  margin-top: 4px;
}

.service-areas-page__lead {
  max-width: 52ch;
  color: #4b5563;
  margin: 0 0 20px;
  line-height: 1.55;
}

.service-areas-page__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .service-areas-page__grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
    gap: 40px;
  }
}

.acp-locations-map {
  width: 100%;
  min-height: 260px;
  height: 360px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  z-index: 1;
}

.service-areas-page__map-note {
  font-size: 12px;
  color: #6b7280;
  margin: 10px 0 0;
}

.service-areas-page__list-head {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #111827;
  margin: 0 0 20px;
  padding-top: 32px;
  border-top: 1px solid #e5e7eb;
}

.service-areas-page__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px 24px;
}

@media (min-width: 560px) {
  .service-areas-page__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.service-areas-page__list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #111827;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

.service-areas-page__list a::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.45em;
  flex-shrink: 0;
  background: #0e7aed;
  border-radius: 1px;
}

.service-areas-page__list a:hover {
  color: #0e7aed;
}

/* Home teaser — sits after “Why American Choice”; keep it visually light */
.service-areas-home {
  padding: 40px 0 56px;
  background: transparent;
  border-top: none;
}

.service-areas-home__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}

@media (min-width: 900px) {
  .service-areas-home__grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
    gap: 36px;
  }
}

.service-areas-home .acp-locations-map {
  height: var(--acp-home-map-h, 280px);
  min-height: 220px;
  border: 1px solid #e8eaed;
  box-shadow: none;
}

.service-areas-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.service-areas-home__actions .btn--action {
  text-decoration: none;
}

.service-areas-home__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 16px;
}

.service-areas-home__cities a {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #374151;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.service-areas-home__cities a:hover {
  color: #0e7aed;
}

/* City detail */
.location-detail {
  padding: 48px 0 80px;
}

.location-detail__breadcrumb {
  font-size: 13px;
  margin-bottom: 20px;
  color: #6b7280;
}

.location-detail__breadcrumb a {
  color: #0e7aed;
  text-decoration: none;
}

.location-detail__breadcrumb a:hover {
  text-decoration: underline;
}

.location-detail__title {
  font-size: clamp(1.85rem, 4.2vw, 2.6rem);
  font-weight: 700;
  margin: 0 0 16px;
  line-height: 1.15;
}

.location-detail__intro {
  font-size: 1.1rem;
  color: #4b5563;
  max-width: 60ch;
  line-height: 1.55;
  margin: 0 0 28px;
}

.location-detail__body {
  max-width: 720px;
  color: #374151;
  line-height: 1.65;
}

.location-detail__body p {
  margin: 0 0 16px;
}

.location-detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.location-detail__actions .btn--action {
  text-decoration: none;
}

.leaflet-container {
  font-family: Onest, system-ui, sans-serif;
}

/* Location landing (service-style body copy) */
.location-page__prose {
  padding: 24px 0 8px;
}

.location-page__prose-inner {
  max-width: 720px;
  color: #374151;
  line-height: 1.65;
}

.location-page__prose-inner p {
  margin: 0 0 16px;
}

.location-page__prose-inner p:last-child {
  margin-bottom: 0;
}
