/* National Honor Grid locator + searchable community selector. */
.grid-map-state-layer { pointer-events: all; }
.honor-map-state {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.4;
  vector-effect: non-scaling-stroke;
  cursor: pointer;
  outline: none;
  transition: fill .18s ease, stroke .18s ease;
}
.honor-map-state:hover,
.honor-map-state:focus,
.honor-map-state.is-selected {
  fill: rgba(255,212,0,.035);
  stroke: rgba(255,212,0,.82);
}
.honor-map-state.is-selected { fill: rgba(255,212,0,.055); }

.grid-state-tooltip {
  position: absolute;
  z-index: 820;
  width: min(250px, calc(100% - 24px));
  padding: 11px 13px;
  border: 1px solid rgba(255,212,0,.28);
  background: rgba(7,9,11,.94);
  color: #f6f7f4;
  pointer-events: none;
  backdrop-filter: blur(12px);
}
.grid-state-tooltip[hidden] { display: none; }
.grid-state-tooltip strong,
.grid-state-tooltip span { display: block; }
.grid-state-tooltip strong { font-size: 13px; }
.grid-state-tooltip span { margin-top: 4px; color: #949da6; font-size: 10px; line-height: 1.4; }

.grid-locator {
  position: absolute;
  z-index: 780;
  left: 22px;
  bottom: 22px;
  width: min(430px, calc(100% - 44px));
}
.grid-locator-label {
  display: block;
  margin-bottom: 8px;
  color: #f5f6f2;
  font-family: ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.grid-locator-form {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(7,9,11,.92);
  backdrop-filter: blur(14px);
}
.grid-locator-form input {
  min-width: 0;
  min-height: 48px;
  padding: 0 15px;
  border: 0;
  background: transparent;
  color: white;
  font: inherit;
  outline: none;
}
.grid-locator-form input:focus { box-shadow: inset 0 0 0 1px rgba(255,212,0,.7); }
.grid-locator-form button {
  min-width: 78px;
  border: 0;
  border-left: 1px solid rgba(255,255,255,.14);
  background: #ffd400;
  color: #080a0c;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.grid-locator-help { margin: 7px 0 0; color: #767f88; font-size: 10px; line-height: 1.4; }
.grid-search-result { margin-top: 8px; }
.grid-search-result:empty { display: none; }
.grid-search-result > p,
.grid-search-not-found {
  margin: 0;
  padding: 12px 13px;
  border: 1px solid rgba(255,255,255,.13);
  background: rgba(7,9,11,.94);
  backdrop-filter: blur(14px);
}
.grid-search-result > p strong,
.grid-search-result > p span { display: block; }
.grid-search-result > p strong { color: #f6f7f4; font-size: 12px; }
.grid-search-result > p span { margin-top: 4px; color: #858e97; font-size: 10px; line-height: 1.45; }
.grid-search-result > p.is-error strong { color: #ff7f8b; }
.grid-search-not-found > span {
  color: #ffd400;
  font-family: ui-monospace,SFMono-Regular,Menlo,monospace;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.grid-search-not-found > strong { display: block; margin-top: 5px; color: white; font-size: 20px; }
.grid-search-not-found > p { margin: 7px 0 10px; color: #9ca4ac; font-size: 11px; line-height: 1.5; }
.grid-search-not-found > div { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.grid-search-not-found a { color: #ffd400; font-size: 10px; font-weight: 900; }
.grid-search-not-found a:last-child { color: #c7cdd2; }

.grid-state-panel {
  position: absolute;
  z-index: 760;
  top: 78px;
  right: 22px;
  width: min(340px, calc(100% - 44px));
  border: 1px solid rgba(255,212,0,.24);
  background: rgba(7,9,11,.94);
  backdrop-filter: blur(14px);
}
.grid-state-panel[hidden] { display: none; }
.grid-state-panel-head { display: flex; justify-content: space-between; gap: 16px; padding: 16px; border-bottom: 1px solid rgba(255,255,255,.11); }
.grid-state-panel-head span,
.grid-state-panel-head strong { display: block; }
.grid-state-panel-head span { color: #747e87; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 8px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.grid-state-panel-head strong { margin-top: 4px; color: #f6f7f4; font-size: 24px; }
.grid-state-panel-head button { width: 34px; height: 34px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: transparent; color: white; font-size: 20px; cursor: pointer; }
.grid-state-stats { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid rgba(255,255,255,.11); }
.grid-state-stats div { padding: 12px 10px; border-right: 1px solid rgba(255,255,255,.08); }
.grid-state-stats div:last-child { border-right: 0; }
.grid-state-stats strong { display: block; color: white; font-size: 21px; }
.grid-state-stats span { display: block; margin-top: 3px; color: #777f88; font-size: 8px; line-height: 1.35; text-transform: uppercase; }
.grid-state-cities { max-height: 220px; overflow-y: auto; }
.grid-state-cities > p { margin: 0; padding: 18px 16px; color: #959da5; font-size: 12px; line-height: 1.55; }
.grid-state-cities button { width: 100%; display: flex; justify-content: space-between; gap: 15px; align-items: center; padding: 13px 16px; border: 0; border-bottom: 1px solid rgba(255,255,255,.08); background: transparent; color: white; text-align: left; cursor: pointer; }
.grid-state-cities button:hover { background: rgba(255,255,255,.035); }
.grid-state-cities button span strong,
.grid-state-cities button span small { display: block; }
.grid-state-cities button span strong { font-size: 13px; }
.grid-state-cities button span small { margin-top: 4px; color: #7f8891; font-size: 9px; }
.grid-state-cities button b { color: #ffd400; }
.grid-state-actions { display: grid; gap: 7px; padding: 14px 16px 16px; }
.grid-state-actions a { color: #ffd400; font-size: 10px; font-weight: 900; }
.grid-state-actions a:last-child { color: #aeb6be; }

.honor-search-location { --search:#ffffff; pointer-events: none; }
.honor-search-location-halo { fill: var(--search); opacity: .08; }
.honor-search-location-ring { fill: rgba(7,9,11,.88); stroke: var(--search); stroke-width: 1.5; filter: drop-shadow(0 0 8px rgba(255,255,255,.8)); }
.honor-search-location-core { fill: var(--search); }
.honor-search-location-label { fill: white; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 9px; font-weight: 900; letter-spacing: .06em; paint-order: stroke; stroke: rgba(7,9,11,.95); stroke-width: 4px; }
.honor-city.is-opening .honor-city-ring { stroke-dasharray: 2 3; opacity: .72; }
.honor-city.is-opening .honor-city-core { opacity: .45; }

/* Searchable community selector on Add Your Light. */
.activation-city-search { margin-bottom: 12px; }
.activation-city-search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; border: 1px solid var(--activate-line); background: #0e1216; }
.activation-city-search-row input { min-width: 0; min-height: 58px; padding: 0 17px; border: 0; background: transparent; color: white; font: inherit; outline: none; }
.activation-city-search-row:focus-within { border-color: rgba(255,212,0,.68); }
.activation-city-search-row button { min-width: 92px; border: 0; border-left: 1px solid var(--activate-line); background: #ffd400; color: #080a0c; font-size: 10px; font-weight: 950; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.activation-city-search-help { margin: 9px 0 0; color: #717a83; font-size: 11px; line-height: 1.55; }
.activation-city-grid { grid-template-columns: 1fr !important; }
.activation-city-results { display: grid; gap: 8px; }
.activation-city-results .activation-option { min-height: 78px; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
.activation-city-results .activation-option > span strong,
.activation-city-results .activation-option > span small { display: block; }
.activation-city-results .activation-option > b { color: #ffd400; font-size: 18px; }
.activation-city-empty { padding: 16px; border: 1px solid var(--activate-line); background: #0e1216; }
.activation-city-empty > span { color: #ffd400; font-family: ui-monospace,SFMono-Regular,Menlo,monospace; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.activation-city-empty strong { display: block; margin-top: 5px; color: white; font-size: 19px; }
.activation-city-empty p { margin: 8px 0 12px; color: #8b949d; font-size: 12px; line-height: 1.55; }
.activation-city-empty div { display: flex; flex-wrap: wrap; gap: 10px 18px; }
.activation-city-empty a { color: #ffd400; font-size: 11px; font-weight: 900; }
.activation-city-empty a:last-child { color: #b4bcc4; }
.activation-selected-city { margin: 10px 0 0; padding: 12px 14px; border-left: 3px solid #ffd400; background: rgba(255,212,0,.045); color: #abb3ba; font-size: 12px; }
.activation-selected-city strong { color: white; }

@media (max-width: 1000px) {
  .grid-locator { width: min(390px, calc(100% - 44px)); }
  .grid-state-panel { top: 126px; }
}

@media (max-width: 760px) {
  .grid-locator { left: 12px; right: 12px; bottom: 140px; width: auto; }
  .grid-locator-help { display: none; }
  .grid-state-panel { top: 120px; left: 12px; right: 12px; width: auto; max-height: 300px; }
  .grid-state-stats { display: none; }
  .grid-state-cities { max-height: 145px; }
  .grid-state-tooltip { display: none !important; }
}

@media (max-width: 520px) {
  .grid-locator-form,
  .activation-city-search-row { grid-template-columns: 1fr; }
  .grid-locator-form button,
  .activation-city-search-row button { min-height: 42px; border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
}
