/* ===== Khoi 3b: Danh muc tour (02/12/2026) =====
   Markup: template-parts/trang-chu/danh-muc-tour.php  |  JS: assets/js/danh-muc-tour.js
   Chi nap o trang chu. Dau khoi dung chung .ztr-dc-dau (ztravel-them.css); the tour dung chung
   the-tour-doc.php (CSS goc .st-list-tour-related). O day chi viet phan rieng .ztr-dmt-*.
   Hien dan khi cuon do hieu-ung-trang-chu.css/js lo chung; doi the: noi dung mo dan 0.4s.
   Dien thoai (<=767px): hang the, hang danh muc va hang tour deu vuot ngang (scroll-snap). */

.ztr-dmt { padding: 0 0 64px; }

/* --- Hang the (tab) --- */
.ztr-dmt-the {
	position: relative; /* offsetParent cho JS can giua the dang chon */
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
	margin: 0 0 22px;
}
.ztr-dmt .ztr-dmt-tab {
	display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; box-sizing: border-box;
	border: 1px solid #dfe5ee; border-radius: 999px; background: #fff;
	color: #1a2b48; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none;
	transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
	-webkit-tap-highlight-color: transparent;
}
.ztr-dmt .ztr-dmt-tab:hover { border-color: var(--main-color, #0445A1); color: var(--main-color, #0445A1); text-decoration: none; }
.ztr-dmt .ztr-dmt-tab:focus { outline: none; text-decoration: none; }
.ztr-dmt .ztr-dmt-tab:focus-visible { outline: 3px solid rgba(4, 69, 161, .35); outline-offset: 2px; }
.ztr-dmt .ztr-dmt-tab[aria-selected="true"] {
	background: var(--main-color, #0445A1); border-color: var(--main-color, #0445A1); color: #fff;
	box-shadow: 0 6px 16px rgba(4, 69, 161, .22);
}
.ztr-dmt-so {
	display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
	border-radius: 11px; background: #eef3fb; color: var(--main-color, #0445A1); font-size: 12px; font-weight: 700;
	transition: background-color .25s ease, color .25s ease;
}
.ztr-dmt-tab[aria-selected="true"] .ztr-dmt-so { background: rgba(255, 255, 255, .2); color: #fff; }

/* --- Noi dung tung the --- */
.ztr-dmt-pane[hidden] { display: none !important; }
.ztr-dmt-pane.ztr-dmt-vao { animation: ztrDmtVao .4s cubic-bezier(.2, .65, .3, 1) both; }
@keyframes ztrDmtVao {
	from { opacity: 0; translate: 0 10px; }
	to   { opacity: 1; translate: none; }
}

/* Day danh muc (co + ten + so tour) */
.ztr-dmt-dd {
	list-style: none; margin: 0 0 26px; padding: 0;
	display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}
.ztr-dmt-dd > li { margin: 0; padding: 0; list-style: none; }
.ztr-dmt-dd a {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; box-sizing: border-box;
	border: 1px solid #e6ecf4; border-radius: 10px; background: #f6f9fd;
	color: #1a2b48; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; text-decoration: none;
	transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease, translate .25s ease;
}
.ztr-dmt-dd a:hover, .ztr-dmt-dd a:focus-visible {
	background: #fff; border-color: #bcd0ee; color: var(--main-color, #0445A1); text-decoration: none;
	box-shadow: 0 4px 12px rgba(16, 24, 40, .08); translate: 0 -1px;
}
.ztr-dmt-dd a:focus { outline: none; }
.ztr-dmt-dd a:focus-visible { outline: 3px solid rgba(4, 69, 161, .35); outline-offset: 2px; }
.ztr-dmt-ghim { flex: none; color: var(--main-color, #0445A1); }
.ztr-dmt-dem { font-size: 12px; font-weight: 400; color: var(--grey-color, #5E6D77); }

.ztr-dmt-trong { margin: 0 0 20px; text-align: center; font-size: 15px; color: var(--grey-color, #5E6D77); }

/* Hang tour: the cao bang nhau (the co gia gach ngang cao hon 11px), dong gia/thoi gian sat day the */
.ztr-dmt .ztr-dmt-luoi { display: flex; flex-wrap: wrap; }
.ztr-dmt .ztr-dmt-luoi::before, .ztr-dmt .ztr-dmt-luoi::after { display: none; }
.ztr-dmt .ztr-dmt-luoi > div { display: flex; float: none; }
.ztr-dmt .ztr-dmt-luoi > div > .item { display: flex; flex-direction: column; width: 100%; }
.ztr-dmt .ztr-dmt-luoi > div > .item > .body { flex: 1 1 auto; display: flex; flex-direction: column; }
.ztr-dmt .ztr-dmt-luoi > div > .item > .body > .st-flex.space-between { margin-top: auto; }

/* Nut xem tat ca */
.ztr-dmt-cuoi { margin-top: 14px; text-align: center; }
.ztr-dmt .ztr-dmt-xem {
	display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 22px; box-sizing: border-box;
	border: 1px solid var(--main-color, #0445A1); border-radius: 999px; background: #fff;
	color: var(--main-color, #0445A1); font-size: 15px; font-weight: 600; text-decoration: none;
	transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.ztr-dmt .ztr-dmt-xem:hover, .ztr-dmt .ztr-dmt-xem:focus-visible {
	background: var(--main-color, #0445A1); color: #fff; text-decoration: none; box-shadow: 0 6px 16px rgba(4, 69, 161, .22);
}
.ztr-dmt-xem svg { transition: translate .25s ease; }
.ztr-dmt-xem:hover svg { translate: 3px 0; }

/* --- Dien thoai: 3 hang vuot ngang, the tour rong 80% de thay mep the sau --- */
@media (max-width: 767px) {
	.ztr-dmt { padding-bottom: 40px; }
	.ztr-dmt-the, .ztr-dmt-dd {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
		margin-left: -15px; margin-right: -15px; padding-left: 15px; padding-right: 15px;
		scrollbar-width: none; -webkit-overflow-scrolling: touch;
	}
	.ztr-dmt-the::-webkit-scrollbar, .ztr-dmt-dd::-webkit-scrollbar, .ztr-dmt-luoi::-webkit-scrollbar { display: none; }
	.ztr-dmt-the { margin-bottom: 14px; padding-top: 2px; padding-bottom: 8px; }
	.ztr-dmt .ztr-dmt-tab { flex: none; height: 38px; padding: 0 14px; font-size: 14px; }
	.ztr-dmt-dd { margin-bottom: 16px; padding-bottom: 4px; gap: 8px; }
	.ztr-dmt-dd > li { flex: none; }
	.ztr-dmt-dd a { padding: 7px 12px; font-size: 13px; }

	.ztr-dmt .ztr-dmt-luoi {
		display: flex; flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; scroll-padding-left: 15px;
		margin-left: -15px; margin-right: -15px; padding: 0 7px 6px; scrollbar-width: none;
	}
	.ztr-dmt .ztr-dmt-luoi > div {
		flex: 0 0 80%; max-width: 80%; width: auto; float: none;
		padding-left: 8px; padding-right: 8px; scroll-snap-align: start;
	}
}

/* Giam chuyen dong: tat het */
@media (prefers-reduced-motion: reduce) {
	.ztr-dmt-pane.ztr-dmt-vao { animation: none; }
	.ztr-dmt .ztr-dmt-tab, .ztr-dmt-so, .ztr-dmt-dd a, .ztr-dmt .ztr-dmt-xem, .ztr-dmt-xem svg { transition: none; }
	.ztr-dmt-dd a:hover, .ztr-dmt-xem:hover svg { translate: none; }
}
