:root {
  --locator-ink: #111111;
  --locator-muted: #676767;
  --locator-line: #dedede;
  --locator-soft: #f4f4f2;
  --locator-accent: #d6ff42;
}

.locator-page {
  background: #fff;
  color: var(--locator-ink);
}

.locator-page header {
  position: absolute;
}

.locator-page .navbar-nav .nav-link.active {
  font-weight: 600;
}

.locator-shell {
  margin: 0 auto;
  max-width: 1280px;
  width: calc(100% - 64px);
}

.locator-hero {
  background:
    linear-gradient(115deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .78) 54%, rgba(0, 0, 0, .42) 100%),
    url('../assets/img/nearshop_bg.webp') center/cover no-repeat;
  color: #fff;
  min-height: 760px;
  overflow: hidden;
  padding: 194px 0 0;
  position: relative;
}

.locator-hero::before {
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 80px 80px;
  content: '';
  inset: 0;
  mask-image: linear-gradient(to right, #000, transparent 72%);
  pointer-events: none;
  position: absolute;
}

.locator-hero__glow {
  background: var(--locator-accent);
  border-radius: 50%;
  filter: blur(105px);
  height: 310px;
  opacity: .16;
  position: absolute;
  right: -60px;
  top: 160px;
  width: 310px;
}

.locator-hero__content {
  position: relative;
  z-index: 1;
}

.locator-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .18em;
  margin: 0 0 22px;
  text-transform: uppercase;
}

.locator-kicker::before {
  background: var(--locator-accent);
  content: '';
  display: inline-block;
  height: 2px;
  margin: 0 12px 3px 0;
  width: 34px;
}

.locator-hero h1 {
  font-size: clamp(54px, 6.6vw, 102px);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .92;
  margin: 0;
  max-width: 1000px;
}

.locator-hero h1 span {
  color: var(--locator-accent);
}

.locator-hero__copy {
  color: rgba(255,255,255,.72);
  font-size: 18px;
  margin: 28px 0 30px;
  max-width: 590px;
}

.locator-search {
  align-items: center;
  background: #fff;
  border-radius: 3px;
  display: flex;
  max-width: 790px;
  min-height: 66px;
  padding: 7px;
}

.locator-search__icon {
  color: #595959;
  display: grid;
  margin: 0 15px;
  place-items: center;
}

.locator-search input {
  background: transparent;
  border: 0;
  color: #111;
  flex: 1;
  font-size: 16px;
  min-width: 100px;
  outline: 0;
  padding: 14px 0;
}

.locator-search input::placeholder {
  color: #8a8a8a;
}

.locator-search button,
.empty-results button,
.load-more {
  background: #111;
  border: 1px solid #111;
  border-radius: 2px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 15px 24px;
  transition: background .2s, color .2s;
}

.locator-search button:hover,
.locator-search button:focus-visible,
.empty-results button:hover,
.empty-results button:focus-visible,
.load-more:hover,
.load-more:focus-visible {
  background: var(--locator-accent);
  color: #111;
}

.quick-search {
  align-items: center;
  color: rgba(255,255,255,.58);
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  gap: 9px;
  margin-top: 17px;
}

.quick-search button {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 30px;
  color: #fff;
  padding: 6px 13px;
}

.quick-search button:hover,
.quick-search button:focus-visible {
  background: #fff;
  color: #111;
}

.locator-hero__stats {
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
  z-index: 1;
}

.locator-hero__stats > div {
  align-items: baseline;
  border-left: 1px solid rgba(255,255,255,.22);
  display: flex;
  gap: 14px;
  padding: 27px 34px;
}

.locator-hero__stats > div:last-child {
  border-right: 1px solid rgba(255,255,255,.22);
}

.locator-hero__stats strong {
  color: var(--locator-accent);
  font-size: 34px;
  line-height: 1;
}

.locator-hero__stats span {
  color: rgba(255,255,255,.65);
  font-size: 13px;
}

.locator-results-section {
  padding: 100px 0 110px;
}

.results-toolbar {
  align-items: end;
  display: flex;
  gap: 40px;
  justify-content: space-between;
  margin-bottom: 38px;
}

.locator-kicker--dark {
  color: #5f5f5f;
  margin-bottom: 15px;
}

.locator-kicker--dark::before {
  background: #111;
}

.results-toolbar h2 {
  font-size: clamp(38px, 4.5vw, 66px);
  font-weight: 650;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0 0 12px;
}

.results-summary {
  color: var(--locator-muted);
  margin: 0;
}

.region-filter {
  min-width: 270px;
}

.region-filter label {
  color: #666;
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.region-filter select {
  appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='m1 1 6 6 6-6' fill='none' stroke='%23111' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position: right 17px center;
  background-repeat: no-repeat;
  border: 1px solid #bdbdbd;
  border-radius: 2px;
  color: #111;
  font-size: 15px;
  padding: 14px 44px 14px 16px;
  width: 100%;
}

.active-search {
  align-items: center;
  background: var(--locator-soft);
  display: flex;
  justify-content: space-between;
  margin: -12px 0 28px;
  padding: 13px 17px;
}

.active-search span {
  font-size: 14px;
}

.active-search button {
  background: transparent;
  border: 0;
  color: #111;
  font-size: 13px;
  font-weight: 600;
}

.active-search button span {
  font-size: 20px;
  line-height: 0;
  margin-left: 3px;
}

.store-results {
  border-top: 1px solid var(--locator-line);
}

.store-card {
  border-bottom: 1px solid var(--locator-line);
  display: grid;
  gap: 55px;
  grid-template-columns: minmax(240px, .7fr) minmax(260px, 1fr) minmax(330px, 1.25fr);
  padding: 42px 0;
}

.store-card__index {
  color: #929292;
  font-size: 12px;
  margin-bottom: 18px;
}

.store-card__zone {
  color: #6c6c6c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  margin: 0 0 9px;
  text-transform: uppercase;
}

.store-card h3 {
  font-size: clamp(25px, 2.3vw, 35px);
  font-weight: 650;
  letter-spacing: -.035em;
  line-height: 1.05;
  margin: 0;
}

.store-card__count {
  color: #777;
  font-size: 13px;
  margin: 12px 0 0;
}

.store-card h4 {
  color: #727272;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  margin: 2px 0 15px;
  text-transform: uppercase;
}

.retailer-list {
  display: grid;
  gap: 7px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.retailer-list a {
  align-items: center;
  color: #111;
  display: flex;
  font-size: 14px;
  gap: 10px;
  justify-content: space-between;
  line-height: 1.25;
  padding: 6px 0;
  text-decoration: none;
}

.retailer-list a::after {
  border: solid #111;
  border-width: 1px 1px 0 0;
  content: '';
  flex: 0 0 auto;
  height: 7px;
  margin-right: 3px;
  transform: rotate(45deg);
  width: 7px;
}

.retailer-list a:hover {
  text-decoration: underline;
}

.retailer-list a:hover::after {
  transform: translateX(2px) rotate(45deg);
}

.locality-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.locality-pill {
  background: var(--locator-soft);
  border-radius: 2px;
  color: #373737;
  font-size: 12px;
  line-height: 1.2;
  padding: 8px 10px;
}

.locality-pill strong {
  font-weight: 600;
}

.locality-pill span {
  color: #797979;
  margin-left: 5px;
}

.empty-results {
  background: var(--locator-soft);
  padding: 75px 25px;
  text-align: center;
}

.empty-results > span {
  color: #777;
  display: inline-grid;
  margin-bottom: 18px;
  place-items: center;
}

.empty-results h3 {
  font-size: 27px;
  margin-bottom: 8px;
}

.empty-results p {
  color: #6c6c6c;
  margin: 0 auto 22px;
}

.load-more-wrap {
  text-align: center;
}

.load-more {
  margin-top: 35px;
  min-width: 220px;
}

.locator-note {
  align-items: flex-start;
  background: #111;
  color: #fff;
  display: flex;
  gap: 18px;
  margin-top: 70px;
  padding: 27px 30px;
}

.locator-note__icon {
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  display: grid;
  flex: 0 0 24px;
  font-size: 13px;
  height: 24px;
  place-items: center;
}

.locator-note p {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  margin: 1px 0 0;
}

.locator-note strong {
  color: #fff;
}

@media (max-width: 991px) {
  .locator-hero {
    min-height: 730px;
    padding-top: 175px;
  }

  .locator-hero__stats > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding: 23px;
  }

  .store-card {
    gap: 35px;
    grid-template-columns: 1fr 1fr;
  }

  .store-card__areas {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .locator-shell {
    width: calc(100% - 32px);
  }

  .locator-page header {
    position: absolute;
  }

  .locator-hero {
    min-height: 720px;
    padding-top: 150px;
  }

  .locator-hero::before {
    background-size: 52px 52px;
  }

  .locator-hero h1 {
    font-size: clamp(48px, 15vw, 72px);
  }

  .locator-hero__copy {
    font-size: 16px;
    line-height: 1.5;
    margin-top: 22px;
  }

  .locator-search {
    display: grid;
    grid-template-columns: auto 1fr;
    padding: 7px;
  }

  .locator-search__icon {
    margin: 0 10px;
  }

  .locator-search button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .quick-search {
    margin-top: 13px;
  }

  .locator-hero__stats {
    width: 100%;
  }

  .locator-hero__stats > div {
    padding: 20px 16px;
  }

  .locator-hero__stats strong {
    font-size: 27px;
  }

  .locator-hero__stats span {
    font-size: 11px;
  }

  .locator-results-section {
    padding: 72px 0 75px;
  }

  .results-toolbar {
    align-items: stretch;
    flex-direction: column;
    gap: 28px;
  }

  .region-filter {
    min-width: 0;
  }

  .store-card {
    gap: 29px;
    grid-template-columns: 1fr;
    padding: 34px 0;
  }

  .store-card__areas {
    grid-column: auto;
  }

  .locator-note {
    margin-top: 50px;
    padding: 22px;
  }
}

@media (max-width: 420px) {
  .locator-hero {
    min-height: 760px;
  }

  .locator-hero__stats > div {
    padding: 17px 10px;
  }

  .locator-hero__stats strong {
    font-size: 23px;
  }

  .active-search {
    align-items: flex-start;
    gap: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .locator-page *,
  .locator-page *::before,
  .locator-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
