/* Gaia Healers — interactive exhibit-hall map (gaia-exhibit-map.js).
   A light, printed-plan floor inside the dark Gaia app: cream floor, deep-green
   walls, leaf-green tables, emerald for what you chose, a little gold for what
   you searched. */
.gx, .gx-panel, .gx-toast {
  --gx-cream: #fbf8ef; --gx-wall: #1d4a33; --gx-table: #d8f0c6; --gx-table-line: #2f6b45;
  --gx-ink: #123b25; --gx-emerald: #1fae6a; --gx-emerald-hi: #42db86; --gx-gold: #d4ae55;
  --gx-card: var(--v3-card, #101b15); --gx-border: var(--v3-border, rgba(160,255,185,.16));
  --gx-text: var(--v3-text, #f5f7f5); --gx-muted: var(--v3-muted, #86958e);
}
.gx {
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.gx-head h2 { margin: 2px 0 4px; }
.gx-sub { margin: 0; color: var(--gx-muted); font-size: .92rem; }
.gx-label { margin: 0 0 8px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--v3-label, #8fc39c); font-weight: 700; }

/* Search */
.gx-search { position: relative; display: flex; align-items: center; }
.gx-search > .ph { position: absolute; left: 16px; font-size: 1.15rem; color: var(--gx-muted); pointer-events: none; }
.gx-search input {
  width: 100%; min-height: 52px; padding: 0 48px 0 46px; border-radius: 999px;
  border: 1px solid var(--v3-border-strong, rgba(120,245,145,.42)); background: rgba(255,255,255,.04);
  color: var(--gx-text); font: inherit; font-size: 1rem;
}
.gx-search input::placeholder { color: var(--gx-muted); }
.gx-search input:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(66,219,134,.35); }
.gx-search input::-webkit-search-cancel-button { display: none; }
.gx-search__clear { position: absolute; right: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.08); color: var(--gx-text); cursor: pointer; display: grid; place-items: center; }
.gx-count { margin: -6px 0 0 6px; min-height: 1em; font-size: .85rem; color: var(--gx-emerald-hi); }
.gx-count:empty { display: none; }

/* Stage: the map, and on a wide screen the profile floating over its right side */
.gx-stage { position: relative; }
.gx-map {
  scroll-margin-top: 150px;
  position: relative; border-radius: 22px; overflow: hidden; background: #0d1a13;
  border: 1px solid var(--gx-border); box-shadow: 0 18px 40px rgba(0,0,0,.28);
  height: min(72vh, 760px); min-height: 360px;
}
.gx-map:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(66,219,134,.5); }
.gx-map__loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--gx-muted); font-size: .9rem; }
.gx-fallback { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gx-svg { display: block; width: 100%; height: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: grab;
  background: radial-gradient(120% 90% at 50% 0%, #17301f 0%, #0d1a13 70%); }
.gx-svg.is-pannable { touch-action: none; }
.gx-svg:active { cursor: grabbing; }

.gx-floor polygon { fill: var(--gx-cream); }
.gx-walls polyline { fill: none; stroke: var(--gx-wall); stroke-width: 7; stroke-linejoin: round; stroke-linecap: round; }
.gx-windows line { stroke: #b8c9c0; stroke-width: 15; stroke-linecap: butt; }
.gx-doors line { stroke: var(--gx-cream); stroke-width: 9; }
.gx-doors line.is-main { stroke: var(--gx-emerald); stroke-width: 10; }
.gx-door-arrow { fill: var(--gx-wall); }
.gx-door-pill rect { fill: var(--gx-wall); }
.gx-door-pill text { fill: #fff; font: 700 30px/1 system-ui, -apple-system, 'Segoe UI', sans-serif; text-anchor: middle; dominant-baseline: middle; letter-spacing: .02em; }

.gx-chair { fill: #fff; stroke: var(--gx-table-line); stroke-width: 2.2; opacity: .85; }
.gx-booth__table { fill: var(--gx-table); stroke: var(--gx-table-line); stroke-width: 3; transition: fill .2s, stroke .2s; }
.gx-booth__num { fill: var(--gx-ink); font: 800 40px/1 system-ui, -apple-system, 'Segoe UI', sans-serif;
  text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.gx-booth { transition: opacity .25s; }
.gx-booth.is-taken { cursor: pointer; }
.gx-booth.is-taken:hover .gx-booth__table { fill: #c3ebb0; stroke: var(--gx-emerald); stroke-width: 4; }
.gx-booth.is-taken:focus { outline: none; }
.gx-booth.is-taken:focus-visible .gx-booth__table { stroke: var(--gx-gold); stroke-width: 6; stroke-dasharray: 14 8; }
.gx-booth__logo-bg { fill: #fff; stroke: var(--gx-table-line); stroke-width: 2.5; }
.gx-booth__logo.is-dark .gx-booth__logo-bg { fill: #10241a; }
.gx-booth__logo { display: none; pointer-events: none; }
.gx-svg.is-logos .gx-booth__logo { display: inline; }
.gx-svg.is-logos .gx-booth__num { font-size: 34px; }

/* Search: matches glow gold, the rest step back */
.gx-svg.is-searching .gx-booth:not(.is-match) { opacity: .28; }
.gx-booth.is-match .gx-booth__table { stroke: var(--gx-gold); stroke-width: 6; }
/* Spotlight: the chosen stand */
.gx-svg.is-spot:not(.is-searching) .gx-booth:not(.is-selected) { opacity: .55; }
.gx-booth.is-selected { opacity: 1 !important; }
.gx-booth.is-selected .gx-booth__table { fill: var(--gx-emerald); stroke: #0e5c37; stroke-width: 4; filter: url(#gx-glow); }
.gx-booth.is-selected .gx-booth__num { fill: #fff; }
.gx-booth.is-selected .gx-chair { stroke: var(--gx-emerald); }

/* Route */
.gx-route { fill: none; stroke: var(--gx-emerald); stroke-width: 12; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 2 26; opacity: 0; pointer-events: none; }
.gx-route.is-on { opacity: .95; animation: gx-march 1.2s linear infinite; }
@keyframes gx-march { to { stroke-dashoffset: -56; } }

/* Controls */
.gx-controls { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.gx-controls button { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--gx-border);
  background: rgba(10,22,16,.86); color: var(--gx-text); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.gx-controls button:hover { border-color: var(--gx-emerald-hi); color: var(--gx-emerald-hi); }
.gx-controls button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(66,219,134,.5); }
.gx-legend { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 7px 12px; border-radius: 999px;
  background: rgba(10,22,16,.82); color: var(--gx-text); font-size: .78rem; display: flex; align-items: center; gap: 8px; z-index: 2; }
.gx-legend__door { width: 18px; height: 5px; border-radius: 3px; background: var(--gx-emerald); }
.gx-hint { margin: -4px 0 0; color: var(--gx-muted); font-size: .8rem; text-align: center; }
.gx-hint b { color: var(--gx-text); }
@media (hover: none) { .gx-hint__desk { display: none; } }

/* Profile: a floating panel on wide screens, a bottom sheet on phones */
.gx-panel { color: var(--gx-text); }
.gx-panel__scroll { display: flex; flex-direction: column; gap: 14px; }
.gx-panel__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.08); color: var(--gx-text); cursor: pointer; display: grid; place-items: center; font-size: 1rem; z-index: 1; }
.gx-panel__close:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(66,219,134,.5); }
.gx-panel__grab { display: none; }
.gx-prof__head { display: flex; gap: 14px; align-items: center; padding-right: 40px; }
.gx-prof__head h3 { margin: 0 0 6px; font-size: 1.25rem; line-height: 1.2; }
.gx-prof__head h3:focus { outline: none; }
.gx-prof__meta { display: flex; flex-wrap: wrap; gap: 6px; }
.gx-booth-chip { padding: 4px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700;
  background: rgba(66,219,134,.16); color: var(--gx-emerald-hi); }
.gx-cat { padding: 4px 10px; border-radius: 999px; font-size: .78rem; background: rgba(212,174,85,.14); color: #e8cf8f; }
.gx-prof__tag { margin: 0; font-weight: 600; font-size: 1rem; line-height: 1.45; }
.gx-prof__desc { margin: 0; color: rgba(245,247,245,.78); font-size: .92rem; line-height: 1.6; }
.gx-prof__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.gx-prof__actions .g-btn { display: inline-flex; align-items: center; gap: 6px; }
.gx-prof__note { margin: -4px 0 0; font-size: .8rem; color: var(--gx-muted); display: flex; gap: 6px; align-items: flex-start; }
.gx-prof__block { border-top: 1px solid var(--gx-border); padding-top: 12px; }
.gx-products { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.gx-products li { display: flex; flex-direction: column; gap: 2px; }
.gx-products strong { font-size: .92rem; }
.gx-products span { font-size: .84rem; color: var(--gx-muted); line-height: 1.45; }
.gx-more { margin: 8px 0 0; font-size: .8rem; color: var(--gx-muted); }
.gx-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.gx-contact li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.gx-contact a { color: var(--gx-text); overflow-wrap: anywhere; }
.gx-social { display: flex; gap: 8px; flex-wrap: wrap; }
.gx-social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 1.2rem;
  background: rgba(255,255,255,.06); color: var(--gx-text); border: 1px solid var(--gx-border); }
.gx-social a:hover { color: var(--gx-emerald-hi); border-color: var(--gx-emerald-hi); }
.gx-prof__page { color: var(--gx-emerald-hi); font-size: .88rem; font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }

@media (min-width: 900px) {
  .gx-panel { position: absolute; top: 14px; right: 14px; bottom: 14px; width: min(380px, 42%); z-index: 3;
    border-radius: 20px; background: linear-gradient(180deg, rgba(20,38,28,.97), rgba(12,24,18,.97));
    border: 1px solid var(--gx-border); box-shadow: 0 24px 48px rgba(0,0,0,.45);
    padding: 20px; overflow: auto; opacity: 0; transform: translateX(16px); transition: opacity .25s, transform .25s; }
  .gx-panel.is-open { opacity: 1; transform: none; }
  .gx.has-panel .gx-controls { right: calc(min(380px, 42%) + 26px); }
}
@media (max-width: 899px) {
  .gx-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147482000; max-height: 56vh; overflow: auto;
    border-radius: 24px 24px 0 0; padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
    background: linear-gradient(180deg, #16291e, #0d1a13); border-top: 1px solid var(--v3-border-strong, rgba(120,245,145,.42));
    box-shadow: 0 -18px 40px rgba(0,0,0,.5); transform: translateY(105%); transition: transform .28s cubic-bezier(.22,1,.36,1); }
  .gx-panel.is-open { transform: translateY(0); }
  .gx-panel__grab { display: flex; justify-content: center; padding: 6px 0 12px; touch-action: none; cursor: grab; }
  .gx-panel__grab span { width: 44px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.28); }
  .gx-panel__close { top: 14px; }
  .gx-map { height: min(62vh, 560px); min-height: 320px; }
}

/* Logos */
.gx-logo { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 14px; background: #fff; display: grid; place-items: center;
  overflow: hidden; border: 1px solid rgba(255,255,255,.12); position: relative; }
.gx-logo img { width: 86%; height: 86%; object-fit: contain; }
.gx-logo b { display: none; color: var(--gx-emerald); font-size: 1.2rem; }
.gx-logo.is-broken b { display: block; }
.gx-logo.is-dark { background: #10241a; }
.gx-logo--lg { width: 68px; height: 68px; border-radius: 18px; }

/* Featured */
.gx-featured__row { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.gx-feat { flex: 0 0 auto; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; padding: 10px 14px 10px 10px;
  border-radius: 18px; border: 1px solid rgba(212,174,85,.35); background: linear-gradient(135deg, rgba(212,174,85,.10), rgba(66,219,134,.06));
  color: var(--gx-text); cursor: pointer; text-align: left; font: inherit; }
.gx-feat strong { display: block; font-size: .92rem; }
.gx-feat em { font-style: normal; font-size: .78rem; color: var(--gx-emerald-hi); }

/* Discover exhibitors */
.gx-dir__head h3 { margin: 8px 0 2px; font-size: 1.15rem; }
.gx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.gx-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 20px; background: var(--gx-card);
  border: 1px solid var(--gx-border); transition: border-color .2s, transform .2s; min-width: 0; }
.gx-card:hover { border-color: rgba(66,219,134,.42); }
.gx-card[hidden] { display: none; }
.gx-card__main { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 0;
  color: inherit; font: inherit; cursor: pointer; min-width: 0; }
.gx-card__main:focus-visible, .gx-chip:focus-visible, .gx-feat:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(66,219,134,.5); border-radius: 14px; }
.gx-card__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gx-card__text strong { font-size: 1rem; }
.gx-card__text em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--gx-emerald-hi); }
.gx-card__blurb { font-size: .86rem; color: var(--gx-muted); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gx-card__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.gx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--gx-border); background: rgba(255,255,255,.04); color: var(--gx-text); font: inherit; font-size: .84rem; cursor: pointer; }
.gx-chip:hover { border-color: rgba(66,219,134,.5); }
.gx-chip--accent { border-color: rgba(66,219,134,.42); color: var(--gx-emerald-hi); }

.gx-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2147482500;
  padding: 10px 18px; border-radius: 999px; background: #e9f7ee; color: #0d2a1a; font-weight: 700; font-size: .88rem;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); max-width: calc(100vw - 32px); overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .gx-panel, .gx-booth, .gx-booth__table, .gx-card { transition: none !important; }
  .gx-route.is-on { animation: none; stroke-dasharray: none; }
}
