/* CONTAINER */
#main-search-container {
    z-index: 1001;
    position: relative;
    margin: 50px 0;
}

#main-search {
  max-width: 1400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(12px);
  padding: 15px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* TOP: trip selector */
.trip-type {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
}

.trip-type label input {
  display: none;
}

.trip-type label span {
  padding: 6px 14px;
  border-radius: 20px;
  background: #e5e7eb;
  cursor: pointer;
  font-size: 13px;
  transition: 0.2s;
}

.trip-type label input:checked + span {
  background: #6366f1;
  color: white;
}

/* MAIN LINE */
.trip-fields {
  display: flex;
  gap: 3px;
  align-items: flex-start;
}

.multi-stops-form .trip-fields {
    gap: 30px;
}

.route-fields {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
  flex: 1;
}

/* INPUT STYLE */
.editable, input, select {
  border: none;
  outline: none;
  background: #f3f4f6;
  padding: 10px;
  border-radius: 12px;
  font-size: 14px;
  transition: 0.2s;
}

.editable:focus, input:focus, select:focus {
  background: #e0e7ff;
}

.origin-block {
  display: flex;
  align-items: center;
  gap: 3px;
  flex-wrap: nowrap; /* empêche le passage à la ligne */
  position: relative;
}

.location-field {
  flex: 1;
}

/* SWITCH BUTTON */
.btn-switch {
  border: none;
  background: #6366f1;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  transition: 0.2s;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  right: -18px;
  z-index: 1;
  bottom: 0;
}

.btn-switch svg {
  vertical-align: text-bottom;
}

.btn-switch label {
    display: none;
}

.btn-switch:hover {
  transform: rotate(180deg);
}

.everywhere-block, .direct-only-block {
  margin: 5px;
}

/* DATES BLOCK */
.secondary-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
}

.multi-stops-form .secondary-fields {
  flex: 0 0 40%;
  flex-direction: column;
  gap: 10px;
}

.date-field {
  flex: 1;
  position: relative;
}

/* SMALL TIME SELECT */
.from-hour-block {
	margin: 5px;
}

.from-hour-block select {
	font-size: 12px;
    padding: 1px 3px;
    background: #f5f4f4;
    text-align: center;
    color: #6b7280;
}

.from-hour-block label {
	text-align: center;
}

/* BUDGET */
#budget {
  width: 90px;
}

.multi-stops-form #budget {
    width: 100%;
}

#currency-symbol {
	position: absolute;
    top: 0;
    font-weight: 700;
    right: 0.5rem;
    line-height: 18px;
    padding: 10px 0;
}

/* REMOVE NUMBER INPUT ARROWS */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type=number] {
  -moz-appearance: textfield;
}

/* BOTTOM ROW */
.main-search-form > div:last-child {
    display: flex;
    align-items: center;
    vertical-align: middle;
}

/* CENTER */
#passengers-control {
  margin-left: auto;
  position: relative;
}

/* RIGHT */
.submit-button-container {
  margin-left: auto;
}

/* BUTTON MODERNE */
button[type="submit"], .passengers-button {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(99,102,241,0.4);
}

/* CHECKBOX MODERNE */
input[type="checkbox"] {
  accent-color: #6366f1;
}

/* LABELS CLEAN */
label {
  font-size: 11px;
  color: #6b7280;
}

#main-search.disabled *, #main-search button:disabled {
    cursor: not-allowed;
}

.origin-block, .destination-block {
    flex: 1;
}

div.editable, input.datepicker, #budget {
    margin: 0 !important;
    line-height: 18px;
    padding-right: 1rem;
    padding-left: 1rem;
    white-space: nowrap;
    word-wrap: break-word;
    overflow: hidden;
    align-content: center;
}

#main-search.disabled .submit-button-container button, .submit-button-container button:disabled, #main-search.disabled .passengers-button {
    background-color: #dddde5;
    background-image: none;
    color: #b2b2bf;
    box-shadow: none;
    cursor: not-allowed;
}

.passengers-button, .submit-button {
	text-transform: none;
    letter-spacing: normal;
}

.submit-button-container button span {
    vertical-align: middle;
}





.stops-block {
	display:none;
    margin: 10px 0;
    width: 100%;
}

.stop-block, .add-stop-button-container {
    width: 100%;
    padding: 0 40px;
    position: relative;
	margin-top: 10px;
}

.multi-stops-form .stops-block {
	display:block;
}
.stop-frontend {
	height: 40px !important;
    padding-top: 8px !important;
}

.multi-stops-form .route-fields {
	flex-direction: column;
	position: relative;
}

.multi-stops-form .origin-block, .multi-stops-form .destination-block {
	width: 100%;
}

.multi-stops-form .btn-switch, .multi-stops-form .direct-only-block, .multi-stops-form .return-block, .multi-stops-form .DirectOnly {
	display: none;
}

.multi-stops-form .SingleDestControls_dates-wrapper__ZTQxM {
    margin: 0 auto;
    width: 20%;
}

.add-stop-button {
    padding: 2px 12px;
    border-radius: 25px;
}

.add-stop-button:not(:disabled):hover:hover {
    transform: none;
    box-shadow: 0 2px 10px rgba(99, 102, 241, 0.4);
    color: black !important;
    border: 2px solid rgb(142 131 251 / 84%);
}

.add-stop-button:disabled {
	display: none;
}

.multi-stops-form .route-fields:before {
    content: "";
    width: 1px;
    height: calc(100% - 4em);
    margin-top: 2em;
    position: absolute;
    border-left: 2px dashed #d0c0ff;
    left: 8px;
}

.multi-stops-form .stop-frontend:after, .add-stop-button-container button:after {
	content: "";
    width: calc(40px - 8px);
    height: 1px;
    top: 50%;
    position: absolute;
    border-bottom: 2px dashed #d0c0ff;
    left: 8px;
}

.multi-stops-form .route-fields label {
    padding-left: 15px !important;
}

.multi-stops-form .trip-fields {
margin-bottom: 30px;
}













/* Hide Arrows From Input Number BUDGET on home page */
input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}





.outward-return-choice-title {
	text-align: center;
    display: none;
}







#progress-bar {
	display: none;
    position: relative;
}

/* barre de fond */
.progress-track {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

/* progression */
.progress-fill {
    height: 100%;
    width: 0%;
    border-radius: 999px;
    transition: width 0.4s ease;
    background: linear-gradient(
        90deg,
        #6366f1 0%,
        #818cf8 50%,
        #6366f1 100%
    );
    background-size: 200% 100%;
    animation: progress-shimmer 2s infinite linear;
}

@keyframes progress-shimmer {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* texte */
.progress-text {
    font-size: 12px;
    font-weight: 500;
    color: #4f46e5;
    margin-top: 6px;
    text-align: right;
}























/* Pour afficher le placeholder quand le div editable est vide */
div.editable:empty:before {
    content: attr(data-placeholder);
    cursor: text;
}

.return-block.disabled #return-fsc-datepicker-button {
    color: #b2b2bf;
}

.return-block.disabled .from-hour-block {
	opacity: .7;
}

#main-search input[type=checkbox] {
    transform: scale(1.3);
    margin: 0 5px 0 20px;
	vertical-align: middle;
}

#main-search label {
	padding: 0;
    cursor: pointer;
    margin-top: 0;
}





/* Conteneur principal : colonne résultats + sidebar */
#search-results-container {
	display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-top: 30px;
}

/* Colonne principale (h3 + résultats) */
.search-results-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* Sidebar à droite */
#search-results-sidebar {
	display: none;
    width: 250px;
    min-width: 250px;
    background: #fff;
    position: relative;
}

#search-results-sidebar > * {
	border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 20px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    #search-results-container {
        flex-direction: column;
    }

    .search-results-sidebar {
        width: 100%;
        min-width: auto;
        position: static;
    }
}


#search-results-sidebar #map {
	height: unset !important;
    aspect-ratio: 1 / 1;
}

.result-settled {
    animation: none !important;
}


.BpkText_bpk-text--xs__MWQxY {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 400;
}

.LegInfo_stopsContainer__NWIyN {
    max-width: 50%;
    padding: 0 .375rem;
    flex: 0 1 50%;
    text-align: center;
}

.LegInfo_routePartialArrive__Y2U1N {
    display: flex;
    max-width: 25%;
    padding-left: 35px;
    flex-direction: column;
    align-items: flex-start;
    flex: 0 1 25%;
    text-align: left;
	margin: auto;
}

.LegInfo_routePartialCityTooltip__NTE4Z {
    color: #68697f;
    cursor: help;
}

.trip-details {
    display: flex;
    flex-flow: row wrap;
    flex: 1 1 75%;
    text-align: center;
    margin-bottom: .5rem;
}

.nb-stops-icon {
	margin-right: 5px;
}

.LegInfo_stopLine__MzUxZ {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: .125rem;
  margin: .375rem auto;
  border-radius: .375rem;
  background-color: #68697f;
  line-height: 0;
  overflow: visible;
}

.LegInfo_stopLineInner {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1; /* au-dessus de la ligne mais sous le train */
}

/* icône du train */
.train-icon {
  position: absolute;
  width: 30px;
  height: auto;
  z-index: 3;
    background: white;
}

/* aller → train à droite */
.train-icon--right {
    right: 0;
}

/* retour → train à gauche */
.train-icon--left {
    left: 0;
    transform: scaleX(-1);
    transform-origin: center;
}

.LegInfo_routePartialDepart__NzEwY {
    display: flex;
    max-width: 25%;
    padding-right: .375rem;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 1 25%;
    text-align: right;
    margin: auto;
}

.LegLogo_logoContainer__ODdkM {
	display: none;
    margin-top: .5rem;
    flex: 1 1 25%;
    margin: auto;
}

.BpkImage_bpk-image__NzYwO {
    opacity: 1;
    position: relative;
    transition: background-color .4s ease-in-out;
  overflow: hidden;
  transition-delay: .4s;
  display: flex;
  width: 100%;
}

.BpkImage_bpk-image__NzYwO div {
  display: flex;
  justify-content: center;
  flex: 1; margin: auto;
  max-width: 100px;
}

.BpkImage_bpk-image__img__ZWY1M {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    transition: opacity .4s ease-in-out;
}

.FlightsTicketBody_bodyHorizontalRule__NjgxM {
    margin-top: .375rem;
    margin-bottom: .175rem;
}

.FlightsTicketBody_horizontalRule__MGI4O {
    width: 100%;
    height: .0625rem;
    box-shadow: inset 0 1px 0 0 #dddde5;
}

.LegInfo_stopDot__ZTAyN {
    position: relative;
    display: inline-block;
    width: .375rem;
    height: .375rem;
    margin: 0 8%;
    border-radius: .375rem;
    background-color: #d1435b;
    background-image: none;
    line-height: 0;
    box-shadow: 0 0 0 .125rem #fff;
    zoom: 1;
}

.trip-via {
	font-size: 0.8rem;
    margin-left: 0.5rem;
    color: #68697f;
    fill: #68697f;
}

.Operators_operator__ZDk4Y {
    margin-top: .375rem;
    flex: 1 0 100%;
    color: #b2b2bf;
    text-align: left;
}

.BpkText_bpk-text--xs__MWQxY {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 400;
}

.BpkText_bpk-text__YWQwM {
    margin: 0;
}

.BpkTicket_bpk-ticket--with-notches__ODFjZ {
    box-shadow: none;
}

.BpkTicket_bpk-ticket__YjZiO, .popup-content {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    color: #111236;
    text-decoration: none;
    box-shadow: 0 1px 3px 0 rgb(37 32 31 / 30%);
    border-radius: .375rem;
    z-index: 0;
}

.BpkTicket_bpk-ticket__main--padded__YTMwZ {
    padding: 1rem 1rem .4rem 1rem;
}
.BpkTicket_bpk-ticket__main--horizontal__ZTY5N {
    border-radius: .375rem 0 0 .375rem;
}
.BpkTicket_bpk-ticket__main__NmI5Z {
    flex: 2 1 auto;
}
.BpkTicket_bpk-ticket__paper--with-notches__NDVkM {
    box-shadow: 0 1px 3px 0 rgb(37 32 31 / 30%);
    z-index: 0;
}
.BpkTicket_bpk-ticket__paper__N2IwN {
    position: relative;
    background-color: #fff;
}
.BpkTicket_bpk-ticket__NzNiO {
	background: white;
    position: relative;
    display: block;
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: none;
    color: #161616;
    text-decoration: none;
    box-shadow: 0 1px 3px 0 rgba(37,32,31,.3);
    cursor: pointer;
    border-radius: 0.75rem;
    z-index: 0;
}

.BpkTicket_bpk-ticket__NzNiO:hover {
	box-shadow: 0px 3px 12px 0px rgba(0, 0, 0, 0.5);
}

.trip-container {
	margin: 5px 0;
	animation: append-animate .15s ease-in;
}

.Ticket_stub__NGYxN {
    display: flex;
    padding: 1rem 0 1rem 0;
    justify-content: center;
    align-items: center;
      min-width: 30%;
    border-radius: 0 0.75rem 0.75rem 0;
    box-shadow: inset 0.0625rem 0 0 #c2c9cd;
    flex: 0 0 32%;
}
.trip-details-container {
    padding: 1rem;
    flex: 2 1 auto;
    border-radius: 0.75rem 0 0 0.75rem;
    display: flex;
    height: 100%;
    flex-direction: column;
}
.BpkTicket_bpk-ticket__stub--padded__MzZmN {
    padding: .5rem;
}
.BpkTicket_bpk-ticket__stub--horizontal__Y2IzN {
    border-radius: 0 .375rem .375rem 0;
	flex-direction: column;
}

.BpkImage_bpk-image__NzYwO img {
  max-width: 50px;
}

.TimeWithOffsetTooltip_offsetTooltip__MTA5M {
    cursor: help;
    vertical-align: super;
}

.BpkText_bpk-text--caption__OWI0M {
    font-size: .75rem;
    line-height: 1rem;
    font-weight: 400;
}

.BpkText_bpk-text__YWQwM img, .BpkText_bpk-text__YWQwM img {
  width: 16px;
      margin-right: 5px;
}



.autocomplete-result {
    display: none;
    cursor: pointer;
    width: 380px;
    z-index: 3;
    margin: 0 0 0 7px;
    overflow: hidden;
    border-radius: 0 0 5px 5px;
    position: absolute;
    background: #ffffff;
    list-style-type: none;
    box-shadow: 0 1px 3px 0 rgb(92 84 84 / 52%);
}
.autocomplete-result.active {
  display: block;
}
.autocomplete-result li:hover {
    background-color: #f1f2f8;
}



#main-search .alert, #main-search .error {
	left: 50%;
    transform: translateX(-50%);
}


/*pour que les results de autocomplete ne descende pas plus bas que le footer sinon ils sont masqués*/
section.content-area {
  min-height: 1000px;
}







/* Offers choices */
.offers-choices, .seat-toggle {
    justify-content: center;
    display: flex;
    margin-bottom: 15px;
}

.offers-type, .seat-type-toggle-group {
	flex-flow: wrap;
    display: flex;
    justify-content: center;
    width: 100%;
}

.offers-choices input, .seat-toggle input {
    position: absolute;
    opacity: 0;
}
.offers-choices label, .seat-toggle label {
	box-shadow: 0 2px 10px rgba(0,0,0,.1);
    display: flex;
    align-self: center;
    flex-direction: column;
  cursor: pointer;
  padding: 0.7rem 1.8rem;
  position: relative;
  border: solid 1px #b4b4b4;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease-out, color 0.25s ease-out, background-color 0.15s ease-out, box-shadow 0.15s ease-out;
  margin: 0;
}
.offers-choices label:first-of-type {
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.offers-choices label:last-of-type {
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.offers-choices input:hover + label, .seat-toggle input:hover + label {
  border-color: #c4c4c4;
  background-color: #dbeeff;
}
.offers-choices input:checked + label, .seat-toggle input:checked + label {
  background-color: #4b9dea;
  color: #fff;
  box-shadow: 0 0 10px rgba(102, 179, 251, 0.5);
  border-color: #4b9dea;
}

.seat-toggle label {
    padding-top: 7px !important;
    padding-bottom: 7px !important;
}
.seat-toggle .seat-type-option:first-of-type label {
  border-top-left-radius: 35px;
  border-bottom-left-radius: 35px;
}
.seat-toggle .seat-type-option:last-of-type label {
  border-top-right-radius: 35px;
  border-bottom-right-radius: 35px;
}
/* Hover */
.seat-toggle input:hover + label {
  border-color: #c7b5f7;
  background-color: #ede2ff;
}

/* Checked */
.seat-toggle input:checked + label {
  background-color: #9b6ef3;
  color: #fff;
  box-shadow: 0 0 10px rgba(155, 110, 243, 0.5);
  border-color: #9b6ef3;
}

.offer-tab-panels {
    margin-top: 40px;
}

.offers-wrapper:not(.first-class) .first-seat-toggle,
.offers-wrapper:not(.first-class) .offers-first {
    display: none;
}

.offers-wrapper.first-class .second-seat-toggle,
.offers-wrapper.first-class .offers-second {
    display: none;
}




@keyframes append-animate {
	from {
		transform: translateX(-10%);
		opacity: 0;
	}
	to {
		transform: translateX(0%);
		opacity: 1;
	}
}



.displayAriaLabel:focus:after, .displayAriaLabel:hover:after {
	position: absolute;
    border: 1px solid rgba(0,0,0,0.12);
    top: 2em;
    left: -5em;
    display: inline;
    white-space: nowrap;
    border-radius: .3em;
    padding: 0 .7em;
    content: attr(aria-label);
    color: black;
    background: #f3e2fc;
    font-size: 1em;
    line-height: 2em;
}

.displayAriaLabel:focus:before, .displayAriaLabel:hover:before {
	background-color: #f3e2fc;
    border: 0;
    border-left: 1px solid rgba(0,0,0,0.12);
    border-top: 1px solid rgba(0,0,0,0.12);
    content: "";
    height: 10px;
    position: absolute;
    top: calc(2em - 4px);
    transform: rotate(45deg);
    width: 10px;
    left: 0;
    z-index: 1;
}



.trip-timeline {
	border-radius: 8px;
    padding: 20px 0;
    width: 310px;
    height: fit-content;
    margin-top: 40px;
    font-family: "Open Sans", sans-serif;
    background: #bea2e7;
    /* Old browsers */  background: -moz-linear-gradient(top, #bea2e7 0%, #86b7e7 100%);
    /* FF3.6-15 */  background: -webkit-linear-gradient(top, #bea2e7 0%, #86b7e7 100%);
    /* Chrome10-25,Safari5.1-6 */  background: linear-gradient(to bottom, #bea2e7 0%, #86b7e7 100%);
    /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr="#bea2e7", endColorstr="#86b7e7",GradientType=0 );  /* IE6-9 */
}

.trip-timeline ul {
	height: 100%;
	margin: 0;
    list-style: none;
    position: relative;
    padding: 1px 80px;
    color: #fff;
    font-size: 13px;
}
.trip-timeline ul:before {
	content: "";  width: 1px;height: calc(100% - 4em);margin-top: 2em;position: absolute;  border-left: 2px dashed #fff; left: 55px;}.trip-timeline ul li { position: relative; width: 200px;} .trip-timeline ul li:not(:first-child) { margin-top: 60px;} .trip-timeline ul li:last-child { margin-bottom: 1em; } .trip-timeline ul li:last-child { margin-bottom: 1em; } .trip-timeline ul li div { text-align: left;} .trip-timeline ul li > div.station { font-size: 14px; font-weight: bold; margin: 15px 0 15px 0;} .trip-timeline ul li > div.infos { background-color: rgba(255, 255, 255, 0.2); padding: 14px; border-radius: 6px; box-shadow: 0 0 4px rgba(0, 0, 0, 0.12), 0 2px 2px rgba(0, 0, 0, 0.08);} .trip-timeline ul li > span.number {font-size: 15px; width: 2px;  height: calc(100% - 15px);  background: #fff;  left: -25px;  top: 5px;  position: absolute;}.trip-timeline ul li > span.number:before, .trip-timeline ul li > span.number:after {  content: "";  width: 12px;  height: 12px;  border-radius: 50%;  border: 2px solid #fff;  position: absolute;  background: #86b7e7;  left: -5px;  top: 0;}.trip-timeline ul li span.number:after {top: calc(100% - 6px);} .trip-timeline div .title, .trip-timeline div .type {  font-weight: 600;  font-size: 12px;}.trip-timeline div .info {  font-weight: 300;} .trip-timeline span.number {  height: 100%;}.trip-timeline span.number span {  position: absolute;  font-size: 11px;  left: -40px;  font-weight: bold; text-align: right;}.trip-timeline span.number span:first-child {  top: -3px;}.trip-timeline span.number span:last-child {top: calc(100% - 10px);}
    
    
    
    
.offers-tabs {
	position: relative;
    flex:auto; text-align: center;
    width: 100%;
}

.offers-tabs > label, .toggle {
	height:2.2rem;
    border-radius:100px;
}

.offers-tabs > label {
	width:350px;
    background-color:rgba(0,0,0,.1);
    position:relative;
    margin:0 auto 1.2rem;
    cursor:pointer;
}

.offers-tabs .toggle {
	position:absolute;
    width:50%;
    background-color:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.3);
    transition:transform .3s cubic-bezier(0.25,0.46,0.45,0.94) !important;
}



.names {
	height: 100%;
    font-size:90%;
    font-weight:bolder;
    width:65%;
    margin-left:17.5%;
    position:absolute;
    display:flex;
    justify-content:space-between;
    user-select:none;
}

.names p { margin: auto 0; font-weight: 600;}

.first { opacity:.5; }

.class-switch { display:none; }

.class-switch:checked + .offers-tabs .toggle { transform:translateX(100%); } 

.class-switch:checked + .offers-tabs .first { opacity:1; }

.class-switch:checked + .offers-tabs .second { opacity:.5; }

.offers-first {display:none;}

.class-switch:checked + .offers-tabs .offers-first {display:flex;}

.class-switch:checked + .offers-tabs .offers-second {display:none;}

.offer-tab-panel {display:none;text-align: left;position:relative;margin-top: 50px;width: 100%;}

.offer-tab-panel h4 {
	font-style: italic;
    margin-bottom: 15px;
}

.offer-tab-panel > div {
    margin-bottom: 40px;
}



.seat-reservation-choice .btn2 {
    width: 50%;
    font-weight: 400;
    font-size: 15px;
    border: 2px solid #1a1a1a;
    padding: 10px 20px;
    position: relative;
    text-align: center;
    transition: background 600ms ease, color 600ms ease !important;
}

.seat-reservation-choice label:first-of-type {
	border-right:0;
}

.seat-reservation-choice input[type=radio] + label {
	text-transform: none;
    cursor: pointer;
    min-width: 60px;
}
.seat-reservation-choice input[type=radio] + label:hover {
	background: none;color: #1a1a1a;
}
.seat-reservation-choice input[type=radio]:checked + label:after {
	background: #1a1a1a;
    content: "";
    height: 100%;
    position: absolute;
    top: 0;
    transition: left 200ms cubic-bezier(0.77, 0, 0.175, 1);
    width: 100%;
    z-index: -1;
}
.seat-reservation-choice input[type=radio]:checked + label {
	cursor: default;
    color: #fff;
    transition: color 200ms;
}
.seat-reservation-choice input[type=radio]:checked + label:after {
	left: 0;
}
.seat-reservation-choice input[type=radio] {
	position:absolute;
    top: 7px;
    left: 7px;
}
.seat-reservation-choice input[type=radio]:last-of-type {
    left: calc(50% + 7px);
}

.seat-reservation-choice .ribbon {
    width: auto;
    font-size: 12px;
    font-weight: 700;
    padding: 3px 8px;
    position: absolute;
    right: 5px;
    top: 40px;
    text-align: center;
    border-radius: 25px;
    transform: rotate(15deg);
    background-color: #e5950b;
    color: white;
}

.seat-reservation-choice .ribbon.individual-price::after {
	content: "\f110";
    font: normal 15px / 1 dashicons;
    vertical-align: text-top;
}






/*Icones pour les predictions des stations*/
li.prediction {
    padding-left:45px;
    line-height: 34px;
}
li.prediction:before{
    content: '';
    background-size:cover;
    position:absolute;
    width: 26px;
    height: 26px;
    margin: 4px 0 0 -35px;
}
li.prediction.meta:before{
    background:var(--background-url-city-icon);
}
li.prediction.classic:before{
    background:var(--background-url-station-icon);
}



li.prediction .country {
    margin-left: 10px;
    font-style: italic;
    color: #b6b5d9;
    font-size: .9rem;
}





.reservation {
	width: 100%;
}


.seat-reservation-table {
	width: 96%;
    margin-top: 10px;
    margin-left: 2%;
    border-collapse: separate;
    border-spacing: 0 5px;
}

.seat-reservation-table tr {
	background-color: #cdffc0;
}
.seat-reservation-table tr.optional {
	background-color: #f1f1f1;
}
.seat-reservation-table tr.not-reserved {
	background-color: #fde7cb;
}
.seat-reservation-table tr.reserved {
	background-color: #cdffc0;
}

.seat-reservation-table tr td:first-of-type {
	padding-left: 10px;
	min-width: 120px;
  border-radius: 3px 0 0 3px;
  width: 70%;
}

.seat-reservation-table tr td:not(:first-of-type) {
    text-align: center;
	min-width: 120px;
}

.seat-reservation-table td:last-child {
  border-radius: 0 3px 3px 0;
  width: 20%;
}





input.condition-checkbox {
  display: none;
}

label.condition-label {
    cursor: pointer;
    width: 100%;
    padding: 5px 10px;
    margin-bottom: 0;
    margin-top: 5px;
    border-radius: 3px;
    background: #fbe4af;
}

label.condition-label span {
    color: #000;
    font-weight: 600;
}

.condition-content {
  display: grid; 
  grid-template-rows: 0fr;
  transition: 250ms grid-template-rows ease !important;
  overflow: hidden;
  width: 95%;
    margin: auto;
    background: #e4eaf3;
    padding: 0 20px;
    border-radius: 0 0 3px 3px;
}

.condition-content > div {
    overflow: hidden;
}

.condition-content span {
	display: block;
    margin: 5px 0;
	font-size: 15px;
}

input.condition-checkbox:checked + .condition-content {
  grid-template-rows: 1fr;
}

.condition-label .passengers-number {
    font-style: italic;
    color: #8b8b8b;
    font-size: 14px;
    margin-left: 10px;
}
.condition-label .passengers-number:before {
	content: "\f110";
    font: normal 17px / 1 dashicons;
    vertical-align: text-top;
}

.condition-label .price {
    float: right;
}

label.condition-label:hover {
    background: #a38f57;
}

label.condition-label:hover span {
    color: #FFF;
}





.group-offers-station-link:hover {
    background-color: #454356;
}

.group-offers-station-link:hover div {
    color: white;
}

.group-offers-station-link {
    padding: 10px;
    font-size: 20px;
    font-weight: 600;
    background-color: #e6e4ff;
    color: #000000 !important;
    border-radius: 7px;
    margin-top: 6px;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

.group-offers-station-link .station-name-distance {
	display: flex;
    flex-direction: column;
    margin: auto;
}

.group-offers-station-link .station-distance {
	font-size: 12px;
    font-weight: 400;
    align-self: center;
    line-height: .4;
}
.group-offers-station-link .station-duration, .group-offers-station-link .station-transfers {
	display: flex;
    padding: 0;
    align-items: center;
    box-shadow: inset 0.0625rem 0 0 #c2c9cd;
    flex: 0 0 20%;
    margin: 0;
    flex-direction: column;
}
.group-offers-station-link .station-duration span:first-of-type, .group-offers-station-link .station-transfers span:first-of-type {
	display: block;
    font-size: 0.8rem;
    font-weight: 600;
}
.group-offers-station-link .station-duration span:last-of-type, .group-offers-station-link .station-transfers span:last-of-type {
	text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}
.group-offers-station-link .station-price {
	display: flex;
    padding: 0;
    align-items: center;
    box-shadow: inset 0.0625rem 0 0 #c2c9cd;
    flex: 0 0 20%;
    margin: 0;
    flex-direction: column;
}
.group-offers-station-link .station-price span:first-of-type {
	display: block;
    font-size: 0.8rem;
    font-weight: 600;
}
.group-offers-station-link .station-price span:last-of-type {
	text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}

.results-page header {
    display: none;
}




.offers-wrapper {
    display: flex;
    margin-bottom: 20px;
}
.offer-flexibility, .offer-seat {
    font-size: 12px;
    font-style: italic;
    letter-spacing: -0.2px;
    display: block;
}
.offer-footer {
    display: flex;
    flex-direction: column;
    align-items: end;
}
.total-block {
    line-height: 25px;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 8px;
    padding: 5px 0;
    font-size: 18px;
    border-style: ridge;
    transform: translate3d(-25%, 5px, 0);
    z-index: 1;
}


.price-divider {
    height: 100%;
    width: 0.0625rem;
    box-shadow: inset 0 0 0 1px #dddde5;
}

.price-block {
    align-items: center;
    flex: 1;
    margin-top: -25px;
    display: flex;
    flex-direction: column;
}

.price-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
}

.price-label {
    display: block;
    line-height: 0.6;
    font-size: 0.65rem;
    font-weight: 500;
}

.price-amount {
    margin-top: 10px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
}






.remove-stop-button {
	border: 0;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 0;
    width: 40px;
    padding: 0;
    text-align: center;
}

.remove-stop-button svg {
	transition: fill-opacity .2s ease-in-out;
    fill: #f18989;
}

.remove-stop-button:focus svg,.remove-stop-button:hover svg {
	fill-opacity:.5
}

.remove-stop-button:disabled svg {
	fill-opacity:.4
}

.remove-stop-button:hover {
	transform: none;
    box-shadow: none;
}    
    
.MulticityControls_MulticityControls__add-leg-icon__NTM5M {
	fill:#0770e3
}









/* POPUP CONTAINER */
#popup-passengers {
    opacity: 0;
    transform: translateX(-100%) scale(0.95);
    visibility: hidden;
    transition: all 0.25s ease;
    
    position: absolute;
    top: -60px;
    width: 480px;
    max-height: 280px;
    overflow: hidden;

    padding: 10px;
    border-radius: 10px;

    background: rgba(255,255,255);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);

    border: 1px solid rgba(0,0,0,0.1);
    z-index: 10;
    
    overflow: visible;
}

/* OPEN STATE */
#passengers-control.clicked #popup-passengers,
#passengers-control.hover #popup-passengers,
#popup-passengers:hover {
    opacity: 1;
    transform: translateX(calc(-100% + 10px)) scale(1);
    visibility: visible;
}

/* ARROW */
#popup-passengers:before {
	background-color: white;
    border: 0;
    border-right: 1px solid rgba(0,0,0,0.12);
    border-bottom: 1px solid rgba(0,0,0,0.12);
    content: "";
    height: 20px;
    position: absolute;
    top: 75px;
    transform: rotate(-45deg);
    width: 20px;
    z-index: 0;
    right: -10px;
    display: block !important;
}

/* SCROLL AREA */
.passengers-block {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 5px;
    position: relative;
}

/* SCROLLBAR CLEAN */
.passengers-block::-webkit-scrollbar {
    width: 6px;
}
.passengers-block::-webkit-scrollbar-thumb {
    background: #c7d2fe;
    border-radius: 10px;
}

/* PASSENGER CARD */
.passenger {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    box-shadow: 0 4px 7px rgba(99, 102, 241, 0.25);
    transition: 0.1s;
}

.passenger:hover {
    transform: translateY(-2px);
}

/* HEADER */
.passenger > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* TITLE */
.passenger p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

/* SELECT */
.passenger select {
    border-radius: 15px;
    padding: 4px 8px;
    font-size: 13px;
    background: #f3f4f6;
    color: #111;
    border: none;
}

/* REMOVE BUTTON */
.remove-passenger-button, .remove-card-button {
	border: 0;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    position: absolute;
    top: 5px;
    right: 0;
    width: 40px;
    padding: 0;
    text-align: center;
}

.remove-passenger-button svg, .remove-card-button svg {
	transition: fill-opacity .2s ease-in-out;
    fill: #f18989;
}

.remove-passenger-button:focus, .remove-passenger-button:hover svg, .remove-card-button:focus, .remove-card-button:hover svg {
	fill-opacity:.5
}

.remove-passenger-button:disabled svg {
	fill-opacity:.4
}

.remove-passenger-button:hover, .remove-card-button:hover {
	transform: none;
    box-shadow: none;
}

/* ADD CARD BUTTON */
.add-passenger-card-button {
    align-self: center;
    border: none;
    border-radius: 20px;

    padding: 6px 14px;
    font-size: 12px;

    background: rgba(255,255,255,0.2);
    color: white;

    cursor: pointer;
    transition: 0.2s;
}

.add-passenger-card-button:hover {
    background: rgba(255,255,255,0.35);
}

/* CARD BLOCK */
.passenger-card {
    display: flex;
    position: relative;
    flex-wrap: wrap;
    gap: 5px;

    padding: 5px 10px;

    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    color: #111;

    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
    align-items: center;
}

/* CARD SELECT */
.passenger-card select {
    border-radius: 15px;
    padding: 5px;
    font-size: 13px;
}

/* INPUT CARD NUMBER */
.card-number {
    border-radius: 8px;
    padding: 5px;
    font-size: 13px;
    border: 1px solid #ddd;
}

/* REMOVE CARD BUTTON */
.remove-card-button {
    opacity: 0.5;
    transition: 0.2s;
}

.remove-card-button:hover {
    opacity: 1;
}

/* ADD PASSENGER BUTTON */
.add-passenger-button {
    margin-top: 10px;

    background: linear-gradient(135deg, #8385ff, #6661b3);
    color: white;

    border: none;
    border-radius: 14px;

    padding: 8px 20px;
    font-size: 14px;
    font-weight: 500;

    cursor: pointer;
    transition: 0.2s;
}

.add-passenger-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99,102,241,0.4);
}




/* Filters */
.sidebar-section {
    margin-bottom: 20px;
}

.filter-label {
	display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    color: #8d8d8f;
}

.filter-label:before, .filter-label:after {
    content: '';
    flex: 1;
    height: 1px;
    background: #c7c7c7;
}

.price-range-slider, #duration-filter {
    position: relative;
    height: 60px; /* espace pour les bulles */
    margin-top: 10px;
    transition: opacity 0.3s ease;
}

.price-range-slider.disabled, #duration-filter.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Bulles */
.price-bubble {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
    background: #0062e3;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    line-height: 1.2;
    pointer-events: none;
    z-index: 5;
}

/* Petite flèche sous la bulle */
.price-bubble::after {
    content: "";
    position: absolute;
    left: calc(50% + var(--arrow-offset, 0px));
    top: 100%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #0062e3;
}

/* Barre de fond */
.price-range-track, .price-range-fill, .duration-track, .duration-fill {
    position: absolute;
    top: 42px;
    height: 4px;
    border-radius: 999px;
}

.price-range-track, .duration-track {
    left: 0;
    right: 0;
    background: #d1d5db;
}

/* Partie sélectionnée */
.price-range-fill, .duration-fill {
    background: #0062e3;
}

/* Inputs superposés */
.price-range-slider input[type="range"], #duration-filter input[type="range"] {
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 24px;
    margin: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}

/* Poignées */
.price-range-slider input[type="range"]::-webkit-slider-thumb, #duration-filter input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0062e3;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.price-range-slider input[type="range"]::-moz-range-thumb, #duration-filter input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0062e3;
    border: 2px solid #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}



:root {
    --slider-thumb-size: 18px;
}

/* ===========================
   TRANSFERS FILTER
   =========================== */

.transfers-slider-container {
    position: relative;
    padding-top: 40px;
}

/* Slider */

#max-transfers {
    width: 100%;
    margin: 0;
	padding: 0;

    appearance: none;
    -webkit-appearance: none;

    height: 4px;
    border-radius: 999px;

	background: linear-gradient(to right, #0062e3 0%, #0062e3 100%, #d1d5db 100%, #d1d5db 100%);
}

/* Thumb */

#max-transfers::-webkit-slider-thumb {
    -webkit-appearance: none;

    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);

    border-radius: 50%;
    background: #0062e3;
    border: 2px solid #fff;

    cursor: pointer;

    margin-top: calc(
        (4px - var(--slider-thumb-size)) / 2
    );

    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

#max-transfers::-moz-range-thumb {
    width: var(--slider-thumb-size);
    height: var(--slider-thumb-size);

    border-radius: 50%;
    background: #0062e3;
    border: 2px solid #fff;

    cursor: pointer;

    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}

/* ===========================
   BUBBLE
   =========================== */

#transfers-bubble {
    position: absolute;
    top: 0;

    transform: translateX(-50%);
	left: calc(100% - (var(--slider-thumb-size) / 2));
    
    background: #0062e3;
    color: #fff;

    font-size: 12px;
    font-weight: 600;

    padding: 4px 8px;

    border-radius: 6px;

    white-space: nowrap;

    pointer-events: none;
    z-index: 5;
}

#transfers-bubble::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 100%;

    transform: translateX(-50%);

    width: 0;
    height: 0;

    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #0062e3;
}

/* ===========================
   LABELS
   =========================== */

.transfers-labels {
    position: relative;

    height: 20px;

    margin-top: 10px;

    /* même zone utile que le slider */
    padding-left: calc(var(--slider-thumb-size) / 2);
    padding-right: calc(var(--slider-thumb-size) / 2);

    user-select: none;
}

.transfers-labels span {
    position: absolute;

    transform: translateX(-50%);

    font-size: 12px;
    font-weight: 500;

    color: #6b7280;

    white-space: nowrap;
}

/* Positions exactes des 5 paliers */

.transfers-labels span:nth-child(1) {
    left: calc(var(--slider-thumb-size) / 2);
}

.transfers-labels span:nth-child(2) {
    left: 25%;
}

.transfers-labels span:nth-child(3) {
    left: 50%;
}

.transfers-labels span:nth-child(4) {
    left: 75%;
}

.transfers-labels span:nth-child(5) {
    left: calc(100% - (var(--slider-thumb-size) / 2));
}











#sort-container {
    display: none;
    align-items: center;
    gap: 5px;
    margin-left: auto;
}

#sort-container > span {
	font-size: 13px;
}

.sort-bar {
    display: none;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    border-radius: 999px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 0.5px solid var(--color-border-tertiary, rgba(0,0,0,0.1));
    position: relative;
    width: fit-content;
}

.sort-bar.visible {
    display: flex;
}

.sort-btn {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 5px;
    border: none;
    background: transparent;
    border-radius: 999px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s, color 0.18s;
    user-select: none;
	text-transform: none;
    font-size: 12px;
    padding: 3px 7px 3px 17px;
}

.sort-btn:hover:not(.active) {
    background: #f3f4f6;
    color: #111;
    transform: none;
    box-shadow: none;
}

.sort-btn.active {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    padding: 3px 7px;
}

.sort-btn.active:hover {
    transform: none;
    box-shadow: none;
}

.sort-btn .sort-icon {
    font-size: 11px;
    opacity: .8;
}

.sort-btn .sort-direction {
    font-size: 10px;
    opacity: 0;
    overflow: hidden;
    transition: opacity 0.2s, width 0.2s, transform 0.2s;
    display: inline-block;
}

.sort-btn.active .sort-direction {
    opacity: .9;
    width: 10px;
}

.sort-btn.active[data-dir="desc"] .sort-direction {
    transform: rotate(180deg);
    display: inline-block;
}







/* Mobile */
@media (max-width: 768px) {
  .trip-fields {
    flex-direction: column;
  }
  
  .route-fields {
    flex-direction: column;
    width: 100%;
  }

  .origin-block {
    flex-wrap: wrap;
  }

  .origin-block, .destination-block, .date-field, .date-field .DateInput_DateInput--docked__MWRjN, #budget-block, #budget {
    width: 100%;
  }
  
  .btn-switch {
    transform: rotate(90deg);
    top: 100%;
    right: 0;
  }

    .btn-switch:hover {
        transform: rotate(270deg);
    }

  .multi-stops-form .SingleDestControls_dates-wrapper__ZTQxM {
    width: 100%;
  }
}

/* Tablette */
@media (max-width: 1024px) { }

/* Desktop */
@media (min-width: 1025px) { }

/* Grand écran */
@media (min-width: 1440px) { }