/**
 * Nova Tour — nền giao diện trang ngoài ( dùng chung cho mọi element du lịch ).
 *
 * Token lấy từ Nova ( --nova-color-* ) khi skin có đặt, không thì về giá trị theo bản vẽ
 * travel.com.vn ( .tools/khao-sat-travel/BAN-VE.md mục 0 ). Element chỉ dùng --nt-*,
 * không viết cứng mã màu, để đổi skin là đổi cả bộ.
 *
 * Tệp này: token, nút, chip, pill, thẻ dịch vụ ( dọc / ngang ), slider ngang, tab pill,
 * modal / bottom sheet. Phần riêng: travel-list.css ( tìm kiếm, lọc, kết quả ),
 * travel-detail.css ( trang chi tiết ).
 */

.nt-ui {
	--nt-primary: var(--nova-color-primary, #0046c1);
	--nt-link: #0391ff;
	--nt-soft: #d9eeff;
	--nt-softer: #f1f9ff;
	--nt-ink-blue: #003a66;
	--nt-cta: var(--nova-color-accent, #ed1d24);
	--nt-cta-dark: #d40e00;
	--nt-cta-soft: #ffe5e3;
	--nt-gold: #f8c700;
	--nt-green: #007c19;
	--nt-green-soft: #deffe5;
	--nt-orange: #ff6f34;
	--nt-navy: #002540;
	--nt-promo: #ffeee7;
	--nt-text: var(--nova-color-heading, #000e1a);
	--nt-text-strong: #191919;
	--nt-muted: #4d4d4d;
	--nt-muted-2: #636363;
	--nt-faint: #999999;
	--nt-page: #f7f7f7;
	--nt-white: #ffffff;
	--nt-line: #dddddd;
	--nt-line-soft: #f7f7f7;
	--nt-base: #e2e6ef;
	--nt-radius-box: 24px;
	--nt-radius-card: 12px;
	--nt-radius-inner: 8px;
	--nt-shadow: 0 4px 16px rgba(0, 0, 0, .10);
	--nt-shadow-bar: 0 2px 8px rgba(0, 0, 0, .15);
	font-family: var(--nova-font-body, "Mulish", system-ui, sans-serif);
	color: var(--nt-text);
}

.nt-ui *, .nt-ui *::before, .nt-ui *::after { box-sizing: border-box; }
.nt-ui [hidden], .nt-ui[hidden] { display: none !important; }
.nt-ui img { max-width: 100%; height: auto; display: block; }
/* Plugin tối ưu ảnh ( SmartPix… ) bọc <img> trong <picture>; theme cho picture height:auto nên ảnh
   `height: 100%` hụt khung. Bỏ hộp của picture để ảnh đo theo khung như khi không bọc. */
.nt-ui picture { display: contents; }
.nt-ui button { font: inherit; cursor: pointer; }
.nt-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Nút ---------- */
.nt-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 20px; border: 1px solid transparent; border-radius: 40px;
	font-size: 14px; font-weight: 600; line-height: 20px; text-decoration: none; white-space: nowrap;
	transition: filter .15s ease, background-color .15s ease;
}
.nt-btn:hover { filter: brightness(.94); }
.nt-btn:focus-visible { outline: 2px solid var(--nt-primary); outline-offset: 2px; }
.nt-btn--primary { background: var(--nt-primary); border-color: var(--nt-primary); color: #fff; }
.nt-btn--cta { background: var(--nt-cta); border-color: var(--nt-cta); color: #fff; }
.nt-btn--soft { background: var(--nt-soft); color: var(--nt-primary); }
.nt-btn--ghost { background: var(--nt-line-soft); color: var(--nt-muted-2); }
.nt-btn--outline { background: #fff; border-color: var(--nt-primary); color: var(--nt-primary); font-weight: 700; }
.nt-btn--block { width: 100%; }
.nt-btn[disabled], .nt-btn[aria-disabled="true"] { background: var(--nt-line); border-color: var(--nt-line); color: var(--nt-muted-2); filter: none; cursor: not-allowed; }
/* Nút nền màu giữ chữ trắng khi hover / focus / đã xem: theme Nova có "a:hover { color: primary-700 }"
   ( 0,1,1 ) và các khối ".nova-widget a:hover" ( 0,2,1 ) đè lên <a> dạng nút → chữ xanh chìm trên nền xanh.
   Selector ( 0,4,1 ) thắng các luật đó mà không cần !important; nút đang khoá giữ màu xám. */
:is(a, button).nt-btn:is(.nt-btn--primary, .nt-btn--cta):not([disabled], [aria-disabled="true"]):is(:hover, :focus, :active, :visited),
a.nt-card__cta.nt-card__cta:is(:hover, :focus, :active, :visited) { color: #fff; }
/* Nút vàng ( khách sạn "Xem phòng" ) có chữ TỐI: luật trên ép trắng khi đã xem / rê chuột → trắng trên
   vàng, tương phản 1,6 ( báo lỗi 09/10/2026 ). Cùng độ ưu tiên, đứng sau nên thắng. */
a.nt-card__cta.nt-card__cta--gold:is(:hover, :focus, :active, :visited) { color: var(--nt-text-strong); }

/* Vệt sáng lướt qua khi rê chuột ( nút chính / CTA ): ::after dải trắng mờ xiên chạy ngang ~600ms.
   Chỉ dùng transform ( không đổi kích thước nút ); overflow hidden giữ vệt trong viền bo.
   Lớp .nt-shine dùng cho nút khác; trang đặt chỗ / tài khoản có bản riêng ( không nạp tệp này ). */
.nt-shine, .nt-btn--primary, .nt-btn--cta, .nt-card__cta { position: relative; overflow: hidden; isolation: isolate; }
.nt-shine::after, .nt-btn--primary::after, .nt-btn--cta::after, .nt-card__cta::after {
	content: ""; position: absolute; top: 0; bottom: 0; left: 0; z-index: -1; width: 45%; pointer-events: none;
	background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, .38) 50%, transparent 100%);
	transform: translateX(-160%) skewX(-20deg);
}
.nt-shine:hover::after, .nt-btn--primary:not([disabled], [aria-disabled="true"]):hover::after, .nt-btn--cta:not([disabled], [aria-disabled="true"]):hover::after, .nt-card__cta:hover::after { animation: nt-shine .6s ease-out; }
@keyframes nt-shine { to { transform: translateX(330%) skewX(-20deg); } }
@media (prefers-reduced-motion: reduce) {
	.nt-shine::after, .nt-btn--primary::after, .nt-btn--cta::after, .nt-card__cta::after { display: none; }
}

/* "Xem thêm" viền, có nút tròn chứa mũi tên bên phải. */
.nt-more { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 4px 4px 4px 16px; border: 1px solid var(--nt-primary); border-radius: 40px; background: #fff; color: var(--nt-primary); font-size: 14px; font-weight: 700; text-decoration: none; }
.nt-more__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--nt-primary); color: #fff; }

/* ---------- Tiêu đề khối ---------- */
.nt-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.nt-head__title { margin: 0; font-size: 32px; line-height: 48px; font-weight: 800; color: var(--nt-text); }
.nt-head__desc { margin: 4px 0 0; font-size: 16px; line-height: 24px; font-weight: 600; color: #666; }

/* ---------- Tab pill ( lọc tại chỗ ) ---------- */
.nt-ui .nt-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 0 24px; padding: 0; list-style: none; }
.nt-ui .nt-tabs::-webkit-scrollbar { display: none; }
.nt-tab { flex: 0 0 auto; min-height: 46px; padding: 12px 16px; border: 1px solid var(--nt-line); border-radius: 40px; background: var(--nt-line-soft); color: var(--nt-muted-2); font-size: 14px; font-weight: 600; line-height: 20px; }
.nt-tab[aria-selected="true"] { background: var(--nt-text-strong); border-color: var(--nt-text-strong); color: var(--nt-line-soft); }

/* ---------- Chip ---------- */
.nt-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.nt-chips__label { font-size: 12px; font-weight: 600; text-transform: uppercase; }
.nt-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 12px; border-radius: 60px; background: var(--nt-soft); color: var(--nt-ink-blue); font-size: 12px; font-weight: 600; text-transform: uppercase; text-decoration: none; }
.nt-badge { display: inline-block; padding: 4px 12px 5px; border-radius: 20px; font-size: 12px; font-weight: 800; line-height: 16px; background: var(--nt-soft); color: var(--nt-primary); }
.nt-badge--save { background: #f7ecff; color: #8400e4; }
.nt-badge--deal { background: var(--nt-cta-soft); color: var(--nt-cta-dark); }
.nt-badge--gold { background: #fff4d6; color: #8a5a00; }
.nt-day-chip { display: inline-grid; place-items: center; min-width: 40px; height: 22px; padding: 0 4px; border: 1px solid var(--nt-cta); border-radius: 4px; color: var(--nt-cta); font-size: 11px; font-weight: 500; line-height: 12px; text-decoration: none; }
.nt-price { color: var(--nt-primary); font-weight: 800; }
.nt-price del { color: var(--nt-muted-2); font-weight: 400; font-size: 12px; margin-right: 6px; }

/* ---------- Slider ngang ( cuộn có snap, mũi tên tròn ) ---------- */
.nt-rail { position: relative; }
/* proximity ( không mandatory ): vuốt / touchpad trôi theo đà rồi mới hít mép thẻ — mandatory giật về từng thẻ. */
.nt-ui .nt-rail__track { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scroll-padding-inline: 2px; padding: 2px 2px 8px; margin: 0; list-style: none; scrollbar-width: none; }
.nt-ui .nt-rail__track::-webkit-scrollbar { display: none; }
@media (hover: hover) and (pointer: fine) { .nt-ui .nt-rail__track { cursor: grab; } }
.nt-ui .nt-rail__track.is-drag { cursor: grabbing; user-select: none; }
.nt-ui .nt-rail__track > * { flex: 0 0 var(--nt-card-w, 295px); scroll-snap-align: start; }
.nt-rail__arrow { position: absolute; top: 40%; z-index: 2; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(25, 25, 25, .7); color: #fff; }
.nt-rail__arrow--prev { left: -12px; }
.nt-rail__arrow--next { right: -12px; }
.nt-rail__arrow[disabled] { opacity: 0; pointer-events: none; }
.nt-grid { display: grid; grid-template-columns: repeat(var(--nt-cols, 4), minmax(0, 1fr)); gap: 12px; }

/* ---------- Thẻ dịch vụ dọc ( 3A ) ---------- */
.nt-card { position: relative; display: flex; flex-direction: column; min-width: 0; border: 1px solid transparent; border-radius: var(--nt-radius-card); overflow: hidden; background: var(--nt-base); }
.nt-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: var(--nt-soft); }
.nt-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.nt-card:hover .nt-card__media img { transform: scale(1.04); }
.nt-card__badge { position: absolute; top: 12px; left: 12px; z-index: 2; }
.nt-card__float { position: absolute; top: 12px; right: 12px; z-index: 2; }
.nt-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; margin: -110px 6px 6px; padding: 10px 8px 0; border-radius: var(--nt-radius-inner); background: #fff; box-shadow: var(--nt-shadow); min-height: 186px; }
.nt-card__title { margin: 0; font-size: 16px; font-weight: 700; line-height: 22px; color: var(--nt-text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nt-card__title a { color: inherit; text-decoration: none; }
.nt-card__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 12px; font-weight: 500; line-height: 16px; color: var(--nt-muted-2); }
.nt-card__meta span { display: inline-flex; align-items: center; gap: 4px; }
.nt-card__days { display: flex; gap: 8px; overflow: hidden; }
.nt-card__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; }
.nt-card__from { padding-bottom: 8px; font-size: 12px; color: var(--nt-muted); }
.nt-card__from .nt-price { display: block; font-size: 16px; line-height: 24px; }
.nt-card__cta { align-self: flex-end; margin-right: -8px; padding: 12px 14px; border-radius: 8px 0 8px 0; background: var(--nt-primary); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nt-card__stars { color: #ffb400; font-size: 14px; letter-spacing: 1px; }

/* ---------- Thẻ ngang ( trang kết quả ) ---------- */
.nt-card--row { display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr); min-height: 224px; }
.nt-card--row .nt-card__media { aspect-ratio: auto; height: 100%; }
.nt-card--row .nt-card__body { margin: 8px 8px 8px -37px; min-height: 0; padding: 16px 16px 0; border-radius: 12px 8px 8px 12px; gap: 10px; }

/* ---------- Hộp trắng ---------- */
.nt-box { background: #fff; border-radius: var(--nt-radius-box); padding: 20px; }
.nt-box__title { margin: 0 0 16px; font-size: 20px; font-weight: 700; color: var(--nt-text-strong); }

/* ---------- Modal / bottom sheet ---------- */
.nt-modal { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 24px; background: rgba(25, 25, 25, .6); }
.nt-modal__box { position: relative; width: min(720px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; border-radius: 24px; background: #fff; overflow: hidden; }
.nt-modal__head { margin: 0; padding: 22px 50px 22px 32px; border-bottom: 1px solid var(--nt-line); font-size: 25px; font-weight: 700; }
.nt-modal__body { overflow-y: auto; padding: 20px 24px; background: var(--nt-page); }
.nt-modal__close { position: absolute; top: 14px; right: 14px; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--nt-shadow); }
.admin-bar .nt-modal { top: var(--wp-admin--admin-bar--height, 0px); }

@media (max-width: 767px) {
	.nt-head { flex-direction: column; align-items: flex-start; }
	.nt-head__title { font-size: 20px; line-height: 24px; }
	.nt-head__desc { font-size: 14px; line-height: 20px; }
	.nt-rail__arrow { display: none; }
	.nt-grid { grid-template-columns: repeat(var(--nt-cols-m, 1), minmax(0, 1fr)); }
	.nt-card--row { grid-template-columns: minmax(0, 1fr); }
	.nt-card--row .nt-card__media { aspect-ratio: 350 / 255; }
	.nt-card--row .nt-card__body { margin: -40px 6px 6px; }
	.nt-modal { place-items: end center; padding: 0; }
	.nt-modal__box { width: 100%; max-height: 88vh; border-radius: 24px 24px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
	.nt-card__media img { transition: none; }
}

/* Chế độ độc lập ( không có theme Nova ): khung trang chi tiết 2 cột và trang chủ dự phòng. */
.nt-standalone-item, .nt-standalone-home { max-width: 1240px; margin: 0 auto; padding: 20px 16px 60px; }
.nt-standalone-item > h1 { margin: 0 0 20px; padding: 24px; border-radius: 24px; background: #fff; font-size: 20px; }
.nt-standalone-item__cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 20px; align-items: start; }
.nt-standalone-item__cols > div { display: flex; flex-direction: column; gap: 40px; min-width: 0; }
.nt-standalone-home { display: flex; flex-direction: column; gap: 60px; }
@media (max-width: 991px) { .nt-standalone-item__cols { grid-template-columns: minmax(0, 1fr); } }
