.blh-prox-search {
  --blh-font-body: 'Geist', 'Geist Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --blh-font-heading: 'Aquavit', Georgia, 'Times New Roman', serif;
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 20px;
  font-family: var(--blh-font-body);
}

.blh-prox-search__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  background: #f5f5f5;
  padding: 16px;
  border-radius: 8px;
}

.blh-prox-search__input,
.blh-prox-search__radius,
.blh-prox-amenities__toggle,
.blh-prox-search__button {
  font-family: var(--blh-font-body);
}

.blh-prox-search__input {
  flex: 1 1 240px;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  font-size: 15px;
}

.blh-prox-search__radius {
  flex: 0 0 auto;
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
}

.blh-prox-amenities {
  position: relative;
  flex: 0 0 auto;
}

.blh-prox-amenities__toggle {
  padding: 12px 14px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  font-size: 15px;
  background: #fff;
  cursor: pointer;
  color: #172945;
  white-space: nowrap;
}

.blh-prox-amenities__toggle::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.blh-prox-amenities__count {
  font-weight: 600;
}

.blh-prox-amenities__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 8px;
  padding: 12px 14px;
  width: 300px;
  max-height: 320px;
  overflow-y: auto;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.14);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 12px;
}

.blh-prox-amenities__panel[hidden] {
  display: none;
}

.blh-prox-amenities__option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-family: var(--blh-font-body);
  padding: 5px 0;
  cursor: pointer;
  color: #222;
}

.blh-prox-amenities__option input {
  flex: 0 0 auto;
}

.blh-prox-search__button {
  flex: 0 0 auto;
  padding: 12px 24px;
  background: #172945;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
}

.blh-prox-search__button:hover {
  background: #0f1c33;
}

.blh-prox-search__button:disabled {
  opacity: 0.6;
  cursor: default;
}

.blh-prox-search__status {
  margin-top: 12px;
  font-size: 14px;
  font-family: var(--blh-font-body);
  color: #444;
  min-height: 1.2em;
}

.blh-prox-search__results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.blh-prox-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s ease;
}

.blh-prox-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.blh-prox-card__image-wrap {
  height: 160px;
  background-color: #e2e2e2;
}

.blh-prox-card__map {
  width: 100%;
  height: 160px;
  display: block;
  pointer-events: none; /* the whole card is already a link to the park page */
}

.blh-prox-card__image {
  height: 160px;
  background-size: cover;
  background-position: center;
  background-color: #e2e2e2;
}

.blh-prox-card__image--placeholder {
  background: linear-gradient(135deg, #e9edf2, #dfe4ea);
}

.blh-prox-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

.blh-prox-card__distance {
  display: inline-block;
  font-size: 12px;
  font-family: var(--blh-font-body);
  font-weight: 600;
  color: #172945;
  background: #eef1f6;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.blh-prox-card__title {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.3;
  font-family: var(--blh-font-heading);
  font-weight: 600;
  color: #000;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blh-prox-card__excerpt {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.5;
  font-family: var(--blh-font-body);
  color: #555;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blh-prox-card__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-family: var(--blh-font-body);
  color: #000;
  margin-top: auto;
  padding-top: 4px;
}

.blh-prox-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
}

.blh-prox-pagination:empty {
  display: none;
  margin-top: 0;
}

.blh-prox-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  background: #fff;
  color: #172945;
  font-family: var(--blh-font-body);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.blh-prox-pagination__btn:hover {
  background: #f5f5f5;
}

.blh-prox-pagination__btn.is-current {
  background: #172945;
  border-color: #172945;
  color: #fff;
  cursor: default;
}

.blh-prox-pagination__btn.is-disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 478px) {
  .blh-prox-pagination__btn--page {
    min-width: 32px;
    height: 32px;
    padding: 0 6px;
    font-size: 13px;
  }
}

@media (max-width: 478px) {
  .blh-prox-search__row {
    flex-direction: column;
    align-items: stretch;
  }
  .blh-prox-search__input,
  .blh-prox-search__radius,
  .blh-prox-amenities,
  .blh-prox-search__button {
    flex: 1 1 auto;
    width: 100%;
  }
  .blh-prox-amenities__toggle {
    width: 100%;
  }
  .blh-prox-amenities__panel {
    width: 100%;
    grid-template-columns: 1fr;
    left: 0;
    right: 0;
  }
}
