.sp-flights {
	margin: 0 0 1.2em;
	border: 2px solid #e3e3e3;
	border-radius: 12px;
	padding: 20px;
	background: #fff;
}


.sp-tabs {
	display: flex;
	margin: -20px -20px 20px;
	overflow: hidden;
	border-radius: 10px 10px 0 0;
	background-color: #f2efe7;
}

.sp-tab {
	flex: 1;
	padding: 10px 16px;
	border: none;
	background: #f4f4f4;
	border-bottom: 1px solid #e3e3e3;
	color: #2c1e18;
	cursor: pointer;
	font-weight: 600;
	font-size: 1.1em;
}

.sp-tab + .sp-tab {
	border-left: 2px solid #e3e3e3;
}

/* Single enabled mode: keep the tab, size it to its text. */
.sp-tab:only-child {
	flex: 0 0 auto;
	padding-right: 32px;
}

.sp-tab-active {
	background: #fff;
	color: var(--theme-palette-color-1, #f5a623);
	border-bottom: none;
	box-shadow: inset 0 5px 0 var(--theme-palette-color-1, #f5a623);
}

.sp-shared:not(:empty) {
	margin-bottom: 0.8em;
}

.sp-shared table.variations {
	margin: 0;
}
.sp-qty-label {
	padding-left: 0.5em;
}

/* Date + time on one line (stacks on narrow screens) */
.sp-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.sp-row .sp-field {
	flex: 1 1 160px;
	min-width: 0;
}

.sp-field {
	margin-bottom: 0.8em;
}

.sp-field label {
	display: block;
	margin-bottom: 0.2em;
}

/* .sp-date-input is flatpickr's visible stand-in; the real field goes hidden. */
.sp-field input[type="date"],
.sp-field input.sp-date-input,
.sp-field select {
	width: 100%;
	max-width: 340px;
}

/* Same sticky-header allowance as the check-in form — see checkin.css. */
.sp-flights input.sp-date-input,
.sp-flights select,
.sp-error {
	scroll-margin-top: calc(
		var(--admin-bar, 0px) + var(--theme-frame-size, 0px) +
		var(--scroll-margin-top-offset, 0px) + 20px
	);
}

.sp-error {
	margin: 0.4em 0 0;
	padding: 8px 12px;
	border-radius: 8px;
	background: #fdecea;
	color: #a3231d;
	font-weight: 600;
}

.sp-place-map {
	display: inline-block;
	font-size: 0.9em;
	margin-top: 0.3em;
	margin-left: 0.3em;
}

.sp-place-map::after {
	content: " \203A"; /* › */
}

/* Matches .sp-place-map so the two meeting-place actions read as a pair. */
.sp-map-toggle {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	font-size: 0.9em;
	margin: 0.3em 0 0 0.3em;
	text-decoration: underline;
	cursor: pointer;
}

.sp-map {
	height: 260px;
	margin: 0.4em 0;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	/* Leaflet panes carry their own stacking context; keep the whole map under
	   the theme's sticky header rather than punching through it. */
	z-index: 0;
}

.sp-map[hidden] {
	display: none;
}

.sp-place-nav {
	margin-bottom: 0.8em;
}

.sp-place-nav[hidden] {
	display: none;
}
