/* ============================================================
   TRIP SEARCH WIDGET  [pounamu_trip_search]
   Mainlander brand — teal-blue palette
   ============================================================ */

.lt-ts {
	--ts-brand:      #104146;
	--ts-brand-dark: #0b2e32;
	--ts-off-blue:   #E8F1F1;
	--ts-text:       #1a1a1a;
	--ts-muted:      #5c5c5c;
	--ts-border:     rgba(16, 65, 70, 0.14);
	--ts-radius:     16px;

	box-sizing: border-box;
	width: 100%;
	font-family: "GoogleSansFlex-VariableFont", sans-serif;
	color: var(--ts-text);
}

.lt-ts *,
.lt-ts *::before,
.lt-ts *::after {
	box-sizing: border-box;
}

/* Elementor shortcode widgets shrink-wrap by default — force full row width */
.elementor-widget-shortcode:has(.lt-ts),
.elementor-widget-shortcode:has(.lt-ts) > .elementor-widget-container {
	width: 100%;
	max-width: 100%;
}

.lt-ts__title {
	margin: 0 0 1.25rem;
	color: var(--ts-brand);
}

/* ── Hero compact bar (From / To only) ───────────────────────── */

#find-weekend-journey {
	scroll-margin-top: 96px;
}

.lt-ts--hero {
	width: 100%;
	max-width: 640px;
}

.lt-ts--hero .lt-ts__bar {
	width: 100%;
	padding: 0.85rem 1rem;
	box-shadow: 0 14px 36px rgba(11, 46, 50, 0.14);
}

.lt-ts--hero .lt-ts__field {
	flex: 1 1 160px;
	min-width: 0;
}

/* ── Search bar ─────────────────────────────────────────────── */

.lt-ts__bar {
	display: flex;
	align-items: flex-end;
	gap: 0.75rem;
	flex-wrap: wrap;
	background: #fff;
	border: 1px solid var(--ts-border);
	border-radius: var(--ts-radius);
	box-shadow: 0 10px 30px rgba(11, 46, 50, 0.10);
	padding: 1rem 1.25rem;
}

.lt-ts__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	flex: 1 1 200px;
	min-width: 170px;
}

.lt-ts__field--way {
	flex: 0 0 auto;
}

.lt-ts__label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ts-brand);
}

.lt-ts__select {
	appearance: none;
	-webkit-appearance: none;
	width: 100%;
	padding: 0.65rem 2.2rem 0.65rem 0.85rem;
	border: 1.5px solid var(--ts-border);
	border-radius: 10px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23104146' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.8rem center;
	font-family: inherit;
	font-size: 0.95rem;
	color: var(--ts-text);
	cursor: pointer;
	transition: border-color 0.15s ease;
}

.lt-ts__select:hover,
.lt-ts__select:focus {
	border-color: var(--ts-brand);
	outline: none;
}

.lt-ts__select:disabled {
	background-color: #f4f6f6;
	color: var(--ts-muted);
	cursor: not-allowed;
}

.lt-ts button.lt-ts__swap {
	flex: 0 0 auto;
	align-self: flex-end;
	width: 38px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 10px;
	background: var(--ts-off-blue);
	color: var(--ts-brand);
	padding: 0;
	cursor: pointer;
	transition: background 0.15s ease;
}

.lt-ts button.lt-ts__swap:hover {
	background: #d8e8e8;
	color: var(--ts-brand);
}

.lt-ts__swap svg {
	width: 16px;
	height: 16px;
}

.lt-ts__way {
	display: inline-flex;
	background: var(--ts-off-blue);
	border-radius: 999px;
	padding: 3px;
}

.lt-ts button.lt-ts__way-btn {
	border: none;
	background: transparent;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--ts-brand);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.lt-ts button.lt-ts__way-btn:hover {
	background: rgba(16, 65, 70, 0.08);
	color: var(--ts-brand);
}

.lt-ts button.lt-ts__way-btn.lt-ts__way-btn--active,
.lt-ts button.lt-ts__way-btn.lt-ts__way-btn--active:hover {
	background: var(--ts-brand);
	color: #fff;
}

/* ── Notice ─────────────────────────────────────────────────── */

.lt-ts__notice {
	margin-top: 1rem;
	padding: 0.8rem 1.1rem;
	background: var(--ts-off-blue);
	border-radius: 12px;
	font-size: 0.92rem;
	color: var(--ts-brand);
}

.lt-ts__error {
	padding: 1rem 1.25rem;
	background: var(--ts-off-blue);
	border-radius: 12px;
	color: var(--ts-brand);
}

/* ── Results ────────────────────────────────────────────────── */

.lt-ts__results {
	margin-top: 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
}

/* Weekend group header */

.lt-ts-group {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 0.75rem;
}

.lt-ts-group:first-child {
	margin-top: 0;
}

.lt-ts-group__left {
	display: flex;
	align-items: baseline;
	gap: 0.55rem;
	flex-wrap: wrap;
	min-width: 0;
}

.lt-ts-group__icon {
	width: 15px;
	height: 15px;
	color: #111;
	flex: 0 0 auto;
	align-self: center;
	opacity: 0.75;
}

.lt-ts-group__range {
	font-size: 0.95rem;
	font-weight: 600;
	color: #111;
}

.lt-ts-group__days {
	font-size: 0.95rem;
	font-weight: 400;
	color: #111;
}

.lt-ts-group__right {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	flex: 1 1 auto;
	min-width: 80px;
}

.lt-ts-group__line {
	flex: 1 1 auto;
	height: 1px;
	background: rgba(0, 0, 0, 0.12);
}

.lt-ts-group__count {
	font-size: 0.85rem;
	color: var(--ts-muted);
	white-space: nowrap;
}

/* Result card — React booking app style */

.lt-ts-card {
	display: flex;
	align-items: stretch;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: var(--ts-text);
	box-shadow: 0 2px 10px rgba(11, 46, 50, 0.06);
	transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}

a.lt-ts-card:hover {
	border-color: rgba(16, 65, 70, 0.28);
	box-shadow: 0 10px 28px rgba(11, 46, 50, 0.12);
	transform: translateY(-1px);
	color: var(--ts-text);
}

.lt-ts-card--sold-out {
	opacity: 0.65;
}

/* Left date strip — mint calendar panel (matches booking app) */
.lt-ts-card__dates {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 1rem;
	flex: 0 0 72px;
	padding: 1.1rem 0.65rem;
	background: #E8FBF2;
	text-align: center;
}

.lt-ts-card__dateblock {
	display: flex;
	flex-direction: column;
	align-items: center;
	line-height: 1;
}

.lt-ts-card__daynum {
	font-size: 1.55rem;
	font-weight: 700;
	color: #111;
	letter-spacing: -0.02em;
}

.lt-ts-card__month {
	margin-top: 0.2rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	color: #2C8561;
}

.lt-ts-card__body {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lt-ts-card__route {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	gap: 0.75rem;
	padding: 1.15rem 1.25rem 1rem;
}

.lt-ts-card__end {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.lt-ts-card__end--dest {
	text-align: right;
	align-items: flex-end;
}

.lt-ts-card__code {
	display: inline-block;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 1.75rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #111;
	line-height: 1;
}

.lt-ts-card__time {
	display: block;
	margin-top: 0.2rem;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.82rem;
	font-weight: 600;
	color: #111;
	letter-spacing: -0.01em;
	line-height: 1.2;
	white-space: nowrap;
}

.lt-ts-card__time-label {
	font-family: inherit;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ts-muted);
}

.lt-ts-card__return-times {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4rem 0.55rem;
	padding: 0 1.25rem 0.95rem;
	font-family: "JetBrains Mono", ui-monospace, monospace;
	font-size: 0.78rem;
	font-weight: 600;
	color: #111;
	line-height: 1.2;
}

.lt-ts-card__return-label {
	font-family: inherit;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ts-brand, #104146);
}

.lt-ts-card__return-sep {
	color: rgba(0, 0, 0, 0.25);
}

.lt-ts-card__mid {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.2rem;
	position: relative;
	min-width: 88px;
	padding: 0 0.25rem;
}

.lt-ts-card__mid-line {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	height: 1px;
	background: rgba(0, 0, 0, 0.12);
	transform: translateY(-0.55rem);
}

.lt-ts-card__route-icon {
	position: relative;
	z-index: 1;
	width: 22px;
	height: 12px;
	color: var(--ts-muted);
	background: #fff;
	padding: 0 4px;
}

.lt-ts-card__stops {
	position: relative;
	z-index: 1;
	font-size: 0.75rem;
	color: var(--ts-muted);
	white-space: nowrap;
}

.lt-ts-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 0.85rem 1.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.lt-ts-card__price {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.lt-ts-card__price-label {
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ts-muted);
}

.lt-ts-card__price-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem 0.65rem;
}

.lt-ts-card__price-amount {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--ts-text);
	letter-spacing: -0.02em;
	line-height: 1.1;
}

.lt-ts-card__footer-right {
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.lt-ts-card__pill {
	padding: 0.25rem 0.65rem;
	border-radius: 999px;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.lt-ts-card__pill--few_left {
	background: #fdecea;
	color: #b3261e;
}

.lt-ts-card__pill--selling_fast {
	background: #fff4e0;
	color: #9a6200;
}

.lt-ts-card__pill--sold_out {
	background: #ebebeb;
	color: #5c5c5c;
}

.lt-ts-card__btn {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.55rem 1.15rem;
	border-radius: 10px;
	background: #111;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	transition: background 0.15s ease;
}

a.lt-ts-card:hover .lt-ts-card__btn {
	background: var(--ts-brand);
}

.lt-ts-card__btn--sold-out {
	background: #c0c0c0;
	cursor: not-allowed;
}

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 767px) {
	.lt-ts,
	.lt-ts--hero {
		max-width: none;
		width: 100%;
	}

	.lt-ts__bar {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: flex-end;
		width: 100%;
		gap: 0.5rem;
		padding: 0.85rem;
	}

	.lt-ts__field,
	.lt-ts--hero .lt-ts__field {
		flex: 1 1 0;
		min-width: 0;
		width: auto;
	}

	/* Trip type sits full-width under From / To on the full widget */
	.lt-ts__field--way {
		flex: 1 1 100%;
		width: 100%;
		min-width: 0;
	}

	.lt-ts__select {
		min-height: 46px;
		padding: 0.65rem 1.9rem 0.65rem 0.7rem;
		font-size: 0.9rem;
		border-radius: 12px;
		background-position: right 0.65rem center;
	}

	.lt-ts button.lt-ts__swap {
		align-self: flex-end;
		flex: 0 0 auto;
		width: 42px;
		height: 46px;
		transform: none;
		margin: 0;
	}

	.lt-ts__way {
		display: flex;
		width: 100%;
	}

	.lt-ts button.lt-ts__way-btn {
		flex: 1 1 0;
		min-height: 44px;
		padding: 0.55rem 0.75rem;
		font-size: 0.95rem;
	}

	.lt-ts--hero .lt-ts__bar {
		padding: 0.85rem;
	}

	.lt-ts-group {
		flex-direction: column;
		align-items: flex-start;
		gap: 0.35rem;
	}

	.lt-ts-group__right {
		width: 100%;
	}

	.lt-ts-card {
		border-radius: 14px;
	}

	.lt-ts-card__dates {
		flex: 0 0 58px;
		padding: 0.9rem 0.4rem;
		gap: 0.75rem;
	}

	.lt-ts-card__daynum {
		font-size: 1.25rem;
	}

	.lt-ts-card__route {
		padding: 1rem 0.85rem 0.85rem;
		gap: 0.35rem;
	}

	.lt-ts-card__code {
		font-size: 1.3rem;
	}

	.lt-ts-card__time {
		font-size: 0.7rem;
	}

	.lt-ts-card__mid {
		min-width: 52px;
	}

	.lt-ts-card__stops {
		font-size: 0.68rem;
	}

	.lt-ts-card__return-times {
		padding: 0 0.85rem 0.8rem;
		font-size: 0.7rem;
	}

	.lt-ts-card__footer {
		flex-wrap: wrap;
		padding: 0.75rem 0.85rem;
		gap: 0.65rem;
	}

	.lt-ts-card__footer-right {
		width: 100%;
		justify-content: space-between;
	}

	.lt-ts-card__btn {
		min-height: 44px;
		padding: 0.6rem 1.1rem;
	}

	.lt-ts-card__price-amount {
		font-size: 1.15rem;
	}
}
