/**
 * Trajet Trip Booker styles (scoped to .trajet-booking).
 */
.trajet-booking {
	--tb-accent: #198754;
	--tb-danger: #dc3545;
	--tb-ink: #111;
	--tb-muted: #5f6368;
	background: #fff;
	color: var(--tb-ink);
	font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.trajet-booking--full {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
}

.trajet-booking .tb-left {
	padding: 20px;
	border-right: 1px solid #ddd;
	overflow: auto;
}

.trajet-booking .tb-title {
	margin: 0 0 16px;
	font-weight: 700;
}

.trajet-booking .tb-map {
	width: 100%;
	height: var(--tb-map-height, 100vh);
	background: #eef1f5;
	z-index: 0;
}

.trajet-booking .tb-suggestions {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	width: 100%;
	z-index: 1050;
	max-height: 220px;
	overflow-y: auto;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
	border-radius: 0 0 6px 6px;
	display: none;
}

.trajet-booking .tb-suggestions:not([hidden]) {
	display: block;
}

.trajet-booking .tb-suggestion {
	padding: 10px;
	cursor: pointer;
	border-bottom: 1px solid #eee;
	font-size: 0.9rem;
	line-height: 1.35;
	background: #fff;
}

.trajet-booking .tb-suggestion:hover,
.trajet-booking .tb-suggestion.is-active {
	background: #f1f3f5;
}

.trajet-booking .tb-suggestion--empty {
	cursor: default;
	color: var(--tb-muted);
}

.trajet-booking .tb-info {
	margin-top: 10px;
	padding: 10px;
	background: #f8f9fa;
	border-radius: 6px;
	font-size: 0.9rem;
	line-height: 1.5;
	min-height: 0;
}

.trajet-booking .tb-info:empty {
	display: none;
}

.trajet-booking .tb-info__warning {
	margin-top: 6px;
	color: var(--tb-danger);
}

.trajet-booking .tb-breakdown {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px 12px;
	margin: 10px 0 0;
	font-size: 0.9rem;
}

.trajet-booking .tb-breakdown dt,
.trajet-booking .tb-breakdown dd {
	margin: 0;
}

.trajet-booking .tb-breakdown dd {
	text-align: right;
}

.trajet-booking .tb-breakdown .is-strong {
	font-weight: 700;
	border-top: 1px solid #dee2e6;
	padding-top: 4px;
}

.trajet-booking .tb-details {
	border-top: 1px solid #dee2e6;
	padding-top: 12px;
}

.trajet-booking .form-label {
	margin-bottom: 4px;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tb-muted);
}

.trajet-booking .form-control,
.trajet-booking .form-select,
.trajet-booking .input-group-text {
	font-family: inherit;
}

.trajet-booking .tb-hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.trajet-booking .tb-error {
	margin-top: 8px;
	padding: 8px 10px;
	background: #f8d7da;
	color: #842029;
	border-radius: 4px;
	font-size: 0.85rem;
}

.trajet-booking .tb-error[hidden],
.trajet-booking .tb-breakdown[hidden] {
	display: none;
}

.trajet-booking-notice {
	max-width: 960px;
	margin: 20px auto;
	padding: 12px 16px;
	border-radius: 6px;
	background: #e7f1ff;
	color: #084298;
	font-family: "JetBrains Mono", monospace;
	font-size: 0.9rem;
}

.trajet-booking-notice--warning {
	background: #fff3cd;
	color: #664d03;
}

.trajet-booking.trajet-receipt {
	background: #f5f7fa;
	padding: 24px 0;
}

.trajet-booking.trajet-receipt .card {
	border: 0;
}

.trajet-booking .leaflet-container {
	font-family: inherit;
}

@media (max-width: 991px) {
	.trajet-booking .tb-left {
		border-right: 0;
		border-bottom: 1px solid #ddd;
	}

	.trajet-booking .tb-map {
		height: 50vh;
		border-radius: 10px;
		margin: 10px;
		width: calc(100% - 20px);
	}
}

/* Blank full-screen template: no theme header, footer or content width. */
body.trajet-fullscreen {
	margin: 0;
	padding: 0;
	overflow-x: hidden;
	background: #fff;
}

body.trajet-fullscreen .trajet-booking {
	min-height: 100vh;
}

body.trajet-fullscreen .trajet-booking--full {
	width: 100%;
	max-width: 100%;
	margin-left: 0;
}

@media (min-width: 992px) {
	.trajet-booking .tb-left {
		height: var(--tb-map-height, 100vh);
		overflow-y: auto;
	}
}

