/* ============================================
   멜번 러닝맵 v2 - 모던 디자인 업데이트
   ============================================ */

/* CSS 변수 정의 */
:root {
  --primary-orange: #ff6b35;
  --secondary-orange: #ff8c42;
  --pale-orange: #fff5f0;
  --bg-white: #ffffff;
  --bg-cream: #fffbf7;
  --bg-light: #f8f9fa;
  --text-dark: #1a1a2e;
  --text-gray: #6c757d;
  --text-light: #adb5bd;
  --border-light: #e9ecef;
  --gradient-orange: linear-gradient(135deg, #ff6b35, #ff8c42);
  --gradient-hero: linear-gradient(135deg, rgba(26, 26, 46, 0.7), rgba(255, 107, 53, 0.4));
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
  --shadow-orange: 0 4px 20px rgba(255, 107, 53, 0.3);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 글로벌 리셋 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans KR', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

/* ============================================
   히어로 섹션 - 멜번 이미지 배경
   ============================================ */
.hero-section-v2 {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-bg-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero-bg-slide.active { opacity: 1; }

.hero-bg-slide::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 46, 0.5) 0%,
    rgba(26, 26, 46, 0.3) 50%,
    rgba(26, 26, 46, 0.8) 100%
  );
}

.hero-content-v2 {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  max-width: 900px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 2rem;
  animation: fadeInDown 0.8s ease-out;
}

.hero-badge span {
  color: white;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: white;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-title .highlight {
  color: #ff6b35 !important;
  -webkit-text-fill-color: #ff6b35;
  text-shadow: 0 0 30px rgba(255, 107, 53, 0.5), 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 1.25rem 1.75rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 120px;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.hero-stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-stat:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.hero-stat:hover::before {
  opacity: 1;
}

.hero-stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: white;
  display: block;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  position: relative;
  z-index: 1;
  margin-top: 2px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.hero-scroll-indicator i {
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.6);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   버튼 스타일 - 부드럽고 모던한 디자인
   ============================================ */
.btn-v2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.btn-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.btn-v2:hover::before {
  left: 100%;
}

.btn-primary-v2 {
  background: var(--gradient-orange);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 107, 53, 0.35);
}

.btn-primary-v2:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255, 107, 53, 0.45);
}

.btn-primary-v2:active {
  transform: translateY(-1px);
}

.btn-secondary-v2 {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
}

.btn-secondary-v2:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline-v2 {
  background: transparent;
  color: var(--primary-orange);
  border: 2px solid var(--primary-orange);
}

.btn-outline-v2:hover {
  background: var(--primary-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

/* ============================================
   코스 카드 v2 - 부드럽고 모던한 디자인
   ============================================ */
.course-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

/* 모바일에서 2열 그리드 */
@media (max-width: 768px) {
  .course-grid-v2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .course-grid-v2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.course-card-v2 {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.04);
  position: relative;
}

.course-card-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.course-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(255, 107, 53, 0.15);
  border-color: rgba(255, 107, 53, 0.2);
}

.course-card-v2:hover::before {
  opacity: 1;
}

.course-card-image-v2 {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #ff6b35, #ff8c42);
}

@media (max-width: 768px) {
  .course-card-image-v2 {
    height: 140px;
  }
}

.course-card-image-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.course-card-v2:hover .course-card-image-v2 img {
  transform: scale(1.08);
}

/* 이미지 오버레이 그라데이션 */
.course-card-image-v2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
  pointer-events: none;
}

.course-card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(8px);
  z-index: 2;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.badge-easy { background: linear-gradient(135deg, #22c55e, #16a34a); }
.badge-medium { background: linear-gradient(135deg, #f59e0b, #d97706); }
.badge-hard { background: linear-gradient(135deg, #ef4444, #dc2626); }

.course-card-content-v2 {
  padding: 1.25rem;
  position: relative;
  z-index: 2;
}

@media (max-width: 768px) {
  .course-card-content-v2 {
    padding: 1rem;
  }
}

.course-card-title-v2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .course-card-title-v2 {
    font-size: 0.95rem;
  }
}

.course-card-location-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.course-card-location-v2 i { 
  color: var(--primary-orange);
  font-size: 0.9rem;
}

.course-card-stats-v2 {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.stat-item-v2 {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dark);
  background: var(--bg-light);
  padding: 4px 10px;
  border-radius: 20px;
}

.stat-item-v2 i { 
  color: var(--primary-orange);
  font-size: 0.85rem;
}

.course-card-features-v2 {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 0.75rem;
}

.feature-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(255, 140, 66, 0.08));
  color: var(--primary-orange);
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid rgba(255, 107, 53, 0.15);
  transition: all 0.3s ease;
}

.course-card-v2:hover .feature-chip {
  background: linear-gradient(135deg, rgba(255, 107, 53, 0.12), rgba(255, 140, 66, 0.12));
}

.course-card-actions-v2 {
  display: flex;
  gap: 8px;
}

.course-card-actions-v2 .btn-v2 {
  flex: 1;
  padding: 10px 16px;
  font-size: 0.85rem;
  border-radius: 12px;
}

/* ============================================
   섹션 스타일 - 부드러운 배경
   ============================================ */
.section-v2 {
  padding: 3.5rem 0;
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  position: relative;
}

/* 섹션 배경 장식 */
.section-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 53, 0.2), transparent);
}

.section-header-v2 {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title-v2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-subtitle-v2 {
  font-size: 1rem;
  color: var(--text-gray);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.6;
}

.container-v2 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (max-width: 768px) {
  .section-v2 {
    padding: 2.5rem 0;
  }
  
  .section-header-v2 {
    margin-bottom: 1.5rem;
  }
  
  .container-v2 {
    padding: 0 1rem;
  }
}

/* ============================================
   필터 섹션 - 접기/펼치기 가능한 디자인
   ============================================ */
.filter-section-v2 {
  background: white;
  padding: 0.75rem 0;
  position: sticky;
  top: 60px;
  z-index: 100;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* 필터 헤더 - 항상 표시 */
.filter-header-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: var(--pale-orange);
  border: none;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-orange);
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-toggle-btn:hover {
  background: var(--primary-orange);
  color: white;
}

.filter-toggle-btn.collapsed i.bi-chevron-down {
  transform: rotate(0deg);
}

.filter-toggle-btn:not(.collapsed) i.bi-chevron-down {
  transform: rotate(180deg);
}

.filter-toggle-btn i {
  transition: transform 0.2s ease;
}

.filter-badge {
  background: var(--primary-orange);
  color: white;
  font-size: 0.7rem;
  padding: 0.15rem 0.4rem;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.filter-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sort-select-v2 {
  padding: 0.6rem 2rem 0.6rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%23ff6b35' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.sort-select-v2:focus {
  outline: none;
  border-color: var(--primary-orange);
}

/* 필터 콘텐츠 - 접기/펼치기 */
.filter-content-v2 {
  max-height: 300px;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease, opacity 0.3s ease;
  padding-top: 0.75rem;
  opacity: 1;
}

.filter-content-v2.collapsed {
  max-height: 0;
  padding-top: 0;
  opacity: 0;
}

.filter-group {
  margin-bottom: 0.75rem;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-chips-v2 {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.filter-chips-v2::-webkit-scrollbar {
  display: none;
}

.filter-chip-v2 {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid #e5e7eb;
  background: white;
  color: var(--text-gray);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-chip-v2:hover {
  background: var(--pale-orange);
  color: var(--primary-orange);
  border-color: var(--primary-orange);
}

.filter-chip-v2.active {
  background: var(--gradient-orange);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.search-box-v2 {
  position: relative;
  width: 100%;
}

.search-box-v2 input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.5rem;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  font-size: 0.85rem;
  transition: all 0.2s ease;
  background: white;
}

.search-box-v2 input:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.search-box-v2 input::placeholder {
  color: #adb5bd;
}

.search-box-v2 i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary-orange);
  font-size: 0.9rem;
}

/* 모바일 필터 최적화 */
@media (max-width: 768px) {
  .filter-section-v2 {
    padding: 0.5rem 0;
    top: 56px;
  }
  
  .filter-header-v2 {
    padding: 0 0.25rem;
  }
  
  .filter-toggle-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
  
  .sort-select-v2 {
    padding: 0.5rem 1.75rem 0.5rem 0.6rem;
    font-size: 0.75rem;
  }
  
  .filter-content-v2 {
    padding-top: 0.5rem;
  }
  
  .filter-chips-v2 {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding-bottom: 6px;
  }
  
  .filter-chip-v2 {
    padding: 5px 12px;
    font-size: 0.75rem;
  }
}

/* ============================================
   모바일 전체 최적화
   ============================================ */
@media (max-width: 768px) {
  /* 히어로 섹션 모바일 최적화 */
  .hero-section-v2 {
    min-height: 100vh;
    min-height: calc(var(--vh, 1vh) * 100);
  }
  
  .hero-content-v2 {
    padding: 1rem;
    padding-top: 80px;
  }
  
  .hero-title {
    font-size: 1.75rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
  }
  
  .hero-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
  }
  
  .hero-badge {
    padding: 8px 16px;
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
  }
  
  .hero-stats {
    gap: 0.4rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-stat {
    padding: 0.6rem 0.8rem;
    min-width: 80px;
    border-radius: 14px;
  }
  
  .hero-stat-value {
    font-size: 1.1rem;
  }
  
  .hero-stat-label {
    font-size: 0.65rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.6rem;
  }
  
  .hero-actions .btn-v2 {
    width: 100%;
    max-width: 260px;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  
  /* 날씨 정보 모바일 */
  .hero-weather-info {
    top: 60px;
    right: 0.5rem;
    padding: 0.35rem 0.6rem;
    font-size: 0.75rem;
    border-radius: 15px;
  }
  
  /* 스크롤 인디케이터 */
  .hero-scroll-indicator {
    bottom: 0.5rem;
  }
  
  .hero-scroll-indicator i {
    font-size: 1.25rem;
  }
  
  /* 코스 카드 모바일 최적화 */
  .course-grid-v2 {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  .course-card-v2 {
    border-radius: 16px;
  }
  
  .course-card-image-v2 {
    height: 160px;
  }
  
  .course-card-content-v2 {
    padding: 0.875rem;
  }
  
  .course-card-title-v2 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }
  
  .course-card-location-v2 {
    font-size: 0.8rem;
    margin-bottom: 0.5rem;
  }
  
  .course-card-stats-v2 {
    gap: 0.4rem;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
  }
  
  .stat-item-v2 {
    padding: 3px 8px;
    font-size: 0.75rem;
  }
  
  .course-card-features-v2 {
    gap: 4px;
    margin-bottom: 0.5rem;
  }
  
  .feature-chip {
    padding: 3px 8px;
    font-size: 0.7rem;
  }
  
  .course-card-actions-v2 {
    gap: 6px;
  }
  
  .course-card-actions-v2 .btn-v2 {
    padding: 8px 12px;
    font-size: 0.8rem;
    border-radius: 10px;
  }
  
  /* 섹션 모바일 */
  .section-v2 {
    padding: 1.5rem 0;
  }
  
  .section-header-v2 {
    margin-bottom: 1rem;
  }
  
  .section-title-v2 {
    font-size: 1.25rem;
  }
  
  .section-subtitle-v2 {
    font-size: 0.85rem;
  }
  
  .container-v2 {
    padding: 0 0.75rem;
  }
  
  /* 시간대별 추천 섹션 모바일 */
  #time-recommendation-section {
    padding: 1rem 0;
  }
  
  .time-rec-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .time-rec-courses {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  
  /* 헤더 모바일 */
  .header-container-v2 {
    padding: 0.4rem 0.75rem;
  }
  
  .logo-v2 img {
    width: 32px;
    height: 32px;
  }
  
  .logo-text-v2 h1 {
    font-size: 0.95rem;
  }
  
  .logo-text-v2 span {
    font-size: 0.6rem;
  }
  
  /* 푸터 모바일 */
  .footer-v2 {
    padding: 2rem 0 1rem;
  }
  
  .footer-grid-v2 {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-section-v2 h4 {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .footer-section-v2 a {
    font-size: 0.85rem;
  }
}

/* ============================================
   헤더 v2 - 부드럽고 모던한 디자인
   ============================================ */
.header-v2 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.header-v2.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.header-container-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo-v2 {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.logo-v2:hover {
  transform: scale(1.02);
}

.logo-v2 img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(255, 107, 53, 0.2);
}

.logo-text-v2 h1 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  letter-spacing: -0.02em;
}

.logo-text-v2 span {
  font-size: 0.7rem;
  color: var(--primary-orange);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-link-v2:hover {
  background: var(--pale-orange);
  color: var(--primary-orange);
  transform: translateY(-1px);
}

.nav-link-v2.active {
  background: var(--gradient-orange);
  color: white;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.3);
}

/* ============================================
   로그인 모달
   ============================================ */
.login-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-modal-overlay.active {
  display: flex;
  opacity: 1;
}

.login-modal {
  background: white;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.login-modal-overlay.active .login-modal {
  transform: scale(1);
}

.login-modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.login-modal-subtitle {
  color: var(--text-gray);
  margin-bottom: 2rem;
}

.login-btn-v2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 12px;
}

.login-btn-kakao {
  background: #FEE500;
  color: #191919;
}

.login-btn-kakao:hover {
  background: #F5DC00;
  transform: translateY(-2px);
}

.login-btn-google {
  background: white;
  color: var(--text-dark);
  border: 2px solid var(--border-light);
}

.login-btn-google:hover {
  background: var(--bg-light);
  transform: translateY(-2px);
}

.login-btn-google img,
.login-btn-kakao img {
  width: 20px;
  height: 20px;
}

.login-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-gray);
  cursor: pointer;
}

/* ============================================
   지도 전체화면 개선
   ============================================ */
.map-fullscreen-v2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: white;
  display: none;
}

.map-fullscreen-v2.active { display: block; }

.map-controls-v2 {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.map-controls-v2 > * { pointer-events: auto; }

.map-btn-v2 {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: white;
  border: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

.map-btn-v2:hover {
  background: var(--primary-orange);
  color: white;
}

.map-btn-v2.location-btn {
  background: var(--gradient-orange);
  color: white;
}

/* 현재 위치 마커 스타일 */
.current-location-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #3b82f6;
  border: 4px solid white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3);
  animation: pulse-location 2s infinite;
}

/* Mapbox 기본 컨트롤 위치 조정 - 겹침 방지 */
.map-fullscreen-v2 .mapboxgl-ctrl-top-right {
  top: 70px !important;
  right: 15px !important;
}

.map-fullscreen-v2 .mapboxgl-ctrl-bottom-left {
  bottom: 15px !important;
  left: 15px !important;
}

.map-fullscreen-v2 .mapboxgl-ctrl-bottom-right {
  bottom: 80px !important;
  right: 15px !important;
}

@keyframes pulse-location {
  0% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0.1), 0 4px 12px rgba(0, 0, 0, 0.3); }
  100% { box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3), 0 4px 12px rgba(0, 0, 0, 0.3); }
}

/* ============================================
   음악 플레이어 개선
   ============================================ */
.music-player-v2 {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 1rem 1.5rem;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.music-player-v2.active { transform: translateY(0); }

.music-player-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.music-service-btns {
  display: flex;
  gap: 8px;
}

.music-service-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.music-service-btn.spotify {
  background: #1DB954;
  color: white;
}

.music-service-btn.youtube {
  background: #FF0000;
  color: white;
}

.music-service-btn:hover { transform: scale(1.05); }

/* ============================================
   푸터 v2 - 모던하고 부드러운 디자인
   ============================================ */
.footer-v2 {
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  color: white;
  padding: 4rem 0 2rem;
  position: relative;
  overflow: hidden;
}

/* 푸터 상단 장식 라인 */
.footer-v2::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-orange);
  border-radius: 0 0 4px 4px;
}

/* 푸터 배경 장식 */
.footer-v2::after {
  content: '';
  position: absolute;
  bottom: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 107, 53, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.footer-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.footer-section-v2 h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section-v2 h4 i {
  color: var(--primary-orange);
  font-size: 1.1rem;
}

.footer-section-v2 ul { 
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-section-v2 li { 
  margin-bottom: 0.75rem;
}

.footer-section-v2 a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
  position: relative;
}

.footer-section-v2 a::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: width 0.3s ease;
  border-radius: 2px;
}

.footer-section-v2 a:hover { 
  color: var(--primary-orange);
  transform: translateX(4px);
}

.footer-section-v2 a:hover::before {
  width: 100%;
}

.footer-bottom-v2 {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.footer-bottom-v2 p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  margin: 0;
}

/* 푸터 반응형 */
@media (max-width: 768px) {
  .footer-v2 {
    padding: 3rem 0 1.5rem;
  }
  
  .footer-grid-v2 {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  
  .footer-section-v2:last-child {
    grid-column: 1 / -1;
  }
}

/* ============================================
   반응형 - 모바일 최적화
   ============================================ */
@media (max-width: 768px) {
  .hero-section-v2 { 
    min-height: 100svh;
    min-height: -webkit-fill-available;
  }
  
  .hero-content-v2 {
    padding: 1.5rem;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 7vw, 2.5rem);
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .hero-stats { 
    gap: 0.5rem;
    justify-content: center;
  }
  
  .hero-stat { 
    padding: 0.875rem 1rem; 
    min-width: 90px;
    border-radius: 16px;
  }
  
  .hero-stat-value { 
    font-size: 1.35rem;
  }
  
  .hero-stat-label {
    font-size: 0.7rem;
  }
  
  .hero-actions { 
    flex-direction: column; 
    align-items: center;
    gap: 0.75rem;
  }
  
  .btn-v2 { 
    width: 100%; 
    max-width: 280px;
    padding: 12px 24px;
    font-size: 0.9rem;
  }
  
  /* 모바일 그리드 - 2열 */
  .course-grid-v2 { 
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  
  .filter-container-v2 { 
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .filter-chips-v2 {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }
  
  .filter-chip-v2 {
    padding: 6px 14px;
    font-size: 0.8rem;
  }
  
  .search-box-v2 { 
    width: 100%; 
    min-width: auto;
  }
  
  .nav-v2 { display: none; }
  .mobile-menu-btn { display: flex !important; }
}

/* 작은 모바일 화면 */
@media (max-width: 400px) {
  .course-grid-v2 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .hero-stat {
    padding: 0.75rem 0.875rem;
    min-width: 80px;
  }
  
  .hero-stat-value {
    font-size: 1.2rem;
  }
}

/* ============================================
   유틸리티
   ============================================ */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-primary { color: var(--primary-orange); }
.bg-light { background: var(--bg-light); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

/* ============================================
   지도 전체화면 추가 스타일
   ============================================ */
.map-fullscreen-v2 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background: white;
  display: none;
}

.map-fullscreen-v2.active {
  display: block;
}

#map {
  width: 100%;
  height: 100%;
}

/* 스피너 스타일 */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-light);
  border-top-color: var(--primary-orange);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ============================================
   마커 성능 최적화 - 딜레이 및 마우스 피하기 문제 해결
   ============================================ */
.course-marker,
.mapboxgl-marker {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
  pointer-events: auto !important;
}

/* Mapbox 마커 컨테이너 최적화 */
.mapboxgl-marker {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  will-change: transform !important;
  transform-style: preserve-3d;
}

/* 마커 호버 효과 */
.course-marker:hover {
  transform: translateZ(0) scale(1.1);
  z-index: 100 !important;
  transition: transform 0.15s ease-out;
}

/* 마커 내부 요소 최적화 */
.course-marker * {
  pointer-events: none;
}

/* 현재 위치 마커 컨테이너 */
.current-location-marker-container {
  will-change: transform;
  transform: translateZ(0);
}

/* Mapbox 캔버스 최적화 */
.mapboxgl-canvas-container {
  will-change: transform;
}

.mapboxgl-canvas {
  will-change: transform;
}

/* 모바일 메뉴 버튼 - PC에서는 숨김 */
.mobile-menu-btn {
  display: none !important;
}

/* 모바일 메뉴 */
@media (max-width: 768px) {
  .nav-v2 { display: none; }
  .mobile-menu-btn { display: flex !important; }
  
  .header-container-v2 {
    padding: 0.5rem 1rem;
  }
  
  .logo-v2 img {
    width: 36px;
    height: 36px;
  }
  
  .logo-text-v2 h1 {
    font-size: 1rem;
  }
}

/* 헤더 스크롤 효과 */
.header-v2.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* 필터 섹션 sticky 개선 */
.filter-section-v2 {
  position: sticky;
  top: 60px;
  z-index: 100;
  background: rgba(248, 249, 250, 0.98);
  backdrop-filter: blur(10px);
}


/* ============================================
   팝업 최적화 - 코스 가리지 않도록
   ============================================ */
.course-popup-optimized {
  z-index: 1000 !important;
}

.course-popup-optimized .mapboxgl-popup-content {
  padding: 0;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-width: 300px;
}

.course-popup-optimized .mapboxgl-popup-tip {
  border-top-color: white;
}

.course-popup-optimized .mapboxgl-popup-close-button {
  font-size: 20px;
  padding: 8px 12px;
  color: #6b7280;
  right: 4px;
  top: 4px;
}

.course-popup-optimized .mapboxgl-popup-close-button:hover {
  background: #f3f4f6;
  border-radius: 50%;
}

/* 지도 내 현재 위치 버튼 */
#location-btn {
  transition: all 0.2s ease;
}

#location-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

#location-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 지도 필터 패널 */
.map-filter-panel {
  position: absolute;
  top: max(80px, calc(env(safe-area-inset-top, 20px) + 60px));
  left: 20px;
  background: white;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  max-width: 280px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  display: none;
}

.map-filter-panel.show {
  display: block;
}

.map-filter-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-filter-group {
  margin-bottom: 16px;
}

.map-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 8px;
  display: block;
}

.map-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.map-filter-chip {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid #e5e7eb;
  background: white;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
}

.map-filter-chip:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.map-filter-chip.active {
  background: var(--gradient-orange);
  color: white;
  border-color: transparent;
}

.map-filter-toggle {
  position: absolute;
  top: max(20px, env(safe-area-inset-top, 20px));
  right: 20px;
  background: white;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1000;
  color: #1f2937;
}

.map-filter-toggle:hover {
  background: var(--pale-orange);
  color: var(--primary-orange);
}

/* 모바일 필터 패널 */
@media (max-width: 768px) {
  .map-filter-panel {
    left: 10px;
    right: 10px;
    max-width: none;
    top: auto;
    bottom: max(90px, calc(env(safe-area-inset-bottom, 30px) + 60px));
    max-height: 50vh;
  }
  
  .map-filter-toggle {
    top: max(20px, env(safe-area-inset-top, 20px));
    right: 20px;
    padding: 10px 14px;
    font-size: 13px;
  }
  
  /* 모바일에서 내 위치 버튼 위치 조정 */
  #location-btn {
    top: max(80px, calc(env(safe-area-inset-top, 20px) + 60px)) !important;
    right: 20px !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
  }
}


/* ============================================
   Mapbox 팝업 스타일 최적화
   ============================================ */

/* 팝업이 코스를 가리지 않도록 위치 조정 */
.mapboxgl-popup {
  z-index: 100;
}

.mapboxgl-popup-anchor-bottom .mapboxgl-popup-tip {
  border-top-color: white;
}

.mapboxgl-popup-content {
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  max-width: 320px;
  overflow: hidden;
}

/* 모바일 팝업 최적화 */
@media (max-width: 767px) {
  .mapboxgl-popup-content {
    max-width: 85vw !important;
    font-size: 0.9rem;
  }
  
  .start-point-popup .mapboxgl-popup-content,
  .end-point-popup .mapboxgl-popup-content {
    max-width: 85vw !important;
  }
  
  .end-point-popup .mapboxgl-popup-tip {
    border-top-color: #fef2f2;
  }
}

/* 끝점 팝업 스타일 */
.end-point-popup .mapboxgl-popup-content {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.mapboxgl-popup-close-button {
  font-size: 20px;
  padding: 8px 12px;
  color: #6b7280;
  right: 4px;
  top: 4px;
}

.mapboxgl-popup-close-button:hover {
  color: #1f2937;
  background: transparent;
}

/* 팝업 최적화 클래스 */
.course-popup-optimized .mapboxgl-popup-content {
  animation: popupFadeIn 0.2s ease;
}

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

/* 필터 결과 카운트 */
#map-filter-count {
  padding: 8px 12px;
  background: var(--pale-orange);
  border-radius: 8px;
  font-size: 13px;
  color: var(--primary-orange);
  font-weight: 600;
  margin-top: 12px;
  text-align: center;
}

/* 필터 패널 활성화 상태 */
.map-filter-panel.active {
  display: block;
}


/* ============================================
   추가 부드러운 효과 및 애니메이션
   ============================================ */

/* 부드러운 스크롤 */
html {
  scroll-behavior: smooth;
}

/* 전체 페이지 부드러운 전환 */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 카드 호버 시 부드러운 그림자 */
.course-card-v2,
.hero-stat,
.filter-chip-v2,
.btn-v2 {
  will-change: transform, box-shadow;
}

/* 로딩 애니메이션 개선 */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* 페이드 인 애니메이션 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.course-card-v2 {
  animation: fadeInUp 0.5s ease-out;
  animation-fill-mode: both;
}

.course-card-v2:nth-child(1) { animation-delay: 0.05s; }
.course-card-v2:nth-child(2) { animation-delay: 0.1s; }
.course-card-v2:nth-child(3) { animation-delay: 0.15s; }
.course-card-v2:nth-child(4) { animation-delay: 0.2s; }
.course-card-v2:nth-child(5) { animation-delay: 0.25s; }
.course-card-v2:nth-child(6) { animation-delay: 0.3s; }

/* 터치 피드백 개선 (모바일) */
@media (hover: none) {
  .course-card-v2:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
  
  .btn-v2:active {
    transform: scale(0.96);
    transition: transform 0.1s ease;
  }
  
  .filter-chip-v2:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
  }
}

/* 포커스 스타일 개선 (접근성) */
.btn-v2:focus-visible,
.filter-chip-v2:focus-visible,
.nav-link-v2:focus-visible {
  outline: 2px solid var(--primary-orange);
  outline-offset: 2px;
}

/* 스크롤바 스타일 (웹킷) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-orange), var(--secondary-orange));
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-orange);
}

/* 선택 색상 */
::selection {
  background: rgba(255, 107, 53, 0.2);
  color: var(--text-dark);
}

/* ============================================
   카카오톡 인앱 브라우저 호환성 수정
   ============================================ */

/* 카카오톡 브라우저 감지 시 적용되는 스타일 */
.kakao-browser .hero-section-v2 {
  min-height: 100vh;
  min-height: calc(var(--vh, 1vh) * 100);
  height: auto;
}

.kakao-browser .hero-stat,
.kakao-browser .hero-badge,
.kakao-browser .btn-secondary-v2,
.kakao-browser .header-v2,
.kakao-browser .filter-section-v2,
.kakao-browser .hero-weather-info {
  /* backdrop-filter 대신 solid background 사용 */
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.kakao-browser .hero-stat {
  background: rgba(30, 30, 50, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

.kakao-browser .hero-badge {
  background: rgba(30, 30, 50, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.kakao-browser .btn-secondary-v2 {
  background: rgba(30, 30, 50, 0.85) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.kakao-browser .header-v2 {
  background: rgba(255, 255, 255, 0.98) !important;
}

.kakao-browser .filter-section-v2 {
  background: rgba(248, 249, 250, 0.98) !important;
}

.kakao-browser .hero-weather-info {
  background: rgba(30, 30, 50, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* 카카오톡 브라우저에서 코스 카드 레이아웃 수정 */
.kakao-browser .course-grid-v2 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
}

.kakao-browser .course-card-v2 {
  flex: 0 0 calc(50% - 0.375rem) !important;
  max-width: calc(50% - 0.375rem) !important;
  display: flex !important;
  flex-direction: column !important;
}

@media (max-width: 480px) {
  .kakao-browser .course-card-v2 {
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}

.kakao-browser .course-card-content-v2 {
  display: flex !important;
  flex-direction: column !important;
}

.kakao-browser .course-card-title-v2 {
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

.kakao-browser .course-card-stats-v2 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.5rem !important;
}

.kakao-browser .stat-item-v2 {
  white-space: nowrap !important;
}

/* 히어로 날씨 정보 위치 수정 - 버튼과 겹치지 않도록 */
.hero-weather-info {
  position: absolute;
  top: 70px; /* 헤더 아래로 이동 */
  right: 1rem;
  left: auto;
  bottom: auto;
  background: rgba(30, 30, 50, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  color: white;
  font-size: 0.85rem;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-weather-info i { 
  font-size: 1.1rem; 
}

/* 스크롤 인디케이터 위치 수정 - 버튼과 겹치지 않도록 */
.hero-scroll-indicator {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5; /* 버튼보다 낮은 z-index */
  animation: bounce 2s infinite;
  pointer-events: none;
}

/* 히어로 액션 버튼 z-index 높이기 */
.hero-actions {
  position: relative;
  z-index: 20;
}

/* 모바일에서 날씨 정보 위치 조정 */
@media (max-width: 768px) {
  .hero-weather-info {
    top: 65px;
    right: 0.75rem;
    font-size: 0.75rem;
    padding: 0.4rem 0.75rem;
    gap: 0.5rem;
  }
  
  .hero-weather-info i {
    font-size: 0.9rem;
  }
  
  .hero-scroll-indicator {
    bottom: 0.75rem;
  }
  
  .hero-scroll-indicator i {
    font-size: 1.5rem;
  }
}

/* 카카오톡 브라우저에서 필터 칩 수정 */
.kakao-browser .filter-chips-v2 {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
  scrollbar-width: none !important;
  gap: 6px !important;
}

.kakao-browser .filter-chips-v2::-webkit-scrollbar {
  display: none !important;
}

.kakao-browser .filter-chip-v2 {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

/* 카카오톡 브라우저에서 애니메이션 단순화 */
.kakao-browser .course-card-v2 {
  animation: none !important;
}

.kakao-browser .hero-badge,
.kakao-browser .hero-title,
.kakao-browser .hero-subtitle,
.kakao-browser .hero-stats,
.kakao-browser .hero-actions {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

/* 카카오톡 브라우저에서 코스 카드 내부 요소 수정 */
.kakao-browser .course-card-features-v2 {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
}

.kakao-browser .feature-chip {
  display: inline-flex !important;
  white-space: nowrap !important;
  font-size: 0.7rem !important;
  padding: 3px 8px !important;
}

.kakao-browser .course-card-actions-v2 {
  display: flex !important;
  flex-direction: row !important;
  gap: 6px !important;
  margin-top: auto !important;
}

.kakao-browser .course-card-actions-v2 .btn-v2 {
  flex: 1 !important;
  padding: 8px 10px !important;
  font-size: 0.8rem !important;
  min-width: 0 !important;
}

/* 카카오톡 브라우저에서 히어로 콘텐츠 수정 */
.kakao-browser .hero-content-v2 {
  padding: 1.5rem !important;
  padding-top: 80px !important; /* 날씨 정보 공간 확보 */
}

.kakao-browser .hero-title {
  font-size: clamp(1.75rem, 6vw, 2.5rem) !important;
  line-height: 1.3 !important;
}

.kakao-browser .hero-subtitle {
  font-size: 0.95rem !important;
  line-height: 1.5 !important;
}

.kakao-browser .hero-stats {
  gap: 0.5rem !important;
}

.kakao-browser .hero-stat {
  padding: 0.75rem 1rem !important;
  min-width: 85px !important;
}

.kakao-browser .hero-stat-value {
  font-size: 1.25rem !important;
}

.kakao-browser .hero-stat-label {
  font-size: 0.7rem !important;
}

/* 카카오톡 브라우저에서 버튼 수정 */
.kakao-browser .hero-actions {
  flex-direction: column !important;
  gap: 0.75rem !important;
}

.kakao-browser .hero-actions .btn-v2 {
  width: 100% !important;
  max-width: 280px !important;
  margin: 0 auto !important;
}

/* 카카오톡 브라우저에서 시간대별 추천 섹션 수정 */
.kakao-browser .time-rec-courses {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.75rem !important;
}

.kakao-browser .time-rec-course-card,
.kakao-browser .time-rec-course {
  flex: 0 0 100% !important;
  max-width: 100% !important;
}

/* 카카오톡 브라우저에서 정렬 셀렉트 수정 */
.kakao-browser #sort-select {
  background-color: white !important;
  color: #1f2937 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

/* 카카오톡 브라우저에서 지도 전체화면 수정 */
.kakao-browser .map-fullscreen-v2 {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* 이미지 로딩 플레이스홀더 */
.course-card-image-v2 {
  background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffa35c 100%);
}

/* 결과 카운트 스타일 */
#result-count {
  font-size: 0.9rem;
  color: var(--text-gray);
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#result-count::before {
  content: '📍';
}

/* 정렬 셀렉트 스타일 */
#sort-select {
  padding: 12px 40px 12px 18px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  background: white;
  color: var(--text-dark);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23ff6b35' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  min-width: 130px;
}

#sort-select:hover {
  border-color: var(--primary-orange);
}

#sort-select:focus {
  outline: none;
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

#sort-select option {
  padding: 12px 16px;
  font-size: 0.9rem;
  background-color: white !important;
  color: #1f2937 !important;
}

/* iOS/Safari 다크모드 대응 */
@media (prefers-color-scheme: dark) {
  #sort-select {
    background-color: white !important;
    color: #1f2937 !important;
  }
  #sort-select option {
    background-color: white !important;
    color: #1f2937 !important;
  }
}

@media (max-width: 768px) {
  #sort-select {
    width: 100%;
    padding: 10px 36px 10px 14px;
    font-size: 0.85rem;
    min-width: unset;
  }
}


/* ============================================
   시간대별 추천 코스 섹션
   ============================================ */
#time-recommendation-section {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  padding: 2rem 0;
  border-bottom: 1px solid rgba(255, 107, 53, 0.1);
}

.time-rec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.time-rec-message {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  border-left: 4px solid var(--primary-orange);
}

.time-rec-courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.time-rec-course-card {
  display: flex;
  gap: 1rem;
  background: white;
  border-radius: 14px;
  padding: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.time-rec-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.time-rec-course-card img {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

/* 안전 경고 박스 */
.safety-warning-box {
  margin-top: 1rem;
  padding: 1rem;
  background: #fef2f2;
  border-radius: 12px;
  border-left: 4px solid #ef4444;
}

.safety-warning-box p {
  margin: 0;
  color: #dc2626;
  font-weight: 500;
  font-size: 0.9rem;
}

/* 아침 러닝 추천 박스 */
.morning-recommendation-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 16px;
  padding: 1.25rem;
  margin-top: 1rem;
}

.morning-recommendation-box h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #92400e;
  margin: 0 0 0.75rem 0;
}

.morning-recommendation-box p {
  margin: 0 0 1rem 0;
  color: #78350f;
  font-size: 0.9rem;
  line-height: 1.6;
}

.morning-course-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  text-decoration: none;
  color: #92400e;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.2s;
  margin: 0.25rem;
}

.morning-course-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #fffbeb;
}

/* 안전도 배지 */
.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.8rem;
}

.safety-badge.high {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.safety-badge.medium {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
}

.safety-badge.low {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

/* 시간대별 테마 색상 */
.time-theme-dawn { --time-color: #f472b6; --time-bg: #fdf2f8; }
.time-theme-morning { --time-color: #fb923c; --time-bg: #fff7ed; }
.time-theme-afternoon { --time-color: #38bdf8; --time-bg: #f0f9ff; }
.time-theme-evening { --time-color: #f97316; --time-bg: #fff7ed; }
.time-theme-night { --time-color: #818cf8; --time-bg: #eef2ff; }

/* 모바일 반응형 */
@media (max-width: 768px) {
  #time-recommendation-section {
    padding: 1.5rem 0;
  }
  
  .time-rec-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .time-rec-courses {
    grid-template-columns: 1fr;
  }
  
  .time-rec-course-card {
    padding: 0.875rem;
  }
  
  .time-rec-course-card img {
    width: 70px;
    height: 70px;
  }
}
