/* ═══════════════════════════════════════════════════════════
   CHINA IN LENS — /tours index page
   Extends /css/main.css (tokens, header, cards, footer).
   ═══════════════════════════════════════════════════════════ */

/* ─────────── HERO (compact viewfinder) ─────────── */
.th-hero{
  position:relative;overflow:hidden;background:var(--ink);color:var(--bone);
  min-height:72svh;display:flex;align-items:flex-end;
  padding:170px var(--gutter) clamp(56px,7vw,96px);
}
.th-hero__media{position:absolute;inset:0;z-index:0;}
.th-hero__media img{
  width:100%;height:100%;object-fit:cover;
  transform:scale(1.06);
  animation:kenburns 20s ease-out forwards;
}
.th-hero__scrim{
  position:absolute;inset:0;z-index:1;
  background:
    linear-gradient(180deg,rgba(18,18,18,.78) 0%,rgba(18,18,18,.24) 34%,rgba(18,18,18,.34) 62%,rgba(18,18,18,.92) 100%),
    linear-gradient(100deg,rgba(18,18,18,.66) 0%,rgba(18,18,18,.08) 60%,rgba(18,18,18,.3) 100%);
}
.th-hero__body{
  position:relative;z-index:2;width:100%;max-width:var(--wrap);margin-inline:auto;
}
.th-hero__title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(2rem,5.6vw,5.6rem);line-height:1.04;
  letter-spacing:clamp(.1rem,.85vw,.95rem);
  text-transform:uppercase;color:#fff;
  margin-bottom:1.6rem;margin-left:-.05em;
  text-wrap:balance;
}
.th-hero__title .line{display:block;overflow:hidden;}
.th-hero__title .line > span{
  display:inline-block;transform:translateY(105%);
  transition:transform 1.15s var(--ease-out);
}
.is-ready .th-hero__title .line > span{transform:translateY(0);}
.is-ready .th-hero__title .line:nth-child(2) > span{transition-delay:.09s;}
.th-hero__rule{
  height:1px;width:100%;max-width:880px;margin-bottom:1.7rem;
  background:rgba(255,255,255,.32);
  transform:scaleX(0);transform-origin:left;
  transition:transform 1.3s var(--ease-out) .25s;
}
.is-ready .th-hero__rule{transform:scaleX(1);}
.th-hero__heading{
  font-family:var(--h1);font-weight:600;letter-spacing:-.012em;
  font-size:clamp(1.35rem,2.5vw,2.3rem);line-height:1.2;color:#fff;
  max-width:none;margin-bottom:1.6rem;text-wrap:pretty;
}
.th-hero__heading em{font-style:normal;color:var(--accent-hi);}
.th-hero__exif{
  display:inline-flex;align-items:center;flex-wrap:wrap;gap:.55rem;
  font-size:.6rem;font-weight:500;letter-spacing:.2em;text-transform:uppercase;
  color:rgba(255,255,255,.82);
  padding:.55rem .95rem;border-radius:999px;
  background:rgba(18,18,18,.3);border:1px solid rgba(255,255,255,.16);
  backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px);
}
.th-hero__exif .rec{width:7px;height:7px;border-radius:50%;background:var(--accent);animation:pulse 2.4s infinite;}
.th-hero__exif .sep{opacity:.4;}

/* ─────────── BROWSE: sidebar filters + results ─────────── */
.browse{padding-top:clamp(36px,4.4vw,64px);}
.browse__layout{
  display:grid;grid-template-columns:248px minmax(0,1fr);
  gap:clamp(30px,3.4vw,64px);align-items:start;
}

/* sidebar */
.filters{position:sticky;top:92px;}
.filters__title{
  font-family:var(--serif);font-weight:400;
  font-size:1.45rem;line-height:1.1;color:var(--tx);
  margin-bottom:1.5rem;
}
.filters__title em{color:var(--accent);}
.fgroup{padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--line-soft);}
.fgroup__label{
  font-size:.6rem;font-weight:500;letter-spacing:.24em;text-transform:uppercase;
  color:var(--tx-3);margin:0 0 .85rem;
}

/* chip base */
.chip{
  --ch:38px;
  display:flex;align-items:center;gap:.5rem;
  height:var(--ch);padding:0 .95rem;border-radius:999px;
  border:1px solid rgba(18,18,18,.18);background:transparent;color:var(--tx);
  font-size:.72rem;font-weight:500;letter-spacing:.05em;text-transform:uppercase;
  transition:background .35s var(--ease),color .3s,border-color .3s,transform .35s var(--ease);
  white-space:nowrap;cursor:pointer;
}
.chip:hover{border-color:var(--ink);}
.chip:active{transform:scale(.97);}
.chip .chip__n{
  margin-left:auto;
  font-size:.62rem;font-weight:500;letter-spacing:.02em;
  color:var(--tx-3);font-variant-numeric:tabular-nums;
  transition:color .3s;
}
.chip[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:#fff;}
.chip[aria-pressed="true"] .chip__n{color:rgba(255,255,255,.75);}

.filters .chips{display:flex;flex-direction:column;align-items:stretch;gap:.4rem;}
.filters .chip{width:100%;}
.filters__clear{
  font-size:.68rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:var(--accent);padding:.3rem .2rem;position:relative;
}
.filters__clear::after{
  content:"";position:absolute;left:0;bottom:0;height:1px;width:100%;
  background:currentColor;transform-origin:right;transform:scaleX(0);
  transition:transform .4s var(--ease);
}
.filters__clear:hover::after{transform:scaleX(1);transform-origin:left;}

/* results column */
.results{min-width:0;}
.results__head{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding-bottom:16px;margin-bottom:clamp(26px,3.2vw,44px);
  border-bottom:1px solid var(--line);
}
.results__count{
  font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:var(--tx-3);
  white-space:nowrap;
}
.results__count b{
  color:var(--ink);font-weight:600;font-size:1.3rem;
  font-variant-numeric:tabular-nums;letter-spacing:0;
}
.results__count span{margin-left:.2rem;}

/* mobile toggle (hidden on desktop grid; its own row on mobile) */
.filters__toggle{
  display:none;align-items:center;gap:.6rem;
  font-size:.72rem;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  padding:.5rem .9rem;border-radius:999px;border:1px solid rgba(18,18,18,.18);
  color:var(--ink);background:#fff;cursor:pointer;
}
.filters__toggle svg{width:15px;height:15px;}
.filters__toggle b{
  min-width:20px;height:20px;padding:0 5px;border-radius:999px;
  display:inline-grid;place-items:center;
  background:var(--accent);color:#fff;font-size:.62rem;letter-spacing:0;
  font-variant-numeric:tabular-nums;
}
.filters__toggle b:empty,.filters__toggle b[data-zero]{display:none;}

/* ─────────── GRID (contact sheet) ─────────── */
/* tighter rhythm than the homepage grid: rows + stagger offset combined */
.browse .tour-grid{row-gap:clamp(20px,2.4vw,36px);}
.browse .tour:nth-child(even){margin-top:clamp(16px,2vw,32px);}

/* film-frame counter removed per client review */
.tour.is-hidden{display:none;}

/* filter swap animation */
.tour-grid .tour{transition:opacity .9s var(--ease-out),transform 1.05s var(--ease-out);}
.tour-grid .tour.pop{opacity:0;transform:translateY(18px);}
.tour-grid .tour.pop.is-in{opacity:1;transform:translateY(0);}
.tour-grid.is-swapping .tour{
  transition:opacity .18s ease,transform .18s ease;
  opacity:0;transform:translateY(6px);
}

/* ─────────── EMPTY STATE ─────────── */
.empty{
  text-align:center;padding:clamp(48px,7vw,110px) 20px;
  border-top:1px solid var(--line);
}
.empty__mark{width:52px;height:52px;margin:0 auto 1.6rem;color:var(--tx-3);}
.empty__title{
  font-family:var(--serif);font-weight:400;
  font-size:clamp(1.5rem,2.6vw,2.2rem);color:var(--tx);margin-bottom:.7rem;
}
.empty__text{
  font-size:.938rem;font-weight:300;color:var(--tx-2);line-height:1.8;
  max-width:46ch;margin:0 auto 2rem;
}

/* ─────────── CTA (light band separates grid from ink footer) ─────────── */
.th-cta{
  background:var(--bone-2);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  text-align:center;
}
.th-cta__inner{max-width:820px;}
.th-cta .eyebrow{justify-content:center;color:var(--tx-3);}
.th-cta .display{color:var(--tx);margin-bottom:1.5rem;}
.th-cta .display em{color:var(--accent);}
.th-cta .lede{margin:0 auto 2.4rem;color:var(--tx-2);}
.th-cta .lede{max-width:52ch;}

/* current nav item */
.nav a.is-current{color:var(--bone);}
.nav a.is-current::after{transform:scaleX(1);transform-origin:left;background:var(--accent);}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width:1200px){
  .browse__layout{grid-template-columns:212px minmax(0,1fr);}
  .filters .chip{height:36px;padding:0 .8rem;font-size:.68rem;}
}
@media (max-width:980px){
  .th-hero{min-height:64svh;padding-top:130px;}
  .browse__layout{grid-template-columns:1fr;gap:0;}
  .filters__toggle{display:inline-flex;margin-bottom:16px;align-self:start;}
  .filters{
    display:none;position:static;
    background:var(--bone-2);border:1px solid var(--line-soft);border-radius:16px;
    padding:22px 20px;margin-bottom:30px;
  }
  .browse.is-filters-open .filters{display:block;}
  .filters .chips{flex-direction:row;flex-wrap:wrap;}
  .filters .chip{width:auto;height:34px;}
  .fgroup{padding-bottom:16px;margin-bottom:16px;}
  .results__head{margin-bottom:24px;}
}
@media (max-width:720px){
  .th-hero{min-height:78svh;padding-top:120px;padding-bottom:52px;}
  .th-hero__title{font-size:clamp(1.55rem,7vw,2.4rem);letter-spacing:clamp(.08rem,1.6vw,.4rem);}
  .th-hero__heading{font-size:clamp(1.2rem,5.2vw,1.6rem);}
  .th-hero__exif{font-size:.56rem;letter-spacing:.16em;}
  .filters .chips{gap:.4rem;}
  .filters .chip{height:32px;padding:0 .8rem;font-size:.66rem;}
  .results__count{letter-spacing:.08em;}
}

@media (prefers-reduced-motion:reduce){
  .th-hero__media img{animation:none;transform:scale(1.02);}
  .th-hero__title .line > span{transform:none;transition:none;}
  .th-hero__rule{transform:scaleX(1);transition:none;}
}
