/* ==========================================================================
   SunTeam v2 — Sun Trips (active event + countdown, past trips, report pages)
   ========================================================================== */
.tp { overflow-x: clip; }
.tp-hero { position: relative; padding: 18px 0 10px; overflow: hidden; }
.tp-hero .hero-bg { z-index: -1; background: radial-gradient(800px 400px at 20% 30%, rgba(100,181,246,.2), transparent 70%), radial-gradient(600px 360px at 85% 10%, rgba(255,212,0,.16), transparent 70%); }
.tp-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-top: 14px; }
.tp-head .lead { margin: 0; }

.trip-scene { display: block; width: 100%; height: 100%; }
.ts-sun { transform-box: fill-box; transform-origin: center; animation: tp-pulse 4s ease-in-out infinite; }
.ts-wave { animation: tp-wave 6s ease-in-out infinite; }
.ts-wave.w2 { animation-duration: 8s; animation-direction: reverse; }
.ts-boat { animation: tp-boat 5s ease-in-out infinite; }
.ts-birds { animation: tp-birds 12s linear infinite; }
@keyframes tp-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes tp-wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-14px); } }
@keyframes tp-boat { 0%, 100% { transform: translate(250px, 160px) rotate(-2deg); } 50% { transform: translate(236px, 164px) rotate(2deg); } }
@keyframes tp-birds { from { transform: translateX(0); } to { transform: translateX(60px); } }

/* active event */
.tp-live { display: grid; grid-template-columns: 1.1fr 1.2fr 1fr; gap: 0; border-radius: 32px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--tc), 0 40px 80px -50px rgba(17,19,24,.5); }
.tl-art { position: relative; min-height: 340px; }
.tl-art .trip-scene { position: absolute; inset: 0; }
.tl-badge { position: absolute; top: 16px; inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: #111318; color: #fff; font-weight: 800; font-size: var(--fs-sm); }
.ts-title .tl-badge { position: static; width: fit-content; }
.tl-badge i { width: 9px; height: 9px; border-radius: 50%; background: #F04438; animation: pulse-ring 1.6s infinite; }
.tl-body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.tl-dest { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-3); font-weight: 700; }
.tl-body h2 { font-size: var(--fs-2xl); font-weight: 900; }
.tl-body p { color: var(--text-2); line-height: 2; margin: 0; }
.tl-timer { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; direction: rtl; }
.tl-timer div { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 16px; background: #111318; color: #fff; }
.tl-timer b { font-size: 1.6rem; font-weight: 900; line-height: 1.1; color: var(--sun-400); font-variant-numeric: tabular-nums; }
.tl-timer span { font-size: var(--fs-xs); color: rgba(255,255,255,.6); }
.tl-dl { display: inline-flex; align-items: center; gap: 6px; color: var(--text-3); font-size: var(--fs-xs); }
.tl-body .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.tl-conds { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: color-mix(in srgb, var(--tc) 8%, var(--surface)); }
.tl-conds > b { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; }
.tl-conds ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tl-conds li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tc-ico { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--tc); color: #fff; }
.tl-conds li b { display: block; font-size: var(--fs-sm); font-weight: 800; }
.tl-conds li small { font-size: var(--fs-xs); color: var(--text-2); line-height: 1.8; }
.tl-prizes { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-prizes span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border-radius: 999px; background: var(--amber-soft); font-size: var(--fs-xs); font-weight: 700; }

/* timeline of past trips */
.tp-timeline { list-style: none; margin: 0; padding: 0 0 0 0; position: relative; display: flex; flex-direction: column; gap: 22px; }
.tp-timeline::before { content: ""; position: absolute; top: 8px; bottom: 8px; inset-inline-start: 86px; width: 2px; background: repeating-linear-gradient(to bottom, var(--line-strong) 0 8px, transparent 8px 14px); }
.tp-timeline li { position: relative; display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 34px; align-items: start; }
.tt-date { padding-top: 22px; font-size: var(--fs-xs); font-weight: 800; color: var(--text-3); text-align: center; }
.tt-dot { position: absolute; top: 24px; inset-inline-start: 80px; width: 14px; height: 14px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 0 4px var(--surface), 0 0 0 6px color-mix(in srgb, var(--tc) 40%, transparent); }
.tp-card { display: grid; grid-template-columns: 280px minmax(0, 1fr); border-radius: 26px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.tp-card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px var(--tc), 0 26px 50px -32px rgba(17,19,24,.45); }
.tc-art { position: relative; min-height: 180px; }
.tc-art .trip-scene { position: absolute; inset: 0; }
.tc-body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.tc-dest { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-xs); font-weight: 800; color: var(--tc); }
.tc-body b { font-size: var(--fs-lg); font-weight: 900; }
.tc-body small { color: var(--text-2); line-height: 1.9; font-size: var(--fs-sm); }
.tc-hl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.tc-hl span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-sunk); font-size: var(--fs-xs); font-weight: 700; }
.tc-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-weight: 800; font-size: var(--fs-sm); color: var(--accent-ink); }

/* trip page */
.ts-hero { position: relative; min-height: 360px; display: flex; align-items: flex-end; overflow: hidden; color: #111318; }
.ts-hero-art { position: absolute; inset: 0; z-index: -1; }
.ts-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(255,255,255,.92), rgba(255,255,255,.2) 60%, transparent); }
.ts-hero-in { padding-top: 18px; padding-bottom: 28px; width: 100%; }
.ts-title { display: flex; flex-direction: column; gap: 10px; margin-top: 60px; }
.ts-tag { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 12px; border-radius: 999px; background: #111318; color: var(--sun-400); font-weight: 800; font-size: var(--fs-xs); }
.ts-dest { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; font-weight: 700; color: var(--text-2); margin: 0; }
.ts-dest i { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); margin-inline: 4px; }
.ts-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ts-main { display: flex; flex-direction: column; gap: 16px; }
.ts-highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ts-highlights div { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ts-highlights .u-ico { background: color-mix(in srgb, var(--tc) 22%, transparent); margin-bottom: 4px; }
.ts-highlights b { font-weight: 900; }
.ts-highlights small { color: var(--text-3); font-size: var(--fs-xs); }
.ts-report { padding: 22px; }
.ts-report .h-3 { margin-bottom: 10px; }
.ts-video { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.ts-video video, .ts-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; background: #000; }
.ts-gallery .h-3 { margin-bottom: 10px; }
.ts-photos { columns: 3 200px; column-gap: 10px; }
.ts-photos a { display: block; margin-bottom: 10px; border-radius: 16px; overflow: hidden; break-inside: avoid; }
.ts-photos img { display: block; width: 100%; height: auto; }
.ts-empty { display: flex; align-items: center; gap: 10px; padding: 22px; border-radius: 20px; background: var(--surface-sunk); color: var(--text-3); }
.ts-side { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 14px; }
.tl-card { padding: 18px; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--tc), var(--sh-2); display: flex; flex-direction: column; gap: 10px; }
.tl-card-t { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; }
.ts-side .tl-conds { border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.ts-others { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tp-card.mini { grid-template-columns: 1fr; }
.tp-card.mini .tc-art { min-height: 140px; }

@media (prefers-reduced-motion: reduce) { .ts-sun, .ts-wave, .ts-boat, .ts-birds { animation: none; } }
@media (max-width: 1100px) { .tp-live { grid-template-columns: 1fr 1fr; } .tl-art { grid-column: 1 / -1; min-height: 220px; } }
@media (max-width: 960px) {
  .ts-grid { grid-template-columns: 1fr; }
  .ts-side { position: static; }
  .tp-card { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .tp-live { grid-template-columns: 1fr; }
  .tp-timeline::before, .tt-dot { display: none; }
  .tp-timeline li { grid-template-columns: 1fr; gap: 6px; }
  .tt-date { padding-top: 0; text-align: start; }
  .tl-timer b { font-size: 1.3rem; }
}
