/**
 * Pandas & Chengdu Tours theme — /china-tours/panda-chengdu/
 * Warm cream, brand red, soft bamboo green accent.
 */

body.page-id-2338,
body.gcn-panda-page {
  --pd-ink: var(--gcn-figma-fg, #1c1a18);
  --pd-muted: var(--gcn-figma-muted-fg, #7a6e67);
  --pd-line: rgba(28, 26, 24, 0.12);
  --pd-paper: #fdf9f3;
  --pd-cream: #f7f0e4;
  --pd-dark: #141a12;
  --pd-brand: var(--gcn-brand, #a33b39);
  --pd-brand-dark: var(--gcn-brand-dark, #8b2626);
  --pd-bamboo: #5a8f6a;
  --pd-bamboo-soft: #8fb896;
  --pd-display: "Playfair Display", var(--gcn-figma-display, Georgia, "Times New Roman", serif);
  --pd-max: var(--gcn-figma-max, 1280px);
  --pd-px: var(--gcn-figma-px, clamp(16px, 4vw, 32px));
}

body.page-id-2338 .gcn-page,
body.gcn-panda-page .gcn-page,
body.gcn-panda-page .gcn-page-fullwidth,
body.page-id-2338 .gcn-page-content,
body.gcn-panda-page .gcn-page-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  background: var(--pd-paper);
}

body.page-id-2338 .gcn-page,
body.gcn-panda-page .gcn-page,
body.gcn-panda-page .gcn-page-fullwidth {
  padding-top: 0;
  padding-bottom: 0;
}

.gcn-pd-wrap {
  width: 100%;
  max-width: var(--pd-max);
  margin: 0 auto;
  padding-inline: var(--pd-px);
}

.gcn-pd-sec {
  position: relative;
  padding-block: clamp(3.25rem, 7vw, 6rem);
  color: var(--pd-ink);
}

.gcn-pd-sec--paper { background: var(--pd-paper); }
.gcn-pd-sec--cream { background: var(--pd-cream); }
.gcn-pd-sec--ink {
  background: var(--pd-dark);
  color: #f4f7f2;
}

.gcn-pd-head { max-width: 60rem; margin-bottom: clamp(2rem, 4vw, 3rem); }

.gcn-pd-head--center {
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.gcn-pd-head--center .gcn-pd-lead { margin-inline: auto; }

.gcn-pd-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pd-brand);
}

.gcn-pd-eyebrow--light { color: var(--pd-bamboo-soft); }

.gcn-pd-h2 {
  margin: 0 0 0.85rem;
  font-family: var(--pd-display);
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  font-weight: 600;
}

.gcn-pd-lead {
  margin: 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.65;
  color: var(--pd-muted);
}

.gcn-pd-sec--ink .gcn-pd-lead,
.gcn-pd-sec--ink .gcn-pd-h2 { color: #f4f7f2; }
.gcn-pd-sec--ink .gcn-pd-lead { color: rgba(244, 247, 242, 0.72); }

.gcn-pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--pd-brand);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.gcn-pd-btn:hover {
  background: var(--pd-brand-dark);
  color: #fff;
  transform: translateY(-1px);
}

.gcn-pd-btn--ghost {
  background: transparent;
  color: var(--pd-ink);
  border-color: var(--pd-line);
}

.gcn-pd-btn--ghost:hover {
  border-color: var(--pd-brand);
  color: var(--pd-brand);
  background: transparent;
}

.gcn-pd-btn--ghost-light {
  background: transparent;
  color: #f4f7f2;
  border-color: rgba(244, 247, 242, 0.35);
}

.gcn-pd-btn--ghost-light:hover {
  border-color: #f4f7f2;
  color: #fff;
  background: transparent;
}

/* Hero — exact viewport fill */
.gcn-pd-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background: #0a0e0a;
  color: #f4f7f2;
  box-sizing: border-box;
}

.gcn-pd-hero__media,
.gcn-pd-hero__video,
.gcn-pd-hero__poster,
.gcn-pd-hero__veil {
  position: absolute;
  inset: 0;
}

.gcn-pd-hero__media { z-index: 0; }

.gcn-pd-hero__video,
.gcn-pd-hero__poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.gcn-pd-hero__video { z-index: 1; }
.gcn-pd-hero__poster { z-index: 0; }

.gcn-pd-hero__veil {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 12, 8, 0.88) 0%, rgba(8, 12, 8, 0.58) 38%, rgba(8, 12, 8, 0.2) 62%, rgba(8, 12, 8, 0.1) 100%),
    linear-gradient(180deg, rgba(8, 12, 8, 0.38) 0%, rgba(8, 12, 8, 0.06) 42%, rgba(8, 12, 8, 0.78) 100%);
}

.gcn-pd-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  padding-block: clamp(4.5rem, 10vw, 6rem);
  width: 100%;
  box-sizing: border-box;
}

.gcn-pd-hero__copy {
  width: min(38rem, 100%);
  margin-left: 0;
  margin-right: auto;
  text-align: left;
}

.gcn-pd-hero__title {
  margin: 0 0 0.85rem;
  font-family: var(--pd-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  line-height: 1.05;
  font-weight: 600;
}

.gcn-pd-hero__sub {
  margin: 0 0 0.75rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.55;
  color: rgba(244, 247, 242, 0.9);
}

.gcn-pd-hero__hooks {
  margin: 0 0 1.5rem;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: rgba(244, 247, 242, 0.68);
}

.gcn-pd-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 720px) {
  .gcn-pd-hero__veil {
    background:
      linear-gradient(180deg, rgba(8, 12, 8, 0.78) 0%, rgba(8, 12, 8, 0.42) 45%, rgba(8, 12, 8, 0.82) 100%);
  }

  .gcn-pd-hero__copy { width: 100%; }
}

/* Intro */
.gcn-pd-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3rem);
  align-items: start;
}

.gcn-pd-prose p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--pd-ink);
}

.gcn-pd-prose a {
  color: var(--pd-brand);
  text-decoration-thickness: 1px;
}

.gcn-pd-intro__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.gcn-pd-chip {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--pd-line);
  color: var(--pd-ink);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
}

.gcn-pd-chip:hover {
  border-color: var(--pd-bamboo);
  color: var(--pd-bamboo);
}

.gcn-pd-intro__aside { display: grid; gap: 1rem; }

.gcn-pd-intro__quote {
  padding: 1.35rem 1.4rem;
  border-radius: 1rem;
  background: var(--pd-dark);
  color: #f4f7f2;
}

.gcn-pd-intro__quote blockquote {
  margin: 0 0 0.75rem;
  font-family: var(--pd-display);
  font-size: 1.35rem;
  line-height: 1.25;
}

.gcn-pd-intro__quote p {
  margin: 0 0 1rem;
  color: rgba(244, 247, 242, 0.75);
  line-height: 1.55;
}

.gcn-pd-intro__quote-cta {
  color: var(--pd-bamboo-soft);
  font-weight: 700;
  text-decoration: none;
}

.gcn-pd-intro__includes {
  padding: 1.25rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid var(--pd-line);
  background: #fff;
}

.gcn-pd-intro__includes-title {
  margin: 0 0 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
}

.gcn-pd-intro__includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gcn-pd-intro__includes li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--pd-ink);
}

.gcn-pd-intro__includes li svg {
  flex: 0 0 auto;
  margin-top: 0.15rem;
  color: var(--pd-bamboo);
}

/* Cards / grids */
.gcn-pd-pillars__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gcn-pd-card {
  padding: 1.35rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid var(--pd-line);
  background: #fff;
}

.gcn-pd-card__title {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.gcn-pd-card__text {
  margin: 0;
  color: var(--pd-muted);
  line-height: 1.6;
}

/* Gallery — explicit bento (no auto-span holes) */
.gcn-pd-gallery.gcn-pd-sec--ink { overflow: hidden; }

.gcn-pd-gallery__mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(150px, 22vh));
  grid-template-areas:
    "ifs ifs ifs ifs ifs chili chili chili led led led led"
    "ifs ifs ifs ifs ifs night night night night night night night"
    "brick brick brick gold gold gold global global plush plush plush plush";
  gap: 0.75rem;
}

.gcn-pd-gallery__tile {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0.9rem;
  background: #101610;
  opacity: 1;
  transform: none;
}

.gcn-pd-gallery__tile--ifs-panda { grid-area: ifs; }
.gcn-pd-gallery__tile--chili-wall { grid-area: chili; }
.gcn-pd-gallery__tile--led-pandas { grid-area: led; }
.gcn-pd-gallery__tile--night-bridge { grid-area: night; }
.gcn-pd-gallery__tile--chengdu-brick { grid-area: brick; }
.gcn-pd-gallery__tile--gold-garden { grid-area: gold; }
.gcn-pd-gallery__tile--global-center { grid-area: global; }
.gcn-pd-gallery__tile--plush-pandas { grid-area: plush; }

.gcn-pd-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.gcn-pd-gallery__tile:hover .gcn-pd-gallery__img {
  transform: scale(1.035);
}

.gcn-pd-gallery__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.5rem 0.9rem 0.8rem;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 12, 8, 0.82) 68%);
  color: #f4f7f2;
  pointer-events: none;
}

.gcn-pd-gallery__tag {
  display: inline-flex;
  margin-bottom: 0.3rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gcn-pd-gallery__tag--panda {
  background: rgba(90, 143, 106, 0.4);
  color: #d4edd9;
}

.gcn-pd-gallery__tag--food {
  background: rgba(163, 59, 57, 0.4);
  color: #ffd8d7;
}

.gcn-pd-gallery__tag--night {
  background: rgba(80, 100, 180, 0.4);
  color: #dce4ff;
}

.gcn-pd-gallery__tag--city {
  background: rgba(255, 255, 255, 0.16);
  color: #f4f7f2;
}

.gcn-pd-gallery__title {
  display: block;
  font-family: var(--pd-display);
  font-size: clamp(0.95rem, 1.2vw, 1.15rem);
  line-height: 1.2;
  font-weight: 600;
}

.gcn-pd-gallery__blurb {
  display: none;
  margin-top: 0.28rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(244, 247, 242, 0.78);
  max-width: 36rem;
}

.gcn-pd-gallery__tile--ifs-panda .gcn-pd-gallery__blurb,
.gcn-pd-gallery__tile--night-bridge .gcn-pd-gallery__blurb {
  display: block;
}

.gcn-pd-gallery__tile--ifs-panda .gcn-pd-gallery__title {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

/* Packages — live Woo cards */
.gcn-pd-packages__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
}

.gcn-pd-pkg {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--pd-line);
  background: #fff;
}

.gcn-pd-pkg__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #e8e0d4;
}

.gcn-pd-pkg__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gcn-pd-pkg__kicker {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(20, 22, 18, 0.78);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.gcn-pd-pkg__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem 1.35rem;
  flex: 1;
}

.gcn-pd-pkg__title {
  margin: 0;
  font-family: var(--pd-display);
  font-size: 1.28rem;
  line-height: 1.25;
}

.gcn-pd-pkg__title a {
  color: inherit;
  text-decoration: none;
}

.gcn-pd-pkg__title a:hover { color: var(--pd-brand); }

.gcn-pd-pkg__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--pd-muted);
}

.gcn-pd-pkg__price {
  color: var(--pd-brand);
  font-weight: 700;
}

.gcn-pd-pkg__price del {
  margin-right: 0.35rem;
  opacity: 0.55;
  font-weight: 500;
}

.gcn-pd-pkg__price ins {
  text-decoration: none;
}

.gcn-pd-pkg__summary,
.gcn-pd-pkg__for {
  margin: 0;
  color: var(--pd-muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.gcn-pd-pkg__for span {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pd-bamboo);
}

.gcn-pd-pkg__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.45rem;
}

/* How */
.gcn-pd-how__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.gcn-pd-how__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid var(--pd-line);
  background: #fff;
}

.gcn-pd-how__num {
  display: inline-flex;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--pd-bamboo);
  color: #fff;
  font-weight: 700;
}

.gcn-pd-how__title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.gcn-pd-how__text {
  margin: 0;
  color: var(--pd-muted);
  line-height: 1.55;
}

/* Voices */
.gcn-pd-voices__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gcn-pd-voice {
  margin: 0;
  padding: 1.35rem 1.4rem;
  border-radius: 1rem;
  border: 1px solid var(--pd-line);
  background: #fff;
}

.gcn-pd-voice__quote {
  margin: 0 0 0.75rem;
  font-family: var(--pd-display);
  font-size: 1.15rem;
  line-height: 1.35;
  font-style: italic;
  color: var(--pd-ink);
}

.gcn-pd-voice__desc {
  margin: 0 0 1rem;
  color: var(--pd-muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.gcn-pd-voice__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--pd-brand);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.92rem;
}

.gcn-pd-voice__link:hover { color: var(--pd-bamboo); }

/* FAQ */
.gcn-pd-faq__list { display: grid; gap: 0.65rem; }

.gcn-pd-faq__item {
  border: 1px solid var(--pd-line);
  border-radius: 0.85rem;
  background: #fff;
  padding: 0.85rem 1.1rem;
}

.gcn-pd-faq__item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.gcn-pd-faq__item summary::-webkit-details-marker { display: none; }

.gcn-pd-faq__item p {
  margin: 0.75rem 0 0;
  color: var(--pd-muted);
  line-height: 1.6;
}

/* Related */
.gcn-pd-related__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gcn-pd-related__grid a {
  display: block;
  height: 100%;
  padding: 1.1rem 1.2rem;
  border-radius: 0.9rem;
  border: 1px solid var(--pd-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.gcn-pd-related__grid a:hover { border-color: var(--pd-bamboo); }

.gcn-pd-related__title {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.gcn-pd-related__text {
  display: block;
  color: var(--pd-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* CTA */
.gcn-pd-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Reduced motion — poster stays visible */
html.gcn-pd-ready .gcn-pd-hero__video:not([data-playing="1"]) + .gcn-pd-hero__poster {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gcn-pd-gallery__tile {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gcn-pd-gallery__tile:hover .gcn-pd-gallery__img {
    transform: none;
  }
}

@media (max-width: 900px) {
  .gcn-pd-intro__grid,
  .gcn-pd-pillars__grid,
  .gcn-pd-packages__grid,
  .gcn-pd-related__grid,
  .gcn-pd-voices__grid {
    grid-template-columns: 1fr;
  }

  .gcn-pd-gallery__mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: none;
    grid-auto-rows: minmax(170px, 38vw);
    grid-template-areas:
      "ifs ifs"
      "chili led"
      "night night"
      "brick gold"
      "global plush";
  }

  .gcn-pd-gallery__tile--ifs-panda,
  .gcn-pd-gallery__tile--night-bridge,
  .gcn-pd-gallery__tile--gold-garden,
  .gcn-pd-gallery__tile--global-center,
  .gcn-pd-gallery__tile--plush-pandas,
  .gcn-pd-gallery__tile--chili-wall,
  .gcn-pd-gallery__tile--led-pandas,
  .gcn-pd-gallery__tile--chengdu-brick {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .gcn-pd-gallery__mosaic {
    grid-template-columns: 1fr;
    grid-auto-rows: minmax(200px, 58vw);
    grid-template-areas:
      "ifs"
      "chili"
      "led"
      "night"
      "brick"
      "gold"
      "global"
      "plush";
  }

  .gcn-pd-gallery__blurb {
    display: none;
  }
}
