/* IDSA Search — Local Business Answer Engine */

body.idsa-search-public-page .site-main {
  padding-top: 0;
}

.idsa-search-page {
  padding: 0 0 22px;
  background: #fff;
  min-height: 0;
}

.idsa-search-page--home {
  background: #f4f8ff;
}

.idsa-search-wrap {
  max-width: min(1160px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}

.idsa-search-page--home .idsa-search-wrap {
  padding-top: 0;
}

.idsa-search-hero-band {
  margin: 0 -16px;
  padding: 6px 16px 9px;
  background:
    radial-gradient(ellipse 100% 85% at 50% 0%, rgba(26, 115, 232, 0.22) 0%, transparent 62%),
    linear-gradient(180deg, #bfdbfe 0%, #dbeafe 38%, #e8f2ff 72%, #f4f8ff 100%);
  border-bottom: 1px solid rgba(37, 99, 235, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.idsa-search-head--hero {
  text-align: center;
  padding: 0;
  max-width: 700px;
  margin: 0 auto;
}

.idsa-search-page--home .idsa-search-head--hero {
  max-width: none;
}

.idsa-search-page--home .idsa-search-form {
  max-width: min(700px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.idsa-search-page--home .idsa-search-action-panel {
  max-width: min(1160px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.idsa-search-home-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 8px;
  margin: 8px auto 0;
  max-width: min(700px, 100%);
  font-size: 0.84rem;
  font-weight: 600;
}

.idsa-search-home-links a {
  color: #1a73e8;
  text-decoration: none;
}

.idsa-search-home-links a:hover {
  text-decoration: underline;
}

.idsa-search-home-links__sep {
  color: #94a3b8;
  user-select: none;
}

.idsa-search-list-nudge--home {
  margin: 6px auto 0;
  max-width: min(700px, 100%);
  text-align: center;
  font-size: 0.78rem;
}

.idsa-search-head--compact {
  padding: 8px 0 6px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef2f7;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.idsa-search-title {
  margin: 0 0 4px;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #0c4a6e;
  max-width: none;
}

.idsa-search-tagline {
  margin: 0 auto 6px;
  max-width: 36rem;
  font-size: clamp(0.88rem, 1.7vw, 1rem);
  line-height: 1.45;
  color: #334155;
  font-weight: 500;
}

.idsa-search-page--home .idsa-search-examples {
  margin: 2px 0 0;
  font-size: 0.72rem;
}

.idsa-search-page--home .idsa-search-manual-wrap {
  margin-top: 6px;
}

.idsa-search-page--home .idsa-search-head__location-status {
  margin-bottom: 8px;
}

.idsa-search-question {
  margin: 0 0 6px;
  font-size: clamp(1.1rem, 3.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.35;
  color: #202124;
  text-align: left;
}

.idsa-search-answer-summary {
  margin: 0 0 8px;
  padding: 10px 12px;
  border-left: 3px solid #1a73e8;
  background: #f8fbff;
  border-radius: 0 10px 10px 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #3c4043;
  text-align: left;
}

.idsa-search-results-count {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #70757a;
  text-align: left;
}

.idsa-search-results-count strong {
  color: #202124;
}

/* Location-first primary action */
.idsa-search-location-primary {
  margin-bottom: 16px;
  text-align: center;
}

.idsa-search-use-location {
  min-height: 46px;
  min-width: 12rem;
  padding: 0 22px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 600;
}

.idsa-search-use-location.is-active {
  background: #e8f0fe;
  color: #174ea6;
  border: 1px solid #1a73e8;
  box-shadow: none;
}

.idsa-search-location-status {
  margin: 10px auto 0;
  max-width: 28rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: #5f6368;
}

.idsa-search-location-status.is-success {
  color: #137333;
}

.idsa-search-location-status.is-error {
  color: #c5221f;
}

.idsa-search-location-chip-track {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 10px;
}

.idsa-search-location-chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid #1a73e8;
  background: #e8f0fe;
  color: #174ea6;
  font-size: 13px;
  font-weight: 600;
}

.idsa-search-change-location {
  margin-top: 8px;
  padding: 0;
  border: none;
  background: none;
  color: #1a73e8;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.idsa-search-change-location:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.idsa-search-head__location-status {
  margin: 0 auto 12px;
  text-align: center;
}

/* Header — Use My Location (search + map pages) */
.idsa-header-discovery-location {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: 4px;
}

.idsa-header-discovery-location__btn {
  min-height: 36px;
  padding: 0 14px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.idsa-header-discovery-location__chips {
  max-width: 140px;
}

.idsa-header-discovery-location__chips .idsa-search-location-chip {
  font-size: 0.72rem;
  padding: 2px 8px;
}

.mobile-panel-inner .idsa-header-discovery-location {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 0.5rem 0;
  padding: 0.65rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.mobile-panel-inner .idsa-header-discovery-location__btn {
  width: 100%;
  justify-content: center;
}

.mobile-panel-inner .idsa-header-discovery-location__chips {
  max-width: none;
}

@media (max-width: 1240px) {
  .main-nav .idsa-header-discovery-location {
    display: none;
  }
}

.idsa-search-form {
  max-width: min(700px, 100%);
  margin: 0 auto;
  text-align: left;
}

.idsa-search-input-row {
  display: flex;
  align-items: stretch;
  border: 1px solid #c6dafc;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 2px 12px rgba(26, 115, 232, 0.12);
  overflow: hidden;
  transition: box-shadow 0.15s, border-color 0.15s;
}

.idsa-search-input-row:focus-within {
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.18), 0 0 0 2px rgba(66, 133, 244, 0.35);
  border-color: #4285f4;
}

.idsa-search-input-icon {
  display: flex;
  align-items: center;
  padding-left: 16px;
  font-size: 1rem;
  color: #9aa0a6;
  user-select: none;
}

.idsa-search-input {
  flex: 1;
  min-width: 0;
  min-height: 46px;
  border: none;
  padding: 0 12px;
  font-size: 16px;
  color: #202124;
  background: transparent;
}

.idsa-search-input:focus {
  outline: none;
}

.idsa-search-submit {
  min-height: 50px;
  padding: 0 28px;
  border: none;
  border-left: 1px solid rgba(26, 115, 232, 0.15);
  background: #1a73e8;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.32);
}

.idsa-search-submit:hover {
  background: #1557b0;
  box-shadow: 0 5px 16px rgba(26, 115, 232, 0.38);
}

.idsa-search-examples {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.35;
  text-align: center;
}

.idsa-search-manual-wrap {
  margin-top: 8px;
  text-align: center;
}

.idsa-search-manual-toggle {
  padding: 0;
  border: none;
  background: none;
  color: #1a73e8;
  font-size: 0.84rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
}

.idsa-search-manual-toggle:focus-visible {
  outline: 2px solid #4285f4;
  outline-offset: 2px;
}

.idsa-search-manual-panel {
  margin-top: 10px;
  text-align: left;
}

.idsa-search-manual-panel[hidden] {
  display: none;
}

.idsa-search-location-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: #70757a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.idsa-search-location-input {
  width: 100%;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid #dfe1e5;
  border-radius: 12px;
  font-size: 15px;
  color: #202124;
  background: #fff;
  box-sizing: border-box;
}

.idsa-search-location-input:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 1px #4285f4;
}

/* Chips */
.idsa-search-chips {
  margin-top: 8px;
  text-align: center;
}

.idsa-search-page--home .idsa-search-chips {
  margin-top: 6px;
}

.idsa-search-chips-label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #70757a;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.idsa-search-chips-track {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.idsa-search-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 18px;
  border: 1px solid #93c5fd;
  background: #fff;
  color: #174ea6;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(26, 115, 232, 0.1);
}

.idsa-search-chip:hover {
  background: #e8f0fe;
  border-color: #1a73e8;
}

/* Action cards */
.idsa-search-action-panel {
  margin-top: 10px;
  padding-bottom: 0;
}

.idsa-search-page--home .idsa-search-action-panel {
  margin-top: 10px;
}

.idsa-search-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.idsa-search-page--home .idsa-search-action-card {
  min-height: 108px;
  padding: 12px;
}

.idsa-search-action-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-height: 128px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: #202124;
  box-shadow: 0 1px 4px rgba(26, 115, 232, 0.08);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.idsa-search-action-card:hover,
.idsa-search-action-card:focus-visible {
  border-color: #1a73e8;
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.idsa-search-action-card--revenue {
  border: 2px solid #1a73e8;
  background: linear-gradient(180deg, #e8f2ff 0%, #fff 55%);
  box-shadow: 0 4px 16px rgba(26, 115, 232, 0.18);
}

.idsa-search-action-card--revenue:hover,
.idsa-search-action-card--revenue:focus-visible {
  box-shadow: 0 6px 20px rgba(26, 115, 232, 0.24);
  transform: translateY(-3px);
}

.idsa-search-action-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #e8f0fe;
  font-size: 1.1rem;
}

.idsa-search-action-card--revenue .idsa-search-action-card__icon {
  background: #1a73e8;
  color: #fff;
}

.idsa-search-action-card__title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.25;
}

.idsa-search-action-card--revenue .idsa-search-action-card__cta {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 8px;
  background: #1a73e8;
  color: #fff;
}

.idsa-search-action-card__desc {
  flex: 1;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #5f6368;
}

.idsa-search-action-card__cta {
  margin-top: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a73e8;
}

.idsa-search-action-card--revenue .idsa-search-action-card__title {
  color: #174ea6;
  font-size: 0.98rem;
}

/* Proof strip — home */
.idsa-search-proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 10px auto 0;
  padding: 0;
  list-style: none;
  max-width: min(700px, 100%);
}

.idsa-search-proof-strip li {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.02em;
}

.idsa-search-proof-strip li::before {
  content: "✓ ";
  color: #1a73e8;
}

/* Direct answer + result cards */
.idsa-search-direct-answer {
  margin-bottom: 13px;
}

.idsa-search-results {
  margin-top: 5px;
}

.idsa-search-section {
  margin-bottom: 14px;
}

.idsa-search-section-title {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #70757a;
}

.idsa-search-result-list {
  display: grid;
  gap: 12px;
}

.idsa-search-result-card {
  padding: 14px 16px;
  border: 1px solid #e8eaed;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.06);
}

.idsa-search-result-card--featured {
  border-color: #1a73e8;
  border-width: 2px;
  background: linear-gradient(180deg, #f8fbff 0%, #fff 100%);
  box-shadow: 0 4px 14px rgba(26, 115, 232, 0.14);
  padding: 12px 14px;
}

.idsa-search-result-card--featured .idsa-search-result-card__head {
  margin-bottom: 6px;
}

.idsa-search-result-card--featured .idsa-search-result-card__title {
  font-size: 1.15rem;
}

.idsa-search-result-card__featured-meta {
  display: grid;
  gap: 4px;
  margin: 0 0 10px;
}

.idsa-search-result-card__featured-meta p {
  margin: 0;
  font-size: 0.88rem;
  color: #3c4043;
  line-height: 1.4;
}

.idsa-search-result-card__meta-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #70757a;
  margin-right: 6px;
}

.idsa-search-list-nudge {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #5f6368;
  text-align: center;
}

.idsa-search-list-nudge a {
  font-weight: 600;
  color: #1a73e8;
  text-decoration: none;
}

.idsa-search-list-nudge a:hover {
  text-decoration: underline;
}

.idsa-search-result-card__answer {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #202124;
  font-weight: 500;
}

.idsa-search-result-card--featured .idsa-search-result-card__answer {
  font-size: 1rem;
}

.idsa-search-result-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.idsa-search-result-card__title {
  margin: 0;
  flex: 1 1 180px;
  min-width: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

.idsa-search-result-card__title a {
  color: #1a0dab;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.idsa-search-result-card__title a:hover {
  text-decoration: underline;
}

.idsa-search-result-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.idsa-search-result-card__facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: 8px 14px;
  margin: 0 0 10px;
}

.idsa-search-result-card__fact {
  margin: 0;
  min-width: 0;
}

.idsa-search-result-card__fact dt {
  margin: 0 0 2px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #70757a;
}

.idsa-search-result-card__fact dd {
  margin: 0;
  font-size: 0.84rem;
  color: #3c4043;
  line-height: 1.35;
  word-break: break-word;
}

.idsa-search-result-card__snippet {
  display: none;
}

.idsa-search-result-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.idsa-search-result-card__actions .idsa-btn {
  min-height: 40px;
}

.idsa-search-result-card__actions--featured .idsa-btn-primary {
  min-height: 44px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(26, 115, 232, 0.22);
}

.idsa-search-result-card__actions--featured .idsa-btn-secondary {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  font-weight: 600;
}

.idsa-search-result-card__actions--featured .idsa-btn-secondary:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #334155;
}

/* Empty + inquiry */
.idsa-search-empty {
  padding: 16px 0;
  text-align: center;
}

.idsa-search-empty-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #202124;
}

.idsa-search-empty-text {
  margin: 0 auto 13px;
  max-width: 32rem;
  color: #5f6368;
  font-size: 0.92rem;
  line-height: 1.6;
}

.idsa-search-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.idsa-search-empty-map {
  margin: 10px 0 0;
  font-size: 0.84rem;
}

.idsa-search-inquiry-foot {
  margin: 14px 0 0;
  padding: 0;
  text-align: center;
  font-size: 0.84rem;
  color: #64748b;
  line-height: 1.45;
}

.idsa-search-inquiry-foot a {
  font-weight: 700;
  color: #1a73e8;
  text-decoration: none;
}

.idsa-search-inquiry-foot a:hover {
  text-decoration: underline;
}

.idsa-search-footer-tools {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}

.idsa-search-page--home .idsa-search-footer-tools {
  margin-top: 20px;
  background: #fff;
  margin-left: -16px;
  margin-right: -16px;
  padding: 16px 16px 0;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
}

.idsa-search-survey-note {
  margin: 10px 0 0;
  font-size: 0.76rem;
  color: #94a3b8;
  text-align: center;
}

.idsa-search-survey-note a {
  font-weight: 600;
  color: #64748b;
  text-decoration: underline;
}

.idsa-search-survey-note a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .idsa-search-page {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
  }

  .idsa-search-hero-band {
    padding: 10px 12px 8px;
    margin: 0 -16px;
  }

  .idsa-search-input-row {
    flex-wrap: wrap;
    border-radius: 16px;
  }

  .idsa-search-input-icon {
    display: none;
  }

  .idsa-search-input {
    width: 100%;
    flex: 1 1 100%;
    border-bottom: 1px solid #eef2f7;
    min-height: 46px;
  }

  .idsa-search-submit {
    flex: 1 1 100%;
    width: 100%;
    border-left: none;
    min-height: 44px;
  }

  .idsa-search-action-grid {
    grid-template-columns: 1fr;
  }

  .idsa-search-action-card {
    min-height: auto;
  }

  .idsa-search-result-card__actions .idsa-btn,
  .idsa-search-empty-actions .idsa-btn {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .idsa-search-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .idsa-search-hero-band {
    padding: 10px 24px 12px;
    margin: 0 -24px;
  }

  .idsa-search-wrap {
    padding: 0 24px;
  }

  .idsa-search-page--home .idsa-search-footer-tools {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .idsa-search-page--results .idsa-search-wrap {
    max-width: min(900px, 100%);
  }
}

@media (min-width: 1366px) {
  .idsa-search-page--home .idsa-search-action-card {
    min-height: 100px;
  }

  .idsa-search-page--home .idsa-search-action-card__desc {
    font-size: 0.74rem;
    line-height: 1.35;
  }
}

/* Map discovery cross-links (Phase 02) */
.idsa-discovery-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.idsa-discovery-link:hover,
.idsa-discovery-link:focus-visible {
  color: #1e40af;
  border-bottom-color: #93c5fd;
  outline: none;
}

.idsa-discovery-link--map::before {
  content: "🗺";
  font-size: 0.95rem;
  line-height: 1;
}

.idsa-discovery-disclaimer {
  margin: 0.35rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #64748b;
}

.idsa-search-map-discovery {
  margin-top: 0.65rem;
  text-align: center;
}

.idsa-search-page--results .idsa-search-map-discovery {
  margin-top: 0.5rem;
}

.idsa-discovery-link--inline {
  font-size: 0.84rem;
  font-weight: 600;
}
