/* ═══════════════════════════════════════════════════════════
   CHINA IN LENS — destination pages (guilin.html, …)
   Reuses the main.css design system (tokens, hero, marquee,
   pillars, gallery, tour cards, footer). This file only adds
   the destination-specific sections:
     .dhero   — single-frame destination hero
     .svc     — "we cater to" 4-up grid (pillars variant)
     .shot--wide / .shot--tall — gallery rhythm variants
     .cal     — the light calendar (12-month strip)
     .dcta    — pre-footer plan-your-trip band
   ═══════════════════════════════════════════════════════════ */

/* ─────────── DESTINATION HERO ─────────── */
/* Uses the tours-index .th-hero (same height, single frame).
   Only the destination badge and the CTA row are added here. */
.dhero__badge{
  position:relative;display:inline-flex;align-items:center;gap:.6rem;
  font-size:.65rem;font-weight:500;letter-spacing:.24em;text-transform:uppercase;
  color:rgba(255,255,255,.85);
  padding:.42rem .8rem;border-radius:999px;
  background:rgba(18,18,18,.3);border:1px solid rgba(255,255,255,.24);
  backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  margin-bottom:1.8rem;
}
.dhero__badge i{width:6px;height:6px;border-radius:50%;background:var(--accent);flex:none;}
.th-hero__actions{display:flex;flex-wrap:wrap;gap:.85rem;margin-top:2.2rem;}

/* ─────────── SERVICES (quiet strip, light) ─────────── */
/* Deliberately subdued: compact light band, no icons, hairline columns. */
.svc{background:var(--bone-2);padding-block:clamp(44px,4.6vw,76px);}
.svc__head{
  display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;
  gap:1rem 2.5rem;margin-bottom:clamp(26px,3vw,44px);
  padding-bottom:1.4rem;border-bottom:1px solid var(--line);
}
.svc__head .eyebrow{margin-bottom:0;}
.svc__title{
  font-family:var(--sans);font-weight:500;line-height:1.2;letter-spacing:-.01em;
  font-size:clamp(1.25rem,1.9vw,1.7rem);color:var(--tx);text-wrap:balance;
}
.svc__title em{font-style:normal;color:var(--accent);}
.svc__grid{
  display:grid;grid-template-columns:repeat(4,1fr);gap:0;
}
.svc__grid--3{grid-template-columns:repeat(3,1fr);}
.svc__item{
  padding:clamp(18px,2vw,30px) clamp(18px,2.2vw,34px) clamp(16px,1.8vw,26px) 0;
}
.svc__item + .svc__item{
  padding-left:clamp(18px,2.2vw,34px);
  border-left:1px solid var(--line);
}
.svc__num{
  display:block;font-size:.66rem;font-weight:500;letter-spacing:.2em;
  color:var(--accent);margin-bottom:.9rem;
}
.svc__item h3{
  font-family:var(--sans);font-weight:500;font-size:clamp(1rem,1.2vw,1.15rem);
  line-height:1.3;letter-spacing:-.005em;color:var(--tx);margin-bottom:.55rem;
}
.svc__item p{
  font-size:.85rem;line-height:1.65;color:var(--tx-2);font-weight:300;
  max-width:30ch;
}

/* ─────────── SIGNATURE FRAMES (contained mosaic) ─────────── */
.frames{background:var(--bone);}
.frames__grid{
  display:grid;grid-template-columns:repeat(12,1fr);
  gap:clamp(14px,1.6vw,26px);
}
.frames__item{
  position:relative;margin:0;overflow:hidden;border-radius:14px;
  background:var(--bone-3);
}
.frames__item img{
  width:100%;height:100%;object-fit:cover;
  transform:scale(1.01);transition:transform 1.1s var(--ease),filter .7s;
}
.frames__item:hover img{transform:scale(1.05);}
.frames__item::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,transparent 55%,rgba(18,18,18,.62) 100%);
  opacity:.85;transition:opacity .6s;pointer-events:none;
}
.frames__item:hover::after{opacity:1;}
.frames__item figcaption{
  position:absolute;z-index:2;left:clamp(14px,1.6vw,22px);right:clamp(14px,1.6vw,22px);bottom:clamp(12px,1.4vw,18px);
  display:flex;align-items:baseline;justify-content:space-between;gap:1rem;flex-wrap:wrap;
  color:#fff;
}
.frames__item figcaption b{
  font-size:.72rem;font-weight:500;letter-spacing:.16em;text-transform:uppercase;
  text-shadow:0 1px 12px rgba(18,18,18,.55);
}
.frames__item figcaption span{
  font-size:.66rem;font-weight:400;letter-spacing:.1em;text-transform:uppercase;
  color:rgba(255,255,255,.78);text-shadow:0 1px 10px rgba(18,18,18,.55);
  white-space:nowrap;
}
/* mosaic placement — row A */
.frames__item--a1{grid-column:1/8;aspect-ratio:3/2;}
.frames__item--a2{grid-column:8/13;}
/* row B */
.frames__item--b1{grid-column:1/6;aspect-ratio:3/2;}
.frames__item--b2{grid-column:6/10;}
.frames__item--b3{grid-column:10/13;}
/* 4-image variant: row-B second item runs to the right edge */
.frames__item--end7{grid-column:6/13;}
/* row C — cinematic finisher */
.frames__item--c1{grid-column:1/13;aspect-ratio:21/9;}
@media (max-width:720px){
  .frames__grid{grid-template-columns:1fr;gap:14px;}
  .frames__item{grid-column:auto!important;}
  .frames__item--a1,.frames__item--b1,.frames__item--c1{aspect-ratio:4/3;}
  .frames__item--a2,.frames__item--b2,.frames__item--b3{aspect-ratio:4/3;min-height:220px;}
}

/* ─────────── THE LIGHT CALENDAR ─────────── */
.cal__grid{
  display:grid;grid-template-columns:repeat(12,1fr);gap:10px;
}
.cal__m{
  display:flex;flex-direction:column;align-items:center;gap:.55rem;
  padding:1rem .3rem .85rem;border-radius:14px;
  border:1px solid var(--line-soft);background:transparent;
  transition:border-color .4s var(--ease),background .4s var(--ease),
             box-shadow .4s var(--ease),transform .4s var(--ease);
}
.cal__m:hover{
  border-color:rgba(251,91,50,.45);background:#fff;
  transform:translateY(-3px);
  box-shadow:0 18px 40px -24px rgba(18,18,18,.3);
}
.cal__m:focus-visible{outline:2px solid var(--accent);outline-offset:2px;}
.cal__m.is-active{
  border-color:var(--accent);background:#fff;
  box-shadow:0 20px 44px -24px rgba(251,91,50,.4);
}
.cal__abbr{
  font-size:.72rem;font-weight:500;letter-spacing:.18em;text-transform:uppercase;
  color:var(--tx-3);transition:color .35s;
}
.cal__m:hover .cal__abbr,
.cal__m.is-active .cal__abbr{color:var(--tx);}
.cal__bar{
  position:relative;width:12px;height:82px;border-radius:6px;
  background:rgba(18,18,18,.07);overflow:hidden;flex:none;
}
.cal__bar i{
  position:absolute;left:0;right:0;bottom:0;border-radius:6px;
  background:var(--tx-3);
  transition:height .9s var(--ease-out),background .5s;
}
.cal__m.is-peak  .cal__bar i{height:100%;background:linear-gradient(180deg,var(--accent-hi),var(--accent-lo));}
.cal__m.is-good  .cal__bar i{height:60%;background:var(--gold);}
.cal__m.is-quiet .cal__bar i{height:28%;background:#C9CCD0;}
.cal__tier{
  font-size:.6rem;font-weight:500;letter-spacing:.14em;text-transform:uppercase;
  color:var(--tx-3);text-align:center;line-height:1.35;transition:color .35s;
}
.cal__m.is-active .cal__tier{color:var(--accent);}
.cal__note{
  margin-top:1.7rem;padding-top:1.4rem;border-top:1px solid var(--line);
  max-width:72ch;
  font-size:1rem;line-height:1.75;color:var(--tx-2);font-weight:300;
  min-height:5.2em;
}
.cal__note b{
  font-family:var(--serif);font-weight:400;font-style:normal;
  color:var(--tx);margin-right:.45rem;
}
.cal__legend{
  display:flex;flex-wrap:wrap;gap:1.4rem;margin-top:.4rem;
  font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--tx-3);
}
.cal__legend span{display:inline-flex;align-items:center;gap:.5rem;}
.cal__legend i{width:10px;height:10px;border-radius:3px;flex:none;}
.cal__legend .lg-peak i{background:var(--accent);}
.cal__legend .lg-good i{background:var(--gold);}
.cal__legend .lg-quiet i{background:#C9CCD0;}

/* ─────────── WHY (compact, text-only) ─────────── */
/* Deliberately shorter than the homepage manifesto: heading + lede side by
   side, nothing else — hands attention over to the tours grid fast. */
.dwhy{padding-block:clamp(52px,6vw,96px);}
.dwhy .eyebrow{margin-bottom:clamp(18px,2.2vw,30px);}
.dwhy__row{
  display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);
  gap:clamp(24px,4vw,72px);align-items:end;
}
.dwhy__row .display{margin-bottom:0;}
.dwhy__lede{
  font-size:clamp(.98rem,1.15vw,1.12rem);line-height:1.75;color:var(--tx-2);
  font-weight:300;max-width:52ch;
}

/* ─────────── PRE-FOOTER PLAN BAND (light, to separate from the ink footer) ─────────── */
.dcta{background:var(--bone);color:var(--tx);}
.dcta__head{max-width:60rem;margin-bottom:clamp(30px,3.4vw,52px);}
.dcta__head .display{margin-bottom:1.2rem;}
.dcta__head .lede{margin-bottom:2rem;}
.dcta__actions{display:flex;flex-wrap:wrap;gap:.85rem;}
.dcta__grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:0;
  border-top:1px solid var(--line);
}
.dcta__cell{
  padding:clamp(26px,3vw,44px) clamp(20px,2.4vw,40px) clamp(24px,2.6vw,38px) 0;
}
.dcta__cell + .dcta__cell{
  padding-left:clamp(20px,2.4vw,40px);
  border-left:1px solid var(--line);
}
.dcta__cell h3{
  display:flex;align-items:center;gap:.6rem;
  font-size:.7rem;font-weight:500;letter-spacing:.22em;text-transform:uppercase;
  color:var(--accent);margin-bottom:.9rem;
}
.dcta__cell h3 svg{width:15px;height:15px;flex:none;}
.dcta__cell b{
  display:block;font-family:var(--sans);font-weight:500;
  font-size:clamp(1.05rem,1.4vw,1.3rem);line-height:1.3;letter-spacing:-.005em;
  color:var(--tx);margin-bottom:.5rem;
}
.dcta__cell p{font-size:.875rem;line-height:1.7;color:var(--tx-2);font-weight:300;max-width:34ch;}

/* dark-outline ghost for light backgrounds (main.css .btn--ghost is for dark) */
.btn--ghost--ink{
  border:1px solid rgba(18,18,18,.3);color:var(--tx);
  background:transparent;
  isolation:isolate; /* keep the ::before fill inside the button's own stacking context */
}
.btn--ghost--ink::before{background:var(--ink);}
.btn--ghost--ink:hover{color:#fff;border-color:var(--ink);}

/* ─────────── RESPONSIVE ─────────── */
@media (max-width:1080px){
  .dwhy__row{grid-template-columns:1fr;align-items:start;gap:1.4rem;}
  .svc__grid{grid-template-columns:repeat(2,1fr);}
  .svc__item + .svc__item{border-left:0;}
  .svc__item:nth-child(even){padding-left:clamp(18px,2.2vw,34px);border-left:1px solid var(--line);}
  .svc__item{border-top:1px solid var(--line);padding-left:0;}
  .svc__item:nth-child(even){padding-left:clamp(18px,2.2vw,34px);}
  .svc__item:nth-child(-n+2){border-top:0;}
  .cal__grid{grid-template-columns:repeat(6,1fr);row-gap:12px;}
  .dcta__grid{grid-template-columns:1fr;}
  .dcta__cell + .dcta__cell{
    padding-left:0;border-left:0;
    border-top:1px solid var(--line);
  }
}
@media (max-width:640px){
  .svc__grid{grid-template-columns:1fr;}
  .svc__item{padding-left:0!important;border-left:0!important;}
  .cal__grid{grid-template-columns:repeat(4,1fr);}
  .cal__bar{height:64px;}
  .shot--wide,.shot--tall{width:clamp(240px,74vw,340px);}
}
