/* ==========================================================================
   장날 (JANGNAL) - 산뜻한 프레시 마켓 디자인 시스템
   ========================================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800&display=swap');

:root {
  /* Fresh Emerald & Citrus Palette */
  --primary: #10B981;
  --primary-dark: #059669;
  --primary-light: #34D399;
  --primary-subtle: #ECFDF5;
  --primary-glow: rgba(16, 185, 129, 0.25);

  --accent-orange: #F97316;
  --accent-orange-light: #FFEDD5;
  --accent-amber: #F59E0B;
  --accent-blue: #3B82F6;
  --accent-purple: #8B5CF6;

  /* Clean Background & Surfaces */
  --bg-app: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FCFDFE;
  --bg-glass: rgba(255, 255, 255, 0.85);

  /* Typography Colors */
  --text-main: #0F172A;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-on-primary: #FFFFFF;

  /* Borders & Shadows */
  --border-light: #E2E8F0;
  --border-focus: #10B981;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.35);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Font */
  --font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-brand: 'Outfit', sans-serif;
}

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

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
}

/* ────────────────────────────────────────────────────────────
   1. 헤더 (Header & Navigation)
   ──────────────────────────────────────────────────────────── */
.app-header {
  height: 68px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.brand-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #10B981, #059669);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.35);
  transition: transform 0.2s ease;
}

.brand-wrapper:hover .brand-icon {
  transform: scale(1.06) rotate(-4deg);
}

.brand-title-area {
  display: flex;
  flex-direction: column;
}

.brand-logo-text {
  font-family: var(--font-brand);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(120deg, #0F172A, #059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  background: var(--accent-orange-light);
  color: var(--accent-orange);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  -webkit-text-fill-color: var(--accent-orange);
}

.brand-subtext {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

/* 오늘 장날 실시간 티커 */
.today-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-subtle);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-dark);
}

.ticker-pulse {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

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

/* 검색창 */
.search-container {
  position: relative;
  width: 280px;
}

.search-input {
  width: 100%;
  height: 40px;
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 0 16px 0 38px;
  font-size: 13.5px;
  color: var(--text-main);
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-subtle);
  pointer-events: none;
}

/* 모바일 뷰 스위치 (목록 vs 지도) */
.view-mode-toggle {
  display: none;
  background: #E2E8F0;
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
}

.view-mode-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.view-mode-btn.active {
  background: #FFFFFF;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
}

/* ────────────────────────────────────────────────────────────
   2. 퀵 필터 바 (Quick Filter Chips)
   ──────────────────────────────────────────────────────────── */
.filter-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--border-light);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.chip-btn {
  border: 1px solid var(--border-light);
  background: #FFFFFF;
  color: var(--text-main);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  user-select: none;
}

.chip-btn:hover {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.chip-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 10px var(--primary-glow);
}

.chip-btn.active-orange {
  background: linear-gradient(135deg, var(--accent-orange), #EA580C);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.35);
}

.chip-divider {
  width: 1px;
  height: 22px;
  background: var(--border-light);
  margin: 0 4px;
}

/* ────────────────────────────────────────────────────────────
   3. 메인 콘텐츠 스플릿 레이아웃
   ──────────────────────────────────────────────────────────── */
.main-workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* 좌측 사이드바 (리스트 & 큐레이션) */
.sidebar-panel {
  width: 480px;
  height: 100%;
  background: var(--bg-app);
  border-right: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 10;
  flex-shrink: 0;
}

/* 사이드바 상단 통계 카드 */
.today-summary-banner {
  margin: 16px 16px 8px 16px;
  background: linear-gradient(135deg, #ECFDF5 0%, #D1FAE5 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
}

.today-summary-banner::after {
  content: "🍊";
  position: absolute;
  right: 14px;
  bottom: 8px;
  font-size: 42px;
  opacity: 0.25;
  pointer-events: none;
}

.summary-headline {
  font-size: 15px;
  font-weight: 800;
  color: #065F46;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.summary-subtext {
  font-size: 12.5px;
  color: #047857;
  line-height: 1.4;
}

.summary-stats-grid {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.stat-pill {
  background: rgba(255, 255, 255, 0.85);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  color: #065F46;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* 시장 카드 리스트 컨테이너 */
.market-list-container {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* 시장 개별 카드 */
.market-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.market-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.market-card.today-open {
  border-color: #34D399;
  background: linear-gradient(to bottom, #FFFFFF, #F0FDF4);
}

.market-card.selected {
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 2px var(--primary-glow), var(--shadow-lg);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.market-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.cycle-badge {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.cycle-badge.today {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(249, 115, 22, 0.4);
}

.cycle-badge.regular {
  background: #F1F5F9;
  color: var(--text-muted);
}

.market-region {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 12px;
}

/* 먹거리 하이라이트 칩 */
.highlights-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.food-chip {
  background: #FFF7ED;
  color: #C2410C;
  border: 1px solid #FFEDD5;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  font-size: 12.5px;
  color: var(--text-muted);
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.meta-tag {
  font-weight: 600;
  color: var(--primary-dark);
}

/* ────────────────────────────────────────────────────────────
   4. 구글 애드센스 시뮬레이션 배너 (비즈니스 모델 확인용)
   ──────────────────────────────────────────────────────────── */
.adsense-slot-card {
  background: #FAFAF9;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  transition: background 0.2s;
}

.adsense-slot-card:hover {
  background: #F5F5F4;
}

.ad-badge {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 9px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 0.5px;
}

.ad-content {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
  width: 100%;
}

.ad-icon {
  width: 44px;
  height: 44px;
  background: #FEF3C7;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.ad-text-area {
  flex: 1;
}

.ad-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1E293B;
  margin-bottom: 2px;
}

.ad-desc {
  font-size: 11.5px;
  color: #64748B;
  line-height: 1.3;
}

.ad-action-btn {
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

/* ────────────────────────────────────────────────────────────
   5. 우측 지도 컨테이너 (Leaflet Map)
   ──────────────────────────────────────────────────────────── */
.map-panel {
  flex: 1;
  height: 100%;
  position: relative;
  background: #E2E8F0;
}

#map {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* 지도 위 플로팅 컨트롤 */
.map-floating-controls {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floating-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 10px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.floating-btn:hover {
  background: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--primary-dark);
}

/* 커스텀 마커 스타일 */
.custom-map-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.custom-map-marker:hover {
  transform: scale(1.18);
  z-index: 9999 !important;
}

.marker-pill {
  background: #FFFFFF;
  border: 2px solid var(--primary);
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}

.marker-pill.today-open {
  background: linear-gradient(135deg, #F97316, #EA580C);
  border-color: #FFFFFF;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(249, 115, 22, 0.45);
  animation: marker-bounce 2s infinite ease-in-out;
}

@keyframes marker-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* ────────────────────────────────────────────────────────────
   6. 시장 상세 모달 (Modal / Drawer)
   ──────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  padding: 20px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  width: 100%;
  max-width: 580px;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: scale(0.94) translateY(10px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.modal-overlay.open .modal-card {
  transform: scale(1) translateY(0);
}

.modal-header-hero {
  background: linear-gradient(135deg, #059669, #10B981);
  color: #FFFFFF;
  padding: 28px 24px;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  border-radius: 50%;
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.4);
}

.modal-badge-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-cycle-tag {
  background: #FEF3C7;
  color: #B45309;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.modal-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
}

.modal-address {
  font-size: 13.5px;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 4px;
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-section-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: #F8FAFC;
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
}

.info-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-main);
}

.modal-description {
  font-size: 14px;
  line-height: 1.6;
  color: #334155;
  background: #FDFBF7;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* 쿠팡 파트너스 추천 위젯 */
.coupang-partner-box {
  background: linear-gradient(135deg, #FFF7ED, #FFEDD5);
  border: 1.5px solid #FDBA74;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.coupang-badge {
  font-size: 10px;
  font-weight: 800;
  color: #C2410C;
  background: rgba(255, 255, 255, 0.7);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 4px;
}

.coupang-title {
  font-size: 13px;
  font-weight: 800;
  color: #9A3412;
}

.coupang-desc {
  font-size: 11.5px;
  color: #C2410C;
}

.coupang-btn {
  background: #EA580C;
  color: #FFFFFF;
  border: none;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(234, 88, 12, 0.3);
}

/* 모달 하단 길찾기 버튼 */
.modal-footer {
  display: flex;
  gap: 10px;
  padding-top: 8px;
}

.nav-btn {
  flex: 1;
  height: 46px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
}

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

.nav-btn.kakao:hover {
  background: #FDD835;
}

.nav-btn.naver {
  background: #03C75A;
  color: #FFFFFF;
}

.nav-btn.naver:hover {
  background: #02B350;
}

/* ────────────────────────────────────────────────────────────
   7. 모바일 반응형 처리
   ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .app-header {
    padding: 0 16px;
    height: 60px;
  }

  .today-ticker {
    display: none; /* 모바일 헤더 축소 */
  }

  .search-container {
    width: 170px;
  }

  .view-mode-toggle {
    display: flex;
  }

  .main-workspace {
    position: relative;
  }

  .sidebar-panel {
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: 20;
    transition: transform 0.25s ease;
  }

  .map-panel {
    width: 100%;
    position: absolute;
    inset: 0;
    z-index: 10;
  }

  /* 모바일 토글 상태에 따른 뷰 전환 */
  .view-map-active .sidebar-panel {
    transform: translateX(-100%);
    pointer-events: none;
  }

  .view-map-active .map-panel {
    z-index: 30;
  }
}

/* ────────────────────────────────────────────────────────────
   8. 서브페이지 공통 스타일 (Subpage & Article Layout)
   ──────────────────────────────────────────────────────────── */
body.subpage-body {
  height: auto;
  min-height: 100vh;
  overflow-y: auto;
  background-color: #F8FAFC;
}

.subnav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all 0.15s;
}

.subnav-link:hover {
  background: #F1F5F9;
  color: var(--primary-dark);
}

.article-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 20px 80px 20px;
}

.breadcrumb-bar {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 20px;
}

.breadcrumb-bar a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.breadcrumb-bar a:hover {
  color: var(--primary-dark);
}

.article-header {
  margin-bottom: 28px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.cycle-pill-lg {
  background: linear-gradient(135deg, #F97316, #EA580C);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
}

.tag-pill-lg {
  background: var(--primary-subtle);
  color: var(--primary-dark);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-weight: 700;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
}

.region-pill-lg {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.article-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.article-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ────────────────────────────────────────────────────────────
   9. 구글 애드센스 아티클 광고 박스
   ──────────────────────────────────────────────────────────── */
.adsense-article-slot {
  margin: 32px 0;
  background: #FAFAFA;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
}

.ad-label {
  font-size: 10px;
  font-weight: 700;
  color: #94A3B8;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.ad-mock-box {
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #F1F5F9;
  border-radius: var(--radius-sm);
  padding: 20px;
}

.ad-placeholder-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #64748B;
  font-size: 13px;
  font-weight: 600;
}

/* ────────────────────────────────────────────────────────────
   10. 아티클 섹션 및 스펙 카드
   ──────────────────────────────────────────────────────────── */
.quick-spec-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}

.spec-heading {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 16px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.spec-box {
  background: #F8FAFC;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.spec-k {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.spec-v {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
}

.article-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}

.section-paragraph {
  font-size: 15.5px;
  line-height: 1.75;
  color: #334155;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.food-highlight-card {
  background: #FFFFFF;
  border: 1px solid #FFEDD5;
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: 0 2px 4px rgba(249, 115, 22, 0.05);
}

.food-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #C2410C;
  margin-bottom: 6px;
}

.food-card-desc {
  font-size: 13px;
  color: #64748B;
  line-height: 1.45;
}

.tip-callout-box {
  background: #EFF6FF;
  border-left: 4px solid var(--accent-blue);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 16px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.callout-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.callout-content {
  font-size: 14.5px;
  line-height: 1.6;
  color: #1E3A8A;
}

.travel-course-box {
  background: linear-gradient(135deg, #F0FDF4, #ECFDF5);
  border: 1.5px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 14px;
}

.course-badge {
  display: inline-block;
  background: var(--primary-dark);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.course-flow {
  font-size: 15px;
  font-weight: 700;
  color: #065F46;
  line-height: 1.5;
}

.nav-action-area {
  display: flex;
  gap: 12px;
  margin: 32px 0;
  flex-wrap: wrap;
}

/* ────────────────────────────────────────────────────────────
   11. 장날 캘린더 그리드 스타일
   ──────────────────────────────────────────────────────────── */
.calendar-cycle-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
}

.cycle-group-card {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.cycle-card-header {
  background: #F8FAFC;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cycle-badge-big {
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.cycle-dates {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.cycle-market-list {
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.cycle-market-item {
  font-size: 14px;
  color: var(--text-main);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: #F8FAFC;
  transition: all 0.15s;
  display: block;
}

.cycle-market-item:hover {
  background: #ECFDF5;
  color: var(--primary-dark);
}

/* ────────────────────────────────────────────────────────────
   12. 정적 푸터 (Footer)
   ──────────────────────────────────────────────────────────── */
.app-footer {
  background: #0F172A;
  color: #94A3B8;
  padding: 50px 24px 40px 24px;
  border-top: 1px solid #1E293B;
  flex-shrink: 0;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-col-main {
  max-width: 420px;
}

.footer-brand {
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.footer-text {
  font-size: 13px;
  line-height: 1.6;
  color: #94A3B8;
  margin-bottom: 16px;
}

.footer-copy {
  font-size: 12px;
  color: #64748B;
}

.footer-links-grid {
  display: flex;
  gap: 60px;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-heading {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.footer-links-col a {
  font-size: 13px;
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links-col a:hover {
  color: #10B981;
}

