/* booth-lookup.css — ENH-7.3 Phase 3 interactive booth lookup.
   Loaded on /VendorMap alongside site-plan.css. All rules are additive and
   only affect elements the JS enhances, so the static map is unaffected if
   this CSS loads but the JS / data do not. */

/* ── Vendor Map page presentation polish ─────────────────────────────────── */
.vm-heading {
  font-family: 'Nunito', sans-serif;
  font-weight: 900;
  font-size: 1.6rem;
  color: #fd5a28;
  text-align: center;
  margin: 0 0 1rem;
}

/* Frame around the map (additive — does not change sizing/overflow the zoom JS relies on) */
.site-plan-container.map-frame {
  border: 1px solid #e7dccb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.10);
  padding: 6px;
}

/* "Getting Here" section sits below the booth map */
.getting-here {
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}
@media print {
  /* Print = the booth map only; hide directions/satellite + zoom controls */
  .getting-here,
  .site-plan-zoom-bar,
  .site-plan-actions { display: none !important; }
  .site-plan-container.map-frame { border: none; box-shadow: none; padding: 0; }
}

/* Interactive booths: pointer affordance + reliable touch target (iOS). */
.site-plan .booth-interactive {
  cursor: pointer;
  touch-action: manipulation;
  pointer-events: all;
}

/* High-contrast focus ring. SVG outline rendering is inconsistent across
   browsers, so we use BOTH an outline and a stroke fallback (belt-and-suspenders
   per RESEARCH-VENDOR-MAP-2026.md — Narrator users especially need it). */
.site-plan .booth-interactive:focus {
  outline: 3px solid #1565c0;
  outline-offset: 1px;
}
.site-plan .booth-interactive:focus-visible {
  outline: 3px solid #1565c0;
  outline-offset: 1px;
}
.site-plan .booth-interactive:focus {
  stroke: #1565c0;
  stroke-width: 2.5;
}

/* Search highlight / dim */
.site-plan .booth-match {
  stroke: #c62828;
  stroke-width: 2.5;
  fill: #ffe082;
}
.site-plan .booth-dim {
  opacity: 0.35;
}

/* ── Search bar ───────────────────────────────────────────────────────────── */
.booth-search-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 1rem;
}
.booth-search-wrap label {
  font-weight: 700;
}
.booth-search-wrap input[type="search"] {
  flex: 1 1 220px;
  max-width: 360px;
  padding: 0.5rem 0.65rem;
  font-size: 1rem;
  border: 2px solid #b0b0b0;
  border-radius: 8px;
}
.booth-search-wrap input[type="search"]:focus {
  border-color: #1565c0;
  outline: 2px solid #1565c0;
}
.booth-search-count {
  font-size: 0.9rem;
  color: #4a4a4a;
}

/* ── Status note (offline / load failure) ─────────────────────────────────── */
.booth-lookup-status {
  margin: 0.5rem 0 1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 8px;
  background: #fff8e1;
  border: 1px solid #f0c36d;
  color: #6b5300;
  font-size: 0.95rem;
}

/* ── Popover (role="dialog", non-modal) ───────────────────────────────────── */
.vendor-popover {
  position: fixed;
  z-index: 1000;
  width: min(320px, calc(100vw - 24px));
  background: #ffffff;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  padding: 0.9rem 1rem 1rem;
}
.vendor-popover[hidden] { display: none; }
.vendor-popover:focus { outline: 3px solid #1565c0; outline-offset: 2px; }

.vendor-popover .vp-close {
  position: absolute;
  top: 0.35rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #555;
  padding: 0.15rem 0.4rem;
}
.vendor-popover .vp-close:hover,
.vendor-popover .vp-close:focus { color: #000; outline: 2px solid #1565c0; border-radius: 4px; }

.vendor-popover #vp-title {
  margin: 0 1.5rem 0.15rem 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
}
.vendor-popover #vp-category {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.1rem 0.5rem;
  background: #e8f0fe;
  color: #174ea6;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.vendor-popover #vp-desc {
  margin: 0.2rem 0 0.6rem;
  color: #333;
  font-size: 0.95rem;
}
.vendor-popover #vp-link {
  display: inline-block;
  font-weight: 700;
  color: #1565c0;
}
.vendor-popover #vp-link[hidden] { display: none; }

/* Respect reduced motion — nothing animates, but keep the contract explicit. */
@media (prefers-reduced-motion: reduce) {
  .vendor-popover { transition: none; }
}
