/**
 * Travel Page Template Styles (`template-du-lich.php`).
 * Loaded after `assets/css/page-toc.css` via `inc/functions/page-sidebar-toc.php`.
 * Scope: `.vmt-du-lich-main`, tour cards, embedded tour schedule, and best-selling package cards.
 */

/* ---------- Main content card (.vmt-du-lich-main) ---------- */
.vmt-du-lich-main {
  /* Custom padding for Travel pages (independent from Visa pages) */
}

/* Preserve intended contrast inside tour cards and colored best-selling cards */
.vmt-du-lich-main :is(.vmt-x-card, .vmt-mini-card, .box-product, .row-box-1) h3,
.vmt-du-lich-main :is(.vmt-x-card, .vmt-mini-card, .box-product, .row-box-1) h3 :is(span, b, strong) {
  color: inherit !important;
}

.vmt-du-lich-main .row-box-1 .col-inner[style*="background"] h3,
.vmt-du-lich-main .row-box-1 .col-inner[style*="background"] h3 :is(span, b, strong) {
  color: #ffffff !important;
  text-align: center !important;
}

.vmt-du-lich-main .row-box-1 [data-animate] {
  opacity: 1 !important;
  transform: none !important;
}

.vmt-du-lich-main :is(.vmt-x-card, .vmt-mini-card, .box-product, #vmt-schedule-app) a {
  text-decoration: none !important;
}

/* Keep embedded tour schedule compact and scrollable inside narrow TOC main column */
.vmt-du-lich-main #vmt-schedule-app .vmt-sched-table-wrap,
.vmt-du-lich-main #vmt-schedule-app {
  max-width: 100%;
  overflow-x: auto;
}

.vmt-du-lich-main #vmt-schedule-app table th,
.vmt-du-lich-main #vmt-schedule-app table td {
  padding: 9px 10px;
  font-size: 13px;
}

/* ===== Best-Selling Tour Package Cards (.vmt-pkg-wrap) ===== */
.vmt-pkg-wrap {
  margin: 36px 0 42px;
}

.vmt-pkg-head {
  text-align: center;
  margin-bottom: 26px;
}

.vmt-pkg-eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--vmt-tint, #eefaf1);
  border: 1px solid rgba(0, 144, 48, 0.2);
  color: var(--vmt-accent-strong, #089b39);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vmt-du-lich-main .vmt-pkg-title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  text-align: center !important;
  font-family: "Lexend", var(--vmt-font-heading, sans-serif);
  font-size: clamp(22px, 2.3vw, 28px);
  font-weight: 800;
  color: #0f172a;
}

.vmt-pkg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.vmt-pkg-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 215px;
  grid-template-areas:
    "top top"
    "list price"
    "list foot";
  overflow: hidden;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.vmt-pkg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
}

.vmt-pkg-card--featured {
  border: 2px solid var(--vmt-accent, #009030);
  box-shadow: 0 16px 36px rgba(0, 144, 48, 0.15);
}

.vmt-pkg-card__top {
  grid-area: top;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
  padding: 15px 22px;
  text-align: left;
}

.vmt-pkg-card__top--light {
  background: linear-gradient(90deg, #eefaf1 0%, #ffffff 100%);
  border-bottom: 1px solid #dcfce7;
}

.vmt-pkg-card__top--green {
  background: var(--vmt-grad, linear-gradient(45deg, #009030 0%, #1fb954 50%, #009030 100%));
  color: #ffffff;
}

.vmt-pkg-card__top--navy {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff;
}

.vmt-pkg-badge {
  display: inline-block;
  order: 2;
  margin-bottom: 0;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}

.vmt-pkg-badge--green {
  background: #dcfce7;
  color: #007f2a;
}

.vmt-pkg-badge--gold {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.vmt-pkg-badge--white {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.vmt-du-lich-main .vmt-pkg-name {
  order: 1;
  margin: 0 !important;
  padding: 0 !important;
  font-family: "Lexend", var(--vmt-font-heading, sans-serif);
  font-size: 19px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: left !important;
  color: inherit !important;
}

.vmt-pkg-card__top--light .vmt-pkg-name {
  color: #0f172a !important;
}

.vmt-pkg-price {
  grid-area: price;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px 18px 8px;
  text-align: center;
  border-left: 1px solid #f1f5f9;
  border-bottom: 0;
  background: #fafcfb;
}

.vmt-pkg-price__row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.vmt-pkg-price__now {
  font-family: "Lexend", var(--vmt-font-heading, sans-serif);
  font-size: 22px;
  font-weight: 800;
  color: var(--vmt-price-color, #dc2626);
  font-variant-numeric: tabular-nums;
}

.vmt-pkg-save {
  padding: 2px 7px;
  border-radius: 999px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
}

.vmt-pkg-save--navy {
  background: #eff6ff;
  color: #134074;
}

.vmt-pkg-price__old {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 13px;
}

.vmt-du-lich-main .vmt-pkg-list {
  grid-area: list;
  margin: 0 !important;
  padding: 18px 22px !important;
  list-style: none !important;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  align-content: start;
}

.vmt-du-lich-main .vmt-pkg-list li {
  position: relative;
  margin: 0 !important;
  padding-left: 20px;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  color: #334155;
}

.vmt-du-lich-main .vmt-pkg-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--vmt-accent, #009030);
  font-weight: 800;
  font-size: 13px;
}

.vmt-du-lich-main .vmt-pkg-list li.vmt-pkg-perk {
  color: #0b5d28;
}

.vmt-pkg-foot {
  grid-area: foot;
  display: flex;
  align-items: flex-start;
  padding: 8px 18px 18px;
  border-left: 1px solid #f1f5f9;
  background: #fafcfb;
}

.vmt-du-lich-main .vmt-pkg-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.vmt-du-lich-main .vmt-pkg-btn:hover {
  transform: translateY(-2px);
}

.vmt-du-lich-main .vmt-pkg-btn--outline {
  background: var(--vmt-tint, #eefaf1);
  border: 1.5px solid var(--vmt-accent, #009030);
  color: var(--vmt-accent-strong, #007f2a) !important;
}

.vmt-du-lich-main .vmt-pkg-btn--outline:hover {
  background: var(--vmt-accent, #009030);
  color: #ffffff !important;
}

.vmt-du-lich-main .vmt-pkg-btn--primary {
  background: var(--vmt-grad, linear-gradient(45deg, #009030 0%, #1fb954 50%, #009030 100%));
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(0, 144, 48, 0.25);
}

.vmt-du-lich-main .vmt-pkg-btn--navy {
  background: linear-gradient(135deg, #0b2545 0%, #134074 100%);
  color: #ffffff !important;
  box-shadow: 0 8px 18px rgba(11, 37, 69, 0.22);
}

@media (max-width: 1099px) {
  .vmt-du-lich-main {
    border-radius: 18px;
  }
}

@media (max-width: 767px) {
  .vmt-du-lich-main {
    border-radius: 16px;
  }
}

@media (max-width: 720px) {
  .vmt-pkg-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "top"
      "price"
      "list"
      "foot";
  }

  .vmt-pkg-price,
  .vmt-pkg-foot {
    border-left: 0;
  }

  .vmt-pkg-price {
    border-bottom: 1px solid #f1f5f9;
    padding: 14px 16px;
  }

  .vmt-du-lich-main .vmt-pkg-list {
    grid-template-columns: 1fr;
    padding: 14px 16px !important;
  }

  .vmt-pkg-foot {
    padding: 0 16px 16px;
  }
}
