/**
 * Nova Tour — lịch bật lên ( assets/js/nt-calendar.js ), theo travel.com.vn:
 * thẻ trắng bo 16, đầu lịch là pill xám "Tháng 10 - 2026" giữa hai nút tròn, ô ngày 40px bo 6,
 * ngày không chọn được #dddddd, CN đỏ, hôm nay có chấm xanh, ngày chọn nền #0391ff.
 * Nạp cả ở trang đặt chỗ / tài khoản ( không có travel.css ) nên màu có giá trị dự phòng.
 */

/* ---------- Ô hiển thị ---------- */
.nt-calw { position: relative; display: inline-flex; align-items: center; min-width: 0; max-width: 100%; }
.nt-calf { cursor: pointer; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
button.nt-calf:not(.nt-field__input) {
	display: inline-flex; align-items: center; min-height: 46px; margin: 0; padding: 0 16px;
	border: 1px solid transparent; border-radius: 60px; background: var(--nt-page, #f7f7f7);
	color: var(--nt-primary, #0046c1); font: inherit; font-size: 15px; font-weight: 700; line-height: 1.2;
}
button.nt-calf.is-empty { color: var(--nt-faint, #999999); font-weight: 600; }
button.nt-calf:focus-visible, button.nt-calf[aria-expanded="true"] { border-color: var(--nt-primary, #0046c1); outline: 0; }
.nt-calf[disabled] { cursor: not-allowed; opacity: .6; }

/* Ô tìm kiếm: chữ xanh đậm như các ô cùng hàng ( travel-list.css lo phần còn lại ). */
.nt-field .nt-calw { display: flex; width: 100%; }
.nt-field .nt-calf { display: block; overflow: hidden; text-overflow: ellipsis; }

/* Ngày sinh / ngày cấp: ô gõ dd/mm/yyyy + nút lịch. */
.nt-calw--dob { display: flex; width: 100%; }
.nt-calw.nt-calw--dob input.nt-calf { flex: 1 1 auto; width: 100%; min-width: 0; padding-right: 34px; cursor: text; }
.nt-calb { position: absolute; top: 50%; right: 4px; display: grid; place-items: center; width: 30px; height: 30px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--nt-muted, #4d4d4d); transform: translateY(-50%); cursor: pointer; }
.nt-calb::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.8%27%3E%3Cpath d=%27M7 3v3M17 3v3M4 9h16M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z%27/%3E%3C/svg%3E") center / 18px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%23000%27 stroke-width=%271.8%27%3E%3Cpath d=%27M7 3v3M17 3v3M4 9h16M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1Z%27/%3E%3C/svg%3E") center / 18px no-repeat; }
.nt-calb:hover, .nt-calb:focus-visible { background: var(--nt-soft, #d9eeff); color: var(--nt-primary, #0046c1); outline: 0; }

/* Vé: "Chọn ngày" cạnh chip Hôm nay / Ngày mai. */
.nt-tk__pick button.nt-calf:not(.nt-field__input) { min-height: 40px; padding: 0 14px; border-color: var(--nt-line, #dddddd); border-radius: 40px; background: var(--nt-white, #fff); font-size: 14px; }

/* ---------- Popup ---------- */
.nt-pk {
	position: fixed; z-index: 100000; top: 0; left: 0; width: 316px; max-width: calc(100vw - 16px); padding: 16px;
	border-radius: 16px; background: #fff; box-shadow: 0 8px 32px rgba(0, 0, 0, .18); box-sizing: border-box;
	color: #191919; font-family: var(--nova-font-body, "Mulish", system-ui, sans-serif); font-size: 14px; line-height: 1.3; text-align: center;
}
.nt-pk *, .nt-pk *::before, .nt-pk *::after { box-sizing: border-box; }
:where(.nt-pk) button { margin: 0; padding: 0; border: 0; font: inherit; letter-spacing: normal; text-transform: none; box-shadow: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.nt-pk button[disabled] { cursor: default; }
.nt-pk button:focus-visible { outline: 2px solid #0046c1; outline-offset: 1px; }

.nt-pk__h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.nt-pk .nt-pk__nav { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #191919; color: #fff; font-size: 20px; line-height: 1; }
.nt-pk .nt-pk__nav[disabled] { background: #f0f0f0; color: #c4c4c4; }
.nt-pk .nt-pk__t { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 20px; background: #f7f7f7; color: #191919; font-size: 14px; font-weight: 700; white-space: nowrap; }
.nt-pk button.nt-pk__t::after { content: ""; width: 7px; height: 7px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nt-pk button.nt-pk__t:hover { background: #ececec; }

.nt-pk__w, .nt-pk__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px 0; }
.nt-pk__w span { padding: 6px 0; color: #636363; font-size: 12px; font-weight: 600; }
.nt-pk__w span:last-child, .nt-pk .nt-pk__d.is-sun { color: #ed1d24; }
.nt-pk .nt-pk__d { position: relative; height: 40px; border-radius: 6px; background: transparent; color: #191919; font-size: 14px; font-weight: 600; }
.nt-pk .nt-pk__d:not([disabled]):hover { background: #f1f9ff; }
.nt-pk .nt-pk__d[disabled], .nt-pk .nt-pk__nav[disabled], .nt-pk .nt-pk__mo[disabled] { cursor: default; }
.nt-pk .nt-pk__d[disabled] { color: #dddddd; background: transparent; }
.nt-pk .nt-pk__d.is-today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: #0391ff; }
.nt-pk .nt-pk__d.is-in { border-radius: 0; background: #e6f4ff; }
.nt-pk .nt-pk__d.is-on { background: #0391ff; color: #fff; }
.nt-pk .nt-pk__d.is-on::after { background: #fff; }

/* Chọn nhanh tháng / năm ( ngày sinh, ngày cấp ). */
.nt-pk__ym { display: flex; gap: 12px; height: 232px; }
.nt-pk__ys { flex: none; display: flex; flex-direction: column; gap: 2px; width: 76px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.nt-pk__ms { flex: 1 1 auto; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 52px; gap: 6px; align-content: start; }
.nt-pk .nt-pk__y, .nt-pk .nt-pk__mo { flex: none; height: 36px; border-radius: 6px; background: transparent; color: #191919; font-weight: 600; }
.nt-pk .nt-pk__mo { height: auto; background: #f7f7f7; font-size: 13px; }
.nt-pk .nt-pk__y:hover, .nt-pk .nt-pk__mo:not([disabled]):hover { background: #f1f9ff; }
.nt-pk .nt-pk__mo[disabled] { color: #dddddd; }
.nt-pk .nt-pk__y.is-on, .nt-pk .nt-pk__mo.is-on { background: #0391ff; color: #fff; }

/* ---------- Bottom sheet ( điện thoại ) ---------- */
.nt-pk__s { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; margin-bottom: 8px; font-size: 16px; text-align: left; }
.nt-pk .nt-pk__x { flex: none; width: 36px; height: 36px; border-radius: 50%; background: #f7f7f7; color: #191919; font-size: 22px; line-height: 1; }
.nt-pk-bg { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .45); }
html.nt-cal-lock { overflow: hidden; }

@media (max-width: 767px) {
	.nt-pk.is-sheet {
		top: auto !important; right: 0; bottom: 0; left: 0 !important; width: auto; max-width: none; max-height: 90vh; overflow-y: auto;
		padding: 8px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0;
	}
	.nt-pk.is-sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 4px; border-radius: 2px; background: #dddddd; }
	.nt-pk.is-sheet .nt-pk__d { height: 44px; font-size: 15px; }
	.nt-pk.is-sheet .nt-pk__ys { width: 88px; }
}
