/* ============================================================================
   shortcodes.css — CSS dùng chung cho các shortcode tour (nạp TOÀN trang).
   Shortcode chỉ nhả HTML, KHÔNG kèm <style> → nội dung sạch, cache 1 lần.
   Nạp ở header_style.bwt (không điều kiện) để chạy cả trang danh mục lẫn blog.
   ============================================================================ */

/* ---- [bang-tour] : bảng tour ---- */
.bang-tour-wrap { margin: 26px 0; }
.bang-tour-title { font-size: 20px; font-weight: 700; color: #16344f; margin: 0 0 14px; padding-left: 12px; border-left: 5px solid var(--main-color, #02326a); }
.bang-tour-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 14px; border: 1px solid #e4e9f0; box-shadow: 0 4px 16px rgba(2,50,106,.07); }
.bang-tour { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14.5px; min-width: 640px; background: #fff; }
.bang-tour thead th { background: linear-gradient(180deg, #0a4f92 0%, #02326a 100%); color: #fff; text-align: left; padding: 14px 16px; font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .4px; white-space: nowrap; }
.bang-tour thead th:last-child, .bang-tour td.bt-price { text-align: right; }
.bang-tour tbody td { padding: 13px 16px; border-bottom: 1px solid #eef1f6; vertical-align: top; }
.bang-tour tbody tr:last-child td { border-bottom: none; }
.bang-tour tbody tr:nth-child(even) td { background: #f8fafd; }
.bang-tour tbody tr:hover td { background: #eaf3ff; }
.bang-tour .bt-name { min-width: 200px; }
.bang-tour .bt-name a { color: #16344f; font-weight: 600; text-decoration: none; transition: color .15s; }
.bang-tour .bt-name a:hover { color: var(--main-color, #02326a); }
.bang-tour .bt-route { min-width: 220px; max-width: 340px; color: #44586b; line-height: 1.5; font-size: 13.5px; }
.bang-tour .bt-time { color: #5a6b7d; white-space: nowrap; }
.bang-tour .bt-price span { display: inline-block; background: #eaf3ff; color: #02326a; font-weight: 800; font-size: 15px; padding: 5px 12px; border-radius: 7px; white-space: nowrap; }
.bang-tour tbody tr:hover .bt-price span { background: #02326a; color: #fff; }

/* ---- [tour-lienquan] : lưới card tour ---- */
.tour-lq-wrap { margin: 26px 0; }
.tour-lq-title { font-size: 20px; font-weight: 800; color: #16344f; margin: 0 0 6px; padding-left: 12px; border-left: 5px solid var(--main-color, #02326a); }
.tour-lq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.tour-lq-card { border: 1px solid #e6e9ef; border-radius: 12px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.tour-lq-card:hover { box-shadow: 0 8px 22px rgba(0,0,0,.1); transform: translateY(-3px); }
.tour-lq-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.tour-lq-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tour-lq-body { padding: 12px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.tour-lq-name { color: #16344f; font-weight: 700; font-size: 15px; line-height: 1.4; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.tour-lq-name:hover { color: var(--main-color, #02326a); }
.tour-lq-meta { font-size: 13px; color: #55657a; margin: 8px 0; line-height: 1.5; }
.tour-lq-price { color: #e30000; font-weight: 800; font-size: 17px; margin-bottom: 12px; }
.tour-lq-price del { color: #999; font-weight: 400; font-size: 13px; margin-left: 5px; }
.tour-lq-btn { margin-top: auto; display: block; text-align: center; background: var(--main-color, #02326a); color: #fff !important; font-weight: 700; padding: 10px; border-radius: 8px; text-decoration: none; transition: background .2s; }
.tour-lq-btn:hover { background: #0a4f92; }
@media (max-width: 991px) { .tour-lq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tour-lq-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .tour-lq-name { font-size: 13.5px; } .tour-lq-price { font-size: 15px; } }

/* ============================================================================
   Component nội dung bài viết — dùng chung (Thông tin nhanh / Callout / Trích dẫn)
   Chỉ cần thêm class vào HTML, KHÔNG kèm style trong bài.
   ============================================================================ */
/* Thông tin nhanh */
.dl-facts { border: 1px solid #e4e9f0; border-radius: 12px; overflow: hidden; margin: 20px 0; background: #fff; }
.dl-facts__h { color: #16344f; font-weight: 800; font-size: 14.5px; letter-spacing: .1px; padding: 12px 16px 9px; border-bottom: 1px solid #eef1f6; }
.dl-facts__row { display: flex; gap: 16px; align-items: baseline; padding: 11px 16px; }
.dl-facts__row + .dl-facts__row { border-top: 1px solid #eef1f6; }
.dl-facts__k { color: #6b7a8c; font-weight: 600; font-size: 13.5px; flex: 0 0 150px; }
.dl-facts__v { color: #16344f; font-weight: 600; font-size: 14.5px; flex: 1; }
@media (max-width: 480px) { .dl-facts__row { flex-direction: column; gap: 2px; } .dl-facts__k { flex: none; } }

/* Thông tin nhanh - dạng NHÓM (vị trí địa lý / địa danh / đặc sản), mỗi nhóm 1 danh sách */
.dl-facts__grp { padding: 14px 16px; }
.dl-facts__grp + .dl-facts__grp { border-top: 1px solid #eef1f6; }
.dl-facts__gt { font-weight: 800; font-size: 14px; color: #16344f; margin-bottom: 8px; display: flex; align-items: center; gap: 7px; }
.dl-facts__list { margin: 0; padding: 0; list-style: none; }
.dl-facts__list li { font-size: 14px; line-height: 1.6; color: #44586b; padding: 5px 0 5px 16px; position: relative; }
.dl-facts__list li::before { content: ''; position: absolute; left: 0; top: 13px; width: 6px; height: 6px; border-radius: 50%; background: #e0932f; }
.dl-facts__list li strong { color: #16344f; font-weight: 700; }

/* Thông tin nhanh - dạng BẢNG, gọn: tiêu đề nhóm là nhãn nền xám nhạt (không phải khối
   xanh lớn), các dòng dữ liệu bên dưới 2 cột nhãn/mô tả, giãn dòng thấp cho đỡ dài trang.
   Mỗi nhóm là 1 <tbody> riêng (để scope :has() của nút "Xem thêm" theo từng nhóm). */
.dl-facts-tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.dl-facts-tbl tr.dl-facts-tbl__grp td { background: #f3f6fa; color: #02326a; font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .3px; padding: 6px 16px; }
.dl-facts-tbl tbody.dl-facts-tbl__section:not(:first-child) tr.dl-facts-tbl__grp td { border-top: 1px solid #e4e9f0; }
.dl-facts-tbl tbody tr:not(.dl-facts-tbl__grp) td { padding: 7px 16px; border-bottom: 1px solid #f2f4f8; vertical-align: top; }
.dl-facts-tbl tbody.dl-facts-tbl__section:last-child tr:last-child td { border-bottom: none; }
.dl-facts-tbl td:first-child { font-weight: 700; color: #16344f; width: 36%; white-space: nowrap; }
.dl-facts-tbl td:last-child { color: #44586b; }
.dl-facts-tbl td[colspan] { width: auto; white-space: normal; font-weight: 400; }
@media (max-width: 480px) { .dl-facts-tbl { font-size: 13px; } .dl-facts-tbl td:first-child { width: 34%; white-space: normal; } }

/* Địa danh / Đặc sản lấy tự động từ bài viết thật - mỗi bài 1 DÒNG BẢNG (liền mạch với
   các dòng nhãn/mô tả phía trên, không nhét <ul> lồng trong ô). Quá `limit` mục -> các
   dòng dư (.dl-facts-tbl__extra) ẩn sẵn, dòng "Xem thêm" luôn nằm CUỐI nhóm; bấm mở
   ra thì hiện các dòng dư + tự đổi thành "bấm để thu gọn", bấm lại đóng về như cũ. */
.dl-facts-tbl td[colspan] a { color: #16344f; text-decoration: none; }
.dl-facts-tbl td[colspan] a:hover { color: #02326a; text-decoration: underline; }
.dl-facts-tbl tr.dl-facts-tbl__extra { display: none; }
.dl-facts-tbl tbody.dl-facts-tbl__section:has(.dl-facts-tbl__more[open]) tr.dl-facts-tbl__extra { display: table-row; }
.dl-facts-tbl tr.dl-facts-tbl__morerow td { padding: 6px 16px; text-align: center; }
.dl-facts-tbl__more summary { cursor: pointer; color: #e0932f; font-weight: 700; font-size: 12.5px; list-style: none; }
.dl-facts-tbl__more summary::-webkit-details-marker { display: none; }
.dl-facts-tbl__more summary::before { content: '+ '; }
.dl-facts-tbl__more[open] summary { font-size: 0; }
.dl-facts-tbl__more[open] summary::before { content: '– Thu gọn'; font-size: 12.5px; }

/* Lưới card hub-pillar trang tỉnh (.dlbm-*) — trước đây bị nhét <style> inline vào ĐẦU
   mỗi bài tỉnh; đã chuyển hẳn vào đây (nội dung bài sạch, không style inline). */
.dlbm-w { margin: 18px 0; }
.dlbm-lb { display: flex; align-items: center; gap: 10px; font: 700 13.5px/1.2 Arial, sans-serif; color: #02326a; text-transform: uppercase; letter-spacing: .6px; margin: 0 0 14px; }
.dlbm-bar { width: 26px; height: 3px; border-radius: 3px; background: #e0932f; }
.dlbm-g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dlbm-sqg { grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 820px) { .dlbm-sqg { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .dlbm-g, .dlbm-sqg { grid-template-columns: repeat(2, 1fr); } }
.dlbm-c { border: 1px solid #e6ecf4; border-radius: 13px; overflow: hidden; background: #fff; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.dlbm-c:hover { transform: translateY(-4px); box-shadow: 0 16px 30px -16px rgba(10, 47, 94, .4); }
.dlbm-ph { display: block; height: 132px; overflow: hidden; background: #dde7f2; }
.dlbm-sq .dlbm-ph { height: auto; aspect-ratio: 1/1; }
.dlbm-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.dlbm-c:hover .dlbm-ph img { transform: scale(1.07); }
.dlbm-t { padding: 11px 12px 13px; font: 600 13.5px/1.42 Arial, sans-serif; color: #16233a; }
.dlbm-sq .dlbm-t { text-align: center; min-height: 68px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; align-items: center; justify-content: center; font-size: 12.5px; line-height: 1.35; }
.dlbm-c:hover .dlbm-t { color: #02326a; }

/* Box "thuộc cẩm nang" — backlink từ bài con (spoke) về trang hub tỉnh.
   Cấu trúc PHẲNG (1 thẻ <p>, không div lồng) để chèn/gỡ idempotent an toàn. */
.dl-hub-box { background: #f3f6fa; border-left: 4px solid #02326a; padding: 10px 14px; margin: 16px 0; font-size: 14px; line-height: 1.55; color: #44586b; border-radius: 0 10px 10px 0; }
.dl-hub-box a { color: #02326a; text-decoration: none; }
.dl-hub-box a:hover { text-decoration: underline; }

/* Callout */
.dl-callout { border-radius: 14px; padding: 14px 18px; margin: 20px 0; border-left: 5px solid; display: flex; gap: 12px; }
.dl-callout__ic { flex: 0 0 auto; font-size: 20px; line-height: 1.3; }
.dl-callout__b { flex: 1; }
.dl-callout__t { font-weight: 800; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; margin-bottom: 5px; }
.dl-callout__b p { margin: 0 0 6px; } .dl-callout__b p:last-child { margin: 0; }
.dl-callout__b ul { margin: 2px 0 0; padding-left: 18px; } .dl-callout__b li { margin: 4px 0; }
.dl-callout--tip { background: #e9f5ee; border-color: #1f8a5b; } .dl-callout--tip .dl-callout__t { color: #155e3c; }
.dl-callout--warn { background: #fdf3e2; border-color: #d1892a; } .dl-callout--warn .dl-callout__t { color: #8a5a12; }
.dl-callout--info { background: #eef3fb; border-color: #0a4f92; } .dl-callout--info .dl-callout__t { color: #0a4f92; }

/* Trích dẫn nổi bật */
.dl-quote { font-family: Georgia,"Times New Roman",serif; font-size: 19px; line-height: 1.5; color: var(--main-color,#02326a); font-style: italic; margin: 24px 0; padding: 6px 0 6px 22px; border-left: 4px solid #d1892a; }

/* ============================================================================
   MODULE BOX TÁC GIẢ (author-box) — cuối mọi bài viết
   ============================================================================ */
.author-box { position: relative; overflow: hidden; display: flex; gap: 20px; align-items: flex-start; margin: 38px 0 16px; padding: 24px 26px 24px 30px; background: linear-gradient(135deg, #f3f8fd 0%, #ffffff 55%); border: 1px solid #e2e9f2; border-radius: 18px; box-shadow: 0 10px 30px rgba(2, 50, 106, .09); }
.author-box::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, #0a4f92, #02326a); }
.author-box::after { content: '\201D'; position: absolute; right: 14px; top: -18px; font: 800 130px/1 Georgia, serif; color: rgba(2, 50, 106, .05); pointer-events: none; }
.author-box__ava { flex: 0 0 70px; width: 70px; height: 70px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: 0 6px 16px rgba(2, 50, 106, .28); }
.author-box__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-box__ava--txt { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0a4f92, #02326a); color: #fff; font-size: 28px; font-weight: 800; letter-spacing: .5px; }
.author-box__main { flex: 1; position: relative; z-index: 1; padding-top: 2px; }
.author-box__label { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: var(--main-color, #02326a); }
.author-box__label::before { content: ''; width: 18px; height: 2px; border-radius: 2px; background: var(--main-color, #02326a); }
.author-box__name { font-size: 18.5px; font-weight: 800; color: #16344f; margin: 6px 0 9px; line-height: 1.3; }
.author-box__name span { font-weight: 400; color: #6b7a8c; }
.author-box__bio { margin: 0; font-size: 14.5px; line-height: 1.75; color: #4a5967; }
@media (max-width: 520px) { .author-box { padding: 18px 18px 18px 22px; gap: 14px; } .author-box__ava { flex-basis: 54px; width: 54px; height: 54px; } .author-box__ava--txt { font-size: 23px; } .author-box__name { font-size: 16.5px; } .author-box__bio { font-size: 14px; } .author-box::after { font-size: 100px; right: 8px; } }

/* ============================================================================
   Footer "Xem thêm danh mục theo số ngày" cuối bài — style nhẹ (không đụng nội dung)
   ============================================================================ */
.js-toc-content > p:last-of-type:has(a[href*="tour-mien-tay-"]) {
	margin-top: 28px; padding: 14px 18px; background: #f5f8fc; border: 1px solid #e4e9f0;
	border-radius: 12px; font-size: 13.5px; color: #6b7a8c;
}
.js-toc-content > p:last-of-type:has(a[href*="tour-mien-tay-"]) a { font-weight: 600; }