/* ==========================================================================
   오솔킹 (OSOLKING) 이번주 어디갈까? 전용 스타일
   ========================================================================== */

.recommend-page {
  background-color: #f8fafc;
}

/* --------------------------------------------------------------------------
   1. 헤더 & 필터 바
   -------------------------------------------------------------------------- */
.recommend-header {
  margin-bottom: 20px;
}

.recommend-header .brand-wrapper {
  max-width: 1000px !important;
  justify-content: flex-start !important;
  margin: 0 auto;
}

.recommend-header .title-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.recommend-header .title-row h1,
.recommend-header h1 {
  margin: 0 !important;
  font-size: clamp(1.2rem, 2.4vw, 1.95rem) !important;
  letter-spacing: -0.04em !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
}

.recommend-header .title-chunk {
  display: inline-block;
  white-space: nowrap;
}

.recommend-header .title-divider {
  color: #94a3b8;
  font-weight: 300;
  margin: 0 4px;
}

.recommend-header .brand-meaning {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 4px 11px;
  border-radius: 9999px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
  vertical-align: middle;
}

.recommend-header .header-nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  max-width: calc(100% - 440px);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 9999px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.back-button:hover {
  background-color: #f1f5f9;
  color: #0f172a;
  border-color: #94a3b8;
}

.back-button .back-arrow {
  font-size: 13px;
}

.nav-back-short {
  display: none;
}

.header-action-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.recommend-stats-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 9999px;
  color: #065f46;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-community {
  text-decoration: none;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  font-weight: 700;
  transition: all 0.15s ease;
}

.badge-community:hover {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.badge-text-short {
  display: none;
}

/* --------------------------------------------------------------------------
   법적 면책 및 안내 공지 카드 스타일
   -------------------------------------------------------------------------- */
.legal-disclaimer-card {
  background: #fffbeb;
  border: 1px solid #fef3c7;
  border-left: 4px solid #f59e0b;
  border-radius: 14px;
  padding: 13px 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: 13px;
  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;
}

.recommend-filter-section {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

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

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

.filter-row-label {
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
  min-width: 72px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.filter-pills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.rec-pill {
  padding: 5px 12px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  color: #475569;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rec-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

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

.rec-pill[data-diff="초급"].is-active {
  background: #16a34a;
  border-color: #16a34a;
}

.rec-pill[data-diff="초중급"].is-active,
.rec-pill[data-diff="중급"].is-active {
  background: #2563eb;
  border-color: #2563eb;
}

.rec-pill[data-diff="중상급"].is-active,
.rec-pill[data-diff="상급"].is-active {
  background: #dc2626;
  border-color: #dc2626;
}

/* --------------------------------------------------------------------------
   박지명(도착지) 검색창 & 자동완성 드롭다운 스타일
   -------------------------------------------------------------------------- */
.spot-search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.spot-search-wrapper {
  position: relative;
  flex: 1;
  width: 100%;
}

.spot-search-input {
  width: 100%;
  padding: 8px 36px 8px 14px;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: all 0.18s ease;
  -webkit-appearance: none;
}

.spot-search-input::placeholder {
  color: #94a3b8;
  font-size: 12.5px;
  font-weight: 400;
}

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

.spot-search-input::-webkit-search-cancel-button,
.spot-search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.spot-search-clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  border: none;
  font-size: 11px;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
  padding: 0;
  line-height: 1;
}

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

/* 자동완성 추천 드롭다운 */
.spot-search-autocomplete {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  max-height: 290px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.06);
  z-index: 1000;
  padding: 4px;
}

.spot-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease;
  gap: 10px;
}

.spot-search-item:hover,
.spot-search-item.is-selected {
  background: #eff6ff;
}

.spot-search-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.spot-search-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-search-title .spot-no-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: #2563eb;
  background: #dbeafe;
  padding: 1px 5px;
  border-radius: 4px;
  flex-shrink: 0;
}

.spot-search-title .spot-name-sub {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-search-sub {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.spot-search-diff {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9999px;
  border: 1px solid transparent;
}

.spot-search-diff.diff-easy {
  background: #f0fdf4;
  color: #15803d;
  border-color: #bbf7d0;
}

.spot-search-diff.diff-medium {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.spot-search-diff.diff-hard {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.spot-search-empty {
  padding: 18px 12px;
  text-align: center;
  color: #94a3b8;
  font-size: 12.5px;
}

.search-highlight {
  background: #fef08a;
  color: #854d0e;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   2. 메인 2단 분할 레이아웃 (지도 vs 상세 뷰어)
   -------------------------------------------------------------------------- */
.recommend-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-bottom: 40px;
}

@media (min-width: 960px) {
  .recommend-layout-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

/* 좌측: 대한민국 전체 지도 카드 */
.map-explore-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  position: relative;
  display: flex;
  flex-direction: column;
}

.map-card-header {
  padding: 14px 18px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 5;
}

.map-header-title {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 6px;
}

.map-header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-reset-map {
  padding: 5px 10px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

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

/* GPS 검색 및 추출 도구 링크 버튼 */
.btn-gps-tool-link {
  height: 28px;
  padding: 0 10px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.15s ease;
}

.btn-gps-tool-link:hover {
  background: #dcfce7;
  color: #14532d;
  transform: translateY(-1px);
}

.map-container-wrap {
  position: relative;
  width: 100%;
  height: 540px;
  background: #e2e8f0;
}

@media (min-width: 960px) {
  .map-container-wrap {
    height: 640px;
  }
}

#all-spots-map {
  width: 100%;
  height: 100%;
}

/* 지도 클릭 시 나타나는 플로팅 GPS HUD */
.map-clicked-gps-hud {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(56, 189, 248, 0.35);
  font-size: 13px;
  gap: 10px;
  animation: slideUpGps 0.2s ease-out;
}

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

.gps-hud-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gps-hud-left strong {
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13.5px;
}

.gps-hud-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.btn-copy-gps {
  background: #0284c7;
  color: #ffffff;
  border: none;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-copy-gps:hover {
  background: #0369a1;
  transform: scale(1.02);
}

.btn-close-gps {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.15s;
}

.btn-close-gps:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

/* 지도 위 클릭 핀 말풍선 오버레이 */
.clicked-coord-bubble {
  background: #0f172a;
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  border: 1.5px solid #38bdf8;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  pointer-events: auto;
}

.coord-bubble-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 4px;
}

.coord-bubble-val {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: #e2e8f0;
}

.coord-bubble-val strong {
  color: #ffffff;
}

.btn-bubble-copy {
  margin-top: 4px;
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-bubble-copy:hover {
  background: #0369a1;
}

/* 지도 범례 */
.map-legend-bar {
  padding: 10px 16px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #64748b;
  flex-wrap: wrap;
  gap: 6px;
}

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

.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-easy { background-color: #10b981; }
.dot-medium { background-color: #2563eb; }
.dot-hard { background-color: #ef4444; }

/* --------------------------------------------------------------------------
   3. 지도 커스텀 마커 & 툴팁
   -------------------------------------------------------------------------- */
.custom-spot-marker {
  position: relative;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.custom-spot-marker:hover {
  transform: scale(1.35);
  z-index: 1000 !important;
}

.spot-pin-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2.5px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.spot-pin-circle.diff-easy { background-color: #10b981; }
.spot-pin-circle.diff-medium { background-color: #2563eb; }
.spot-pin-circle.diff-hard { background-color: #ef4444; }

/* 실시간 현장 톡이 있는 마커 스타일 (1안: 💬 뱃지 + 실시간 핑 펄스) */
.custom-spot-marker.has-live-talk {
  z-index: 35 !important;
}

/* 핀 주변 펄스 오라 파동 */
.custom-spot-marker .live-pin-pulse {
  display: none;
}

.custom-spot-marker.has-live-talk .live-pin-pulse {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(244, 63, 94, 0.6);
  pointer-events: none;
  animation: liveMarkerPulse 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}

@keyframes liveMarkerPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.9;
  }
  70%, 100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

/* 미니 말풍선 뱃지 */
.marker-live-badge {
  position: absolute;
  top: -11px;
  right: -13px;
  background: linear-gradient(135deg, #ff5722 0%, #f43f5e 100%);
  color: #ffffff;
  padding: 1.5px 5.5px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2.5px;
  box-shadow: 0 2px 5px rgba(244, 63, 94, 0.45), 0 0 0 1.5px #ffffff;
  line-height: 1.2;
  pointer-events: none;
  white-space: nowrap;
  user-select: none;
  z-index: 10;
  animation: liveBadgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes liveBadgePop {
  0% { transform: scale(0.3); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.marker-live-badge .badge-icon {
  font-size: 9px;
  line-height: 1;
}

.marker-live-badge .badge-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  font-weight: 900;
}

/* 현장 인증 제보가 포함된 톡방일 때 */
.marker-live-badge.has-verified {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 2px 5px rgba(16, 185, 129, 0.45), 0 0 0 1.5px #ffffff;
}

/* 활성 마커 펄스 효과 */
.custom-spot-marker.is-active .spot-pin-circle {
  transform: scale(1.4);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.4), 0 4px 8px rgba(0, 0, 0, 0.4);
  border-color: #facc15;
}

.custom-spot-marker.is-active .marker-live-badge {
  top: -14px;
  right: -15px;
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(244, 63, 94, 0.6), 0 0 0 2px #ffffff;
}

/* 마우스 호버 커스텀 툴팁 (PC 데스크톱 전용) */
.spot-hover-tooltip {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  pointer-events: none;
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* 스마트폰/태블릿 등 터치 기기에서는 툴팁이 겹쳐서 지도를 가리는 현상 방지 (PC 마우스에서만 호버 툴팁 지원) */
@media (hover: none), (pointer: coarse), (max-width: 768px) {
  .spot-hover-tooltip {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    opacity: 0 !important;
  }
}

.spot-hover-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px 5px 0 5px;
  border-style: solid;
  border-color: rgba(15, 23, 42, 0.95) transparent transparent transparent;
}

.tooltip-top-line {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tooltip-no {
  font-weight: 800;
  color: #60a5fa;
  font-size: 11px;
}

.tooltip-name {
  font-weight: 700;
  color: #ffffff;
  font-size: 12.5px;
}

.tooltip-sub {
  font-size: 11px;
  color: #cbd5e1;
}

/* 툴팁 내 실시간 제보 프리뷰 */
.tooltip-live-preview {
  margin-top: 5px;
  padding-top: 5px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}

.tooltip-live-tag {
  background: linear-gradient(135deg, #ff5722 0%, #f43f5e 100%);
  color: #ffffff;
  padding: 1px 4.5px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.3px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.tooltip-live-snippet {
  color: #f8fafc;
  font-weight: 600;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tooltip-live-time {
  color: #94a3b8;
  font-size: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* 범례 뱃지 샘플 */
.legend-badge-sample {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff5722 0%, #f43f5e 100%);
  color: #ffffff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(244, 63, 94, 0.35);
  font-weight: 800;
  line-height: 1.2;
}

/* --------------------------------------------------------------------------
   4. 우측: 카카오맵 길찾기 및 트레킹 코스 상세 뷰어
   -------------------------------------------------------------------------- */
.detail-route-card {
  min-width: 0;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.03);
  position: sticky;
  top: 24px;
}

/* 빈 상태 (선택 전) */
.route-empty-state {
  text-align: center;
  padding: 60px 20px;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 14px;
}

.empty-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.empty-desc {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.5;
  max-width: 320px;
  margin: 0 auto;
}

/* 선택 후 상세 컨텐츠 */
.route-detail-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 헤더 뱃지 및 제목 */
.detail-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.detail-spot-title {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.3;
}

.detail-spot-location {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}



/* 단계별 코스 타임라인 */
.route-timeline-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.timeline-title {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.timeline-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  padding-left: 10px;
}

.timeline-step-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
}

.step-node-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.node-start { background: #dbeafe; color: #1d4ed8; }
.node-via { background: #fef3c7; color: #b45309; }
.node-dest { background: #fee2e2; color: #dc2626; }

/* 주소 박스 */
.detail-addr-boxes {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.addr-card-item {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.addr-text-wrap {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  word-break: break-all;
}

.btn-copy-addr {
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.btn-copy-addr:hover {
  background: #ffffff;
  color: #0f172a;
  border-color: #94a3b8;
}

/* 주요 매력 및 팁 */
.detail-attraction-box {
  background: #f0fdf4;
  border-left: 3px solid #22c55e;
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 12.5px;
  color: #166534;
  line-height: 1.45;
  font-weight: 500;
}

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

/* 액션 버튼 그룹 */
.detail-actions-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 4px;
}

/* 등산/길찾기/GPX 1줄 묶음 행 */
.trekking-buttons-row {
  display: flex;
  gap: 5px;
  width: 100%;
}

.trekking-buttons-row > a,
.trekking-buttons-row > button {
  flex: 1 1 0;
  min-width: 0;
  width: auto !important;
  height: 33px;
  min-height: 33px;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 9px;
  gap: 4px;
  white-space: nowrap;
  box-sizing: border-box;
}

.trekking-buttons-row .btn-text-short {
  display: none;
}

@media (max-width: 480px) {
  .trekking-buttons-row > a,
  .trekking-buttons-row > button {
    font-size: 11.5px;
    padding: 3px 3px;
    gap: 2.5px;
  }

  .trekking-buttons-row.has-gpx .btn-text-full {
    display: none;
  }

  .trekking-buttons-row.has-gpx .btn-text-short {
    display: inline;
  }
}

.btn-trekking-gpx {
  width: 100%;
  height: 33px;
  min-height: 33px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.22);
  transition: all 0.15s ease;
  box-sizing: border-box;
  word-break: keep-all;
  line-height: 1;
  text-align: center;
}

.btn-trekking-gpx:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(16, 185, 129, 0.32);
}

.btn-trekking-kakao {
  width: 100%;
  height: 33px;
  min-height: 33px;
  padding: 4px 8px;
  background-color: #fee500;
  color: #000000;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  box-sizing: border-box;
  word-break: keep-all;
  line-height: 1;
  text-align: center;
}

.btn-trekking-kakao:hover {
  background-color: #fdd835;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

.btn-trekking-naver {
  width: 100%;
  height: 33px;
  min-height: 33px;
  padding: 4px 8px;
  background-color: #03c75a;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(3, 199, 90, 0.2);
  transition: all 0.15s ease;
  box-sizing: border-box;
  word-break: keep-all;
  line-height: 1;
  text-align: center;
}


.btn-trekking-naver:disabled,
.btn-trekking-naver.is-disabled {
  background-color: #f1f5f9;
  color: #94a3b8;
  cursor: not-allowed;
  box-shadow: none;
  border: 1px solid #cbd5e1;
  transform: none !important;
  opacity: 0.85;
}

.btn-trekking-naver:hover:not(:disabled) {
  background-color: #02b350;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(3, 199, 90, 0.3);
}


.btn-sub-action:disabled,
.btn-sub-action.is-disabled {
  background-color: #f1f5f9 !important;
  color: #94a3b8 !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  pointer-events: none !important;
  opacity: 0.85;
}

.share-buttons-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

.btn-share-copy {
  height: 30px;
  min-height: 30px;
  padding: 3px 8px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.btn-share-copy:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
  color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.btn-share-copy:active {
  transform: translateY(0);
}

.btn-share-copy.is-copied {
  background-color: #ecfdf5;
  border-color: #10b981;
  color: #059669;
}

.btn-share-kakao {
  height: 30px;
  min-height: 30px;
  padding: 3px 8px;
  background-color: #fee500;
  border: 1px solid #fada0a;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 800;
  color: #191919;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.15s ease;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.btn-share-kakao:hover {
  background-color: #fdd835;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-share-kakao:active {
  transform: translateY(0);
}

/* 실시간 날씨 액션 버튼 */
.btn-sub-weather {
  width: 100%;
  height: 36px;
  background-color: #2768c8;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(39, 104, 200, 0.2);
}

.btn-sub-weather:hover {
  background-color: #1e57aa;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(39, 104, 200, 0.3);
}

/* 실시간 현장 톡 바로가기 버튼 */
.btn-sub-talk {
  width: 100%;
  height: 38px;
  background: linear-gradient(135deg, #1b355a 0%, #27528a 100%);
  color: #ffffff;
  border: none;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(27, 53, 90, 0.2);
}

.btn-sub-talk:hover {
  background: linear-gradient(135deg, #142a48 0%, #1e4373 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(27, 53, 90, 0.3);
}

/* 박지 상세 카드 내부 실시간 톡 컨테이너 스타일 */
.detail-route-card .live-talk-container {
  margin: 1.25rem 0 0;
  border-radius: 16px;
  border: 1px solid rgba(39, 104, 200, 0.16);
  box-shadow: 0 4px 16px rgba(39, 104, 200, 0.06);
}

/* 링크 공유 토스트 알림 */
.share-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 12px 22px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 700;
  display: inline-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.2);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 99999;
  white-space: nowrap;
}

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

.share-toast-icon {
  font-size: 15px;
}

/* --------------------------------------------------------------------------
   우측 상세 코스 미니맵 & 커스텀 마커 / HUD 스타일
   -------------------------------------------------------------------------- */
.route-map-container {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  overflow: hidden;
  background: #f8fafc;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.route-map-header-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.hud-route-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  line-height: 1.5;
  flex: 1 1 200px;
  min-width: 0;
}

.hud-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hud-arrow {
  color: #94a3b8;
  font-size: 11px;
  user-select: none;
}

.hud-route-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  margin-left: auto;
}

.hud-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
}

.hud-badge-diff {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 800;
}

.route-map-viewport {
  position: relative;
  width: 100%;
  height: 300px;
}

#route-kakao-map {
  width: 100%;
  height: 100%;
}

/* 실시간 내 위치 (모바일 GPS) 플로팅 버튼 */
.btn-route-gps {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid #cbd5e1;
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-route-gps:hover {
  background: #ffffff;
  border-color: #3b82f6;
  color: #2563eb;
  transform: translateY(-1px);
}

.btn-route-gps.is-active {
  background: #2563eb;
  border-color: #1d4ed8;
  color: #ffffff;
  box-shadow: 0 3px 12px rgba(37, 99, 235, 0.45);
}

.btn-route-gps.is-active .gps-icon {
  animation: gps-active-rotate 3s linear infinite;
}

.btn-route-gps.is-loading {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #64748b;
  cursor: wait;
}

.btn-route-gps .gps-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-block;
}

@keyframes gps-active-rotate {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

/* 실시간 내 위치 파란색 펄스 & 시야각 빔(Beam) 방향 지시계 마커 */
.my-location-radar-pin {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.my-loc-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  margin-left: -22px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.25);
  animation: my-loc-radar-pulse 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  z-index: 1;
}

/* 내가 회전하면 함께 회전하는 시야각(부채꼴 빔) 방향 래퍼 (중심축 40,40 회전, 지도는 북쪽 고정) */
.my-loc-heading-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  transform-origin: 40px 40px;
  transition: transform 0.16s cubic-bezier(0.25, 1, 0.5, 1);
  pointer-events: none;
  z-index: 3;
}

.my-loc-beam-svg {
  width: 80px;
  height: 80px;
  display: block;
}

/* 중심 내 위치 점 */
.my-loc-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: #2563eb;
  border: 2.5px solid #ffffff;
  box-shadow: 0 0 10px rgba(37, 99, 235, 0.95), 0 2px 5px rgba(0, 0, 0, 0.35);
  z-index: 5;
}

/* 텍스트 라벨 (회전하지 않고 항상 하단에 수평 고정) */
.my-loc-label {
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 5px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes my-loc-radar-pulse {
  0% {
    transform: scale(0.5);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

.route-map-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 12px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
}

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

.leg-start {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2563eb;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #2563eb;
}

.leg-dest {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc2626;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #dc2626;
}

.leg-my-loc-icon {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2563eb;
  border: 1.5px solid #ffffff;
  box-shadow: 0 0 0 1px #2563eb;
  position: relative;
  vertical-align: middle;
}

.leg-my-loc-icon::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 2.5px solid transparent;
  border-right: 2.5px solid transparent;
  border-bottom: 3.5px solid #2563eb;
}

.leg-line {
  width: 18px;
  height: 3px;
  background: #ef4444;
  border-radius: 2px;
}

/* 커스텀 핀 (말풍선 배지) */
.trek-custom-pin {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transform: translate3d(0, 0, 0);
  transition: transform 0.2s ease;
}

.trek-custom-pin:hover {
  transform: scale(1.08) translateY(-2px);
  z-index: 100 !important;
}

.trek-custom-pin .pin-bubble {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  border-radius: 20px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  font-size: 12px;
  font-weight: 800;
}

.trek-custom-pin.pin-start .pin-bubble {
  background: #1e40af;
  color: #ffffff;
  border: 2px solid #60a5fa;
}

.trek-custom-pin.pin-dest .pin-bubble {
  background: #991b1b;
  color: #ffffff;
  border: 2px solid #f87171;
}

.trek-custom-pin.pin-via .pin-bubble {
  background: #854d0e;
  color: #ffffff;
  border: 2px solid #fde047;
}

.pin-bubble .bubble-badge {
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.25);
  letter-spacing: -0.2px;
}

.pin-bubble .bubble-title {
  font-weight: 800;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pin-marker-arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  margin-top: -1px;
}

.trek-custom-pin.pin-start .pin-marker-arrow {
  border-top: 7px solid #1e40af;
}

.trek-custom-pin.pin-dest .pin-marker-arrow {
  border-top: 7px solid #dc2626;
}

.trek-custom-pin.pin-via .pin-marker-arrow {
  border-top: 7px solid #d97706;
}

/* Everytrail 스타일 출발 [출] / 도착 [도] 핀 테마 */
.trek-custom-pin.pin-start .pin-bubble {
  background: #059669;
  color: #ffffff;
  border: 2px solid #34d399;
}

.trek-custom-pin.pin-dest .pin-bubble {
  background: #dc2626;
  color: #ffffff;
  border: 2px solid #f87171;
}

.trek-custom-pin.pin-via .pin-bubble {
  background: #d97706;
  color: #ffffff;
  border: 2px solid #fbbf24;
}

/* HUD 출/도 배지 */
.badge-hud-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.badge-hud-dest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.badge-hud-via {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d97706;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* 범례 Everytrail 스타일 */
.leg-every-start {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #059669;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
}

.leg-every-dest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #dc2626;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
}

.leg-every-via {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #d97706;
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 800;
}

/* 우측 지도 [지도 | 스카이뷰] 컨트롤 */
.map-type-ctrls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  display: flex;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.btn-map-type {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-map-type:first-child {
  border-right: 1px solid #e2e8f0;
}

.btn-map-type.active {
  background: #2563eb;
  color: #ffffff;
}

.btn-map-type:hover:not(.active) {
  background: #f1f5f9;
  color: #0f172a;
}

/* 타임라인 항목 클릭 가능 스타일 */
.timeline-step-item {
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s;
}

.timeline-step-item:hover {
  background: #f1f5f9;
}

.step-text-group {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.step-role-tag {
  font-size: 10.5px;
  color: #64748b;
  font-weight: 700;
}

.step-name-text {
  font-size: 13.5px;
  color: #0f172a;
}
/* --------------------------------------------------------------------------
   경로 지도 크게 보기 (전체화면) & 원래대로 복원 스타일
   -------------------------------------------------------------------------- */
.btn-route-fullscreen {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #2563eb;
  color: #ffffff;
  border: none;
  border-radius: 7px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 4px rgba(37, 99, 235, 0.3);
  user-select: none;
}

.btn-route-fullscreen:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.btn-route-fullscreen .fs-icon {
  font-size: 13px;
  line-height: 1;
}

/* 원래대로 복원 버튼 (전체화면 헤더) */
.btn-fullscreen-close {
  display: none;
  align-items: center;
  gap: 5px;
  background: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
  transition: all 0.15s ease;
  user-select: none;
}

.btn-fullscreen-close:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

/* 상단 HUD 내 위치 버튼 (기본 숨김, 전체화면 시 표시) */
.btn-hud-gps {
  display: none;
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.15s ease;
  user-select: none;
}

.btn-hud-gps:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-hud-gps.is-active {
  background: #2563eb;
  border-color: #3b82f6;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.6);
}

.btn-hud-gps.is-loading {
  background: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: wait;
}

/* 지도 내 플로팅 크게 보기 버튼 */
.btn-map-float-expand {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.15s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-map-float-expand:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: #ffffff;
  transform: translateY(-1px);
}

/* 전체화면 플로팅 원래대로 닫기 버튼 */
.btn-float-collapse {
  display: none;
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 25;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.92);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: all 0.15s ease;
  user-select: none;
}

.btn-float-collapse:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: translateY(-1px);
}

/* 액션 그룹 내 크게 보기 메인 버튼 */
.btn-action-fullscreen {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
  transition: all 0.2s ease;
  margin-bottom: 8px;
  user-select: none;
}

.btn-action-fullscreen:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.45);
}

/* --------------------------------------------------------------------------
   전체화면 활성화 상태 (.has-route-fullscreen & .is-fullscreen)
   -------------------------------------------------------------------------- */
body.has-route-fullscreen {
  overflow: hidden !important;
}

/* 1. 전체화면 진입 시 좌측 지도 및 기타 외부 UI 숨김 (간섭 방지) */
body.has-route-fullscreen .map-explore-card,
body.has-route-fullscreen .recommend-header,
body.has-route-fullscreen .recommend-filter-section,
body.has-route-fullscreen .legal-disclaimer-card,
body.has-route-fullscreen .global-sidebar-nav,
body.has-route-fullscreen .top-nav-bar,
body.has-route-fullscreen .sidebar-overlay,
body.has-route-fullscreen #image-modal {
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* 2. 우측 상세 패널 내의 다른 요소들 숨김 (빈 상태, 실시간 톡, 텍스트 정보 등) */
body.has-route-fullscreen #route-empty-state,
body.has-route-fullscreen #spot-live-talk-wrapper,
body.has-route-fullscreen .route-detail-wrap > *:not(.route-map-container) {
  display: none !important;
}

/* 3. 부모 컨테이너들의 Stacking Context 및 overflow 격리 해제 (지도 컨테이너 전체화면 보장) */
body.has-route-fullscreen .page-shell,
body.has-route-fullscreen .recommend-layout-grid,
body.has-route-fullscreen .detail-route-card,
body.has-route-fullscreen #spot-route-content,
body.has-route-fullscreen .route-detail-wrap {
  position: static !important;
  transform: none !important;
  contain: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  overflow: visible !important;
  visibility: visible !important;
}

/* 4. 전체화면 지도 컨테이너 최상위 보장 */
.route-map-container.is-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  width: 100vw !important;
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  z-index: 99999999 !important;
  border-radius: 0 !important;
  border: none !important;
  margin: 0 !important;
  background: #0f172a !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: none !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.route-map-container.is-fullscreen * {
  visibility: visible !important;
}

.route-map-container.is-fullscreen .route-map-header-hud {
  padding: 12px 18px !important;
  background: #0f172a !important;
  color: #ffffff !important;
  border-bottom: 1px solid #334155 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
  z-index: 100 !important;
}

.route-map-container.is-fullscreen .hud-route-title {
  color: #f8fafc !important;
}

.route-map-container.is-fullscreen .hud-arrow {
  color: #64748b !important;
}

.route-map-container.is-fullscreen .hud-badge-diff {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) !important;
}

.route-map-container.is-fullscreen .route-map-viewport {
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 0 !important;
  width: 100% !important;
  position: relative !important;
  overflow: hidden !important;
  background: #e2e8f0 !important;
}

.route-map-container.is-fullscreen #route-kakao-map {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.route-map-container.is-fullscreen .route-map-legend {
  padding: 10px 18px !important;
  padding-bottom: max(10px, env(safe-area-inset-bottom, 10px)) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid #e2e8f0 !important;
  z-index: 100 !important;
}

.route-map-container.is-fullscreen .btn-route-fullscreen,
.route-map-container.is-fullscreen .btn-map-float-expand {
  display: none !important;
}

.route-map-container.is-fullscreen .btn-fullscreen-close,
.route-map-container.is-fullscreen .btn-float-collapse {
  display: inline-flex !important;
}

/* 전체화면 모드 시 내 위치(GPS) 버튼 - 상단 HUD & 지도 플로팅 동시 노출 */
.route-map-container.is-fullscreen .btn-hud-gps {
  display: inline-flex !important;
}

.route-map-container.is-fullscreen .btn-route-gps.btn-float-gps {
  display: inline-flex !important;
  position: absolute !important;
  z-index: 150 !important;
  bottom: 22px !important;
  left: 16px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1.5px solid #94a3b8 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

.route-map-container.is-fullscreen .btn-route-gps.btn-float-gps.is-active {
  background: #2563eb !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5) !important;
}

/* ==========================================================================
   모바일 전용 상단 UI 및 레이아웃 최적화 (@media max-width: 600px)
   ========================================================================== */
@media (max-width: 600px) {
  .recommend-page.page-shell {
    padding-top: 58px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .recommend-header {
    margin-bottom: 12px;
  }

  .recommend-header .header-nav-row {
    margin-bottom: 8px;
    gap: 8px;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
  }

  /* 모바일에서 불필요한 중복 100대 명소 정적 뱃지 숨김 */
  .badge-map-summary {
    display: none !important;
  }

  .badge-text-full {
    display: none !important;
  }

  .badge-text-short {
    display: inline !important;
  }

  .nav-back-full {
    display: none !important;
  }

  .nav-back-short {
    display: inline !important;
  }

  .back-button {
    font-size: 12px;
    padding: 5px 11px;
    height: 30px;
    line-height: 1;
  }

  .recommend-stats-badge {
    font-size: 12px;
    padding: 5px 11px;
    height: 30px;
    line-height: 1;
  }

  .recommend-header .brand-wrapper {
    margin: 6px 0 10px;
    gap: 12px;
    max-width: 100%;
  }

  .recommend-header .brand-character {
    width: 52px;
    height: 52px;
  }

  .recommend-header .title-row {
    gap: 6px;
    flex-wrap: wrap;
  }

  .recommend-header .title-row h1,
  .recommend-header h1 {
    font-size: clamp(0.95rem, 3.8vw, 1.25rem) !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  .recommend-header .intro {
    font-size: 0.8rem;
    line-height: 1.42;
    margin-top: 3px;
    padding: 0 2px;
  }

  .legal-disclaimer-card {
    padding: 9px 12px;
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .legal-disclaimer-card .disclaimer-title {
    font-size: 12px;
  }

  .legal-disclaimer-card .disclaimer-text {
    font-size: 11px;
    line-height: 1.45;
  }

  .recommend-filter-section {
    padding: 11px 12px;
    margin-bottom: 14px;
    border-radius: 14px;
  }

  .recommend-filter-row {
    gap: 6px;
    margin-bottom: 8px;
  }

  .spot-search-row {
    gap: 6px;
    margin-bottom: 8px;
  }

  .spot-search-input {
    padding: 7px 30px 7px 11px;
    font-size: 12px;
    border-radius: 8px;
  }

  .spot-search-input::placeholder {
    font-size: 11px;
  }

  .spot-search-item {
    padding: 8px 10px;
  }

  .spot-search-title {
    font-size: 12px;
  }

  .spot-search-sub {
    font-size: 10.5px;
  }

  .spot-search-diff {
    font-size: 10px;
    padding: 1px 5px;
  }

  .filter-row-label {
    font-size: 11.5px;
    min-width: 54px;
  }

  .rec-pill {
    padding: 4px 9px;
    font-size: 11.5px;
  }

  .map-explore-card {
    border-radius: 16px;
  }

  .map-card-header {
    padding: 9px 12px;
  }

  .map-header-title {
    font-size: 13px;
  }

  .map-container-wrap {
    height: 400px;
  }

  .map-legend-bar {
    padding: 8px 10px;
    font-size: 11px;
    gap: 6px;
  }
}

/* ==========================================================================
   SEO 박지 디렉토리 섹션 (Google AdSense & Search Bot 친화형)
   ========================================================================== */
.seo-spots-directory {
  margin-top: 36px;
  margin-bottom: 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.04);
}

.seo-spots-directory .dir-header {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
}

.seo-spots-directory .dir-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.seo-spots-directory .dir-subtitle {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

.seo-region-group {
  margin-bottom: 36px;
}

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

.seo-region-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.seo-region-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.seo-region-count {
  font-size: 0.8rem;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 3px 10px;
  border-radius: 9999px;
  font-weight: 700;
}

.seo-region-desc {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.seo-spots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 14px;
}

.seo-spot-card {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.seo-spot-card:hover {
  background: #ffffff;
  border-color: #6366f1;
  box-shadow: 0 8px 20px -4px rgba(99, 102, 241, 0.15);
  transform: translateY(-3px);
}

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

.seo-spot-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.4;
}

.seo-spot-card-diff {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  background: #e0e7ff;
  color: #4338ca;
  white-space: nowrap;
}

.seo-spot-card-desc {
  font-size: 0.84rem;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.seo-spot-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}

.seo-spot-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.seo-spot-card-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f46e5;
  transition: color 0.15s ease;
}

.seo-spot-card:hover .seo-spot-card-link {
  color: #3730a3;
  text-decoration: underline;
}

@media (max-width: 768px) {
  .seo-spots-directory {
    padding: 20px 16px;
  }
  .seo-spots-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   116대 명소 디렉토리 바로가기 배너 카드 (recommend.html용)
   ========================================================================== */
.spots-directory-banner-card {
  margin-top: 32px;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border: 1px solid #334155;
  border-radius: 18px;
  padding: 26px 24px;
  color: #ffffff;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15);
}

.dir-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.dir-banner-text-group {
  flex: 1;
  min-width: 280px;
}

.dir-banner-badge {
  display: inline-block;
  background: #6366f1;
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-bottom: 10px;
}

.dir-banner-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 8px 0;
  color: #ffffff;
}

.dir-banner-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
  margin: 0;
}

.dir-banner-action {
  display: flex;
  align-items: center;
}

.dir-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #6366f1;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.dir-banner-btn:hover {
  background: #4f46e5;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.45);
}

.dir-banner-btn .btn-arrow {
  font-size: 1.1rem;
  transition: transform 0.15s ease;
}

.dir-banner-btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   spots.html 전용 검색 & 필터 스타일
   ========================================================================== */
.spots-dir-filter-bar {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  margin-bottom: 24px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.spots-dir-search-wrap {
  position: relative;
  margin-bottom: 14px;
}

.spots-dir-search-input {
  width: 100%;
  padding: 12px 42px 12px 16px;
  font-size: 0.95rem;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.spots-dir-search-input:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.spots-dir-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.spots-dir-search-clear:hover {
  color: #475569;
}

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

.spots-dir-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 9999px;
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  transition: all 0.15s ease;
  border: 1px solid #e2e8f0;
}

.spots-dir-pill:hover,
.spots-dir-pill.active {
  background: #6366f1;
  color: #ffffff;
  border-color: #6366f1;
}

.spots-empty-search {
  text-align: center;
  padding: 40px 20px;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  margin: 20px 0;
  display: none;
}

.spots-empty-search p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}



