/* 会場マップ アプリの補助スタイル。
   見た目の大半は参照ページ（exhibitor-list-2026-ja）と同じ Tailwind の class で付けており、
   ここに置くのは Tailwind で書けないもの（地図の表示領域・ハイライト・アニメーション）だけ。 */

/* Tailwind の .grid や .flex は hidden 属性より後に定義されるため、hidden を付けても消えない。
   実測で、空の地図モーダルが常時表示され一覧を覆い尽くしていた
   （DOM 上は行が 750 件あるので、行数だけ見る検査では気づけなかった）。 */
[hidden] { display: none !important; }

/* 参照ページと同じ背景色 */
body { background: #f7f6f4; min-height: 100vh; }

/* ---- 起動時のローディング ---- */
.app-loading {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: #f7f6f4;
  transition: opacity .4s ease;
}
.app-loading.hide { opacity: 0; pointer-events: none; }
.spinner {
  width: 30px; height: 30px; margin: 0 auto 14px;
  border: 3px solid #e7e5e4; border-top-color: #57534e;
  border-radius: 50%; animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 地図モーダル（枠の見た目は参照ページの詳細モーダルと同じ） ---- */
.modal-backdrop { backdrop-filter: blur(4px); }
.modal-enter { animation: modalIn 0.2s ease-out; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.map-viewport {
  position: relative; flex: 1; overflow: auto;
  background: #eeedeb; cursor: grab;
  overscroll-behavior: contain; touch-action: none;
}
.map-viewport.grabbing { cursor: grabbing; }
.map-stage { position: relative; }
#mapImg { display: block; max-width: none; user-select: none; -webkit-user-drag: none; }
.map-loading {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: #eeedeb; font-size: 13px; color: #78716c;
}

/* ハイライト枠。周囲を暗くして、選んだ小間だけが浮き上がって見えるようにする */
.highlight {
  position: absolute; border: 3px solid #dc2626; border-radius: 3px;
  box-shadow: 0 0 0 9999px rgba(28,25,23,.28);
  animation: pulse 1.5s ease-out 2;
  pointer-events: none;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 9999px rgba(28,25,23,.28), 0 0 0 0 rgba(220,38,38,.55); }
  70%  { box-shadow: 0 0 0 9999px rgba(28,25,23,.28), 0 0 0 22px rgba(220,38,38,0); }
  100% { box-shadow: 0 0 0 9999px rgba(28,25,23,.28), 0 0 0 0 rgba(220,38,38,0); }
}
.hl-label {
  position: absolute; left: 50%; top: -30px; transform: translateX(-50%);
  background: #dc2626; color: #fff; font-size: 12px; font-weight: 700;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap;
}
.hl-label.below { top: auto; bottom: -30px; }
