/* ==========================================================================
   오솔킹 날씨별 추천 패킹 리스트 전용 스타일
   ========================================================================== */

.packing-page {
  padding-top: 24px;
}

.header-nav-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 16px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  color: #2768c8;
  border: 1.5px solid #c7dffc;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px #2768c812;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #eef5ff;
  border-color: #2768c8;
  transform: translateX(-2px);
}

.back-arrow {
  font-size: 1.1rem;
  font-weight: 900;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   날씨 배너 (카드 클릭 유입 시 표시)
   -------------------------------------------------------------------------- */
.weather-banner {
  background: linear-gradient(135deg, #1e3a8a, #2563eb);
  color: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 16px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
  animation: fadeInDown 0.3s ease-out;
}

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

.weather-banner-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.banner-location-date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
}

.banner-pin { font-size: 1.1rem; }

.banner-date {
  color: #bfdbfe;
  font-size: 0.88rem;
  font-weight: 600;
}

.banner-weather-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.banner-icon { font-size: 1.4rem; }
.banner-name { font-weight: 700; }
.banner-temp { font-weight: 800; background: rgba(255, 255, 255, 0.15); padding: 2px 8px; border-radius: 6px; }
.banner-pop { color: #93c5fd; font-weight: 700; }

.banner-matched-tag {
  background: #fef08a;
  color: #854d0e;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* --------------------------------------------------------------------------
   날씨 유형 선택 탭 (5대 날씨)
   -------------------------------------------------------------------------- */
.weather-tabs-nav {
  margin-bottom: 18px;
}

.weather-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.weather-tab-btn {
  background: #ffffff;
  border: 1.5px solid #d9e3f2;
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  transition: all 0.2s ease;
}

.weather-tab-btn:hover {
  border-color: #93c5fd;
  background: #f8faff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(39, 104, 200, 0.1);
}

.weather-tab-btn.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
  position: relative;
}

.weather-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 20%;
  right: 20%;
  height: 3px;
  background: #2563eb;
  border-radius: 2px;
}

.tab-icon { font-size: 1.5rem; line-height: 1; }
.tab-name { font-size: 0.88rem; font-weight: 800; color: #1e293b; }
.tab-sub { font-size: 0.68rem; color: #64748b; font-weight: 600; }
.weather-tab-btn.active .tab-name { color: #1d4ed8; }
.weather-tab-btn.active .tab-sub { color: #3b82f6; }

/* --------------------------------------------------------------------------
   체크리스트 컨트롤 및 프로그레스 바
   -------------------------------------------------------------------------- */
.checklist-controls-bar {
  background: #ffffff;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px #477bc210;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.progress-wrap {
  flex: 1;
  min-width: 240px;
}

.progress-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.progress-title {
  font-size: 0.85rem;
  font-weight: 800;
  color: #1e293b;
}

.progress-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #2563eb;
}

.progress-track {
  height: 10px;
  background: #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #10b981);
  border-radius: 6px;
  transition: width 0.3s ease;
}

.control-buttons {
  display: flex;
  gap: 8px;
}

.ctrl-btn {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #334155;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.ctrl-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.print-btn {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.print-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

/* --------------------------------------------------------------------------
   2열 메인 레이아웃 (좌: 필수 / 우: 추천)
   -------------------------------------------------------------------------- */
.packing-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.column-panel {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 16px;
  box-shadow: 0 4px 20px #477bc210;
  border: 1.5px solid transparent;
  display: flex;
  flex-direction: column;
}

.essential-panel {
  border-color: #fee2e2;
  background: #fffafa;
}

.recommended-panel {
  border-color: #e0e7ff;
  background: #fbfbfe;
}

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

.column-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.column-badge {
  font-size: 0.72rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 8px;
  letter-spacing: -0.02em;
}

.essential-badge {
  background: #ef4444;
  color: #ffffff;
}

.recommended-badge {
  background: #3b82f6;
  color: #ffffff;
}

.column-panel h2 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.column-count {
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
  background: #ffffff;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.column-desc {
  margin: 0 0 14px;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   아이템 목록 및 카드 스타일
   -------------------------------------------------------------------------- */
.items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.category-divider {
  font-size: 0.76rem;
  font-weight: 800;
  color: #475569;
  background: #f1f5f9;
  padding: 4px 10px;
  border-radius: 6px;
  margin-top: 6px;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.packing-item-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  border: 1.5px solid #e2e8f0;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.packing-item-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.packing-item-card.is-checked {
  background: #f8fafc;
  border-color: #cbd5e1;
  opacity: 0.65;
}

.packing-item-card.is-checked .item-name {
  text-decoration: line-through;
  color: #94a3b8;
}

.item-checkbox-wrap {
  padding-top: 2px;
  flex-shrink: 0;
}

.item-checkbox {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #2563eb;
}

.item-body {
  flex: 1;
  min-width: 0;
}

.item-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.item-name {
  font-size: 0.95rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.02em;
  margin: 0;
}

.item-spec-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.item-spec-tag.highlight {
  background: #fef2f2;
  color: #dc2626;
  border-color: #fecaca;
  font-weight: 900;
}

.item-meta-row {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.meta-pill {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #475569;
}

.meta-pill.pos {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.meta-pill.qty {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.item-tip {
  margin: 3px 0 0;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.35;
  word-break: keep-all;
}

.item-recommend-row {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.item-recommend-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
}

.item-recommend-link:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateX(2px);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.item-recommend-link .rec-arrow {
  font-weight: 800;
  transition: transform 0.18s ease;
}

.item-recommend-link:hover .rec-arrow {
  transform: translateX(2px);
}

/* --------------------------------------------------------------------------
   하단: 전문가 안전 & 패킹 꿀팁 섹션
   -------------------------------------------------------------------------- */
.pro-tips-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px #477bc210;
  margin-bottom: 24px;
  border: 1px solid #e2e8f0;
}

.pro-tips-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.pro-tips-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1e293b;
}

.pro-tips-subtitle {
  font-size: 0.75rem;
  color: #94a3b8;
  font-weight: 600;
}

.pro-tip-card {
  background: #f0f9ff;
  border: 1.5px solid #bae6fd;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
}

.pro-tip-card h4 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #0369a1;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pro-tip-card .tip-principles {
  font-size: 0.84rem;
  color: #0c4a6e;
  white-space: pre-line;
  line-height: 1.5;
  font-weight: 700;
  background: #e0f2fe;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.pro-tip-card .tip-desc {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.45;
  margin: 0;
}

.all-tips-accordion {
  margin-top: 10px;
  font-size: 0.85rem;
}

.all-tips-accordion summary {
  cursor: pointer;
  font-weight: 700;
  color: #2563eb;
  padding: 6px 0;
  user-select: none;
}

.all-tips-accordion summary:hover {
  text-decoration: underline;
}

.all-tips-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
}

.tip-accordion-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
}

.tip-accordion-item h5 {
  margin: 0 0 6px;
  font-size: 0.88rem;
  color: #334155;
}

.tip-accordion-item .principles {
  font-size: 0.78rem;
  color: #1e293b;
  white-space: pre-line;
  line-height: 1.45;
  font-weight: 600;
  margin-bottom: 4px;
}

.tip-accordion-item .desc {
  font-size: 0.74rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* --------------------------------------------------------------------------
   반응형 & 인쇄 스타일
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .packing-matrix-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .weather-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .weather-tabs .weather-tab-btn:nth-child(4),
  .weather-tabs .weather-tab-btn:nth-child(5) {
    grid-column: span 1;
  }
  .weather-banner-content {
    flex-direction: column;
    align-items: flex-start;
  }
  .checklist-controls-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .control-buttons {
    justify-content: flex-end;
  }
}

@media (max-width: 420px) {
  .weather-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .weather-tabs .weather-tab-btn:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .packing-page {
    padding-top: 56px;
  }
}

@media print {
  body { background: #fff; }
  .menu-toggle-btn, .nav-drawer-overlay, .image-modal-overlay, .header-nav-row, .control-buttons, .weather-tabs-nav, .all-tips-accordion { display: none !important; }
  .column-panel { box-shadow: none; border: 1px solid #000; break-inside: avoid; }
  .packing-matrix-grid { grid-template-columns: 1fr 1fr; }
  .item-checkbox { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
