/* A trip's page, /travels/<slug>/. Scoped to .tp. */
.tp { --ink: rgb(26, 26, 26); --muted: #5f6772; --line: #e4e4e4; --soft: #f6f6f4; --accent: rgb(73, 88, 103); }
.tp-wrap { width: min(var(--grid), 100% - 32px); margin: 0 auto; padding: 40px 0 56px; }
.tp-back { font-size: 15px; color: var(--muted); text-underline-offset: 3px; }
.tp h1 { margin: 16px 0 8px; }
.tp-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted); }
.tp-flags { display: flex; gap: 4px; }
.tp-flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); display: block; }
.tp-vt { display: inline-flex; padding: 3px 12px; border-radius: 1000px; font-size: 14px; line-height: 1.4; white-space: nowrap; }
.tp-vt.vlog { background: #000; color: #fff; border: 1px solid #000; }
.tp-vt.unedited { background: #fff; color: #000; border: 1px dashed #000; }
.tp section { margin-top: 56px; }
.tp h2 { font-size: 32px; margin-bottom: 8px; }
.tp-sub { color: var(--muted); margin: 0 0 24px; max-width: 720px; }
.tp-ph { position: relative; overflow: hidden; background: #e8e6e0; }
.tp-ph img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s; }
.tp-ph img.on { opacity: 1; }
.tp-ph figcaption, .tp-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px; color: #fff; font-size: 14px; background: linear-gradient(to top, rgba(0, 0, 0, .65), rgba(0, 0, 0, 0)); }
.tp-hero { display: grid; gap: 8px; margin-top: 28px; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 200px; }
.tp-hero figure { margin: 0; border-radius: 14px; }
.tp-hero figure:first-child { grid-row: span 2; }
.tp-hero.n1 { grid-template-columns: 1fr; grid-template-rows: 380px; }
.tp-hero.n1 figure:first-child, .tp-hero.n2 figure:first-child { grid-row: auto; }
.tp-hero.n2 { grid-template-columns: 2fr 1fr; grid-template-rows: 380px; }
.tp-plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; align-items: start; }
.tp-plan.solo { grid-template-columns: 1fr; }
.tp-stops { list-style: none; margin: 0; padding: 0; }
.tp-stop { position: relative; display: grid; grid-template-columns: 32px 88px minmax(0, 1fr); gap: 12px; padding-bottom: 20px; }
.tp-stop:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; border-left: 2px solid var(--line); }
.tp-n { width: 32px; height: 32px; border-radius: 50%; background: #000; color: #fff; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.tp-stop .tp-ph { width: 88px; height: 66px; border-radius: 8px; }
.tp-stop b { font-weight: 400; font-size: 18px; display: block; line-height: 1.3; }
.tp-stop .w { font-size: 14px; color: var(--muted); display: block; }
.tp-stop .s { font-size: 14px; display: block; margin-top: 4px; }
#tpMap { height: 480px; border-radius: 14px; background: var(--soft); position: relative; z-index: 0; isolation: isolate; font-family: var(--font); }
.tp-pin { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-sizing: border-box; background: #000; color: #fff; font: 700 12px/22px var(--font); text-align: center; box-shadow: 0 1px 5px rgba(0, 0, 0, .45); }
.tp-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.tp-gal figure { margin: 0; aspect-ratio: 4 / 3; border-radius: 10px; }
.tp-vids { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px; }
.tp-vids.many { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
.tp-vid { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.tp-vid iframe, .tp-vid > img { width: 100%; height: 100%; border: 0; display: block; object-fit: cover; }
.tp-vid .tp-vt { position: absolute; left: 12px; bottom: 12px; }
.tp-vids h3 { font-size: 16px; letter-spacing: .04em; margin: 14px 0 6px; }
.tp-vids p { color: var(--muted); margin: 0; }
.tp-near { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.tp-near a { text-underline-offset: 4px; }
.tp-near small { display: block; font-size: 13px; color: var(--muted); }
.tp-near a:last-child { text-align: right; }
.tp-credit { font-size: 12px; color: var(--muted); margin-top: 16px; }
@media (max-width: 920px) {
  .tp-wrap { padding: 24px 0 32px; }
  .tp h2 { font-size: 24px; }
  .tp section { margin-top: 40px; }
  .tp-hero, .tp-hero.n2 { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px; }
  .tp-hero figure:first-child, .tp-hero.n2 figure:first-child { grid-row: auto; grid-column: span 2; }
  .tp-hero.n1 { grid-template-columns: 1fr; grid-template-rows: 240px; }
  .tp-hero.n1 figure:first-child { grid-column: auto; }
  .tp-plan { grid-template-columns: 1fr; }
  #tpMap { height: 340px; }
  .tp-gal { grid-template-columns: 1fr 1fr; }
  .tp-vids.many { grid-template-columns: 1fr; }
}
