/* ==========================================================================
   Tourstagram - Tour Program Element
   ========================================================================== */

/* Section wrapper */
.tse-tour-program-modern {
	max-width: 900px;
	margin: 0 auto 30px;
	padding: 0;
}

/* Section title */
.tse-tour-program-title {
	font-family: "Poppins", sans-serif;
	font-size: 28px;
	font-weight: 700;
	color: #222222;
	text-align: center;
	margin-bottom: 40px;
	position: relative;
	padding-bottom: 15px;
}
.tse-tour-program-title::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 50px;
	height: 3px;
	background: #ffa53a;
	border-radius: 2px;
}

/* ==========================================================================
   Timeline layout
   ========================================================================== */
.tse-tour-program-grid.tse-timeline {
	position: relative;
	padding-left: 110px;
}

/* Vertical timeline line - orange */
.tse-tour-program-grid.tse-timeline::before {
	content: "";
	position: absolute;
	left: 85px;
	top: 0;
	bottom: 0;
	width: 3px;
	background: #ffa53a;
	border-radius: 2px;
}

/* ==========================================================================
   Tour stop cards
   ========================================================================== */
.tse-tour-stop {
	position: relative;
	background: #ffffff;
	border-radius: 16px;
	padding: 18px;
	margin-bottom: 24px;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s ease;
}
.tse-tour-stop.tse-is-visible {
	opacity: 1;
	transform: translateY(0);
}
.tse-tour-stop:hover {
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

/* Timeline dot */
.tse-tour-stop::before {
	content: "";
	position: absolute;
	left: -33px;
	top: 22px;
	width: 13px;
	height: 13px;
	background: #ffa53a;
	border: 3px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(255, 165, 58, 0.25);
	z-index: 1;
}

/* Time pill badge - sits on the timeline to the left */
.tse-tour-stop::after {
	content: attr(data-time);
	position: absolute;
	left: -100px;
	top: 18px;
	font-family: "Poppins", sans-serif;
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	background: #ffa53a;
	padding: 4px 12px;
	border-radius: 999px;
	white-space: nowrap;
	text-align: center;
	min-width: 52px;
	display: block;
}

/* Stop heading */
.tse-tour-stop h3 {
	font-family: "Poppins", sans-serif;
	font-size: 18px;
	font-weight: 800;
	color: #222222;
	margin: 0 0 6px;
	line-height: 1.3;
}

/* Mobile time badge (inline, hidden on desktop) */
.tse-tour-stop h3::before {
	content: attr(data-time-display);
	display: none;
	font-size: 11px;
	font-weight: 700;
	color: #ffffff;
	background: #ffa53a;
	padding: 2px 10px;
	border-radius: 999px;
	margin-bottom: 8px;
}

/* Stop description */
.tse-tour-stop p {
	font-family: "Poppins", sans-serif;
	font-size: 14px;
	line-height: 1.55;
	color: #666666;
	margin: 0 0 14px;
}

/* ==========================================================================
   Photo indicator button
   ========================================================================== */
.tse-photo-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	font-weight: 700;
	color: #ff7a00;
	cursor: pointer;
	padding: 6px 14px;
	border: none;
	border-radius: 20px;
	background: transparent;
	transition: all 0.25s ease;
	user-select: none;
}
.tse-photo-indicator:hover {
	background: #fff4e6;
}
.tse-photo-indicator.tse-active {
	background: #fff4e6;
	color: #ff7a00;
}

/* ==========================================================================
   Inline photo gallery (opens below the stop card)
   ========================================================================== */
.tse-tour-stop-gallery {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease;
	margin-top: 0;
}
.tse-tour-stop-gallery.tse-open {
	max-height: 600px;
	opacity: 1;
	margin-top: 16px;
}

.tse-tour-stop-gallery-track {
	display: flex;
	gap: 10px;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	padding: 4px 0 10px;
	scrollbar-width: thin;
	scrollbar-color: #ffd9a8 transparent;
}
.tse-tour-stop-gallery-track::-webkit-scrollbar {
	height: 6px;
}
.tse-tour-stop-gallery-track::-webkit-scrollbar-track {
	background: transparent;
}
.tse-tour-stop-gallery-track::-webkit-scrollbar-thumb {
	background: #ffd9a8;
	border-radius: 3px;
}

.tse-tour-stop-gallery-track img {
	height: 180px;
	width: auto;
	min-width: 140px;
	max-width: 280px;
	object-fit: cover;
	border-radius: 10px;
	flex-shrink: 0;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.tse-tour-stop-gallery-track img:hover {
	transform: scale(1.03);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   Note section
   ========================================================================== */
.tse-tour-program-note {
	max-width: 900px;
	margin: 20px auto 0;
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #f4f6f8;
	border-radius: 14px;
	padding: 12px 14px;
}
.tse-tour-program-note .tse-note-icon {
	font-size: 16px;
	flex-shrink: 0;
	line-height: 1.5;
}
.tse-tour-program-note .tse-note-text {
	font-family: "Poppins", sans-serif;
	font-size: 13px;
	line-height: 1.6;
	color: #555555;
}

/* ==========================================================================
   Tablet (768px - 999px)
   ========================================================================== */
@media only screen and (max-width: 999px) {
	.tse-tour-program-modern {
		max-width: 100%;
		padding: 0 10px;
	}
	.tse-tour-program-title {
		font-size: 24px;
		margin-bottom: 30px;
	}
	.tse-tour-stop h3 {
		font-size: 16px;
	}
	.tse-tour-stop p {
		font-size: 13px;
	}
	.tse-tour-stop-gallery-track img {
		height: 150px;
	}
}

/* ==========================================================================
   Mobile (max-width: 767px)
   ========================================================================== */
@media only screen and (max-width: 767px) {
	.tse-tour-program-modern {
		padding: 0 5px;
	}
	.tse-tour-program-title {
		font-size: 20px;
		margin-bottom: 24px;
		padding-bottom: 12px;
	}
	.tse-tour-program-title::after {
		width: 36px;
	}

	/* Simplified timeline for mobile - no external pill */
	.tse-tour-program-grid.tse-timeline {
		padding-left: 28px;
	}
	.tse-tour-program-grid.tse-timeline::before {
		left: 8px;
		width: 2px;
	}
	.tse-tour-stop {
		padding: 16px;
		margin-bottom: 16px;
		border-radius: 14px;
	}
	.tse-tour-stop::before {
		left: -25px;
		top: 20px;
		width: 10px;
		height: 10px;
		border-width: 2px;
	}
	/* Hide the external time pill on mobile */
	.tse-tour-stop::after {
		display: none;
	}
	/* Show inline time badge on mobile */
	.tse-tour-stop h3::before {
		display: inline-block;
	}
	.tse-tour-stop h3 {
		font-size: 15px;
	}
	.tse-tour-stop p {
		font-size: 13px;
		line-height: 1.55;
	}

	/* Gallery adjustments */
	.tse-tour-stop-gallery-track img {
		height: 130px;
		min-width: 110px;
	}

	/* Note section */
	.tse-tour-program-note {
		padding: 10px 12px;
		gap: 8px;
	}
	.tse-tour-program-note .tse-note-text {
		font-size: 12px;
	}
}

/* ==========================================================================
   Small mobile (max-width: 480px)
   ========================================================================== */
@media only screen and (max-width: 480px) {
	.tse-tour-program-grid.tse-timeline {
		padding-left: 22px;
	}
	.tse-tour-program-grid.tse-timeline::before {
		left: 5px;
	}
	.tse-tour-stop::before {
		left: -21px;
		width: 8px;
		height: 8px;
	}
	.tse-tour-stop {
		padding: 14px 12px;
		margin-bottom: 14px;
	}
	.tse-tour-stop h3 {
		font-size: 14px;
	}
	.tse-tour-stop-gallery-track img {
		height: 110px;
		min-width: 90px;
	}
}

/* ==========================================================================
   Animation stagger delay for stops
   ========================================================================== */
.tse-tour-stop:nth-child(1) { transition-delay: 0s; }
.tse-tour-stop:nth-child(2) { transition-delay: 0.1s; }
.tse-tour-stop:nth-child(3) { transition-delay: 0.2s; }
.tse-tour-stop:nth-child(4) { transition-delay: 0.3s; }
.tse-tour-stop:nth-child(5) { transition-delay: 0.4s; }
.tse-tour-stop:nth-child(6) { transition-delay: 0.5s; }
.tse-tour-stop:nth-child(7) { transition-delay: 0.6s; }
.tse-tour-stop:nth-child(8) { transition-delay: 0.7s; }
.tse-tour-stop:nth-child(9) { transition-delay: 0.8s; }
.tse-tour-stop:nth-child(10) { transition-delay: 0.9s; }
