/* ============================================================
   MeTravel — Experiences (/experiences, templates/trai_nghiem.html, 2026-10-24)
   Mọi class bắt đầu bằng tn-. Màu chỉ từ tokens.css (--mt-*) và biến chung của
   metravel.css (--ink, --line...). Một nút đỏ duy nhất: "Plan my trip" ở khối cuối.
   Chuyển động chỉ trong prefers-reduced-motion:no-preference.
   ============================================================ */

.tn-trang,
.tn-chan {   /* .tn-chan: khung chân trang ở base.html, cùng bề rộng + lề ngang */
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 96px;
  color: var(--ink);
  font-family: var(--font-body);
}
.tn-trang h1, .tn-trang h2, .tn-trang h3, .tn-trang p { margin: 0; }
.tn-trang ul { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* Nhảy tới khối: chừa chỗ cho nút Menu dính (điện thoại) và thanh lọc dính */
.tn-khoi, .tn-video, .tn-ke, .tn-the { scroll-margin-top: 72px; }
.tn-an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Đầu trang ---------- */
.tn-duong-dan { font-size: 14px; color: var(--ink-soft); display: flex; gap: 6px; flex-wrap: wrap; }
.tn-duong-dan a { color: var(--mt-primary); text-decoration: none; }
.tn-duong-dan a:hover { text-decoration: underline; }
/* Đầu trang: khối nền primary như hero trang chủ ("like a local." vàng chỉ đọc được
   trên nền tối — gold trên nền trắng chỉ 2,1:1) */
.tn-dau { margin-top: 12px; padding: 28px 20px; border-radius: 24px; background: var(--mt-primary);
  color: var(--mt-on-primary); box-shadow: var(--mt-gold-bar); }
.tn-dau h1 { font-family: var(--font-heading); font-weight: 700; font-size: 34px; line-height: 1.15; }
.tn-dau h1 em { font-style: italic; color: var(--mt-gold-text); }
.tn-dan { margin-top: 8px; max-width: 680px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.tn-dau .tn-dan { color: rgba(255,255,255,.86); font-size: 16px; }
.tn-nhay { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tn-nhay a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.5); color: var(--mt-on-primary); font-weight: 500; font-size: 14px; text-decoration: none; }
.tn-nhay a:hover { background: rgba(255,255,255,.1); }
@media (min-width: 900px) { .tn-dau { padding: 40px; } .tn-dau h1 { font-size: 46px; } }

/* ---------- Khối chung ---------- */
.tn-khoi { margin-top: 48px; }
.tn-khoi h2, .tn-video h2, .tn-ke h2 { font-family: var(--font-heading); font-weight: 700; font-size: 28px; line-height: 1.2; }
.tn-kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mt-primary); margin-bottom: 6px; }
.tn-trong { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--mt-surface); color: var(--ink-soft); }

/* Ảnh + nhãn góc (dùng chung thẻ rút gọn và thẻ đầy đủ) */
.tn-anh-vo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mt-primary-soft); }
.tn-anh { position: absolute; inset: 0; display: block; }
.tn-anh img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tn-nhan { position: absolute; top: 10px; z-index: 1; max-width: calc(50% - 14px); padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tn-nhan--loai { left: 10px; background: #FFFFFF; color: var(--mt-primary); }
.tn-nhan--mua { right: 10px; background: var(--mt-primary); color: var(--mt-gold-text); }
.tn-tot { font-size: 14px; color: var(--ink-soft); }

/* ---------- B2. This season ---------- */
.tn-tab { display: inline-flex; gap: 4px; max-width: 100%; margin-top: 18px; padding: 4px; border-radius: 999px; background: var(--mt-surface); }
.tn-tab a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  color: var(--ink); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }
.tn-tab a[aria-selected="true"] { background: var(--mt-primary); color: var(--mt-on-primary); }
.tn-gon-ds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.tn-gon { display: flex; flex-direction: column; height: 100%; border-radius: 18px; overflow: hidden; background: #FFFFFF;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.tn-gon:hover { border-color: var(--mt-primary); }
.tn-gon-chu { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 14px; }
.tn-gon-chu strong { font-weight: 600; line-height: 1.35; }
.tn-gon-chu > span { font-size: 14px; color: var(--ink-soft); }
@media (max-width: 899px) {
  /* Điện thoại/máy tính bảng: vuốt ngang (chỉ dải này cuộn ngang) */
  .tn-gon-ds { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 72%; overflow-x: auto;
    scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
  .tn-gon-ds::-webkit-scrollbar { display: none; }
  .tn-gon-ds > li { scroll-snap-align: start; }
}

/* ---------- B3. Bộ lọc dính + lưới thẻ ---------- */
.tn-loc { position: sticky; top: 0; z-index: 20; margin: 16px -20px 0; padding: 10px 20px; background: var(--bg);
  border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 900px) { .tn-loc { top: 49px; } }   /* dưới nút Menu dính của base.html */
.tn-loc-hang { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tn-loc-nhan { flex: none; width: 84px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.tn-chip-ds { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tn-chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); font-size: 13px; font-weight: 500;
  text-decoration: none; white-space: nowrap; }
.tn-chip:hover { border-color: var(--mt-primary); }
.tn-chip[aria-pressed="true"] { background: var(--mt-primary); border-color: var(--mt-primary); color: var(--mt-on-primary); }
@media (max-width: 767px) {
  /* Mỗi hàng chip vuốt ngang */
  .tn-loc-nhan { width: 64px; font-size: 12px; }
  .tn-chip-ds { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tn-chip-ds::-webkit-scrollbar { display: none; }
}
.tn-dem { margin-top: 16px; font-weight: 600; }
.tn-luoi { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
@media (max-width: 899px) { .tn-luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .tn-luoi { grid-template-columns: minmax(0, 1fr); } }
.tn-the { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #FFFFFF; border: 1px solid var(--line); }
.tn-the[hidden] { display: none; }
.tn-the--sang { outline: 3px solid var(--mt-gold); outline-offset: 2px; }
.tn-the-chu { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.tn-the h3 { font-size: 17px; font-weight: 600; line-height: 1.35; }
.tn-khu { font-size: 14px; color: var(--ink-soft); }
.tn-the-hang { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.tn-gia { flex: none; padding: 2px 10px; border-radius: 999px; background: var(--mt-primary-soft); color: var(--mt-primary);
  font-size: 13px; font-weight: 600; }
.tn-meo { margin-top: 4px; padding: 10px 12px; border-radius: 12px; background: var(--mt-note-bg); color: var(--mt-note-text);
  font-size: 14px; line-height: 1.5; }
.tn-the-nut { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }

/* ---------- Nút ---------- */
.tn-nut { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1px solid transparent; font: inherit; font-size: 14px; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.tn-nut--vien { border-color: var(--line); background: #FFFFFF; color: var(--ink); }
.tn-nut--vien:hover { border-color: var(--mt-primary); }
.tn-nut--them { background: var(--mt-primary); color: var(--mt-on-primary); }
.tn-nut--them:hover { background: var(--mt-primary-hover); }
.tn-nut--them[aria-pressed="true"] { background: var(--mt-primary-soft); color: var(--mt-primary); border-color: var(--mt-primary); }
.tn-nut--toi { border-color: rgba(255,255,255,.5); color: var(--mt-on-primary); background: transparent; }
.tn-nut--toi:hover { background: rgba(255,255,255,.1); }
.tn-nut--do { background: var(--mt-red); color: var(--mt-on-primary); }
.tn-nut--do:hover { background: var(--mt-red-hover); }
.tn-trang :focus-visible { outline: 3px solid var(--mt-primary); outline-offset: 2px; }
.tn-dau :focus-visible, .tn-video :focus-visible, .tn-ke :focus-visible { outline-color: #FFFFFF; }

/* ---------- B4. Watch our experiences (nền primary) ---------- */
.tn-video { margin-top: 56px; padding: 32px 20px; border-radius: 24px; background: var(--mt-primary);
  color: var(--mt-on-primary); box-shadow: var(--mt-gold-bar); --vd-cot: 4; }
.tn-video .tn-kicker { color: var(--mt-gold-text); }
.tn-video .tn-dan { color: var(--mt-on-primary-muted); }
.tn-video-dau { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.tn-video-kenh { display: flex; gap: 8px; }
.tn-video-xem { margin-top: 12px; font-size: 13px; }
.tn-video-xem a { display: inline-flex; align-items: center; min-height: 44px; color: var(--mt-gold-text); font-weight: 600; text-decoration: none; }
.tn-video-xem a:hover { text-decoration: underline; }
@media (min-width: 900px) { .tn-video { padding: 40px; } }

/* ---------- B5. Turn these spots into your trip (nền primary, viền dưới gold) ---------- */
.tn-ke { margin-top: 32px; padding: 32px 20px; border-radius: 24px; background: var(--mt-primary); color: var(--mt-on-primary);
  box-shadow: var(--mt-gold-bar); display: grid; gap: 28px; }
.tn-ke .tn-kicker { color: var(--mt-gold-text); }
.tn-ke .tn-dan { color: var(--mt-on-primary-muted); }
@media (min-width: 900px) { .tn-ke { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; padding: 40px; align-items: start; } }
.tn-form { margin-top: 18px; }
.tn-form label { display: block; font-weight: 600; margin-bottom: 8px; }
.tn-form-hang { display: flex; flex-direction: column; gap: 10px; }
.tn-form input { width: 100%; min-height: 50px; padding: 0 16px; border-radius: 999px; border: 0; background: #FFFFFF;
  color: var(--ink); font: inherit; font-size: 16px; }
.tn-form .tn-nut--do { min-height: 50px; font-size: 16px; }
@media (min-width: 560px) { .tn-form-hang { flex-direction: row; } .tn-form input { flex: 1; } }
.tn-da-luu { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18); font-size: 14px; color: var(--mt-on-primary-muted); }
.tn-da-luu-ds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.tn-da-luu-ds li { display: inline-flex; align-items: center; gap: 2px; padding-left: 12px; border-radius: 999px;
  background: #FFFFFF; color: var(--mt-primary); font-weight: 600; font-size: 13px; }
.tn-da-luu-ds button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  border: 0; border-radius: 999px; background: none; color: var(--mt-primary); font-size: 18px; cursor: pointer; }
.tn-da-luu-ds button:focus-visible { outline-color: var(--mt-primary); }
/* Thẻ ngân sách MINH HOẠ (số cố định) */
.tn-vd { padding: 18px 20px; border-radius: 18px; background: #FFFFFF; color: var(--ink); }
.tn-vd-dau { font-weight: 600; }
.tn-vd-nhan { display: inline-block; margin-right: 6px; padding: 1px 10px; border-radius: 999px; background: var(--mt-note-bg);
  color: var(--mt-note-text); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tn-vd-tong { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px !important;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.tn-vd-tong strong { font-size: 26px; color: var(--mt-primary); }
.tn-vd ul { margin-top: 8px !important; }
.tn-vd li { display: flex; justify-content: space-between; padding: 5px 0; font-size: 14px; }
.tn-vd li .mt-money { font-weight: 600; }
.tn-vd-ghi { display: flex; justify-content: space-between; margin-top: 8px !important; padding-top: 10px;
  border-top: 1px solid var(--line); color: var(--mt-red); font-weight: 600; }
.tn-chi-phi { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--mt-gold-text);
  font-weight: 600; text-decoration: none; }
.tn-chi-phi:hover { text-decoration: underline; }

/* ---------- Thông báo nhỏ "Added … to your plan" ---------- */
.tn-bao { position: fixed; z-index: 50; left: 50%; bottom: calc(20px + var(--thanh-cao, 0px)); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 14px; background: var(--mt-text); color: var(--mt-on-primary);
  font-size: 14px; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.tn-bao a { color: var(--mt-gold-text); font-weight: 600; margin-left: 6px; }
.tn-bao[hidden] { display: none; }
