/*! BT Trip Cost Calculator 1.0.0: mobile-first, container-query layout (fits full width or beside a sidebar). */

/* ------------------------------------------------------------ tokens */
.bttc {
	--navy: #0B2A3C; --teal: #157377; --foam: #CFEDEA; --sand: #F3E6D3; --coral: #F2795B;
	--ink: #1F2A30; --muted: #5A6872; --line: #E6E1D8; --line-strong: #CFC8BC; --card: #FFFFFF; --soft: #FAF7F2;
	--accent: var(--bttc-accent, var(--coral));
	--radius: 18px; --radius-sm: 12px;
	--gap: 20px;
	container-type: inline-size;
	position: relative;
	margin: 32px 0;
	color: var(--ink);
	font-size: 16px;
	line-height: 1.5;
	-webkit-text-size-adjust: 100%;
}
.bttc .bttc--sunset { --navy: #3A1C32; --teal: #B4492F; --foam: #FBE3D6; --sand: #FFF1E8; --coral: #F2795B; --soft: #FFF9F5; }
.bttc .bttc--coastal { --navy: #1D3557; --teal: #2A9D8F; --foam: #E3F2F1; --sand: #EEF3F7; --coral: #F4A261; --soft: #F7FAFC; }

.bttc *, .bttc *::before, .bttc *::after { box-sizing: border-box; }
.bttc [hidden] { display: none !important; }
.bttc :where(p, ul, li, h3, h4) { margin: 0; padding: 0; }
.bttc ul, .bttc li { list-style: none; }
.bttc li::before, .bttc li::marker { content: none; }
.bttc :where(.bttc-h, .bttc-sum__h, .bttc-sum__total, .bttc-sum__eyebrow) { font-family: inherit; text-transform: none; letter-spacing: normal; }
.bttc button, .bttc input, .bttc select { font: inherit; color: inherit; letter-spacing: normal; text-transform: none; margin: 0; }
.bttc button { cursor: pointer; }
.bttc :focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ------------------------------------------------------------ header + toolbar */
.bttc .bttc__head { margin: 0 0 20px; }
.bttc .bttc__title { margin: 0 0 8px; color: var(--navy); font-size: clamp(26px, 4.5vw, 36px); line-height: 1.15; }
.bttc .bttc__intro { margin: 0; max-width: 62ch; color: var(--muted); font-size: 17px; }
.bttc .bttc__noscript { padding: 16px; background: var(--soft); border-radius: var(--radius-sm); }
.bttc .bttc__loading { display: flex; gap: 8px; justify-content: center; padding: 64px 0; }
.bttc .bttc__loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); opacity: .3; animation: bttc-dot 1s infinite alternate; }
.bttc .bttc__loading span:nth-child(2) { animation-delay: .2s; }
.bttc .bttc__loading span:nth-child(3) { animation-delay: .4s; }
@keyframes bttc-dot { to { opacity: 1; } }

.bttc .bttc-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 0 0 20px; }
.bttc .bttc-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--foam); color: var(--navy); font-size: 13.5px; font-weight: 500; }
.bttc .bttc-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.bttc .bttc-curpick { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--navy); }

/* ------------------------------------------------------------ layout */
.bttc .bttc-layout { display: grid; gap: 24px; }
.bttc .bttc-main { min-width: 0; display: grid; gap: 28px; }
@container (min-width: 860px) {
	.bttc .bttc-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
	.bttc .bttc-sum { position: sticky; top: var(--bttc-top, 90px); }
}
@container (min-width: 1100px) {
	.bttc .bttc-layout { grid-template-columns: minmax(0, 1fr) 370px; gap: 40px; }
}

/* ------------------------------------------------------------ cards + headings */
.bttc .bttc-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; box-shadow: 0 1px 2px rgba(11, 42, 60, .04), 0 8px 24px rgba(11, 42, 60, .05); }
@container (min-width: 560px) { .bttc-card { padding: 28px; } }
.bttc .bttc-h { display: flex; align-items: center; gap: 12px; margin: 0 0 22px; color: var(--navy); font-size: 20px; line-height: 1.25; font-weight: 600; }
.bttc .bttc-h__num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 15px; font-weight: 700; }
.bttc .bttc-sub { margin: -10px 0 18px; color: var(--muted); font-size: 15px; }

/* ------------------------------------------------------------ fields */
.bttc .bttc-field { margin: 0 0 22px; min-width: 0; }
.bttc .bttc-field:last-child { margin-bottom: 0; }
.bttc .bttc-field__label { display: block; margin: 0 0 8px; color: var(--navy); font-size: 14px; font-weight: 600; line-height: 1.3; }
.bttc .bttc-grid { display: grid; gap: 18px 20px; margin: 0 0 22px; }
.bttc .bttc-grid:last-child { margin-bottom: 0; }
.bttc .bttc-grid > .bttc-field { margin: 0; }
@container (min-width: 520px) { .bttc-grid { grid-template-columns: 1fr 1fr; } }
.bttc .bttc-note { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

.bttc .bttc-input,
.bttc .bttc-select {
	display: block; width: 100%; max-width: 100%; height: 52px; margin: 0; padding: 0 14px;
	border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background-color: #fff; box-shadow: none;
	color: var(--ink); font-size: 16px; line-height: 1.2;
	-webkit-appearance: none; appearance: none;
	transition: border-color .15s, box-shadow .15s;
}
.bttc .bttc-select {
	padding-right: 42px; text-overflow: ellipsis; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A6872' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.bttc .bttc-input:hover, .bttc .bttc-select:hover { border-color: var(--teal); }
.bttc .bttc-input:focus, .bttc .bttc-select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 18%, transparent); }
.bttc .bttc-select--sm { width: auto; max-width: 240px; height: 44px; font-size: 15px; }
.bttc .bttc-select--xs { width: 84px; height: 42px; font-size: 15px; padding-left: 12px; }

/* segmented buttons (trip style, comfort) */
.bttc .bttc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; padding: 5px; border-radius: 14px; background: var(--sand); }
.bttc .bttc-seg__btn {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; min-height: 48px;
	padding: 8px 6px; border: 0; border-radius: 10px; background: transparent; box-shadow: none; color: var(--navy);
	font-size: 15px; font-weight: 600; line-height: 1.2; text-align: center; transition: background .15s, color .15s, box-shadow .15s;
}
.bttc .bttc-seg__btn:hover { background: rgba(255, 255, 255, .7); }
.bttc .bttc-seg__btn[aria-checked="true"] { background: var(--navy); color: #fff; box-shadow: 0 2px 8px rgba(11, 42, 60, .2); }
.bttc .bttc-seg__sub { font-size: 12px; font-weight: 400; opacity: .8; }

/* steppers (who's going, rooms) */
.bttc .bttc-steps { display: grid; gap: 10px; }
@container (min-width: 600px) { .bttc-steps { grid-template-columns: repeat(3, 1fr); } }
.bttc .bttc-step { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 8px 10px 8px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.bttc .bttc-step__label { display: flex; flex-direction: column; line-height: 1.25; font-weight: 600; color: var(--navy); }
.bttc .bttc-step__label small { font-size: 12.5px; font-weight: 400; color: var(--muted); }
.bttc .bttc-step__ctl { display: flex; align-items: center; gap: 4px; }
.bttc .bttc-step__btn { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: 50%; background: #fff; box-shadow: none; color: var(--navy); font-size: 22px; font-weight: 500; line-height: 1; }
.bttc .bttc-step__btn:hover:not(:disabled) { border-color: var(--teal); background: var(--foam); }
.bttc .bttc-step__btn:disabled { opacity: .35; cursor: default; }
.bttc .bttc-step__val { min-width: 30px; text-align: center; font-size: 18px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.bttc .bttc-field--rooms .bttc-step { max-width: 100%; }

/* airport search */
.bttc .bttc-combo { position: relative; }
.bttc .bttc-combo__ico { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); fill: var(--teal); pointer-events: none; }
.bttc .bttc-combo__input { padding-left: 44px; }
.bttc .bttc-combo__list { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; max-height: min(340px, 60vh); overflow-y: auto; overscroll-behavior: contain; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(11, 42, 60, .18); }
.bttc .bttc-combo__opt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.bttc .bttc-combo__opt:hover, .bttc .bttc-combo__opt.is-active { background: var(--foam); }
.bttc .bttc-combo__code { flex: none; width: 46px; color: var(--navy); font-weight: 700; font-size: 15px; letter-spacing: .02em; }
.bttc .bttc-combo__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bttc .bttc-combo__name { font-size: 15px; color: var(--ink); }
.bttc .bttc-combo__city { font-size: 13px; color: var(--muted); }
.bttc .bttc-combo__hint, .bttc .bttc-combo__empty { padding: 8px 12px 6px; color: var(--muted); font-size: 12.5px; }
.bttc .bttc-combo__hint { text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* ------------------------------------------------------------ cost groups */
.bttc .bttc-extras__head { padding: 0 2px; }
.bttc .bttc-extras .bttc-h { margin-bottom: 16px; }
.bttc .bttc-groups { display: grid; gap: 12px; }
.bttc .bttc-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 1px 2px rgba(11, 42, 60, .04); overflow: hidden; }
.bttc .bttc-group[open] { box-shadow: 0 1px 2px rgba(11, 42, 60, .04), 0 8px 24px rgba(11, 42, 60, .05); }
.bttc .bttc-group__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; -webkit-user-select: none; user-select: none; }
.bttc .bttc-group__head::-webkit-details-marker { display: none; }
.bttc .bttc-group__head::marker { content: ""; }
@container (min-width: 560px) { .bttc-group__head { padding: 16px 22px; gap: 14px; } }
.bttc .bttc-group__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--foam); }
.bttc .bttc-group__icon .bttc-ico { width: 22px; height: 22px; fill: var(--teal); }
.bttc .bttc-group__titles { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.bttc .bttc-group__title { color: var(--navy); font-size: 16.5px; font-weight: 600; }
.bttc .bttc-group__count { color: var(--muted); font-size: 13px; }
.bttc .bttc-group__amt { color: var(--navy); font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bttc .bttc-chev { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.bttc .bttc-group[open] .bttc-chev { transform: rotate(180deg); }
.bttc .bttc-group__body { padding: 0 16px 6px; border-top: 1px solid var(--line); }
@container (min-width: 560px) { .bttc-group__body { padding: 0 22px 8px; } }
.bttc .bttc-group__note { margin: 14px 0 2px; padding: 10px 14px; border-radius: 10px; background: var(--soft); color: var(--muted); font-size: 14px; }
.bttc .bttc-group__link { display: inline-flex; align-items: center; gap: 6px; margin: 6px 0 12px; color: var(--teal); font-size: 14.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.bttc .bttc-group__link:hover { color: var(--navy); }

/* one cost line */
.bttc .bttc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bttc .bttc-row.is-last { border-bottom: 0; }
.bttc .bttc-row__main { position: relative; display: flex; align-items: flex-start; gap: 14px; min-width: 0; margin: 0; cursor: pointer; font-weight: 400; }
.bttc .bttc-row__cb { position: absolute; top: 0; left: 0; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.bttc .bttc-row__box { position: relative; flex: none; width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--line-strong); border-radius: 7px; background: #fff; transition: background .15s, border-color .15s; }
.bttc .bttc-row__box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .15s; }
.bttc .bttc-row__cb:checked + .bttc-row__box { background: var(--teal); border-color: var(--teal); }
.bttc .bttc-row__cb:checked + .bttc-row__box::after { transform: rotate(45deg) scale(1); }
.bttc .bttc-row__cb:focus-visible + .bttc-row__box { outline: 3px solid var(--teal); outline-offset: 2px; }
.bttc .bttc-row__main:hover .bttc-row__box { border-color: var(--teal); }
.bttc .bttc-row__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bttc .bttc-row__label { color: var(--ink); font-size: 15.5px; font-weight: 500; line-height: 1.35; }
.bttc .bttc-row__help { color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.bttc .bttc-row__amt { padding-top: 1px; color: var(--navy); font-size: 15.5px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.bttc .bttc-row.is-off .bttc-row__label { color: var(--muted); }
.bttc .bttc-row.is-off .bttc-row__amt { color: var(--muted); font-weight: 500; }
.bttc .bttc-row__qty { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; padding-left: 38px; color: var(--muted); font-size: 14px; }

/* ------------------------------------------------------------ summary */
.bttc .bttc-sum { min-width: 0; }
.bttc .bttc-sum__card { padding: 24px 20px; border-radius: 22px; background: var(--navy); color: #fff; box-shadow: 0 18px 40px rgba(11, 42, 60, .22); }
@container (min-width: 560px) { .bttc-sum__card { padding: 28px; } }
.bttc .bttc-sum__eyebrow { color: var(--foam); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.bttc .bttc-sum__total { margin: 6px 0 6px !important; color: #fff; font-size: 42px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bttc .bttc-sum__total.is-bump { animation: bttc-bump .35s ease; }
@keyframes bttc-bump { 40% { transform: scale(1.04); color: var(--accent); } }
.bttc .bttc-sum__sub { color: rgba(255, 255, 255, .85); font-size: 15px; }
.bttc .bttc-sum__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 !important; }
.bttc .bttc-sum__chips li { padding: 5px 11px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: 13px; line-height: 1.35; }
.bttc .bttc-sum__chips li.is-P { background: var(--accent); color: var(--navy); font-weight: 600; }
.bttc .bttc-sum__chips li.is-L { background: #7ED3B2; color: var(--navy); font-weight: 600; }
.bttc .bttc-sum__save { padding: 12px 14px; border-left: 3px solid var(--accent); border-radius: 10px; background: rgba(255, 255, 255, .08); font-size: 14.5px; line-height: 1.5; }
.bttc .bttc-sum__save strong { color: #fff; }
.bttc .bttc-sum__h { font-family: inherit; margin: 24px 0 12px !important; color: var(--foam); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.bttc .bttc-sum__bars li { margin: 0 0 12px; }
.bttc .bttc-bar-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 5px; font-size: 14px; }
.bttc .bttc-bar-row strong { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bttc .bttc-meter { display: block; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.bttc .bttc-meter span { display: block; height: 100%; border-radius: 6px; background: var(--accent); transition: width .3s ease; }

.bttc .bttc-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; line-height: 1.2; text-decoration: none; text-align: center; box-shadow: none; transition: background .15s, color .15s, border-color .15s; }
.bttc .bttc-btn--cta { display: flex; width: 100%; min-height: 52px; margin: 24px 0 14px; border: 0; background: var(--accent); color: var(--navy); font-size: 16px; }
.bttc .bttc-btn--cta:hover { filter: brightness(1.05); color: var(--navy); }
.bttc .bttc-sum__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.bttc .bttc-btn--cta + .bttc-sum__actions { margin-top: 0; }
.bttc .bttc-btn--ghost { flex: 1 1 auto; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; }
.bttc .bttc-btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.bttc .bttc-btn--text { border: 0; background: transparent; color: rgba(255, 255, 255, .8); text-decoration: underline; text-underline-offset: 3px; }
.bttc .bttc-btn--text:hover { color: #fff; }
.bttc .bttc-sum__fine { margin-top: 18px !important; color: rgba(255, 255, 255, .7); font-size: 12.5px; line-height: 1.5; }

/* ------------------------------------------------------------ phone sticky total */
.bttc .bttc-bar { display: none; }
@media (max-width: 899px) {
	.bttc .bttc-bar {
		position: fixed; z-index: 9990; left: 12px; right: 12px;
		bottom: calc(12px + var(--bttc-bottom, 0px) + env(safe-area-inset-bottom, 0px));
		display: flex; align-items: center; justify-content: space-between; gap: 12px;
		padding: 10px 10px 10px 18px; border-radius: 16px; background: var(--navy); color: #fff;
		box-shadow: 0 10px 30px rgba(11, 42, 60, .35);
		transform: translateY(calc(100% + 40px)); opacity: 0; pointer-events: none;
		transition: transform .25s ease, opacity .25s ease;
	}
	.bttc .bttc-bar.is-on { transform: none; opacity: 1; pointer-events: auto; }
}
.bttc .bttc-bar__txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bttc .bttc-bar__txt small { color: var(--foam); font-size: 12px; }
.bttc .bttc-bar__amt { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bttc .bttc-bar__btn { flex: none; min-height: 44px; padding: 10px 16px; border: 0; border-radius: 10px; background: var(--accent); color: var(--navy); font-size: 14.5px; font-weight: 600; }

/* ------------------------------------------------------------ small phones */
@container (max-width: 380px) {
	.bttc .bttc-card { padding: 18px 14px; }
	.bttc .bttc-group__head { gap: 10px; padding: 14px 12px; }
	.bttc .bttc-group__icon { width: 34px; height: 34px; border-radius: 10px; }
	.bttc .bttc-group__body { padding: 0 12px 4px; }
	.bttc .bttc-seg__btn { font-size: 14px; padding: 8px 4px; }
	.bttc .bttc-sum__total { font-size: 36px; }
	.bttc .bttc-row__qty { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
	.bttc *, .bttc *::before, .bttc *::after { animation: none !important; transition: none !important; }
}
@media print {
	.bttc .bttc-bar, .bttc .bttc-sum__actions, .bttc .bttc-btn--cta { display: none !important; }
}

/* live fare badge */
.bttc .bttc-live { display: inline-flex; align-items: center; gap: 6px; width: max-content; margin-bottom: 2px; padding: 2px 9px; border-radius: 999px; background: #E3F6EC; color: #11643F; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bttc .bttc-live__dot { width: 7px; height: 7px; border-radius: 50%; background: #1FA463; box-shadow: 0 0 0 0 rgba(31, 164, 99, .5); animation: bttc-pulse 1.8s infinite; }
@keyframes bttc-pulse { 70% { box-shadow: 0 0 0 7px rgba(31, 164, 99, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 164, 99, 0); } }
.bttc .bttc-row__link { grid-column: 1 / -1; padding-left: 38px; color: var(--teal); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
