/* =========================
   Andes Treks booking table
   ========================= */

.booking-table {
	width: 100%;
	border: 1px solid #dedbd8;
	border-collapse: separate;
	border-spacing: 0;
	border-radius: 14px;
	overflow: hidden;
	color: #0e0b0b;
	background: #fff;
	font-family: "Avenir Book", Avenir, "Helvetica Neue", Arial, sans-serif;
}

.booking-table th,
.booking-table td {
	padding: 16px 18px;
	border: 0;
	border-bottom: 1px solid #dedbd8;
	text-align: left;
	vertical-align: middle;
}

.booking-table th {
	color: #0e0b0b;
	background: #f7f6f4;
	font-family: "Arial Black", Arial, sans-serif;
	font-size: 13px;
	font-weight: 900;
	line-height: 1.3;
}

.booking-table tbody tr:last-child td {
	border-bottom: 0;
}

.booking-table tbody tr:hover {
	background: rgba(252, 194, 49, .04);
}

/* Trek names */

.table-booking__dates {
	display: grid;
	gap: 5px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.table-booking__dates li {
	color: #302c2c;
	font-size: 14px;
	line-height: 1.4;
}

/* Guaranteed departure status */

.booking-table tbody td:nth-child(3) {
	color: #176b3a;
	font-weight: 800;
	white-space: nowrap;
}

.booking-table tbody td:nth-child(3)::before {
	content: "\2713";
	display: inline-grid;
	width: 21px;
	height: 21px;
	margin-right: 7px;
	border-radius: 50%;
	color: #fff;
	background: #20d836 !important;
	font-family: Arial, sans-serif;
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	vertical-align: -2px;
	place-items: center;
}

/* Booking buttons */

.table-booking__buttons {
	display: grid;
	gap: 8px;
	min-width: 185px;
}

.booking-table .booking__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	padding: 9px 13px;
	border: 0;
	border-radius: 8px;
	color: #0e0b0b;
	background: #fcc231;
	font-family: "Arial Black", Arial, sans-serif;
	font-size: 12px;
	font-weight: 900;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}

.booking-table .booking__button:hover,
.booking-table .booking__button:focus-visible {
	color: #0e0b0b;
	background: #ffd35b;
	box-shadow: 0 7px 16px rgba(201, 145, 0, .22);
	transform: translateY(-1px);
}

.booking-table .booking__button:focus-visible {
	outline: 3px solid rgba(252, 194, 49, .42);
	outline-offset: 2px;
}

/* Mobile cards */

@media (max-width: 700px) {
	.booking-table {
		display: block;
		border: 0;
		border-radius: 0;
		overflow: visible;
		background: transparent;
	}

	.booking-table thead {
		position: absolute;
		width: 1px;
		height: 1px;
		padding: 0;
		margin: -1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.booking-table tbody {
		display: grid;
		gap: 12px;
		width: 100%;
	}

	.booking-table tbody tr {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
		padding: 15px;
		border: 1px solid #dedbd8;
		border-radius: 12px;
		background: #fff;
		box-shadow: 0 5px 16px rgba(14, 11, 11, .06);
	}

	.booking-table td {
		display: block;
		width: 100%;
		padding: 0;
		border: 0;
	}

	.booking-table td:first-child {
		margin-bottom: 9px;
		color: #0e0b0b;
		font-family: "Arial Black", Arial, sans-serif;
		font-size: 19px;
		font-weight: 900;
		line-height: 1.25;
		letter-spacing: -.015em;
	}

	.booking-table td:nth-child(2) {
		margin-bottom: 10px;
	}

	.table-booking__dates {
		display: flex;
		flex-wrap: wrap;
		gap: 6px;
	}

	.table-booking__dates li {
		padding: 5px 8px;
		border-radius: 999px;
		color: #0e0b0b;
		background: rgba(252, 194, 49, .18);
		font-size: 11px;
		font-weight: 800;
		line-height: 1.2;
	}

	.booking-table tbody td:nth-child(3) {
		width: fit-content;
		margin-bottom: 13px;
		padding: 7px 10px;
		border: 1px solid #20d836 !important;
		border-radius: 999px;
		color: #0e0b0b;
		background: #20d836 !important;
		font-size: 12px;
		font-weight: 900;
		line-height: 1.2;
	}

	.booking-table tbody td:nth-child(3)::before {
		width: 18px;
		height: 18px;
		margin-right: 6px;
		font-size: 11px;
		vertical-align: -1px;
	}

	.booking-table td:nth-child(4) {
		margin-top: 1px;
	}

	.table-booking__buttons {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		width: 100%;
		min-width: 0;
	}

	.booking-table .booking__button {
		width: 100%;
		min-width: 0;
		min-height: 44px;
		padding: 9px 8px;
		font-size: 11px;
		white-space: normal;
	}
}

/* Extra-small phones: prioritize readable, full-width booking actions. */

@media (max-width: 420px) {
	.booking-table tbody {
		gap: 10px;
	}

	.booking-table tbody tr {
		padding: 13px;
		border-radius: 11px;
	}

	.booking-table td:first-child {
		font-size: 17px;
	}

	.table-booking__dates li {
		padding: 4px 7px;
		font-size: 10.5px;
	}

	.table-booking__buttons {
		grid-template-columns: 1fr;
		gap: 7px;
	}

	.booking-table .booking__button {
		min-height: 44px;
		padding: 9px 10px;
		font-size: 11px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.booking-table .booking__button {
		transition: none;
	}
}
