.mdc-locator {
  --mdc-loc-green: #154634;
  --mdc-loc-text: #2b2b28;
  --mdc-loc-muted: #5a5a54;
  --mdc-loc-line: rgba(21, 70, 52, 0.18);
  color: var(--mdc-loc-text);
}

.mdc-locator__title {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
}

.mdc-locator__map {
  height: 26rem;
  border: 1px solid var(--mdc-loc-line);
  background: #e9ece8;
  z-index: 0; /* keep map panes under sticky headers and the specials tab */
}

.mdc-locator__pin {
  display: block;
  width: 32px;
  height: 40px;
  padding: 0;
  margin: 0;
  background: none;
  border: 0;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: 50% 100%;
}
.mdc-locator__pin svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.3));
}
.mdc-locator__pin:hover,
.mdc-locator__pin.is-selected {
  transform: scale(1.12);
}
.mdc-locator__pin.is-dimmed {
  opacity: 0.4;
}
.mdc-locator__pin.is-selected {
  z-index: 2;
}
.mdc-locator__pin:focus-visible {
  outline: 3px solid #fb4;
  outline-offset: 2px;
  border-radius: 4px;
}
.mdc-locator.is-no-map .mdc-locator__status {
  display: none;
}

.mdc-locator__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.75rem;
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: var(--mdc-loc-muted);
}

.mdc-locator__clear {
  background: none;
  border: 1px solid var(--mdc-loc-green);
  border-radius: 2rem;
  color: var(--mdc-loc-green);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
}
.mdc-locator__clear:hover,
.mdc-locator__clear:focus-visible {
  background: var(--mdc-loc-green);
  color: #fff;
}

.mdc-locator__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.mdc-locator__card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--mdc-loc-line);
  border-radius: 0.75rem;
}
.mdc-locator__card[hidden] {
  display: none;
}

.mdc-locator__image {
  flex: 0 0 6rem;
  display: block;
}
.mdc-locator__image img {
  display: block;
  width: 6rem;
  height: 6rem;
  object-fit: cover;
  border-radius: 0.5rem;
}

.mdc-locator__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.mdc-locator__name {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
  line-height: 1.25;
}
.mdc-locator__name a {
  color: var(--mdc-loc-green);
}

.mdc-locator__address {
  font-style: normal;
  color: var(--mdc-loc-muted);
}

.mdc-locator__phone {
  color: var(--mdc-loc-text);
  font-weight: 600;
}

.mdc-locator__more {
  margin-top: 0.25rem;
  color: var(--mdc-loc-green);
  font-weight: 700;
  text-decoration: underline;
}
.mdc-locator__more:hover,
.mdc-locator__phone:hover,
.mdc-locator__name a:hover {
  color: #887035;
}

.mdc-locator__account {
  margin-top: 1.5rem;
  text-align: center;
}
.mdc-locator__account .button {
  margin: 0;
}

@media (max-width: 640px) {
  .mdc-locator__map {
    height: 20rem;
  }
  .mdc-locator__image {
    flex-basis: 5rem;
  }
  .mdc-locator__image img {
    width: 5rem;
    height: 5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mdc-locator__pin {
    transition: none;
  }
}
