/* goeatthemap.com live trip layer (16 Nov 2026, map-driven version). */
#trip-live:empty, .tl-cardslot:empty, #tl-key:empty, #tl-status:empty { display: none }
#tl-status { margin-top: 18px }
#tl-status .tl-day { margin: 0 }
.tl-done { display: inline-block; margin: 0; background: #1A2140; color: #FFFFFF; font: 700 15px/1.4 'DM Sans', sans-serif; padding: 10px 16px; border-radius: 14px; max-width: 760px }
#tl-key { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700 }

/* Latest clips: intro beside the clips on desktop, stacked with a swipe row on phones */
.tl { background: #FBF3E4; color: #1A2140; font-family: 'DM Sans', sans-serif }
.tl-in { max-width: 1344px; margin: 0 auto; box-sizing: content-box; padding: 56px clamp(16px, 4vw, 48px);
  display: grid; grid-template-columns: minmax(240px, 1fr) 2.4fr; gap: 40px; align-items: center }
.tl-kick { font: 700 13px/1.2 'DM Sans', sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #6E1E3A; margin: 0 0 8px }
.tl h2 { font: 800 clamp(32px, 4vw, 48px)/1.02 'Fraunces', serif; margin: 0 0 16px }
.tl-day { display: inline-block; background: #F2A81D; color: #1A2140; font: 800 15px/1 'DM Sans', sans-serif; padding: 9px 14px; border-radius: 999px; margin: 0 0 18px }
.tl-intro .tl-ig { display: block }
.tl-ig { font: 700 15px/1.3 'DM Sans', sans-serif; color: #2346D8; text-decoration: none }
.tl-ig:hover { text-decoration: underline }
.tl-clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px }
.tl-clips > :nth-child(n+5) { display: none }
/* one or two clips: a tighter block so the intro and the tiles sit together */
.tl-in.few { grid-template-columns: auto auto; justify-content: center; column-gap: clamp(40px, 6vw, 96px) }
.few .tl-clips { grid-template-columns: repeat(3, 210px) }
.few .tl-clips.n1 { grid-template-columns: repeat(2, 210px) }
.tl-clip { display: block; text-decoration: none; color: #1A2140; min-width: 0 }
.tl-clip .im { display: block; position: relative; aspect-ratio: 9 / 16; border-radius: 10px; overflow: hidden; background: #1A2140 }
.tl-clip img { display: block; width: 100%; height: 100%; object-fit: cover }
.tl-clip .im::after { content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgba(255,255,255,.9) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%231A2140'/%3E%3C/svg%3E") center/24px no-repeat }
.tl-clip b { display: block; font: 700 14px/1.3 'DM Sans', sans-serif; margin: 8px 0 0 }
.tl-follow { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; aspect-ratio: 9 / 16; box-sizing: border-box;
  padding: 20px; border-radius: 10px; background: #F2A81D; color: #1A2140; text-decoration: none; min-width: 0 }
.tl-follow b { font: 800 22px/1.15 'Fraunces', serif }
.tl-follow .btn { font: 700 14px/1 'DM Sans', sans-serif; background: #1A2140; color: #fff; padding: 10px 14px; border-radius: 999px }
.tl-clip:focus-visible, .tl-follow:focus-visible, .tl-ig:focus-visible { outline: 3px solid #2346D8; outline-offset: 3px }

@media (max-width: 1100px) {
  .tl-in, .tl-in.few { grid-template-columns: 1fr; gap: 20px }
  .tl-intro { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px }
  .tl-intro .tl-kick { flex-basis: 100%; margin: 0 }
  .tl h2, .tl-day { margin: 0 }
}
@media (max-width: 600px) {
  .tl-in { padding-top: 44px; padding-bottom: 44px }
  .tl-clips { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(-1 * clamp(16px, 4vw, 48px)); padding: 0 clamp(16px, 4vw, 48px) 6px }
  .tl-clips > * { flex: 0 0 44%; scroll-snap-align: start }
  .tl-clips > :nth-child(n+5) { display: block }
  .tl-clips.n1, .tl-clips.n2 { margin: 0; padding: 0 }
  .tl-clips.n1 > *, .tl-clips.n2 > * { flex: 1 1 0 }
  .tl-clips.n1 .tl-follow, .tl-clips.n2 .tl-follow { aspect-ratio: auto; align-self: stretch }
  .tl-clips.n1, .tl-clips.n2 { align-items: flex-start }
  .tl-follow b { font-size: 19px }
}

/* Visited country inside the route card and the phone accordion */
.tl-cardin { border-top: 1px solid #E3D8C3; padding-top: 12px; display: flex; flex-direction: column; gap: 10px }
.tl-lab { color: #6E1E3A }
.tl-photo { margin: 0 }
.tl-photo img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px }
.tl-photo figcaption { font-size: 12px; color: #4A5070; margin-top: 4px }
.tl-lab2 { font-size: 13px; font-weight: 700; color: #4A5070 }
.tl-mini { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px }
.tl-mini .tl-clip .im { border-radius: 8px }
.tl-mini .tl-clip .im::after { width: 26px; height: 26px; margin: -13px 0 0 -13px; background-size: 16px }
.tl-mini .tl-clip b { font-size: 12px; margin-top: 4px }
