:root {
  --primary-color: #1a2b49; /* 신라의 밤하늘 딥 네이비 */
  --secondary-color: #c59b27; /* 신라 황금빛 골드 */
  --accent-red: #9e2a2b; /* 전통 홍색 */
  --accent-teal: #2a6f68; /* 은은한 옥빛 청록 */
  --bg-light: #fdfbf7; /* 따뜻한 한지 아이보리 */
  --bg-card: #ffffff;
  --text-main: #222222;
  --text-muted: #666666;
  --border-color: #e8e3d8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 36px rgba(0, 0, 0, 0.12);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, 'Noto Sans KR', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  word-break: keep-all;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1ede4;
}
::-webkit-scrollbar-thumb {
  background: #c59b27;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a9801a;
}

/* Typography Enhancements */
.font-serif-kr {
  font-family: 'Gowun Batang', 'Nanum Myeongjo', serif;
}

/* Navigation Blur & Glassmorphism */
.glass-nav {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(197, 155, 39, 0.15);
}

/* Hero Section Gradients & Effects */
.hero-gradient {
  background: linear-gradient(180deg, rgba(16, 24, 40, 0.75) 0%, rgba(16, 24, 40, 0.88) 100%);
}

.hero-pattern {
  background-image: radial-gradient(rgba(197, 155, 39, 0.18) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Badges & Accents */
.badge-gold {
  background: linear-gradient(135deg, #c59b27, #e8be48);
  color: #ffffff;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 9999px;
  letter-spacing: -0.01em;
}

/* Card Hover Animations */
.hover-card {
  transition: var(--transition);
}
.hover-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

/* Timeline Custom Styles */
.timeline-stem {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px;
  width: 3px;
  background: linear-gradient(180deg, #c59b27 0%, #2a6f68 50%, #1a2b49 100%);
}

@media (min-width: 768px) {
  .timeline-stem {
    left: 50%;
    transform: translateX(-50%);
  }
}

.timeline-dot {
  position: absolute;
  top: 24px;
  left: 28px;
  transform: translate(-50%, 0);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid #c59b27;
  z-index: 10;
  box-shadow: 0 0 0 4px rgba(197, 155, 39, 0.25);
  transition: var(--transition);
}

@media (min-width: 768px) {
  .timeline-dot {
    left: 50%;
  }
}

.timeline-item:hover .timeline-dot {
  transform: translate(-50%, 0) scale(1.3);
  border-color: #9e2a2b;
  box-shadow: 0 0 0 6px rgba(158, 42, 43, 0.2);
}

/* Map Container */
#map {
  width: 100%;
  height: 480px;
  border-radius: var(--radius-md);
  z-index: 1;
}

/* Custom Marker Pulsing for Map */
.custom-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: white;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  border: 2px solid white;
}
.pin-day1 { background-color: #9e2a2b; }
.pin-day2 { background-color: #2a6f68; }
.pin-day3 { background-color: #1a2b49; }

/* Modal Custom Animations */
.modal-overlay {
  background: rgba(16, 24, 40, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-content {
  max-height: 90vh;
  overflow-y: auto;
}

/* Print Optimization */
@media print {
  nav, .no-print, #map-controls, .floating-actions, footer {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  .print-break {
    page-break-after: always;
  }
  .shadow-md, .shadow-lg, .shadow-sm {
    box-shadow: none !important;
  }
}
