:root {
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", system-ui, sans-serif;
  color: #17233d;
  background: #eef5ff;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }

.page-shell {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 20px 32px;
}

.hero {
  margin-bottom: 20px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 640px;
  margin: 0 auto;
}

.brand-character {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 4px 14px #2768c828;
  border: 3px solid #fff;
  transition: transform .2s ease, box-shadow .2s ease;
  cursor: pointer;
}

.brand-character:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px #2768c845;
}

.brand-info {
  text-align: left;
}

.title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -.05em;
  color: #172b4d;
  line-height: 1.15;
}

.brand-meaning {
  font-size: .78rem;
  font-weight: 700;
  color: #2768c8;
  background: #e1effe;
  border: 1px solid #c7dffc;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: -.01em;
  white-space: nowrap;
}

.intro {
  color: #56647d;
  margin: 4px 0 0;
  line-height: 1.45;
  font-size: .88rem;
  word-break: keep-all;
}

.search-card {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  background: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: 0 8px 24px #477bc215;
}

.field-group, label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #51617c;
  font-size: .8rem;
  font-weight: 700;
}

.field-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

.field-label {
  color: #51617c;
  font-size: .8rem;
  font-weight: 700;
  margin: 0;
}

.recommend-helper-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  color: #3b6299;
  text-decoration: none;
  background: #f0f6ff;
  padding: 2px 9px 2px 7px;
  border-radius: 6px;
  border: 1px solid #cde0fc;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.recommend-helper-badge:hover {
  background: #2768c8;
  color: #ffffff;
  border-color: #2768c8;
  box-shadow: 0 3px 10px rgba(39, 104, 200, 0.22);
  transform: translateY(-1px);
}

.recommend-helper-badge .helper-icon {
  font-size: 0.84rem;
  line-height: 1;
}

.recommend-helper-badge .helper-text {
  font-weight: 500;
  color: #627b9f;
  transition: color 0.18s ease;
}

.recommend-helper-badge:hover .helper-text {
  color: rgba(255, 255, 255, 0.88);
}

.recommend-helper-badge .helper-highlight {
  font-weight: 800;
  color: #1a56b2;
  transition: color 0.18s ease;
}

.recommend-helper-badge:hover .helper-highlight {
  color: #ffffff;
}

.recommend-helper-badge .helper-arrow {
  font-weight: 900;
  font-size: 0.85rem;
  line-height: 1;
  color: #1a56b2;
  transition: transform 0.18s ease, color 0.18s ease;
}

.recommend-helper-badge:hover .helper-arrow {
  color: #ffffff;
  transform: translateX(2px);
}

@media (max-width: 480px) {
  .recommend-helper-badge {
    font-size: 0.71rem;
    padding: 2px 6px;
    gap: 3px;
  }
  .recommend-helper-badge .helper-icon {
    font-size: 0.78rem;
  }
}

@media (max-width: 360px) {
  .recommend-helper-badge {
    font-size: 0.65rem;
    padding: 1px 4px;
    gap: 2px;
  }
}

select, input, button {
  border-radius: 8px;
  font: inherit;
}

select, input {
  padding: 10px 12px;
  border: 1px solid #d9e3f2;
  color: #17233d;
  background: #fbfdff;
  font-size: .9rem;
}

button {
  align-self: end;
  border: 0;
  background: #2768c8;
  color: white;
  font-weight: 700;
  padding: 10px 20px;
  font-size: .9rem;
  cursor: pointer;
  transition: background .15s ease;
}

button:hover { background: #1e57aa; }
button:disabled { opacity: .65; cursor: wait; }

.map-panel {
  margin-top: 14px;
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 8px 24px #477bc215;
}

#map {
  width: 100%;
  height: 300px;
  border-radius: 10px;
  overflow: hidden;
  background: #e9f1fb;
}

.map-hint {
  margin: 6px 4px 2px;
  color: #71809a;
  font-size: .75rem;
  text-align: center;
}

.status {
  text-align: center;
  min-height: 20px;
  color: #64718a;
  margin: 14px 0 8px;
  font-size: .88rem;
}

.status.error { color: #bd3149; font-weight: 600; }

.forecast-group { margin-top: 16px; }

.group-title {
  margin: 0 0 8px;
  color: #355b96;
  font-size: .92rem;
  font-weight: 700;
}

.forecast {
  display: grid;
  gap: 10px;
}

.featured-forecast {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.extended-forecast {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.weather-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 12px;
  text-align: center;
  box-shadow: 0 4px 16px #477bc110;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.weather-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px #477bc125;
  border-color: #bcd4f6;
}

.weather-card.is-expanded {
  grid-column: 1 / -1;
  border-color: #4b89e6;
  box-shadow: 0 10px 26px #477bc125;
}

.packing-btn {
  margin-top: 10px;
  padding: 8px 10px;
  background: #f0f7ff;
  border: 1.5px solid #bcd7fb;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #1d4ed8;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.15s ease;
}

.packing-btn:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
  transform: translateY(-1px);
}

.packing-btn-icon { font-size: 0.88rem; line-height: 1; }
.packing-btn-text { white-space: nowrap; }
.packing-btn-arrow { font-size: 0.85rem; font-weight: 900; transition: transform 0.15s ease; }
.packing-btn:hover .packing-btn-arrow { transform: translateX(3px); }

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.weather-card .day-label {
  color: #5682c8;
  font-size: .75rem;
  font-weight: 800;
  margin: 0;
}

.hourly-badge {
  font-size: .68rem;
  color: #2768c8;
  background: #eef5ff;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 700;
  border: 1px solid #d4e3f8;
  transition: all .15s ease;
}

.weather-card.is-expanded .hourly-badge {
  background: #2768c8;
  color: #fff;
  border-color: #2768c8;
}

.weather-card h2 {
  margin: 5px 0 0;
  font-size: 1.05rem;
  letter-spacing: -.02em;
}

.weather-card.is-friday h2 { color: #12479c; }
.weather-card.is-friday .day-label { color: #1a56b7; }
.weather-card.is-holiday h2 { color: #d92d20; }
.weather-card.is-holiday .day-label { color: #dc2626; }

.holiday-tag {
  display: inline-block;
  font-size: .68rem;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 1px 5px;
  border-radius: 5px;
  margin-left: 4px;
  font-weight: 700;
  vertical-align: middle;
}

.weather-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 6px 0 4px;
}

.weather-icon {
  font-size: 2.85rem;
  line-height: 1.1;
  margin: 4px 0 3px;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  user-select: none;
}

.weather-card:hover .weather-icon {
  transform: scale(1.12);
}

.weather-name {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  max-width: 95%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* 날씨 타입별 테마 뱃지 */
.weather-name.theme-sunny {
  background: #fffbeb;
  color: #b45309;
  border-color: #fde68a;
}

.weather-name.theme-cloudy {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.weather-name.theme-overcast {
  background: #f8fafc;
  color: #475569;
  border-color: #cbd5e1;
}

.weather-name.theme-rain {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  font-weight: 800;
}

.weather-name.theme-snow {
  background: #f0f9ff;
  color: #0284c7;
  border-color: #bae6fd;
  font-weight: 800;
}

/* 온도 영역 (최저 / 최고 시각적 분리 및 온도별 컬러) */
.temperature {
  margin: 9px 0 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.temp-min,
.temp-max {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: baseline;
  line-height: 1;
}

.temp-arrow {
  font-size: 0.72em;
  font-weight: 900;
  margin-right: 1.5px;
  opacity: 0.85;
}

.temp-sep {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 700;
  user-select: none;
}

/* 온도 구간별 다이내믹 컬러 시스템 */
.temp-freezing { color: #0284c7 !important; } /* 0도 이하: 영하 (딥 아이스 블루) */
.temp-cool     { color: #0d9488 !important; } /* 1~14도: 쌀쌀/선선 (틸 청록) */
.temp-pleasant { color: #16a34a !important; } /* 15~19도: 쾌적/싱그러움 (포레스트 그린) */
.temp-mild     { color: #f5b700 !important; } /* 20~25도: 온화/화사함 (비비드 썬샤인 옐로우) */
.temp-warm     { color: #ea580c !important; } /* 26~29도: 따뜻/더움 (선셋 오렌지) */
.temp-hot      { color: #dc2626 !important; } /* 30도 이상: 무더위/폭염 (비비드 레드) */
.temp-default  { color: #1e293b; }
.temp-pending  { color: #94a3b8; font-size: 0.85rem; font-weight: 600; }

dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  border-top: 1px solid #edf3fc;
  padding-top: 8px;
}

dt {
  color: #8491a7;
  font-size: .68rem;
  white-space: nowrap;
}

dd {
  margin: 2px 0 0;
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
}

/* 바람세기(풍속) 컬러 뱃지 시스템 */
.wind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 1.5px 5px;
  border-radius: 6px;
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* 1. 약함 (0 ~ 3.9 m/s) - 초록색 (안전/쾌적) */
.wind-badge.wind-low,
.h-wind.wind-low {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

/* 2. 약간 강함 (4.0 ~ 7.9 m/s) - 주황색 (주의/팩다운 필수) */
.wind-badge.wind-medium,
.h-wind.wind-medium {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

/* 3. 강풍 (8.0 m/s 이상) - 빨간색 (위험/강풍 경보) */
.wind-badge.wind-high,
.h-wind.wind-high {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-weight: 900;
}

.wind-badge.wind-none {
  color: #94a3b8;
  font-weight: 500;
  background: transparent;
  border: none;
}

/* Extended Forecast (4~7일) 컴팩트 스타일 */
.extended-forecast .weather-card {
  padding: 11px 8px;
  border-radius: 12px;
}

.extended-forecast .weather-card .day-label { font-size: .7rem; }
.extended-forecast .weather-card h2 { font-size: .92rem; }
.extended-forecast .weather-card .weather-icon { font-size: 2.2rem; margin: 3px 0 2px; }
.extended-forecast .weather-card .weather-name { font-size: .72rem; padding: 2px 6px; border-radius: 8px; }
.extended-forecast .temperature { margin: 6px 0 4px; gap: 4px; }
.extended-forecast .temp-min,
.extended-forecast .temp-max { font-size: 1.05rem; }
.extended-forecast .temp-sep { font-size: 0.85rem; }
.extended-forecast dt,
.extended-forecast dd { font-size: .68rem; }
.extended-forecast dl { padding-top: 6px; }
.extended-forecast .holiday-tag { font-size: .6rem; padding: 0 3px; margin-left: 2px; }
.extended-forecast .packing-btn {
  margin-top: 6px;
  padding: 5px 6px;
  font-size: .7rem;
  border-radius: 6px;
}

/* 전년도 데이터 카드 스타일 */
.weather-card.is-history {
  border-color: #d8b4e2;
  background: #faf5fc;
}

.weather-card.is-history .day-label {
  color: #8e44ad;
}

.weather-card.is-history h2 {
  color: #8e44ad;
}

.weather-card.is-history .weather-icon {
  font-size: 1.8rem;
  margin: 8px 0 2px;
}

.weather-card.is-history .weather-name {
  color: #8e44ad;
  font-size: .78rem;
}

.weather-card.is-history .temperature {
  margin: 10px 0;
}

.weather-card.is-history .temperature strong {
  font-size: 1.3rem;
  color: #4a154b;
}

/* 시간별 예보 상세 패널 */
.hourly-panel {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #d5e2f3;
  text-align: left;
}

.hourly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.hourly-title {
  font-size: .82rem;
  font-weight: 800;
  color: #335992;
}

.hourly-close {
  font-size: .74rem;
  color: #62728c;
  cursor: pointer;
  font-weight: 700;
}

.hourly-close:hover { color: #2768c8; }

.hourly-list {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.hourly-item {
  flex: 0 0 62px;
  min-width: 62px;
  background: #f4f8fd;
  border-radius: 10px;
  padding: 8px 3px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: 1px solid #e3eefc;
  text-align: center;
}

.hourly-item.now {
  background: #e7f1ff;
  border-color: #9ac2f8;
}

.hourly-item .h-time { font-size: .68rem; color: #5a6d8b; font-weight: 700; }
.hourly-item .h-icon { font-size: 1.25rem; line-height: 1.2; margin: 1px 0; }
.hourly-item .h-temp { font-size: .88rem; font-weight: 800; color: #17233d; }
.hourly-item .h-pop { font-size: .64rem; color: #2768c8; font-weight: 700; }
.hourly-item .h-pcp { font-size: .62rem; color: #73849f; }
.hourly-item .h-wind {
  font-size: .62rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  margin-top: 1px;
  white-space: nowrap;
}

footer {
  color: #7b879a;
  text-align: center;
  font-size: .72rem;
  margin-top: 24px;
}

@media (min-width: 1100px) {
  .page-shell { max-width: 1180px; padding-top: 28px; }
}

@media (max-width: 760px) {
  .page-shell { padding: 56px 14px 20px; }
  .search-card { grid-template-columns: 1fr; }
  .featured-forecast { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .extended-forecast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #map { height: 260px; }
}

@media (max-width: 540px) {
  .brand-wrapper {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  .brand-info { text-align: center; }
  .title-row { justify-content: center; }
  .featured-forecast { grid-template-columns: 1fr; }
  .extended-forecast { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ==========================================================================
   글로벌 네비게이션 드로어 & 메뉴 버튼 스타일
   ========================================================================== */

.menu-toggle-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.95);
  color: #172b4d;
  border: 1.5px solid #d0dff5;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(39, 104, 200, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
}

.menu-toggle-btn:hover {
  background: #f0f6ff;
  border-color: #2768c8;
  color: #2768c8;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(39, 104, 200, 0.18);
}

.menu-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(39, 104, 200, 0.12);
}

.menu-toggle-btn:focus-visible {
  outline: 2px solid #2768c8;
  outline-offset: 2px;
}

.menu-toggle-btn svg {
  display: block;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.menu-toggle-btn:hover svg {
  transform: scale(1.08);
}

.menu-toggle-label {
  letter-spacing: -0.02em;
}

/* 드로어 오버레이 배경 */
.nav-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

/* 사이드 네비게이션 드로어 본체 */
.nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: #ffffff;
  box-shadow: 6px 0 28px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2001;
  overflow-y: auto;
  overflow-x: hidden;
}

.nav-drawer-overlay.is-open .nav-drawer {
  transform: translateX(0);
}

/* 드로어 상단 헤더 */
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 18px 16px;
  background: #f8fbff;
  border-bottom: 1px solid #e3eefc;
  gap: 12px;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drawer-brand-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #2768c8;
  box-shadow: 0 2px 8px rgba(39, 104, 200, 0.2);
  flex-shrink: 0;
}

.drawer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.drawer-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.drawer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #172b4d;
  letter-spacing: -0.03em;
}

.drawer-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #2768c8;
  background: #e1effe;
  border: 1px solid #c7dffc;
  padding: 2px 6px;
  border-radius: 12px;
}

.drawer-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: -0.01em;
}

.drawer-close-btn {
  background: #ffffff;
  border: 1px solid #d9e3f2;
  color: #51617c;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.drawer-close-btn:hover {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #dc2626;
}

.drawer-close-btn:focus-visible {
  outline: 2px solid #2768c8;
}

/* 드로어 본문 */
.drawer-body {
  padding: 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.drawer-section-title {
  font-size: 0.74rem;
  font-weight: 800;
  color: #8292a8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-left: 4px;
}

.drawer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #e8eef8;
  border-radius: 12px;
  text-decoration: none;
  color: #17233d;
  transition: all 0.2s ease;
  position: relative;
}

.drawer-nav-item:hover {
  background: #f4f8fe;
  border-color: #2768c8;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(39, 104, 200, 0.08);
}

.drawer-nav-item.is-current {
  background: #eef5ff;
  border-color: #2768c8;
  border-left-width: 4px;
}

.nav-item-icon {
  font-size: 1.5rem;
  line-height: 1;
  flex-shrink: 0;
}

.nav-item-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

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

.nav-item-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #172b4d;
}

.drawer-nav-item.is-current .nav-item-title {
  color: #2768c8;
}

.nav-item-active-tag {
  display: none;
  font-size: 0.65rem;
  font-weight: 700;
  background: #2768c8;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 10px;
}

.drawer-nav-item.is-current .nav-item-active-tag {
  display: inline-block;
}

.nav-item-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
  word-break: keep-all;
}

.nav-item-arrow {
  font-size: 1.2rem;
  color: #94a3b8;
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease;
}

.drawer-nav-item:hover .nav-item-arrow {
  color: #2768c8;
  transform: translateX(2px);
}

/* 드로어 내 백패킹 팁 카드 */
.drawer-tip-card {
  margin-top: auto;
  background: #f0f7ff;
  border: 1px solid #cce2fd;
  border-radius: 12px;
  padding: 12px 14px;
}

.tip-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e5bb8;
  margin-bottom: 4px;
}

.tip-card-text {
  margin: 0;
  font-size: 0.75rem;
  color: #475569;
  line-height: 1.45;
  word-break: keep-all;
}

.tip-card-text strong {
  color: #1e5bb8;
}

/* 드로어 하단 푸터 */
.drawer-footer {
  padding: 12px 16px 16px;
  border-top: 1px solid #edf2f9;
  background: #fafcff;
}

.drawer-footer-text {
  margin: 0;
  font-size: 0.7rem;
  color: #8c9ba5;
  text-align: center;
}

/* ==========================================================================
   프로필 사진 확대 모달 (라이트박스) 스타일
   ========================================================================== */

.image-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  cursor: zoom-out;
}

.image-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.image-modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(0.85);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: default;
}

.image-modal-overlay.is-active .image-modal-content {
  transform: scale(1);
}

.image-modal-img {
  width: min(360px, 80vw);
  height: min(360px, 80vw);
  border-radius: 28px;
  object-fit: cover;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5), 0 0 0 4px rgba(255, 255, 255, 0.2);
  border: 3px solid #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.image-modal-img:hover {
  transform: scale(1.02);
}

.image-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ffffff;
  color: #1e293b;
  border: 2px solid #e2e8f0;
  font-size: 1.1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  z-index: 10;
  transition: all 0.15s ease;
  padding: 0;
}

.image-modal-close:hover {
  background: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
  transform: scale(1.1);
}

.image-modal-caption {
  margin-top: 14px;
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 4px;
  user-select: none;
}

.caption-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.caption-desc {
  font-size: 0.8rem;
  color: #cbd5e1;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
/* =========================================================================
   글로벌 공통 푸터 (Global Footer) - AdSense E-E-A-T 규격
   ========================================================================= */
.global-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 48px 20px 32px;
  margin-top: 60px;
  border-top: 1px solid #1e293b;
  font-family: inherit;
}

.footer-container {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.footer-brand-section {
  border-bottom: 1px solid #1e293b;
  padding-bottom: 24px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #3b82f6;
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: -0.02em;
}

.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0;
  max-width: 680px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.6fr;
  gap: 32px;
}

.footer-links-col .footer-col-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.footer-links-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links-col ul li a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.15s ease, padding-left 0.15s ease;
  display: inline-block;
}

.footer-links-col ul li a:hover {
  color: #38bdf8;
  padding-left: 3px;
}

.footer-data-info {
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 10px 0;
}

.footer-data-info strong {
  color: #e2e8f0;
}

.footer-lnt-info {
  font-size: 12px;
  line-height: 1.55;
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 10px 12px;
  border-radius: 8px;
  margin: 0;
}

.footer-bottom-bar {
  border-top: 1px solid #1e293b;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
}

.footer-copyright {
  margin: 0;
  font-weight: 600;
  color: #94a3b8;
}

.footer-disclaimer {
  margin: 0;
  line-height: 1.5;
  color: #64748b;
}

/* =========================================================================
   고품질 가이드 정보 섹션 스타일 (Content Richness Section)
   ========================================================================= */
.guide-rich-section {
  margin: 36px 0 20px;
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 28px 24px;
}

.guide-rich-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-rich-subtitle {
  font-size: 13.5px;
  color: #64748b;
  margin: 0 0 20px 0;
  line-height: 1.5;
}

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

.guide-card-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 18px;
  transition: all 0.2s ease;
}

.guide-card-item:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.08);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.guide-card-icon {
  font-size: 24px;
}

.guide-card-heading {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.guide-card-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.guide-card-desc strong {
  color: #0f172a;
}

/* =========================================================================
   구글 애드센스 규격 광고 슬롯 컨테이너 (AdSense Banner Containers)
   ========================================================================= */
.osol-ad-wrapper {
  max-width: 1080px;
  margin: 24px auto;
  padding: 0 16px;
  box-sizing: border-box;
  text-align: center;
}

.osol-ad-container {
  min-height: 90px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .global-footer {
    padding: 36px 16px 24px;
    margin-top: 40px;
  }
}



/* =========================================================================
   예보 발표 시점 안내 뱃지 스타일 (모바일 및 데스크톱 완벽 지원)
   ========================================================================= */
.forecast-update-container {
  display: flex;
  justify-content: flex-end;
  margin: 12px 0 24px 0;
  width: 100%;
  box-sizing: border-box;
}

.forecast-updated-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #334155;
  border: 1.5px solid #cbd5e1;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  transition: all 0.2s ease;
}

.forecast-updated-info .update-icon {
  font-size: 15px;
  line-height: 1;
}

.forecast-updated-info strong {
  color: #2563eb;
  font-weight: 800;
}

@media (max-width: 768px) {
  .forecast-update-container {
    justify-content: center;
    margin: 14px 0 24px 0;
    padding: 0 8px;
  }
  .forecast-updated-info {
    font-size: 12px;
    padding: 8px 14px;
    width: 100%;
    max-width: 380px;
    justify-content: center;
    text-align: center;
  }
}
