/* Rail horizontal — tours préférés (home portail + home région) */

.AlfToursRailWrap {
  max-width: 100%;
}

/* Titre section + groupe de flèches (maquette Figma, même ligne) */
.AlfToursRailHeader {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 1rem;
  row-gap: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
  padding-top: 20px;
}

@media (min-width: 768px) {
  .AlfToursRailHeader {
    margin-bottom: 1.25rem;
    padding-top: 0;
  }
}

.AlfToursRailTitle {
  flex: 1 1 auto;
  min-width: 0;
}

.AlfToursRailNavGroup {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}

/* Barre masquée : scroll tactile, molette (JS) et boutons */
.AlfToursRail {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.AlfToursRail::-webkit-scrollbar {
  display: none;
}

/*
 * Piste : max(contenu, 100%) pour centrer les cartes quand la liste
 * tient dans la largeur visible (maquette Figma).
 */
.AlfToursRailTrack {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
  padding-bottom: 0.5rem;
}

.AlfToursRailItem {
  width: 260px;
  max-width: 85vw;
  max-height: 410px;
}

.AlfToursRailCardInner {
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 410px;
  height: 100%;
}

.AlfToursRailCardLink {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 410px;
}

/* Corps texte : occupe l’espace vertical restant sous la photo */
.AlfToursRailCardBody {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  padding: 0 0.75rem 0.75rem;
  box-sizing: border-box;
}

/* Description longue : repli sous hauteur carte maxi 410px */
.AlfToursRailCardBody .VignetteToursTexte {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  flex-shrink: 1;
  min-height: 0;
}

/* Tarif + flèche : calé en bas de la carte (même hauteur que les voisines grâce à align-items: stretch sur la piste) */
.AlfToursRailCardFooter {
  margin-top: auto;
}

.AlfToursRailNavBtn {
  flex: 0 0 auto;
  align-self: center;
  width: 40px;
  height: 40px;
  padding: 0;
  line-height: 1;
  font-size: 1.35rem;
  font-weight: 600;
  border-radius: 50%;
  background: #f0f0f0;
  border: none;
  color: #1b1b1b;
  cursor: pointer;
}

.AlfToursRailNavBtn:hover,
.AlfToursRailNavBtn:focus-visible {
  background: #e4e4e4;
  color: #1b1b1b;
}

.AlfToursRailNavBtn:focus-visible {
  outline: 2px solid #0f82f4;
  outline-offset: 2px;
}

.AlfToursRailNavBtn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* Hauteur image calée pour laisser ~230px au texte (410 − barre 6px − marge) */
.AlfToursRailCardInner > .position-relative {
  flex: 0 0 auto;
  max-height: 170px;
  overflow: hidden;
}

/* styles.css : .VignetteToursTitreBas { top: 153px } — calé pour ~190px ; ici hauteur 170px */
.AlfToursRailCardInner .VignetteToursTitreBas {
  top: auto;
  bottom: 8px;
  left: 10px;
}

.AlfToursRail .VignetteToursPhoto {
  display: block;
  width: 100%;
  height: 170px;
  max-height: 170px;
  object-fit: cover;
}
