/* ==========================================================================
   Seafarer Itinerary — front-end styles
   Brand: navy #063859, coral #f4524d, Lato headings, Lora body
   ========================================================================== */

.sf-itin {
	--sf-gap: 30px;
	--sf-cols: var(--sf-cols-d, 3); /* set per breakpoint below */
	font-family: 'Lora', Georgia, 'Times New Roman', serif;
	max-width: 1200px;
	margin: 40px auto;
}
.sf-itin *,
.sf-itin *::before,
.sf-itin *::after {
	box-sizing: border-box;
}

.sf-itin__heading {
	font-family: 'Lato', Arial, sans-serif;
	color: #063859;
	text-align: center;
	font-size: 34px;
	font-weight: 700;
	line-height: 1.2;
	margin: 0 0 40px;
}

/* Layout ------------------------------------------------------------------ */
.sf-itin__viewport {
	position: relative;
	padding: 0 60px; /* room for the arrows */
}
.sf-itin__window {
	overflow: hidden;
}
.sf-itin__track {
	display: flex;
	gap: var(--sf-gap);
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}
.sf-itin__card {
	flex: 0 0 calc((100% - (var(--sf-cols) - 1) * var(--sf-gap)) / var(--sf-cols));
	min-width: 0;
}

/* Media + day badges ------------------------------------------------------ */
.sf-itin__media {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	aspect-ratio: 1 / 1;
	background-color: #e9e9e9;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
}
.sf-itin__badges {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	flex-direction: column;
	align-items: flex-start; /* change to flex-end + right:0 for the right edge */
}
.sf-itin__daynum {
	background: rgba(255, 255, 255, 0.88);
	color: #063859;
	font-family: 'Lato', Arial, sans-serif;
	font-size: 14px;
	line-height: 1;
	padding: 6px 12px;
}
.sf-itin__daylabel {
	background: #f4524d;
	color: #fff;
	font-family: 'Lato', Arial, sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 1;
	padding: 6px 14px;
}

/* Title + text ------------------------------------------------------------ */
.sf-itin__title {
	font-family: 'Lato', Arial, sans-serif;
	color: #063859;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
	margin: 22px 0 0;
}
.sf-itin__region {
	font-weight: 400;
}
.sf-itin__sep {
	display: block;
	width: 64px;
	height: 3px;
	background: #063859;
	margin: 12px 0 18px;
}
.sf-itin__text {
	color: #3a3a3a;
	font-size: 15px;
	line-height: 1.6;
}
.sf-itin__text p {
	margin: 0 0 1em;
}
.sf-itin__text p:last-child {
	margin-bottom: 0;
}

/* Arrows ------------------------------------------------------------------ */
.sf-itin__arrow {
	position: absolute;
	top: 50%; /* JS re-centres this on the image height */
	transform: translateY(-50%);
	width: 42px;
	height: 60px;
	padding: 0;
	border: none;
	border-radius: 4px;
	background: #e8e8e8;
	color: #6a6a6a;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	transition: background 0.2s ease, opacity 0.2s ease;
}
.sf-itin__arrow:hover {
	background: #dcdcdc;
}
.sf-itin__arrow:disabled {
	opacity: 0.25;
	cursor: default;
}
.sf-itin__arrow--prev { left: 0; }
.sf-itin__arrow--next { right: 0; }

/* Responsive -------------------------------------------------------------- */
@media (max-width: 991px) {
	.sf-itin {
		--sf-cols: var(--sf-cols-t, 2); /* tablet count */
	}
}
@media (max-width: 599px) {
	.sf-itin {
		--sf-gap: 16px;
		--sf-cols: var(--sf-cols-m, 1); /* mobile count */
	}
	.sf-itin__viewport {
		padding: 0 44px;
	}
	.sf-itin__heading {
		font-size: 26px;
		margin-bottom: 28px;
	}
}
