/*!
 * AAAtrails — OTA booking selector (date + travellers + live total).
 * Loads after style.css + detail-polish.css on single Tour / Activity views.
 * Uses the brand tokens; on-brand gold CTA, warm sandstone elevation.
 *
 * @since 1.16.0
 */

.bkg {
	margin: 4px 0 2px;
	display: grid;
	gap: 14px;
}

.bkg__row {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: end;
}

.bkg__field { display: grid; gap: 6px; min-width: 0; }
.bkg__label {
	font-size: .72rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-soft);
	font-weight: 600;
}

.bkg input[type="date"] {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--paper);
	color: var(--ink);
	font: inherit;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7);
}
.bkg input[type="date"]:focus-visible {
	outline: 2px solid var(--gold-deep);
	outline-offset: 1px;
	border-color: var(--gold-deep);
}

/* Travellers stepper — light catching the top edge, like the chips. */
.bkg__stepper {
	display: inline-grid;
	grid-template-columns: 40px 52px 40px;
	align-items: stretch;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	overflow: hidden;
	background: var(--card);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), var(--aaa-elev-1, 0 8px 22px -18px rgba(24,11,2,.4));
}
.bkg__step {
	border: 0;
	background: var(--paper);
	color: var(--forest);
	font-size: 1.2rem;
	line-height: 1;
	cursor: pointer;
	transition: background .15s ease;
}
.bkg__step:hover { background: var(--paper-2); }
.bkg__step:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: -2px; }
.bkg__qty {
	border: 0;
	border-inline: 1px solid var(--line);
	text-align: center;
	font: 600 1rem/1 var(--font-body);
	color: var(--ink);
	background: var(--card);
	width: 100%;
	-moz-appearance: textfield;
	appearance: textfield;
}
.bkg__qty::-webkit-outer-spin-button,
.bkg__qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Live total — the number that answers "what will this cost?". */
.bkg__total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 0 4px;
	border-top: 1px solid var(--line);
}
.bkg__total span {
	font-size: .78rem;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--ink-soft);
	font-weight: 600;
}
.bkg__total strong {
	font-family: var(--font-display);
	font-size: 1.9rem;
	line-height: 1;
	color: var(--forest);
	letter-spacing: -0.015em;
}
.bkg__perhead {
	margin: 0 0 4px;
	font-size: .82rem;
	color: var(--ink-soft);
	text-align: right;
}

.bkg__submit { margin-top: 2px; }

@media (max-width: 760px) {
	.bkg__row { grid-template-columns: 1fr; }
	.bkg__stepper { grid-template-columns: 48px 1fr 48px; }
}

@media (prefers-reduced-motion: reduce) {
	.bkg__step { transition: none; }
}
