/* =====================================================================
 * Nhà xe: extras on top of stays.css (listing + single layout)
 * ================================================================== */

.nbt-bus-card__routes { list-style: none; margin: 0 0 10px; font-size: .88em; }
.nbt-bus-card__routes li { margin: 0 0 4px; }
.nbt-bus-card__routes span { display: block; color: var(--nbt-muted); }

.nbt-bus__vehicle { color: var(--nbt-muted); font-size: .9em; }

/* Timetable per route */
.nbt-bus-route { border: 1px solid var(--nbt-border); border-radius: var(--nbt-radius); padding: 15px; margin-bottom: 15px; }
.nbt-bus-route__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 15px; margin-bottom: 8px; }
.nbt-bus-route__head h3 { font-size: 1.1em; margin: 0; }
.nbt-bus-route__head p { margin: 0; color: var(--nbt-muted); font-size: .9em; display: flex; gap: 15px; }
.nbt-bus-route__price { color: var(--nbt-accent); }
.nbt-bus-route__label { font-size: .8em; text-transform: uppercase; letter-spacing: .03em; color: var(--nbt-muted); margin: 10px 0 6px; }

.nbt-bus-times { list-style: none; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.nbt-bus-times li { margin: 0; padding: 3px 10px; border-radius: 6px; background: var(--nbt-bg-soft); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Fare grid: rows = pickup, columns = drop-off. Scrolls sideways on small screens. */
.nbt-bus-fares { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.nbt-bus-fares table { width: 100%; margin: 0; border-collapse: collapse; font-size: .9em; }
.nbt-bus-fares th, .nbt-bus-fares td { padding: 7px 10px; border: 1px solid var(--nbt-border); }
.nbt-bus-fares thead th { background: var(--nbt-bg-soft); font-weight: 600; text-align: center; min-width: 110px; }
.nbt-bus-fares thead th:first-child { text-align: left; min-width: 0; }
.nbt-bus-fares thead small { color: var(--nbt-muted); font-weight: normal; white-space: nowrap; }
.nbt-bus-fares tbody th { text-align: left; font-weight: 600; background: #fff; position: sticky; left: 0; min-width: 140px; }
.nbt-bus-fares td { text-align: center; white-space: nowrap; color: var(--nbt-accent); font-weight: bold; }
.nbt-bus-fares td.is-empty { color: #bbb; font-weight: normal; }

.nbt-bus-notes { margin: 8px 0 0 1.1em; font-size: .85em; color: var(--nbt-muted); }
.nbt-bus-notes li { margin: 0 0 2px; }

/* Booking form */
.nbt-bus-form__route { margin-bottom: 10px; }
.nbt-bus-form__seats { font-size: .85em; color: var(--nbt-muted); margin: -6px 0 10px; }
.nbt-bus-form__seats:empty { display: none; }
.nbt-bus-form__seats.is-warning { color: #b91c1c; }
.nbt-bus-form__total {
	display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
	padding: 10px 12px; margin-bottom: 5px; border-radius: 6px; background: var(--nbt-bg-soft);
}
.nbt-bus-form__total[hidden] { display: none; }
.nbt-bus-form__total strong { color: var(--nbt-accent); text-align: right; }
.nbt-bus-form button[disabled] { opacity: .5; cursor: not-allowed; }

/* =====================================================================
 * Brand tone: route cards, departure times, fare grid, booking button.
 * ================================================================== */

.nbt-bus-route {
	background: #fff; border: 1px solid #E7E0D3; border-radius: 18px; padding: 0; margin-bottom: 18px; overflow: hidden;
	box-shadow: 0 10px 26px rgba(30, 74, 61, .06);
}
.nbt-bus-route > *:not(.nbt-bus-route__head):not(.nbt-bus-fares) { margin-left: 18px; margin-right: 18px; }
.nbt-bus-route__head {
	margin: 0; padding: 14px 18px; background: var(--nbt-green-soft, #E6EEE9); border-bottom: 1px solid #DCE6E0;
	align-items: center;
}
.nbt-bus-route__head h3 { font-size: 1.2rem; color: var(--nbt-green, #1E4A3D); }
.nbt-bus-route__head p { color: #46524D; align-items: center; }
.nbt-bus-route__price { font-size: 1.15rem; color: var(--nbt-red, #A8322D); }

.nbt-bus-route__label {
	margin-top: 16px; margin-bottom: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .06em;
	color: var(--nbt-red, #A8322D); text-transform: uppercase;
}

.nbt-bus-times { gap: 8px; }
.nbt-bus-times li {
	padding: 6px 14px; border-radius: 10px; background: #fff; border: 1.5px solid #CFDCD4;
	color: var(--nbt-green, #1E4A3D); font-size: .98rem;
}

/* Fare grid inside a rounded box; the pickup column keeps its padding (Flatsome zeroes first/last cells). */
.nbt-bus-fares { margin: 0 18px 4px; border: 1px solid #E7E0D3; border-radius: 14px; }
.nbt-bus-fares table { font-size: .92rem; }
.nbt-bus-fares th,
.nbt-bus-fares td,
.nbt-bus-fares th:first-child,
.nbt-bus-fares td:first-child,
.nbt-bus-fares th:last-child,
.nbt-bus-fares td:last-child { padding: 10px 14px; border: 0; border-bottom: 1px solid #EDE7DC; }
.nbt-bus-fares tbody tr:last-child th,
.nbt-bus-fares tbody tr:last-child td { border-bottom: 0; }
.nbt-bus-fares thead th {
	background: var(--nbt-paper, #F7F3EC); color: var(--nbt-green, #1E4A3D); font-size: .85rem;
	text-transform: none; letter-spacing: 0;
}
.nbt-bus-fares thead small { color: #6A746F; font-size: .78rem; }
.nbt-bus-fares tbody th {
	color: #1B2420; text-transform: none; letter-spacing: 0; font-size: .92rem; background: #fff;
	box-shadow: inset -1px 0 0 #EDE7DC;
}
.nbt-bus-fares td { color: var(--nbt-red, #A8322D); font-size: .98rem; }
.nbt-bus-fares tbody tr:hover th,
.nbt-bus-fares tbody tr:hover td { background: #FBF9F5; }
.nbt-bus-notes { margin: 10px 18px 16px 36px; }
.nbt-bus-route > :last-child { margin-bottom: 18px; }

/* Booking form total */
.nbt-bus-form__total { border-radius: 12px; background: var(--nbt-paper, #F7F3EC); padding: 12px 14px; }
.nbt-bus-form__total strong { font-size: 1.15rem; color: var(--nbt-red, #A8322D); }
.nbt-request__submit[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.nbt-bus-route .nbt-bus-notes { list-style: none; padding: 0; margin-top: 10px; }
.nbt-bus-route .nbt-bus-notes li::before { content: "• "; color: var(--nbt-red, #A8322D); font-weight: 700; }

/* ---- Listing card: routes stand out, trips / hours as compact chips ---- */

.nbt-bus-card__routes { display: grid; gap: 8px; margin: 4px 0 12px; font-size: .9rem; }
.nbt-bus-card__routes li { margin: 0; padding: 8px 10px; border-radius: 12px; background: var(--nbt-paper, #F7F3EC); }
.nbt-bus-card__route {
	display: flex; align-items: center; gap: 6px; color: var(--nbt-green, #1E4A3D); font-weight: 700; font-size: .95rem;
}
.nbt-bus-card__route::before {
	content: ""; flex: none; width: 16px; height: 16px; background-color: var(--nbt-red, #A8322D);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='15' rx='3'/%3E%3Cpath d='M4 11h16M8 18v2M16 18v2'/%3E%3C/svg%3E") no-repeat center / contain;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='3' width='16' height='15' rx='3'/%3E%3Cpath d='M4 11h16M8 18v2M16 18v2'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nbt-bus-card__routes .nbt-bus-card__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; color: inherit; }
.nbt-bus-card__chip {
	display: inline-block; padding: 2px 9px; border-radius: 999px; background: #fff; border: 1px solid #DCE6E0;
	color: #2F5F4E; font-size: .76rem; font-weight: 600; line-height: 1.6;
}
.nbt-bus-card__chip.is-time { font-variant-numeric: tabular-nums; }
.nbt-bus-card__routes .nbt-bus-card__chip { display: inline-block; color: #2F5F4E; }
