/* ==========================================================
   Find a Hub page (Figma: Web · 05 · Find a Hub)
   ========================================================== */

/* ---------- Search ---------- */
.find-search { padding: 72px 0; background: var(--bw-coral-bg); }
.find-search .eyebrow { display: block; margin-bottom: 20px; }
.find-title {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 20px;
}
.find-lead { font-size: clamp(16px, 1.6vw, 18px); color: var(--bw-muted); margin: 0 0 20px; }

.find-search-form { display: flex; gap: 12px; align-items: stretch; }
.find-search-field {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 18px;
  background: #fff;
  border: 2px solid var(--bw-coral);
  border-radius: 12px;
  cursor: text;
  margin: 0;
}
.find-search-field:focus-within { box-shadow: 0 0 0 .2rem rgba(255, 107, 77, .2); }
.find-search-field img { width: 20px; height: 20px; flex-shrink: 0; }
.find-search-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  color: var(--bw-navy);
}
.find-search-field input::placeholder { color: #9aa9b6; }
.find-search-btn { height: 56px; }

/* ---------- Results ---------- */
.find-results { padding: 64px 0; }
.find-results-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.find-results-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; margin: 0; }
.find-results-head span { font-size: 14px; font-weight: 500; color: var(--bw-muted); }
@media (min-width: 992px) { .find-results-row { --bs-gutter-x: 32px; } }

.hub-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.hub-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  height: auto;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.hub-card.is-selected { border: 2px solid var(--bw-coral); padding: 23px; }
.hub-card:hover,
.hub-card:focus-within,
.hub-card:focus-visible { box-shadow: 0 10px 28px rgba(10, 41, 64, .08); outline: 0; }
.hub-card:not(.is-selected):hover,
.hub-card:not(.is-selected):focus-within { border-color: #f5b4a6; }

.hub-card-top { display: flex; align-items: center; gap: 12px; }
.hub-card-title { flex: 1; min-width: 0; }
.hub-card-title h3 { font-size: 19px; font-weight: 700; margin: 0 0 2px; }
.hub-card-title p { font-size: 13px; color: var(--bw-muted); margin: 0; }
.pill-navy { background: var(--bw-navy); color: #fff; white-space: nowrap; flex-shrink: 0; }

.svc-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}
.svc-chip img { width: 14px; height: 14px; }
.svc-chip-teal { background: var(--bw-cream); color: var(--bw-teal-ink); }
.svc-chip-coral { background: var(--bw-coral-bg); color: var(--bw-coral-ink); }
.svc-chip-amber { background: var(--bw-amber-bg); color: var(--bw-amber-ink); }

.hub-hours { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; font-weight: 500; color: var(--bw-muted); margin: 0; }
.hub-hours img { width: 16px; height: 16px; flex-shrink: 0; }

.hub-live { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; font-weight: 600; }
.hub-live li { display: inline-flex; align-items: center; gap: 6px; }
.hub-live img { width: 8px; height: 8px; }
.hub-live-green { color: var(--bw-green); }
.hub-live-amber { color: var(--bw-amber-ink); }

.hub-card-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Diagrammatic map (positions are % of the 520 × 620 Figma frame) ---------- */
.hub-map {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 520 / 620;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--bw-border);
  border-radius: 20px;
  background-color: var(--bw-mint);
  background-image:
    linear-gradient(to right, var(--bw-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bw-border) 1px, transparent 1px);
  background-size: 12.5% 12.581%;
  background-position: -1px -1px;
}
.hub-map-road { position: absolute; background: #fff; }
.road-h { left: -4.04%; top: 40.16%; width: 107.7%; height: 16px; border-radius: 8px; }
.road-v { left: 34.42%; top: -3.39%; width: 16px; height: 106.45%; border-radius: 8px; }
.road-diag-1 { left: 48.46%; top: 92.02%; width: 119.23%; height: 12px; border-radius: 6px; transform: translate(-50%, -50%) rotate(18deg); }
.road-diag-2 { left: 73.78%; top: 50.77%; width: 12px; height: 112.9%; border-radius: 6px; transform: translate(-50%, -50%) rotate(-8deg); }

.map-pin {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translateX(-50%);
  transform-origin: 50% 100%;
  transition: transform .2s ease;
}
.map-pin-label {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bw-coral);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
  white-space: nowrap;
}
.map-pin-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 3px solid #fff;
  border-radius: 17px;
  background: var(--bw-coral);
}
.map-pin-dot img { width: 18px; height: 18px; }
.map-pin-you .map-pin-label,
.map-pin-you .map-pin-dot { background: var(--bw-teal); }
.map-pin-you { left: 33.08%; top: 32.1%; }
.map-pin-alexandria { left: 53.94%; top: 22.42%; }
.map-pin-mascot { left: 68.75%; top: 53.06%; }
.map-pin-rhodes { left: 18.75%; top: 6.29%; }
.map-pin.is-active { z-index: 2; transform: translateX(-50%) scale(1.12); }
.map-pin.is-active .map-pin-label,
.map-pin.is-active .map-pin-dot { background: var(--bw-navy); }
.map-pin.is-active .map-pin-dot { box-shadow: 0 6px 16px rgba(10, 41, 64, .25); }

.hub-map-note {
  position: absolute;
  left: 15px;
  bottom: 14px;
  font-size: 11px;
  font-weight: 500;
  color: var(--bw-muted);
}

/* ---------- On your phone ---------- */
.find-phones { padding: 88px 0; }
.find-phones .section-head { margin-bottom: 44px; }
.hub-phones { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 48px 72px; }
.hub-phone { width: 260px; max-width: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.hub-phone-shot { width: 100%; height: auto; border-radius: 26px; box-shadow: none; object-fit: cover; }
.hub-phone figcaption { display: flex; flex-direction: column; gap: 12px; }
.hub-phone figcaption strong { font-size: 15px; font-weight: 700; color: var(--bw-navy); }
.hub-phone figcaption span { font-size: 13px; line-height: 19px; color: var(--bw-muted); }

/* ---------- Notify ---------- */
.find-notify { padding: 72px 0; }
@media (min-width: 992px) { .find-notify-row { --bs-gutter-x: 48px; } }
.find-notify-copy { display: flex; flex-direction: column; gap: 10px; }
.find-notify-copy .eyebrow { color: var(--bw-coral); }
.find-notify-copy h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.015em;
  color: #fff;
  margin: 0;
}
.find-notify-copy p { font-size: 15px; color: var(--bw-on-navy); margin: 0; }

.notify-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 440px;
  max-width: 100%;
  padding: 24px;
  border-radius: 18px;
  background: var(--bw-navy-2);
}
.notify-form .form-label { font-weight: 500; color: #fff; }
.notify-form .form-control {
  height: 46px;
  border-width: 1px;
  font-size: 15px;
}
.notify-form .form-control::placeholder { color: #9aa9b6; }
.notify-form .invalid-feedback { color: #ffb4a3; }
.notify-input-icon { position: relative; }
.notify-input-icon > img { position: absolute; left: 15px; top: 14px; width: 18px; height: 18px; pointer-events: none; z-index: 1; }
.notify-input-icon .form-control { padding-left: 43px; }

/* ---------- Responsive ---------- */
@media (min-width: 1200px) {
  .hub-map { width: 520px; }
}

@media (max-width: 991.98px) {
  .find-search { padding: 56px 0; }
  .find-results { padding: 56px 0; }
  .find-phones { padding: 72px 0; }
  .find-notify { padding: 56px 0; }
  .notify-form { width: 100%; }
}

@media (max-width: 767.98px) {
  .find-search-form { flex-wrap: wrap; }
  .find-search-field { flex-basis: 100%; }
  .find-search-btn { flex: 1 1 auto; }
}

@media (max-width: 575.98px) {
  .find-search { padding: 44px 0; }
  .find-phones { padding: 56px 0; }
  .hub-card { padding: 20px; }
  .hub-card.is-selected { padding: 19px; }
  .hub-card-title h3 { font-size: 17px; }
  .hub-card-btns .btn { flex: 1 1 auto; }
  .map-pin-label { font-size: 10px; padding: 4px 8px; }
  .map-pin-dot { width: 28px; height: 28px; }
  .map-pin-dot img { width: 14px; height: 14px; }
}

/* Figma text boxes use "normal" line-height */
.find-search .eyebrow,
.find-lead,
.hub-card-title p,
.hub-hours,
.hub-live,
.hub-phone figcaption strong,
.find-notify-copy .eyebrow,
.find-notify-copy p,
.notify-form .form-label { line-height: normal; }
