
/* ---------- Liste ---------- */
.pk-page { min-height: 420px; background: var(--af-canvas); color: var(--af-ink); }

/* Filtres par pastilles, effet immédiat */
.pk-filter { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-bottom: 14px; padding: 14px 18px; border: 1px solid var(--af-line); border-radius: var(--af-radius); background: #fff; }
.pk-filter-group { display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%; }
.pk-filter-label { flex: none; font-size: 14px; font-weight: 600; color: var(--af-muted); }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { display: inline-flex; align-items: center; gap: 4px; min-height: 36px; padding: 0 14px; border: 1px solid var(--af-line); border-radius: 999px; background: #fff; color: var(--af-ink); font-family: var(--af-font); font-size: 14px; font-weight: 500; line-height: 1; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.pk-chip .bi { color: var(--af-star); font-size: 12px; }
.pk-chip:hover { border-color: var(--af-red); color: var(--af-red-hover); }
.pk-chip[aria-pressed="true"] { border-color: var(--af-red); background: var(--af-red); color: #fff; }
.pk-chip[aria-pressed="true"] .bi { color: #fff; }
.pk-chip:focus-visible { outline: 2px solid var(--af-red); outline-offset: 2px; }
.pk-count-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 24px; margin-bottom: 14px; }
.pk-count { margin: 0; font-size: 14px; color: var(--af-muted); }
.pk-reset { padding: 0; border: 0; background: none; color: var(--af-red-hover); font-size: 14px; font-weight: 600; cursor: pointer; }
.pk-reset:hover { text-decoration: underline; }
.pk-noresult { padding: 40px 16px; text-align: center; color: var(--af-muted); }
.pk-noresult .bi { font-size: 28px; color: var(--af-red); }
.pk-noresult p { margin: 8px 0 14px; }

/* Carte voyage, entièrement cliquable */
.pk-card { position: relative; display: flex; flex-direction: column; width: 100%; overflow: hidden; border: 1px solid var(--af-line); border-radius: var(--af-radius); background: #fff; box-shadow: var(--af-shadow-sm); transition: box-shadow .2s, transform .2s; }
.pk-card:hover { box-shadow: var(--af-shadow); transform: translateY(-2px); }
.pk-card:focus-within { outline: 2px solid var(--af-red); outline-offset: 2px; }
.pk-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--af-red-soft); }
.pk-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.pk-card:hover .pk-card-media img { transform: scale(1.04); }
.pk-badge { position: absolute; top: 10px; left: 10px; padding: 5px 10px; border-radius: 6px; background: #fdf3e3; color: #8a5a00; font-size: 12px; font-weight: 600; }
.pk-card-body { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px; }
.pk-card-title { margin: 0; font-family: var(--af-font); font-size: 18px; font-weight: 600; line-height: 1.3; letter-spacing: -.005em; }
.pk-card-title a { color: var(--af-ink); text-decoration: none; }
.pk-card-title a:focus { outline: 0; }
.pk-card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pk-card:hover .pk-card-title a { color: var(--af-red-hover); }
.pk-card-place { margin: 0; font-size: 13.5px; color: var(--af-muted); }
.pk-card-meta { display: grid; gap: 4px; margin: 4px 0 0; padding: 0; list-style: none; font-size: 13.5px; }
.pk-card-place > .bi, .pk-card-meta li > .bi { margin-right: 4px; color: var(--af-red); }
/* Accroche marketing : une seule ligne, tronquée avec « … » (même motif que les cartes hôtels) */
.pk-tag { display: flex; gap: 8px; align-items: center; margin-top: 4px; padding: 6px 10px; border-radius: var(--af-radius-sm); background: var(--af-red-soft); color: var(--af-red-dark); font-size: 13px; font-weight: 500; }
.pk-tag .bi { flex: none; }
.pk-tag > div { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding: 12px 16px; border-top: 1px solid var(--af-line); }
.pk-card-from { display: block; font-size: 13px; color: var(--af-muted); }
.pk-card-amount { display: block; font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; }
.pk-card-amount small { font-size: 13px; font-weight: 500; letter-spacing: 0; }
.pk-card-ondemand { font-size: 15px; font-weight: 600; }
.pk-card-cta { display: inline-flex; flex: none; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--af-radius-sm); background: var(--af-red); color: #fff; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background-color .15s; }
.pk-card:hover .pk-card-cta { background: var(--af-red-hover); }

/* Rubrique sans offre en ligne */
.pk-empty { max-width: 720px; margin: 0 auto; padding: 36px 24px 24px; border: 1px solid var(--af-line); border-radius: var(--af-radius); background: #fff; text-align: center; }
.pk-empty-icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin-bottom: 14px; border-radius: 50%; background: var(--af-red-soft); color: var(--af-red); font-size: 28px; }
.pk-empty h2 { margin: 0 0 8px; font-family: var(--af-font); font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.pk-empty p { max-width: 46ch; margin: 0 auto 18px; font-size: 15px; color: var(--af-muted); }
.pk-empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

/* Bouton rouge du tunnel packages */
.pk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px; border: 1px solid var(--af-red); border-radius: var(--af-radius-sm); background: var(--af-red); color: #fff; font-family: var(--af-font); font-size: 15px; font-weight: 600; white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.pk-btn:hover, .pk-btn:focus { border-color: var(--af-red-hover); background: var(--af-red-hover); color: #fff; }
.pk-btn:focus-visible { outline: 2px solid var(--af-red); outline-offset: 2px; }

/* ---------- Fiche ---------- */
.pk-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 10px; padding: 0; font-size: 14px; color: var(--af-muted); list-style: none; }
.pk-facts li > .bi { margin-right: 4px; color: var(--af-red); }
.pk-accroche { display: flex; gap: 8px; margin-top: 4px; padding: 10px 12px; border-radius: var(--af-radius-sm); background: var(--af-red-soft); color: var(--af-ink); font-size: 14px; font-weight: 500; }
.pk-accroche .bi { flex: none; color: var(--af-red); }
.pk-accroche > div { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pk-head-side { text-align: right; }
.pk-from { line-height: 1.2; }
.pk-from small { display: block; font-size: 13px; color: var(--af-muted); }
.pk-from strong { font-size: 25px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.pk-from strong small { display: inline; font-size: 13px; font-weight: 500; letter-spacing: 0; }
.pk-head-side .pk-btn { margin-top: 8px; }

/* Navigation par ancres vers les sections */
.pk-tabs { display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; }
.pk-tabs .nav-link { font-weight: 600; white-space: nowrap; color: var(--af-ink-soft); }
.pk-tabs .nav-link:hover { color: var(--af-red-hover); }
.pk-tabs .nav-link.active { color: var(--af-red); }

/* Sections */
.pk-section { scroll-margin-top: 110px; }
.pk-title { margin: 0 0 12px; font-family: var(--af-font); font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.pk-subtitle { margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.pk-rich { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.pk-rich p, .pk-rich div { margin: 0 0 4px; }
.pk-rich ul, .pk-rich ol { margin: 0 0 8px; padding-left: 20px; }
.pk-rich > :last-child, .pk-rich > :last-child > :last-child { margin-bottom: 0; }
.pk-rich img { max-width: 100%; height: auto; border-radius: var(--af-radius-sm); }
.pk-rich iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--af-radius-sm); }
.pk-rich table { width: 100%; margin-bottom: 8px; border-collapse: collapse; }
.pk-rich td, .pk-rich th { padding: 6px 8px; border: 1px solid var(--af-line); }
.pk-rich + .pk-rich { margin-top: 12px; }

/* Galerie mosaïque, ouverte dans la visionneuse */
.pk-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, 220px); gap: 8px; }
.pk-shot { position: relative; overflow: hidden; margin: 0; border-radius: var(--af-radius-sm); background: var(--af-canvas); }
.pk-shot:first-child { grid-row: 1 / 3; }
.pk-shot img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pk-shot[hidden] { display: none; }
.pk-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgb(35 43 56 / 55%); color: #fff; font-weight: 600; font-size: 18px; pointer-events: none; }

/* Départs */
.pk-dep-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pk-dep-filters .form-select { width: auto; min-height: 40px; border-color: var(--af-line); border-radius: var(--af-radius-sm); font-size: 14px; font-weight: 500; }
.pk-quote { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; padding: 14px 16px; border-radius: var(--af-radius-sm); background: var(--af-red-soft); }
.pk-quote p { margin: 0; font-size: 15px; font-weight: 500; }
.pk-include-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 15px; font-weight: 600; }
.pk-include-title .bi { font-size: 18px; }
.pk-include-title--yes .bi { color: #0e7a5f; }
.pk-include-title--no .bi { color: var(--af-red); }

/* Programme jour par jour */
.pk-program { margin: 0; padding: 0; list-style: none; counter-reset: pk-day; }
.pk-program > li { position: relative; padding: 0 0 18px 42px; counter-increment: pk-day; }
.pk-program > li::before { content: counter(pk-day); position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--af-red); color: #fff; font-size: 13px; font-weight: 600; }
.pk-program > li::after { content: ""; position: absolute; top: 32px; bottom: 4px; left: 13px; width: 2px; background: var(--af-line); }
.pk-program > li:last-child { padding-bottom: 0; }
.pk-program > li:last-child::after { display: none; }
.pk-program h3 { margin: 4px 0 6px; font-size: 15px; font-weight: 600; }

/* Barre fixée en bas de l'écran sur mobile */
.pk-bar { position: fixed; right: 0; bottom: 0; left: 0; z-index: 1030; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--af-line); background: #fff; box-shadow: 0 -4px 12px rgb(16 24 40 / 8%); }
.pk-bar-text { min-width: 0; }
.pk-bar-name { overflow: hidden; font-size: 14px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.pk-bar-price { font-size: 13px; color: var(--af-muted); }
.pk-bar-price strong { color: var(--af-ink); font-size: 15px; font-weight: 600; }
.pk-bar-spacer { height: 76px; }
@media (min-width: 768px) { .pk-bar, .pk-bar-spacer { display: none; } }

/* ---------- Devis : compléments au tunnel .bk-* ---------- */
.pk-ages { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px 12px; margin: 8px 0 4px; }
.pk-age label { display: block; margin-bottom: 4px; color: var(--af-muted); font-size: 12.5px; font-weight: 600; }
.pk-subhead { margin: 20px 0 10px; font-family: var(--af-font); font-size: 14px; font-weight: 600; }

@media (max-width: 767.98px) {
  /* Filtres : une ligne défilante, bord à bord */
  .pk-filter { flex-wrap: nowrap; gap: 12px; margin: 0 -12px 10px; padding: 4px 12px 8px; overflow-x: auto; border: 0; border-radius: 0; background: none; scrollbar-width: none; }
  .pk-filter::-webkit-scrollbar { display: none; }
  .pk-filter-group { flex: none; max-width: none; gap: 8px; }
  .pk-filter-group + .pk-filter-group { padding-left: 12px; border-left: 1px solid var(--af-line); }
  .pk-chips { flex-wrap: nowrap; }
  .pk-from { text-align: left; }
  .pk-head-side { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--af-line); text-align: left; }
  .pk-head-side .pk-btn { margin-top: 0; }
  .pk-head-side .pk-from strong { font-size: 24px; }
  /* Galerie : piste défilante */
  .pk-gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .pk-gallery::-webkit-scrollbar { display: none; }
  .pk-gallery .pk-shot { flex: 0 0 82%; height: 250px; scroll-snap-align: start; }
  .pk-quote .pk-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pk-card, .pk-card-media img { transition: none; }
  .pk-card:hover, .pk-card:hover .pk-card-media img { transform: none; }
}
