/* ==========================================================================
   디지털 리플렛 코어 디자인 시스템 & 스타일시트
   ========================================================================== */

/* 1. 디자인 시스템 토큰 & Reset */
:root {
  /* 기본 테마 토큰 (config.js에서 동적으로 덮어씌워질 예정) */
  --primary-color: hsl(250, 84%, 60%);
  --secondary-color: hsl(180, 100%, 45%);
  --accent-color: hsl(320, 100%, 60%);
  --background-color: #072459;
  --surface-color: rgba(30, 41, 59, 0.7);
  --text-color: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 65%);
  
  /* 전역 상수 */
  --max-app-width: 480px;
  --header-height: 60px;
  --tabbar-height: 64px;
  --font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --border-radius-lg: 16px;
  --border-radius-md: 12px;
  --border-radius-sm: 8px;
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-speed: 0.35s;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

body {
  font-family: var(--font-family);
  background-color: #020617; /* 데스크톱 웹 배경 (가장 바깥쪽) */
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-x: hidden;
}

/* 2. 모바일 프레임 모형 (데스크톱 뷰 대응) */
.app-container {
  width: 100%;
  max-width: var(--max-app-width);
  min-height: 100vh;
  background-color: var(--background-color);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  border-left: var(--glass-border);
  border-right: var(--glass-border);
}

/* 3. 상단 헤더 & 네비게이션바 */
.header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-app-width);
  height: var(--header-height);
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-speed) var(--transition-bezier),
              opacity var(--transition-speed) var(--transition-bezier);
}

.header-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #fff 30%, var(--secondary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary-color);
  background: rgba(180, 100%, 45%, 0.1);
  padding: 4px 10px;
  border-radius: 20px;
  border: 1px solid rgba(180, 100%, 45%, 0.2);
}

.header-back-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
  transition: background-color 0.2s ease;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
}

.header-back-btn:active {
  background-color: rgba(255, 255, 255, 0.08);
}

.header-back-btn svg {
  width: 22px;
  height: 22px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background-color: var(--secondary-color);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--secondary-color);
  animation: pulse-glow 2s infinite;
}

/* 4. 하단 탭바 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-app-width);
  height: var(--tabbar-height);
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: var(--glass-border);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 10px;
  z-index: 1000;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-speed) var(--transition-bezier),
              opacity var(--transition-speed) var(--transition-bezier);
  padding-bottom: env(safe-area-inset-bottom);
}

/* 안전 영역(iOS 홈 인디케이터 대응)에 따른 높이 보정 */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .tab-bar {
    height: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  }
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 100%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.7rem;
  font-weight: 500;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.tab-item i {
  width: 22px;
  height: 22px;
  transition: transform 0.25s var(--transition-bezier);
}

.tab-item:active {
  transform: scale(0.92);
}

.tab-item.active {
  color: var(--primary-color);
}

.tab-item.active i {
  color: var(--primary-color);
  transform: translateY(-2px);
  filter: drop-shadow(0 0 6px var(--primary-color));
}

.tab-item::after {
  content: '';
  position: absolute;
  bottom: 8px;
  width: 4px;
  height: 4px;
  background-color: var(--primary-color);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.25s ease, transform 0.25s var(--transition-bezier);
}

.tab-item.active::after {
  opacity: 1;
  transform: scale(1);
}

/* 5. 메인 콘텐츠 뷰포트 */
.main-viewport {
  flex: 1;
  padding-top: var(--header-height);
  padding-bottom: var(--tabbar-height);
  width: 100%;
  display: flex;
  flex-direction: column;
}

@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .main-viewport {
    padding-bottom: calc(var(--tabbar-height) + env(safe-area-inset-bottom));
  }
}

#main-content {
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  transition: opacity var(--transition-speed) var(--transition-bezier),
              transform var(--transition-speed) var(--transition-bezier);
}

/* 6. 페이지 이동시 상/하단 바 및 콘텐츠 트랜지션 애니메이션 */
body.nav-hidden .header {
  transform: translate(-50%, -100%);
  opacity: 0;
}

body.nav-hidden .tab-bar {
  transform: translate(-50%, 100%);
  opacity: 0;
}

body.nav-hidden #main-content {
  opacity: 0;
  transform: translateY(12px);
}

/* 7. 로딩 인디케이터 */
.global-loader {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

body.content-loading .global-loader {
  opacity: 1;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* 8. 유틸리티 애니메이션 정의 */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 6px var(--secondary-color);
  }
  50% {
    transform: scale(1.2);
    opacity: 0.6;
    box-shadow: 0 0 12px var(--secondary-color);
  }
}

/* 9. 기본 공통 탭 레이아웃 스타일 */
.page-container {
  padding: 24px 20px;
  width: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: enter-transition 0.4s var(--transition-bezier);
}

@keyframes enter-transition {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1.page-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 60%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 스크롤바 디자인 정의 */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 10. UI 컴포넌트 라이브러리 */

/* 글래스모피즘 카드 */
.glass-card {
  background: var(--surface-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  padding: 20px;
  box-shadow: var(--glass-shadow);
  margin-bottom: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-card:active {
  transform: scale(0.99);
}

/* 뱃지 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 10px;
  width: fit-content;
}

.badge-primary {
  background: rgba(79, 70, 229, 0.15);
  color: var(--primary-color);
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.badge-secondary {
  background: rgba(6, 182, 212, 0.15);
  color: var(--secondary-color);
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-accent {
  background: rgba(219, 39, 119, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(219, 39, 119, 0.3);
}

/* 스피커 그리드 */
.speaker-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 16px 0;
}

.speaker-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
}

.speaker-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  margin-bottom: 10px;
  background-color: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 8px rgba(79, 70, 229, 0.3));
}

.speaker-avatar svg {
  width: 32px;
  height: 32px;
  color: var(--text-color);
}

.speaker-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 2px;
}

.speaker-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* 세션 카드 */
.session-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.session-card {
  position: relative;
  overflow: hidden;
}

.session-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
}

.session-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.session-time {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: 'Outfit', sans-serif;
  background: rgba(6, 182, 212, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
}

.session-location {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.session-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.session-presenter {
  font-size: 0.8rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.session-presenter svg {
  width: 14px;
  height: 14px;
}

/* 행사일정 타임라인 */
.timeline {
  position: relative;
  padding-left: 20px;
  margin-left: 10px;
  border-left: 2px dashed rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  position: relative;
}

.timeline-badge {
  position: absolute;
  left: -27px;
  top: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--background-color);
  border: 3px solid var(--secondary-color);
  box-shadow: 0 0 8px var(--secondary-color);
}

.timeline-item.highlight .timeline-badge {
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

.timeline-time {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 4px;
  font-family: 'Outfit', sans-serif;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.timeline-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Q&A 아코디언 */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface-color);
  border: var(--glass-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-question {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  outline: none;
  gap: 10px;
}

.faq-question svg {
  width: 18px;
  height: 18px;
  transition: transform 0.25s ease;
  color: var(--primary-color);
  flex-shrink: 0;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
  background: rgba(0, 0, 0, 0.15);
}

.faq-answer-content {
  padding: 16px 20px;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.faq-item.active {
  border-color: rgba(79, 70, 229, 0.4);
}

.faq-item.active .faq-question svg {
  transform: rotate(180deg);
}

/* 이벤트 및 스탬프투어 */
.event-hero {
  text-align: center;
  padding: 20px 0;
}

.gift-icon-container {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1) 0%, rgba(219, 39, 119, 0.1) 100%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 15px rgba(219, 39, 119, 0.3));
  animation: float 3s ease-in-out infinite;
}

.gift-icon-container svg {
  width: 40px;
  height: 40px;
  color: var(--accent-color);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.stamp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stamp-slot {
  aspect-ratio: 1;
  background: rgba(0, 0, 0, 0.2);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.stamp-slot svg {
  width: 24px;
  height: 24px;
  color: rgba(255, 255, 255, 0.2);
}

.stamp-slot span {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: center;
}

.stamp-slot.checked {
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid var(--secondary-color);
}

.stamp-slot.checked svg {
  color: var(--secondary-color);
  filter: drop-shadow(0 0 4px var(--secondary-color));
}

.stamp-slot.checked span {
  color: var(--secondary-color);
  font-weight: 600;
}

/* 11. 행사지도 컴포넌트 전용 스타일 */

.map-page-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--header-height) - var(--tabbar-height));
  padding: 16px 20px;
  overflow: hidden;
  position: relative;
}

.map-view-box {
  width: 100%;
  flex: 1;
  position: relative;
  overflow: hidden;
  background-color: #0c111d;
  border: var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow);
  touch-action: none;
}

.map-wrapper {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: 0 0;
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.map-wrapper:active {
  cursor: grabbing;
}

.map-img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

/* 유저 GPS 핀 (2D 평면 지도 대응) */
.user-pin {
  position: absolute;
  width: 1px;
  height: 1px;
  transform: translate(-50%, -50%);
  z-index: 100;
  pointer-events: none;
  transition: top 0.3s ease, left 0.3s ease; /* 부드러운 위치 갱신 */
}

.user-pin-shadow {
  display: none; /* 2D 평면에서는 그림자 불필요 */
}

.user-pin-body {
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle, #00d2fe 0%, #007aff 100%);
  border: 2px solid #ffffff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
  box-shadow: 0 0 10px rgba(0, 122, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.35);
}

.user-pin-pulse {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #007aff;
  background-color: rgba(0, 122, 255, 0.15);
  transform: translate(-50%, -50%);
  top: 0;
  left: 0;
  opacity: 0;
  animation: pulse-ring-2d 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.user-pin-direction {
  position: absolute;
  width: 48px;
  height: 72px;
  top: -72px;
  left: -24px;
  background: linear-gradient(to top, rgba(0, 198, 255, 0.45) 0%, rgba(0, 198, 255, 0) 100%);
  clip-path: polygon(50% 100%, 15% 0%, 85% 0%);
  transform-origin: 50% 100%;
  pointer-events: none;
  z-index: 95;
  transition: transform 0.12s ease-out; /* 부드러운 방향 전환 */
}

@keyframes pulse-ring-2d {
  0% { transform: translate(-50%, -50%) scale(0.4); opacity: 1; }
  80%, 100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}

/* 부스 마커 */
.booth-marker {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-color);
  border: 2px solid var(--primary-color);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 800;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 50;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 0 8px rgba(79, 70, 229, 0.4);
}

.booth-marker:hover, .booth-marker.active {
  transform: translate(-50%, -50%) scale(1.2);
  border-color: var(--accent-color);
  box-shadow: 0 0 12px var(--accent-color);
  z-index: 60;
}

.booth-marker-label {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.58rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(15, 23, 42, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
  border: var(--glass-border);
  color: var(--text-color);
  pointer-events: none;
  backdrop-filter: blur(4px);
}

/* 맵 컨트롤 버튼 */
.map-controls {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 200;
}

.map-ctrl-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-color);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: var(--glass-border);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--glass-shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.map-ctrl-btn:active {
  transform: scale(0.92);
}

.map-ctrl-btn svg {
  width: 20px;
  height: 20px;
}

.map-ctrl-btn.gps-active {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

/* 바텀 시트 (공통 모달 레이아웃) */
.bottom-sheet-backdrop {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: var(--max-app-width);
  height: 100vh;
  background: rgba(2, 6, 23, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1050;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bottom-sheet-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 100%);
  width: 100%;
  max-width: var(--max-app-width);
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: var(--glass-border);
  border-top-left-radius: var(--border-radius-lg);
  border-top-right-radius: var(--border-radius-lg);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
  z-index: 1100;
  transition: transform 0.3s cubic-bezier(0.1, 0.76, 0.55, 0.94);
  max-height: 75vh;
  display: flex;
  flex-direction: column;
}

.bottom-sheet.open {
  transform: translate(-50%, 0);
}

.bottom-sheet-header {
  padding: 16px 20px 12px;
  border-bottom: var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.bottom-sheet-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
}

.bottom-sheet-title {
  font-size: 1.05rem;
  font-weight: 800;
}

.bottom-sheet-close {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottom-sheet-close svg {
  width: 20px;
  height: 20px;
}

.bottom-sheet-content {
  overflow-y: auto;
  padding: 16px 20px 24px;
  flex: 1;
}

.booth-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booth-list-item {
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
  text-align: left;
}

.booth-list-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.booth-list-item.selected {
  border-color: var(--primary-color);
  background: rgba(79, 70, 229, 0.08);
  box-shadow: 0 0 10px rgba(79, 70, 229, 0.15);
}

.booth-item-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-color);
}

.booth-item-desc {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-secondary);
}

.map-info-toast {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--primary-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--glass-shadow);
  z-index: 250;
  pointer-events: none;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.map-info-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.map-info-toast svg {
  width: 14px;
  height: 14px;
  color: var(--primary-color);
}

/* 12. 헤더 버튼 및 설정 메뉴 */
.header-btn {
  background: transparent;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.15s ease;
  position: relative;
}

.header-btn:active {
  transform: scale(0.92);
  background-color: rgba(255, 255, 255, 0.08);
}

body.light-theme .header-btn:active {
  background-color: rgba(0, 0, 0, 0.06);
}

.header-btn svg {
  width: 20px;
  height: 20px;
  color: var(--text-color);
}

/* 긴급 공지사항 UI */
.notice-badge-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent-color);
  animation: pulse-glow-notice 1.5s infinite;
}

@keyframes pulse-glow-notice {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 4px var(--accent-color);
  }
  50% {
    transform: scale(1.3);
    opacity: 0.6;
    box-shadow: 0 0 10px var(--accent-color);
  }
}

.notice-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.notice-item {
  background: rgba(255, 255, 255, 0.02);
  border: var(--glass-border);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.notice-item:active {
  transform: scale(0.99);
}

body.light-theme .notice-item {
  background: rgba(0, 0, 0, 0.02);
}

.notice-item.urgent {
  border-color: rgba(219, 39, 119, 0.4);
  background: rgba(219, 39, 119, 0.03);
  box-shadow: 0 0 10px rgba(219, 39, 119, 0.08);
}

body.light-theme .notice-item.urgent {
  background: rgba(219, 39, 119, 0.05);
}

.notice-item.urgent::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-color);
}

.notice-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.notice-item-time {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  font-family: 'Outfit', sans-serif;
}

.notice-item-content {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-color);
}

/* 라이트 테마 전용 오버라이드 및 보정 */
body.light-theme {
  --glass-border: 1px solid rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

body.light-theme .header {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .header-title {
  background: linear-gradient(135deg, var(--text-color) 30%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-theme .tab-bar {
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

body.light-theme .glass-card {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

body.light-theme .timeline-badge {
  background-color: var(--background-color);
}

body.light-theme .faq-answer {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .stamp-slot {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .stamp-slot svg {
  color: rgba(0, 0, 0, 0.15);
}

body.light-theme .booth-list-item {
  background: rgba(0, 0, 0, 0.01);
}

body.light-theme .booth-list-item:active {
  background: rgba(0, 0, 0, 0.03);
}

body.light-theme .booth-list-item.selected {
  background: rgba(79, 70, 229, 0.05);
}

body.light-theme .booth-marker-label {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.1);
}

body.light-theme .map-info-toast {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

body.light-theme .spinner {
  border-color: rgba(0, 0, 0, 0.05);
  border-top-color: var(--primary-color);
}

body.light-theme .bottom-sheet {
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
}

body.light-theme .bottom-sheet-handle {
  background: rgba(0, 0, 0, 0.15);
}

body.light-theme .bottom-sheet-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme h1.page-title {
  background: linear-gradient(135deg, var(--text-color) 60%, var(--primary-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


