/* ============================================================
   China Industry Intelligence Map — module styles
   Reuses Canton Concierge tokens (--navy, --steel, --mist...)
   Kept separate for clean component isolation.
   ============================================================ */

/* ---------- Sub-nav (hub quick links) ---------- */
.subnav {
  position: sticky;
  top: 5rem;
  z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.subnav .inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1.5rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.subnav a {
  flex: none;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--slate);
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  white-space: nowrap;
  transition: all .2s ease;
  text-decoration: none;
}
.subnav a:hover { color: var(--navy); border-color: var(--steel); }

/* ---------- Page hero (light, for hub + detail) ---------- */
.page-hero {
  background: linear-gradient(180deg, #fff 0%, var(--mist) 100%);
  border-bottom: 1px solid var(--line);
  padding: 7rem 0 4.5rem;
}
.page-hero .eyebrow { color: var(--steel); }
.page-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0.8rem 0 1.1rem;
}
.page-hero p.lead {
  color: var(--slate);
  font-weight: 300;
  font-size: 1.12rem;
  line-height: 1.7;
  max-width: 44rem;
}
.page-hero .hero-cta { margin-top: 2rem; display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- Map ---------- */
.map-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 940px) { .map-grid { grid-template-columns: 1.55fr 1fr; align-items: stretch; } }

.map-stage {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  overflow: hidden;
}
.map-stage svg { width: 100%; height: auto; display: block; }

.map-node { cursor: pointer; }
.map-node circle { transition: r .2s ease, fill .2s ease, stroke-width .2s ease; }
.map-node .dot {
  fill: var(--navy);
  stroke: #fff;
  stroke-width: 2;
}
.map-node .ring {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.5;
  opacity: 0;
  transition: opacity .25s ease, r .25s ease;
}
.map-node .label {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  fill: var(--ink);
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 3px;
  stroke-linejoin: round;
}
.map-node:hover .dot, .map-node.active .dot { r: 11; fill: var(--steel); }
.map-node:hover .ring, .map-node.active .ring { opacity: 1; r: 22; }
.map-node:hover .label, .map-node.active .label { fill: var(--navy); }
.map-node.dim { opacity: 0.22; }
.map-node.dim .label { opacity: 0; }
.map-region {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  fill: var(--slate);
  opacity: 0.55;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* side panel */
.map-side {
  background: var(--navy);
  color: #fff;
  border-radius: 10px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
}
.map-side h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; font-weight: 500; margin: 0 0 0.4rem; }
.map-side .side-sub { color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 1.2rem; }
.map-side .side-body { color: rgba(255,255,255,0.82); font-weight: 300; line-height: 1.7; font-size: 0.95rem; }
.map-side .side-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0 1.4rem; }
.map-side .side-link { margin-top: auto; }

/* ---------- Industry chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.chip .swatch { width: 9px; height: 9px; border-radius: 50%; }
.chip:hover { border-color: var(--steel); }
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip.active .swatch { box-shadow: 0 0 0 2px rgba(255,255,255,0.4); }

/* ---------- Cards (city / exhibition) ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.spot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  text-decoration: none;
  color: inherit;
}
.spot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11,36,64,0.08);
  border-color: #cfd8e0;
}
.spot-card .sc-region { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--steel); font-weight: 600; }
.spot-card .sc-name { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--navy); font-weight: 500; margin: 0.4rem 0 0.5rem; }
.spot-card .sc-tag { color: var(--slate); font-weight: 300; font-size: 0.95rem; line-height: 1.6; flex: 1; }
.spot-card .sc-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 1rem; }
.tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--mist);
  border-radius: 4px;
  padding: 0.25rem 0.55rem;
}
.spot-card .sc-more { margin-top: 1.1rem; font-size: 0.85rem; font-weight: 600; color: var(--steel); }

/* ---------- Trip Planner ---------- */
.planner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 940px) { .planner { grid-template-columns: 340px 1fr; align-items: start; } }
.planner-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.6rem;
}
.planner-form .pf-field { margin-bottom: 1rem; }
.planner-form label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; color: var(--slate); margin-bottom: 0.4rem; text-transform: uppercase; }
.planner-form select,
.planner-form .pf-cities { width: 100%; }
.planner-form select {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
}
.pf-cities { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pf-city {
  font-size: 0.82rem; font-weight: 600; color: var(--navy);
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 0.4rem 0.85rem; cursor: pointer; transition: all .2s ease;
}
.pf-city.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.planner-result {
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.8rem;
  min-height: 200px;
}
.planner-result h3 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: 1.5rem; font-weight: 500; margin: 0 0 1rem; }
.route-day {
  display: flex;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px dashed var(--line);
}
.route-day:last-child { border-bottom: none; }
.route-day .rd-num {
  flex: none;
  width: 2.2rem; height: 2.2rem;
  border-radius: 50%;
  background: var(--navy); color: #fff;
  font-family: 'Playfair Display', serif;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 600;
}
.route-day .rd-title { font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.route-day .rd-desc { color: var(--slate); font-weight: 300; font-size: 0.92rem; line-height: 1.6; }
.planner-empty { color: var(--slate); font-weight: 300; }

/* ---------- Detail page ---------- */
.detail-hero { background: var(--navy); color: #fff; padding: 7rem 0 4rem; }
.detail-hero .eyebrow { color: rgba(255,255,255,0.6); }
.detail-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 600; letter-spacing: -0.02em; margin: 0.6rem 0;
}
.detail-hero .tagline { color: rgba(255,255,255,0.78); font-weight: 300; font-size: 1.15rem; max-width: 40rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; margin-top: 1.6rem; color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.detail-meta b { color: #fff; font-weight: 600; }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 1.25rem; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem;
}
.stat .s-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--navy); font-weight: 600; }
.stat .s-label { color: var(--slate); font-size: 0.85rem; font-weight: 300; margin-top: 0.2rem; }

.why-list { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 720px) { .why-list { grid-template-columns: 1fr 1fr; } }
.why-item { display: flex; gap: 0.9rem; align-items: flex-start; }
.why-item .wi-num { flex: none; color: var(--steel); font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.1rem; }
.why-item p { color: var(--slate); font-weight: 300; line-height: 1.65; }

.sec-head { max-width: 46rem; margin-bottom: 2.2rem; }
.sec-head .eyebrow { color: var(--steel); }
.sec-head h2 { font-family: 'Playfair Display', serif; color: var(--navy); font-size: clamp(1.8rem,4vw,2.6rem); font-weight: 500; line-height: 1.15; margin: 0.5rem 0; }
.sec-head p { color: var(--slate); font-weight: 300; line-height: 1.7; }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.7rem; }
.check-list li { display: flex; gap: 0.7rem; align-items: flex-start; color: var(--slate); font-weight: 300; line-height: 1.6; }
.check-list li::before { content: ""; flex: none; margin-top: 0.45rem; width: 7px; height: 7px; border-radius: 50%; background: var(--steel); }

.breadcrumb { font-size: 0.82rem; color: var(--slate); margin-bottom: 1.2rem; }
.breadcrumb a { color: var(--steel); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- Reveal (shared) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
