﻿/* from TourDayItinerary.module.css */
[data-tp="tour-itinerary"] {
.wrap {
	display: flex;
	flex-direction: column;
	gap: 14px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow: hidden;
}

.tabRow {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
}

/* ~3 tabs full + partial 4th peek — never stretch page width */
.tabScrollViewport {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	width: 0;
	max-width: calc(100% - 84px);
	overflow: hidden;
}

.tabScrollViewportPeek::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	width: 36px;
	height: calc(100% - 4px);
	background: linear-gradient(90deg, transparent, #fff 85%);
	pointer-events: none;
}

.tabScroll {
	display: flex;
	gap: 10px;
	width: 100%;
	max-width: 100%;
	overflow-x: auto;
	overflow-y: hidden;
	padding-bottom: 4px;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}

.tabScroll::-webkit-scrollbar {
	height: 4px;
}

.tab {
	flex: 0 0 168px;
	display: flex;
	align-items: center;
	gap: 10px;
	width: 168px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	background: #fff;
	cursor: pointer;
	text-align: left;
	scroll-snap-align: start;
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tab:hover {
	border-color: #fecaca;
}

.tabActive {
	border-color: #e53935;
	background: #fff5f5;
	box-shadow: 0 4px 14px rgba(229, 57, 53, 0.12);
}

.tabIcon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f1f5f9;
	color: #64748b;
	flex-shrink: 0;
	font-size: 0.85rem;
}

.tabActive .tabIcon {
	background: #fee2e2;
	color: #e53935;
}

.tabText {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1 1 auto;
}

.tabText strong {
	font-size: 0.8rem;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.2;
}

.tabText small {
	font-size: 0.66rem;
	color: #64748b;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.tabNav {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.tabNavBtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	background: #fff;
	color: #64748b;
	cursor: pointer;
}

.tabNavBtn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.tabNavBtnPrimary {
	background: #e53935;
	border-color: #e53935;
	color: #fff;
}

.tabNavBtnPrimary:disabled {
	background: #fca5a5;
	border-color: #fca5a5;
}

.card {
	display: grid;
	grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	gap: 0;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.cardNoImage {
	grid-template-columns: 1fr;
}

.visual {
	position: relative;
	min-height: 260px;
	max-height: 300px;
	min-width: 0;
	background: #0f172a;
	overflow: hidden;
}

.visualImg {
	width: 100%;
	height: 100%;
	min-height: 260px;
	max-height: 300px;
	object-fit: cover;
	display: block;
}

.dayBadge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 12px;
	border-radius: 8px;
	background: #e53935;
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.detail {
	padding: 20px 22px 22px;
	min-width: 0;
	overflow: hidden;
}

.detailTitle {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 1.1rem;
	font-weight: 500;
	color: #0f172a;
	line-height: 1.25;
}

.detailTitle i {
	color: #e53935;
	font-size: 0.95rem;
}

.detailBody {
	font-size: 14px;
	font-weight: 400;
	line-height: 1.65;
	color: #000;
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.detailBody img,
.detailBody table,
.detailBody iframe {
	max-width: 100%;
	height: auto;
}

.detailBody p {
	margin: 0 0 10px;
}

.detailBody p:last-child {
	margin-bottom: 0;
}

.detailBody ul,
.detailBody ol {
	margin: 0 0 10px;
	padding-left: 1.2rem;
}

@media (max-width: 991px) {
	.tabScrollViewport {
		max-width: calc(100% - 84px);
	}

	.card {
		grid-template-columns: 1fr;
	}

	.visual,
	.visualImg {
		min-height: 220px;
		max-height: 240px;
	}
}

@media (max-width: 575px) {
	.tab {
		flex: 0 0 140px;
		width: 140px;
	}
}

}

