/* ==========================================================================
   WalkTheDock Route Tools — route.css
   Version: 1.0.0
   --------------------------------------------------------------------------
   Cruising-guide Route Itinerary timeline. Tokens reference the same
   Elementor v4 globals + canonical palette used by the Season Calendar.
   ========================================================================== */

.wtd-route-itinerary {
	width: 100%;
	font-family: var(--e-global-typography-text-font-family, "Open Sans", system-ui, sans-serif);
	color: #1f2937;
}

/* ── Section heading ────────────────────────────────────────────────────── */
.wtd-route-itinerary__heading {
	font-family: var(--e-global-typography-primary-font-family, "Roboto Slab", Georgia, serif);
	font-size: clamp(22px, 2.2vw, 28px);
	font-weight: 700;
	color: #111827;
	margin: 0 0 16px;
	letter-spacing: -0.005em;
}

/* ── Timeline list ─────────────────────────────────────────────────────── */
.wtd-route-itinerary__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
}

/* ── Single stop row ───────────────────────────────────────────────────── */
.wtd-route-stop {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 18px;
	padding-bottom: 24px;
	position: relative;
}

.wtd-route-stop:last-child {
	padding-bottom: 0;
}

/* ── Rail (marker + connector line) ────────────────────────────────────── */
.wtd-route-stop__rail {
	position: relative;
	display: flex;
	justify-content: center;
	flex-shrink: 0;
}

/* The connecting line — drawn from below the marker to the next row.
   Implemented with a pseudo-element on the rail; hidden on the last row. */
.wtd-route-stop__rail::after {
	content: "";
	position: absolute;
	top: 48px;       /* below the marker (overridden by --wtd-route-marker-size when needed) */
	bottom: -24px;   /* match parent's padding-bottom so it kisses the next marker */
	left: 50%;
	width: 2px;
	background: #cbd5e1;
	transform: translateX(-50%);
}

.wtd-route-stop:last-child .wtd-route-stop__rail::after {
	display: none;
}

/* ── Marker circle ─────────────────────────────────────────────────────── */
.wtd-route-marker {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--wtd-route-color, #0A4D8C);
	color: #ffffff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
	position: relative;
	z-index: 1;
}

.wtd-route-marker__letter {
	font-family: var(--e-global-typography-primary-font-family, "Roboto Slab", Georgia, serif);
	font-weight: 700;
	font-size: 16px;
	line-height: 1;
}

.wtd-route-marker__icon {
	width: 55%;
	height: 55%;
}

/* ── Body ──────────────────────────────────────────────────────────────── */
.wtd-route-stop__body {
	min-width: 0;
	padding-top: 2px;
}

.wtd-route-stop__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}

.wtd-route-stop__day {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #64748b;
}

/* ── Pills / badges ────────────────────────────────────────────────────── */
.wtd-route-pill {
	display: inline-flex;
	align-items: center;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 10px;
	border-radius: 999px;
	white-space: nowrap;
}

.wtd-route-pill--marina {
	background: rgba(242, 100, 25, 0.14); /* #F26419 @ 14% */
	color: #C24513;
}

.wtd-route-pill--anchorage {
	background: rgba(42, 166, 160, 0.16); /* #2AA6A0 @ 16% */
	color: #157A75;
}

.wtd-route-pill--lay {
	background: rgba(234, 179, 8, 0.18); /* amber */
	color: #92590B;
}

/* ── Stop name ─────────────────────────────────────────────────────────── */
.wtd-route-stop__name {
	font-family: var(--e-global-typography-primary-font-family, "Roboto Slab", Georgia, serif);
	font-size: clamp(20px, 2vw, 26px);
	font-weight: 700;
	line-height: 1.2;
	color: #0f172a;
	margin: 0 0 6px;
	letter-spacing: -0.005em;
}

/* ── Meta line (distance, lay reason) ──────────────────────────────────── */
.wtd-route-stop__meta {
	margin: 0 0 6px;
	font-size: 14px;
	color: #475569;
}

/* ── Editor note + related CTA ─────────────────────────────────────────── */
.wtd-route-stop__note {
	margin: 4px 0 0;
	font-size: 15px;
	line-height: 1.45;
	color: #334155;
}

.wtd-route-stop__cta {
	color: #F26419;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
	margin-left: 4px;
}

.wtd-route-stop__cta:hover {
	text-decoration: underline;
}

.wtd-route-stop__cta span {
	margin-left: 2px;
}

/* ── Empty / editor placeholder ────────────────────────────────────────── */
.wtd-route-empty {
	padding: 16px;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	color: #64748b;
	font-style: italic;
	text-align: center;
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.wtd-route-stop {
		gap: 12px;
	}

	.wtd-route-stop__name {
		font-size: 20px;
	}

	.wtd-route-marker {
		width: 36px;
		height: 36px;
	}

	.wtd-route-stop__rail::after {
		top: 40px;
	}
}
