/* =====================================================================
 * Vé tham quan: shop listing + single product (tone xanh núi – đỏ son).
 * Tokens (--nbt-green, --nbt-red, …) come from home.css.
 * ================================================================== */

.nbt-tickets-page,
.nbt-ticket-page { background: var(--nbt-paper); color: var(--nbt-ink); padding-bottom: 72px; }
.nbt-tickets-page .container,
.nbt-ticket-page .container { max-width: 1200px; }

.nbt-breadcrumb { font-size: .82rem; color: var(--nbt-ink-muted); margin: 0 0 12px; }
.nbt-breadcrumb a { color: var(--nbt-ink-muted); }
.nbt-breadcrumb a:hover { color: var(--nbt-red); }
.nbt-breadcrumb span { color: var(--nbt-ink); }

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

.nbt-tickets-hero { padding: 36px 0 40px; background: var(--nbt-paper-deep); }
.nbt-tickets-hero.has-photo {
	background-image:
		linear-gradient(90deg, rgba(247, 243, 236, .96) 0%, rgba(247, 243, 236, .86) 45%, rgba(247, 243, 236, .15) 80%),
		var(--nbt-hero-photo);
	background-size: cover; background-position: 60% 45%;
}
.nbt-tickets-hero__title { margin: 0 0 .3em; color: var(--nbt-green); font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; max-width: 640px; }
.nbt-tickets-hero__intro { margin: 0; color: #46524D; max-width: 520px; }
.nbt-steps { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; counter-reset: none; }
.nbt-steps li {
	margin: 0; display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px;
	background: rgba(255, 255, 255, .92); border: 1px solid var(--nbt-line); border-radius: 999px; font-size: .88rem; font-weight: 600;
}
.nbt-steps li span {
	width: 28px; height: 28px; border-radius: 50%; background: var(--nbt-green); color: #fff;
	display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
}
.nbt-steps li:last-child span { background: var(--nbt-red); }
@media (max-width: 849px) {
	.nbt-tickets-hero.has-photo { background-image: linear-gradient(rgba(247, 243, 236, .9), rgba(247, 243, 236, .9)), var(--nbt-hero-photo); }
}

/* ---- Toolbar ------------------------------------------------------------- */

.nbt-tickets-toolbar { background: #fff; border-bottom: 1px solid var(--nbt-line); }
.nbt-tickets-toolbar .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.nbt-tickets-chips { margin: 0; }
.nbt-home-chips a.is-active { background: var(--nbt-green); border-color: var(--nbt-green); color: #fff; }
.nbt-tickets-chips a:first-child:not(.is-active) { background: #fff; border-color: #CFDCD4; color: var(--nbt-green); }
.nbt-tickets-chips a:first-child:not(.is-active):hover { background: var(--nbt-green); color: #fff; }
.nbt-tickets-sort { display: flex; align-items: center; gap: 14px; margin: 0; font-size: .88rem; color: var(--nbt-ink-muted); }
.nbt-tickets-sort label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; color: inherit; }
.nbt-tickets-sort select { margin: 0; height: 40px; width: auto; border: 1.5px solid #D9D2C4; border-radius: 10px; background-color: #FBF9F5; box-shadow: none; font-size: .9rem; }

/* ---- Grid + cards -------------------------------------------------------- */

.nbt-tickets-main { padding-top: 32px; }
.nbt-tickets-grid { gap: 24px; }
.nbt-ticket-card__media { aspect-ratio: 4 / 3; height: auto !important; }
.nbt-ticket-card__media img { width: 100%; height: 100%; object-fit: cover; }
.nbt-home .nbt-ticket-card__title { font-size: 1.3rem; line-height: 1.25; margin-bottom: 6px; }
.nbt-ticket-card__desc { margin: 0 0 12px; font-size: .9rem; color: var(--nbt-ink-muted); }
.nbt-ticket-card__prices {
	display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 14px; padding: 12px;
	background: var(--nbt-paper); border-radius: 12px; font-size: .9rem;
}
.nbt-ticket-card__prices dt { margin: 0; font-weight: 400; color: var(--nbt-ink-muted); }
.nbt-ticket-card__prices dd { margin: 0; font-weight: 700; color: var(--nbt-red); text-align: right; }
.nbt-home .nbt-ticket-card .nbt-stay-card__footer { margin-top: auto; border-top: 0; padding-top: 0; }
.nbt-ticket-card__cta { width: 100%; margin: 0 !important; border-radius: 12px !important; text-transform: none !important; letter-spacing: 0 !important; min-height: 44px; }

.nbt-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 32px 0 0; }
.nbt-pagination .page-numbers {
	min-width: 44px; height: 44px; padding: 0 12px; box-sizing: border-box; border-radius: 12px; border: 1.5px solid #D9D2C4;
	display: inline-flex; align-items: center; justify-content: center; font-weight: 600; color: var(--nbt-green); background: #fff;
}
.nbt-pagination .page-numbers.current { background: var(--nbt-green); border-color: var(--nbt-green); color: #fff; }
.nbt-pagination a.page-numbers:hover { border-color: var(--nbt-green); }

/* ---- Notes + help -------------------------------------------------------- */

.nbt-tickets-notes {
	margin-top: 48px; background: var(--nbt-paper-deep); border-radius: 24px; padding: clamp(20px, 4vw, 36px);
	display: flex; flex-wrap: wrap; gap: 28px; align-items: center;
}
.nbt-tickets-notes__text { flex: 999 1 480px; min-width: 0; }
.nbt-tickets-notes h2 { margin: 0 0 12px; color: var(--nbt-green); font-size: 1.6rem; }
.nbt-tickets-notes ul,
.nbt-ticket-notes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: #46524D; }
.nbt-tickets-notes li,
.nbt-ticket-notes li { position: relative; margin: 0; padding-left: 28px; }
.nbt-tickets-notes li::before,
.nbt-ticket-notes li::before,
.nbt-ticket-highlights li::before {
	content: ""; position: absolute; left: 0; top: .2em; width: 18px; height: 18px; background-color: var(--nbt-red);
	-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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%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.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / contain;
}
.nbt-tickets-help { flex: 1 1 260px; background: #fff; border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.nbt-tickets-help b { color: var(--nbt-green); }
.nbt-tickets-help span { font-size: .9rem; color: var(--nbt-ink-muted); }
.nbt-tickets-help__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nbt-tickets-help__actions .button { margin: 0; border-radius: 10px; text-transform: none; letter-spacing: 0; }

/* ---- Single: head + gallery --------------------------------------------- */

.nbt-ticket-page > .container { padding-top: 20px; }
.nbt-ticket-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 20px; }
.nbt-ticket-head__area {
	display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px;
	background: var(--nbt-red); color: #fff; font-size: .75rem; font-weight: 700;
}
.nbt-ticket-head__area:hover { color: #fff; background: #872620; }
.nbt-ticket-head__title { margin: 0; color: var(--nbt-green); font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.1; }
.nbt-ticket-head__price { margin: 0; color: var(--nbt-ink-muted); font-size: .9rem; }
.nbt-ticket-head__price strong { font-size: 1.5rem; color: var(--nbt-red); }
.nbt-ticket-gallery { border-radius: 20px; margin-bottom: 28px; }

/* ---- Single: layout ------------------------------------------------------ */

.nbt-ticket-layout { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.nbt-ticket-content { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.nbt-ticket-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--nbt-line); }
.nbt-ticket-tabs a { padding: 10px 14px; font-weight: 600; font-size: .9rem; color: var(--nbt-green); }
.nbt-ticket-tabs a:first-child,
.nbt-ticket-tabs a:hover { color: var(--nbt-red); box-shadow: inset 0 -2px 0 var(--nbt-red); }
.nbt-ticket-section { scroll-margin-top: 100px; }
.nbt-ticket-section h2 { margin: 0 0 14px; color: var(--nbt-green); font-size: 1.6rem; }

.nbt-ticket-highlights { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.nbt-ticket-highlights li {
	position: relative; margin: 0; padding: 12px 12px 12px 40px; background: #fff; border: 1px solid var(--nbt-line);
	border-radius: 12px; font-size: .92rem;
}
.nbt-ticket-highlights li::before { left: 14px; top: 14px; }
.nbt-ticket-desc { color: #46524D; }
.nbt-ticket-desc > *:last-child { margin-bottom: 0; }

.nbt-ticket-prices { overflow-x: auto; background: #fff; border: 1px solid var(--nbt-line); border-radius: 16px; }
.nbt-ticket-prices table { width: 100%; min-width: 420px; margin: 0; border-collapse: collapse; }
.nbt-ticket-prices th { background: var(--nbt-green-soft); color: var(--nbt-green); text-align: left; padding: 12px 16px; font-size: .85rem; text-transform: none; letter-spacing: 0; border: 0; }
.nbt-ticket-prices td { padding: 12px 16px; border: 0; border-top: 1px solid var(--nbt-line); color: var(--nbt-ink-muted); }
.nbt-ticket-prices td strong { color: var(--nbt-ink); }
.nbt-ticket-prices th:last-child,
.nbt-ticket-prices td:last-child { text-align: right; white-space: nowrap; }
.nbt-ticket-prices td:last-child { font-weight: 700; color: var(--nbt-red); }

.nbt-ticket-notes { background: var(--nbt-paper-deep); border-radius: 18px; padding: 20px 22px; }
.nbt-ticket-notes h2 { font-size: 1.35rem; margin-bottom: 10px; }
.nbt-ticket-trip .nbt-row-card__thumb { width: 120px; min-height: 90px; height: 90px; }
.nbt-ticket-trip .nbt-trip-feature__eyebrow { margin: 0; }

/* ---- Single: booking card ----------------------------------------------- */

.nbt-ticket-booking {
	flex: 1 1 340px; min-width: 0; position: sticky; top: 100px;
	background: #fff; border: 1px solid var(--nbt-line); border-radius: 20px; padding: 22px;
	box-shadow: 0 18px 40px rgba(30, 74, 61, .10); scroll-margin-top: 90px;
}
.nbt-ticket-booking__head h2 { margin: 0 0 14px; color: var(--nbt-green); font-size: 1.4rem; }
.nbt-ticket-booking form.cart { margin: 0; }

.nbt-ticket-booking .nbt-travel-date { margin-bottom: 14px; }
.nbt-ticket-booking .nbt-travel-date label { font-size: .82rem; font-weight: 600; color: #46524D; margin-bottom: 6px; }
.nbt-ticket-booking .nbt-travel-date input[type="date"] {
	max-width: none; width: 100%; height: 48px; margin: 0 0 4px; border: 1.5px solid #D9D2C4; border-radius: 12px;
	background-color: #FBF9F5; box-shadow: none;
}
.nbt-ticket-booking .nbt-travel-date__hint { font-size: .78rem; color: #6A746F; opacity: 1; }

.nbt-ticket-booking .nbt-ticket-table { margin: 0 0 14px; border: 1px solid var(--nbt-line); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; }
.nbt-ticket-booking .nbt-ticket-table tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "type qty" "price qty"; align-items: center; padding: 12px 14px; }
.nbt-ticket-booking .nbt-ticket-table tr + tr { border-top: 1px solid var(--nbt-line); }
.nbt-ticket-booking .nbt-ticket-table td { padding: 0; border: 0; }
.nbt-ticket-booking .nbt-ticket-table__type { grid-area: type; }
.nbt-ticket-booking .nbt-ticket-table__type small { font-size: .75rem; color: #6A746F; }
.nbt-ticket-booking .nbt-ticket-table__price { grid-area: price; font-weight: 700; color: var(--nbt-red); font-size: .92rem; }
.nbt-ticket-booking .nbt-ticket-table__qty { grid-area: qty; width: auto; }
.nbt-ticket-booking .ux-quantity { display: inline-flex; align-items: center; gap: 4px; margin: 0 !important; }
.nbt-ticket-booking .ux-quantity .button,
.nbt-ticket-booking .ux-quantity input[type="button"] {
	width: 40px; height: 40px; min-height: 40px; margin: 0; padding: 0; border: 0 !important; border-radius: 10px !important;
	background: var(--nbt-green-soft) !important; color: var(--nbt-green) !important; font-size: 1.2rem; line-height: 40px;
}
.nbt-ticket-booking .ux-quantity .button:hover { background: var(--nbt-green) !important; color: #fff !important; }
.nbt-ticket-booking .ux-quantity input.qty {
	width: 36px; height: 40px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; font-weight: 600; text-align: center;
}

.nbt-ticket-booking .nbt-ticket-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 14px; color: var(--nbt-ink-muted); }
.nbt-ticket-booking .nbt-ticket-total__amount { font-size: 1.5rem; color: var(--nbt-red); }
.nbt-ticket-booking .single_add_to_cart_button {
	width: 100%; margin: 0; min-height: 52px; border-radius: 12px !important; background: var(--nbt-red) !important; border: 0;
	font-size: 1rem; font-weight: 700; text-transform: none; letter-spacing: 0;
}
.nbt-ticket-booking .single_add_to_cart_button:hover { background: #872620 !important; }
.nbt-ticket-booking .single_add_to_cart_button:disabled { opacity: .55; }
.nbt-ticket-booking__notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; font-size: .8rem; color: var(--nbt-ink-muted); }
.nbt-ticket-booking__notes li { margin: 0; }
.nbt-ticket-booking__notes li::before { content: "• "; color: var(--nbt-red); }
.nbt-ticket-booking__help { margin: 14px 0 0; padding-top: 14px; border-top: 1px dashed #E2DCD0; font-size: .88rem; color: var(--nbt-ink-muted); display: flex; flex-wrap: wrap; gap: 6px; }
.nbt-ticket-booking__help a { font-weight: 600; }

.nbt-ticket-related { margin-top: 56px; }

/* ---- Mobile bottom bar --------------------------------------------------- */

.nbt-ticket-bar { display: none; }
@media (max-width: 849px) {
	.nbt-ticket-booking { position: static; order: -1; flex-basis: 100%; }
	.nbt-ticket-layout { gap: 24px; }
	.nbt-ticket-bar:not([hidden]) {
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; gap: 12px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--nbt-line);
		box-shadow: 0 -10px 24px rgba(30, 74, 61, .10);
	}
	.nbt-ticket-bar__total { flex: 1; min-width: 0; display: flex; flex-direction: column; }
	.nbt-ticket-bar__total span { font-size: .75rem; color: var(--nbt-ink-muted); }
	.nbt-ticket-bar__total strong { font-size: 1.2rem; color: var(--nbt-red); }
	.nbt-ticket-bar__cta { margin: 0 !important; min-height: 48px; border-radius: 12px !important; text-transform: none !important; letter-spacing: 0 !important; }
	.nbt-ticket-page { padding-bottom: 96px; }
	.nbt-ticket-gallery { margin-left: -15px; margin-right: -15px; border-radius: 0; }
}

/* ---- Fixes after first render ---------------------------------------- */

.nbt-ticket-card__prices dt { text-transform: none; letter-spacing: 0; font-size: inherit; }
.nbt-ticket-head__price .amount,
.nbt-ticket-card__prices .amount,
.nbt-ticket-prices .amount,
.nbt-ticket-booking .amount { color: inherit; }
.nbt-ticket-gallery .nbt-gallery__item { overflow: hidden; }
.nbt-ticket-gallery .nbt-gallery__item img { width: 100%; height: 100%; object-fit: cover; }
.nbt-ticket-gallery.nbt-gallery--1 { grid-template-columns: 1fr; grid-template-rows: 440px; }
@media (max-width: 849px) {
	.nbt-ticket-gallery.nbt-gallery--1 { grid-template-rows: 260px; }
}
@media (max-width: 549px) {
	.nbt-ticket-prices table { min-width: 0; font-size: .88rem; }
	.nbt-ticket-prices th, .nbt-ticket-prices td { padding: 10px; }
	.nbt-ticket-tabs { flex-wrap: nowrap; overflow-x: auto; }
	.nbt-ticket-tabs a { white-space: nowrap; }
}
.nbt-tickets-sort { margin-left: auto; }

/* Flatsome zeroes the outer cell padding of tables: restore it in the price table. */
.nbt-ticket-prices th:first-child,
.nbt-ticket-prices td:first-child { padding-left: 16px; }
.nbt-ticket-prices th:last-child,
.nbt-ticket-prices td:last-child { padding-right: 16px; }
@media (max-width: 549px) {
	.nbt-ticket-prices th:first-child,
	.nbt-ticket-prices td:first-child { padding-left: 12px; }
	.nbt-ticket-prices th:last-child,
	.nbt-ticket-prices td:last-child { padding-right: 12px; }
}

/* ---- Activities: listing filter + product section ---------------------- */

.nbt-activity-filter { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 4px; }
.nbt-activity-filter__label { font-size: .85rem; font-weight: 600; color: var(--nbt-ink-muted); }

.nbt-activity-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.nbt-activity-grid li { margin: 0; }
.nbt-activity-grid a {
	display: flex; align-items: center; gap: 12px; height: 100%; box-sizing: border-box; padding: 12px;
	background: #fff; border: 1px solid var(--nbt-line); border-radius: 14px; color: var(--nbt-ink); font-weight: 600; font-size: .92rem;
}
.nbt-activity-grid a:hover { border-color: var(--nbt-green); color: var(--nbt-green); }
.nbt-activity-grid__icon {
	flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--nbt-green-soft); color: var(--nbt-green);
	display: inline-flex; align-items: center; justify-content: center;
}
.nbt-activity-grid li:nth-child(4n+2) .nbt-activity-grid__icon { background: var(--nbt-red-soft); color: var(--nbt-red); }
