/* =====================================================================
 * Kinh nghiệm du lịch: article (one column) + category / tag listing.
 * Brand tokens come from home.css (:root --nbt-green, --nbt-red, --nbt-paper…).
 * ================================================================== */

.nbt-tips {
	--nbt-primary: var(--nbt-green, #1E4A3D);
	--nbt-accent: var(--nbt-red, #A8322D);
	--nbt-border: var(--nbt-line, #E7E0D3);
	--nbt-muted: var(--nbt-ink-muted, #55605B);
	--nbt-bg-soft: var(--nbt-paper, #F7F3EC);
	--nbt-radius: 16px;
	color: var(--nbt-ink, #1B2420);
	padding-bottom: 48px;
}

.nbt-tip__eyebrow {
	display: inline-block; margin: 0 0 8px;
	color: var(--nbt-red, #A8322D); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
}
a.nbt-tip__eyebrow:hover { color: var(--nbt-green, #1E4A3D); }

/* ---- Listing ---------------------------------------------------------- */

.nbt-tips-hero { background: var(--nbt-paper-deep, #EFEADF); padding: 6px 0 28px; margin-bottom: 28px; }
.nbt-tips-hero__title { margin: 0 0 .3em; color: var(--nbt-green, #1E4A3D); font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.15; }
.nbt-tips-hero__intro { max-width: 720px; margin: 0; color: var(--nbt-muted); }

.nbt-tips-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.nbt-tips-chips a {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; box-sizing: border-box;
	border: 1.5px solid #D9D2C4; border-radius: 999px; background: #fff;
	color: var(--nbt-ink, #1B2420); font-weight: 600; font-size: .9rem;
	transition: border-color .15s, background .15s, color .15s;
}
.nbt-tips-chips a:hover { border-color: var(--nbt-green, #1E4A3D); color: var(--nbt-green, #1E4A3D); }
.nbt-tips-chips a.is-active { background: var(--nbt-green, #1E4A3D); border-color: var(--nbt-green, #1E4A3D); color: #fff; }
.nbt-tips-chips a:focus-visible { outline: 3px solid var(--nbt-red, #A8322D); outline-offset: 2px; }

/* Article cards (listing, "Bài viết khác") */
.nbt-tips .nbt-post-card { border-color: var(--nbt-line, #E7E0D3); border-radius: 16px; }
.nbt-tips .nbt-post-card .nbt-stay-card__body { padding: 16px 18px 18px; }
.nbt-tips .nbt-post-card__date { color: var(--nbt-red, #A8322D); font-weight: 600; font-size: .78rem; letter-spacing: .04em; margin-bottom: 4px; }
.nbt-tips .nbt-post-card .nbt-stay-card__title { font-size: 1.12rem; line-height: 1.35; }
.nbt-tips .nbt-post-card .nbt-stay-card__title a:hover { color: var(--nbt-red, #A8322D); }
.nbt-tips .nbt-post-card .nbt-trip-card__excerpt { color: var(--nbt-muted); }
.nbt-tips .nbt-post-card .nbt-stay-card__footer { border-top-color: var(--nbt-line, #E7E0D3); }
.nbt-tips .nbt-post-card__more { color: var(--nbt-green, #1E4A3D); }
.nbt-tips .nbt-post-card__more:hover { color: var(--nbt-red, #A8322D); }

/* ---- Article ---------------------------------------------------------- */

.nbt-tip__narrow { max-width: 760px; margin-left: auto; margin-right: auto; padding-left: 15px; padding-right: 15px; box-sizing: content-box; }

.nbt-tip__header { padding-top: 6px; padding-bottom: 22px; }
.nbt-tip__title { margin: 0 0 12px; color: var(--nbt-green, #1E4A3D); font-size: clamp(1.75rem, 3.6vw, 2.6rem); line-height: 1.2; }
.nbt-tip__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; color: var(--nbt-muted); font-size: .92rem; }

.nbt-tip__cover { margin: 0 auto 30px; }
.nbt-tip__cover img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: 20px; }

.nbt-tip__lead { margin: 0 0 24px; font-size: 1.15rem; line-height: 1.65; color: var(--nbt-ink, #1B2420); font-weight: 500; }

/* Body typography */
.nbt-tip__content { font-size: 1.06rem; line-height: 1.8; }
.nbt-tip__content > * { margin-bottom: 1.1em; }
.nbt-tip__content h2,
.nbt-tip__content h3,
.nbt-tip__content h4 { color: var(--nbt-green, #1E4A3D); line-height: 1.3; margin: 1.6em 0 .6em; scroll-margin-top: 100px; }
.nbt-tip__content h2 { font-size: 1.6rem; padding-bottom: 8px; border-bottom: 2px solid var(--nbt-line, #E7E0D3); }
.nbt-tip__content h3 { font-size: 1.3rem; }
.nbt-tip__content h4 { font-size: 1.12rem; }
.nbt-tip__content a { color: var(--nbt-red, #A8322D); text-decoration: underline; text-underline-offset: 2px; }
.nbt-tip__content a:hover { color: var(--nbt-green, #1E4A3D); }
.nbt-tip__content img { border-radius: 14px; height: auto; }
.nbt-tip__content figure { margin: 1.6em 0; }
.nbt-tip__content figcaption,
.nbt-tip__content .wp-caption-text { margin-top: 8px; text-align: center; color: var(--nbt-muted); font-size: .88rem; }
.nbt-tip__content ul,
.nbt-tip__content ol { padding-left: 1.3em; margin-left: 0; }
.nbt-tip__content li { margin-bottom: .4em; }
.nbt-tip__content ul li::marker { color: var(--nbt-red, #A8322D); }
.nbt-tip__content blockquote {
	margin: 1.6em 0; padding: 16px 20px; border: 0; border-left: 4px solid var(--nbt-red, #A8322D);
	background: var(--nbt-paper, #F7F3EC); border-radius: 0 12px 12px 0; font-style: normal;
}
.nbt-tip__content blockquote p:last-child { margin-bottom: 0; }
.nbt-tip__content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.nbt-tip__content th,
.nbt-tip__content td { padding: 10px 12px; border: 1px solid var(--nbt-line, #E7E0D3); }
.nbt-tip__content th { background: var(--nbt-paper, #F7F3EC); }
.nbt-tip__content .wp-block-table { overflow-x: auto; }

.nbt-tip__tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding-top: 20px; border-top: 1px dashed #E2DCD0; }
.nbt-tip__tags li { margin: 0; }
.nbt-tip__tags a {
	display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
	background: var(--nbt-green-soft, #E6EEE9); color: var(--nbt-green, #1E4A3D); font-weight: 600; font-size: .88rem;
}
.nbt-tip__tags a:hover { background: var(--nbt-green, #1E4A3D); color: #fff; }

/* Related listings + other articles */
.nbt-tip__related { margin-top: 48px; padding: 36px 0 12px; background: var(--nbt-paper, #F7F3EC); }
.nbt-tip__section-title { margin: 0 0 20px; color: var(--nbt-green, #1E4A3D); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.nbt-tip__group { margin-bottom: 12px; }
.nbt-tip__group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nbt-tip__group-head h3 { margin: 0; font-family: inherit; font-size: 1rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nbt-red, #A8322D); }
.nbt-tip__group-head a { font-weight: 600; color: var(--nbt-green, #1E4A3D); white-space: nowrap; }
.nbt-tip__group-head a:hover { color: var(--nbt-red, #A8322D); }
.nbt-tip__group-head .nbt-tip__section-title { margin: 0; }

/* Related cards: one row of 4 on desktop; swipeable strip below 850px
   (≈2 cards visible on phones, the next one peeks out to hint at swiping). */
.nbt-tip__cards {
	--gap: 16px;
	list-style: none; margin: 0 0 20px; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
}
.nbt-tip__card { margin: 0; display: flex; min-width: 0; }
.nbt-tip__card > .nbt-stay-card { width: 100%; }
/* Same footer on every card: price, then a full-width button. */
.nbt-tip__cards .nbt-stay-card__footer { flex-direction: column; align-items: stretch; gap: 8px; }
.nbt-tip__cards .nbt-stay-card__footer .button { width: 100%; text-align: center; justify-content: center; }
.nbt-tip__cards .nbt-stay-card__title { font-size: 1.02rem; }

@media (max-width: 849px) {
	.nbt-tip__cards {
		--gap: 12px;
		display: flex; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; scroll-padding-left: 15px;
		/* Bleed to the screen edges so cards scroll under the page gutter. */
		margin-left: -15px; margin-right: -15px; padding: 2px 15px 10px;
		scrollbar-width: none;
	}
	.nbt-tip__cards::-webkit-scrollbar { display: none; }
	.nbt-tip__card { flex: 0 0 calc((100% - 2 * var(--gap)) / 3.2); scroll-snap-align: start; }
	/* Hover lift would be clipped by the scroller. */
	.nbt-tip__cards .nbt-stay-card:hover { transform: none; }
}

@media (max-width: 549px) {
	.nbt-tip__card { flex-basis: calc((100% - var(--gap)) / 2.2); }
	/* Compact cards: drop secondary lines, stack price over a full-width button. */
	.nbt-tip__cards .nbt-chips,
	.nbt-tip__cards .nbt-activities,
	.nbt-tip__cards .nbt-ticket-card__desc,
	.nbt-tip__cards .nbt-stars { display: none; }
	.nbt-tip__cards .nbt-stay-card__body { padding: 10px 12px 12px; }
	.nbt-tip__cards .nbt-stay-card__title { font-size: .95rem; }
	.nbt-tip__cards .nbt-price strong { font-size: 1rem; }
	.nbt-tip__cards .nbt-stay-card__footer .button {
		height: auto; min-height: 40px; padding: 8px 10px; line-height: 1.25; font-size: .85rem; white-space: normal;
	}
}

.nbt-tip__more { margin-top: 40px; }
.nbt-tip__comments { margin-top: 40px; }

@media (max-width: 549px) {
	.nbt-tip__cover { padding: 0; }
	.nbt-tip__cover img { border-radius: 0; max-height: 300px; }
	.nbt-tip__content { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
	.nbt-tips-chips a { transition: none; }
}
