.ttd-package-carousel {
	position: relative;
	margin: 20px 0;
}

.ttd-package-grid {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 4px 4px 14px;
	margin: 0 -4px;
	cursor: grab;
	scrollbar-width: thin;
}
.ttd-package-grid.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ttd-package-grid::-webkit-scrollbar { height: 8px; }
.ttd-package-grid::-webkit-scrollbar-track { background: transparent; }
.ttd-package-grid::-webkit-scrollbar-thumb { background: #d0d0d0; border-radius: 4px; }

.ttd-package-card {
	position: relative;
	border: 1px solid #e2e2e2;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.08);
	display: flex;
	flex-direction: column;
	flex: 0 0 280px;
	scroll-snap-align: start;
}
@media (max-width: 480px) {
	.ttd-package-card { flex-basis: 82%; }
}

.ttd-carousel-nav {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	z-index: 5;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid #e2e2e2;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.15);
	font-size: 20px;
	line-height: 1;
	color: #333;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ttd-carousel-nav:hover { background: #f6f6f6; }
.ttd-carousel-nav:disabled { opacity: .35; cursor: default; }
.ttd-carousel-nav:disabled:hover { background: #fff; }
.ttd-carousel-prev { left: -14px; }
.ttd-carousel-next { right: -14px; }
@media (max-width: 640px) {
	.ttd-carousel-nav { display: none; } /* touch/swipe is the primary interaction on small screens */
}

.ttd-card-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	z-index: 2;
	padding: 4px 12px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.ttd-badge-promo { background: #2271b1; }
.ttd-badge-selling_fast { background: #d63638; }
.ttd-badge-closed { background: #787c82; }
.ttd-badge-open { background: #00a32a; }

.ttd-card-image img { width: 100%; height: 190px; object-fit: cover; display: block; }

.ttd-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ttd-card-title { margin: 0; font-size: 18px; }
.ttd-card-meta { margin: 0; color: #666; font-size: 13px; }
.ttd-card-price { font-size: 15px; }
.ttd-card-seats { font-size: 13px; color: #555; margin: 0; }

.ttd-book-btn {
	margin-top: auto;
	background: #d63638;
	color: #fff;
	border: none;
	padding: 10px 16px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	font-size: 14px;
}
.ttd-book-btn:disabled { background: #ccc; cursor: not-allowed; }
.ttd-book-btn:hover:not(:disabled) { opacity: .9; }

/* Package details (description / included / excluded) */
.ttd-details-toggle {
	background: none;
	border: none;
	color: #2271b1;
	font-weight: 600;
	font-size: 13px;
	cursor: pointer;
	padding: 4px 0;
	text-align: left;
}
.ttd-details-toggle:hover { text-decoration: underline; }
.ttd-details-toggle[aria-expanded="true"] .ttd-toggle-arrow { display: inline-block; transform: rotate(180deg); }

.ttd-card-details {
	border-top: 1px solid #eee;
	margin-top: 4px;
	padding-top: 10px;
	font-size: 13px;
	color: #333;
}
.ttd-details-description { margin-bottom: 12px; line-height: 1.5; }
.ttd-details-description p { margin: 0 0 8px; }

.ttd-details-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .ttd-details-lists { grid-template-columns: 1fr; } }

.ttd-details-col h4 { margin: 0 0 6px; font-size: 13px; }
.ttd-details-col ul { margin: 0; padding: 0; list-style: none; }
.ttd-details-col li { padding: 2px 0 2px 20px; position: relative; }

.ttd-list-included li::before {
	content: "\2713"; position: absolute; left: 0; color: #00a32a; font-weight: 700;
}
.ttd-list-excluded li::before {
	content: "\2715"; position: absolute; left: 0; color: #d63638; font-weight: 700;
}

/* Modal */
.ttd-modal-overlay {
	position: fixed; inset: 0; background: rgba(0,0,0,.5);
	display: flex; align-items: center; justify-content: center;
	z-index: 100000; padding: 16px;
}
.ttd-modal {
	background: #fff; border-radius: 10px; padding: 24px;
	max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto;
	position: relative;
}
.ttd-modal-close {
	position: absolute; top: 10px; right: 14px;
	background: none; border: none; font-size: 24px; cursor: pointer; line-height: 1;
}
.ttd-modal h3 { margin-top: 0; }
.ttd-modal form label { display: block; margin-bottom: 12px; font-size: 13px; font-weight: 600; }
.ttd-modal form input, .ttd-modal form select {
	display: block; width: 100%; margin-top: 4px; padding: 8px; box-sizing: border-box;
	border: 1px solid #ccc; border-radius: 5px; font-weight: normal;
}
.ttd-pax-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.ttd-age-hint { font-weight: normal; color: #888; font-size: 11px; }

.ttd-price-breakdown { font-size: 13px; margin: 12px 0; color: #444; }
.ttd-price-breakdown div { display: flex; justify-content: space-between; padding: 2px 0; }
.ttd-price-total { font-size: 16px; margin-bottom: 14px; text-align: right; }
.ttd-form-error { color: #b32d2e; font-size: 13px; }

/* Itinerary PDF viewer (view-only) */
.ttd-itinerary-btn {
	margin-top: 6px;
	background: none;
	border: 1px solid #d63638;
	color: #d63638;
	padding: 8px 16px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	font-size: 13px;
}
.ttd-itinerary-btn:hover { background: #fdf0f0; }

.ttd-itinerary-modal { max-width: 720px; user-select: none; }
.ttd-itinerary-viewer {
	max-height: 65vh;
	overflow-y: auto;
	background: #f6f6f6;
	border-radius: 6px;
	padding: 12px;
	text-align: center;
}
.ttd-itinerary-canvas-wrap { position: relative; display: inline-block; }
#ttd-itinerary-canvas { max-width: 100%; box-shadow: 0 1px 4px rgba(0,0,0,.15); background: #fff; }

.ttd-itinerary-watermark {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	content: "";
	color: rgba(0,0,0,0.08);
	font-size: 14px;
	font-weight: 700;
	text-align: center;
	line-height: 3.2;
	transform: rotate(-28deg);
	pointer-events: none;
	overflow: hidden;
	word-break: break-word;
}

.ttd-itinerary-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
	gap: 12px;
}
.ttd-itinerary-nav span { font-size: 13px; color: #555; white-space: nowrap; }
