/* ─── NEVHC Health Center Locator ─────────────────────────────────────────── */

.nevhc-locator {
  font-family: inherit;
  max-width: 1200px;
  margin: 0 auto;
}

/* Search Bar */
.nevhc-locator__search-bar {
  margin-bottom: 24px;
}

.nevhc-locator__search-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nevhc-locator__input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-size: 16px;
  border: 2px solid #ddd;
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
}

.nevhc-locator__input:focus {
  border-color: #1A6BB5;
}

.nevhc-locator__search-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: #1A6BB5;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.nevhc-locator__search-btn:hover {
  background: #145091;
}

.nevhc-locator__clear-btn {
  padding: 12px 18px;
  background: transparent;
  color: #555;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.nevhc-locator__clear-btn:hover {
  border-color: #1A6BB5;
  color: #1A6BB5;
}

.nevhc-locator__status {
  margin-top: 8px;
  font-size: 14px;
  min-height: 20px;
}

.nevhc-locator__status--loading { color: #666; }
.nevhc-locator__status--error   { color: #c00; }
.nevhc-locator__status--notice  { color: #666; }

/* Layout */
.nevhc-locator__body {
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-areas: "results map";
  gap: 24px;
  align-items: start;
}

.nevhc-locator__results-col {
  grid-area: results;
}

.nevhc-locator__map-col {
  grid-area: map;
  position: sticky;
  top: 100px;
}

/* Results Header */
.nevhc-locator__results-header {
  padding-bottom: 12px;
  border-bottom: 2px solid #f0f0f0;
  margin-bottom: 12px;
  font-size: 14px;
  color: #555;
  font-weight: 600;
}

/* Results List */
.nevhc-locator__list {
  max-height: 600px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #ddd transparent;
}

.nevhc-locator__list::-webkit-scrollbar { width: 5px; }
.nevhc-locator__list::-webkit-scrollbar-thumb { background: #ddd; border-radius: 3px; }

.nevhc-locator__loading,
.nevhc-locator__no-results {
  padding: 24px 0;
  color: #888;
  font-size: 14px;
  text-align: center;
}

/* Result Card */
.nevhc-result-card {
  display: flex;
  gap: 14px;
  padding: 14px;
  border: 1.5px solid #eee;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #fff;
}

.nevhc-result-card:hover {
  border-color: #1A6BB5;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.nevhc-result-card.is-active {
  border-color: #1A6BB5;
  box-shadow: 0 0 0 3px rgba(26,107,181,0.12);
}

/* Thumbnail */
.nevhc-result__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.nevhc-result__thumb--placeholder {
  width: 64px;
  height: 64px;
  border-radius: 6px;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ccc;
  flex-shrink: 0;
}

/* Card Body */
.nevhc-result__body {
  flex: 1;
  min-width: 0;
}

.nevhc-result__name {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #111;
  line-height: 1.3;
}

.nevhc-result__distance {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: #1A6BB5;
  background: rgba(26,107,181,0.08);
  padding: 2px 7px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.nevhc-result__address {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
  margin: 0 0 4px;
  font-style: normal;
}

.nevhc-result__phone,
.nevhc-result__email,
.nevhc-result__hours {
  font-size: 12px;
  color: #666;
  margin: 2px 0;
}

.nevhc-result__phone a,
.nevhc-result__email a {
  color: inherit;
  text-decoration: none;
}

.nevhc-result__phone a:hover,
.nevhc-result__email a:hover { text-decoration: underline; }

.nevhc-result__link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1A6BB5;
  text-decoration: none;
}

.nevhc-result__link:hover { text-decoration: underline; }

/* Map */
.nevhc-locator__map {
  width: 100%;
  height: 560px;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f0;
  border: 1.5px solid #eee;
}

.nevhc-map-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: #888;
  font-size: 14px;
  padding: 20px;
  line-height: 1.6;
}

/* ─── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nevhc-locator__body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "map"
      "results";
  }

  .nevhc-locator__map-col {
    position: static;
  }

  .nevhc-locator__map {
    height: 380px;
  }

  .nevhc-locator__list {
    max-height: none;
  }
}

@media (max-width: 480px) {
  .nevhc-locator__search-inner {
    flex-direction: column;
  }

  .nevhc-locator__search-btn,
  .nevhc-locator__clear-btn {
    width: 100%;
    justify-content: center;
  }

  .nevhc-locator__map {
    height: 280px;
  }
}

/* ─── Groups ───────────────────────────────────────────────────────────────── */
.nevhc-locator .nevhc-locator__group + .nevhc-locator__group {
  margin-top: 22px;
}

.nevhc-locator .nevhc-locator__group-title {
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0067B1;
}

/* ─── Location block: card and info window ─────────────────────────────────── */
.nevhc-result-card > .nevhc-loc {
  flex: 1 1 auto;
  min-width: 0;
}

.nevhc-loc {
  font-family: inherit;
  color: #555;
  text-align: left;
}

.nevhc-loc--iw {
  width: 290px;
  max-width: 100%;
  padding: 2px 2px 4px;
  box-sizing: border-box;
}

.nevhc-loc__head {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.nevhc-loc__tile {
  position: relative;
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #0067B1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nevhc-loc__tile img {
  display: block;
  width: 38px;
  height: 38px;
  margin: 0;
  max-width: none;
}

.nevhc-loc__tile .nevhc-loc__photo {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
}

.nevhc-loc__tile svg {
  display: block;
  width: 28px;
  height: 32px;
}

.nevhc-loc__num {
  position: absolute;
  right: -6px;
  bottom: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 10px;
  border: 1.5px solid #0067B1;
  background: #fff;
  color: #0067B1;
  font-size: 11px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
}

.nevhc-loc--wic .nevhc-loc__num {
  border-color: #133b50;
  background: #FDB913;
  color: #133b50;
}

.nevhc-loc__id {
  flex: 1 1 auto;
  min-width: 0;
}

.nevhc-locator .nevhc-loc__name,
.nevhc-loc .nevhc-loc__name {
  margin: 0 0 4px;
  padding: 0;
  font-size: 15px;
  line-height: 1.3;
  font-weight: 700;
  color: #111;
  overflow-wrap: break-word;
}

.nevhc-loc__address {
  margin: 0 0 4px;
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
  color: #555;
}

.nevhc-loc__phone,
.nevhc-loc__email {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
}

.nevhc-loc__phone a,
.nevhc-loc__email a {
  color: #0067B1;
  font-weight: 600;
  text-decoration: none;
}

.nevhc-loc__phone a:hover,
.nevhc-loc__email a:hover {
  text-decoration: underline;
}

/* Hours: a separated block, the day label in its own column and the times beside it */
.nevhc-hours {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e6e6e6;
}

.nevhc-loc .nevhc-hours__label {
  margin: 0 0 6px;
  padding: 0;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0067B1;
}

.nevhc-hours__grid {
  display: grid;
  grid-template-columns: fit-content(50%) minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  font-size: 13px;
  line-height: 1.45;
  color: #444;
}

.nevhc-hours__day,
.nevhc-hours__time,
.nevhc-hours__full {
  min-width: 0;
  text-transform: none;
  letter-spacing: normal;
  overflow-wrap: break-word;
}

.nevhc-hours__day {
  font-weight: 700;
  color: #222;
}

.nevhc-hours__full {
  grid-column: 1 / -1;
}

.nevhc-loc__actions {
  margin: 12px 0 0;
}

.nevhc-loc .nevhc-loc__directions {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 6px;
  background: #0067B1;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: normal;
}

.nevhc-loc .nevhc-loc__directions:hover,
.nevhc-loc .nevhc-loc__directions:focus {
  background: #00528d;
  color: #fff;
}

/* WIC tag above a WIC site's name, in card and info window */
.nevhc-locator .nevhc-loc__tag,
.nevhc-loc .nevhc-loc__tag {
  display: inline-block;
  margin: 0 0 5px;
  padding: 1px 8px;
  border-radius: 10px;
  background: #FDB913;
  color: #133b50;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
}

/* ─── Chooser: the locations under one tap on the map ──────────────────────── */
@media (max-width: 900px) {
  .nevhc-locator .nevhc-locator__map-col.is-choosing {
    position: relative;
    top: auto;
  }
}

.nevhc-locator .nevhc-chooser {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  z-index: 10;
  max-width: 360px;
  max-height: calc(100% - 8px);
  margin: 0 auto;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 0 4px 4px;
  border: 1px solid #c9d3dc;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  font-family: inherit;
  text-align: left;
}

.nevhc-locator .nevhc-chooser__head {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
}

.nevhc-locator .nevhc-chooser__title {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0 0 0 8px;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 700;
  color: #133b50;
  letter-spacing: normal;
  text-transform: none;
  overflow-wrap: break-word;
}

.nevhc-locator .nevhc-chooser__close,
.nevhc-locator .nevhc-chooser__option {
  box-sizing: border-box;
  margin: 0;
  border: 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: none;
  font-family: inherit;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  cursor: pointer;
}

.nevhc-locator .nevhc-chooser__close {
  flex: 0 0 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  padding: 0;
  color: #333;
}

.nevhc-locator .nevhc-chooser__close svg {
  display: block;
  width: 16px;
  height: 16px;
}

.nevhc-locator .nevhc-chooser__list {
  border-top: 1px solid #e6e6e6;
}

.nevhc-locator .nevhc-chooser__option {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  height: auto;
  padding: 4px 8px;
  border-bottom: 1px solid #f0f0f0;
  border-radius: 0;
  color: #111;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 600;
  text-align: left;
  white-space: normal;
}

.nevhc-locator .nevhc-chooser__option:last-child {
  border-bottom: 0;
}

.nevhc-locator .nevhc-chooser__option:hover {
  background: #f2f7fb;
  color: #111;
}

.nevhc-locator .nevhc-chooser__close:hover {
  background: #f2f2f2;
  color: #111;
}

.nevhc-locator .nevhc-chooser__close:focus,
.nevhc-locator .nevhc-chooser__option:focus {
  outline: 3px solid #0067B1;
  outline-offset: -3px;
}

.nevhc-locator .nevhc-chooser__num {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  box-sizing: border-box;
  border-radius: 11px;
  border: 1.5px solid #0067B1;
  background: #0067B1;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
}

.nevhc-locator .nevhc-chooser__option--wic .nevhc-chooser__num {
  border-color: #133b50;
  background: #FDB913;
  color: #133b50;
}

.nevhc-locator .nevhc-chooser__name {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: break-word;
}

.nevhc-locator .nevhc-chooser__tag {
  flex: 0 0 auto;
  padding: 1px 8px;
  border-radius: 10px;
  background: #FDB913;
  color: #133b50;
  font-size: 11px;
  line-height: 1.5;
  font-weight: 700;
}

@media (min-width: 901px) {
  .nevhc-locator .nevhc-chooser {
    top: 12px;
    max-height: calc(100% - 24px);
  }
}
