/* ═══ 4b. KHỐI tl-* CÓ SẴN TRONG NỘI DUNG BÀI ══════════════════════════════
 * 132 bài đã lưu sẵn các khối này trong post_content, kèm style viết thẳng vào
 * thẻ (style="…"). Theme KHÔNG sửa dữ liệu — chỉ đè bằng CSS, nên mọi luật ở đây
 * cần !important để thắng thuộc tính style nội tuyến.
 * ⚠ Không có luật nào được đổi href: chỉ trang trí.
 */

/* ── Công bố affiliate (đặc tả 3.4: câu in nghiêng ngay sau đoạn mở) ────── */
.tlk-van .tl-disclosure { font-size: 16px; line-height: 1.6; color: var(--muted); margin: 0 0 26px; }
.tlk-van .tl-disclosure em { font-style: italic; }

/* ── Ô Quick answer ──────────────────────────────────────────────────── */
.tlk-van .tl-quick {
  background: var(--tint) !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 24px 28px !important;
  margin: 0 0 32px !important;
}
.tlk-van .tl-quick::before {
  content: 'Quick answer';
  display: block;
  font-family: var(--chu-de);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--action);
  margin-bottom: 12px;
}
.tlk-van .tl-quick p { color: var(--ink); }
.tlk-van .tl-quick p:last-child {
  display: flex !important;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin: 16px 0 0 !important;
}
.tlk-van .tl-quick a:not(.tl-btn) {
  font-family: var(--chu-de) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--action) !important;
  padding: 0 !important;
}

/* ── Ô đầu bài có NHIỀU chặng/khu (đặc tả B3 "Where to stay for this itinerary") ──
 * 33 bài itinerary đã có sẵn một nút cho mỗi chặng ("Search Dublin", "Search Galway"…)
 * trong ô tl-quick. Đổi tên ô và xếp nút thành lưới để mỗi chặng là một ô bấm rõ ràng.
 * Chỉ áp khi có ≥ 2 nút (:has), bài một nơi giữ "Quick answer". */
.tlk-van--itinerary .tl-quick:has(.tl-btn ~ .tl-btn)::before,
.tlk-van--days .tl-quick:has(.tl-btn ~ .tl-btn)::before { content: 'Where to sleep on this route'; }
.tlk-van--stay .tl-quick:has(.tl-btn ~ .tl-btn)::before { content: 'Quick answer · book by area'; }
.tlk-van .tl-quick:has(.tl-btn ~ .tl-btn) p:last-child {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.tlk-van .tl-quick:has(.tl-btn ~ .tl-btn) p:last-child a:not(.tl-btn) { grid-column: 1 / -1; }
#noi-ngu { scroll-margin-top: 16px; }

/* ── Nút đặt phòng trong bài ─────────────────────────────────────────── */
.tlk-van a.tl-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px !important;
  margin: 0 !important;
  border-radius: 6px !important;
  background: var(--action) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff;           /* Safari: chữ trắng trên nền trắng (bẫy travelguidekit) */
  font-family: var(--chu-de) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none !important;
}
.tlk-van a.tl-btn:hover { background: var(--action-dam) !important; }
.tlk-van .tl-cta-cuoi { margin: 1.6em 0; }

/* ── Bản đồ Stay22 (giữ nguyên embed) ────────────────────────────────── */
.tlk-van .tl-map-stay22 { margin: 2.2em 0 !important; max-width: 760px; }
.tlk-van .tl-map-stay22 iframe {
  display: block;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 6px;
  background: var(--rule-2);
}
.tlk-van .tl-map-stay22 p { font-family: var(--chu-nhan); font-size: 12px !important; color: var(--muted); margin-top: 8px !important; }
.tlk-van .tl-map-stay22 p em { font-style: normal; }

/* ── "Checking current rates": danh sách tìm kiếm Booking/Agoda ──────── */
.tlk-van .tl-booking-links {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 4px 26px 20px;
  margin: 2em 0;
}
.tlk-van .tl-booking-links h2 { font-size: 23px; margin-top: 1em; }
.tlk-van .tl-booking-links a { font-family: var(--chu-de); font-weight: 600; }

/* ── Key takeaways ───────────────────────────────────────────────────── */
.tlk-van .tl-answer {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--brand);
  border-radius: 6px;
  padding: 20px 24px 8px;
  margin: 0 0 32px;
}
.tlk-van .tl-eyebrow {
  display: block;
  font-family: var(--chu-nhan);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 6px;
}

/* ── Ghi chú nguồn và ngày kiểm ──────────────────────────────────────── */
.tlk-van .tl-source,
.tlk-van .tl-checked {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 14px;
}
.tlk-van .tl-num { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ── Bảng bọc sẵn trong bài (tl-tablewrap) ───────────────────────────── */
.tlk-van .tl-tablewrap { margin: 2em 0; overflow-x: auto; max-width: 760px; }

@media (max-width: 760px) {
  .tlk-van .tl-quick { padding: 20px !important; }
  .tlk-van .tl-quick p:last-child { flex-direction: column; align-items: stretch; }
  .tlk-van a.tl-btn { width: 100%; min-height: 48px; }
  .tlk-van .tl-quick a:not(.tl-btn) { text-align: center; padding: 6px 0 !important; }
  .tlk-van .tl-booking-links { padding: 2px 18px 14px; }
  .tlk-van .tl-map-stay22 iframe { height: 380px; }
}
