/* =====================================================================
 * Cẩm nang: itineraries (Lịch trình) + /cam-nang/ hub – on top of stays.css
 * ================================================================== */

.nbt-guide-page { --nbt-primary: var(--fs-color-primary, #446084); }

.nbt-guide-nav { margin: 15px 0 0; }
.nbt-guide-section { margin-bottom: 30px; scroll-margin-top: 100px; }
.nbt-guide-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.nbt-guide-section__head h2 { margin: 0; font-size: 1.4em; }

.nbt-trip-card__excerpt { font-size: .9em; color: #555; margin: 0 0 10px; }
.nbt-trip-card .nbt-price small { margin-right: 2px; }
.nbt-post-card__date { font-size: .8em; color: var(--nbt-muted, #777); margin: 0; }
.nbt-post-card__more { font-weight: 600; }

/* ---- Single ---------------------------------------------------------- */

.nbt-trip__chip { font-size: .9em; color: var(--nbt-muted); }
.nbt-trip__cover { border-radius: var(--nbt-radius); overflow: hidden; margin-bottom: 25px; max-height: 440px; }
.nbt-trip__cover img { width: 100%; height: 100%; max-height: 440px; object-fit: cover; display: block; }

.nbt-day {
	border: 1px solid var(--nbt-border); border-radius: var(--nbt-radius);
	padding: 16px 18px; margin-bottom: 18px; scroll-margin-top: 100px;
}
.nbt-day__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.nbt-day__no {
	background: var(--nbt-primary); color: #fff; font-weight: bold; font-size: .85em;
	padding: 3px 12px; border-radius: 20px; white-space: nowrap;
}
.nbt-day__title { font-size: 1.15em; margin: 0; }

.nbt-timeline { list-style: none; margin: 0 0 12px; padding-left: 4px; }
.nbt-timeline li { position: relative; margin: 0; padding: 0 0 10px 22px; border-left: 2px solid var(--nbt-border); }
.nbt-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.nbt-timeline li::before {
	content: ""; position: absolute; left: -6px; top: 6px; width: 10px; height: 10px;
	border-radius: 50%; background: #fff; border: 2px solid var(--nbt-primary);
}
.nbt-timeline__time { display: inline-block; min-width: 50px; font-weight: bold; color: var(--nbt-primary); }

.nbt-day__tips { background: #fff8e6; border-left: 3px solid #f5a623; padding: 8px 12px; border-radius: 4px; font-size: .92em; margin: 0 0 12px; }

.nbt-links { margin-top: 12px; }
.nbt-links__label { font-size: .8em; text-transform: uppercase; letter-spacing: .04em; color: var(--nbt-muted); margin: 0 0 6px; }
.nbt-links__list { list-style: none; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.nbt-link {
	display: flex; align-items: center; gap: 10px; margin: 0;
	padding: 8px; border: 1px solid var(--nbt-border); border-radius: 8px; background: #fff;
}
.nbt-link__media { flex-shrink: 0; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; background: var(--nbt-bg-soft); }
.nbt-link__media img { width: 100%; height: 100%; object-fit: cover; }
.nbt-link__placeholder { display: block; width: 100%; height: 100%; }
.nbt-link__body { flex: 1; min-width: 0; line-height: 1.3; }
.nbt-link__title { display: block; font-weight: 600; color: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nbt-link__body small { display: block; color: var(--nbt-muted); }
.nbt-link__price { display: block; font-size: .85em; color: var(--nbt-accent); font-weight: 600; }
.nbt-link__cta { margin: 0 !important; flex-shrink: 0; }

.nbt-cost-table { width: 100%; margin-bottom: 10px; }
.nbt-cost-table th, .nbt-cost-table td { padding: 8px 4px; border-bottom: 1px dashed var(--nbt-border); }
.nbt-cost-table th { font-weight: normal; text-align: left; }
.nbt-cost-table th small { display: block; color: var(--nbt-muted); }
.nbt-cost-table td { text-align: right; white-space: nowrap; }
.nbt-cost-table tfoot th, .nbt-cost-table tfoot td { font-weight: bold; border-bottom: 0; border-top: 2px solid var(--nbt-border); }
.nbt-cost-table tfoot td { color: var(--nbt-accent); font-size: 1.15em; }
.nbt-cost-total strong { color: var(--nbt-accent); font-size: 1.5em; }
.nbt-cost-total small { color: var(--nbt-muted); }

.nbt-trip-toc { display: grid; gap: 2px; margin-bottom: 15px; }
.nbt-trip-toc a { display: block; padding: 6px 8px; border-radius: 6px; color: inherit; font-size: .92em; }
.nbt-trip-toc a:hover { background: var(--nbt-bg-soft); }
.nbt-trip-help { font-size: .9em; color: var(--nbt-muted); margin: 0 0 8px; }

@media (max-width: 549px) {
	.nbt-day { padding: 14px 12px; }
	.nbt-links__list { grid-template-columns: 1fr; }
}

/* =====================================================================
 * Itinerary sidebar (tone xanh núi – đỏ son): facts, day tabs, contact icons.
 * ================================================================== */

.nbt-trip-side {
	background: #fff; border: 1px solid #E7E0D3; border-radius: 20px; padding: 20px;
	box-shadow: 0 18px 40px rgba(30, 74, 61, .10);
}
@media (min-width: 850px) {
	.nbt-trip-side { position: sticky; top: 100px; }
}

.nbt-trip-facts { margin: 0 0 18px; }
.nbt-trip-facts > div {
	display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
	padding: 10px 0; border-bottom: 1px dashed #E2DCD0;
}
.nbt-trip-facts > div:first-child { padding-top: 0; }
.nbt-trip-facts dt { margin: 0; font-weight: 400; color: #55605B; font-size: .9rem; text-transform: none; letter-spacing: 0; }
.nbt-trip-facts dd { margin: 0; font-weight: 700; color: #1B2420; text-align: right; }
.nbt-trip-facts .is-cost { border-bottom: 0; padding-bottom: 0; }
.nbt-trip-facts .is-cost dd a { color: var(--fs-color-secondary, #A8322D); font-size: 1.15rem; }

/* Day tabs: big, easy to tap; current one follows the scroll (assets/js/trips-front.js) */
.nbt-trip-days { display: grid; gap: 8px; margin: 0 0 18px; }
.nbt-trip-days__label { margin: 0 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fs-color-secondary, #A8322D); }
.nbt-trip-days a {
	display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 12px; box-sizing: border-box;
	background: #F7F3EC; border: 1.5px solid #E7E0D3; border-radius: 14px; color: #1B2420;
	transition: background .15s, border-color .15s, color .15s;
}
.nbt-trip-days a:hover { border-color: var(--fs-color-primary, #1E4A3D); }
.nbt-trip-days__no {
	flex: none; padding: 6px 12px; border-radius: 999px; background: var(--fs-color-primary, #1E4A3D); color: #fff;
	font-weight: 700; font-size: .85rem; white-space: nowrap;
}
.nbt-trip-days__title { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.nbt-trip-days a.is-current { background: var(--fs-color-primary, #1E4A3D); border-color: var(--fs-color-primary, #1E4A3D); color: #fff; }
.nbt-trip-days a.is-current .nbt-trip-days__no { background: var(--fs-color-secondary, #A8322D); }

/* Contact icons */
.nbt-trip-contact { padding-top: 16px; border-top: 1px dashed #E2DCD0; }
.nbt-trip-contact__label { margin: 0 0 12px; font-size: .9rem; font-weight: 600; color: #46524D; text-align: center; }
.nbt-trip-contact__icons { display: flex; justify-content: center; gap: 18px; }
.nbt-icon-btn { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; color: #46524D; font-size: .75rem; font-weight: 600; }
.nbt-icon-btn svg {
	width: 56px; height: 56px; padding: 15px; box-sizing: border-box; border-radius: 50%;
	color: #fff; transition: transform .15s ease, box-shadow .15s ease;
}
.nbt-icon-btn--phone svg { background: var(--fs-color-primary, #1E4A3D); }
.nbt-icon-btn--zalo svg { background: #0068FF; padding: 13px; }
.nbt-icon-btn--zalo svg text { fill: #0068FF; }
.nbt-icon-btn--zalo svg path { fill: #fff; }
.nbt-icon-btn--facebook svg { background: #1877F2; }
.nbt-icon-btn:hover { color: #1B2420; }
.nbt-icon-btn:hover svg { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); }
.nbt-icon-btn:focus-visible svg { outline: 3px solid var(--fs-color-secondary, #A8322D); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
	.nbt-trip-days a, .nbt-icon-btn svg { transition: none; }
	.nbt-icon-btn:hover svg { transform: none; }
}
.nbt-trip-facts dd, .nbt-trip-facts dd a, .nbt-trip-facts dt { text-transform: none; letter-spacing: 0; }
.nbt-icon-btn--zalo svg { padding: 9px; }

/* ---- Day links: cards + action buttons in the brand tone -------------- */

.nbt-link { border-color: #E7E0D3; border-radius: 14px; padding: 10px; transition: box-shadow .15s ease, border-color .15s ease; }
.nbt-link:hover { border-color: #CFDCD4; box-shadow: 0 8px 20px rgba(30, 74, 61, .10); }
.nbt-link__media { border-radius: 10px; }
.nbt-link__title { color: #1B2420; }
.nbt-link__title:hover { color: var(--fs-color-secondary, #A8322D); }
.nbt-link__price { color: var(--fs-color-secondary, #A8322D); }
.nbt-links__label { color: var(--fs-color-primary, #1E4A3D); font-weight: 700; font-family: inherit; }

.nbt-link__cta {
	flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	min-width: 92px; min-height: 40px; padding: 0 14px; box-sizing: border-box; border-radius: 10px;
	border: 1.5px solid var(--fs-color-primary, #1E4A3D); background: #fff; color: var(--fs-color-primary, #1E4A3D);
	font-size: .85rem; font-weight: 700; line-height: 1; white-space: nowrap; text-transform: none; letter-spacing: 0;
	transition: background .15s, color .15s, border-color .15s;
}
.nbt-link__cta:hover { background: var(--fs-color-primary, #1E4A3D); color: #fff; }
.nbt-link__cta.is-book { background: var(--fs-color-secondary, #A8322D); border-color: var(--fs-color-secondary, #A8322D); color: #fff; }
.nbt-link__cta.is-book:hover { background: #872620; border-color: #872620; }
.nbt-link__cta:focus-visible { outline: 3px solid var(--fs-color-secondary, #A8322D); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .nbt-link, .nbt-link__cta { transition: none; } }

/* Long names wrap to 2 lines, then "…" (cards never grow wider than their column). */
.nbt-link { min-width: 0; box-sizing: border-box; }
.nbt-link__title {
	white-space: normal; overflow-wrap: anywhere;
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
