/**
 * Tour departures schedule ([tour_schedule]).
 * Design system: Vietmytravel modern emerald UI — Lexend headings, Be Vietnam Pro body,
 * emerald green (#009030) gradient accents, soft #f6f9f7 canvas, rounded 18px-22px cards.
 * Markup: template-parts/tour-schedule.php. JS: assets/js/tour-schedule.js.
 */

/* ===== Page canvas & intro section (standalone schedule pages only) ===== */
html #wrapper:has(#content > #vmt-schedule-app),
html #main:has(> #content > #vmt-schedule-app) {
  background-color: #f6f9f7;
  overflow-x: clip;
}

#content:has(> #vmt-schedule-app) {
  padding-bottom: 48px;
}

/* Intro Flatsome section directly preceding #vmt-schedule-app */
#content>section.section:has(+ #vmt-schedule-app) {
  padding: 28px 0 8px !important;
  background: transparent;
}

#content>section.section:has(+ #vmt-schedule-app) .section-content {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 16px;
}

#content>section.section:has(+ #vmt-schedule-app) .row {
  max-width: 100%;
  margin-inline: auto;
}

/* Hero banner image */
#content>section.section:has(+ #vmt-schedule-app) .img {
  margin-bottom: 28px;
}

#content>section.section:has(+ #vmt-schedule-app) .img .img-inner {
  overflow: hidden;
  border-radius: 22px;
  box-shadow: 0 14px 36px rgba(0, 60, 25, 0.1);
}

#content>section.section:has(+ #vmt-schedule-app) .img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Intro headings & lead paragraph */
#content>section.section:has(+ #vmt-schedule-app) h1 {
  margin: 0 auto 14px;
  font-family: var(--vmt-font-heading, "Lexend", "Be Vietnam Pro", system-ui, sans-serif);
  font-size: clamp(26px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--vmt-heading, #1f2328);
  text-wrap: balance;
}

#content>section.section:has(+ #vmt-schedule-app) h1 span[style*="#008000"] {
  color: #009030 !important;
}

#content>section.section:has(+ #vmt-schedule-app) .col-inner>p {
  max-width: 780px;
  margin: 0 auto 18px;
  color: #475569;
  font-family: var(--vmt-font-body, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.7;
  text-align: center;
}

/* Brand tagline pill */
#content>section.section:has(+ #vmt-schedule-app) .col-inner>h3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  padding: 8px 20px;
  border-radius: 999px;
  background: #eefaf1;
  border: 1px solid rgba(0, 144, 48, 0.2);
  font-family: var(--vmt-font-heading, "Lexend", "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

#content>section.section:has(+ #vmt-schedule-app) .col-inner>h3 span {
  font-size: inherit !important;
  color: #007f2a !important;
}

/* Section sub-headings */
#content>section.section:has(+ #vmt-schedule-app) h2 {
  margin: 12px auto 24px;
  font-family: var(--vmt-font-heading, "Lexend", "Be Vietnam Pro", system-ui, sans-serif);
  font-size: clamp(20px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--vmt-heading, #1f2328);
  text-wrap: balance;
}

#content>section.section:has(+ #vmt-schedule-app) h2 span[style*="#008000"] {
  color: #009030 !important;
}

#content>section.section:has(+ #vmt-schedule-app) .section-content>h2:last-of-type {
  margin: 32px auto 12px;
  padding-bottom: 14px;
  position: relative;
}

#content>section.section:has(+ #vmt-schedule-app) .section-content>h2:last-of-type::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin: 12px auto 0;
  border-radius: 999px;
  background: var(--vmt-grad, linear-gradient(45deg, #009030 0%, #1fb954 50%, #009030 100%));
}

/* 4-column feature cards (override inline yellow borders) */
#content>section.section:has(+ #vmt-schedule-app) .row.align-equal {
  margin-inline: -8px;
}

#content>section.section:has(+ #vmt-schedule-app) .row.align-equal>.col {
  padding: 0 8px 16px;
}

#content>section.section:has(+ #vmt-schedule-app) .row.align-equal>.col>.col-inner {
  height: 100%;
  padding: 24px 20px !important;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 60, 25, 0.06);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

#content>section.section:has(+ #vmt-schedule-app) .row.align-equal>.col>.col-inner:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 60, 25, 0.11);
}

#content>section.section:has(+ #vmt-schedule-app) .row.align-equal .is-border {
  border-color: rgba(0, 144, 48, 0.14) !important;
  border-width: 1px !important;
  border-radius: 20px !important;
}

#content>section.section:has(+ #vmt-schedule-app) .icon-box .icon-box-img {
  width: 72px !important;
  height: 72px;
  margin: 0 auto 14px;
  padding: 12px;
  border-radius: 18px;
  background: #f6f9f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

#content>section.section:has(+ #vmt-schedule-app) .icon-box .icon-box-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#content>section.section:has(+ #vmt-schedule-app) .icon-box h3 {
  margin: 0 0 8px;
  font-family: var(--vmt-font-heading, "Lexend", "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
}

#content>section.section:has(+ #vmt-schedule-app) .icon-box h3 span[style*="#008000"] {
  color: #009030 !important;
}

#content>section.section:has(+ #vmt-schedule-app) .icon-box p {
  margin: 0;
  color: #5b6470;
  font-size: 14px;
  line-height: 1.6;
  text-align: center !important;
}

/* ===== Main Schedule App Container ===== */
/* Uses CSS container queries so the same table adapts to both narrow post columns and full pages. */
.vmt-schedule-app-container {
  container: vmt-sch / inline-size;
  box-sizing: border-box;
  /* width: min(1240px, calc(100% - 32px)); */
  max-width: 1240px;
  margin: 16px auto 48px;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid rgba(0, 144, 48, 0.1);
  background: #fff;
  box-shadow: 0 14px 40px rgba(0, 60, 25, 0.07);
  color: var(--vmt-ink, #111827);
  font-family: var(--vmt-font-body, "Be Vietnam Pro", system-ui, sans-serif);
  overflow-x: clip;
}

.vmt-schedule-app-container *,
.vmt-schedule-app-container *::before,
.vmt-schedule-app-container *::after {
  box-sizing: border-box;
}

/* Heading placed directly before the schedule app (when embedded in posts/pages) */
h2:has(+ .vmt-schedule-app-container),
h2:has(+ #vmt-schedule-app) {
  max-width: 1240px;
  margin: 36px auto 12px;
  padding-inline: 16px;
  color: var(--vmt-heading, #1f2328);
  font-family: var(--vmt-font-heading, "Lexend", "Be Vietnam Pro", system-ui, sans-serif);
  font-size: clamp(20px, 3.2vw, 30px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: left;
  text-transform: none;
}

h2:has(+ .vmt-schedule-app-container) span,
h2:has(+ #vmt-schedule-app) span {
  color: inherit;
}

/* ===== Filter Toolbar & Crisp Filter Pills ===== */
.vmt-sch-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding: 12px;
  border-radius: 18px;
  background: #f6f9f7;
  border: 1px solid rgba(0, 144, 48, 0.08);
}

.vmt-sch-search-wrap {
  /* flex: 1.4; */
  min-width: 0;
}

.vmt-sch-filters {
  display: flex;
  flex: 2;
  gap: 10px;
  min-width: 0;
}

.vmt-sch-control-group {
  position: relative;
  display: flex;
  align-items: center;
  height: 46px;
  margin: 0;
  overflow: hidden;
  border: 1.5px solid rgba(0, 144, 48, 0.16);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 60, 25, 0.03);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.vmt-sch-filters .vmt-sch-control-group {
  flex: 1;
  min-width: 0;
}

.vmt-sch-control-group:hover {
  border-color: rgba(0, 144, 48, 0.45);
  background: #fafdfb;
}

.vmt-sch-control-group:focus-within {
  border-color: #009030;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 144, 48, 0.14);
}

.vmt-input-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  padding-inline: 16px 8px;
  color: #009030;
  pointer-events: none;
}

.vmt-select-arrow {
  position: absolute;
  top: 50%;
  right: 15px;
  display: inline-flex;
  color: #5b6470;
  transform: translateY(-50%);
  pointer-events: none;
}

/* Reset Flatsome form styles inside toolbar */
.vmt-sch-toolbar input,
.vmt-sch-toolbar select {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding-block: 0;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--vmt-ink, #111827);
  font-family: var(--vmt-font-body, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 44px;
  text-overflow: ellipsis;
}

.vmt-sch-toolbar .vmt-sch-input {
  padding-inline: 0 16px;
}

.vmt-sch-toolbar .vmt-sch-input::placeholder {
  color: #64748b;
  font-weight: 400;
}

.vmt-sch-toolbar .vmt-sch-select {
  padding-inline: 0 36px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.vmt-sch-toolbar #vmtSchPageSize {
  padding-left: 16px;
}

/* ===== Schedule Table ===== */
.vmt-sch-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(0, 144, 48, 0.1);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}

.vmt-sch-table-wrap.is-grouped {
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: visible;
}

.vmt-sch-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  text-align: left;
}

.vmt-sch-table thead tr {
  background: #f6f9f7;
}

.vmt-sch-table th {
  padding: 14px 16px;
  background: #f6f9f7;
  border: 0;
  border-bottom: 1px solid rgba(0, 144, 48, 0.12);
  color: #334155;
  font-family: var(--vmt-font-heading, "Lexend", "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  user-select: none;
}

.vmt-sch-table th.sortable {
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.vmt-sch-table th.sortable:hover {
  color: #009030;
  background: #eefaf1;
}

.vmt-sch-table th:nth-child(1) {
  width: 34%;
}

.vmt-sch-table th:nth-child(2) {
  width: 10%;
}

.vmt-sch-table th:nth-child(3) {
  width: 20%;
}

.vmt-sch-table th:nth-child(4) {
  width: 15%;
}

.vmt-sch-table th:nth-child(5) {
  width: 12%;
}

.vmt-sch-table th:nth-child(6) {
  width: 9%;
  text-align: center;
}

.vmt-sort-icon-wrap {
  display: inline-flex;
  align-items: center;
  margin-left: 4px;
  vertical-align: middle;
}

.vmt-sort-icon-wrap svg {
  display: inline-block;
  vertical-align: middle;
}

.vmt-sch-table td {
  padding: 16px;
  border: 0;
  color: var(--vmt-ink, #111827);
  font-size: 15px;
  font-weight: 500;
  vertical-align: middle;
}

.vmt-sch-table tbody tr:nth-child(even) td {
  background: #fafdfb;
}

.vmt-sch-table tbody tr:hover td {
  background: #f1f9f3;
}

.vmt-sch-table td strong {
  font-weight: 600;
}

.vmt-tour-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
}

.vmt-tour-info>div {
  min-width: 0;
  flex: 1;
}

.vmt-tour-thumb {
  flex-shrink: 0;
  width: 104px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 60, 25, 0.08);
  background: #eefaf1;
}

.vmt-tour-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--vmt-heading, #1f2328);
  font-family: var(--vmt-font-heading, "Lexend", "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.38;
  text-decoration: none;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  transition: color 0.2s ease;
}

.vmt-tour-name:hover {
  color: #009030;
}

.vmt-tour-dest {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  margin-top: 5px;
  color: #5b6470;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.45;
}

.vmt-tour-dest svg {
  flex-shrink: 0;
  margin-top: 3px;
}

.vmt-tour-dest span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Duration meta under title: shown only when Duration column is hidden */
.vmt-tour-meta {
  display: none;
  width: fit-content;
  margin-top: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  background: #eefaf1;
  color: #007f2a;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.vmt-sch-price,
.vmt-sch-price .amount {
  color: var(--vmt-price-color, #dc2626);
  font-size: 15.5px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Seat availability badge */
.vmt-sch-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #eefaf1;
  border: 1px solid rgba(0, 144, 48, 0.18);
  color: #007f2a;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
}

.vmt-sch-badge.is-low {
  background: #fff7ed;
  border-color: rgba(194, 65, 12, 0.22);
  color: #c2410c;
}

.vmt-sch-badge.is-past {
  background: #f1f5f9;
  border-color: #cbd5e1;
  color: #64748b;
}

/* Pill CTA Button */
.vmt-sch-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(45deg, #009030 0%, #1fb954 50%, #009030 100%);
  background-size: 180% auto;
  box-shadow: 0 6px 16px rgba(0, 144, 48, 0.25);
  color: #fff !important;
  font-family: var(--vmt-font-body, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.3s ease;
}

.vmt-sch-btn-action:hover {
  background-position: right center;
  box-shadow: 0 8px 20px rgba(0, 144, 48, 0.34);
  transform: translateY(-1px);
  color: #fff !important;
}

.vmt-sch-btn-action:active {
  transform: translateY(0);
}

.vmt-sch-btn-action.is-past {
  background: #f1f5f9;
  box-shadow: none;
  border: 1px solid #cbd5e1;
  color: #475569 !important;
}

.vmt-sch-btn-action.is-past:hover {
  background: #e2e8f0;
  box-shadow: none;
  color: #1e293b !important;
}

.vmt-sch-table td:last-child {
  text-align: center;
}

/* ===== Grouped Table Rows (Desktop, generated by tour-schedule.js) ===== */
.vmt-sch-table tbody:has(+ .vmt-sch-group-body) {
  display: none;
}

.vmt-sch-table tbody.vmt-sch-group-body tr.vmt-sch-group td,
.vmt-sch-table tbody.vmt-sch-group-body tr.vmt-sch-group:nth-child(even) td {
  padding-block: 20px;
  border-radius: 0;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.07);
  vertical-align: top;
  transition: background-color 0.2s ease;
}

.vmt-sch-table tbody.vmt-sch-group-body tr.vmt-sch-group:first-child td {
  box-shadow: none;
}

.vmt-sch-table tbody.vmt-sch-group-body tr.vmt-sch-group:hover td {
  background: #f6f9f7;
}

.vmt-sch-group td:nth-child(2) strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  margin-top: 3px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

/* Aligned per-departure list inside Date / Price / Status columns */
#wrapper .vmt-sch-list,
.vmt-sch-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.vmt-sch-list li {
  display: flex;
  align-items: center;
  min-height: 36px;
  margin: 0;
  list-style: none;
  white-space: nowrap;
  font-size: 14.5px;
  font-variant-numeric: tabular-nums;
}

.vmt-sch-list li[hidden] {
  display: none;
}

.vmt-sch-list li strong {
  color: #1f2937;
  font-weight: 600;
}

.vmt-sch-list li.is-past strong,
.vmt-sch-list li.is-past .vmt-sch-price,
.vmt-sch-list li.is-past .vmt-sch-price .amount,
.vmt-sch-card__dates li.is-past .vmt-sch-card__date,
.vmt-sch-card__dates li.is-past .vmt-sch-card__price,
.vmt-sch-card__dates li.is-past .vmt-sch-card__price .amount {
  color: #64748b;
  font-weight: 500;
}

.vmt-sch-list .vmt-sch-price,
.vmt-sch-list .vmt-sch-price .amount {
  font-size: 15px;
}

.vmt-sch-group .vmt-sch-badge {
  min-width: 88px;
  padding: 3px 10px;
  font-size: 12.5px;
  text-align: center;
}

.vmt-sch-group td:last-child .vmt-sch-btn-action {
  margin-top: 1px;
}

/* "+ N ngày khác" pill button */
#wrapper .vmt-sch-group .vmt-sch-card__more {
  margin: 10px 0 0 !important;
  padding: 6px 14px;
  border: 1px solid rgba(0, 144, 48, 0.35);
  border-radius: 999px;
  background: #fff;
  color: #009030;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#wrapper .vmt-sch-group .vmt-sch-card__more:hover {
  background: #eefaf1;
  border-color: #009030;
}

/* ===== Grouped Mobile Cards (Narrow container, generated by tour-schedule.js) ===== */
.vmt-sch-table-wrap.is-grouped .vmt-sch-table {
  display: none;
}

.vmt-sch-cards {
  display: grid;
  gap: 14px;
}

.vmt-sch-cards:empty {
  display: none;
}

.vmt-sch-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(0, 144, 48, 0.12);
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 60, 25, 0.06);
}

.vmt-sch-card .vmt-tour-info {
  align-items: flex-start;
  gap: 12px;
}

.vmt-sch-card .vmt-tour-thumb {
  display: block;
  width: 76px;
  height: 56px;
  border-radius: 10px;
}

.vmt-sch-card .vmt-tour-meta {
  display: inline-block;
}

#wrapper .vmt-sch-card__dates,
.vmt-sch-card__dates {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.vmt-sch-card__dates li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  list-style: none;
}

.vmt-sch-card__dates li[hidden] {
  display: none;
}

.vmt-sch-card__date {
  min-width: 0;
  color: var(--vmt-ink, #111827);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.vmt-sch-card__date strong {
  font-weight: 600;
}

.vmt-sch-card__price .vmt-sch-price,
.vmt-sch-card__price .vmt-sch-price .amount {
  font-size: 14.5px;
}

.vmt-sch-card__seat .vmt-sch-badge {
  padding: 3px 9px;
  font-size: 11.5px;
}

.vmt-sch-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 144, 48, 0.16);
}

#wrapper .vmt-sch-card__more,
.vmt-sch-card__more {
  margin: 0 auto 0 0 !important;
  padding: 6px 12px;
  border: 1px solid rgba(0, 144, 48, 0.3);
  border-radius: 999px;
  background: #f6f9f7;
  color: #007f2a;
  font-size: 13px;
  font-weight: 600;
  text-transform: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#wrapper .vmt-sch-card__more:hover,
.vmt-sch-card__more:hover {
  background: #eefaf1;
}

/* ===== Pagination Bar ===== */
.vmt-sch-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 144, 48, 0.1);
}

.vmt-sch-count-info {
  color: #5b6470;
  font-size: 14px;
  font-weight: 500;
}

.vmt-sch-page-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.vmt-sch-pbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 42px;
  min-height: 42px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(0, 144, 48, 0.16);
  border-radius: 999px;
  background: #f6f9f7;
  color: var(--vmt-ink, #111827);
  font-family: var(--vmt-font-body, "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.vmt-sch-pbtn:hover:not(:disabled) {
  border-color: #009030;
  background: #eefaf1;
  color: #007f2a;
}

.vmt-sch-pbtn.active {
  border-color: transparent;
  background: linear-gradient(45deg, #009030 0%, #1fb954 50%, #009030 100%);
  box-shadow: 0 4px 12px rgba(0, 144, 48, 0.25);
  color: #fff;
}

.vmt-sch-pbtn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.vmt-sch-empty {
  display: none;
  padding: 48px 16px;
  color: #5b6470;
  font-size: 15px;
  text-align: center;
}

/* ===== Responsive Container Breakpoints ===== */

/* Medium container (tablet / narrow content column): <= 1000px */
@container vmt-sch (max-width: 1000px) {
  .vmt-sch-toolbar {
    flex-wrap: wrap;
    padding: 12px;
  }

  .vmt-sch-search-wrap,
  .vmt-sch-filters {
    flex: 1 1 100%;
  }

  .vmt-sch-filters .vmt-sch-select-wrap[style] {
    max-width: none !important;
  }

  .vmt-sch-control-group {
    height: 44px;
  }

  .vmt-sch-toolbar input,
  .vmt-sch-toolbar select {
    font-size: 14px;
    line-height: 42px;
  }

  /* Hide Duration column and display duration pill under tour name */
  .vmt-sch-table th:nth-child(2),
  .vmt-sch-table td:nth-child(2) {
    display: none;
  }

  .vmt-tour-meta {
    display: inline-block;
  }

  .vmt-sch-table th {
    padding: 12px;
    font-size: 13px;
  }

  .vmt-sch-table th:nth-child(1) {
    width: auto;
  }

  .vmt-sch-table th:nth-child(3),
  .vmt-sch-table th:nth-child(4),
  .vmt-sch-table th:nth-child(5),
  .vmt-sch-table th:nth-child(6) {
    width: 1%;
  }

  .vmt-sch-table td {
    padding: 14px 12px;
    font-size: 14.5px;
  }

  .vmt-tour-info {
    gap: 12px;
  }

  .vmt-tour-thumb {
    width: 82px;
    height: 56px;
  }
}

/* Tablet portrait: <= 820px */
@container vmt-sch (max-width: 820px) {

  .vmt-sch-table td,
  .vmt-sch-table th {
    padding-inline: 10px;
  }

  .vmt-sch-table .vmt-tour-thumb {
    display: none;
  }

  .vmt-sch-btn-action {
    padding: 8px 14px;
    font-size: 13px;
  }

  .vmt-sch-list .vmt-sch-price,
  .vmt-sch-list .vmt-sch-price .amount {
    font-size: 14px;
  }
}

/* Narrow desktop / sidebar container: <= 720px */
@container vmt-sch (max-width: 720px) {
  .vmt-sch-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .vmt-sch-filters .vmt-sch-control-group {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 140px;
  }

  .vmt-sch-view-switch {
    flex: 1 0 100%;
    width: 100%;
  }

  .vmt-sch-vbtn {
    flex: 1;
  }
}

/* Mobile / narrow container: <= 620px */
@container vmt-sch (max-width: 620px) {
  .vmt-sch-toolbar {
    padding: 10px;
    gap: 10px;
    border-radius: 16px;
  }

  .vmt-sch-filters {
    flex-wrap: wrap;
    gap: 8px;
  }

  .vmt-sch-filters .vmt-sch-control-group {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .vmt-sch-table-wrap {
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .vmt-sch-table thead {
    display: none;
  }

  .vmt-sch-table,
  .vmt-sch-table tbody {
    display: block;
  }

  /* Fallback for ungrouped rows if JS is disabled */
  .vmt-sch-table tr.vmt-sch-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 12px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(0, 144, 48, 0.12);
    background: #fff;
    box-shadow: 0 6px 20px rgba(0, 60, 25, 0.06);
  }

  .vmt-sch-table tbody tr td,
  .vmt-sch-table tbody tr:nth-child(even) td,
  .vmt-sch-table tbody tr:hover td {
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .vmt-sch-table td:nth-child(1) {
    grid-column: 1 / -1;
  }

  .vmt-sch-table td:nth-child(3) strong::before {
    content: "Khởi hành ";
    color: #5b6470;
    font-weight: 400;
  }

  .vmt-sch-table td:nth-child(3),
  .vmt-sch-table td:nth-child(4) {
    font-size: 14px;
  }

  .vmt-sch-table td:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
    text-align: right;
  }

  .vmt-sch-table td:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
  }

  .vmt-sch-pagination-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .vmt-sch-page-nav {
    justify-content: center;
  }
}

/* Small phones: <= 420px */
@container vmt-sch (max-width: 420px) {
  .vmt-sch-filters .vmt-sch-control-group {
    flex: 1 1 100%;
  }

  .vmt-sch-card {
    padding: 14px;
  }

  .vmt-sch-card__dates li {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .vmt-sch-card__price {
    grid-column: 1 / -1;
  }
}

/* Viewport-level padding tweak for mobile outer container */
@media (max-width: 640px) {
  .vmt-schedule-app-container {
    /* width: calc(100% - 24px); */
    padding: 16px;
    border-radius: 18px;
  }

  #content>section.section:has(+ #vmt-schedule-app) {
    padding-top: 18px !important;
  }

  #content>section.section:has(+ #vmt-schedule-app) .col-inner>h3 {
    max-width: 100%;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {

  #content>section.section:has(+ #vmt-schedule-app) .row.align-equal>.col>.col-inner,
  .vmt-sch-control-group,
  .vmt-sch-btn-action,
  .vmt-sch-pbtn,
  .vmt-tour-name,
  .vmt-sch-vbtn,
  .vmt-cal-cell,
  .vmt-cal-mchip {
    transition: none;
  }
}

/* ===== View Mode Switcher (List / Monthly Calendar) ===== */
.vmt-sch-view-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 46px;
  padding: 4px;
  border-radius: 999px;
  background: #e9f2ec;
  border: 1px solid rgba(0, 144, 48, 0.16);
  gap: 4px;
}

.vmt-sch-vbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #2f4337;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  margin: 0;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.vmt-sch-vbtn:hover {
  color: #007a29;
}

.vmt-sch-vbtn.is-active {
  background: #009030;
  color: #fff;
  box-shadow: 0 3px 10px rgba(0, 144, 48, 0.28);
}

.vmt-sch-pagesize-wrap[hidden],
.vmt-sch-table-wrap[hidden],
.vmt-sch-pagination-bar[hidden],
.vmt-cal-wrap[hidden] {
  display: none !important;
}

/* ===== Monthly Calendar View ===== */
.vmt-cal-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vmt-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 16px;
  background: #f6f9f7;
  border: 1px solid rgba(0, 144, 48, 0.1);
}

.vmt-cal-title-wrap {
  text-align: center;
}

.vmt-cal-title {
  margin: 0;
  font-family: var(--vmt-font-heading, "Lexend", "Be Vietnam Pro", system-ui, sans-serif);
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.2;
}

.vmt-cal-sub {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: #4b5563;
}

.vmt-cal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 144, 48, 0.22);
  background: #fff;
  color: #1f2937;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.vmt-cal-nav-btn:hover {
  border-color: #009030;
  color: #009030;
  background: #f0faf3;
}

.vmt-cal-months {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vmt-cal-mchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 36px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid #d9e4dd;
  background: #fff;
  color: #374151;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin: 0;
  transition: all 0.2s ease;
}

.vmt-cal-mchip span {
  font-weight: 500;
  opacity: 0.78;
}

.vmt-cal-mchip:hover {
  border-color: #009030;
  color: #009030;
}

.vmt-cal-mchip.is-active {
  background: #009030;
  border-color: #009030;
  color: #fff;
}

.vmt-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #4b5563;
  padding-inline: 2px;
}

.vmt-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.vmt-cal-cell {
  min-height: 112px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #edf1ee;
  background: #fafcfb;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
  gap: 6px;
  font-family: inherit;
  margin: 0;
}

.vmt-cal-cell.is-outside {
  background: transparent;
  border-color: transparent;
  min-height: 0;
}

.vmt-cal-cell.is-empty .vmt-cal-day {
  color: #9ca3af;
  font-weight: 500;
}

.vmt-cal-cell.has-tours {
  background: #ffffff;
  border: 1.5px solid rgba(0, 144, 48, 0.26);
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 90, 30, 0.05);
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.vmt-cal-cell.has-tours:hover {
  border-color: #009030;
  background: #f5fbf7;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 144, 48, 0.12);
}

.vmt-cal-cell.is-selected {
  border-color: #009030;
  background: #eef9f2;
  box-shadow: 0 0 0 3px rgba(0, 144, 48, 0.18);
}

.vmt-cal-cell__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}

.vmt-cal-day {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.vmt-cal-badge {
  padding: 2px 7px;
  border-radius: 999px;
  background: #009030;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.vmt-cal-pills {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.vmt-cal-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 4px 6px;
  border-radius: 7px;
  background: #edf7f0;
  color: #14532d;
  font-size: 11.5px;
  line-height: 1.25;
  min-width: 0;
}

.vmt-cal-pill__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 500;
}

.vmt-cal-pill__price {
  flex-shrink: 0;
  font-weight: 700;
  color: #007a29;
}

.vmt-cal-more {
  font-size: 11px;
  font-weight: 600;
  color: #007a29;
  padding-left: 2px;
}

/* Selected Day Detail Panel */
.vmt-cal-detail {
  margin-top: 4px;
  padding: 20px;
  border-radius: 18px;
  background: #f6f9f7;
  border: 1px solid rgba(0, 144, 48, 0.16);
}

.vmt-cal-detail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.vmt-cal-detail__head h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
}

.vmt-cal-detail__count {
  padding: 4px 12px;
  border-radius: 999px;
  background: #e1f3e7;
  color: #007a29;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
}

.vmt-cal-detail__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.vmt-cal-tour {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 144, 48, 0.12);
}

.vmt-cal-tour__thumb {
  display: block;
  width: 76px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
}

.vmt-cal-tour__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vmt-cal-tour__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
  line-height: 1.35;
}

.vmt-cal-tour__title:hover {
  color: #009030;
}

.vmt-cal-tour__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-top: 4px;
  font-size: 13px;
  color: #4b5563;
}

.vmt-cal-tour__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.vmt-cal-tour__price {
  font-size: 16px;
  font-weight: 700;
  color: #dc2626;
}

.vmt-cal-tour__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vmt-cal-empty {
  padding: 28px 16px;
  text-align: center;
  border-radius: 14px;
  background: #f6f9f7;
  color: #4b5563;
  font-size: 14.5px;
}

.vmt-cal-empty p {
  margin: 0;
}

/* Narrow / Mobile Container Adaptation */
@container vmt-sch (max-width: 720px) {
  .vmt-cal-head {
    padding: 12px;
  }

  .vmt-cal-nav-btn span {
    display: none;
  }

  .vmt-cal-nav-btn {
    width: 40px;
    padding: 0;
    justify-content: center;
  }

  .vmt-cal-title {
    font-size: 17px;
  }

  .vmt-cal-months {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .vmt-cal-mchip {
    flex-shrink: 0;
  }

  .vmt-cal-grid,
  .vmt-cal-weekdays {
    gap: 5px;
  }

  .vmt-cal-cell {
    min-height: 58px;
    padding: 6px 4px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }

  .vmt-cal-cell__top {
    flex-direction: column;
    gap: 3px;
  }

  .vmt-cal-pills {
    display: none;
  }

  .vmt-cal-badge {
    font-size: 10px;
    padding: 1px 5px;
  }

  .vmt-cal-detail {
    padding: 14px;
  }

  .vmt-cal-tour {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .vmt-cal-tour__thumb {
    width: 100%;
    height: 140px;
  }

  .vmt-cal-tour__right {
    align-items: flex-start;
    width: 100%;
    padding-top: 8px;
    border-top: 1px solid #eef2ef;
  }

  .vmt-cal-tour__actions {
    width: 100%;
    justify-content: space-between;
  }
}
/* =====================================================================
   Bảng chi tiết (chế độ "Bảng"): mỗi đợt khởi hành một dòng.
   Render bởi tour-schedule.js (renderDetail). Một màu nhấn xanh, giá đỏ theo quy ước site.
   ===================================================================== */
.vmt-dt {
  --dt-ink: var(--vmt-ink, #111827);
  --dt-muted: #667085;
  --dt-line: #eef1f4;
  --dt-green: #009030;
  --dt-green-text: #00852c;
  --dt-tint: #eefaf1;
  --dt-price: var(--vmt-price-color, #dc2626);
  --dt-cols: minmax(0, 1.75fr) 104px minmax(0, 1.55fr) 148px 104px;
  overflow: hidden;
  border: 1px solid rgba(0, 144, 48, 0.1);
  border-radius: 18px;
  background: #fff;
}
.vmt-dt[hidden] {
  display: none;
}

.vmt-dt-head,
.vmt-dt-row {
  display: grid;
  grid-template-columns: var(--dt-cols);
  gap: 0 20px;
  align-items: start;
  padding: 0 20px;
}

/* Tiêu đề cột */
.vmt-dt-head {
  align-items: center;
  min-height: 46px;
  border-bottom: 1px solid var(--dt-line);
  background: #f6f9f7;
  color: #475467;
  font-size: 13px;
  font-weight: 600;
}
.vmt-dt-head .is-right {
  text-align: right;
}
#wrapper .vmt-dt-sort {
  margin: 0;
  padding: 0;
  min-height: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: 1.4;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
#wrapper .vmt-dt-sort:hover,
#wrapper .vmt-dt-sort.is-on {
  color: var(--dt-green-text);
}

/* Dòng */
.vmt-dt-row {
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--dt-line);
  transition: background-color 0.15s ease;
}
.vmt-dt-row:last-of-type {
  border-bottom: 0;
}
.vmt-dt-row:hover {
  background: #fbfdfc;
}
.vmt-dt-row.is-past {
  opacity: 0.6;
}

/* Biểu tượng nhỏ */
.vmt-dt-ic {
  display: inline-flex;
  flex: none;
  width: 14px;
  height: 14px;
  color: #98a2b3;
}
.vmt-dt-ic svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Cột tour */
.vmt-dt-tour {
  min-width: 0;
}
#wrapper .vmt-dt-title {
  display: block;
  color: var(--dt-ink);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
#wrapper .vmt-dt-title:hover {
  color: var(--dt-green-text);
}
#wrapper .vmt-dt-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin: 6px 0 0;
  color: var(--dt-muted);
  font-size: 13px;
  line-height: 1.4;
}
.vmt-dt-sub > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.vmt-dt-code {
  color: #344054;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 600;
}
.vmt-dt-dest {
  flex-basis: 100%;
}
#wrapper .vmt-dt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}
.vmt-dt-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #344054;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
}
.vmt-dt-chip.is-note {
  background: #fff4e5;
  color: #b54708;
}
#wrapper a.vmt-dt-chip.is-pdf {
  background: var(--dt-tint);
  color: var(--dt-green-text);
  text-decoration: none;
}
#wrapper a.vmt-dt-chip.is-pdf:hover {
  background: #dcf5e3;
}
.vmt-dt-chip.is-pdf .vmt-dt-ic {
  color: #d92d20;
}

/* Cột ngày */
.vmt-dt-date {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.vmt-dt-date b {
  color: var(--dt-ink);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.vmt-dt-dow {
  align-self: flex-start;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--dt-tint);
  color: var(--dt-green-text);
  font-size: 12px;
  font-weight: 700;
}

/* Cột hãng bay / chuyến bay */
.vmt-dt-flight {
  min-width: 0;
}
.vmt-dt-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 8px;
}
.vmt-dt-logo {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}
.vmt-dt-logo > b,
.vmt-dt-logo > img {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.vmt-dt-logo > b {
  background: var(--dt-tint);
  color: var(--dt-green-text);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.vmt-dt-logo > img {
  padding: 2px;
  border: 1px solid var(--dt-line);
  background: #fff;
  object-fit: contain;
}
#wrapper .vmt-dt-legs {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
#wrapper .vmt-dt-legs li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}
.vmt-dt-legs li.is-out .vmt-dt-ic {
  color: var(--dt-green);
}
.vmt-dt-legs li.is-back .vmt-dt-ic {
  color: #2e90fa;
}
.vmt-dt-legs li.is-domestic .vmt-dt-ic {
  color: #f79009;
}
.vmt-dt-fno {
  min-width: 52px;
  color: var(--dt-ink);
  font-weight: 700;
}
.vmt-dt-route {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
}
.vmt-dt-route i {
  margin: 0 3px;
  color: #98a2b3;
  font-style: normal;
}
.vmt-dt-time {
  color: var(--dt-muted);
  font-variant-numeric: tabular-nums;
}
.vmt-dt-time sup {
  margin-left: 1px;
  color: #d92d20;
  font-size: 10px;
}
#wrapper .vmt-dt-rawflight {
  margin: 0;
  color: var(--dt-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Cột giá */
.vmt-dt-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.vmt-dt-price b {
  color: var(--dt-price);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vmt-dt-price small {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--dt-muted);
  font-size: 12px;
}

/* Nút */
.vmt-dt-act {
  display: flex;
  justify-content: flex-end;
}
#wrapper a.vmt-dt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  margin: 0;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--dt-green);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
#wrapper a.vmt-dt-btn:hover {
  background: #007a29;
}
#wrapper a.vmt-dt-btn.is-past {
  background: #f2f4f7;
  color: #344054;
}

.vmt-dt-empty {
  margin: 0;
  padding: 40px 20px;
  color: var(--dt-muted);
  text-align: center;
}

/* Khung vừa: thu cột */
@media (max-width: 1100px) {
  .vmt-dt {
    --dt-cols: minmax(0, 1.6fr) 96px minmax(0, 1.4fr) 136px;
  }
  .vmt-dt-head > span:last-child {
    display: none;
  }
  .vmt-dt-act {
    grid-column: 1 / -1;
    margin-top: 12px;
    justify-content: flex-start;
  }
}

/* Điện thoại: mỗi đợt một thẻ */
@media (max-width: 760px) {
  .vmt-dt {
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  .vmt-dt-head {
    display: none;
  }
  .vmt-dt-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "tour tour"
      "date price"
      "flight flight"
      "act act";
    gap: 12px;
    margin-bottom: 12px;
    padding: 16px;
    border: 1px solid rgba(0, 144, 48, 0.1);
    border-radius: 16px;
    background: #fff;
  }
  .vmt-dt-row:last-of-type {
    border-bottom: 1px solid rgba(0, 144, 48, 0.1);
  }
  .vmt-dt-tour {
    grid-area: tour;
  }
  .vmt-dt-date {
    grid-area: date;
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  .vmt-dt-price {
    grid-area: price;
    align-self: center;
  }
  .vmt-dt-flight {
    grid-area: flight;
    padding-top: 12px;
    border-top: 1px dashed var(--dt-line);
  }
  .vmt-dt-flight:empty {
    display: none;
  }
  .vmt-dt-act {
    grid-area: act;
    margin-top: 0;
  }
  #wrapper a.vmt-dt-btn {
    width: 100%;
  }
}

/* =====================================================================
   Trang /lich-khoi-hanh/ (page-lich-khoi-hanh.php): toàn chiều rộng, chỉ dữ liệu, có chế độ toàn màn hình.
   ===================================================================== */
.vmt-lkh-page {
  background: #f6f8f7;
}
.vmt-lkh {
  box-sizing: border-box;
  width: 100%;
  padding: 20px clamp(12px, 2.4vw, 36px) 48px;
  background: #f6f8f7;
}
.vmt-lkh-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin: 0 0 14px;
}
#wrapper .vmt-lkh-heading h1 {
  margin: 0;
  color: var(--vmt-ink, #111827);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  text-transform: none;
}
#wrapper .vmt-lkh-heading p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 14px;
}
.vmt-lkh-heading b {
  color: var(--vmt-ink, #111827);
  font-variant-numeric: tabular-nums;
}
#wrapper .vmt-lkh-full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid rgba(0, 144, 48, 0.18);
  border-radius: 999px;
  background: #fff;
  color: #00852c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
#wrapper .vmt-lkh-full:hover {
  background: #eefaf1;
}
.vmt-lkh-full .vmt-lkh-ic-close,
.vmt-lkh.is-fullscreen .vmt-lkh-full .vmt-lkh-ic-open {
  display: none;
}
.vmt-lkh.is-fullscreen .vmt-lkh-full .vmt-lkh-ic-close {
  display: inline;
}

/* Khung bảng dùng hết chiều rộng trang */
.vmt-lkh .vmt-schedule-app-container {
  max-width: none;
  margin: 0;
  padding: clamp(14px, 1.6vw, 22px);
  box-shadow: none;
}

/* Toàn màn hình: Fullscreen API (:fullscreen) hoặc phủ kín cửa sổ (.is-full, cho trình duyệt không hỗ trợ) */
.vmt-lkh:fullscreen {
  overflow-y: auto;
  padding-top: 16px;
  background: #f6f8f7;
}
.vmt-lkh.is-full {
  position: fixed;
  inset: 0;
  z-index: 100000;
  overflow-y: auto;
  padding-top: 16px;
  -webkit-overflow-scrolling: touch;
}
html.vmt-lkh-lock,
html.vmt-lkh-lock body {
  overflow: hidden;
}

@media (max-width: 640px) {
  .vmt-lkh {
    padding: 14px 10px 36px;
  }
  #wrapper .vmt-lkh-full span {
    display: none;
  }
  #wrapper .vmt-lkh-full {
    padding: 0 11px;
  }
}

/* Phụ thu phòng đơn dưới giá */
.vmt-dt-price small.vmt-dt-single {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0;
  line-height: 1.35;
}
.vmt-dt-single span {
  color: #344054;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* Trang /lich-khoi-hanh/: thanh lọc xuống dòng thay vì cắt chữ trong ô */
.vmt-lkh .vmt-sch-toolbar {
  flex-wrap: wrap;
  align-items: stretch;
}
.vmt-lkh .vmt-sch-search-wrap {
  flex: 1 1 280px;
}
.vmt-lkh .vmt-sch-filters {
  flex: 999 1 760px;
  flex-wrap: wrap;
}
.vmt-lkh .vmt-sch-filters .vmt-sch-control-group {
  flex: 1 1 200px;
  min-width: 200px;
}
.vmt-lkh .vmt-sch-filters .vmt-sch-pagesize-wrap {
  flex: 0 1 170px;
  min-width: 170px;
  max-width: none !important;
}
.vmt-lkh .vmt-sch-view-switch {
  flex: none;
  margin-left: auto;
}

/* Trang độc lập (không header/footer site) */
body.vmt-lkh-standalone {
  margin: 0;
  background: #f6f8f7;
}
body.vmt-lkh-standalone #wrapper,
body.vmt-lkh-standalone #main {
  background: #f6f8f7;
}
.vmt-lkh-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 640px) {
  .vmt-lkh .vmt-sch-filters .vmt-sch-control-group,
  .vmt-lkh .vmt-sch-filters .vmt-sch-pagesize-wrap {
    flex: 1 1 100%;
    min-width: 0;
  }
  .vmt-lkh .vmt-sch-view-switch {
    width: 100%;
    margin-left: 0;
  }
}

/* =====================================================================
   /lich-khoi-hanh/ bản gọn: logo + tiêu đề, thanh lọc chip, bảng mật độ cao.
   (Đặt cuối file để ghi đè các quy tắc .vmt-lkh phía trên.)
   ===================================================================== */
.vmt-lkh {
  padding: 12px 16px 24px;
}
.vmt-lkh-bar {
  margin: 0 0 10px;
  gap: 8px 16px;
}
.vmt-lkh-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
#wrapper .vmt-lkh-logo {
  display: inline-flex;
  flex: none;
  align-items: center;
  padding-right: 14px;
  border-right: 1px solid #e4e7ec;
  color: #00852c;
  font-weight: 800;
  text-decoration: none;
}
.vmt-lkh-logo img {
  display: block;
  width: auto;
  height: 40px;
}
#wrapper .vmt-lkh-heading h1 {
  font-size: 20px;
}
#wrapper .vmt-lkh-heading p {
  margin-top: 2px;
  font-size: 13px;
}
#wrapper .vmt-lkh-full {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

/* Khung chứa: không viền, không đệm (thanh lọc và bảng tự có khung) */
.vmt-lkh .vmt-schedule-app-container {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

/* ---- Thanh lọc ---- */
.vmt-lkh-tools {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(0, 144, 48, 0.1);
  border-radius: 14px;
  background: #fff;
}
.vmt-lkh-tools-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.vmt-lkh-search {
  display: flex;
  flex: 1 1 280px;
  align-items: center;
  gap: 8px;
  height: 38px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #f9fafb;
  color: #00852c;
}
.vmt-lkh-search:focus-within {
  border-color: #009030;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 144, 48, 0.12);
}
#wrapper .vmt-lkh-search input {
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  color: var(--vmt-ink, #111827);
  font-size: 14px;
}
#wrapper .vmt-lkh-count {
  margin: 0;
  color: #667085;
  font-size: 13px;
  white-space: nowrap;
}
.vmt-lkh-count b {
  color: var(--vmt-ink, #111827);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
#wrapper .vmt-lkh-reset {
  min-height: 30px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: #fff1f0;
  color: #b42318;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
#wrapper .vmt-lkh-reset[hidden] {
  display: none;
}
.vmt-lkh .vmt-sch-view-switch {
  margin-left: auto;
}

/* Nhóm chip */
.vmt-lkh-tools-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}
.vmt-lkh-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.vmt-lkh-label {
  flex: none;
  min-width: 44px;
  color: #98a2b3;
  font-size: 12px;
  font-weight: 600;
}
.vmt-lkh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.vmt-lkh-field.is-scroll .vmt-lkh-chips {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 2px;
}
#wrapper .vmt-lkh-chip {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin: 0;
  padding: 0 10px;
  border: 1px solid #e4e7ec;
  border-radius: 999px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
#wrapper .vmt-lkh-chip:hover {
  border-color: rgba(0, 144, 48, 0.45);
  color: #00852c;
}
.vmt-lkh-chip em {
  color: #98a2b3;
  font-size: 11.5px;
  font-style: normal;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
#wrapper .vmt-lkh-chip.is-on {
  border-color: #009030;
  background: #009030;
  color: #fff;
}
.vmt-lkh-chip.is-on em {
  color: rgba(255, 255, 255, 0.8);
}

/* ---- Bảng mật độ cao ---- */
.vmt-lkh .vmt-dt {
  --dt-cols: minmax(0, 1.35fr) 92px minmax(0, 1.6fr) 140px 92px;
  border-radius: 14px;
}
.vmt-lkh .vmt-dt-head,
.vmt-lkh .vmt-dt-row {
  gap: 0 16px;
  padding-left: 14px;
  padding-right: 14px;
}
.vmt-lkh .vmt-dt-head {
  min-height: 36px;
  font-size: 12.5px;
}
.vmt-lkh .vmt-dt-row {
  padding-top: 10px;
  padding-bottom: 10px;
}
.vmt-dt-row[hidden],
.vmt-dt-empty[hidden] {
  display: none;
}
#wrapper .vmt-dt-name {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}
#wrapper .vmt-lkh .vmt-dt-sub {
  margin-top: 4px;
}
#wrapper .vmt-lkh .vmt-dt-chips {
  margin-top: 6px;
}
.vmt-lkh .vmt-dt-logos {
  margin-bottom: 4px;
}
.vmt-lkh .vmt-dt-logo > b,
.vmt-lkh .vmt-dt-logo > img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 10.5px;
}
#wrapper .vmt-lkh .vmt-dt-legs {
  gap: 2px;
}
#wrapper .vmt-lkh a.vmt-dt-btn {
  min-height: 32px;
  padding: 0 14px;
  font-size: 13px;
}

/* Phân trang + số dòng */
.vmt-lkh .vmt-sch-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-top: 10px;
  padding: 0;
  border: 0;
}
.vmt-lkh-pagesize {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #667085;
  font-size: 13px;
  font-weight: 500;
}
#wrapper .vmt-lkh-pagesize select {
  width: auto;
  height: 32px;
  min-height: 0;
  margin: 0;
  padding: 0 28px 0 10px;
  border: 1px solid #e4e7ec;
  border-radius: 8px;
  background-color: #fff;
  font-size: 13px;
  box-shadow: none;
}
.vmt-lkh .vmt-sch-page-nav {
  margin-left: auto;
}

@media (max-width: 1100px) {
  .vmt-lkh .vmt-dt {
    --dt-cols: minmax(0, 1.3fr) 88px minmax(0, 1.5fr) 132px;
  }
}
@media (max-width: 760px) {
  .vmt-lkh .vmt-dt-row {
    padding: 12px;
    margin-bottom: 8px;
  }
  .vmt-lkh-tools {
    position: static;
  }
  .vmt-lkh-field {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
  .vmt-lkh .vmt-sch-view-switch {
    margin-left: 0;
  }
}
@media (max-width: 640px) {
  .vmt-lkh {
    padding: 10px 10px 20px;
  }
  .vmt-lkh-logo img {
    height: 32px;
  }
  #wrapper .vmt-lkh-logo {
    padding-right: 10px;
  }
  #wrapper .vmt-lkh-heading h1 {
    font-size: 18px;
  }
}

/* /lich-khoi-hanh/: nút "Bộ lọc" mở/thu gọn nhóm chip */
#wrapper .vmt-lkh-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
#wrapper .vmt-lkh-toggle:hover,
#wrapper .vmt-lkh-toggle.is-open {
  border-color: rgba(0, 144, 48, 0.45);
  color: #00852c;
}
.vmt-lkh-toggle em {
  min-width: 18px;
  padding: 2px 5px;
  border-radius: 999px;
  background: #009030;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  text-align: center;
}
.vmt-lkh-toggle em[hidden] {
  display: none;
}
.vmt-lkh-caret {
  transition: transform 0.15s ease;
}
.vmt-lkh-toggle.is-open .vmt-lkh-caret {
  transform: rotate(180deg);
}
.vmt-lkh-filters {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #f0f2f5;
}
.vmt-lkh-filters[hidden] {
  display: none;
}

/* /lich-khoi-hanh/: bảng màu 2 tông, nền #EBEFF2 + khung trắng */
body.vmt-lkh-standalone,
body.vmt-lkh-standalone #wrapper,
body.vmt-lkh-standalone #main,
.vmt-lkh,
.vmt-lkh:fullscreen {
  background: #ebeff2;
}
.vmt-lkh-tools,
.vmt-lkh .vmt-dt {
  border: 0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.vmt-lkh .vmt-dt {
  --dt-line: #ebeff2;
}
.vmt-lkh .vmt-dt-head {
  background: #fff;
  border-bottom: 1px solid #ebeff2;
}
.vmt-lkh .vmt-dt-row:hover {
  background: #f7f9fa;
}
#wrapper .vmt-lkh-logo {
  border-right-color: #d5dce2;
}
.vmt-lkh-search {
  border-color: #ebeff2;
  background: #ebeff2;
}
.vmt-lkh-filters {
  border-top-color: #ebeff2;
}
#wrapper .vmt-lkh-chip,
#wrapper .vmt-lkh-toggle {
  border-color: #ebeff2;
  background: #ebeff2;
}
/* Nằm trên nền xám: dùng trắng */
#wrapper .vmt-lkh-pagesize select,
#wrapper .vmt-lkh-full {
  border-color: #fff;
  background-color: #fff;
}
#wrapper .vmt-lkh-chip.is-on {
  border-color: #009030;
  background: #009030;
}
@media (max-width: 760px) {
  .vmt-lkh .vmt-dt {
    background: transparent;
    box-shadow: none;
  }
  .vmt-lkh .vmt-dt-row {
    background: #fff;
    border: 0;
    border-radius: 12px;
  }
}

/* /lich-khoi-hanh/: logo + tiêu đề + tìm kiếm + lọc + chế độ xem + toàn màn hình trên MỘT hàng */
.vmt-lkh .vmt-lkh-tools {
  margin-top: 0;
}
.vmt-lkh-tools-top {
  flex-wrap: nowrap;
}
.vmt-lkh-tools-top .vmt-lkh-brand {
  flex: none;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.vmt-lkh-tools-top .vmt-lkh-logo img {
  height: 34px;
}
#wrapper .vmt-lkh-tools-top .vmt-lkh-logo {
  padding-right: 12px;
}
#wrapper .vmt-lkh-tools-top .vmt-lkh-heading h1 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
  white-space: nowrap;
}
#wrapper .vmt-lkh-tools-top .vmt-lkh-heading p {
  margin: 1px 0 0;
  color: #667085;
  font-size: 12px;
  white-space: nowrap;
}
.vmt-lkh-tools-top .vmt-lkh-search {
  flex: 1 1 200px;
  min-width: 160px;
}
.vmt-lkh-tools-top .vmt-sch-view-switch {
  margin-left: 0;
}
#wrapper .vmt-lkh-tools-top .vmt-lkh-full {
  flex: none;
  min-height: 34px;
  padding: 0 10px;
  border-color: #ebeff2;
  background-color: #ebeff2;
}
.vmt-lkh-tools-top .vmt-lkh-full span {
  display: none; /* chỉ icon, chữ nằm ở title */
}
@media (max-width: 1100px) {
  .vmt-lkh-tools-top {
    flex-wrap: wrap;
  }
  .vmt-lkh-tools-top .vmt-lkh-brand {
    flex: 1 0 100%;
  }
}

/* /lich-khoi-hanh/: popup "Đặt tour" (lich-khoi-hanh-booking.php) */
.vmt-bk {
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: #fff;
  color: #111827;
  box-shadow: 0 24px 48px rgba(16, 24, 40, 0.18);
}
.vmt-bk::backdrop {
  background: rgba(16, 24, 40, 0.45);
}
.vmt-bk-box {
  position: relative;
  padding: 20px 20px 18px;
}
#wrapper .vmt-bk-close,
.vmt-bk-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ebeff2;
  color: #475467;
  cursor: pointer;
}
.vmt-bk-kicker {
  margin: 0 0 2px;
  color: #00852c;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.vmt-bk .vmt-bk-title {
  margin: 0 40px 12px 0;
  font-size: 19px;
  line-height: 1.3;
}
.vmt-bk-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.vmt-bk-meta > div {
  flex: 1 1 120px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #ebeff2;
}
.vmt-bk-meta > div[hidden] {
  display: none;
}
.vmt-bk-meta dt {
  margin: 0;
  color: #667085;
  font-size: 11.5px;
  font-weight: 600;
}
.vmt-bk-meta dd {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.vmt-bk-meta dd.is-price {
  color: #d92d20;
}
.vmt-bk-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.vmt-bk-f {
  display: grid;
  gap: 4px;
  margin: 0;
  color: #344054;
  font-size: 13px;
  font-weight: 600;
}
.vmt-bk-f.is-wide {
  grid-column: 1 / -1;
}
.vmt-bk .wpcf7-form-control-wrap {
  display: block;
}
.vmt-bk input[type="text"],
.vmt-bk input[type="tel"],
.vmt-bk select,
.vmt-bk textarea {
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #d5dce2;
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: #111827;
  font-size: 14px;
  font-weight: 400;
}
.vmt-bk textarea {
  height: auto;
  min-height: 64px;
  resize: vertical;
}
.vmt-bk input:focus,
.vmt-bk select:focus,
.vmt-bk textarea:focus {
  border-color: #009030;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 144, 48, 0.12);
}
.vmt-bk .wpcf7-submit {
  width: 100%;
  min-height: 44px;
  margin: 14px 0 0;
  border: 0;
  border-radius: 10px;
  background: #009030;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  cursor: pointer;
}
.vmt-bk .wpcf7-submit:hover {
  background: #00852c;
}
.vmt-bk .wpcf7-spinner {
  display: block;
  margin: 8px auto 0;
}
.vmt-bk .wpcf7-not-valid-tip {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
}
.vmt-bk .wpcf7 form .wpcf7-response-output {
  margin: 10px 0 0;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13px;
}
.vmt-bk-done {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 16px;
  border-radius: 12px;
  background: #eefaf1;
  color: #00852c;
  text-align: center;
}
.vmt-bk-done[hidden],
.vmt-bk-form[hidden] {
  display: none;
}
.vmt-bk-done span {
  color: #344054;
  font-size: 14px;
}
@media (max-width: 520px) {
  .vmt-bk-fields {
    grid-template-columns: 1fr;
  }
}

/* Logo hãng bay dạng ảnh (assets/images/airlines/*.png, khung 200x80 có lề): hiện theo tỉ lệ ngang, bỏ tên lặp lại */
.vmt-dt .vmt-dt-logo > img,
.vmt-lkh .vmt-dt-logo > img {
  width: auto;
  max-width: 90px;
  height: 34px;
  margin: -6px -4px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
}
.vmt-dt-logo > img + .vmt-dt-logo-name {
  display: none;
}

/* /lich-khoi-hanh/: lọc bằng dropdown (thay hàng chip) */
.vmt-lkh-drops {
  display: flex;
  flex: 0 1 auto;
  flex-wrap: wrap;
  gap: 8px;
}
.vmt-lkh-drop {
  position: relative;
  margin: 0;
}
.vmt-lkh-drop::after {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 7px;
  height: 7px;
  margin-top: -5px;
  border-right: 2px solid #667085;
  border-bottom: 2px solid #667085;
  transform: rotate(45deg);
  pointer-events: none;
  content: "";
}
#wrapper .vmt-lkh-drop select {
  width: auto;
  max-width: 190px;
  height: 38px;
  min-height: 0;
  margin: 0;
  padding: 0 30px 0 12px;
  border: 1px solid #ebeff2;
  border-radius: 10px;
  background: #ebeff2;
  box-shadow: none;
  color: #344054;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 38px;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
#wrapper .vmt-lkh-drop select:focus {
  border-color: #009030;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(0, 144, 48, 0.12);
}
#wrapper .vmt-lkh-drop.is-on select {
  border-color: #009030;
  background: #fff;
  color: #00852c;
}
.vmt-lkh-drop.is-on::after {
  border-color: #00852c;
}
.vmt-lkh-tools-top .vmt-lkh-search {
  flex: 1 1 180px;
}
@media (max-width: 1350px) {
  .vmt-lkh-tools-top {
    flex-wrap: wrap;
  }
  .vmt-lkh-tools-top .vmt-lkh-brand {
    flex: 1 0 100%;
  }
}
@media (max-width: 640px) {
  .vmt-lkh-drops {
    display: grid;
    flex: 1 0 100%;
    grid-template-columns: 1fr 1fr;
  }
  #wrapper .vmt-lkh-drop select {
    width: 100%;
    max-width: none;
  }
}

/* /lich-khoi-hanh/: hàng 2 của thanh lọc = 4 dropdown + Xóa lọc */
.vmt-lkh-tools-row2 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.vmt-lkh-tools-top .vmt-lkh-search {
  flex: 1 1 260px;
}
@media (max-width: 1350px) {
  .vmt-lkh-tools-top {
    flex-wrap: nowrap;
  }
  .vmt-lkh-tools-top .vmt-lkh-brand {
    flex: none;
  }
}
@media (max-width: 1100px) {
  .vmt-lkh-tools-top {
    flex-wrap: wrap;
  }
  .vmt-lkh-tools-top .vmt-lkh-brand {
    flex: 1 0 100%;
  }
}

/* /lich-khoi-hanh/: chế độ "Theo tour" - mỗi tour một thẻ, liệt kê các đợt khởi hành của tour đó */
.vmt-tg {
  --dt-green: #009030;
  --dt-green-text: #00852c;
  --dt-tint: #eefaf1;
  --dt-ink: var(--vmt-ink, #111827);
  --dt-line: #ebeff2;
  --dt-muted: #667085;
  --dt-price: var(--vmt-price-color, #dc2626);
  display: grid;
  gap: 12px;
}
.vmt-tg-card {
  overflow: hidden;
  border: 1px solid var(--dt-line);
  border-radius: 12px;
  background: #fff;
}
.vmt-tg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--dt-line);
  background: #f9fafb;
}
.vmt-tg-thumb {
  flex: none;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
}
.vmt-tg-info {
  min-width: 0;
  flex: 1;
}
#wrapper .vmt-tg-name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
#wrapper .vmt-tg-name a {
  color: var(--vmt-ink, #111827);
}
#wrapper .vmt-tg-name a:hover {
  color: var(--vmt-accent, #ff440b);
}
.vmt-tg-head .vmt-dt-sub {
  margin: 4px 0 0;
}
.vmt-tg-count {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  background: #eefaf1;
  color: #00852c;
  font-size: 12px;
  font-weight: 700;
}
#wrapper .vmt-tg-deps {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vmt-tg-dep {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 110px 130px 110px;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 8px 16px;
  border-top: 1px solid var(--dt-line);
}
.vmt-tg-dep:first-child {
  border-top: 0;
}
.vmt-tg-dep.is-past {
  opacity: 0.55;
}
.vmt-tg-date small {
  display: block;
  color: var(--dt-muted);
  font-size: 11px;
}
.vmt-tg-date b {
  font-size: 14px;
  font-weight: 700;
}
.vmt-tg-fl {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.vmt-tg-fl .vmt-dt-logos {
  margin: 0;
}
.vmt-tg-fl small {
  color: var(--dt-muted);
  font-size: 12px;
}
.vmt-tg-seat {
  color: var(--dt-muted);
  font-size: 12px;
}
.vmt-tg-price {
  color: var(--dt-price);
  font-size: 14px;
  font-weight: 700;
  text-align: right;
}
.vmt-tg-act {
  text-align: right;
}
.vmt-tg-foot {
  padding: 8px 16px 12px;
  border-top: 1px solid var(--dt-line);
}
@media (max-width: 760px) {
  .vmt-tg-dep {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }
  .vmt-tg-fl,
  .vmt-tg-seat {
    grid-column: 1;
  }
  .vmt-tg-price,
  .vmt-tg-act {
    grid-column: 2;
  }
}

/* Popup "Đặt tour": bản làm đẹp (ghi đè các luật cũ ở trên) */
.vmt-bk {
  width: min(560px, calc(100vw - 24px));
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 30px 70px rgba(16, 24, 40, 0.28), 0 0 0 1px rgba(16, 24, 40, 0.04);
}
.vmt-bk[open] {
  animation: vmt-bk-in 0.18s ease-out;
}
.vmt-bk::backdrop {
  background: rgba(16, 24, 40, 0.5);
  backdrop-filter: blur(3px);
}
@keyframes vmt-bk-in {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.vmt-bk-box {
  padding: 0 0 22px;
}
.vmt-bk-box > .vmt-bk-kicker,
.vmt-bk-box > .vmt-bk-title,
.vmt-bk-box > .vmt-bk-meta {
  position: relative;
}
/* Dải đầu popup: nền xanh nhạt có lưới mờ, chứa nhãn + tên tour + đợt khởi hành/giá */
.vmt-bk-box::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 150px;
  background:
    linear-gradient(to right, rgba(255, 255, 255, 0.7) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 1px, transparent 1px) 0 0 / 10px 10px,
    linear-gradient(135deg, #eefaf1, #d6f1de);
  pointer-events: none;
}
.vmt-bk .vmt-bk-kicker {
  display: inline-block;
  margin: 22px 0 8px 24px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #fff;
  color: #00852c;
  font-size: 11px;
  letter-spacing: 0.06em;
  box-shadow: 0 0 0 1px rgba(0, 144, 48, 0.18);
}
.vmt-bk .vmt-bk-title {
  margin: 0 64px 14px 24px;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
}
.vmt-bk-meta {
  gap: 10px;
  margin: 0 24px 18px;
}
.vmt-bk-meta > div {
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 0 0 1px rgba(16, 24, 40, 0.05);
}
#wrapper .vmt-bk-meta dt,
.vmt-bk-meta dt {
  display: block;
  margin: 0;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
#wrapper .vmt-bk-meta dd,
.vmt-bk-meta dd {
  display: block;
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 700;
}
.vmt-bk-meta dd.is-price {
  font-size: 17px;
}
.vmt-bk-close {
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(16, 24, 40, 0.06);
}
.vmt-bk-close:hover {
  background: #fff;
  color: #111827;
}
.vmt-bk-form,
.vmt-bk-done {
  margin-inline: 24px;
}
/* CF7 bọc các ô trong <p>/<br>: bỏ để lưới 2 cột hoạt động */
.vmt-bk-fields > p {
  display: contents;
  margin: 0;
}
.vmt-bk-fields br {
  display: none;
}
.vmt-bk-fields {
  gap: 14px 14px;
}
.vmt-bk-f {
  gap: 6px;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
}
.vmt-bk input[type="text"],
.vmt-bk input[type="tel"],
.vmt-bk select,
.vmt-bk textarea {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #e0e5ea;
  border-radius: 12px;
  background: #f9fafb;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.vmt-bk textarea {
  min-height: 84px;
}
.vmt-bk input::placeholder,
.vmt-bk textarea::placeholder {
  color: #98a2b3;
}
.vmt-bk input:focus,
.vmt-bk select:focus,
.vmt-bk textarea:focus {
  background: #fff;
}
.vmt-bk .wpcf7-submit {
  min-height: 50px;
  margin-top: 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0aa43a, #009030);
  box-shadow: 0 6px 16px rgba(0, 144, 48, 0.28);
  font-size: 15.5px;
  transition: transform 0.12s, box-shadow 0.12s;
}
.vmt-bk .wpcf7-submit:hover {
  background: linear-gradient(180deg, #099a36, #00852c);
  box-shadow: 0 8px 20px rgba(0, 144, 48, 0.34);
}
.vmt-bk .wpcf7-submit:active {
  transform: translateY(1px);
}
@media (max-width: 520px) {
  .vmt-bk-meta { flex-direction: column; }
  .vmt-bk .vmt-bk-title { font-size: 19px; }
}
.vmt-bk .wpcf7-spinner {
  display: none;
}
.vmt-bk form.submitting .wpcf7-spinner {
  display: block;
}
.vmt-bk .wpcf7 form .wpcf7-response-output:empty {
  display: none;
}
