/**
 * Travel Single — redesign (hero + title block)
 * Loaded after custom.css to override existing styles.
 */

/* ============================================
   Hero — single rounded image carousel
   ============================================ */
#single__hero.single-hero {
  background-color: #0A2542;
  padding: 0;
  margin: 0;
  overflow: hidden;
  position: relative;
}

#single__hero.single-hero .heading,
#single__hero.single-hero #btn__travels-images,
#single__hero.single-hero .images {
  display: none !important;
}

.single-hero__inner {
  position: relative;
  margin: 0 32px 32px 32px;
  border-radius: 24px;
}

.travelHeroSlider {
  position: relative;
  width: 100%;
  height: 550px;
  border-radius: 24px;
  overflow: hidden;
}

.travelHeroSlider .swiper-wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.4s ease;
}

.travelHeroSlider .swiper-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.travelHeroSlider .swiper-slide[data-bs-toggle="modal"] {
  cursor: pointer;
}

.single-hero__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Prev / Next round buttons */
.single-hero__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0A2542;
  transition: background-color 0.2s, transform 0.2s;
  box-shadow: 0 2px 8px rgba(10, 37, 66, 0.15);
}

.single-hero__nav:hover {
  background-color: #f5f5f5;
}

.single-hero__nav--prev { left: -24px; }
.single-hero__nav--next { right: -24px; }

.single-hero__nav.swiper-button-disabled {
  opacity: 0.5;
  cursor: default;
}

/* "Voir + de photos" pill (bottom-left of image) */
.single-hero__more-btn {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 10;
  background: #fff;
  border: none;
  border-radius: 1440px;
  padding: 12px 24px;
  height: 48px;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #0A2542;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
  box-shadow: 0 2px 8px rgba(10, 37, 66, 0.15);
}

.single-hero__more-btn:hover {
  background: #f5f5f5;
}

/* Pagination "X / N" (bottom-right of image) */
.single-hero__pagination {
  position: absolute;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 23px;
  color: #fff;
  pointer-events: none;
}

/* Mobile (< 992px) */
@media (max-width: 991.98px) {
  .single-hero__inner {
    margin: 0 16px 16px 16px;
    border-radius: 16px;
  }

  .travelHeroSlider {
    height: 320px;
    border-radius: 16px;
  }

  .single-hero__nav {
    width: 40px;
    height: 40px;
  }

  .single-hero__nav--prev { left: -8px; }
  .single-hero__nav--next { right: -8px; }

  .single-hero__more-btn {
    bottom: 32px;
    left: auto;
    right: 32px;
    height: 40px;
    padding: 8px 16px;
    font-size: 12px;
  }

  .single-hero__pagination {
    display: none;
  }
}

/* ============================================
   Title block (below hero)
   ============================================ */
.single-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
  color: #0A2542;
}

.single-title__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  color: #0A2542;
}

.single-title__breadcrumb a {
  color: #0A2542;
  text-decoration: none;
}

.single-title__breadcrumb a:hover {
  text-decoration: underline;
}

.single-title__breadcrumb-sep {
  color: #0A2542;
}

.single-title__h1 {
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 50px;
  font-weight: 700;
  line-height: 58px;
  color: #0A2542;
  margin: 0;
}

.single-title__subtitle {
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
  margin: 0;
}

@media (max-width: 991.98px) {
  .single-title {
    margin-bottom: 24px;
  }

  .single-title__h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .single-title__subtitle {
    font-size: 20px;
    line-height: 24px;
  }
}

/* Aside (booking ticket) must layer above the hero section */
#single__details {
  position: relative;
  z-index: 2;
}

/* ============================================
   Section nav tabs (Figma node 312-4331)
   ============================================ */
ul.travel__single-nav {
  position: sticky;
  top: calc(var(--header-height, 64px) + 8px);
  z-index: 10;
  display: inline-flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0 0 40px 0 !important;
  padding: 8px !important;
  gap: 8px !important;
  background-color: #D4E6F8 !important;
  border-radius: 48px !important;
  box-shadow: 4px 4px 12px 0 rgba(10, 37, 66, 0.04);
  overflow-x: auto;
  max-width: 100%;
}

ul.travel__single-nav > li {
  list-style: none;
  flex-shrink: 0;
}

a.travel__single-nav-tab,
.travel__single-nav-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 12px 24px;
  border-radius: 52px;
  background-color: #FFFFFF;
  color: #0A2542;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  border: none;
  box-shadow: none;
  text-transform: none;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer !important;
}

.travel__single-nav-tab:hover {
  background-color: #f5f5f5;
  color: #0A2542;
}

.travel__single-nav-tab.active {
  background-color: #0A2542;
  color: #FFFFFF;
}

.travel__single-nav-tab.active:hover {
  background-color: #0A2542;
  color: #FFFFFF;
}

/* When tabs overflow the column (detected via JS), extend the nav to the right
   edge of the viewport without the rounded right corner — last tab can be
   partially cut off at screen edge. Otherwise the pill stays fully rounded.
   Mobile only: on desktop the column is centered (max 600px) so bleeding to the
   viewport edge creates an off-center blue bar. There, keep the rounded pill
   and let inline-flex + overflow-x: auto handle scrolling naturally. */
@media (max-width: 1199.98px) {
  ul.travel__single-nav.is-overflowing {
    width: calc(50% + 50vw) !important;
    max-width: none !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}

/* Anchor scroll offset: account for sticky header + sticky nav so the section
   title isn't hidden underneath when an in-page link is clicked. */
.navSection > div {
  scroll-margin-top: calc(var(--header-height, 64px) + 80px);
}

/* ============================================
   "Vous aimerez" block (Figma node 312-4335)
   ============================================ */
.plus-travel {
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 40px;
  color: #0A2542;
}

.plus-travel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
}

.plus-travel__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #0A2542;
}

.plus-travel__list {
  list-style: disc;
  padding-left: 21px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.plus-travel__list li {
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #0A2542;
}

@media (max-width: 991.98px) {
  .plus-travel {
    padding: 20px;
    gap: 20px;
    margin-bottom: 24px;
  }

  .plus-travel__title {
    font-size: 22px;
    line-height: 28px;
  }
}

/* ============================================
   "Détails du prix" block (Figma node 312-4419)
   ============================================ */
.price-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
  color: #0A2542;
}

.price-details__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
  margin: 0;
}

.price-details__title-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #0A2542;
}

.price-details__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-details__subtitle {
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
  margin: 0;
}

/* "Le prix comprend" — pink check icon before each item */
.single__details-content .price-details__include ul,
.single__details-content .price-details__include ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.single__details-content .price-details__include li {
  position: relative;
  padding-left: 32px;
  list-style: none !important;
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #0A2542;
  min-height: 24px;
}

.price-details__include li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path d='M5 12L10 17L19 7' stroke='%23DE1B73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.price-details__include p {
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #0A2542;
  margin: 0;
}

/* "Le prix ne comprend pas" — cross icon, même couleur que la liste incluse */
.price-details__exclude ul,
.price-details__exclude ol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-details__exclude li {
  position: relative;
  padding-left: 32px;
  list-style: none !important;
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #0A2542;
  min-height: 24px;
}

.price-details__exclude li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path d='M18 6L6 18M6 6L18 18' stroke='%23DE1B73' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
}

.price-details__exclude p {
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #0A2542;
  margin: 0;
}

@media (max-width: 991.98px) {
  .price-details {
    gap: 24px;
    margin-bottom: 32px;
  }

  .price-details__title {
    font-size: 22px;
    line-height: 28px;
  }

  .price-details__subtitle {
    font-size: 18px;
    line-height: 24px;
  }
}

/* ============================================
   "Programme" block (Figma node 392-1857)
   ============================================ */
.program-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
  color: #0A2542;
}

.program-details__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
  margin: 0;
}

.program-details__title-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #0A2542;
}

.program-details__block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.program-details__subtitle {
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
  margin: 0 0 16px 0;
}

.program-details__paragraph {
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #0A2542;
  margin: 0;
}

/* Jour par jour list with bullet stepper */
.single__details-content .program-details__days {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.single__details-content .program-details__day {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  list-style: none !important;
  padding-left: 0;
}

.program-details__day-bullet {
  display: block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #0A2542;
  margin-top: 8px;
}

.program-details__day-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.program-details__day-title {
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 24px;
  color: #0A2542;
  margin: 0;
}

.program-details__day-paragraph {
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #0A2542;
  margin: 0;
}

@media (max-width: 991.98px) {
  .program-details {
    gap: 24px;
    margin-bottom: 32px;
  }

  .program-details__title {
    font-size: 22px;
    line-height: 28px;
  }

  .program-details__subtitle {
    font-size: 18px;
    line-height: 24px;
  }
}

/* ============================================
   "Informations pratiques" block (Figma node 312-4461)
   ============================================ */
.info-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
  color: #0A2542;
}

.info-details__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
  margin: 0;
}

.info-details__title-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: #0A2542;
}

.info-details__block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-details__subtitle {
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
  margin: 0;
}

/* Horaires & lieux de ramassage — numbered round badges */
.single__details-content .info-details__horaires-list {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  counter-reset: horaire;
}

.single__details-content .info-details__horaires-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  list-style: none !important;
  padding-left: 0;
}

.info-details__horaires-num {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #0A2542;
  color: #FFFFFF;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
}

.info-details__horaires-text {
  flex: 1;
  min-width: 0;
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #0A2542;
  padding-top: 0;
}

/* Pickup map (Mapbox) — rendered under the numbered list */
.info-details__map {
  width: 100%;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
  background-color: #E9F2FC;
  position: relative;
}

.info-details__map.is-loading::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent) 0 0 / 200% 100%
    no-repeat, #E9F2FC;
  animation: info-details-map-shimmer 1.4s linear infinite;
}

.info-details__map.is-empty {
  display: none;
}

@keyframes info-details-map-shimmer {
  0% { background-position: -100% 0, 0 0; }
  100% { background-position: 100% 0, 0 0; }
}

.info-details__map-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: #0A2542;
  color: #FFFFFF;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(10, 37, 66, 0.25);
  cursor: pointer;
}

.info-details__map .mapboxgl-popup-content {
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #0A2542;
  padding: 8px 12px;
  border-radius: 8px;
}

/* Rich content blocks (ACF informations + leftover from post.content):
   <strong> headings get title styling, base text 14/24, lists with disc */
.info-details__rich {
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  line-height: 24px;
  color: #0A2542;
}

.info-details__rich p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 24px;
  color: #0A2542;
}

.info-details__rich strong {
  display: block;
  font-family: 'Plus Jakarta', sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 32px;
  color: #0A2542;
  margin-top: 24px;
  margin-bottom: 8px;
}

.info-details__rich hr {
  display: none;
}

.single__details-content .info-details__rich ul {
  list-style: disc;
  padding-left: 21px;
  margin: 0 0 8px 0;
}

.single__details-content .info-details__rich ul li {
  font-family: 'DM Sans', 'Plus Jakarta', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
  color: #0A2542;
}

@media (max-width: 991.98px) {
  .info-details {
    gap: 24px;
    margin-bottom: 32px;
  }

  .info-details__title {
    font-size: 22px;
    line-height: 28px;
  }

  .info-details__subtitle {
    font-size: 18px;
    line-height: 24px;
  }
}

/* ============================================
   Booking ticket — enlarged hit area for +/- buttons
   ============================================ */
.ticket-card .quantity .minus,
.ticket-card .quantity .plus {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ticket-card .quantity .minus svg,
.ticket-card .quantity .plus svg {
  pointer-events: none;
}
