/* Beijing's editorial itinerary feature stays scoped to the examples section. */
.beijing-showcase {
  --beijing-ink: #23424a;
  --beijing-muted: #65767a;
  --beijing-line: #cfe3e2;
  padding: 64px 0 50px;
}

.beijing-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.beijing-section-heading .eyebrow {
  color: #52717a;
  margin-bottom: 16px;
}

.beijing-section-heading h2 {
  color: var(--beijing-ink);
  font-size: clamp(36px, 3.8vw, 55px);
  line-height: 1.1;
  margin: 0;
}

.beijing-feature-label {
  flex: none;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--beijing-line);
  color: #52717a;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.beijing-feature {
  display: grid;
  scroll-margin-top: 100px;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: start;
  gap: 48px;
  max-width: 928px;
  margin-inline: auto;
}

.beijing-figure { margin: 0; min-width: 0; }
.beijing-image-wrap { position: relative; }
.beijing-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c9d9d5;
  border-radius: 12px;
}
.beijing-figure figcaption {
  margin-top: 10px;
  color: var(--beijing-muted);
  font-size: 12px;
  line-height: 1.5;
}

.beijing-pins { position: absolute; inset: 0; pointer-events: none; }
.beijing-pins[hidden] { display: none; }
.beijing-pin {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 6px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fffdf8;
  transform: translate(-50%, -50%);
  cursor: pointer;
  pointer-events: auto;
}
.beijing-pin-circle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 32px;
  height: 32px;
  border: 1px solid #fffdf8b3;
  border-radius: 50%;
  background: rgb(24 76 85 / 45%);
  box-shadow: 0 1px 4px #23424a26;
  text-shadow: 0 1px 2px #123a42;
  transition: background .18s, box-shadow .18s;
}
.beijing-pin-circle small { font-size: 7px; line-height: 1; text-transform: uppercase; letter-spacing: .04em; }
.beijing-pin-circle b { font-size: 12px; line-height: 1; font-weight: 600; }
.beijing-pin-palace { left: 55.5%; top: 38.7%; }
.beijing-pin-temple { left: 72.3%; top: 59.9%; }
.beijing-pin-hutong { left: 23.5%; top: 66.5%; }
.beijing-pin-modern { left: 90.5%; top: 37%; }
.beijing-pin:hover .beijing-pin-circle,
.beijing-pin[aria-pressed="true"] .beijing-pin-circle {
  background: rgb(185 78 32 / 50%);
  box-shadow: 0 0 0 3px #fffdf840;
}
.beijing-pin-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 4px);
  transform: translateX(-50%);
  padding: 7px 10px;
  border: 1px solid var(--beijing-line);
  border-radius: 5px;
  background: #fffdf8;
  color: var(--beijing-ink);
  white-space: nowrap;
  font-size: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.beijing-pin:hover .beijing-pin-label,
.beijing-pin:focus-visible .beijing-pin-label { opacity: 1; visibility: visible; }
.beijing-pin-modern .beijing-pin-label { left: auto; right: 0; transform: none; }

.beijing-copy { min-width: 0; padding-top: 4px; color: var(--beijing-ink); }
.beijing-kicker { color: #b94e20; text-transform: uppercase; font-size: 11px; font-weight: 600; letter-spacing: .12em; }
.beijing-copy h3 {
  margin: 10px 0 12px;
  font: 400 28px/1.17 Georgia, "Times New Roman", serif;
  letter-spacing: -.04em;
  color: var(--beijing-ink);
}
.beijing-copy h3 em { color: #315c62; font-weight: 400; }
.beijing-intro { margin: 0 0 12px; color: var(--beijing-muted); font-size: 14px; line-height: 1.65; }
.beijing-tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 0 0 14px; padding: 0; list-style: none; }
.beijing-tags li { border: 1px solid #adc6c7; border-radius: 20px; padding: 5px 12px; font-size: 11px; line-height: 1.2; }
.beijing-days { list-style: none; margin: 0 0 14px; padding: 0; }
.beijing-days li + li { border-top: 1px solid var(--beijing-line); }
.beijing-day {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 60px;
  padding: 10px 8px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--beijing-ink);
  text-align: left;
  cursor: pointer;
  transition: background .18s;
}
.beijing-day:disabled { cursor: default; opacity: 1; }
.beijing-day:hover:not(:disabled), .beijing-day[aria-pressed="true"] { background: #eaf2ee; }
.beijing-day-number { display: flex; flex-direction: column; gap: 5px; min-width: 43px; padding-right: 14px; border-right: 1px solid var(--beijing-line); font: 400 18px/1 Georgia, serif; }
.beijing-day-number small { font: 400 9px/1 Arial, sans-serif; text-transform: uppercase; letter-spacing: .2em; }
.beijing-day-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.beijing-day-copy strong { font: 600 16px/1.3 Arial, "Helvetica Neue", sans-serif; letter-spacing: -.02em; }
.beijing-day-copy > span { color: #536c72; font-size: 12px; line-height: 1.45; }
.beijing-day-arrow { margin-left: auto; opacity: 0; color: #087d78; font-size: 20px; }
.beijing-day:hover .beijing-day-arrow, .beijing-day:focus-visible .beijing-day-arrow, .beijing-day[aria-pressed="true"] .beijing-day-arrow { opacity: 1; }
.beijing-place-detail { margin: 0 0 14px; padding: 11px 13px; border-left: 2px solid #087d78; background: #eef4f0; color: #426169; font-size: 14px; line-height: 1.65; }
.beijing-place-detail[hidden] { display: none; }

.beijing-full-itinerary > summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid #c15728;
  border-radius: 5px;
  background: #c15728;
  color: #fff;
  font-size: 13px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.beijing-full-itinerary > summary::-webkit-details-marker { display: none; }
.beijing-full-itinerary > summary:hover { background: #a6411a; border-color: #a6411a; }
.beijing-full-itinerary > summary:focus-visible { outline: 3px solid #e47840; outline-offset: 4px; }
.beijing-close-label { display: none; }
.beijing-full-itinerary[open] .beijing-explore-label { display: none; }
.beijing-full-itinerary[open] .beijing-close-label { display: inline; }
.beijing-full-itinerary[open] .beijing-explore-arrow { transform: rotate(180deg); }
.beijing-itinerary-details { margin-top: 20px; padding: 20px; background: #f0f4ed; border: 1px solid #d8e3d8; border-radius: 8px; }
.beijing-itinerary-details h4 { font: 400 21px/1.2 Georgia, serif; color: var(--beijing-ink); margin: 0 0 16px; }
.beijing-itinerary-details ol { list-style: none; padding: 0; margin: 0; }
.beijing-itinerary-details li + li { border-top: 1px solid #d8e3d8; margin-top: 15px; padding-top: 15px; }
.beijing-itinerary-details li strong { font-size: 14px; font-weight: 600; }
.beijing-itinerary-details li p { font-size: 14px; line-height: 1.7; margin: 7px 0 0; color: var(--beijing-muted); }
.beijing-sample-note { margin: 18px 0 0; color: var(--beijing-muted); font-size: 12px; line-height: 1.6; }
.beijing-tailor-link { display: inline-block; margin-top: 10px; color: #315c62; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.beijing-tailor-link:hover { color: #a6411a; }
.beijing-more-heading { display: flex; align-items: center; gap: 25px; margin: 45px 0 32px; }
.beijing-more-heading::before, .beijing-more-heading::after { content: ""; height: 1px; flex: 1; background: var(--beijing-line); }
.beijing-more-heading h3 { margin: 0; color: var(--beijing-ink); font: 400 23px/1.3 Georgia, serif; text-align: center; letter-spacing: -.025em; }

@media (max-width: 1100px) {
  .beijing-feature { gap: 32px; }
  .beijing-feature-label { display: none; }
}

@media (max-width: 1000px) {
  .beijing-feature { grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .beijing-showcase { padding: 38px 0; }
  .beijing-section-heading { margin-bottom: 25px; }
  .beijing-section-heading h2 { font-size: clamp(34px, 6vw, 44px); max-width: 540px; }
  .beijing-feature { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .beijing-figure { width: 100%; max-width: 280px; margin-inline: auto; }
  .beijing-copy { padding-top: 0; }
  .beijing-copy h3 { font-size: 29px; }
  .beijing-intro { max-width: 560px; font-size: 14px; }
  .beijing-day { min-height: 60px; padding: 10px 6px; gap: 14px; }
  .beijing-day-copy strong { font-size: 15px; }
  .beijing-day-copy > span { font-size: 11px; }
  .beijing-itinerary-details li p, .beijing-place-detail { font-size: 13px; }
  .beijing-more-heading { gap: 16px; margin: 36px 0 26px; }
  .beijing-more-heading h3 { max-width: 330px; font-size: 22px; }
}

@media (max-width: 400px) {
  .beijing-figure { max-width: 260px; }
  .beijing-day { gap: 14px; padding-inline: 4px; }
  .beijing-tags { gap: 6px; }
  .beijing-tags li { padding-inline: 11px; }
  .beijing-pin-label { font-size: 10px; padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .beijing-pin-circle, .beijing-day { transition: none; }
}
