/**
 * CSS của pack tour — phần Tailwind KHÔNG lo được.
 *
 * Chia rõ:
 *   - Utility (`mst:flex`, `mst:bg-primary/10`…) đến từ bản build Tailwind của core
 *     (handle `megastorevn-tailwind`).
 *   - File này chỉ chứa **component của thiết kế** (`mst-*`, không có dấu hai chấm):
 *     container, eyebrow, tiêu đề mục, nút, cuống vé xé răng, con dấu — những thứ
 *     cần pseudo-element hoặc nhiều khai báo, viết tay gọn hơn là chuỗi utility dài.
 *   - Và vài đoạn responsive không diễn đạt được bằng utility (bảng → thẻ trên mobile).
 *
 * Màu/font/bán kính đều đọc `--mst-*` (do Tailwind phát ra từ token `--ms-*`), nên
 * đổi skin là file này đổi theo, không sửa gì.
 */

/* ==========================================================================
   Component của thiết kế
   ========================================================================== */

.mst-container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* Nhãn mono in hoa phía trên tiêu đề mục */
.mst-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mst-color-primary-dark, #00934f);
  font-family: var(--mst-font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mst-section-title {
  margin: 8px 0 0;
  color: var(--mst-color-dark, #111827);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Từ nhấn viết tay trong tiêu đề mục */
.mst-section-title em {
  display: inline-block;
  margin-inline: 4px;
  color: var(--mst-color-primary-dark, #00934f);
  font-family: var(--mst-font-hand, cursive);
  font-size: 1.25em;
  font-style: normal;
  font-weight: 700;
}

.mst-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 9999px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.mst-btn-primary {
  background: var(--mst-color-primary, #00b96b);
  color: #fff;
  box-shadow: 0 10px 22px rgb(0 185 107 / 0.32);
}

.mst-btn-primary:hover,
.mst-btn-primary:focus-visible {
  background: var(--mst-color-primary-dark, #00934f);
  color: #fff;
  transform: translateY(-2px) rotate(-1deg);
  box-shadow: 0 14px 28px rgb(0 185 107 / 0.4);
}

.mst-btn-accent {
  background: var(--mst-color-accent, #ffb800);
  color: var(--mst-color-dark, #111827);
  box-shadow: 0 8px 20px rgb(255 184 0 / 0.3);
}

.mst-btn-accent:hover,
.mst-btn-accent:focus-visible {
  color: var(--mst-color-dark, #111827);
  transform: translateY(-2px);
  filter: brightness(0.95);
}

/* Link "Xem tất cả" gạch chân nét đứt */
.mst-link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-bottom: 2px;
  border-bottom: 2px dashed var(--mst-color-primary, #00b96b);
  color: var(--mst-color-primary-dark, #00934f);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mst-link-more:hover {
  color: var(--mst-color-primary, #00b96b);
}

/*
| Vệt xé cuống vé: đường nét đứt ngang + 2 nửa hình tròn khoét hai bên thẻ.
| Hai hình tròn phải trùng NỀN PHÍA SAU thẻ, nên lấy từ --mst-notch-bg; thẻ trong
| khối Flash Sale (nền navy) tự đặt lại biến này qua style inline.
*/
.mst-ticket-notch {
  position: absolute;
  top: 180px; /* = chiều cao ảnh của thẻ tour */
  left: 0;
  right: 0;
  z-index: 10;
  height: 0;
  border-top: 2px dashed var(--mst-color-line, #d9d4c8);
  pointer-events: none;
}

.mst-ticket-notch::before,
.mst-ticket-notch::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mst-notch-bg, var(--mst-color-paper, #fdfbf6));
}

.mst-ticket-notch::before {
  left: -11px;
}

.mst-ticket-notch::after {
  right: -11px;
}

/* Con dấu tròn nét đứt "ĐÃ ĐI THẬT" */
.mst-stamp {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  padding: 6px;
  border: 2px dashed var(--mst-color-primary-dark, #00934f);
  border-radius: 50%;
  color: var(--mst-color-primary-dark, #00934f);
  font-family: var(--mst-font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-12deg);
}

/* Nền giấy có hạt chấm */
.mst-paper-dots {
  background-color: var(--mst-color-paper, #fdfbf6);
  background-image: radial-gradient(circle, rgb(17 24 39 / 0.05) 1px, transparent 1px);
  background-size: 22px 22px;
}

.mst-hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mst-hide-scrollbar::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .mst-section-title {
    font-size: 40px;
  }
}

/* ==========================================================================
   Bảng lịch khởi hành → thẻ trên mobile (không cuộn ngang)
   ========================================================================== */

@media (max-width: 767px) {
  .ms-tour-schedule__table thead {
    display: none;
  }

  .ms-tour-schedule__table tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 12px;
    padding: 12px 16px;
  }

  .ms-tour-schedule__table td {
    padding: 2px 0 !important;
  }

  .ms-tour-schedule__table td[data-label]::before {
    content: attr(data-label) ": ";
    color: var(--mst-color-muted, #6b7280);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
  }

  .ms-tour-schedule__table td[data-label="Tour"]::before {
    content: none;
  }

  .ms-tour-schedule__table td:last-child {
    grid-column: 1 / -1;
    margin-top: 6px;
    text-align: left !important;
  }
}

/* ==========================================================================
   Trang chi tiết tour — palette theo gu, đặt qua --ms-t-* trên thẻ gốc
   (xem MegaTourDetail::themes()). Nhờ vậy 6 gu dùng chung một bộ CSS.
   ========================================================================== */

.ms-tour-detail__badge {
  border: 1px solid var(--ms-t-line);
  background: var(--ms-t-chip);
  color: var(--ms-t-accent);
}

.ms-tour-detail__title {
  color: var(--ms-t-title);
}

.ms-tour-detail__stats {
  border: 1px solid var(--ms-t-line);
  background: var(--ms-t-soft);
}

.ms-tour-detail__stat {
  color: var(--ms-t-accent);
}

.ms-tour-detail__spec {
  border: 1px solid var(--ms-t-line);
  background: var(--ms-t-soft);
}

.ms-tour-detail__spec-label {
  color: var(--ms-t-accent);
}

.ms-tour-detail__spec-value,
.ms-tour-detail__exp-title {
  color: var(--ms-t-title);
}

.ms-tour-detail__exp {
  border: 1px solid var(--mst-color-cream, #f1eee5);
  border-top: 4px solid var(--ms-t-accent);
}

.ms-tour-detail__check {
  color: var(--ms-t-accent);
  font-weight: 700;
}

/* Gu nghỉ dưỡng: chữ serif, bo góc vuông hơn — đúng tinh thần thiết kế "luxury" */
.ms-tour-detail--resort .ms-tour-detail__title,
.ms-tour-detail--resort .ms-tour-detail__exp-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.ms-tour-detail--resort .ms-tour-detail__badge {
  border-radius: 999px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Honeypot của các form (ẩn với người, bot vẫn thấy) */
.ms-tour-booking__hp,
.ms-tour-contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ==========================================================================
   Header / Footer
   ========================================================================== */

/* Gạch chân chạy từ trái sang khi hover link menu */
.ms-tour-header__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--mst-color-primary, #00b96b);
  transition: width 0.2s ease;
}

.ms-tour-header__link:hover::after,
.ms-tour-header__link.is-active::after,
.ms-tour-header .current-menu-item > a::after {
  width: 100%;
}

/* Menu WordPress trong header: bỏ style list mặc định */
.ms-tour-header__menu {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-tour-header__menu a {
  position: relative;
  padding-bottom: 6px;
  color: var(--mst-color-dark, #111827);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}

.ms-tour-header__menu .current-menu-item > a {
  color: var(--mst-color-primary, #00b96b);
}

/* Đổ bóng khi cuộn (JS thêm class) */
.ms-tour-header.is-scrolled {
  box-shadow: 0 4px 20px rgb(17 24 39 / 0.06);
}

.ms-tour-footer__menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-tour-footer__menu a {
  color: inherit;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.ms-tour-footer__menu a:hover {
  color: var(--mst-color-accent, #ffb800);
}

/* Lỗ bấm vé ở mép trên thẻ CTA */
.ms-tour-cta-ticket__card::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 32px;
  height: 32px;
  transform: translateX(-50%);
  border: 6px solid var(--mst-color-dark, #111827);
  border-radius: 50%;
  background: var(--mst-color-paper, #fdfbf6);
}

/* Chừa chỗ cho thanh điều hướng mobile để nội dung không bị che */
@media (max-width: 767px) {
  body:has(.ms-tour-float) {
    padding-bottom: 64px;
  }
}

/* ==========================================================================
   Layout 2 cột của trang chi tiết tour (thiết kế: lg:grid-cols-[2fr_1fr])
   Gán class này cho container của Bricks bọc {detail, booking-box}. Dùng CSS
   thay vì flex-setting của Bricks để bố cục không phụ thuộc cấu hình breakpoint
   của từng site.
   ========================================================================== */

.ms-tour-detail-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .ms-tour-detail-layout {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}
