/* ==========================================================================
   오솔킹 (OSOLKING) 대한민국 백패킹 명소 100선 전용 스타일
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. 보안 및 텍스트 복사 / 캡처 / 인쇄 방지 규칙
   -------------------------------------------------------------------------- */
body.spots-page,
.spots-page * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-user-drag: none !important;
}

/* 인쇄 전면 차단 */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
  }
}

/* 워터마크 배경 오버레이 */
.spots-page {
  position: relative;
  background-color: #f8fafc;
  background-image: 
    radial-gradient(#e2e8f0 1px, transparent 1px),
    linear-gradient(rgba(241, 245, 249, 0.4) 1px, transparent 1px);
  background-size: 24px 24px, 100% 24px;
}

/* --------------------------------------------------------------------------
   1. 헤더 & 인트로
   -------------------------------------------------------------------------- */
.spots-header {
  margin-bottom: 24px;
}

.spots-header .header-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.back-button:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #cbd5e1;
  transform: translateX(-2px);
}

.spots-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  color: #1d4ed8;
  font-size: 12.5px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   2. 검색 및 다중 필터 섹션
   -------------------------------------------------------------------------- */
.filter-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
}

/* 검색 입력창 */
.search-bar-wrap {
  position: relative;
  margin-bottom: 20px;
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #64748b;
  pointer-events: none;
}

.spots-search-input {
  width: 100%;
  height: 48px;
  padding: 10px 40px 10px 42px;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  font-size: 15px;
  color: #0f172a;
  outline: none;
  transition: all 0.2s ease;
}

.spots-search-input:focus {
  background-color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  font-size: 13px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* 필터 그룹 공통 */
.filter-group {
  margin-bottom: 16px;
}

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

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

.filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 5px;
}

.filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 필터 칩(Pill) */
.filter-pill {
  padding: 6px 13px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.filter-pill.is-active {
  background: #1e3a8a;
  border-color: #1e3a8a;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(30, 58, 138, 0.25);
}

.pill-count {
  font-size: 11px;
  opacity: 0.85;
}

/* 난이도 전용 칩 활성 스타일 */
.filter-pill[data-diff="초급"].is-active {
  background: #16a34a;
  border-color: #16a34a;
}
.filter-pill[data-diff="초중급"].is-active,
.filter-pill[data-diff="중급"].is-active {
  background: #2563eb;
  border-color: #2563eb;
}
.filter-pill[data-diff="중상급"].is-active,
.filter-pill[data-diff="상급"].is-active {
  background: #dc2626;
  border-color: #dc2626;
}

/* 필터 결과 요약바 */
.filter-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid #f1f5f9;
}

.result-count-text {
  font-size: 14px;
  color: #334155;
}

.result-count-text strong {
  color: #2563eb;
  font-weight: 800;
}

.reset-filter-btn {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}

.reset-filter-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #0f172a;
}

/* --------------------------------------------------------------------------
   3. 명소 카드 그리드
   -------------------------------------------------------------------------- */
.spots-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

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

@media (min-width: 1040px) {
  .spots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 개별 명소 카드 */
.spot-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}

.spot-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}

/* 카드 상단 뱃지 라인 */
.spot-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  gap: 8px;
}

.spot-badges-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.badge-no {
  background: #0f172a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  letter-spacing: 0.5px;
}

.badge-region {
  background: #e0e7ff;
  color: #3730a3;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-difficulty {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-difficulty.diff-easy {
  background: #dcfce7;
  color: #15803d;
}

.badge-difficulty.diff-medium {
  background: #dbeafe;
  color: #1e40af;
}

.badge-difficulty.diff-hard {
  background: #fee2e2;
  color: #b91c1c;
}

.badge-theme {
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 6px;
}

/* 명소 타이틀 */
.spot-card-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin-bottom: 4px;
}

.spot-card-location {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 14px;
}

/* 출발지 / 도착지 박스 */
.spot-location-boxes {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.location-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.4;
}

.location-tag {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 1px;
}

.tag-start {
  background: #dbeafe;
  color: #1d4ed8;
}

.tag-dest {
  background: #fef3c7;
  color: #b45309;
}

.location-text {
  color: #334155;
  font-weight: 500;
  word-break: break-all;
}

/* 트레킹 코스 경로 스텝바 */
.spot-course-wrap {
  margin-bottom: 14px;
}

.course-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-steps {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

.course-step {
  background: #f1f5f9;
  color: #334155;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.course-arrow {
  color: #94a3b8;
  font-size: 10px;
  flex-shrink: 0;
}

/* 주요 매력 및 상세 텍스트 */
.spot-info-block {
  margin-bottom: 12px;
}

.spot-attraction-text {
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  padding: 8px 10px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 10px;
  font-weight: 500;
}

.spot-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
  margin-bottom: 6px;
}

.detail-label {
  font-weight: 700;
  color: #64748b;
  flex-shrink: 0;
}

.spot-tip-box {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12px;
  color: #92400e;
  line-height: 1.45;
  margin-top: 8px;
  margin-bottom: 14px;
}

/* 카드 하단 액션 버튼 (날씨 확인) */
.spot-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
}

.btn-check-weather {
  width: 100%;
  height: 38px;
  background-color: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.btn-check-weather:hover {
  background-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(37, 99, 235, 0.3);
}

/* --------------------------------------------------------------------------
   4. 빈 결과 (No Results)
   -------------------------------------------------------------------------- */
.no-results-box {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
}

.no-results-icon {
  font-size: 40px;
  margin-bottom: 12px;
}

.no-results-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
}

.no-results-desc {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

/* --------------------------------------------------------------------------
   5. 보안 안내 토스트 (우클릭 / 복사 방지 팝업)
   -------------------------------------------------------------------------- */
.security-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  max-width: 90vw;
  text-align: center;
}

.security-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.security-toast-icon {
  font-size: 16px;
}

/* --------------------------------------------------------------------------
   법적 면책 및 안내 공지 카드 스타일
   -------------------------------------------------------------------------- */
.legal-disclaimer-card {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.legal-disclaimer-card .disclaimer-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.legal-disclaimer-card .disclaimer-icon {
  font-size: 15px;
}

.legal-disclaimer-card .disclaimer-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #92400e;
}

.legal-disclaimer-card .disclaimer-text {
  font-size: 12px;
  color: #78350f;
  line-height: 1.55;
  margin: 0;
  word-break: keep-all;
}

.legal-disclaimer-card .disclaimer-text strong {
  color: #b45309;
  font-weight: 800;
}
