/* LT Réservations — route finder & results. All rules scoped to .ltf / .ltr. */
.ltf, .ltr {
	--ltf-ink: var(--lt-ink, #1b1c1e);
	--ltf-paper: var(--lt-paper, #faf8f3);
	--ltf-ivory: var(--lt-ivory, #f2efe8);
	--ltf-line: var(--lt-line, #dad3c5);
	--ltf-muted: var(--lt-muted, #625f58);
	--ltf-gold: var(--lt-champagne, #b89d6c);
	--ltf-gold-deep: var(--lt-champagne-deep, #7a6237);
	--ltf-night: #0d0e10;
	--ltf-error: #9b2c1f;
	--ltf-font: var(--lt-font-body, "Archivo", "Helvetica Neue", Arial, sans-serif);
	font-family: var(--ltf-font);
}

/* ---------------------------------------------------------------- Tabs */
.ltf__tabs { display: flex; gap: 2px; }
.ltf__tab {
	appearance: none; border: 0; cursor: pointer; font: 600 15px/1 var(--ltf-font);
	padding: 15px 22px 14px; min-height: 46px; border-radius: 2px 2px 0 0;
	background: rgba(250, 248, 243, 0.12); color: rgba(250, 248, 243, 0.86);
	transition: background-color .2s ease, color .2s ease;
}
.ltf__tab:hover { background: rgba(250, 248, 243, 0.2); color: #fff; }
.ltf__tab[aria-selected="true"] { background: var(--ltf-paper); color: var(--ltf-ink); }
.ltf__tab:focus-visible { outline: 2px solid var(--ltf-gold); outline-offset: 2px; }

/* ---------------------------------------------------------------- Panel */
.ltf__form, .ltf__panel {
	position: relative; background: var(--ltf-paper); color: var(--ltf-ink);
	border-radius: 0 2px 2px 2px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}
.ltf__form {
	display: grid; align-items: stretch;
	grid-template-columns: minmax(0, 1.3fr) 0 minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .78fr) auto;
	padding: 10px;
}
.ltf__panel { padding: 28px 30px 30px; max-width: 760px; }
.ltf__panel p { margin: 0 0 12px; color: var(--ltf-muted); font-size: 16px; line-height: 1.55; }
.ltf__panel .ltf__panel-title { color: var(--ltf-ink); font-size: 20px; font-weight: 600; font-stretch: 112%; margin-bottom: 8px; }
.ltf__link { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; background: var(--ltf-ink); color: var(--ltf-paper) !important; text-decoration: none !important; font-weight: 600; font-size: 15px; border-radius: 2px; margin-top: 6px; }
.ltf__link:hover { background: #000; }

.ltf__field { position: relative; display: flex; flex-direction: column; justify-content: center; padding: 10px 18px 10px; min-width: 0; border-radius: 2px; transition: background-color .15s ease; }
.ltf__field + .ltf__field, .ltf__swap + .ltf__field { box-shadow: inset 1px 0 0 var(--ltf-line); }
.ltf__field:focus-within { background: var(--ltf-ivory); box-shadow: none; }
.ltf__field label { font-size: 13px; font-weight: 600; color: var(--ltf-muted); margin: 0 0 4px; letter-spacing: 0.01em; }
.ltf__field input, .ltf__field select {
	appearance: none; -webkit-appearance: none; width: 100%; min-width: 0; height: 30px; padding: 0; margin: 0;
	border: 0; border-radius: 0; background: transparent; color: var(--ltf-ink);
	font: 500 17px/30px var(--ltf-font); outline: none; box-shadow: none;
	text-overflow: ellipsis;
}
.ltf__field input::placeholder { color: #8a867d; opacity: 1; }
.ltf__field select { cursor: pointer; padding-right: 18px; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-size: 5px 5px; background-position: right 5px center, right 0 center; background-repeat: no-repeat; }
.ltf__field input[type="date"] { cursor: pointer; }
.ltf__field input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
.ltf__field.has-error label { color: var(--ltf-error); }
.ltf__err { margin: 4px 0 0; font-size: 13px; line-height: 1.35; color: var(--ltf-error); }
.ltf__err:empty { display: none; }

.ltf__swap {
	position: relative; z-index: 2; align-self: center; width: 34px; height: 34px; margin: 0 -17px; padding: 0;
	border: 1px solid var(--ltf-line); border-radius: 50%; background: var(--ltf-paper); color: var(--ltf-ink); cursor: pointer;
	transition: transform .25s ease, border-color .2s ease;
}
.ltf__swap span, .ltf__swap span::before, .ltf__swap span::after { position: absolute; display: block; }
.ltf__swap span { left: 9px; right: 9px; top: 12px; bottom: 12px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.ltf__swap span::before, .ltf__swap span::after { content: ""; width: 5px; height: 5px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; }
.ltf__swap span::before { right: -1px; top: -4px; transform: rotate(45deg); }
.ltf__swap span::after { left: -1px; bottom: -4px; transform: rotate(-135deg); }
.ltf__swap:hover { border-color: var(--ltf-gold); transform: rotate(180deg); }
.ltf__swap:focus-visible { outline: 2px solid var(--ltf-gold); outline-offset: 2px; }

.ltf__submit {
	appearance: none; border: 0; cursor: pointer; margin-left: 10px; min-height: 64px; padding: 0 30px; border-radius: 2px;
	background: var(--ltf-ink); color: var(--ltf-paper); font: 600 16px/1 var(--ltf-font); white-space: nowrap;
	position: relative; overflow: hidden; transition: background-color .2s ease;
}
.ltf__submit::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--ltf-gold); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.ltf__submit:hover { background: #000; }
.ltf__submit:hover::after, .ltf__submit:focus-visible::after { transform: scaleX(1); }
.ltf__submit:focus-visible { outline: 2px solid var(--ltf-gold); outline-offset: 2px; }
.ltf__submit.is-busy span { opacity: .45; }
.ltf__submit.is-busy::before { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px; border: 2px solid rgba(250,248,243,.35); border-top-color: var(--ltf-paper); border-radius: 50%; animation: ltf-spin .8s linear infinite; }
@keyframes ltf-spin { to { transform: rotate(360deg); } }
.ltf__note { grid-column: 1 / -1; margin: 10px 8px 2px; font-size: 13px; color: var(--ltf-muted); }


/* ---------------------------------------------------------------- Combobox */
.ltf-cb { position: relative; display: flex; align-items: center; }
.ltf-cb__input { padding-right: 26px !important; }
.ltf-cb__clear { position: absolute; right: -6px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border: 0; background: transparent; cursor: pointer; color: var(--ltf-muted); }
.ltf-cb__clear::before, .ltf-cb__clear::after { content: ""; position: absolute; left: 10px; right: 10px; top: 15px; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
.ltf-cb__clear::after { transform: rotate(-45deg); }
.ltf-cb__clear:hover { color: var(--ltf-ink); }
.ltf-cb__list {
	position: absolute; z-index: 30; left: -18px; top: calc(100% + 18px); width: max(100% + 36px, 340px); max-height: 340px; overflow-y: auto;
	margin: 0; padding: 8px 0; list-style: none; background: var(--ltf-paper); border: 1px solid var(--ltf-line); border-radius: 2px;
	box-shadow: 0 24px 50px -20px rgba(20, 16, 8, 0.45);
}
.ltf-cb__group { padding: 12px 18px 6px; font-size: 12.5px; font-weight: 600; color: var(--ltf-muted); }
.ltf-cb__opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 18px; cursor: pointer; font-size: 16px; line-height: 1.3; color: var(--ltf-ink); }
.ltf-cb__opt:hover, .ltf-cb__opt.is-active { background: var(--ltf-ivory); }
.ltf-cb__opt.is-active { box-shadow: inset 2px 0 0 var(--ltf-gold); }
.ltf-cb__opt[aria-selected="true"] .ltf-cb__name { font-weight: 600; }
.ltf-cb__badge { flex: none; font-size: 12.5px; color: var(--ltf-gold-deep); font-weight: 600; }
.ltf-cb__empty { padding: 12px 18px; font-size: 14px; color: var(--ltf-muted); line-height: 1.45; }

/* ---------------------------------------------------------------- Finder responsive */
@media (max-width: 1100px) {
	.ltf__form { grid-template-columns: minmax(0, 1fr) 0 minmax(0, 1fr); row-gap: 0; }
	.ltf__field--date { grid-column: 1; box-shadow: inset 0 1px 0 var(--ltf-line) !important; }
	.ltf__field--time { grid-column: 3; box-shadow: inset 1px 0 0 var(--ltf-line), inset 0 1px 0 var(--ltf-line) !important; }
	.ltf__submit { grid-column: 1 / -1; margin: 10px 0 0; min-height: 58px; }
}
@media (max-width: 640px) {
	.ltf__tab { flex: 1; padding: 14px 10px; font-size: 14px; }
	.ltf__form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 6px; border-radius: 0 0 2px 2px; }
	.ltf__field { padding: 10px 14px; }
	.ltf__field--from, .ltf__field--to { grid-column: 1 / -1; }
	.ltf__field--to { box-shadow: inset 0 1px 0 var(--ltf-line) !important; }
	.ltf__field--from { padding-right: 56px; }
	.ltf__field--to { padding-right: 56px; }
	.ltf__swap { position: absolute; right: 18px; top: 66px; margin: 0; transform: rotate(90deg); }
	.ltf__swap:hover { transform: rotate(270deg); }
	.ltf__field--date { grid-column: 1; }
	.ltf__field--time { grid-column: 2; }
	.ltf__field input, .ltf__field select { font-size: 16px; }
	.ltf-cb__list { left: -14px; width: calc(100% + 28px + 42px); max-height: 50vh; }
	.ltf__note { margin: 10px 6px 4px; }
}

/* ---------------------------------------------------------------- Results */
.ltr { background: var(--ltf-paper); color: var(--ltf-ink); scroll-margin-top: 80px; outline: none; }
.ltr[hidden] { display: none; }
.ltr__wrap { max-width: var(--lt-wrap, 1240px); margin: 0 auto; padding: clamp(56px, 7vw, 96px) var(--lt-gutter, 24px) 0; }
.ltr__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 32px; align-items: end; padding-bottom: 24px; border-bottom: 1px solid var(--ltf-line); }
.ltr__route { grid-column: 1; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-family: var(--lt-font-display, var(--ltf-font)); font-stretch: 118%; font-weight: 560; font-size: clamp(26px, 3.2vw, 42px); line-height: 1.08; letter-spacing: -0.015em; }
.ltr__arrow { position: relative; display: inline-block; width: clamp(36px, 5vw, 64px); height: 1px; background: var(--ltf-gold); }
.ltr__arrow::after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border: solid var(--ltf-gold); border-width: 1px 1px 0 0; transform: rotate(45deg); }
.ltr__when { grid-column: 1; margin: 0; color: var(--ltf-muted); font-size: 16px; }
.ltr__edit { grid-column: 2; grid-row: 1 / span 2; align-self: end; appearance: none; border: 1px solid var(--ltf-ink); background: transparent; color: var(--ltf-ink); min-height: 46px; padding: 0 20px; border-radius: 2px; cursor: pointer; font: 600 15px/1 var(--ltf-font); }
.ltr__edit:hover { background: var(--ltf-ink); color: var(--ltf-paper); }
.ltr__note { margin: 20px 0 18px; font-size: 15px; color: var(--ltf-muted); max-width: 72ch; }
.ltr__note--quote { color: var(--ltf-ink); padding: 14px 18px; background: var(--ltf-ivory); border-left: 2px solid var(--ltf-gold); }

.ltr__list { display: grid; gap: 10px; }
.ltr__item {
	position: relative; display: grid; grid-template-columns: 200px minmax(0, 1fr) auto 28px; align-items: center; gap: 28px;
	padding: 14px 24px 14px 14px; background: #fff; border: 1px solid var(--ltf-line); border-radius: 2px; cursor: pointer;
	transition: border-color .2s ease, box-shadow .25s ease, transform .25s ease;
}
.ltr__item:hover { border-color: #c6bba6; box-shadow: 0 16px 34px -26px rgba(40, 30, 10, 0.5); }
.ltr__item.is-selected { border-color: var(--ltf-ink); box-shadow: inset 0 0 0 1px var(--ltf-ink); }
.ltr__radio { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ltr__item:has(.ltr__radio:focus-visible) { outline: 2px solid var(--ltf-gold); outline-offset: 3px; }
.ltr__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: var(--ltf-ivory); }
.ltr__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.ltr__item:hover .ltr__media img { transform: scale(1.04); }
.ltr__media--sil { display: flex; align-items: center; justify-content: center; color: #9b9486; }
.ltr__sil { width: 72%; height: auto; }
.ltr__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ltr__cat { font-size: 13px; color: var(--ltf-gold-deep); font-weight: 600; }
.ltr__name { font-family: var(--lt-font-display, var(--ltf-font)); font-stretch: 112%; font-size: 21px; font-weight: 600; line-height: 1.2; }
.ltr__caps { font-size: 14px; color: var(--ltf-muted); }
.ltr__price { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.ltr__amount { font-variant-numeric: tabular-nums; font-size: 24px; font-weight: 650; font-stretch: 108%; white-space: nowrap; }
.ltr__amount--quote { font-size: 17px; font-weight: 600; color: var(--ltf-muted); }
.ltr__eur { font-size: 13px; color: var(--ltf-muted); white-space: nowrap; }
.ltr__pick { width: 22px; height: 22px; border: 1.5px solid #b9b1a2; border-radius: 50%; position: relative; transition: border-color .2s ease; }
.ltr__item.is-selected .ltr__pick { border-color: var(--ltf-ink); }
.ltr__item.is-selected .ltr__pick::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--ltf-ink); }

.ltr__bar {
	position: sticky; bottom: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	margin: 22px calc(-1 * var(--lt-gutter, 24px)) 0; padding: 14px var(--lt-gutter, 24px) calc(14px + env(safe-area-inset-bottom));
	background: rgba(250, 248, 243, 0.96); border-top: 1px solid var(--ltf-line);
}
@supports (backdrop-filter: blur(8px)) { .ltr__bar { background: rgba(250, 248, 243, 0.86); backdrop-filter: blur(10px); } }
.ltr__sum { margin: 0; font-size: 15px; color: var(--ltf-muted); }
.ltr__bar.is-ready .ltr__sum { color: var(--ltf-ink); font-weight: 600; }
.ltr__go {
	display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 2px;
	background: var(--ltf-ink); color: var(--ltf-paper) !important; text-decoration: none !important; font-weight: 600; font-size: 15px; white-space: nowrap;
	transition: background-color .2s ease, opacity .2s ease;
}
.ltr__go:hover { background: #000; }
.ltr__go[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.ltr__go:focus-visible { outline: 2px solid var(--ltf-gold); outline-offset: 2px; }

/* Entrance after a search (answers the visitor's action). */
.ltr.is-in .ltr__head { animation: ltr-fade .5s ease both; }
.ltr.is-in .ltr__item { animation: ltr-rise .55s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms + 80ms); }
@keyframes ltr-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ltr-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
	.ltr__item { grid-template-columns: 120px minmax(0, 1fr) 24px; gap: 6px 18px; padding: 12px 16px 12px 12px; }
	.ltr__media { grid-row: 1 / span 2; align-self: start; }
	.ltr__body { grid-column: 2; }
	.ltr__price { grid-column: 2; grid-row: 2; text-align: left; flex-direction: row; align-items: baseline; gap: 10px; flex-wrap: wrap; }
	.ltr__pick { grid-column: 3; grid-row: 1 / span 2; }
	.ltr__amount { font-size: 21px; }
	.ltr__name { font-size: 18px; }
}
@media (max-width: 560px) {
	.ltr__head { grid-template-columns: 1fr; }
	.ltr__edit { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; }
	.ltr__item { grid-template-columns: 92px minmax(0, 1fr) 22px; }
	.ltr__caps { font-size: 13px; }
	.ltr__bar { flex-direction: column; align-items: stretch; gap: 10px; }
	.ltr__go { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ltf *, .ltr * { transition: none !important; animation: none !important; }
}
