/*
 * Trang danh sách (lưu trú, ẩm thực, di chuyển, điểm đến, tour, sự kiện, tin tức).
 * Dùng chung biến màu, font và hero với detail.css (nạp detail.css trước file này).
 */

.dt-hero.dt-hero--list {
	min-height: 64vh;
}

.dt-hero--list .dt-hero__inner {
	padding-bottom: 96px;
}

/* phủ tối thêm phía trái, nơi đặt chữ */
.dt-hero--list .dt-hero__shade {
	background:
		linear-gradient(90deg, rgba(10, 22, 15, .66) 0%, rgba(10, 22, 15, .3) 50%, rgba(10, 22, 15, 0) 78%),
		linear-gradient(180deg, rgba(10, 22, 15, .5) 0%, rgba(10, 22, 15, 0) 28%),
		linear-gradient(0deg, rgba(10, 22, 15, .55) 0%, rgba(10, 22, 15, 0) 50%);
}

/* ---------- Thanh danh mục nổi trên mép ảnh bìa ---------- */

.dt-catnav-wrap {
	position: relative;
	z-index: 2;
	margin-top: -44px;
}

.dt-catnav {
	display: flex;
	gap: 4px;
	padding: 8px;
	overflow-x: auto;
	scrollbar-width: none;
	background: #fff;
	border: 1px solid var(--dt-line);
	border-radius: 18px;
	box-shadow: 0 12px 36px rgba(28, 53, 40, .12);
}

.dt-catnav::-webkit-scrollbar {
	display: none;
}

.dt-catnav a {
	flex: 1 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 56px;
	padding: 0 18px;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 500;
	white-space: nowrap;
	color: var(--dt-text) !important;
	text-decoration: none !important;
}

.dt-catnav a .fa {
	font-size: 17px;
	color: var(--dt-gold);
}

.dt-catnav a:hover {
	background: var(--dt-paper);
	color: var(--dt-forest) !important;
}

.dt-catnav a.is-active {
	background: var(--dt-forest);
	color: #fff !important;
}

.dt-catnav a.is-active .fa {
	color: #f1d9a8;
}

/* ---------- Thanh lọc / sắp xếp ---------- */

.dt-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	margin-bottom: 28px;
}

.dt-toolbar__count {
	font-family: var(--dt-serif);
	font-size: 22px;
	font-weight: 600;
	color: var(--dt-ink);
}

.dt-toolbar__count small {
	display: block;
	margin-top: 2px;
	font-family: var(--dt-sans);
	font-size: 14px;
	font-weight: 400;
	color: var(--dt-muted);
}

.dt-toolbar__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.dt-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.dt-filter {
	padding: 8px 15px;
	border: 1px solid var(--dt-line);
	border-radius: 999px;
	background: #fff;
	font-family: var(--dt-sans);
	font-size: 14px;
	line-height: 1.2;
	color: var(--dt-text) !important;
	text-decoration: none !important;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.dt-filter:hover {
	border-color: var(--dt-moss);
	color: var(--dt-moss) !important;
}

.dt-filter.is-active {
	background: var(--dt-forest);
	border-color: var(--dt-forest);
	color: #fff !important;
}

.dt-sort {
	height: 40px;
	padding: 0 38px 0 15px;
	border: 1px solid var(--dt-line);
	border-radius: 999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%236f786f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 15px center;
	font-family: var(--dt-sans);
	font-size: 14px;
	color: var(--dt-ink);
	-webkit-appearance: none;
	appearance: none;
	cursor: pointer;
	outline: none;
}

.dt-sort:focus {
	border-color: var(--dt-moss);
}

/* ---------- Lưới thẻ ---------- */

.dt-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px 22px;
}

.dt-grid--2 {
	grid-template-columns: repeat(2, 1fr);
}

.dt-grid--1 {
	grid-template-columns: 1fr;
}

.dt-tile {
	position: relative;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	color: inherit !important;
	text-decoration: none !important;
	transition: transform .35s ease, box-shadow .35s ease;
}

.dt-tile:hover {
	transform: translateY(-4px);
	box-shadow: 0 2px 4px rgba(28, 53, 40, .05), 0 18px 40px rgba(28, 53, 40, .12);
}

.dt-tile[hidden] {
	display: none;
}

.dt-tile__img {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #dfe3dc;
}

.dt-tile__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .7s ease;
}

.dt-tile:hover .dt-tile__img img {
	transform: scale(1.06);
}

.dt-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .92);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--dt-forest);
}

.dt-badge--muted {
	background: rgba(31, 42, 35, .8);
	color: #fff;
}

.dt-rating-chip {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(28, 53, 40, .82);
	font-size: 13px;
	font-weight: 600;
	color: #fff;
}

.dt-rating-chip .fa {
	color: #f3c35b;
}

.dt-tile__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 18px 20px 20px;
}

.dt-tile__title {
	margin: 0;
	font-family: var(--dt-serif);
	font-weight: 600;
	font-size: 20px;
	line-height: 1.35;
	color: var(--dt-ink);
}

.dt-tile:hover .dt-tile__title {
	color: var(--dt-moss);
}

.dt-tile__meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 10px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--dt-muted);
}

.dt-tile__meta--inline {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 4px 18px;
}

.dt-tile__meta .fa {
	width: 16px;
	margin-right: 6px;
	text-align: center;
	color: var(--dt-gold);
}

.dt-tile__text {
	margin-top: 10px;
	font-size: 15px;
	line-height: 1.65;
	color: var(--dt-text);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.dt-tile__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
	padding-top: 16px;
}

.dt-tile__price {
	font-family: var(--dt-serif);
	font-size: 18px;
	font-weight: 600;
	color: var(--dt-forest);
}

.dt-tile__price small {
	font-family: var(--dt-sans);
	font-size: 13px;
	font-weight: 400;
	color: var(--dt-muted);
}

.dt-tile__more {
	margin-left: auto;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	color: var(--dt-moss);
}

.dt-tile__more .fa {
	margin-left: 4px;
	transition: transform .25s ease;
}

.dt-tile:hover .dt-tile__more .fa {
	transform: translateX(3px);
}

/* thẻ ngang (tour, tin tức) */
.dt-tile--row {
	flex-direction: row;
}

.dt-tile--row .dt-tile__img {
	flex: 0 0 42%;
	aspect-ratio: auto;
	min-height: 260px;
}

.dt-tile--row .dt-tile__body {
	padding: 26px 30px;
}

.dt-tile--row .dt-tile__title {
	font-size: 24px;
}

/* thẻ dọc phủ chữ (điểm đến) */
.dt-tile--poster {
	aspect-ratio: 3 / 4;
	border: 0;
	background: var(--dt-forest);
}

.dt-tile--poster .dt-tile__img {
	position: absolute;
	inset: 0;
	aspect-ratio: auto;
}

.dt-tile--poster .dt-tile__img::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(0deg, rgba(10, 22, 15, .86) 0%, rgba(10, 22, 15, .28) 45%, rgba(10, 22, 15, 0) 70%);
}

.dt-tile--poster .dt-tile__body {
	position: relative;
	z-index: 1;
	justify-content: flex-end;
	padding: 26px 24px;
}

.dt-tile--poster .dt-tile__title,
.dt-tile--poster:hover .dt-tile__title {
	font-size: 26px;
	color: #fff;
}

.dt-tile--poster .dt-tile__text {
	margin-top: 8px;
	font-family: var(--dt-serif);
	font-style: italic;
	font-size: 16px;
	color: rgba(255, 255, 255, .86);
	-webkit-line-clamp: 2;
}

.dt-tile--poster .dt-tile__more {
	margin: 14px 0 0;
	color: #f1d9a8;
}

/* lịch nhỏ trên thẻ sự kiện */
.dt-date {
	position: absolute;
	left: 14px;
	bottom: 14px;
	min-width: 62px;
	padding: 8px 10px 9px;
	border-radius: 12px;
	background: #fff;
	text-align: center;
	line-height: 1;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .15);
}

.dt-date__day {
	font-family: var(--dt-serif);
	font-weight: 600;
	font-size: 26px;
	color: var(--dt-forest);
}

.dt-date__month {
	margin-top: 5px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--dt-gold);
}

.dt-noresult {
	grid-column: 1 / -1;
}

.dt-chip.is-active {
	background: var(--dt-forest);
	border-color: var(--dt-forest);
	color: #fff !important;
}

/* ---------- Phân trang ---------- */

.dt-pager {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}

.dt-pager a,
.dt-pager span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--dt-line);
	border-radius: 999px;
	background: #fff;
	font-size: 15px;
	font-weight: 500;
	color: var(--dt-text) !important;
	text-decoration: none !important;
}

.dt-pager a:hover {
	border-color: var(--dt-moss);
	color: var(--dt-moss) !important;
}

.dt-pager .is-current {
	background: var(--dt-forest);
	border-color: var(--dt-forest);
	color: #fff !important;
}

/* ---------- Khung góp ý (form contact-form cũ, khoác áo mới) ---------- */

.dt-feedback {
	display: grid;
	grid-template-columns: 1fr 1.4fr;
	gap: 36px;
	align-items: center;
	margin-top: 72px;
	padding: 40px 44px;
	border-radius: 18px;
	background: var(--dt-forest);
	color: #fff;
}

.dt-feedback__title {
	margin: 0;
	font-family: var(--dt-serif);
	font-weight: 600;
	font-size: 28px;
	line-height: 1.35;
	color: #fff;
}

.dt-feedback__text {
	margin: 12px 0 0;
	font-size: 16px;
	line-height: 1.7;
	color: rgba(255, 255, 255, .78);
}

.dt-feedback .search_panel.feedback_panel {
	display: block !important;
	width: auto;
	height: auto;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
}

.dt-feedback .feedback_panel .feedback_head {
	display: none;
}

.dt-feedback .feedback_panel .feedback_fields {
	display: grid !important;
	grid-template-columns: 1fr 1fr 1fr !important;
	gap: 10px;
}

.dt-feedback .feedback_panel .feedback_input {
	height: 48px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 10px;
	background: rgba(255, 255, 255, .08);
	font-family: var(--dt-sans);
	font-size: 15px;
	color: #fff;
}

.dt-feedback .feedback_panel .feedback_input::placeholder {
	color: rgba(255, 255, 255, .6);
}

.dt-feedback .feedback_panel .feedback_input:focus {
	border-color: #f1d9a8;
	background: rgba(255, 255, 255, .12);
	box-shadow: none;
}

.dt-feedback .feedback_panel textarea.feedback_input {
	grid-column: 1 / -1;
	height: 96px !important;
	resize: vertical !important;
}

.dt-feedback .feedback_panel .feedback_button {
	grid-column: 1 / -1;
	justify-self: start;
	width: auto !important;
	height: 48px;
	padding: 0 30px;
	border-radius: 999px;
	background: var(--dt-gold);
	font-family: var(--dt-sans);
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.dt-feedback .feedback_panel .feedback_button:hover {
	background: #a8721d;
	opacity: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
	.dt-grid { grid-template-columns: repeat(2, 1fr); }
	.dt-grid--1 { grid-template-columns: 1fr; }
	.dt-tile--row .dt-tile__img { flex-basis: 40%; }
	.dt-tile--row .dt-tile__body { padding: 22px 24px; }
	.dt-tile--row .dt-tile__title { font-size: 21px; }
	.dt-feedback { grid-template-columns: 1fr; gap: 24px; padding: 34px 30px; }
}

@media (max-width: 767px) {
	.dt-tile--row { flex-direction: column; }
	.dt-tile--row .dt-tile__img { flex-basis: auto; aspect-ratio: 16 / 10; min-height: 0; }
	.dt-grid--2 { grid-template-columns: 1fr; }
}

@media (max-width: 575px) {
	.dt-hero.dt-hero--list { min-height: 54vh; }
	.dt-hero--list .dt-hero__inner { padding-bottom: 80px; }
	.dt-catnav-wrap { margin-top: -36px; }
	.dt-catnav a { min-height: 48px; padding: 0 14px; font-size: 14px; }
	.dt-grid { grid-template-columns: 1fr; gap: 20px; }
	.dt-tile--poster { aspect-ratio: 4 / 5; }
	.dt-toolbar { flex-direction: column; align-items: stretch; }
	.dt-toolbar__tools { flex-direction: column; align-items: stretch; }
	.dt-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
	.dt-filter { flex: 0 0 auto; }
	.dt-sort { width: 100%; }
	.dt-feedback { padding: 30px 22px; }
	.dt-feedback__title { font-size: 23px; }
	.dt-feedback .feedback_panel .feedback_fields { grid-template-columns: 1fr !important; }
	.dt-feedback .feedback_panel .feedback_button { width: 100% !important; }
}
