/* VIA DEREK — 키오스크 홈페이지 CSS
   Navy/Gold 테마 + SPA 탭 네비게이션 + 키오스크 UX */

:root {
  --navy: #0D1F3C;
  --navy2: #1B3A6B;
  --gold: #C9A84C;
  --gold2: #E8C97A;
  --white: #F8F6F0;
  --gray: #8A8A8A;
  --light: #EEE8D8;
  --nav-height: 64px;
  --success: #4CAF50;
  --danger: #E05252;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'Noto Sans KR', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  padding-top: var(--nav-height);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(201,168,76,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(27,58,107,0.6) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════
   상단 네비게이션
   ══════════════════════════════════════ */
.kiosk-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(13,31,60,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201,168,76,0.25);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  gap: 16px;
}

.nav-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 6px;
  color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.nav-brand:hover { opacity: 0.8; }

.nav-tabs {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-tab {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(248,246,240,0.6);
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.25s;
  white-space: nowrap;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-tab:hover {
  color: var(--white);
  background: rgba(255,255,255,0.06);
}

.nav-tab.active {
  color: var(--navy);
  background: var(--gold);
  border-color: var(--gold);
  font-weight: 700;
}

.nav-icon { font-size: 16px; }

.nav-info {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.nav-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 12px;
  color: var(--white);
  white-space: nowrap;
}

/* ══════════════════════════════════════
   탭 콘텐츠 전환
   ══════════════════════════════════════ */
.tab-content {
  display: none;
  animation: fadeInTab 0.35s ease-out;
  min-height: calc(100vh - var(--nav-height) - 80px);
}

.tab-content.active {
  display: block;
}

@keyframes fadeInTab {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   TAB 1: 브랜드 소개
   ══════════════════════════════════════ */
.brand-hero {
  text-align: center;
  padding: 60px 0 40px;
  position: relative;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 72px;
  font-weight: 300;
  letter-spacing: 16px;
  color: var(--gold);
  line-height: 1;
  position: relative;
}

.hero-sub {
  font-size: 12px;
  letter-spacing: 5px;
  color: rgba(248,246,240,0.5);
  margin-top: 12px;
  font-weight: 300;
}

.hero-tagline {
  font-size: 16px;
  color: rgba(248,246,240,0.7);
  margin-top: 10px;
  font-weight: 300;
  font-style: italic;
}

/* 고래 소개 */
.brand-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}

.intro-character { flex-shrink: 0; }

.intro-whale-img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0,220,255,0.5));
  animation: float-idle 4s ease-in-out infinite;
  border-radius: 16px;
}

.intro-whale-fallback { text-align: center; }
.whale-emoji { font-size: 120px; animation: float-idle 4s ease-in-out infinite; }

.intro-text { max-width: 400px; }

.intro-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.intro-desc {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(248,246,240,0.8);
  margin-bottom: 20px;
}

.btn-cta {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 1px;
  transition: all 0.2s;
  min-height: 52px;
}

.btn-cta:hover { background: var(--gold2); transform: translateY(-2px); }

/* 정원 소개 카드 */
.brand-garden-section {
  padding: 40px 0;
  text-align: center;
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--gold);
  letter-spacing: 4px;
}

.section-sub {
  font-size: 13px;
  color: rgba(248,246,240,0.5);
  margin-top: 6px;
  letter-spacing: 2px;
}

.garden-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.garden-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  padding: 28px 16px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}

.garden-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-4px);
}

.garden-card-icon { font-size: 40px; margin-bottom: 12px; }

.garden-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}

.garden-card-desc {
  font-size: 13px;
  color: rgba(248,246,240,0.65);
  line-height: 1.6;
}

/* 하단 CTA */
.brand-bottom-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 32px 0 48px;
}

.btn-cta-large {
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 2px;
  transition: all 0.2s;
  min-height: 56px;
}

.btn-cta-large:hover { opacity: 0.9; transform: translateY(-2px); }

.btn-cta-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 18px 32px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
  min-height: 56px;
}

.btn-cta-secondary:hover { background: rgba(201,168,76,0.1); }

/* ══════════════════════════════════════
   TAB 2: AI 관광 가이드
   ══════════════════════════════════════ */
.whale-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 0 24px;
}

.whale-container {
  position: relative;
  width: 220px;
  height: 220px;
}

.whale-svg {
  width: 220px;
  height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(0,220,255,0.5)) drop-shadow(0 0 40px rgba(0,160,220,0.25));
  transition: transform 0.3s ease;
  border-radius: 16px;
}

.whale-svg.talking {
  animation: whale-talk 0.4s ease infinite alternate;
}

.whale-svg.listening {
  animation: whale-listen 1.2s ease infinite;
}

@keyframes whale-talk {
  from { transform: scaleY(1) rotate(-1.5deg) translateY(0px); }
  to   { transform: scaleY(1.02) rotate(1.5deg) translateY(-4px); }
}

@keyframes whale-listen {
  0%, 100% { transform: translateY(0px); filter: drop-shadow(0 0 18px rgba(0,220,255,0.5)) drop-shadow(0 0 40px rgba(0,160,220,0.25)); }
  50%       { transform: translateY(-8px); filter: drop-shadow(0 0 30px rgba(0,240,255,0.9)) drop-shadow(0 0 60px rgba(0,200,255,0.5)); }
}

@keyframes float-idle {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-6px) rotate(1deg); }
  66%       { transform: translateY(-3px) rotate(-1deg); }
}

.whale-svg:not(.talking):not(.listening) {
  animation: float-idle 4s ease-in-out infinite;
}

.whale-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-top: 12px;
}

.whale-status {
  font-size: 12px;
  color: rgba(248,246,240,0.6);
  margin-top: 4px;
  letter-spacing: 1px;
  height: 18px;
  transition: all 0.3s;
}

/* 음성 파형 */
.voice-wave {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 30px;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.3s;
}

.voice-wave.active { opacity: 1; }

.wave-bar {
  width: 3px;
  background: var(--gold);
  border-radius: 2px;
  animation: wave 0.8s ease infinite;
}

.wave-bar:nth-child(1) { height: 8px; animation-delay: 0s; }
.wave-bar:nth-child(2) { height: 18px; animation-delay: 0.1s; }
.wave-bar:nth-child(3) { height: 26px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { height: 20px; animation-delay: 0.3s; }
.wave-bar:nth-child(5) { height: 12px; animation-delay: 0.4s; }
.wave-bar:nth-child(6) { height: 22px; animation-delay: 0.15s; }
.wave-bar:nth-child(7) { height: 16px; animation-delay: 0.25s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* 말풍선 */
.speech-bubble {
  background: rgba(27,58,107,0.8);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 500px;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
  color: var(--white);
  margin-top: 16px;
  backdrop-filter: blur(10px);
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

/* 버튼 */
.btn-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn-voice {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 1px;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
}

.btn-voice:hover { background: var(--gold2); transform: translateY(-2px); }
.btn-voice.recording {
  background: #E05252;
  color: white;
  animation: pulse-btn 1s ease infinite;
}

@keyframes pulse-btn {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224,82,82,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(224,82,82,0); }
}

.btn-text {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
  min-height: 52px;
}

.btn-text:hover { background: rgba(201,168,76,0.1); }

/* 구분선 */
.divider {
  border: none;
  border-top: 1px solid rgba(201,168,76,0.15);
  margin: 28px 0;
}

/* 폼 */
.form-section { display: none; }
.form-section.visible { display: block; }

.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--gold);
  text-align: center;
  letter-spacing: 2px;
  margin-bottom: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-item label {
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 2px;
  font-weight: 500;
}

.form-item input,
.form-item select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  min-height: 48px;
}

.form-item input:focus,
.form-item select:focus { border-color: var(--gold); }

.form-item select option { background: var(--navy2); color: var(--white); }

.btn-recommend {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 20px auto 0;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--navy);
  border: none;
  padding: 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: 2px;
  transition: all 0.2s;
  min-height: 56px;
}

.btn-recommend:hover { opacity: 0.9; transform: translateY(-2px); }
.btn-recommend:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* 결과 */
.result-section { display: none; max-width: 700px; margin: 0 auto; padding-bottom: 40px; }
.result-section.visible { display: block; }

.result-header {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 16px;
  text-align: center;
}

.result-box {
  background: rgba(27,58,107,0.5);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 16px;
  padding: 28px;
  backdrop-filter: blur(10px);
  white-space: pre-line;
  line-height: 1.9;
  font-size: 14px;
  color: var(--white);
}

.btn-reset {
  background: transparent;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reset:hover { background: rgba(201,168,76,0.1); transform: translateY(-2px); }

/* 코스 읽어주기(TTS) 버튼 — btn-text 스타일 통일 */
.btn-tts {
  background: transparent;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 14px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-tts:hover { background: rgba(201,168,76,0.1); transform: translateY(-2px); }
.btn-tts.tts-active {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
  font-weight: 700;
  animation: ttsPulse 1.5s ease-in-out infinite;
}
@keyframes ttsPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.4); }
  50% { box-shadow: 0 0 0 12px rgba(201,168,76,0); }
}

/* TTS 자막 (읽는 중 텍스트 표시) */
.tts-caption {
  display: none;
  background: linear-gradient(135deg, rgba(13,31,60,0.95), rgba(27,58,107,0.9));
  border: 1px solid var(--gold);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 16px;
  text-align: center;
  animation: captionFadeIn 0.4s ease;
  box-shadow: 0 4px 24px rgba(201,168,76,0.2);
}
.tts-caption.visible { display: block; }
@keyframes captionFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.tts-caption-text {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 14px;
  word-break: keep-all;
}
.tts-caption-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.tts-caption-bar {
  flex: 1;
  max-width: 240px;
  height: 4px;
  background: rgba(248,246,240,0.15);
  border-radius: 4px;
  overflow: hidden;
}
.tts-caption-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 4px;
  transition: width 0.4s ease;
}
.tts-caption-count {
  font-size: 12px;
  color: var(--gold);
  white-space: nowrap;
}

/* 가이드 탭 지도 */
.map-container {
  display: none;
  width: 100%;
  height: 500px;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid rgba(201,168,76,0.25);
}

/* ══════════════════════════════════════
   TAB 3: 지도 보기
   ══════════════════════════════════════ */
.map-tab-wrapper {
  display: flex;
  height: calc(100vh - var(--nav-height) - 60px);
  position: relative;
}

.map-filter-panel {
  width: 200px;
  background: rgba(13,31,60,0.9);
  backdrop-filter: blur(10px);
  border-right: 1px solid rgba(201,168,76,0.2);
  padding: 20px 16px;
  flex-shrink: 0;
  overflow-y: auto;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.filter-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--white);
  padding: 8px 0;
  cursor: pointer;
  min-height: 40px;
}

.filter-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  cursor: pointer;
}

.filter-legend {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(201,168,76,0.15);
}

.legend-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(248,246,240,0.7);
  padding: 4px 0;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.explore-map {
  flex: 1;
  min-height: 400px;
}

/* ══════════════════════════════════════
   TAB 4: 시스템 상태
   ══════════════════════════════════════ */
.status-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 24px;
}

.status-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 3px;
}

.status-version {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 1px;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.status-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  transition: all 0.3s;
}

.status-indicator {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gray);
  margin: 0 auto 12px;
  transition: background 0.3s;
}

.status-card.connected .status-indicator {
  background: var(--success);
  box-shadow: 0 0 12px rgba(76,175,80,0.5);
}

.status-card.disconnected .status-indicator {
  background: var(--danger);
  box-shadow: 0 0 12px rgba(224,82,82,0.5);
}

.status-card-label {
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.status-card-detail {
  font-size: 12px;
  color: rgba(248,246,240,0.5);
}

.status-info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.status-info-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
}

.status-info-label {
  font-size: 11px;
  color: rgba(248,246,240,0.5);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.status-info-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold);
}

.status-footer {
  text-align: center;
  padding-bottom: 40px;
}

.status-last-update {
  font-size: 12px;
  color: rgba(248,246,240,0.4);
  margin-top: 12px;
}

/* ══════════════════════════════════════
   개인정보 동의 오버레이
   ══════════════════════════════════════ */
.privacy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,0.96);
  backdrop-filter: blur(20px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.privacy-box {
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.privacy-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 300;
  letter-spacing: 8px;
  color: var(--gold);
  margin-bottom: 24px;
}

.privacy-heading {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.privacy-content {
  text-align: left;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 12px;
  padding: 20px 24px;
  margin-bottom: 24px;
  max-height: 280px;
  overflow-y: auto;
}

.privacy-content p {
  font-size: 13px;
  color: rgba(248,246,240,0.8);
  line-height: 1.7;
  margin-bottom: 8px;
}

.privacy-content strong {
  color: var(--gold);
}

.privacy-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.privacy-link {
  margin-top: 16px;
}

.privacy-link a {
  font-size: 12px;
  color: rgba(248,246,240,0.4);
  text-decoration: underline;
}

.privacy-link a:hover {
  color: var(--gold);
}

.footer-privacy-link {
  color: rgba(248,246,240,0.4);
  text-decoration: underline;
  font-size: 11px;
}

.footer-privacy-link:hover {
  color: var(--gold);
}

/* ══════════════════════════════════════
   관리자 로그인 오버레이
   ══════════════════════════════════════ */
.dash-login-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--nav-height) - 100px);
}

.dash-login-box {
  text-align: center;
  max-width: 380px;
  width: 100%;
}

.dash-login-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.dash-login-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 3px;
  margin-bottom: 8px;
}

.dash-login-desc {
  font-size: 13px;
  color: rgba(248,246,240,0.5);
  margin-bottom: 24px;
}

.dash-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dash-login-form input {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 10px;
  padding: 14px 18px;
  color: var(--white);
  font-size: 14px;
  font-family: 'Noto Sans KR', sans-serif;
  outline: none;
  transition: border-color 0.2s;
  min-height: 50px;
}

.dash-login-form input:focus {
  border-color: var(--gold);
}

.dash-login-form input::placeholder {
  color: rgba(248,246,240,0.35);
}

.dash-login-error {
  font-size: 13px;
  color: var(--danger);
  min-height: 20px;
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-logout-btn {
  background: transparent;
  border: 1px solid rgba(224,82,82,0.4);
  color: rgba(224,82,82,0.8);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 12px;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.2s;
}

.dash-logout-btn:hover {
  background: rgba(224,82,82,0.1);
  border-color: rgba(224,82,82,0.6);
}

/* ══════════════════════════════════════
   TAB 5: 데이터 대시보드
   ══════════════════════════════════════ */
.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 0 24px;
}

.dash-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: var(--gold);
  letter-spacing: 3px;
}

.dash-date {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
}

/* 오늘 요약 카드 */
.dash-summary-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.dash-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 16px;
  padding: 24px 16px;
  text-align: center;
  transition: all 0.3s;
}

.dash-card:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  transform: translateY(-3px);
}

.dash-card-icon { font-size: 28px; margin-bottom: 8px; }

.dash-card-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.1;
}

.dash-card-label {
  font-size: 12px;
  color: rgba(248,246,240,0.5);
  letter-spacing: 2px;
  margin-top: 6px;
}

/* 전체 누적 통계 바 */
.dash-totals {
  display: flex;
  justify-content: center;
  gap: 32px;
  background: rgba(27,58,107,0.5);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 12px;
  padding: 16px 32px;
  margin-bottom: 28px;
}

.dash-total-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dash-total-label {
  font-size: 12px;
  color: rgba(248,246,240,0.5);
  letter-spacing: 1px;
}

.dash-total-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold2);
}

/* 패널 레이아웃 */
.dash-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.dash-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.dash-panel {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 14px;
  padding: 20px;
}

.dash-panel-wide { grid-column: span 1; }

.dash-panel-full {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 16px;
}

.dash-panel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(201,168,76,0.1);
}

/* 막대 차트 */
.dash-bar-chart { display: flex; flex-direction: column; gap: 8px; }

.dash-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-bar-label {
  width: 52px;
  font-size: 11px;
  color: rgba(248,246,240,0.6);
  text-align: right;
  flex-shrink: 0;
}

.dash-bar-track {
  flex: 1;
  height: 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 7px;
  overflow: hidden;
}

.dash-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold2));
  border-radius: 7px;
  min-width: 2px;
  transition: width 0.6s ease;
}

.dash-bar-value {
  width: 32px;
  font-size: 12px;
  color: var(--gold2);
  font-weight: 700;
  text-align: left;
  flex-shrink: 0;
}

/* 분포 리스트 */
.dash-dist-list { display: flex; flex-direction: column; gap: 10px; }

.dash-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-dist-label {
  width: 72px;
  font-size: 12px;
  color: rgba(248,246,240,0.7);
  text-align: right;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash-dist-bar-track {
  flex: 1;
  height: 10px;
  background: rgba(255,255,255,0.06);
  border-radius: 5px;
  overflow: hidden;
}

.dash-dist-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 5px;
  min-width: 2px;
  transition: width 0.5s ease;
}

.dash-dist-pct {
  width: 36px;
  font-size: 11px;
  color: var(--gold);
  text-align: right;
  flex-shrink: 0;
}

.dash-dist-cnt {
  width: 28px;
  font-size: 11px;
  color: rgba(248,246,240,0.4);
  text-align: right;
  flex-shrink: 0;
}

/* 테이블 */
.dash-table-wrap { overflow-x: auto; }
.dash-table-scroll { max-height: 420px; overflow-y: auto; }

.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.dash-table thead th {
  position: sticky;
  top: 0;
  background: rgba(13,31,60,0.95);
  color: var(--gold);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 10px 8px;
  text-align: left;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  white-space: nowrap;
}

.dash-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}

.dash-table tbody tr:hover {
  background: rgba(201,168,76,0.06);
}

.dash-table td {
  padding: 8px;
  color: rgba(248,246,240,0.75);
  white-space: nowrap;
}

.dash-table td:first-child {
  color: var(--gold);
  font-weight: 700;
}

/* 빈 데이터 */
.dash-empty {
  text-align: center;
  padding: 24px;
  font-size: 13px;
  color: rgba(248,246,240,0.3);
  letter-spacing: 1px;
}

/* 대시보드 푸터 */
.dash-footer {
  text-align: center;
  padding: 24px 0 40px;
}

.dash-last-update {
  font-size: 12px;
  color: rgba(248,246,240,0.4);
  margin-top: 12px;
}

/* ══════════════════════════════════════
   자동 리셋 오버레이
   ══════════════════════════════════════ */
.reset-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(13,31,60,0.92);
  backdrop-filter: blur(10px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.reset-overlay.active {
  display: flex;
}

.reset-message {
  text-align: center;
}

.reset-icon {
  font-size: 80px;
  animation: float-idle 3s ease-in-out infinite;
}

.reset-text {
  font-size: 20px;
  color: var(--white);
  margin-top: 20px;
  letter-spacing: 1px;
}

.reset-countdown {
  font-family: 'Cormorant Garamond', serif;
  font-size: 48px;
  color: var(--gold);
  margin-top: 16px;
}

.btn-reset-cancel {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
  margin-top: 24px;
  min-height: 56px;
  transition: all 0.2s;
}

.btn-reset-cancel:hover { background: var(--gold2); }

/* ══════════════════════════════════════
   푸터
   ══════════════════════════════════════ */
.kiosk-footer {
  text-align: center;
  padding: 20px 0 28px;
  font-size: 11px;
  color: rgba(248,246,240,0.3);
  letter-spacing: 2px;
  border-top: 1px solid rgba(201,168,76,0.1);
  margin-top: 20px;
}

/* ══════════════════════════════════════
   지도 마커 스타일 (공통)
   ══════════════════════════════════════ */
.mkr-div {
  background: #fff;
  border: 2.5px solid #B8860B;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #B8860B;
  box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif;
}

/* ══════════════════════════════════════
   모바일 반응형
   ══════════════════════════════════════ */
@media (max-width: 900px) {
  .kiosk-nav {
    flex-wrap: wrap;
    height: auto;
    padding: 8px 16px;
    gap: 8px;
  }

  :root { --nav-height: 110px; }

  .nav-brand { font-size: 20px; letter-spacing: 4px; }

  .nav-tabs {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 4px;
  }

  .nav-tab {
    padding: 8px 14px;
    font-size: 12px;
  }

  .nav-info { gap: 6px; }

  .garden-cards { grid-template-columns: repeat(2, 1fr); }
  .status-cards { grid-template-columns: 1fr; }
  .status-info-grid { grid-template-columns: repeat(2, 1fr); }

  .dash-summary-cards { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
  .dash-row-3 { grid-template-columns: 1fr; }
  .dash-totals { flex-wrap: wrap; gap: 16px; }

  .brand-intro {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .map-filter-panel { width: 160px; padding: 12px; }
}

@media (max-width: 600px) {
  .hero-logo { font-size: 48px; letter-spacing: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .whale-container { width: 180px; height: 180px; }
  .whale-svg { width: 180px; height: 180px; }
  .garden-cards { grid-template-columns: 1fr; }
  .status-info-grid { grid-template-columns: 1fr; }
  .dash-summary-cards { grid-template-columns: 1fr 1fr; }
  .dash-card-value { font-size: 28px; }
  .dash-totals { flex-direction: column; align-items: center; gap: 10px; }

  .brand-bottom-cta { flex-direction: column; align-items: center; }

  .map-tab-wrapper { flex-direction: column; }
  .map-filter-panel {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid rgba(201,168,76,0.2);
  }
  .filter-legend { margin-top: 8px; padding-top: 8px; }
  .explore-map { height: calc(100vh - var(--nav-height) - 200px); }

  .map-container { height: 350px; }

  .nav-tab .nav-icon { display: none; }
}
