.swap-button {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
	background: #29c964;
    border-radius: 20px;
    margin-left: 10px;
}

.container-div-card,
.trip-card,
.trip-details {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.swap-button:hover {
    color: #1d4ed8;
    transform: scale(1.5);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.container-div-card {
  overflow-y: auto;
  max-height: 400px;
  box-sizing: border-box;
  padding-right: 0.5rem;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 999;
}

.backpack-modal {
	background-color: white;
	border-radius: 10px;
	width: 90%;
	max-width: 400px;
	padding: 20px;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	box-sizing: border-box;
	max-height: 80%;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.modal-header h2 {
	margin: 0;
	font-size: 1.5em;
	color: #333;
}

.close-button {
	background: none;
	border: none;
	font-size: 1.8em;
	cursor: pointer;
	color: #666;
}

.trip-summary {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 0.9em;
	color: #555;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.trip-detail-card {
	background-color: #f8f8f8;
	border-radius: 8px;
	padding: 15px;
	margin-bottom: 15px;
}

.trip-detail-card p {
	margin: 5px 0;
	color: #444;
}

.trip-detail-card .route {
	font-weight: bold;
	color: #333;
}

.trip-card {
	background-color: #f5f5f5;
	border-radius: 8px;
	padding: 8px;
	margin-bottom: 10px;
	border: 1px solid #e0e0e0;
}

.trip-card {
  min-height: 60px; /* à ajuster selon ton design */
  overflow: hidden; /* force le contenu à rester dedans */
}

.trip-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.trip-route {
	font-weight: bold;
	font-size: 1.1em;
	color: #333;
}

.trip-mode {
	background-color: #6d5bb8;
	color: white;
	padding: 4px 8px;
	border-radius: 20px;
	font-size: 0.8em;
}

.trip-details {
	  font-size: 0.9em;
	  color: #666;
	  margin-top:6px;
}

.night-count-card {
	margin: 0px auto;
	color: #3b74d4;
	width: fit-content;
	font-size: 0.9em;
	font-weight: bold;
	margin-bottom: 10px;
}

.night-count-card p {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.night-count-card svg {
  display: inline-block;
  width: 20px;
  height: 15px;
  vertical-align: middle;
}
.container-div-card {
  contain: content;
}
.container-div-card {
  -webkit-overflow-scrolling: touch; /* utile surtout sur mobile */
  scroll-behavior: smooth;
}

.clear-cart-btn {
	display: inline-block;
	width: 100%;
	padding: 0.75rem 1rem;
	margin-top: 1rem;
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	color: #b00020;
	background-color: #fff5f5;
	border: 1px solid #f5c2c7;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.clear-cart-btn:hover {
	background-color: #f8d7da;
	color: #a0001c;
	border-color: #f1aeb5;
}

.clear-cart-btn:active {
	background-color: #f1aeb5;
	transform: scale(0.98);
}
.export-cart-btn {
	display: inline-block;
	width: 100%;
	padding: 0.75rem 1rem;
	margin-top: 1rem;
	font-size: 0.9rem;
	font-weight: 500;
	text-align: center;
	color: #1e40af;
	background-color: #eff6ff;
	border: 1px solid #93c5fd;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
	text-decoration:none;
}

.export-cart-btn:hover {
	background-color: #c7d2fe;
	color: #1e3a8a;
	border-color: #60a5fa;
}

.export-cart-btn:active {
	background-color: #93c5fd;
	transform: scale(0.98);
}

.remove-trip-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease-in-out;
}

.remove-trip-btn svg {
	color: #9CA3AF;
	transition: color 0.2s ease-in-out;
}

.remove-trip-btn:hover svg {
	color: #ef4444;
	transform: scale(1.1);
}