/* Machu Picchu — option photos (Low: train · Medium: Sun Gate · High: Inca Trail).
   Square tiles on the right of each option, matching the Great Wall and Petra
   treatment. Three cards across, so the tile is 130px here rather than 150px —
   that keeps roughly 200px of text per card. */

#machu-picchu-route-guide.guide-article .vd-choice {
  grid-template-columns: 16px minmax(0, 1fr) 130px;
  align-items: start;
  gap: 10px;
}

#machu-picchu-route-guide.guide-article .vd-choice-photo {
  display: block;
  width: 130px;
  overflow: hidden;
  background: var(--site-line);
}

#machu-picchu-route-guide.guide-article .vd-choice-photo img {
  display: block;
  width: 130px;
  height: 130px;
  object-fit: cover;
}

/* framing */
#machu-picchu-route-guide.guide-article .vd-choice-photo img[src$="low.jpg"] { object-position: 55% 58%; }
#machu-picchu-route-guide.guide-article .vd-choice-photo img[src$="medium.jpg"] { object-position: 50% 50%; }
#machu-picchu-route-guide.guide-article .vd-choice-photo img[src$="high.jpg"] { object-position: 52% 55%; }

#machu-picchu-route-guide.guide-article .vd-photo-credits {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 12px 0 0;
  color: var(--site-muted);
  font-size: 10.5px;
  line-height: 1.6;
}

#machu-picchu-route-guide.guide-article .vd-photo-credits span {
  color: var(--site-ink);
  font-weight: 700;
}

#machu-picchu-route-guide.guide-article .vd-photo-credits a {
  color: inherit;
  text-underline-offset: 2px;
}

@media (max-width: 1100px) {
  #machu-picchu-route-guide.guide-article .vd-choice { grid-template-columns: 16px minmax(0, 1fr) 112px; }
  #machu-picchu-route-guide.guide-article .vd-choice-photo,
  #machu-picchu-route-guide.guide-article .vd-choice-photo img { width: 112px; }
  #machu-picchu-route-guide.guide-article .vd-choice-photo img { height: 112px; }
}

@media (max-width: 900px) {
  #machu-picchu-route-guide.guide-article .vd-choice { grid-template-columns: 16px minmax(0, 1fr) 96px; gap: 8px; }
  #machu-picchu-route-guide.guide-article .vd-choice-photo,
  #machu-picchu-route-guide.guide-article .vd-choice-photo img { width: 96px; }
  #machu-picchu-route-guide.guide-article .vd-choice-photo img { height: 96px; }
}

/* schematic of the three official circuits (drawn, not copied) */
#machu-picchu-route-guide.guide-article .mp-circuit-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 18px 26px;
  align-items: start;
  margin: 16px 0 6px;
  padding: 16px 16px 14px;
  border: 1px solid var(--site-line);
  border-radius: 5px;
  background: light-dark(#f4f7f2, #1d292c);
}
#machu-picchu-route-guide.guide-article .mpc-scroll { min-width: 0; }
#machu-picchu-route-guide.guide-article .mp-circuit-map svg {
  display: block;
  width: 100%;
  max-width: 880px;
  height: auto;
  margin: 0 auto 4px;
}
#machu-picchu-route-guide.guide-article .mpc-ridge {
  fill: none;
  stroke: var(--site-line);
  stroke-width: 2;
}
#machu-picchu-route-guide.guide-article .mpc-peak {
  fill: light-dark(#e4ebe2, #263436);
  stroke: var(--site-line);
  stroke-width: 1;
}
#machu-picchu-route-guide.guide-article .mpc-peak--back { opacity: .7; }
#machu-picchu-route-guide.guide-article .mpc-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#machu-picchu-route-guide.guide-article .mpc-line--dashed {
  stroke-dasharray: 5 6;
  stroke-width: 2.2;
}
#machu-picchu-route-guide.guide-article .mpc-route--1 .mpc-line { stroke: light-dark(#17665f, #72c4b6); }
#machu-picchu-route-guide.guide-article .mpc-route--2 .mpc-line { stroke: light-dark(#a8621b, #e0a35e); }
#machu-picchu-route-guide.guide-article .mpc-route--3 .mpc-line { stroke: light-dark(#7a3f63, #d69ac0); }
#machu-picchu-route-guide.guide-article .mpc-dot--1 { fill: light-dark(#17665f, #72c4b6); }
#machu-picchu-route-guide.guide-article .mpc-dot--2 { fill: light-dark(#a8621b, #e0a35e); }
#machu-picchu-route-guide.guide-article .mpc-dot--3 { fill: light-dark(#7a3f63, #d69ac0); }
#machu-picchu-route-guide.guide-article .mpc-hub {
  fill: var(--site-surface);
  stroke: var(--site-ink);
  stroke-width: 2.5;
}
#machu-picchu-route-guide.guide-article .mpc-label {
  fill: var(--site-muted);
  font: 600 12px/1 Arial, sans-serif;
}
#machu-picchu-route-guide.guide-article .mpc-label--strong { fill: var(--site-ink); }
#machu-picchu-route-guide.guide-article .mpc-aside {
  border-left: 1px solid var(--site-line);
  padding-left: 20px;
}
#machu-picchu-route-guide.guide-article .mpc-hint,
#machu-picchu-route-guide.guide-article .mpc-note { grid-column: 1 / -1; }
#machu-picchu-route-guide.guide-article .mpc-heading {
  margin: 2px 0 10px;
  color: var(--site-ink);
  font: 700 12px/1.4 Arial, sans-serif;
  letter-spacing: .04em;
  text-transform: uppercase;
}
#machu-picchu-route-guide.guide-article .mpc-legend {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--site-muted);
}
#machu-picchu-route-guide.guide-article .mpc-key { display: grid; margin: 0; max-width: 980px; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; align-items: start; }
#machu-picchu-route-guide.guide-article .mpc-key b { color: var(--site-ink); font-weight: 700; }
#machu-picchu-route-guide.guide-article .mpc-swatch {
  display: block;
  height: 0;
  margin-top: 7px;
  border-top: 3px solid currentColor;
}
#machu-picchu-route-guide.guide-article .mpc-key--1 .mpc-swatch { color: light-dark(#17665f, #72c4b6); }
#machu-picchu-route-guide.guide-article .mpc-key--2 .mpc-swatch { color: light-dark(#a8621b, #e0a35e); }
#machu-picchu-route-guide.guide-article .mpc-key--3 .mpc-swatch { color: light-dark(#7a3f63, #d69ac0); }
#machu-picchu-route-guide.guide-article .mpc-note {
  margin: 10px 0 0;
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--site-muted);
}
#machu-picchu-route-guide.guide-article .mpc-note a { color: inherit; text-underline-offset: 2px; }
@media (max-width: 680px) {
  #machu-picchu-route-guide.guide-article .mp-circuit-map { padding: 10px 10px 12px; }
  #machu-picchu-route-guide.guide-article .mpc-label { font-size: 15px; }
}
#machu-picchu-route-guide.guide-article .mpc-code {
  font: 700 12px/1 Arial, sans-serif;
  letter-spacing: .02em;
}
#machu-picchu-route-guide.guide-article .mpc-code--1 { fill: light-dark(#17665f, #72c4b6); }
#machu-picchu-route-guide.guide-article .mpc-code--2 { fill: light-dark(#a8621b, #e0a35e); }
#machu-picchu-route-guide.guide-article .mpc-code--3 { fill: light-dark(#7a3f63, #d69ac0); }
#machu-picchu-route-guide.guide-article .mpc-swatch { position: relative; }
#machu-picchu-route-guide.guide-article .mpc-mark {
  position: absolute;
  top: -3px;
  left: 0;
  display: block;
  width: 7px;
  height: 7px;
}
#machu-picchu-route-guide.guide-article .mpc-mark--1 { border-radius: 50%; background: light-dark(#17665f, #72c4b6); }
#machu-picchu-route-guide.guide-article .mpc-mark--2 { background: light-dark(#a8621b, #e0a35e); }
#machu-picchu-route-guide.guide-article .mpc-mark--3 {
  width: 0; height: 0; background: none;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 8px solid light-dark(#7a3f63, #d69ac0);
  top: -4px;
}
#machu-picchu-route-guide.guide-article .mpc-approach {
  stroke: var(--site-muted);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: .45;
}
#machu-picchu-route-guide.guide-article .mpc-leader {
  stroke: var(--site-line);
  stroke-width: 1.5;
  stroke-dasharray: 2 3;
}
/* the circuit step runs the full width so the map can sit under the copy */
#machu-picchu-route-guide.guide-article .vd-step--circuit { grid-column: 1 / -1; }
#machu-picchu-route-guide.guide-article .vd-step--circuit .mp-circuit-map { margin: 14px 0 2px; }
#machu-picchu-route-guide.guide-article .vd-step--circuit .mp-circuit-map svg { max-width: 980px; }
/* on phones the diagram keeps a readable scale and scrolls sideways */
@media (max-width: 999px) {
  #machu-picchu-route-guide.guide-article .mp-circuit-map { grid-template-columns: 1fr; }
  #machu-picchu-route-guide.guide-article .mpc-aside {
    border-left: 0;
    border-top: 1px solid var(--site-line);
    padding: 14px 0 0;
  }
  #machu-picchu-route-guide.guide-article .mpc-heading { margin-top: 0; }
}
@media (max-width: 680px) {
  #machu-picchu-route-guide.guide-article .mp-circuit-map { overflow-x: auto; }
  #machu-picchu-route-guide.guide-article .mpc-scroll { min-width: 0; }
#machu-picchu-route-guide.guide-article .mp-circuit-map svg { min-width: 600px; }
  #machu-picchu-route-guide.guide-article .mpc-label { font-size: 10px; }
  #machu-picchu-route-guide.guide-article .mpc-code { font-size: 10px; }
}
#machu-picchu-route-guide.guide-article .mpc-hint {
  display: none;
  margin: 0 0 8px;
  font: 600 11px/1.5 Arial, sans-serif;
  color: var(--site-muted);
}
@media (max-width: 680px) {
  #machu-picchu-route-guide.guide-article .mpc-hint { display: block; }
}
/* circuit choice sits in the strategic section, next to the hiking choice */
#machu-picchu-route-guide.guide-article .mp-strategic-step { margin: 26px 0 0; }
#machu-picchu-route-guide.guide-article .mp-strategic-step + .mp-strategic-step {
  padding-top: 26px;
  border-top: 1px solid var(--site-line);
}
#machu-picchu-route-guide.guide-article .mp-strategic-label {
  margin: 0 0 8px;
  color: var(--site-accent);
  font: 700 11px/1.4 Arial, sans-serif;
  letter-spacing: .13em;
  text-transform: uppercase;
}
#machu-picchu-route-guide.guide-article .mp-strategic-step h3 {
  margin: 0 0 8px;
  font: 500 24px/1.2 Georgia, serif;
  color: var(--site-ink);
}
#machu-picchu-route-guide.guide-article .mp-strategic-step .guide-section-intro { margin-bottom: 12px; }
#machu-picchu-route-guide.guide-article .mp-strategic-step .vd-links { margin: 0 0 4px; }
#machu-picchu-route-guide.guide-article .mpc-keyline {
  margin: 0 0 12px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--site-muted);
}
#machu-picchu-route-guide.guide-article .mpc-ref { white-space: nowrap; }
/* legend as a per-route list */
#machu-picchu-route-guide.guide-article .mpc-group { margin: 0 0 12px; }
#machu-picchu-route-guide.guide-article .mpc-group:last-child { margin-bottom: 0; }
#machu-picchu-route-guide.guide-article .mpc-group-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  color: var(--site-ink);
  font: 700 11.5px/1.35 Arial, sans-serif;
}
#machu-picchu-route-guide.guide-article .mpc-group-title .mpc-mark { position: static; flex: 0 0 auto; }
#machu-picchu-route-guide.guide-article .mpc-group-sub {
  margin: 2px 0 7px;
  color: var(--site-muted);
  font-size: 10.5px;
  line-height: 1.45;
}
#machu-picchu-route-guide.guide-article .mpc-tag {
  margin: 0 0 3px;
  color: var(--site-muted);
  font: 700 9.5px/1.4 Arial, sans-serif;
  letter-spacing: .09em;
  text-transform: uppercase;
}
#machu-picchu-route-guide.guide-article .mpc-routes {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  font-size: 11px;
  line-height: 1.5;
  color: var(--site-muted);
}
#machu-picchu-route-guide.guide-article .mpc-routes li {
  margin: 0 0 2px;
  padding: 0;
  border: 0;
  display: block;
}
#machu-picchu-route-guide.guide-article .mpc-routes b {
  display: inline-block;
  min-width: 30px;
  color: var(--site-ink);
  font-weight: 700;
}
#machu-picchu-route-guide.guide-article .mpc-when {
  color: var(--site-muted);
  font-style: italic;
  opacity: .9;
}
#machu-picchu-route-guide.guide-article .mpc-when::before { content: "· "; }
