/*
 * Nearby locations.
 * Same card tokens as related treatments — 1px #e5e5e5 line, 8px radius,
 * 16px padding, whole card is the link — so the two modules read as one system.
 * One column at 390, two at 768: every area with siblings has exactly two.
 */

.nearby {
  margin: 40px 0 56px;
}

.nearby__inner {
  max-width: var(--wide-size);
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.nearby__title {
  font-family: Lora, Georgia, serif;
  font-size: 26px;
  line-height: 1.2;
  color: #1d1d1d;
  margin: 0 0 24px;
}

.nearby__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.nearby__card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  min-height: 44px;
  text-decoration: none;
  color: #1d1d1d;
  background: #fff;
}

.nearby__card:hover {
  border-color: #003b49;
}

.nearby__card:focus-visible {
  outline: 2px solid #1779ba;
  outline-offset: 2px;
}

.nearby__name {
  font-family: Lora, Georgia, serif;
  font-size: 18px;
  line-height: 1.3;
}

.nearby__address {
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.5;
  color: #333;
}

.nearby__all {
  display: inline-block;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 13px;
  color: #333;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 14px 0;
}

.nearby__all:focus-visible {
  outline: 2px solid #1779ba;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .nearby__inner {
    padding-left: 1.875rem;
    padding-right: 1.875rem;
  }

  .nearby__list {
    grid-template-columns: repeat(2, 1fr);
  }
}
