/*
 * 전국 문화 축제 알리미 (Festival ON)
 * Modern Design System - Glassmorphism, Aurora Glow, Responsive View Switcher, Scroll Animations
 */

:root {
  --font-main: 'Noto Sans KR', sans-serif;
  --font-accent: 'Outfit', sans-serif;
  
  /* 테마 디폴트 (봄 - Cherry Blossom) */
  --primary-color: #ff5e8e;
  --primary-gradient: linear-gradient(135deg, #ff5e8e 0%, #ff8fa3 100%);
  --secondary-color: #ffb3c6;
  --bg-gradient: linear-gradient(135deg, #fff0f5 0%, #ffe3ec 100%);
  --aurora-1: rgba(255, 94, 142, 0.4);
  --aurora-2: rgba(255, 179, 198, 0.5);
  --aurora-3: rgba(112, 224, 0, 0.3);
  --accent-color: #70e000;
  
  --text-primary: #1e1b2e;
  --text-secondary: #5a546d;
  --text-muted: #8e879f;
  
  --card-glass-bg: rgba(255, 255, 255, 0.82);
  --card-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 8px 32px 0 rgba(255, 94, 142, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 계절별 파스텔 및 네온 테마 변수 */
body.spring {
  --primary-color: #ff5e8e;
  --primary-gradient: linear-gradient(135deg, #ff5e8e 0%, #ff8fa3 100%);
  --secondary-color: #ffb3c6;
  --bg-gradient: linear-gradient(135deg, #fff0f5 0%, #ffe5ed 100%);
  --aurora-1: rgba(255, 94, 142, 0.35);
  --aurora-2: rgba(255, 179, 198, 0.4);
  --aurora-3: rgba(112, 224, 0, 0.25);
  --accent-color: #70e000;
  --glass-shadow: 0 8px 32px 0 rgba(255, 94, 142, 0.12);
}

body.summer {
  --primary-color: #0070f3;
  --primary-gradient: linear-gradient(135deg, #0070f3 0%, #00c6ff 100%);
  --secondary-color: #79c0ff;
  --bg-gradient: linear-gradient(135deg, #e6f4ff 0%, #d0ebff 100%);
  --aurora-1: rgba(0, 112, 243, 0.35);
  --aurora-2: rgba(0, 198, 255, 0.4);
  --aurora-3: rgba(255, 183, 3, 0.3);
  --accent-color: #ffb703;
  --glass-shadow: 0 8px 32px 0 rgba(0, 112, 243, 0.12);
}

body.autumn {
  --primary-color: #e65100;
  --primary-gradient: linear-gradient(135deg, #e65100 0%, #ff8f00 100%);
  --secondary-color: #ffb74d;
  --bg-gradient: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);
  --aurora-1: rgba(230, 81, 0, 0.35);
  --aurora-2: rgba(255, 143, 0, 0.4);
  --aurora-3: rgba(139, 195, 74, 0.3);
  --accent-color: #8bc34a;
  --glass-shadow: 0 8px 32px 0 rgba(230, 81, 0, 0.12);
}

body.winter {
  --primary-color: #7b1fa2;
  --primary-gradient: linear-gradient(135deg, #7b1fa2 0%, #ab47bc 100%);
  --secondary-color: #e1bee7;
  --bg-gradient: linear-gradient(135deg, #f3e5f5 0%, #ea80fc 100%);
  --aurora-1: rgba(123, 31, 162, 0.35);
  --aurora-2: rgba(171, 71, 188, 0.4);
  --aurora-3: rgba(76, 201, 240, 0.3);
  --accent-color: #4cc9f0;
  --glass-shadow: 0 8px 32px 0 rgba(123, 31, 162, 0.12);
}

/* 글로벌 Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: var(--font-main);
  background: var(--bg-gradient);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
}

/* 오로라 앰비언트 파티클 배경 */
.aurora-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.75;
  animation: auroraMove 18s ease-in-out infinite alternate;
}

.blob-1 {
  width: 380px;
  height: 380px;
  top: -100px;
  left: -80px;
  background: var(--aurora-1);
}

.blob-2 {
  width: 420px;
  height: 420px;
  bottom: -120px;
  right: -100px;
  background: var(--aurora-2);
  animation-delay: -6s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  top: 40%;
  left: 30%;
  background: var(--aurora-3);
  animation-delay: -12s;
}

@keyframes auroraMove {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, 40px) scale(1.15); }
  100% { transform: translate(-40px, 80px) scale(0.95); }
}

/* 메인 래퍼 */
.app-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 90px 16px; /* 모바일 하단 플로팅 버튼 여백 */
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 상단 헤더 & 히어로 슬로건 */
.app-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-icon {
  font-size: 26px;
  color: var(--primary-color);
  animation: floatBounce 3s ease-in-out infinite;
}

@keyframes floatBounce {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-4px) rotate(8deg); }
}

.brand-text .main-title {
  font-family: var(--font-accent);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  display: block;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-text .sub-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.season-badge {
  background: var(--card-glass-bg);
  border: 1px solid var(--card-border);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-color);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  gap: 6px;
}

.season-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.hero-slogan h2 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.5px;
  color: var(--text-primary);
}

.hero-slogan h2 span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* 퀵 카테고리 태그 바 */
.category-nav {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
}

.category-nav::-webkit-scrollbar {
  display: none;
}

.category-scroll {
  display: flex;
  gap: 8px;
  width: max-content;
}

.cat-chip {
  background: var(--card-glass-bg);
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  backdrop-filter: blur(10px);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cat-chip i {
  font-size: 12px;
}

.cat-chip:hover, .cat-chip.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 94, 142, 0.3);
}

/* 월 선택 가로 휠 내비 */
.month-nav {
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -16px;
  padding: 0 16px;
}

.month-nav::-webkit-scrollbar {
  display: none;
}

.month-scroll-container {
  display: flex;
  gap: 8px;
}

.month-btn {
  flex: 0 0 62px;
  height: 62px;
  border-radius: 16px;
  background: var(--card-glass-bg);
  border: 1px solid var(--card-border);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-fast);
}

.month-btn .num {
  font-family: var(--font-accent);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.month-btn .lbl {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.month-btn.active {
  background: var(--primary-gradient);
  color: #ffffff;
  border-color: transparent;
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 94, 142, 0.35);
}

.month-btn.active .lbl {
  color: rgba(255, 255, 255, 0.9);
}

/* 7일간 날씨 위젯 */
.weather-widget {
  background: var(--card-glass-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  backdrop-filter: blur(14px);
  box-shadow: var(--glass-shadow);
}

.weather-summary-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.weather-summary-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.weather-summary-days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.weather-summary-days::-webkit-scrollbar {
  display: none;
}

.weather-day-col {
  flex: 0 0 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 8px 4px;
  border-radius: 12px;
  font-size: 10px;
  gap: 4px;
}

.weather-day-col .day-lbl {
  font-weight: 700;
  color: var(--text-primary);
}

.weather-day-col i {
  font-size: 15px;
  color: var(--primary-color);
}

.weather-day-col .temp-val {
  font-weight: 800;
  color: var(--text-secondary);
}

/* 메인 컨테이너 및 목록/지도 Panel */
.main-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.view-panel {
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

/* 모바일 전용 뷰 스위칭 (JS 토글) */
@media (max-width: 768px) {
  .main-container.view-list-active .panel-map {
    display: none;
  }
  
  .main-container.view-map-active .panel-list {
    display: none;
  }
  
  .panel-map {
    height: 480px;
  }
}

/* panel-list 패널 */
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.panel-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
}

.count-pill {
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 축제 그리드 & 감성 카드 (3D Tilt & Fade In Up) */
.festivals-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* 스크롤 시 Fade-In-Up 애니메이션 클래스 */
.festival-card {
  background: var(--card-glass-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(12px);
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), opacity 0.4s ease;
  will-change: transform, opacity;
  opacity: 0;
  transform: translateY(24px);
}

.festival-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.festival-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 36px 0 rgba(0, 0, 0, 0.12);
  border-color: rgba(255, 255, 255, 0.9);
}

.festival-card.ended {
  opacity: 0.55;
  filter: grayscale(40%);
}

/* 카드 상단 16:9 감성 배너 이미지 */
.card-thumb {
  position: relative;
  width: 100%;
  height: 160px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.card-thumb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.65) 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 14px;
}

.status-tag {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.status-tag.ongoing {
  background: rgba(255, 94, 142, 0.9);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(255, 94, 142, 0.6);
  animation: badgeGlow 2s infinite;
}

@keyframes badgeGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(255, 94, 142, 0.5); }
  50% { box-shadow: 0 0 18px rgba(255, 94, 142, 0.9); }
}

.status-tag.upcoming {
  background: rgba(112, 224, 0, 0.9);
  color: #ffffff;
}

.status-tag.ended {
  background: rgba(100, 100, 100, 0.8);
  color: #ffffff;
}

.dday-badge {
  background: rgba(0, 0, 0, 0.65);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-accent);
  backdrop-filter: blur(8px);
}

/* 카드 본문 파트 */
.card-body {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(0, 0, 0, 0.08);
  padding-top: 10px;
  margin-top: 4px;
}

.card-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 5px;
}

.card-location {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* 지도 영역 카드 패널 */
.map-card-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--card-border);
}

#leafletMap {
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.map-overlay-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--card-glass-bg);
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  backdrop-filter: blur(10px);
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Leaflet 커스텀 펄스 마커 링 */
.leaflet-marker-icon.custom-pulse-marker {
  background: transparent;
  border: none;
}

.pulse-marker-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary-color);
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--primary-color);
  position: relative;
}

.pulse-marker-pin::after {
  content: '';
  position: absolute;
  top: -6px;
  left: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: markerPulse 2s infinite;
}

.pulse-marker-pin.ended {
  background: #9e9e9e;
  box-shadow: none;
}

.pulse-marker-pin.ended::after {
  display: none;
}

@keyframes markerPulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* 하단 모바일 캡슐 플로팅 뷰 스위처 (모바일 1등 인터랙션) */
.floating-switcher-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9000;
}

.switcher-btn {
  background: #1e1b2e;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 12px 24px;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  transition: all var(--transition-normal);
}

.switcher-btn:active {
  transform: scale(0.94);
}

.switcher-btn .icon-list {
  display: none;
}

/* 지도 뷰 활성화 상태일 때 스위처 인디케이터 변경 */
.main-container.view-map-active ~ .floating-switcher-bar .icon-map {
  display: none;
}
.main-container.view-map-active ~ .floating-switcher-bar .icon-list {
  display: inline-block;
}

/* 하단 바텀시트 / 디테일 모달 */
.bottom-sheet {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 10000;
  pointer-events: none;
  visibility: hidden;
  transition: visibility 0.3s;
}

.bottom-sheet.show {
  pointer-events: auto;
  visibility: visible;
}

.sheet-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(4px);
}

.bottom-sheet.show .sheet-overlay {
  opacity: 1;
}

.sheet-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-height: 85%;
  background: #ffffff;
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
}

.bottom-sheet.show .sheet-content {
  transform: translateY(0);
}

.sheet-drag-handle {
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.handle-bar {
  width: 42px;
  height: 5px;
  background: #ddd;
  border-radius: 3px;
}

.sheet-body {
  overflow-y: auto;
  padding: 0 20px 30px 20px;
}

.detail-hero-banner {
  width: 100%;
  height: 180px;
  background-size: cover;
  background-position: center;
  border-radius: 16px;
  margin-bottom: 16px;
}

.detail-header {
  margin-bottom: 16px;
}

.detail-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.detail-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-tag {
  background: #f1f3f5;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}

.detail-action-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 16px 0;
}

.act-btn {
  padding: 12px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: none;
}

.act-btn.primary {
  background: var(--primary-gradient);
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(255, 94, 142, 0.3);
}

.act-btn.secondary {
  background: #f1f3f5;
  color: #333;
}

.detail-desc-box {
  background: #f8f9fa;
  padding: 16px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* 애드센스 광고 박스 */
.adsense-banner {
  max-width: 1200px;
  margin: 20px auto;
  text-align: center;
}

.ad-tag {
  font-size: 9px;
  color: #aaa;
  letter-spacing: 1px;
}

.ad-box {
  background: rgba(0, 0, 0, 0.04);
  border: 1px dashed rgba(0, 0, 0, 0.12);
  padding: 16px;
  border-radius: 12px;
  font-size: 13px;
  color: #666;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* 데스크톱 모드 지원 (반응형 2컬럼 Grid & 3열 카드) */
@media (min-width: 769px) {
  .app-wrapper {
    padding-bottom: 40px;
  }

  .floating-switcher-bar {
    display: none; /* PC에서는 스위처 숨김 */
  }

  .hero-slogan h2 {
    font-size: 26px;
  }

  .main-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
    height: 680px;
  }

  .main-container.view-list-active .panel-map,
  .main-container.view-map-active .panel-list {
    display: block !important;
  }

  .panel-list {
    height: 100%;
    overflow-y: auto;
    padding-right: 6px;
  }

  .festivals-grid {
    grid-template-columns: 1fr;
  }

  .panel-map {
    height: 100%;
  }

  .map-card-wrapper {
    min-height: 100%;
  }

  .bottom-sheet {
    z-index: 10000;
  }

  .sheet-content {
    max-width: 520px;
    left: 50%;
    bottom: 50%;
    transform: translate(-50%, 50%) scale(0.9);
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  }

  .bottom-sheet.show .sheet-content {
    transform: translate(-50%, 50%) scale(1);
  }
}

@media (min-width: 1024px) {
  .festivals-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==============================================================================
 * 대동맛지도 X 축제온 상호 연동 디자인 시스템 (Family Service Integration)
 * ============================================================================== */

.header-right-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-family-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid #2563eb;
  padding: 6px 13px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 800;
  color: #1d4ed8;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
  backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.brand-family-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.brand-family-btn i {
  font-size: 9px;
  opacity: 0.8;
}

/* 지역 연동 배너 */
.region-filter-banner {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(99, 102, 241, 0.12) 100%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #1e3a8a;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.08);
  animation: fadeInDown 0.3s ease;
}

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

.region-filter-content {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.region-filter-content i {
  color: #2563eb;
  font-size: 14px;
}

.region-filter-content strong {
  color: #1d4ed8;
  font-weight: 800;
}

.reset-region-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: #2563eb;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.reset-region-link:hover {
  background: #2563eb;
  color: #ffffff;
}

/* 바텀시트 내 대동맛지도 맛지도 버튼 */
.act-btn.food-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff !important;
  font-weight: 800;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.act-btn.food-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.38);
}

/* 푸터 패밀리 서비스 영역 */
.app-footer {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-copy {
  font-weight: 500;
}

.footer-family {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.footer-family .family-lbl {
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-family .family-link {
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 8px;
  transition: all 0.2s;
}

.footer-family .family-link:hover {
  background: #2563eb;
  color: #ffffff;
}

/* ==============================================================================
 * 구글 애드센스 (Google AdSense) 고효율 반응형 광고 스타일링
 * - PC & 모바일 맞춤 레이아웃
 * - CLS(레이아웃 흔들림) 방지 min-height 적용
 * - 글래스모피즘 및 미체움(unfilled) 자동 최적화
 * ============================================================================== */
.ads-wrapper {
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 18px 0;
  clear: both;
}

.ads-box {
  width: 100%;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md, 16px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  padding: 10px 8px 12px 8px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
  min-height: 100px;
  box-sizing: border-box;
}

.ads-box:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
}

.ads-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted, #94a3b8);
  letter-spacing: 1px;
  margin-bottom: 6px;
  text-transform: uppercase;
  user-select: none;
}

.ads-box ins.adsbygoogle {
  display: block;
  margin: 0 auto;
  min-height: 90px;
}

/* 상단 골든존 배너 */
.ads-wrapper.ads-top {
  margin: 16px 0 20px 0;
}

/* 하단 와이드 배너 */
.ads-wrapper.ads-bottom {
  margin: 28px 0 16px 0;
}

/* 미체움(Unfilled) 광고 처리 - 빈 공간 생김 방지 */
ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* 모바일 화면 최적화 */
@media (max-width: 768px) {
  .ads-wrapper {
    margin: 14px 0;
  }
  .ads-box {
    padding: 8px 4px 10px 4px;
    border-radius: 14px;
    min-height: 90px;
  }
  .ads-box ins.adsbygoogle {
    min-height: 50px;
  }
}


