/* heritage map: list and site views inside the shared card */
.h-card .card-scroll { padding-top: 16px; }
.h-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; font-weight: 800; color: var(--red-deep); margin-bottom: 8px; }
.h-filters { display: flex; gap: 6px; margin-bottom: 10px; }
.h-filters button { padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 1px solid var(--line); background: #fff; }
.h-filters button.on { background: var(--red); border-color: var(--red); color: #fff; }
#hSearch { width: 100%; font: inherit; font-size: 13.5px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; margin-bottom: 8px; outline: none; }
#hSearch:focus { border-color: var(--gold); }
.h-list { list-style: none; margin: 0; padding: 0; }
.h-list button { width: 100%; display: grid; grid-template-columns: 30px 1fr auto; gap: 10px; align-items: center; text-align: start; padding: 7px 8px; margin: 0 -8px; border-radius: 12px; }
.h-list button:hover { background: rgba(204, 51, 51, .06); }
.h-list button.on { background: rgba(204, 51, 51, .1); }
.h-list button.future { opacity: .38; }
.h-list .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--red); color: #fff; }
.h-list .n.nat { background: #3f7a4e; }
.h-list .nm { font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.h-list .yr { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.h-back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--red-deep); margin-bottom: 10px; }
.h-back svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
[dir='rtl'] .h-back svg { transform: scaleX(-1); }
.h-photo { margin: 0 0 12px; border-radius: 14px; overflow: hidden; background: #e8dfcf; position: relative; aspect-ratio: 16 / 10; }
.h-photo img { width: 100%; height: 100%; object-fit: cover; display: block; animation: rise .8s ease-out; }
.h-photo figcaption { position: absolute; inset-inline-end: 6px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0, 0, 0, .42); padding: 2px 7px; border-radius: 6px; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; }
.h-photo figcaption a { color: #fff; }
.h-meta { display: flex; align-items: center; gap: 8px; }
.h-no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--red); color: #fff; }
.h-year { font-size: 12.5px; color: var(--ink-3); font-weight: 700; }
.chip.t-n { background: rgba(63, 122, 78, .14); color: #2f6b45; }
.chip.t-c { background: rgba(204, 51, 51, .1); color: var(--red-deep); }
#sName { font-size: 24px; font-weight: 900; line-height: 1.35; margin: 8px 0 2px; }
.h-alt { font-size: 12.5px; color: var(--ink-3); }
.h-prov { font-size: 13px; color: var(--gold); font-weight: 700; margin: 4px 0 10px; }
.h-parts { display: flex; flex-wrap: wrap; gap: 6px; margin: -2px 0 12px; }
.h-parts button { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(187, 122, 57, .12); color: #7c4d29; }
.h-parts button:hover { background: rgba(187, 122, 57, .22); }
.h-step { display: flex; justify-content: space-between; margin-top: 14px; }
[dir='rtl'] .h-step svg { transform: scaleX(-1); }
.h-track #ticks i { height: 12px; top: 3px; width: 3px; background: var(--red); }
.h-track #ticks i.nat { background: #3f7a4e; }
.h-track #segs { background: rgba(55, 38, 30, .08); }
.h-track #fill { position: absolute; top: 8px; height: 10px; left: 0; border-radius: 6px; background: rgba(204, 51, 51, .35); }
.lbl.site span { font-size: 12.5px; font-weight: 800; color: var(--ink); background: rgba(253, 250, 244, .9); padding: 2px 9px; border-radius: 999px; box-shadow: 0 3px 10px -6px rgba(55, 38, 30, .5); transform: translate(-50%, -100%); }
.lbl.site.on span { background: var(--red); color: #fff; animation: pop .5s cubic-bezier(.2, 1.5, .4, 1); }
.lbl.part span { font-size: 11px; font-weight: 700; color: #7c4d29; text-shadow: 0 0 5px var(--card-solid), 0 0 10px var(--card-solid); transform: translate(-50%, -120%); }
@media (max-width: 760px) {
  .h-card .h-photo { aspect-ratio: 16 / 8; }
  #card.collapsed #listView .h-list, #card.collapsed #hSearch, #card.collapsed .h-filters,
  #card.collapsed #siteView .h-photo, #card.collapsed #siteView p, #card.collapsed #siteView .h-parts, #card.collapsed .h-step, #card.collapsed .beat-links { display: none !important; }
  #card.collapsed #sName { font-size: 18px; }
}

.h-open { display: none; }
@media (max-width: 760px) {
  #card.collapsed .h-open { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: #fff; background: var(--red); padding: 5px 12px; border-radius: 999px; }
  #card.collapsed .h-open::after { content: '▴'; }
  #card.collapsed .h-head { align-items: center; margin-bottom: 0; }
}
