/* ============================================
   TSINGPU Journey Map — 暖米白东方轻奢风
   v2026-06-10
   ============================================ */

:root {
  /* Brand Colors - Porcelain Elegance Theme */
  --primary-navy: #1B2A4A;
  --secondary-sage: #8BA888;
  --tertiary-earth: #C4956A;
  --metallic-gold: #9C7C4C;

  /* Neutrals */
  --bg-paper: #FFFDF7;
  --bg-light-gray: #F5F0E8;
  --text-main: #2D2D2D;
  --text-muted: #5A5A5A;
  --border-line: rgba(27, 42, 74, 0.1);

  /* Utility */
  --white: #FFFFFF;
  --shadow: 0 8px 32px rgba(27, 42, 74, 0.06);
  --radius: 2px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ====== 地图区整体布局 ====== */
.journey-map-section {
  padding: 0;
  background: var(--bg-paper);
  overflow: hidden;
  position: relative;
}

/* ====== 左右分栏 ====== */
.aman-layout {
  display: flex;
  width: 100%;
  height: 100vh;
}

/* ====== 左侧面板 ====== */
.left-panel {
  width: 55%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-paper);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
}
.left-panel::-webkit-scrollbar { display: none; }
.left-panel { scrollbar-width: none; -ms-overflow-style: none; }

.left-header {
  padding: 80px 56px 32px;
  border-bottom: 1px solid rgba(156,124,76,0.08);
  flex-shrink: 0;
}
.left-header .label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(156,124,76,0.45);
  margin-bottom: 16px;
  font-weight: 400;
}
.left-header h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 300;
  font-size: clamp(32px, 3.5vw, 44px);
  color: var(--text-main);
  margin-bottom: 16px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.left-header p {
  font-size: 13px;
  font-weight: 300;
  color: rgba(27,42,74,0.6);
  line-height: 1.7;
  max-width: 400px;
}

/* 目的地列表 */
.dest-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 56px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  box-sizing: border-box;
}
.dest-list::-webkit-scrollbar { display: none; }
.dest-list-item {
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  opacity: 0.85;
  box-sizing: border-box;
  padding: 20px 0;
  display: flex;
  flex-direction: row;
  gap: 28px;
  align-items: center;
  border-bottom: 1px solid rgba(27,42,74,0.04);
}
.dest-list-item:last-child { border-bottom: none; }
.dest-list-item:hover, .dest-list-item.active { opacity: 1; }
.dest-list-item .item-image {
  width: 42%;
  min-width: 42%;
  aspect-ratio: 16 / 10;
  background: var(--bg-light-gray);
  overflow: hidden;
  border-radius: 1px;
  position: relative;
}
.dest-list-item .item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}
.dest-list-item:hover .item-image img { transform: scale(1.03); }
.dest-list-item .item-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 4px 0;
}
.dest-list-item .item-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.dest-list-item .item-region {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 400;
}
.dest-list-item h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--text-main);
  margin-bottom: 0;
  letter-spacing: 0;
  line-height: 1.2;
}
.dest-list-item p {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.65;
  flex-shrink: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.dest-list-item .item-cta {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
  transition: all 0.4s ease;
  border-bottom: 1px solid var(--text-main);
  padding-bottom: 2px;
  flex-shrink: 0;
  align-self: flex-start;
}
.dest-list-item:hover .item-cta,
.dest-list-item.active .item-cta {
  color: var(--metallic-gold);
  border-bottom-color: var(--metallic-gold);
}

/* ====== 右侧地图 ====== */
.right-panel {
  width: 45%;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-paper);
  overflow: hidden;
  padding: 100px 0;
  box-sizing: border-box;
}

/* 可拖拽+缩放的地图容器 */
.map-scroll-container {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-footer-note {
  position: absolute;
  bottom: 12px;
  left: 0;
  right: 0;
  text-align: center;
  padding: 0 48px;
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.02em;
  z-index: 2;
}
.map-footer-note em {
  color: var(--metallic-gold);
  font-style: normal;
}

/* 隐藏缩放按钮 */
.zoom-controls,
.right-panel .zoom-controls { display: none !important; }

/* 缩放控件 */
.zoom-controls {
  position: absolute;
  bottom: 32px;
  right: 32px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 20;
}
.zoom-btn {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(156,124,76,0.15);
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  color: rgba(27,42,74,0.5);
  font-size: 18px;
  font-weight: 300;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  border-radius: 1px;
  user-select: none;
}
.zoom-btn:hover {
  background: rgba(156,124,76,0.1);
  color: var(--metallic-gold);
  border-color: rgba(156,124,76,0.35);
}
.zoom-level {
  font-size: 9px;
  letter-spacing: 0.1em;
  color: rgba(27,42,74,0.35);
  text-align: center;
  padding: 6px 0;
}

/* 入境口岸 — 大金色点 */
.gateway-dot { cursor: pointer; }
.gateway-dot circle {
  fill: var(--metallic-gold);
  stroke: var(--bg-light-gray);
  stroke-width: 2;
  transition: all 0.4s ease;
}
.gateway-dot:hover circle { r: 14; fill: var(--tertiary-earth); }
.gateway-dot text {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  fill: var(--text-muted);
  font-weight: 500;
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--bg-light-gray);
  stroke-width: 3;
}
.gateway-dot:hover text { fill: var(--secondary-sage); font-weight: 600; }

/* 青普目的地 — 小金色点 */
.dest-dot { cursor: pointer; }
.dest-dot circle {
  fill: rgba(139,168,136,0.6);
  stroke: var(--bg-light-gray);
  stroke-width: 1.5;
  transition: all 0.4s ease;
}
.dest-dot:hover circle { r: 8; fill: var(--metallic-gold); }
.dest-dot text {
  font-family: 'Inter', sans-serif;
  font-size: 8px;
  fill: var(--text-muted);
  font-weight: 400;
  pointer-events: none;
  paint-order: stroke;
  stroke: var(--bg-light-gray);
  stroke-width: 2.5;
}
.dest-dot:hover text { fill: var(--secondary-sage); font-weight: 500; }

/* 地图弹出卡片 */
.map-popup {
  position: absolute;
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border: 1px solid rgba(255,255,255,0.5);
  padding: 28px;
  width: 360px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 10;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(27,42,74,0.12), 0 0 0 1px rgba(156,124,76,0.08);
}
.map-popup.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }

.map-popup .popup-header { margin-bottom: 16px; }
.map-popup .popup-header .popup-city {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: 22px;
  color: var(--text-main);
  letter-spacing: 0.01em;
}
.map-popup .popup-header .popup-label {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(156,124,76,0.45);
  margin-top: 6px;
}

.map-popup .popup-weather {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  margin-bottom: 12px;
  border-top: 1px solid rgba(156,124,76,0.12);
  border-bottom: 1px solid rgba(156,124,76,0.12);
  font-size: 13px;
  color: rgba(27,42,74,0.75);
  min-height: 32px;
}
.map-popup .popup-weather .wt-emoji { font-size: 20px; }
.map-popup .popup-weather .wt-temp {
  font-size: 20px;
  font-weight: 400;
  color: rgba(27,42,74,0.7);
}
.map-popup .popup-weather .wt-detail {
  font-size: 11px;
  color: rgba(27,42,74,0.55);
}

.map-popup .popup-routes { margin-bottom: 12px; }
.map-popup .popup-route {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(156,124,76,0.04);
}
.map-popup .popup-route:hover { background: rgba(156,124,76,0.03); }
.map-popup .popup-route .route-icon { font-size: 18px; width: 28px; text-align: center; margin-top: 2px; }
.map-popup .popup-route .route-label {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(156,124,76,0.4);
}
.map-popup .popup-route .route-title {
  font-size: 14px;
  color: var(--text-main);
  font-weight: 400;
}
.map-popup .popup-route .route-meta {
  font-size: 11px;
  color: rgba(27,42,74,0.6);
  margin-top: 2px;
}
.map-popup .popup-route .route-desc {
  font-size: 12px;
  color: rgba(27,42,74,0.65);
  line-height: 1.6;
  margin-top: 6px;
}
.map-popup .popup-route .route-tags {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.map-popup .popup-route .route-tags span {
  font-size: 9px;
  letter-spacing: 0.05em;
  color: rgba(156,124,76,0.7);
  border: 1px solid rgba(156,124,76,0.25);
  padding: 2px 8px;
  border-radius: 4px;
}

.map-popup .popup-close {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(156,124,76,0.75);
  cursor: pointer;
  transition: color 0.4s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.map-popup .popup-close:hover { color: var(--metallic-gold); border-bottom-color: rgba(156,124,76,0.3); }

/* 关联青普目的地链接 */
.popup-dest-links {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(156,124,76,0.06);
}
.popup-dest-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(156,124,76,0.35);
  margin-bottom: 10px;
}
.popup-dest-link {
  font-size: 13px;
  font-weight: 400;
  color: rgba(27,42,74,0.7);
  cursor: pointer;
  padding: 5px 0;
  transition: all 0.3s ease;
}
.popup-dest-link:hover { color: var(--metallic-gold); }
.popup-dest-link .popup-dest-sub {
  font-size: 10px;
  color: rgba(156,124,76,0.25);
  margin-left: 6px;
}

/* Mobile */
@media (max-width: 900px) {
  .aman-layout { flex-direction: column; }
  .left-panel { width: 100%; height: auto; padding: 48px 28px; }
  .right-panel { height: 50vh; }
  .right-panel svg { width: 1000px; height: 580px; }
}
