/* ... (保留原有的 root, body, header 等基本樣式) ... */
:root {
  --primary-red: #FF5353;
  --gold: #FFD700;
  --bg-light: #FFF9F9;
}

body {
  background-color: var(--bg-light);
  font-family: "Microsoft JhengHei", sans-serif;
  margin: 0; padding: 0;
}
/* 隱藏全網頁捲動條 */
html, body {
  /* 針對 Firefox */
  scrollbar-width: none;
  
  /* 針對 IE 與舊版 Edge */
  -ms-overflow-style: none;
}

/* 針對 Chrome, Safari, 與新版 Edge */
html::-webkit-scrollbar, 
body::-webkit-scrollbar {
  display: none;
}

.event-header { text-align: center; padding: 15px; background: white; }
.back-btn { text-decoration: none; color: var(--primary-red); font-weight: bold; font-size: 1rem; }
.stage-label {
  background: var(--primary-red); color: white;
  padding: 8px 12px; border-radius: 40px; font-weight: bold;
  margin: 10px auto; max-width: 260px; font-size: 1.2rem;
  box-shadow: 0 2px 6px rgba(255, 83, 83, 0.2);
}

/* --- 新增：觸發搜尋彈窗的按鈕 --- */
.trigger-search-btn {
  background: white;
  color: var(--primary-red);
  border: 2px solid var(--primary-red);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: 0.3s;
}
.trigger-search-btn:hover { background: var(--primary-red); color: white; }

/* ... (保留導覽按鈕、地圖容器等樣式) ... */
.navigation-wrapper { position: relative; width: 100%; background: white; border-top: 1px solid #eee; border-bottom: 1px solid #eee; }
.nav-btn { position: absolute; top: 0; bottom: 0; width: 45px; background: rgba(255, 255, 255, 0.95); color: var(--primary-red); border: none; font-size: 1.4rem; font-weight: bold; z-index: 100; cursor: pointer; box-shadow: 0 0 8px rgba(0,0,0,0.1); border-left: 1px solid #eee; border-right: 1px solid #eee; }
.left-btn { left: 0; } .right-btn { right: 0; }
.map-viewport { width: 100%; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; }
.map-viewport::-webkit-scrollbar { display: none; }
.seating-map { display: inline-flex; flex-direction: column; min-width: 100%; align-items: center; padding: 15px 0; scroll-padding: 150px; /* 確保搜尋捲動時左右有留白 */ }
.row-divider { width: 100%; display: flex; align-items: center; justify-content: center; color: var(--primary-red); font-weight: bold; font-size: 1rem; margin-top: 10px; white-space: nowrap; }
.row-divider::before, .row-divider::after { content: ""; flex: 1; height: 1px; background: #FFDDDD; margin: 0 15px; }
.row-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 25px; padding: 5px 55px; }
.person-card { display: flex; flex-direction: column; align-items: center; width: 75px; flex-shrink: 0; }
.icon-wrapper { width: 58px; height: 58px; background: #fff; border-radius: 50%; border: 2px solid var(--gold); display: flex; justify-content: center; align-items: center; margin-bottom: 5px; box-shadow: 0 3px 6px rgba(0,0,0,0.08); transition: all 0.3s ease; }
.icon-wrapper svg { width: 32px; height: 32px; fill: var(--primary-red); }
.name-label { font-size: 1.15rem; font-weight: 900; color: #111; white-space: nowrap; transition: all 0.3s ease; }
.spacer { width: 75px; flex-shrink: 0; visibility: hidden; }
.event-footer { text-align: center; padding: 20px; color: #BBB; font-size: 0.85rem; }

/* --- 修改：Highlight 高亮特效 (只有呼吸燈，不放大) --- */
.person-card.highlight .icon-wrapper {
  border-color: #FFBE0B; /* 亮黃色邊框 */
  background: #FFF9E6;   /* 亮黃色背景 */
  /* 移除 transform: scale */
  animation: pulseShadow 1.5s infinite alternate; /* 加入陰影呼吸動畫 */
}

.person-card.highlight .name-label {
  color: #FFBE0B; /* 文字變色 */
  background: #FFF;
  padding: 2px 5px;
  border-radius: 4px;
  /* 移除 transform: scale */
}

/* 新的呼吸動畫：只改變陰影強弱，不改變大小 */
@keyframes pulseShadow {
  from { box-shadow: 0 0 5px rgba(255, 190, 11, 0.5); }
  to   { box-shadow: 0 0 25px rgba(255, 190, 11, 1); }
}


/* --- 新增：搜尋彈窗樣式 --- */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 1000;
  display: flex; justify-content: center; align-items: flex-start;
  padding-top: 80px; /* 彈窗位置稍微靠上 */
  opacity: 1; transition: opacity 0.3s;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }

.modal-content {
  background: white; width: 90%; max-width: 350px;
  border-radius: 15px; padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transform: translateY(0); transition: transform 0.3s;
}
.modal-overlay.hidden .modal-content { transform: translateY(-20px); }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.modal-header h3 { margin: 0; color: var(--primary-red); }
.close-modal-btn { font-size: 2rem; color: #999; cursor: pointer; line-height: 1; }

.modal-body input {
  width: 100%; padding: 12px; border: 2px solid #eee;
  border-radius: 8px; font-size: 1rem; box-sizing: border-box; margin-bottom: 15px;
}
.modal-body input:focus { border-color: var(--primary-red); outline: none; }
.do-search-btn {
  width: 100%; padding: 12px; background: var(--primary-red);
  color: white; border: none; border-radius: 8px; font-size: 1.1rem; font-weight: bold; cursor: pointer;
}