.locality-hero {
  position: relative;
  overflow: hidden;
  padding: 1.5rem 0 2.5rem;
  background: linear-gradient(160deg, #f8fafc 0%, #eef4f8 50%, #fff4ea 100%);
  border-bottom: 1px solid rgba(13, 110, 253, 0.08);
}

.locality-hero::before,
.locality-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}

.locality-hero::before {
  width: 22rem;
  height: 22rem;
  top: -7rem;
  right: -5rem;
  background: rgba(13, 110, 253, 0.14);
}

.locality-hero::after {
  width: 18rem;
  height: 18rem;
  left: -4rem;
  bottom: -7rem;
  background: rgba(235, 137, 68, 0.18);
}

.locality-hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 95, 122, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 95, 122, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 90%);
  pointer-events: none;
}

.locality-hero__shell {
  position: relative;
  z-index: 1;
}

.locality-hero__breadcrumb {
  display: inline-flex;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(30, 95, 122, 0.1);
  box-shadow: 0 8px 24px rgba(26, 43, 60, 0.06);
  backdrop-filter: blur(8px);
}

.locality-hero__breadcrumb .breadcrumb {
  margin-bottom: 0;
}

.locality-hero__breadcrumb .breadcrumb-item,
.locality-hero__breadcrumb .breadcrumb-item a {
  font-size: 0.85rem;
  color: #5c6b7a;
  text-decoration: none;
}

.locality-hero__breadcrumb .breadcrumb-item a:hover {
  color: #0d6efd;
}

.locality-hero__breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: #9ca3af;
}

.locality-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(30, 95, 122, 0.1);
  box-shadow: 0 10px 24px rgba(26, 43, 60, 0.08);
  color: #1e5f7a;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.locality-hero__eyebrow i {
  color: #eb8944;
}

.locality-hero__title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: #1a2b3c;
}

.locality-hero__title-accent {
  color: #1e5f7a;
}

.locality-hero__lead {
  max-width: 42rem;
  font-size: 1rem;
  line-height: 1.75;
  color: #5c6b7a;
}

.locality-hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.locality-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(30, 95, 122, 0.12);
  box-shadow: 0 8px 24px rgba(26, 43, 60, 0.06);
  color: #1a2b3c;
  font-size: 0.9rem;
  font-weight: 600;
}

.locality-hero__badge i {
  color: #0d6efd;
}

.locality-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.locality-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.85rem 1.25rem;
  border-radius: 0.95rem;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.locality-hero__btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.locality-hero__btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #0d6efd 0%, #1e88ff 100%);
  box-shadow: 0 12px 28px rgba(13, 110, 253, 0.28);
}

.locality-hero__btn--primary:hover {
  color: #fff;
  box-shadow: 0 16px 32px rgba(13, 110, 253, 0.32);
}

.locality-hero__btn--ghost {
  color: #1e5f7a;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(30, 95, 122, 0.14);
  box-shadow: 0 8px 24px rgba(26, 43, 60, 0.06);
}

.locality-hero__btn--ghost:hover {
  color: #0d6efd;
  border-color: rgba(13, 110, 253, 0.2);
}

.locality-hero__panel {
  position: relative;
  height: 100%;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(30, 95, 122, 0.12);
  box-shadow: 0 18px 42px rgba(26, 43, 60, 0.1);
  backdrop-filter: blur(10px);
}

.locality-hero__panel-map {
  width: 4rem;
  height: 4rem;
  border-radius: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(235, 137, 68, 0.16));
  color: #0d6efd;
  font-size: 1.55rem;
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.locality-hero__panel-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8794;
}

.locality-hero__panel-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1a2b3c;
}

.locality-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.locality-hero__stat {
  height: 100%;
  padding: 1rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid rgba(30, 95, 122, 0.1);
  box-shadow: 0 10px 24px rgba(26, 43, 60, 0.06);
}

.locality-hero__stat--highlight {
  background: linear-gradient(135deg, #0d6efd 0%, #1b7df0 100%);
  border-color: transparent;
  box-shadow: 0 14px 30px rgba(13, 110, 253, 0.24);
}

.locality-hero__stat-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7b8794;
}

.locality-hero__stat-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.25;
  color: #1a2b3c;
}

.locality-hero__stat-copy {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: #6b7280;
}

.locality-hero__stat--highlight .locality-hero__stat-label,
.locality-hero__stat--highlight .locality-hero__stat-value,
.locality-hero__stat--highlight .locality-hero__stat-copy {
  color: #fff;
}

@media (max-width: 991.98px) {
  .locality-hero {
    padding-bottom: 2rem;
  }

  .locality-hero__panel {
    margin-top: 0.5rem;
  }
}

@media (max-width: 575.98px) {
  .locality-hero {
    padding-top: 1.25rem;
  }

  .locality-hero__breadcrumb,
  .locality-hero__eyebrow,
  .locality-hero__badge {
    width: 100%;
    justify-content: center;
  }

  .locality-hero__actions a {
    width: 100%;
  }

  .locality-hero__stats {
    grid-template-columns: 1fr;
  }
}
