/* =========================================================
   Share Top (Map + Summary Panel)
   - page-local 토큰 제거, 사용 지점에 값 직접 치환
   - 전역 토큰(--spacing-*, --color-*)은 유지
========================================================= */

/* =========================================================
   Top (Map + Summary Panel)
========================================================= */
.share-top {
  width: 100%;
  margin: var(--spacing-8) 0;
}

.share-top__grid {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: var(--spacing-6);
}

.share-top__map {
  
  overflow: hidden;
  background: var(--color-gray-100);
  border: 1px solid var(--color-gray-200);
  min-height: 340px;
}

#map, #map-pc, #map-mobile {
  width: 100%;
  height: 100%;
  min-height: 340px;
}

/* =========================================================
   Panel (Right)
========================================================= */
.share-top__panel {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.share-top__panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--spacing-3);
}

.share-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-gray-900);
  margin: 0;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}

.share-actions {
  display: flex;
  gap: var(--spacing-2);
  flex-shrink: 0;
}

/* =========================================================
   Info Cards
========================================================= */
.share-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3);
}

.share-info-card {
  background: #fff;
  border: 1px solid var(--color-gray-200);
  
  padding: var(--spacing-4);
}

.share-info-card__label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-gray-600);
  margin-bottom: 6px;
}

.share-info-card__value {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-gray-900);
  line-height: 1.45;
}

.share-info-card--price .share-info-card__value {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.share-price {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-gray-900);
}

.share-price-sub {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-gray-600);
}

/* =========================================================
   Map Marker
========================================================= */
.share-map-marker {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #5347AA;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.18);
}

/* =========================================================
   Toast
========================================================= */
.share-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.86);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
  z-index: 9999;
}

.share-toast.active {
  opacity: 1;
}

/* =========================================================
   Modal Scroll Lock
========================================================= */
body.modal-open {
  overflow: hidden;
}

/* =========================================================
   Print
========================================================= */
@media print {
  .share-actions,
  .btn-detail,
  .share-toast {
    display: none !important;
  }

  .share-top__grid {
    grid-template-columns: 1fr;
  }

  #map, #map-pc, #map-mobile {
    min-height: 420px;
  }
}

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 980px) {
  .share-top__grid {
    grid-template-columns: 1fr;
  }

  .share-info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Layout Override for Share Page (No Sidebar)
========================================================= */
@media (min-width: 1200px) {
  .product-detail-layout {
    display: block !important;
    max-width: 800px;
    margin: 0 auto;
  }
}

/* =========================================================
   Print Overrides (Expand Accordion)
========================================================= */
@media print {
  .itinerary-content {
    max-height: none !important;
    overflow: visible !important;
  }
  .itinerary-chevron {
    display: none !important;
  }
}

/* =========================================================
   Enriched Visual Animations for Naver Map & Timeline
   ========================================================= */

@keyframes marker-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(255, 77, 77, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
  }
}

.active-pulse {
  transform: scale(1.4) !important;
  z-index: 99999 !important;
  background-color: #ff4d4d !important;
  border: 2px solid #fff !important;
  animation: marker-pulse 1.2s infinite !important;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

/* Marker Tooltip */
.marker-tooltip {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(30, 41, 59, 0.9);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  z-index: 999999;
}

.marker-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 4px;
  border-style: solid;
  border-color: rgba(30, 41, 59, 0.9) transparent transparent transparent;
}

.active-pulse .marker-tooltip {
  opacity: 1 !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Flowing Dashed Path Line */
@keyframes line-flow {
  to {
    stroke-dashoffset: -20;
  }
}

.share-top__map svg path[stroke], 
#naro-full-route-map svg path[stroke],
#map-full-route-pc svg path[stroke],
#map-full-route-mobile svg path[stroke],
.content-section svg path[stroke] {
  stroke-dasharray: 8, 5;
  animation: line-flow 1.2s linear infinite !important;
}

/* Active Timeline Card Glow */
.active-timeline-glow {
  border-left: 4px solid #ff4d4d !important;
  background-color: #fff9f9 !important;
  box-shadow: 0 4px 16px rgba(255, 77, 77, 0.15) !important;
  transform: scale(1.015);
  transition: all 0.3s ease;
}