/* =========================================================================
   오솔킹 (OSOLKING) 박지별 정적 상세 페이지 전용 스타일시트 (spot-detail.css)
   ========================================================================= */

/* 0. 글로벌 서브 헤더 (상단 공통 바) */
.global-sub-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid #e2e8f0;
  z-index: 1000;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
}

.sub-header-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}

.sub-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-menu-toggle {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1.15rem;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-menu-toggle:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-menu-toggle:active {
  transform: scale(0.96);
}

.sub-header-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #0f172a;
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}

.sub-header-logo:hover {
  opacity: 0.85;
}

.header-logo-img {
  width: 32px !important;
  height: 32px !important;
  max-width: 32px !important;
  max-height: 32px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 1.5px solid #2563eb !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.2);
  display: block;
}

.header-logo-text {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.sub-header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.header-nav-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
  border-color: #cbd5e1;
}

.header-nav-btn.active {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
  font-weight: 800;
}

/* 드로어 보완 스타일 */
.drawer-brand-logo,
.drawer-brand-img {
  width: 44px !important;
  height: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #2768c8 !important;
  box-shadow: 0 2px 8px rgba(39, 104, 200, 0.2);
  flex-shrink: 0 !important;
}

.btn-drawer-close {
  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;
  font-size: 1.1rem;
}

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

.nav-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-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: #172b4d;
  letter-spacing: -0.02em;
}

.nav-drawer-content {
  padding: 18px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.nav-drawer-overlay.is-open ~ .nav-drawer,
.nav-drawer-overlay.is-open + .nav-drawer {
  transform: translateX(0) !important;
}

@media (max-width: 640px) {
  .sub-header-container {
    padding: 8px 12px;
    gap: 8px;
  }
  .header-logo-img {
    width: 28px !important;
    height: 28px !important;
    max-width: 28px !important;
    max-height: 28px !important;
  }
  .header-logo-text {
    font-size: 0.95rem;
  }
  .header-nav-btn {
    padding: 5px 9px;
    font-size: 0.78rem;
  }
}

@media (max-width: 400px) {
  .sub-header-actions .header-nav-btn:not(.active) {
    display: none;
  }
}

.spot-detail-container {
  max-width: 920px;
  margin: 20px auto 60px;
  padding: 0 16px;
}

/* 1. 상단 브레드크럼 네비게이션 */
.spot-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.spot-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  transition: color 0.15s;
}

.spot-breadcrumb a:hover {
  text-decoration: underline;
  color: #1d4ed8;
}

.spot-breadcrumb .separator {
  color: #cbd5e1;
}

.spot-breadcrumb .current {
  color: #334155;
  font-weight: 600;
}

/* 2. 메인 아티클 카드 */
.spot-article-wrap {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.07);
  border: 1px solid #e2e8f0;
  padding: 36px 32px;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .spot-article-wrap {
    padding: 24px 18px;
    border-radius: 18px;
  }
}

/* 3. 헤더 영역 */
.spot-header-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.spot-badge-no {
  background: #1e293b;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 8px;
  letter-spacing: 0.02em;
}

.spot-badge-region {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.spot-badge-difficulty {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 8px;
}

.spot-badge-difficulty.diff-easy {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.spot-badge-difficulty.diff-medium {
  background: #fffbeb;
  color: #b45309;
  border: 1px solid #fde68a;
}

.spot-badge-difficulty.diff-hard {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.spot-badge-theme {
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 8px;
  margin-left: auto;
}

.spot-page-title {
  font-size: clamp(1.6rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
}

.spot-page-subtitle {
  font-size: 1rem;
  color: #64748b;
  margin: 0 0 24px 0;
  line-height: 1.6;
}

/* 4. 스마트 앱 바로가기 액션 바 */
.spot-action-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
}

.spot-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
  text-align: center;
}

.spot-action-btn.btn-weather {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.spot-action-btn.btn-weather:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

.spot-action-btn.btn-map {
  background: #fee500;
  color: #191919;
  border: 1px solid #f5dc00;
}

.spot-action-btn.btn-map:hover {
  background: #ffd900;
  transform: translateY(-2px);
}

.spot-action-btn.btn-talk {
  background: #ffffff;
  color: #ea580c;
  border: 1px solid #fed7aa;
}

.spot-action-btn.btn-talk:hover {
  background: #fff7ed;
  border-color: #fdba74;
  transform: translateY(-2px);
}

.spot-action-btn.btn-packing {
  background: #ffffff;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.spot-action-btn.btn-packing:hover {
  background: #f0fdfa;
  border-color: #5eead4;
  transform: translateY(-2px);
}

/* 5. 핵심 스펙 정보 그리드 */
.spot-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.spot-spec-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
}

.spot-spec-card .spec-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
}

.spot-spec-card .spec-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.4;
}

.spot-spec-card .spec-sub {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 4px;
}

/* 들머리 / 박지 위치 박스 */
.spot-points-box {
  background: #f1f5f9;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.point-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
}

.point-tag {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.point-tag.start {
  background: #2563eb;
  color: #ffffff;
}

.point-tag.dest {
  background: #059669;
  color: #ffffff;
}

.point-content {
  color: #1e293b;
  line-height: 1.5;
}

.point-content strong {
  color: #0f172a;
}

/* 6. 코스 스텝 타임라인 */
.spot-course-timeline {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 36px;
}

.timeline-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.timeline-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.timeline-step-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
}

.timeline-step-arrow {
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: bold;
}

/* 7. 아티클 본문 섹션 */
.spot-article-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 28px;
  margin-top: 28px;
}

.spot-section-heading {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spot-section-p {
  font-size: 1rem;
  line-height: 1.8;
  color: #334155;
  margin: 0 0 16px 0;
  word-break: keep-all;
}

.spot-tip-alert-box {
  background: #fffbeb;
  border-left: 4px solid #f59e0b;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
  color: #92400e;
  font-size: 0.95rem;
  line-height: 1.7;
}

.spot-tip-alert-box strong {
  color: #78350f;
}

.spot-lnt-box {
  background: #f0fdf4;
  border-left: 4px solid #10b981;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 16px 0;
  color: #065f46;
  font-size: 0.95rem;
  line-height: 1.7;
}

.spot-lnt-box strong {
  color: #047857;
}

/* 8. 동일 권역 추천 명소 카드 */
.related-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.related-spot-item {
  display: block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.related-spot-item:hover {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
  transform: translateY(-2px);
}

.related-spot-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 4px;
}

.related-spot-meta {
  font-size: 0.8rem;
  color: #64748b;
}

/* 9. 하단 탐색 버튼 */
.spot-bottom-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
  flex-wrap: wrap;
  gap: 12px;
}

.spot-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  padding: 10px 18px;
  background: #f1f5f9;
  border-radius: 10px;
  transition: all 0.15s;
}

.spot-back-link:hover {
  background: #e2e8f0;
  color: #0f172a;
}
