/* ============================================================
   HeartEase — Scenic-Spot Atlas styles (explore.html)
   Loads AFTER guide.css; reuses its tokens, masthead, board &
   pills. Only the atlas-specific layer lives here.
   ============================================================ */

/* masthead stat strip */
.hh-atlas__masthead .hh-guide__masthead-wm { font-size: 340px; right: 2%; bottom: -54px; }
.hh-atlas__stats { display: flex; align-items: center; gap: 16px; margin-top: 26px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(247,242,233,0.7); flex-wrap: wrap; }
.hh-atlas__stats strong { color: var(--brand-gold); font-weight: 700; font-size: 15px; }
.hh-atlas__stats .dot { width: 3px; height: 3px; border-radius: 999px; background: rgba(247,242,233,0.4); }

/* "back to the guide hub" button on the atlas masthead */
.hh-atlas__toguide { display: inline-flex; align-items: center; gap: 10px; margin-top: 30px; padding: 11px 20px; border: 1px solid rgba(230,182,85,0.5); border-radius: 2px; background: transparent; color: var(--brand-gold); font-family: var(--font-sans); font-weight: 700; font-size: 13px; letter-spacing: 0.03em; text-decoration: none; transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.hh-atlas__toguide:hover { background: var(--brand-gold); color: var(--brand-navy); border-color: var(--brand-gold); }
.hh-atlas__toguide-arrow { transition: transform var(--dur-fast) var(--ease-out); }
.hh-atlas__toguide:hover .hh-atlas__toguide-arrow { transform: translateX(-3px); }
.hh-atlas__toguide-cn { font-family: var(--font-serif-cn); font-weight: 700; opacity: 0.78; }

.hh-atlas__stage { padding-top: 40px; }

/* ============================================================
   Schematic region selector
   ============================================================ */
.hh-atlas__map { position: relative; background: var(--brand-navy); border: 1px solid var(--rule); border-top: 3px solid var(--brand-gold); border-radius: 3px; overflow: hidden; margin-bottom: 30px; padding: 22px 24px; }
.hh-atlas__map-pattern { position: absolute; inset: 0; background-image: url('/assets/pattern-meridians.svg'); background-size: 220px 220px; opacity: 0.07; filter: invert(1) brightness(2); pointer-events: none; }
.hh-atlas__map-head { position: relative; z-index: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.hh-atlas__map-label { font-family: var(--font-sans); font-weight: 800; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brand-gold); }
.hh-atlas__map-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: rgba(247,242,233,0.5); }

/* the positioned field — abstract Jiangxi, not to scale */
.hh-atlas__map-field { position: relative; z-index: 2; height: 320px; margin: 14px 0 6px; }
.hh-atlas__node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 96px; padding: 10px 14px; background: rgba(247,242,233,0.05); border: 1px solid rgba(247,242,233,0.18); border-radius: 8px; cursor: pointer; color: var(--parchment); transition: all 160ms var(--ease-out); backdrop-filter: blur(2px); }
.hh-atlas__node:hover { background: rgba(247,242,233,0.12); border-color: var(--brand-gold); transform: translate(-50%, -50%) scale(1.05); z-index: 5; }
.hh-atlas__node.is-active { background: var(--brand-red); border-color: var(--brand-red-bright); box-shadow: 0 8px 24px rgba(211,21,21,0.4); z-index: 6; }
.hh-atlas__node.is-thematic { border-style: dashed; }
.hh-atlas__node.is-empty { opacity: 0.4; }
.hh-atlas__node-zh { font-family: var(--font-serif-cn); font-weight: 700; font-size: 17px; line-height: 1; color: var(--brand-gold); }
.hh-atlas__node.is-active .hh-atlas__node-zh { color: #fff; }
.hh-atlas__node-name { font-family: var(--font-sans); font-weight: 600; font-size: 12px; line-height: 1.1; white-space: nowrap; }
.hh-atlas__node-num { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; display: flex; align-items: center; justify-content: center; background: var(--brand-navy-deep); border: 1px solid rgba(247,242,233,0.3); border-radius: 999px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; color: var(--brand-gold); }
.hh-atlas__node.is-active .hh-atlas__node-num { background: #fff; color: var(--brand-red); border-color: #fff; }

.hh-atlas__map-all { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 8px 16px; background: rgba(247,242,233,0.06); border: 1px solid rgba(247,242,233,0.22); border-radius: 999px; cursor: pointer; font-family: var(--font-sans); font-weight: 700; font-size: 12.5px; color: var(--parchment); transition: all 140ms var(--ease-out); }
.hh-atlas__map-all:hover { border-color: var(--brand-gold); color: var(--brand-gold); }
.hh-atlas__map-all.is-active { background: var(--parchment); color: var(--brand-navy); border-color: var(--parchment); }
.hh-atlas__map-all-num { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

/* region pills fallback (hidden until the map is too cramped) */
.hh-atlas__regionpills { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

/* ============================================================
   Filter board additions
   ============================================================ */
.hh-atlas__board { margin-bottom: 26px; }
.hh-atlas__board-foot { flex-wrap: wrap; }
.hh-atlas__viewtoggle { flex: none; }
.hh-atlas__favtoggle { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border: 1px solid var(--rule); background: #fff; border-radius: 999px; cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; color: var(--ink-soft); transition: all 140ms var(--ease-out); }
.hh-atlas__favtoggle i, .hh-atlas__favtoggle svg { width: 14px; height: 14px; stroke-width: 2; }
.hh-atlas__favtoggle:hover { border-color: var(--brand-navy); color: var(--brand-navy); }
.hh-atlas__favtoggle.is-active { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--brand-navy-ink); }
.hh-atlas__favtoggle.is-active i, .hh-atlas__favtoggle.is-active svg { fill: var(--brand-navy-ink); }
.hh-atlas__favtoggle-num { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; }

.hh-atlas__search { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border: 1px solid var(--rule); background: #fff; border-radius: 999px; min-width: 180px; }
.hh-atlas__search i, .hh-atlas__search svg { width: 14px; height: 14px; color: var(--ink-mute); stroke-width: 2; flex: none; }
.hh-atlas__search input { border: none; outline: none; background: none; font-family: var(--font-sans); font-size: 13px; color: var(--ink); width: 100%; }
.hh-atlas__search-x { border: none; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--ink-mute); padding: 0 2px; }
.hh-atlas__search-x:hover { color: var(--brand-red); }

/* ============================================================
   Grouped sections
   ============================================================ */
.hh-atlas__group { margin-bottom: 40px; }
.hh-atlas__group-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.hh-atlas__group-title { font-family: var(--font-display); font-weight: 700; font-size: 25px; color: var(--brand-navy); margin: 0; letter-spacing: -0.01em; display: flex; align-items: baseline; gap: 11px; }
.hh-atlas__group-cn { font-family: var(--font-serif-cn); font-weight: 700; font-size: 16px; color: var(--brand-red); }
.hh-atlas__group-tag { font-family: var(--font-sans); font-size: 13px; color: var(--ink-mute); flex: 1; }
.hh-atlas__group-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ink-mute); flex: none; }

/* ---------- compact directory rows ---------- */
.hh-atlas__rows { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: 3px; overflow: hidden; }
.hh-atlas__row { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--rule-soft); cursor: pointer; transition: background 130ms var(--ease-out); position: relative; }
.hh-atlas__row:last-child { border-bottom: none; }
.hh-atlas__row:hover { background: var(--parchment-soft); }
.hh-atlas__row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--brand-red); transform: scaleY(0); transform-origin: center; transition: transform 150ms var(--ease-out); }
.hh-atlas__row:hover::before { transform: scaleY(1); }

.hh-atlas__star { flex: none; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: none; background: none; cursor: pointer; color: var(--rule); transition: color 130ms var(--ease-out), transform 130ms var(--ease-out); }
.hh-atlas__star i, .hh-atlas__star svg { width: 17px; height: 17px; stroke-width: 2; }
.hh-atlas__star:hover { color: var(--brand-gold); transform: scale(1.15); }
.hh-atlas__star.is-on { color: var(--brand-gold); }
.hh-atlas__star.is-on i, .hh-atlas__star.is-on svg { fill: var(--brand-gold); }

.hh-atlas__row-main { flex: 1; min-width: 0; }
.hh-atlas__row-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.1; color: var(--brand-navy); letter-spacing: -0.01em; }
.hh-atlas__row:hover .hh-atlas__row-name { color: var(--brand-red); }
.hh-atlas__row-zh { font-family: var(--font-serif-cn); font-weight: 700; font-size: 15px; color: var(--brand-red); }
.hh-atlas__row:hover .hh-atlas__row-zh { color: var(--brand-navy); }
.hh-atlas__row-line { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); margin: 5px 0 0; max-width: 760px; text-wrap: pretty; }

.hh-atlas__row-aside { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.hh-atlas__row-region { font-family: var(--font-sans); font-weight: 700; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-navy); background: var(--parchment-deep); padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.hh-atlas__row-time { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--ink-mute); white-space: nowrap; }
.hh-atlas__row-time i, .hh-atlas__row-time svg { width: 12px; height: 12px; stroke-width: 2; color: var(--ink-mute); }
.hh-atlas__row-caret { flex: none; color: var(--rule); transition: color 130ms var(--ease-out), transform 130ms var(--ease-out); }
.hh-atlas__row-caret i, .hh-atlas__row-caret svg { width: 18px; height: 18px; stroke-width: 2; }
.hh-atlas__row:hover .hh-atlas__row-caret { color: var(--brand-red); transform: translateX(3px); }

/* ---------- tier badges ---------- */
.hh-atlas__badge { font-family: var(--font-sans); font-weight: 800; font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase; padding: 3px 7px; border-radius: 2px; white-space: nowrap; line-height: 1.2; transform: translateY(-1px); }
.hh-atlas__badge.is-unesco { background: var(--brand-gold); color: var(--brand-navy-ink); }
.hh-atlas__badge.is-rating { background: var(--brand-red); color: #fff; }
.hh-atlas__badge.is-viral { background: rgba(192,91,98,0.16); color: var(--brand-sunset); border: 1px solid rgba(192,91,98,0.4); }

/* ============================================================
   Detail panel (slide-in)
   ============================================================ */
.hh-atlas__overlay { position: fixed; inset: 0; z-index: 200; background: rgba(2,29,66,0.5); backdrop-filter: blur(3px); display: flex; justify-content: flex-end; animation: hh-atlas-fade 200ms var(--ease-out); }
@keyframes hh-atlas-fade { from { opacity: 0; } to { opacity: 1; } }
.hh-atlas__panel { width: min(480px, 100%); height: 100%; background: var(--parchment); overflow-y: auto; box-shadow: -24px 0 64px rgba(2,29,66,0.32); animation: hh-atlas-slide 280ms var(--ease-out); position: relative; }
@keyframes hh-atlas-slide { from { transform: translateX(40px); opacity: 0.4; } to { transform: translateX(0); opacity: 1; } }
.hh-atlas__panel-close { position: absolute; top: 16px; right: 16px; z-index: 4; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: none; border-radius: 999px; background: rgba(2,29,66,0.55); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background 140ms var(--ease-out); }
.hh-atlas__panel-close:hover { background: var(--brand-red); }
.hh-atlas__panel-close i, .hh-atlas__panel-close svg { width: 18px; height: 18px; stroke-width: 2.5; }

.hh-atlas__panel-media { position: relative; height: 240px; background-size: cover; background-position: center; background-color: var(--brand-navy); }
.hh-atlas__panel-media.hh-ph { background: var(--brand-navy); }
.hh-atlas__panel-media .hh-ph__label { color: rgba(247,242,233,0.55); }
.hh-atlas__panel-badges { position: absolute; left: 18px; bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }

.hh-atlas__panel-body { padding: 26px 28px 36px; }
.hh-atlas__panel-region { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-red); margin-bottom: 12px; }
.hh-atlas__panel-region .hh-cn { color: var(--ink-mute); font-weight: 500; letter-spacing: 0.02em; }
.hh-atlas__panel-title { font-family: var(--font-display); font-weight: 700; font-size: 34px; line-height: 1.06; letter-spacing: -0.02em; color: var(--brand-navy); margin: 0; text-wrap: balance; }
.hh-atlas__panel-zh { font-family: var(--font-serif-cn); font-weight: 700; font-size: 20px; color: var(--brand-red); margin: 8px 0 0; }
.hh-atlas__panel-line { font-size: 15.5px; line-height: 1.66; color: var(--ink); margin: 16px 0 0; text-wrap: pretty; }

.hh-atlas__panel-fav { display: inline-flex; align-items: center; gap: 8px; margin: 20px 0 0; padding: 9px 16px; border: 1px solid var(--rule); background: #fff; border-radius: 999px; cursor: pointer; font-family: var(--font-sans); font-weight: 600; font-size: 12.5px; color: var(--ink-soft); transition: all 140ms var(--ease-out); }
.hh-atlas__panel-fav i, .hh-atlas__panel-fav svg { width: 15px; height: 15px; stroke-width: 2; }
.hh-atlas__panel-fav:hover { border-color: var(--brand-gold); color: var(--brand-navy); }
.hh-atlas__panel-fav.is-on { background: var(--brand-gold); border-color: var(--brand-gold); color: var(--brand-navy-ink); }
.hh-atlas__panel-fav.is-on i, .hh-atlas__panel-fav.is-on svg { fill: var(--brand-navy-ink); }

.hh-atlas__facts { margin: 24px 0 0; border-top: 1px solid var(--rule); }
.hh-atlas__fact { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--rule-soft); align-items: baseline; }
.hh-atlas__fact-k { font-family: var(--font-sans); font-weight: 700; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.hh-atlas__fact-v { font-family: var(--font-sans); font-size: 14px; color: var(--ink); }
.hh-atlas__fact-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hh-atlas__chip { font-family: var(--font-sans); font-weight: 600; font-size: 11.5px; color: var(--brand-navy); background: var(--parchment-deep); padding: 4px 10px; border-radius: 999px; }

.hh-atlas__sub { margin: 24px 0 0; padding: 18px 20px; background: var(--parchment-soft); border: 1px solid var(--rule); border-radius: 3px; }
.hh-atlas__sub-label { font-family: var(--font-sans); font-weight: 800; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--brand-navy); margin-bottom: 12px; }
.hh-atlas__sub-label .hh-cn { color: var(--ink-mute); font-weight: 500; letter-spacing: 0.02em; }
.hh-atlas__sub-list { list-style: none; margin: 0; padding: 0; }
.hh-atlas__sub-list li { padding: 9px 0; border-bottom: 1px solid var(--rule-soft); }
.hh-atlas__sub-list li:last-child { border-bottom: none; }
.hh-atlas__sub-name { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--brand-navy); }
.hh-atlas__sub-zh { font-family: var(--font-serif-cn); font-weight: 700; font-size: 13px; color: var(--brand-red); }
.hh-atlas__sub-note { display: block; font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); margin-top: 2px; }

.hh-atlas__panel-cta { display: flex; flex-direction: column; gap: 10px; margin: 26px 0 0; }
.hh-atlas__panel-cta .hh-btn { justify-content: center; }
.hh-atlas__panel-cta .hh-btn i, .hh-atlas__panel-cta .hh-btn svg { width: 16px; height: 16px; flex: none; stroke-width: 2; }
.hh-atlas__panel-soon { font-family: var(--font-sans); font-size: 13px; color: var(--ink-mute); font-style: italic; padding: 6px 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hh-atlas__stage { padding-left: 24px; padding-right: 24px; }
  .hh-atlas__map { display: none; }
  .hh-atlas__regionpills { display: flex; }
}
@media (max-width: 720px) {
  .hh-atlas__row { flex-wrap: wrap; gap: 10px 14px; }
  .hh-atlas__row-aside { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; gap: 12px; padding-left: 46px; }
  .hh-atlas__row-caret { display: none; }
  .hh-atlas__search { min-width: 0; flex: 1; }
}
@media (max-width: 540px) {
  .hh-atlas__stage { padding-left: 18px; padding-right: 18px; }
  .hh-atlas__panel-title { font-size: 28px; }
  .hh-atlas__row-name { font-size: 17px; }
}
