/**
 * Client-provided ticket card component stylesheet.
 * Scoped to .tpk. Font declarations reuse theme fonts, avoiding external requests.
 */
/* ---------- Design tokens (scoped to the component) ---------- */
    .tpk {
      --tpk-red: #C8102E;
      --tpk-red-deep: #9B0C23;
      --tpk-red-soft: #FDECEE;
      --tpk-green: #0E4D3A;
      --tpk-green-mid: #1F8A5B;
      --tpk-green-soft: #E8F4EE;
      --tpk-white: #FFFFFF;
      --tpk-ink: #0B2A21;
      --tpk-muted: #4A6159;
      --tpk-gap: clamp(18px, 2.4vw, 28px);
      --tpk-ease: cubic-bezier(0.22, 1, 0.36, 1);
      --tpk-font-display: Georgia, "Times New Roman", serif;
      --tpk-font-body: var(--jeepa-font, "Jost", Arial, sans-serif);

      position: relative;
      overflow: hidden;
      padding: clamp(28px, 2.6vw, 40px) 20px clamp(56px, 8vw, 110px);
      background: var(--tpk-white);
      color: var(--tpk-ink);
      font-family: var(--tpk-font-body);
      -webkit-font-smoothing: antialiased;
    }

    .tpk *,
    .tpk *::before,
    .tpk *::after {
      box-sizing: border-box;
    }

    .tpk__inner {
      max-width: 1200px;
      margin: 0 auto;
    }

    /* ---------- Separator: horizon rising into a ridge ---------- */
    .tpk-sep {
      display: flex;
      align-items: flex-end;
      justify-content: center;
      max-width: 1100px;
      margin: 0 auto clamp(36px, 5vw, 56px);
    }

    .tpk-sep__line {
      flex: 1;
      height: 2px;
      margin-bottom: 1px;
      border-radius: 2px;
    }

    .tpk-sep__line--left {
      background: linear-gradient(90deg, rgba(14, 77, 58, 0), var(--tpk-green));
      transform-origin: right center;
    }

    .tpk-sep__line--right {
      background: linear-gradient(90deg, var(--tpk-green), rgba(14, 77, 58, 0));
      transform-origin: left center;
    }

    .tpk-sep__art {
      display: block;
      flex-shrink: 0;
      width: min(260px, 64vw);
      height: auto;
      overflow: visible;
    }

    .tpk-sep__ridge,
    .tpk-sep__string {
      stroke-dasharray: 1;
      stroke-dashoffset: 0;
    }

    .tpk-sep__flag {
      transform-box: fill-box;
      transform-origin: 50% 0;
      animation: tpk-flutter 2.4s ease-in-out infinite alternate;
    }

    .tpk-sep__flag:nth-of-type(2n) { animation-delay: -0.6s; }
    .tpk-sep__flag:nth-of-type(3n) { animation-delay: -1.2s; }

    @keyframes tpk-flutter {
      from { transform: skewX(-9deg) scaleY(1); }
      to { transform: skewX(9deg) scaleY(0.9); }
    }

    /* ---------- Heading ---------- */
    .tpk__head {
      max-width: 720px;
      margin: 0 auto clamp(36px, 5vw, 52px);
      text-align: center;
    }

    .tpk__eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      margin: 0 0 18px;
      padding: 7px 16px 7px 12px;
      border-radius: 999px;
      background: var(--tpk-red-soft);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.16em;
      text-transform: uppercase;
      color: var(--tpk-red);
    }

    .tpk__pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--tpk-red);
      animation: tpk-pulse 1.8s ease-out infinite;
    }

    @keyframes tpk-pulse {
      0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0.55); }
      100% { box-shadow: 0 0 0 9px rgba(200, 16, 46, 0); }
    }

    .tpk__title {
      margin: 0 0 18px;
      font-family: var(--tpk-font-display);
      font-size: clamp(2.1rem, 5vw, 3.4rem);
      font-weight: 600;
      line-height: 1.1;
      letter-spacing: -0.02em;
      color: var(--tpk-ink);
    }

    .tpk__title-mark {
      position: relative;
      display: inline-block;
      font-style: italic;
      font-weight: 500;
      color: var(--tpk-green-mid);
    }

    .tpk__underline {
      position: absolute;
      left: -2%;
      bottom: -0.16em;
      width: 104%;
      height: 0.32em;
      overflow: visible;
      pointer-events: none;
    }

    .tpk__underline path {
      stroke-dasharray: 1;
      stroke-dashoffset: 0;
    }

    .tpk__lead {
      max-width: 600px;
      margin: 0 auto;
      font-size: 1.05rem;
      line-height: 1.7;
      color: var(--tpk-muted);
    }

    .tpk__highlights {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 10px;
      margin: 26px 0 0;
      padding: 0;
      list-style: none;
    }

    .tpk__highlight {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      padding: 5px 15px 5px 5px;
      border-radius: 999px;
      background: var(--tpk-white);
      box-shadow:
        0 0 0 1px rgba(14, 77, 58, 0.14),
        0 8px 18px -12px rgba(11, 42, 33, 0.35);
      font-size: 0.86rem;
      font-weight: 600;
      color: var(--tpk-ink);
    }

    .tpk__highlight-icon {
      display: grid;
      place-items: center;
      width: 28px;
      height: 28px;
      border-radius: 50%;
      background: var(--tpk-red-soft);
      color: var(--tpk-red);
    }

    .tpk__highlight:nth-child(even) .tpk__highlight-icon {
      background: var(--tpk-green-soft);
      color: var(--tpk-green-mid);
    }

    .tpk__highlight-icon svg {
      width: 15px;
      height: 15px;
    }

    /* ---------- Slider track ---------- */
    .tpk__viewport {
      margin: 0 -20px;
    }

    .tpk__track {
      --tpk-pad: 20px;
      display: grid;
      grid-auto-flow: column;
      /* One whole ticket per phone viewport. No neighboring ticket peeks in. */
      grid-auto-columns: 100%;
      gap: max(var(--tpk-gap), var(--tpk-pad));
      gap: var(--tpk-gap);
      margin: 0;
      padding: 16px var(--tpk-pad) 36px;
      list-style: none;
      overflow-x: auto;
      overscroll-behavior-x: contain;
      scroll-snap-type: x mandatory;
      scroll-padding-inline: var(--tpk-pad);
      -webkit-overflow-scrolling: touch;
    }

    .tpk__track:focus-visible {
      outline: 3px solid var(--tpk-red);
      outline-offset: -3px;
      border-radius: 12px;
    }

    .tpk--js .tpk__track {
      scrollbar-width: none;
    }

    .tpk--js .tpk__track::-webkit-scrollbar {
      display: none;
    }

    @media (min-width: 640px) {
      .tpk__track {
        grid-auto-columns: min(60%, 440px);
      }
    }

    @media (min-width: 1024px) {
      .tpk__viewport {
        margin: 0 -28px;
      }

      .tpk__track {
        --tpk-pad: 28px;
        grid-auto-columns: calc((100% - 2 * var(--tpk-gap)) / 3);
      }
    }

    .tpk__slide {
      display: flex;
      scroll-snap-align: start;
      filter:
        drop-shadow(0 1px 1px rgba(11, 42, 33, 0.07))
        drop-shadow(0 10px 14px rgba(11, 42, 33, 0.1));
    }

    /* ---------- Ticket card ---------- */
    .tpk-card {
      --tpk-stub: 84px;
      --tpk-notch: 13px;
      position: relative;
      display: flex;
      flex-direction: column;
      width: 100%;
      overflow: hidden;
      border-radius: 22px;
      background: var(--tpk-white);
      container-type: inline-size;
      transition: transform 0.5s var(--tpk-ease), box-shadow 0.3s ease;

      /* Ticket notches on both sides, level with the perforation */
      -webkit-mask:
        radial-gradient(circle at 0 calc(100% - var(--tpk-stub)), transparent calc(var(--tpk-notch) - 0.5px), #000 var(--tpk-notch)) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% calc(100% - var(--tpk-stub)), transparent calc(var(--tpk-notch) - 0.5px), #000 var(--tpk-notch)) right / 51% 100% no-repeat;
      mask:
        radial-gradient(circle at 0 calc(100% - var(--tpk-stub)), transparent calc(var(--tpk-notch) - 0.5px), #000 var(--tpk-notch)) left / 51% 100% no-repeat,
        radial-gradient(circle at 100% calc(100% - var(--tpk-stub)), transparent calc(var(--tpk-notch) - 0.5px), #000 var(--tpk-notch)) right / 51% 100% no-repeat;
    }

    .tpk-card:hover {
      transform: translateY(-6px);
    }

    .tpk-card:focus-within {
      box-shadow: inset 0 0 0 3px var(--tpk-red);
    }

    /* Photo */
    .tpk-card__media {
      position: relative;
      margin: 0;
      aspect-ratio: 4 / 3;
      overflow: hidden;
      background: var(--tpk-green-soft);
    }

    .tpk-card__img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 1.2s var(--tpk-ease);
    }

    .tpk-card:hover .tpk-card__img {
      transform: scale(1.06);
    }

    /* Body */
    .tpk-card__body {
      flex: 1;
      padding: 22px 22px 22px;
    }

    .tpk-card__title {
      margin: 0 0 14px;
      font-family: var(--tpk-font-display);
      font-size: 1.32rem;
      font-weight: 600;
      line-height: 1.25;
      letter-spacing: -0.01em;
    }

    .tpk-card__link {
      color: var(--tpk-ink);
      text-decoration: none;
      transition: color 0.3s ease;
    }

    .tpk-card__link:focus {
      outline: none;
    }

    /* Whole card is clickable through this one link */
    .tpk-card__link::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
    }

    .tpk-card:hover .tpk-card__link {
      color: var(--tpk-green-mid);
    }

    /* Route: places covered, joined by a dashed trail */
    .tpk-card__route {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 0;
      margin: 0;
      padding: 0;
      list-style: none;
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--tpk-muted);
    }

    .tpk-card__route li {
      position: relative;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .tpk-card__route li::before {
      content: "";
      flex-shrink: 0;
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--tpk-green-mid);
      box-shadow: 0 0 0 3px var(--tpk-green-soft);
    }

    .tpk-card__route li:last-child:not(:first-child)::before {
      border: 2.5px solid var(--tpk-red);
      background: var(--tpk-white);
      box-shadow: 0 0 0 3px var(--tpk-red-soft);
    }

    .tpk-card__route li + li {
      margin-left: 8px;
      padding-left: 36px;
    }

    .tpk-card__route li + li::after {
      content: "";
      position: absolute;
      top: 50%;
      left: 0;
      width: 28px;
      border-top: 2px dashed rgba(31, 138, 91, 0.5);
    }

    /* Ticket stub with perforation */
    .tpk-card__stub {
      position: relative;
      display: flex;
      flex-shrink: 0;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      height: var(--tpk-stub);
      padding: 0 18px;
      background: linear-gradient(180deg, #F3F9F6, var(--tpk-white));
    }

    .tpk-card__stub::before {
      content: "";
      position: absolute;
      top: 0;
      left: calc(var(--tpk-notch) + 6px);
      right: calc(var(--tpk-notch) + 6px);
      border-top: 2px dashed rgba(14, 77, 58, 0.2);
    }

    /* Day and night split capsule */
    .tpk-duration {
      display: inline-flex;
      overflow: hidden;
      margin: 0;
      border-radius: 999px;
      box-shadow: inset 0 0 0 1.5px rgba(14, 77, 58, 0.18);
      font-size: 0.8rem;
      font-weight: 600;
      white-space: nowrap;
    }

    .tpk-duration__day,
    .tpk-duration__night {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 8px 11px;
    }

    .tpk-duration__day {
      background: var(--tpk-white);
      color: var(--tpk-ink);
      border-radius: 999px 0 0 999px;
      box-shadow: inset 1.5px 0 0 rgba(14, 77, 58, 0.18), inset 0 1.5px 0 rgba(14, 77, 58, 0.18), inset 0 -1.5px 0 rgba(14, 77, 58, 0.18);
    }

    .tpk-duration__day svg {
      color: var(--tpk-red);
    }

    .tpk-duration__night {
      background: linear-gradient(135deg, var(--tpk-green-mid), var(--tpk-green));
      color: var(--tpk-white);
    }

    .tpk-duration svg {
      width: 15px;
      height: 15px;
      flex-shrink: 0;
    }

    .tpk-duration b {
      font-size: 0.98rem;
      font-weight: 800;
    }

    /* View Details (visual only, sits inside the card link area) */
    .tpk-card__cta {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 0.85rem;
      font-weight: 700;
      white-space: nowrap;
      color: var(--tpk-red);
    }

    .tpk-card__cta-icon {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--tpk-red);
      color: var(--tpk-white);
      box-shadow: 0 10px 20px -10px rgba(200, 16, 46, 0.75);
      transition: background-color 0.4s ease, transform 0.5s var(--tpk-ease);
    }

    .tpk-card__cta-icon svg {
      width: 17px;
      height: 17px;
    }

    .tpk-card:hover .tpk-card__cta-icon {
      background: var(--tpk-green-mid);
      transform: translateX(4px);
    }

    /* Narrow cards keep only the arrow */
    @container (max-width: 350px) {
      .tpk-card__cta-text {
        display: none;
      }
    }

    /* Very narrow phones retain the complete day/night capsule and action. */
    @media (max-width: 359px) {
      .tpk-card__stub {
        gap: 8px;
        padding-inline: 12px;
      }
      .tpk-duration { font-size: 0.75rem; }
      .tpk-duration__day,
      .tpk-duration__night {
        gap: 4px;
        padding: 7px 7px;
      }
      .tpk-card__cta-icon { width: 34px; height: 34px; }
    }

    /* ---------- Slider controls ---------- */
    .tpk__controls {
      display: none;
      align-items: center;
      gap: 16px;
      max-width: 440px;
      margin: 0 auto;
    }

    .tpk--js .tpk__controls {
      display: flex;
    }

    .tpk--js.tpk--static .tpk__controls {
      display: none;
    }

    .tpk__nav {
      display: grid;
      flex-shrink: 0;
      place-items: center;
      width: 46px;
      height: 46px;
      padding: 0;
      border: 1.5px solid rgba(14, 77, 58, 0.25);
      border-radius: 50%;
      background: var(--tpk-white);
      color: var(--tpk-green);
      cursor: pointer;
      transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    }

    .tpk__nav svg {
      width: 18px;
      height: 18px;
    }

    .tpk__nav:hover:not(:disabled) {
      border-color: var(--tpk-red);
      background: var(--tpk-red);
      color: var(--tpk-white);
    }

    .tpk__nav:focus-visible {
      outline: 3px solid var(--tpk-red);
      outline-offset: 3px;
    }

    .tpk__nav:disabled {
      opacity: 0.35;
      cursor: default;
    }

    /* Trail progress: a red marker walking along the path */
    .tpk__progress {
      position: relative;
      flex: 1;
      height: 2px;
      border-radius: 2px;
      background: rgba(14, 77, 58, 0.15);
    }

    .tpk__progress-fill {
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      width: calc(var(--tpk-progress, 0) * 100%);
      border-radius: 2px;
      background: linear-gradient(90deg, var(--tpk-green-mid), var(--tpk-red));
    }

    .tpk__progress-dot {
      position: absolute;
      top: 50%;
      left: calc(var(--tpk-progress, 0) * 100%);
      width: 14px;
      height: 14px;
      margin: -7px 0 0 -7px;
      border: 3px solid var(--tpk-red);
      border-radius: 50%;
      background: var(--tpk-white);
      box-shadow: 0 0 0 4px rgba(200, 16, 46, 0.15);
    }

    /* ---------- Explore all ---------- */
    .tpk__footer {
      margin-top: 36px;
      text-align: center;
    }

    .tpk__all {
      position: relative;
      isolation: isolate;
      display: inline-flex;
      align-items: center;
      gap: 14px;
      overflow: hidden;
      padding: 8px 8px 8px 28px;
      border-radius: 999px;
      background: var(--tpk-red);
      box-shadow: 0 16px 30px -16px rgba(200, 16, 46, 0.85);
      font-size: 0.85rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: var(--tpk-white);
      text-decoration: none;
    }

    .tpk__all::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: var(--tpk-green);
      transform: scaleX(0);
      transform-origin: left center;
      transition: transform 0.5s var(--tpk-ease);
    }

    .tpk__all:hover::before,
    .tpk__all:focus-visible::before {
      transform: scaleX(1);
    }

    .tpk__all:focus-visible {
      outline: 3px solid var(--tpk-red);
      outline-offset: 4px;
    }

    .tpk__all-icon {
      display: grid;
      place-items: center;
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: var(--tpk-white);
      color: var(--tpk-red);
      transition: color 0.4s ease, transform 0.5s var(--tpk-ease);
    }

    .tpk__all-icon svg {
      width: 17px;
      height: 17px;
    }

    .tpk__all:hover .tpk__all-icon {
      color: var(--tpk-green);
      transform: rotate(-45deg);
    }

    /* ---------- Entrance animation (enabled by JS only) ---------- */
    .tpk--anim .tpk-sep__line {
      transform: scaleX(0);
    }

    .tpk--anim .tpk-sep__ridge,
    .tpk--anim .tpk-sep__string,
    .tpk--anim .tpk__underline path {
      stroke-dashoffset: 1;
    }

    .tpk--anim .tpk-sep__fill,
    .tpk--anim .tpk-sep__sun,
    .tpk--anim .tpk-sep__flags {
      opacity: 0;
    }

    .tpk--anim .tpk__eyebrow,
    .tpk--anim .tpk__title,
    .tpk--anim .tpk__lead,
    .tpk--anim .tpk__highlight {
      opacity: 0;
      transform: translateY(16px);
    }

    .tpk--anim .is-in .tpk-sep__ridge {
      stroke-dashoffset: 0;
      transition: stroke-dashoffset 1.4s var(--tpk-ease);
    }

    .tpk--anim .is-in .tpk-sep__fill,
    .tpk--anim .is-in .tpk-sep__sun {
      opacity: 1;
      transition: opacity 0.9s ease 0.5s;
    }

    .tpk--anim .is-in .tpk-sep__line {
      transform: scaleX(1);
      transition: transform 1.2s var(--tpk-ease) 0.4s;
    }

    .tpk--anim .is-in .tpk-sep__string {
      stroke-dashoffset: 0;
      transition: stroke-dashoffset 1s ease 0.7s;
    }

    .tpk--anim .is-in .tpk-sep__flags {
      opacity: 1;
      transition: opacity 0.6s ease 1.2s;
    }

    .tpk--anim .is-in .tpk__eyebrow,
    .tpk--anim .is-in .tpk__title,
    .tpk--anim .is-in .tpk__lead,
    .tpk--anim .is-in .tpk__highlight {
      opacity: 1;
      transform: none;
      transition: opacity 0.7s ease var(--tpk-d, 0s), transform 0.8s var(--tpk-ease) var(--tpk-d, 0s);
    }

    .tpk__eyebrow { --tpk-d: 0.2s; }
    .tpk__title { --tpk-d: 0.3s; }
    .tpk__lead { --tpk-d: 0.45s; }
    .tpk__highlight:nth-child(1) { --tpk-d: 0.6s; }
    .tpk__highlight:nth-child(2) { --tpk-d: 0.7s; }
    .tpk__highlight:nth-child(3) { --tpk-d: 0.8s; }

    .tpk--anim .is-in .tpk__underline path {
      stroke-dashoffset: 0;
      transition: stroke-dashoffset 0.9s var(--tpk-ease) 0.9s;
    }

    /* Cards */
    .tpk--anim .tpk__slide {
      opacity: 0;
      transform: translateY(48px);
    }

    .tpk--anim .tpk-card__img {
      clip-path: inset(0 0 100% 0);
    }

    .tpk--anim .tpk-duration__day {
      opacity: 0;
      transform: translateX(-14px);
    }

    .tpk--anim .tpk-duration__night {
      opacity: 0;
      transform: translateX(14px);
    }

    .tpk--anim .is-in .tpk__slide {
      opacity: 1;
      transform: none;
      transition:
        opacity 0.8s ease calc(var(--tpk-i, 0) * 140ms),
        transform 1s var(--tpk-ease) calc(var(--tpk-i, 0) * 140ms);
    }

    .tpk--anim .is-in .tpk-card__img {
      clip-path: inset(0 0 0 0);
      transition:
        clip-path 1.1s var(--tpk-ease) calc(var(--tpk-i, 0) * 140ms + 150ms),
        transform 1.2s var(--tpk-ease);
    }

    .tpk--anim .is-in .tpk-duration__day,
    .tpk--anim .is-in .tpk-duration__night {
      opacity: 1;
      transform: none;
      transition:
        opacity 0.6s ease calc(var(--tpk-i, 0) * 140ms + 600ms),
        transform 0.7s var(--tpk-ease) calc(var(--tpk-i, 0) * 140ms + 600ms);
    }

    /* ---------- Accessibility: reduced motion ---------- */
    @media (prefers-reduced-motion: reduce) {
      .tpk *,
      .tpk *::before,
      .tpk *::after {
        transition: none !important;
        animation: none !important;
      }

      .tpk-card:hover,
      .tpk-card:hover .tpk-card__img,
      .tpk-card:hover .tpk-card__cta-icon,
      .tpk__all:hover .tpk__all-icon {
        transform: none;
      }
    }
