/**
 * Tour page layout. Loaded on single tours only, after style.css.
 * Markup: woocommerce/single-product/layouts/product-no-sidebar.php and
 * inc/functions/tour-display.php.
 */

/* Smooth scroll to anchors on tour page */
html {
  scroll-behavior: smooth;
}

/* ===== Đầu trang ===== */
.single-product .product-page-title {
  background: #fff;
}
.single-product .product-page-title .page-title-inner {
  padding-block: 28px 8px;
}
.single-product h1.product-title {
  color: var(--vmt-ink);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-transform: none;
}

.vmt-tour {
  max-width: 1240px;
  margin-inline: auto;
  padding: 0 15px 72px;
  background: #fff;
}

/* ===== Thông tin nhanh ===== */
.vmt-tour-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}
.vmt-tour-facts li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--vmt-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}
.vmt-tour-facts i {
  color: var(--vmt-accent);
  font-size: 20px;
}
.vmt-tour-facts small {
  display: block;
  color: var(--vmt-ink-2);
  font-size: 13px;
  font-weight: 400;
}
.vmt-tour-fact-route {
  flex: 1 1 320px;
}
.vmt-tour-facts a {
  color: inherit;
}

/* ===== Ảnh Mosaic Airbnb: 1 lớn bên trái (chiếm 2 cột 2 hàng), 4 nhỏ bên phải (2x2) ===== */
.vmt-tour-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 210px);
  gap: 10px;
  overflow: hidden;
  margin-bottom: 32px;
  border-radius: var(--vmt-radius);
}
.vmt-tour-shot {
  display: block;
  overflow: hidden;
  min-height: 0;
  border-radius: 8px;
  position: relative;
}
.vmt-tour-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .9s var(--vmt-ease);
}
.vmt-tour-shot:hover img {
  transform: scale(1.04);
}

/* Ẩn ảnh từ thứ 6 trở đi trong lưới mosaic chính */
.vmt-tour-shot:nth-child(n + 6) {
  display: none;
}

/* Mặc định / 5 ảnh: Ảnh 1 chiếm 2 cột trái x 2 hàng, 4 ảnh sau mỗi ảnh 1 ô (2x2) */
.vmt-tour-gallery .vmt-tour-shot:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* 1 ảnh: Không trải full 1240px vì ảnh 800x600 (4:3), giới hạn max-width để giữ đúng tỷ lệ chuẩn và căn giữa */
.vmt-tour-gallery[data-count="1"] {
  display: flex;
  justify-content: center;
  max-width: 800px;
  /* margin-inline: auto; */
  margin-bottom: 32px;
}
.vmt-tour-gallery[data-count="1"] .vmt-tour-shot {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4 / 3;
  border-radius: var(--vmt-radius);
}
.vmt-tour-gallery[data-count="1"] .vmt-tour-shot:first-child {
  grid-column: auto;
  grid-row: auto;
}

/* 2 ảnh: Chia đôi 50 / 50 cân đối và sang trọng */
.vmt-tour-gallery[data-count="2"] {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 430px;
}
.vmt-tour-gallery[data-count="2"] .vmt-tour-shot:first-child {
  grid-column: span 1;
  grid-row: span 1;
}

/* 3 ảnh: 1 ảnh lớn bên trái (chiếm 60% và full chiều cao) + 2 ảnh bên phải xếp chồng đều nhau */
.vmt-tour-gallery[data-count="3"] {
  grid-template-columns: 3fr 2fr;
  grid-template-rows: repeat(2, 210px);
}
.vmt-tour-gallery[data-count="3"] .vmt-tour-shot:first-child {
  grid-column: span 1;
  grid-row: span 2;
}

/* 4 ảnh: 1 ảnh lớn tiêu điểm bên trái (50%) + 3 ảnh bên phải (1 ảnh trên full chiều ngang, 2 ảnh dưới chia đôi) */
.vmt-tour-gallery[data-count="4"] {
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 210px);
}
.vmt-tour-gallery[data-count="4"] .vmt-tour-shot:first-child {
  grid-column: span 1;
  grid-row: span 2;
}
.vmt-tour-gallery[data-count="4"] .vmt-tour-shot:nth-child(2) {
  grid-column: span 2;
  grid-row: span 1;
}
.vmt-tour-gallery[data-count="4"] .vmt-tour-shot:nth-child(3),
.vmt-tour-gallery[data-count="4"] .vmt-tour-shot:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}

/* ===== Hai cột ===== */
.vmt-tour-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 56px;
  align-items: start;
}
.vmt-tour-side {
  position: sticky;
  top: calc(var(--vmt-sticky-top, 0px) + 24px);
}
.vmt-tour-card {
  width: auto;
  max-width: none;
  padding: 24px;
  border-radius: var(--vmt-radius);
  background: var(--vmt-tint);
}

/* ===== Mục lục ===== */
.vmt-tour-nav {
  position: sticky;
  /* --vmt-sticky-top: chiều cao header dính + thanh admin (header-float.css), để mục lục nằm ngay dưới header */
  top: var(--vmt-sticky-top, 0px);
  z-index: 5;
  display: flex;
  gap: 32px;
  margin-bottom: 24px;
  background: #fff;
  box-shadow: inset 0 -1px 0 rgba(35, 32, 29, .1);
}
.vmt-tour-nav a {
  padding: 14px 0;
  color: var(--vmt-ink-2);
  font-size: 16px;
  font-weight: 500;
  transition: color .2s;
}
.vmt-tour-nav a:hover {
  color: var(--vmt-accent-strong);
}

/* ===== Tab Woo thành các phần liên tiếp ===== */
.vmt-tour .woocommerce-tabs > ul.tabs.product-tabs {
  display: none;
}
.vmt-tour .tab-panels,
.vmt-tour .woocommerce-tabs {
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
}
.vmt-tour .tab-panels .panel {
  display: block !important;
  padding: 0;
}
.vmt-tour #tab-description,
.vmt-tour #tab-reviews,
.vmt-tour #vmt-itinerary {
  scroll-margin-top: calc(var(--vmt-sticky-top, 0px) + 64px);
}
.vmt-tour #tab-reviews {
  margin-top: 56px;
}

/* ===== Lịch trình ===== */
.vmt-days {
  margin-block: 48px;
}
.vmt-day-item {
  border-top: 1px solid rgba(35, 32, 29, .1);
}
.vmt-day-item:last-child {
  border-bottom: 1px solid rgba(35, 32, 29, .1);
}
.vmt-day-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.vmt-day-item summary::-webkit-details-marker {
  display: none;
}
.vmt-day-item summary::after {
  content: "+";
  flex: none;
  color: var(--vmt-accent);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}
.vmt-day-item[open] summary::after {
  content: "\2212";
}
.single-product .entry-content .vmt-day-item h3.vmt-day {
  margin: 0;
  padding: 0;
  background: none;
  font-size: 18px;
}
.vmt-day-body {
  padding-bottom: 24px;
}

/* ===== Thẻ đặt tour ===== */
.vmt-tour-card .woocommerce-product-rating {
  margin-bottom: 12px;
}
.vmt-tour-price > span {
  display: block;
  color: var(--vmt-ink-2);
  font-size: 15px;
}
.vmt-tour-price strong,
.vmt-tour-price .amount {
  color: var(--vmt-price-color, #dc2626);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.vmt-departures-title {
  margin: 20px 0 4px;
  color: var(--vmt-ink);
  font-size: 16px;
  font-weight: 600;
}
.vmt-departures {
  margin: 0;
  padding: 0;
  list-style: none;
}
.vmt-tour-card .vmt-departures li,
.tour-info .vmt-departures li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 12px;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--vmt-radius-sm);
  background: #fff;
  color: var(--vmt-ink);
  font-size: 15px;
  line-height: 1.4;
}
.vmt-departures {
  display: grid;
  gap: 6px;
}
.vmt-departure-price,
.vmt-departure-price .amount {
  color: var(--vmt-price-color, #dc2626);
  font-size: 15px;
  font-weight: 600;
}
.vmt-departure-remain {
  grid-column: 1 / -1;
  color: var(--vmt-ink-2);
  font-size: 13px;
}
.vmt-tour-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 0;
}
.vmt-tour-actions .button {
  width: 100%;
  margin: 0;
  text-transform: none;
}
.vmt-button-quiet.button {
  background: var(--vmt-tint);
  color: var(--vmt-ink);
  transition: background-color .2s;
}
.vmt-button-quiet.button:hover {
  background: #ececec;
  color: var(--vmt-ink);
}
.vmt-tour-actions-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
}
#wrapper .vmt-tour-actions .vmt-button-line.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding-inline: 10px;
  border: 0;
  background: #fff;
  color: var(--vmt-ink);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color .2s;
}
#wrapper .vmt-tour-actions .vmt-button-line.button:hover {
  background: #fff;
  color: var(--vmt-accent);
}
.vmt-button-line i {
  color: var(--vmt-accent);
  font-size: 16px;
}
.vmt-button-line .vmt-icon-zalo {
  flex: none;
  width: 20px;
  height: 20px;
  color: #0068ff; /* xanh Zalo */
}
.vmt-tour-phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 6px;
  color: var(--vmt-ink-2);
  font-size: 15px;
}
.vmt-tour-phone i {
  color: var(--vmt-accent);
  font-size: 14px;
}
.vmt-tour-phone strong {
  color: var(--vmt-ink);
  font-weight: 600;
}
.vmt-tour-phone:hover strong {
  color: var(--vmt-accent);
}

/* ===== Khối phụ cuối trang ===== */
.vmt-tour-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-top: 56px;
}

/* ===== Điện thoại và tablet ===== */
@media (max-width: 960px) {
  .vmt-tour-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .vmt-tour-side {
    position: static;
    order: -1;
  }
  .vmt-tour-gallery {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 90px;
    margin-bottom: 24px;
  }
  .vmt-tour-shot:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .vmt-tour-gallery .vmt-tour-shot:not(:first-child) {
    grid-column: auto;
  }
  .vmt-tour-shot:nth-child(n + 5) {
    display: none;
  }
  .vmt-tour-gallery[data-count="1"],
  .vmt-tour-gallery[data-count="2"] {
    grid-template-columns: 1fr;
    grid-template-rows: 260px;
  }
  .vmt-tour-gallery[data-count="2"] .vmt-tour-shot:nth-child(2) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vmt-tour-shot img {
    transition: none;
  }
  .vmt-tour-shot:hover img {
    transform: none;
  }
}

/* ===== Ghi đè nền, tab và nút của style.css ===== */
.single-product #main,
.single-product #wrapper {
  background: #fff;
}
.single-product .shop-container > .container {
  max-width: 1240px;
}
.vmt-tour .woocommerce-tabs > ul.tabs.product-tabs {
  display: none !important;
}
.vmt-tour-card .vmt-departures li,
.tour-info .vmt-departures li {
  margin-left: 0;
}
.vmt-tour-price .amount,
.vmt-departure-price {
  white-space: nowrap;
}
.vmt-tour-card .amount,
.vmt-tour-card .woocommerce-Price-currencySymbol {
  text-decoration: none;
}
.vmt-tour-actions .button {
  border-radius: var(--vmt-radius-sm);
  box-shadow: none;
}

/* ===== Bản đồ lộ trình tương tác 2D Leaflet ===== */
.vmt-route {
  overflow: hidden;
  margin: 0 0 28px;
  border-radius: 18px;
  background: #f5fbf7;
  border: 1px solid #d9efe1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.vmt-route-stage {
  position: relative;
}
.vmt-route-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 450;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 144, 48, 0.14);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1);
  color: var(--vmt-accent-strong, #007a28);
  font-size: 12.5px;
  font-weight: 700;
  pointer-events: none;
}
.vmt-route.is-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
  z-index: 999999 !important;
  display: flex !important;
  flex-direction: column !important;
  background: #fff !important;
}
.vmt-route.is-fullscreen .vmt-route-stage {
  flex: 1 1 auto !important;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.vmt-route.is-fullscreen .vmt-route-map-canvas {
  height: 0 !important;
  flex: 1 1 auto !important;
}
.vmt-route.is-fullscreen .vmt-route-stops {
  flex: 0 0 auto !important;
  max-height: 150px;
  overflow-y: auto;
  background: #f5fbf7;
  border-top: 1px solid #d9efe1;
}
body.vmt-map-locked {
  overflow: hidden !important;
}
.vmt-route-map-canvas .leaflet-control-zoom,
.vmt-route-map-canvas .vmt-fullscreen-btn-wrap,
.vmt-route-map-canvas .vmt-reset-btn-wrap {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.1) !important;
}
.vmt-route-map-canvas .leaflet-control-zoom a,
.vmt-fullscreen-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 34px !important;
  height: 34px !important;
  line-height: 34px !important;
  color: #1f2937 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  text-decoration: none !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.vmt-route-map-canvas .leaflet-control-zoom a:hover,
.vmt-fullscreen-btn:hover {
  background: #eefaf1 !important;
  color: var(--vmt-accent-strong, #007a28) !important;
}
.vmt-route-map-canvas {
  width: 100%;
  height: 430px;
  background: #d4e7f5;
  position: relative;
  z-index: 1;
}
.vmt-map-scroll-hint {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.48);
  backdrop-filter: blur(2px);
  color: #fff;
  font-size: 14.5px;
  font-weight: 500;
  padding: 16px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1000;
}
.vmt-map-scroll-hint.is-active {
  opacity: 1;
}

.vmt-pin-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  padding: 3px 10px 3px 4px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14), 0 1px 2px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--vmt-ink, #1f2328);
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.vmt-leaflet-pin.dir-right .vmt-pin-label {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}
.vmt-leaflet-pin.dir-left .vmt-pin-label {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}
.vmt-leaflet-pin.dir-top .vmt-pin-label {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
}
.vmt-leaflet-pin.dir-bottom .vmt-pin-label {
  left: 50%;
  top: 22px;
  transform: translateX(-50%);
}

/* Animation for the delicate pulsing dash along the route */
@keyframes vmtFlowingDash {
  to {
    stroke-dashoffset: -40;
  }
}
.vmt-route-flowing-pulse {
  stroke-dasharray: 4, 10 !important;
  animation: vmtFlowingDash 1.8s linear infinite;
  pointer-events: none;
}

/* Pulsing radar ripple at pin dots */
@keyframes vmtPinRipple {
  0% {
    transform: scale(0.9);
    opacity: 0.75;
  }
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}
.vmt-leaflet-custom-marker {
  background: transparent;
  border: none;
  cursor: pointer;
}
.vmt-leaflet-pin {
  position: relative;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vmt-pin-dot-wrap {
  position: relative;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vmt-pin-dot {
  width: 14px;
  height: 14px;
  background: #ffffff;
  border: 3.5px solid var(--vmt-accent, #009030);
  border-radius: 50% !important;
  box-shadow: 0 2px 8px rgba(0, 144, 48, 0.35);
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease, background 0.2s ease;
}
.vmt-leaflet-pin.is-start .vmt-pin-dot {
  background: var(--vmt-accent, #009030);
  border-color: #ffffff;
  box-shadow: 0 0 0 2.5px var(--vmt-accent, #009030), 0 3px 10px rgba(0, 144, 48, 0.4);
}
.vmt-pin-ripple {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--vmt-accent, #009030) 40%, transparent);
  animation: vmtPinRipple 2.8s cubic-bezier(0.2, 0.8, 0.4, 1) infinite;
  pointer-events: none;
}
.vmt-pin-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vmt-accent, #009030);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.vmt-pin-name {
  color: var(--vmt-ink, #1f2328);
}
.vmt-leaflet-custom-marker:hover .vmt-pin-dot,
.vmt-leaflet-custom-marker.is-highlighted .vmt-pin-dot {
  transform: scale(1.25);
  background: var(--vmt-accent, #009030);
  border-color: #ffffff;
}
.vmt-leaflet-custom-marker:hover .vmt-pin-label,
.vmt-leaflet-custom-marker.is-highlighted .vmt-pin-label {
  border-color: var(--vmt-accent, #009030);
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(0, 144, 48, 0.24);
}

/* Interactive stop cards below the map */
.single-product .entry-content .vmt-route-stops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 16px;
  list-style: none;
  border-top: 1px solid #d9efe1;
}
.single-product .entry-content .vmt-route-stops li {
  margin: 0;
  list-style: none;
}
.single-product .entry-content .vmt-route-stops a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e1f1e7;
  color: var(--vmt-ink, #1f2328);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.single-product .entry-content .vmt-route-stops a::before {
  content: none;
}
.single-product .entry-content .vmt-route-stops a:hover {
  transform: translateY(-1px);
  border-color: var(--vmt-accent, #009030);
  box-shadow: 0 4px 12px rgba(0, 144, 48, 0.12);
}
.vmt-stop-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #eaf7ee;
  color: var(--vmt-accent-strong, #007a28);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  transition: background 0.16s ease, color 0.16s ease;
}
.single-product .entry-content .vmt-route-stops a:hover .vmt-stop-num {
  background: var(--vmt-accent, #009030);
  color: #ffffff;
}
.vmt-stop-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.vmt-stop-meta small {
  color: var(--vmt-ink-2, #64748b);
  font-size: 11.5px;
  font-weight: 500;
}
.vmt-stop-meta strong {
  color: var(--vmt-ink, #1f2328);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 767px) {
  .vmt-route-map-canvas {
    height: 340px;
  }
  .single-product .entry-content .vmt-route-stops {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }
}
.vmt-day-item {
  scroll-margin-top: calc(var(--vmt-sticky-top, 0px) + 64px);
}

@media (prefers-reduced-motion: reduce) {
  .vmt-route-line {
    animation: none;
  }
}

.vmt-tour-actions .button.button-in-details {
  border-radius: var(--vmt-radius-sm) !important;
}

/* flatsome.css và style.css nạp sau file này, nên selector cần mạnh hơn */
.single-product h1.product-title.product_title {
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
}
.vmt-tour-card.vmt-tour-card {
  padding: 24px;
}
.vmt-route.vmt-route {
  border-radius: var(--vmt-radius);
}
.product #tab-description figure.vmt-route {
  border-radius: var(--vmt-radius);
}

/* Ảnh tour chuẩn 800x600 (4:3) - Chỉ áp dụng khi gallery ở màn hình nhỏ */
@media (max-width: 960px) {
  .vmt-tour-gallery {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: repeat(2, 160px) !important;
  }
  .vmt-tour-gallery .vmt-tour-shot:first-child {
    grid-column: span 1 !important;
    grid-row: span 2 !important;
  }
  .vmt-tour-gallery .vmt-tour-shot:nth-child(n + 4) {
    display: none;
  }
}
@media (max-width: 550px) {
  .vmt-tour-gallery {
    grid-template-columns: 1fr !important;
    grid-template-rows: 240px !important;
  }
  .vmt-tour-gallery .vmt-tour-shot:not(:first-child) {
    display: none;
  }
}

/* ===== Ít ảnh (1-2) trong trường hợp đặt trong container cũ (fallback) ===== */

/* ===== Mục lục nhiều mục: cuộn ngang, mục đang xem có gạch cam ===== */
.vmt-tour-nav {
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.vmt-tour-nav::-webkit-scrollbar {
  display: none;
}
.vmt-tour-nav a {
  flex: none;
  white-space: nowrap;
}
.vmt-tour-nav a.is-active {
  color: var(--vmt-ink);
  box-shadow: inset 0 -2px 0 var(--vmt-accent);
}

/* ===== Các tab tùy chỉnh (plugin Yikes) thành các phần liên tiếp ===== */
.vmt-tour .woocommerce-Tabs-panel {
  scroll-margin-top: calc(var(--vmt-sticky-top, 0px) + 64px);
}
.vmt-tour .tab-panels .panel + .panel {
  margin-top: 48px;
}
.vmt-tour .vmt-note-title {
  margin: 0 0 14px;
  color: var(--vmt-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: none;
}

/* Flatsome ẩn mọi panel không phải tab đang chọn (height 0, opacity 0, visibility hidden);
   ở đây các tab là các phần liên tiếp nên phải hiện hết. */
.vmt-tour .tab-panels .panel:not(.active) {
  height: auto;
  overflow: visible;
  opacity: 1;
  visibility: visible;
}

/* Khi đã đăng nhập, thanh admin cố định che mất mục lục dính (header nổi đã tính sẵn trong --vmt-sticky-top) */
.admin-bar .vmt-tour-nav {
  top: var(--vmt-sticky-top, 32px);
}
@media (max-width: 782px) {
  .admin-bar .vmt-tour-nav {
    top: var(--vmt-sticky-top, 46px);
  }
}

/* ===== Mosaic 3+ ảnh trong cột nội dung: thấp hơn, ô cố định chiều cao ===== */
@media (min-width: 961px) {
  .vmt-tour-main .vmt-tour-gallery:not([data-count="1"], [data-count="2"]) {
    grid-template-rows: repeat(2, 150px);
    max-width: none;
  }
  .vmt-tour-main .vmt-tour-gallery:not([data-count="1"], [data-count="2"]) .vmt-tour-shot,
  .vmt-tour-main .vmt-tour-gallery:not([data-count="1"], [data-count="2"]) .vmt-tour-shot:not(:first-child) {
    aspect-ratio: auto;
  }
  .vmt-tour-main .vmt-tour-gallery:not([data-count="1"], [data-count="2"]) .vmt-tour-shot:first-child {
    grid-row: span 2;
  }
  /* 3 ảnh: ảnh lớn bên trái, hai ảnh xếp dọc bên phải */
  .vmt-tour-main .vmt-tour-gallery[data-count="3"] {
    grid-template-columns: 3fr 2fr;
  }
  .vmt-tour-main .vmt-tour-gallery[data-count="3"] .vmt-tour-shot:not(:first-child) {
    grid-column: auto;
  }
}

/* ===== Tab tùy chỉnh thu gọn / mở rộng (assets/js/tour-sections.js) ===== */
.vmt-tour .tab-panels .panel.is-collapsible {
  margin-top: 0;
  border-bottom: 1px solid rgba(35, 32, 29, .1);
}
.vmt-tour .tab-panels .panel:not(.is-collapsible) + .panel.is-collapsible {
  border-top: 1px solid rgba(35, 32, 29, .1);
}
.vmt-tour .is-collapsible > .vmt-note-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 18px 0;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
}
.vmt-tour .is-collapsible > .vmt-note-title:hover {
  color: var(--vmt-accent-strong);
}
.vmt-tour .is-collapsible > .vmt-note-title:focus-visible {
  outline: 2px solid var(--vmt-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
.vmt-tour .is-collapsible > .vmt-note-title::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .25s var(--vmt-ease);
}
.vmt-tour .is-collapsible.is-open > .vmt-note-title::after {
  transform: translateY(2px) rotate(-135deg);
}
.vmt-panel-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--vmt-ease);
}
.is-open > .vmt-panel-body {
  grid-template-rows: 1fr;
}
.vmt-panel-inner {
  min-height: 0;
  overflow: hidden;
}
.vmt-panel-inner::after {
  content: "";
  display: block;
  height: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .vmt-panel-body,
  .vmt-tour .is-collapsible > .vmt-note-title::after {
    transition: none;
  }
}

/* ===== Thẻ "Những thông tin cần lưu ý": các tab tùy chỉnh gom thành một danh sách thu gọn ===== */
/* .vmt-notes {
  margin-top: 48px;
  padding: 24px;
  border-radius: var(--vmt-radius);
  background: var(--vmt-tint);
} */
.vmt-notes-title {
  margin: 0 0 16px;
  color: var(--vmt-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: none;
}
.vmt-notes-card {
  padding: 4px 24px;
  border-radius: var(--vmt-radius);
  background: #f5f5f5;
}
.vmt-tour .vmt-notes-card > .panel.is-collapsible {
  border-bottom: 1px solid rgba(35, 32, 29, .08);
}
.vmt-tour .vmt-notes-card > .panel.is-collapsible:last-child {
  border-bottom: 0;
}
.vmt-tour .vmt-notes .is-collapsible > .vmt-note-title {
  padding: 16px 0;
  font-size: 17px;
}
.vmt-tour .vmt-notes .is-collapsible > .vmt-note-title::after {
  width: 8px;
  height: 8px;
  border-width: 1.5px;
  color: var(--vmt-ink-2);
}
@media (max-width: 849px) {
  .vmt-notes {
    /* padding: 16px; */
  }
  .vmt-notes-card {
    padding-inline: 16px;
  }
}

/* Đánh giá là một tab (assets/js/tour-nav.js): mặc định ẩn, chỉ hiện khi chọn tab Đánh giá. */
.vmt-tour-main.has-rtab:not(.is-reviews) #tab-reviews {
  display: none !important;
}
.vmt-tour-main.has-rtab.is-reviews > :not(.vmt-tour-nav, .woocommerce-tabs),
.vmt-tour-main.has-rtab.is-reviews .tab-panels > :not(#tab-reviews) {
  display: none !important;
}
.vmt-tour-main.has-rtab.is-reviews #tab-reviews {
  margin-top: 0;
}

/* Điểm neo #reviews: không chiếm chỗ, nhưng chừa khoảng trống dưới mục lục dính khi cuộn tới */
.vmt-tour #reviews {
  display: block;
  scroll-margin-top: calc(var(--vmt-sticky-top, 0px) + 64px);
}

/* ===== Khu đánh giá (WooCommerce): danh sách rồi đến form, dạng thẻ ===== */
.vmt-tour #reviews.woocommerce-Reviews {
  display: block;
  margin: 0;
}
.vmt-tour #reviews #comments,
.vmt-tour #reviews #review_form_wrapper {
  flex: none;
  width: 100%;
  max-width: none;
  padding: 0;
}
.vmt-tour #reviews .woocommerce-Reviews-title {
  margin: 0 0 20px;
  color: var(--vmt-ink);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.01em;
  text-transform: none;
}
.vmt-tour #reviews .woocommerce-Reviews-title span {
  color: inherit;
}
.vmt-tour #reviews .commentlist {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}
.vmt-tour #reviews .commentlist > li {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  list-style: none;
}
.vmt-tour #reviews .review-item {
  gap: 16px;
  margin: 0;
  padding: 20px;
  border: 1px solid rgba(35, 32, 29, .1);
  border-radius: var(--vmt-radius);
  background: #fff;
}
.vmt-tour #reviews .review-item .flex-col:first-child {
  flex: none;
  margin: 0;
  padding: 0;
}
.vmt-tour #reviews .review-item img.avatar {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.vmt-tour #reviews .comment-text {
  min-width: 0;
  margin: 0;
  padding: 0;
}
.vmt-tour #reviews .comment-text .star-rating {
  float: none;
  margin: 0 0 4px;
}
.vmt-tour #reviews .comment-text .meta {
  margin: 0 0 8px;
  color: var(--vmt-ink-3);
  font-size: 14px;
}
.vmt-tour #reviews .woocommerce-review__author {
  color: var(--vmt-ink);
  font-size: 16px;
  font-weight: 600;
}
.vmt-tour #reviews .woocommerce-review__dash {
  display: none;
}
.vmt-tour #reviews .woocommerce-review__published-date::before {
  content: "· ";
}
.vmt-tour #reviews .comment-text .description,
.vmt-tour #reviews .comment-text .description p {
  margin: 0;
  color: var(--vmt-ink);
  font-size: 15px;
  line-height: 1.6;
}
.vmt-tour #reviews .woocommerce-noreviews {
  margin: 0 0 32px;
  color: var(--vmt-ink-2);
}

/* Form viết đánh giá */
.vmt-tour #reviews .review-form-inner,
.vmt-tour #reviews .review-form-inner.has-border {
  padding: 24px;
  border: 0;
  border-radius: var(--vmt-radius);
  background: var(--vmt-tint);
  box-shadow: none;
}
.vmt-tour #reviews .comment-reply-title {
  display: block;
  margin: 0 0 16px;
  color: var(--vmt-ink);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.vmt-tour #reviews .comment-form label {
  display: block;
  margin: 0 0 6px;
  color: var(--vmt-ink);
  font-size: 15px;
  font-weight: 600;
}
.vmt-tour #reviews .comment-form .required {
  color: var(--vmt-accent-strong);
}
.vmt-tour #reviews .comment-form textarea,
.vmt-tour #reviews .comment-form input[type="text"],
.vmt-tour #reviews .comment-form input[type="email"] {
  margin: 0 0 16px;
  border: 1px solid transparent;
  border-radius: var(--vmt-radius-sm);
  background: #fff;
  box-shadow: none;
  color: var(--vmt-ink);
  font-size: 15px;
}
.vmt-tour #reviews .comment-form textarea {
  min-height: 140px;
  padding: 12px 14px;
}
.vmt-tour #reviews .comment-form textarea:focus,
.vmt-tour #reviews .comment-form input:focus {
  border-color: var(--vmt-accent);
  outline: 0;
}
.vmt-tour #reviews .comment-form .comment-form-cookies-consent label {
  display: inline;
  font-weight: 400;
}
.vmt-tour #reviews .comment-form .form-submit {
  margin: 0;
}
.vmt-tour #reviews .comment-form input[type="submit"] {
  min-width: 160px;
  margin: 0;
  border-radius: var(--vmt-radius-sm);
  background-color: var(--vmt-accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}

/* Chọn số sao: một hàng 5 ngôi sao, rê chuột hoặc chọn thì tô đến ngôi sao đó */
.vmt-tour #reviews .comment-form-rating {
  margin-bottom: 16px;
}
.vmt-tour #reviews p.stars {
  margin: 0;
}
.vmt-tour #reviews p.stars > span {
  display: flex;
  gap: 4px;
}
.vmt-tour #reviews p.stars a {
  position: relative;
  display: block;
  flex: none;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  font-size: 0;
  text-indent: 0;
  line-height: 0;
}
.vmt-tour #reviews p.stars a::before {
  content: "";
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  margin: 0;
  border: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23d9d6d2'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E") center / contain no-repeat;
  content: "";
}
.vmt-tour #reviews p.stars span:has(a.star-1.active) a:nth-child(-n + 1)::before,
.vmt-tour #reviews p.stars span:has(a.star-2.active) a:nth-child(-n + 2)::before,
.vmt-tour #reviews p.stars span:has(a.star-3.active) a:nth-child(-n + 3)::before,
.vmt-tour #reviews p.stars span:has(a.star-4.active) a:nth-child(-n + 4)::before,
.vmt-tour #reviews p.stars span:has(a.star-5.active) a:nth-child(-n + 5)::before,
.vmt-tour #reviews p.stars span:has(a.star-1:hover) a:nth-child(-n + 1)::before,
.vmt-tour #reviews p.stars span:has(a.star-2:hover) a:nth-child(-n + 2)::before,
.vmt-tour #reviews p.stars span:has(a.star-3:hover) a:nth-child(-n + 3)::before,
.vmt-tour #reviews p.stars span:has(a.star-4:hover) a:nth-child(-n + 4)::before,
.vmt-tour #reviews p.stars span:has(a.star-5:hover) a:nth-child(-n + 5)::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffc107'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6L2.5 9.4l6.6-.8z'/%3E%3C/svg%3E");
}
.vmt-tour #reviews p.stars a:focus-visible {
  outline: 2px solid var(--vmt-accent);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (max-width: 849px) {
  .vmt-tour #reviews .review-item {
    padding: 16px;
  }
  .vmt-tour #reviews .review-form-inner,
  .vmt-tour #reviews .review-form-inner.has-border {
    padding: 16px;
  }
}

.vmt-tour #reviews .comment-form input[type="submit"] {
  text-transform: none;
  letter-spacing: 0;
}
.vmt-tour #reviews.woocommerce-Reviews {
  margin-bottom: 56px;
}

/* ===== Ảnh trong nội dung bấm để phóng to (assets/js/tour-zoom.js) ===== */
.vmt-tour a.vmt-zoom {
  position: relative;
  display: block;
  cursor: zoom-in;
}
.vmt-tour a.vmt-zoom::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(35, 32, 29, .72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='7.5' cy='7.5' r='5'/%3E%3Cpath d='m11.5 11.5 4 4M7.5 5.5v4M5.5 7.5h4'/%3E%3C/svg%3E") center / 18px no-repeat;
  opacity: 0;
  transition: opacity .2s;
  pointer-events: none;
}
.vmt-tour a.vmt-zoom:hover::after,
.vmt-tour a.vmt-zoom:focus-visible::after {
  opacity: 1;
}
@media (hover: none) {
  .vmt-tour a.vmt-zoom::after {
    opacity: 1;
  }
}

/* ===== Chương trình PDF (inc/functions/tour-pdf.php) ===== */
.vmt-pdf {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0 0 28px;
  padding: 20px;
  border-radius: var(--vmt-radius);
  background: var(--vmt-tint);
}
.vmt-pdf-cover {
  position: relative;
  flex: none;
  width: 104px;
  aspect-ratio: 210 / 297;
  overflow: hidden;
  border-radius: 10px;
  background: var(--vmt-tint);
}
.vmt-pdf-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vmt-pdf-badge {
  display: inline-grid;
  place-items: center;
  min-width: 36px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--vmt-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  line-height: 1;
}
.vmt-pdf-cover .vmt-pdf-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
}
.vmt-pdf-body {
  flex: 1;
  min-width: 0;
}
.vmt-pdf-eyebrow {
  color: var(--vmt-accent);
  font-size: 13px;
  font-weight: 600;
}
#wrapper .vmt-pdf .vmt-pdf-title {
  margin: 2px 0 4px;
  padding: 0;
  background: none;
  color: var(--vmt-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
#wrapper .vmt-pdf .vmt-pdf-meta {
  margin: 0 0 14px;
  color: var(--vmt-ink-2);
  font-size: 14px;
}
.vmt-pdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#wrapper .vmt-pdf-actions .button,
.vmt-pdf-modal-download.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  border-radius: var(--vmt-radius-sm);
  text-transform: none;
}
#wrapper .vmt-pdf .vmt-button-quiet.button {
  background: #fff;
}

/* ===== Multi-PDF Departure Picker (.vmt-pdf-picker) ===== */
.vmt-pdf-picker {
  margin: 0 0 28px;
  padding: 22px 24px;
  border-radius: var(--vmt-radius);
  background: var(--vmt-tint);
}
.vmt-pdf-picker.is-nudged {
  animation: vmt-pdf-nudge .9s var(--vmt-ease);
}
@keyframes vmt-pdf-nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 144, 48, 0); }
  30% { box-shadow: 0 0 0 4px rgba(0, 144, 48, .2); }
}
.vmt-pdf-picker-head {
  margin-bottom: 16px;
}
.vmt-pdf-picker-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--vmt-accent);
  font-size: 13px;
  font-weight: 600;
}
#wrapper .vmt-pdf-picker .vmt-pdf-picker-title {
  margin: 4px 0 4px;
  padding: 0;
  background: none;
  color: var(--vmt-ink);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
}
#wrapper .vmt-pdf-picker .vmt-pdf-picker-sub {
  margin: 0;
  color: var(--vmt-ink-2);
  font-size: 13.5px;
  line-height: 1.5;
}
.vmt-pdf-variants {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}
.vmt-pdf-option {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--vmt-radius);
  background: #fff;
  color: var(--vmt-ink);
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.35;
  cursor: pointer;
  transition: box-shadow .2s var(--vmt-ease), background-color .2s var(--vmt-ease);
}
.vmt-pdf-option:hover {
  box-shadow: inset 0 0 0 2px rgba(0, 144, 48, .3);
}
.vmt-pdf-option.is-selected {
  box-shadow: inset 0 0 0 2px var(--vmt-accent);
}
.vmt-pdf-option-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.vmt-pdf-option-label {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--vmt-ink);
  line-height: 1.35;
}
.vmt-pdf-option-check {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--vmt-tint);
  color: transparent;
  font-size: 10px;
  transition: background-color .2s var(--vmt-ease), border-color .2s var(--vmt-ease), color .2s var(--vmt-ease);
}
.vmt-pdf-option.is-selected .vmt-pdf-option-check {
  background: var(--vmt-accent);
  color: #fff;
}
.vmt-pdf-option-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.vmt-pdf-date-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--vmt-tint);
  color: var(--vmt-accent);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.vmt-pdf-date-chip--more {
  background: var(--vmt-tint);
  color: var(--vmt-ink-2);
}
.vmt-pdf-option-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--vmt-ink-2);
  font-size: 12.5px;
  font-weight: 400;
}
.vmt-pdf-option-meta i {
  color: var(--vmt-accent);
}
.vmt-pdf-empty-prompt {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
  padding: 14px 18px;
  border: 0;
  border-radius: var(--vmt-radius);
  background: #fff;
  color: var(--vmt-ink-2);
}
.vmt-pdf-empty-prompt[hidden] {
  display: none;
}
.vmt-pdf-empty-icon {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--vmt-tint);
  color: var(--vmt-accent);
  font-size: 16px;
}
.vmt-pdf-empty-prompt strong {
  display: block;
  color: var(--vmt-ink);
  font-size: 14px;
  font-weight: 600;
}
#wrapper .vmt-pdf-empty-prompt p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--vmt-ink-2);
}
.vmt-pdf-picker .vmt-pdf-result {
  margin: 16px 0 0;
  padding: 18px 20px;
  border-radius: var(--vmt-radius);
  background: #fff;
}
.vmt-pdf-picker .vmt-pdf-result[hidden] {
  display: none;
}
.vmt-pdf-picker .vmt-pdf-result.is-revealing {
  animation: vmt-pdf-reveal .28s var(--vmt-ease);
}
@keyframes vmt-pdf-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
#wrapper .vmt-pdf-picker .vmt-pdf-result-dates {
  margin: -6px 0 12px;
  color: var(--vmt-ink-2);
  font-size: 13px;
  line-height: 1.45;
}
#wrapper .vmt-pdf-picker .vmt-pdf-result-dates[hidden] {
  display: none;
}
#wrapper .vmt-pdf-picker .vmt-pdf-result .vmt-button-quiet.button {
  background: var(--vmt-tint);
}
.vmt-departures li.vmt-dep-selectable {
  cursor: pointer;
  transition: box-shadow .18s var(--vmt-ease);
}
.vmt-departures li.vmt-dep-selectable:hover {
  box-shadow: inset 0 0 0 2px rgba(0, 144, 48, .3);
}
.vmt-departures li.vmt-dep-selectable.is-selected {
  box-shadow: inset 0 0 0 2px var(--vmt-accent);
}
@media (max-width: 600px) {
  .vmt-pdf-picker {
    padding: 16px;
  }
  .vmt-pdf-picker .vmt-pdf-result {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* Modal */
.vmt-pdf-lock,
.vmt-pdf-lock body {
  overflow: hidden;
}
.vmt-pdf-modal {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  height: calc(100dvh - 48px);
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: var(--vmt-radius);
  background: #fff;
  color: var(--vmt-ink);
  box-shadow: var(--vmt-shadow);
}
.vmt-pdf-modal::backdrop {
  background: rgba(23, 20, 18, .62);
}
.vmt-pdf-modal[open] {
  animation: vmt-pdf-in .35s var(--vmt-ease);
}
@keyframes vmt-pdf-in {
  from { opacity: 0; transform: translateY(16px); }
}
.vmt-pdf-modal-box {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.vmt-pdf-modal-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 20px;
  border-bottom: 1px solid rgba(35, 32, 29, .08);
}
.vmt-pdf-modal-heading {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}
.vmt-pdf-modal-heading strong {
  display: block;
  overflow: hidden;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vmt-pdf-modal-heading small {
  display: block;
  color: var(--vmt-ink-2);
  font-size: 13px;
}
.vmt-pdf-close {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  min-height: 0;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: var(--vmt-tint);
  color: var(--vmt-ink);
  font-size: 18px;
  transition: background-color .2s;
}
.vmt-pdf-close:hover {
  background: #ececec;
}
.vmt-pdf-pages {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--vmt-tint);
}
.vmt-pdf-pages:focus {
  outline: none;
}
.vmt-pdf-page {
  width: 100%;
  max-width: 760px;
  flex: none;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
}
.vmt-pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
}
.vmt-pdf-status {
  margin: auto;
  color: var(--vmt-ink-2);
  font-size: 15px;
}

@media (max-width: 549px) {
  .vmt-pdf {
    gap: 16px;
    padding: 16px;
  }
  .vmt-pdf-cover {
    width: 76px;
  }
  .vmt-pdf-actions {
    flex-direction: column;
  }
  .vmt-pdf-actions .button {
    flex: 1;
    justify-content: center;
  }
  .vmt-pdf-modal {
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
  .vmt-pdf-pages {
    gap: 10px;
    padding: 10px;
  }
  .vmt-pdf-modal-head {
    padding: 10px 10px 10px 14px;
  }
  .vmt-pdf-modal-download.button {
    padding-inline: 12px;
  }
}

/* ===== Form "Yêu cầu đặt Tour" (lightbox #form_product_tour, nội dung trong Flatsome > theme_mods) ===== */
#form_product_tour.lightbox-content {
  /* Ghi đè style inline "max-width:800px;padding:20px" của block. */
  max-width: 860px !important;
  padding: 36px 40px !important;
  overflow: hidden;
  border-radius: var(--vmt-radius);
  box-shadow: var(--vmt-shadow);
}
#form_product_tour .pum-title {
  color: var(--vmt-ink);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}
#form_product_tour .pum-title span {
  font-size: inherit !important; /* style inline 120% của nội dung cũ */
}
#form_product_tour .pum-content {
  margin: 6px 0 24px;
}
#form_product_tour .modal__title small {
  color: var(--vmt-ink-2);
  font-size: 15px;
}
#form_product_tour .row {
  align-items: center;
}
#form_product_tour .col {
  padding-bottom: 0;
}
#form_product_tour .row > .col:first-child {
  padding-right: 28px;
}
#form_product_tour .wpcf7-form > p {
  margin: 0;
  color: var(--vmt-ink);
  font-size: 15px;
  line-height: 1.5;
}
#form_product_tour .wpcf7-form br {
  display: none;
}
#form_product_tour .wpcf7-form label {
  display: block;
  margin: 0 0 12px;
}
#form_product_tour .wpcf7-form-control-wrap {
  display: block;
}
#form_product_tour .wpcf7-form input.wpcf7-text {
  height: 50px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--vmt-radius-sm);
  background: var(--vmt-tint);
  box-shadow: none;
  color: var(--vmt-ink);
  font-size: 16px;
  transition: border-color .2s, background-color .2s;
}
#form_product_tour .wpcf7-form input.wpcf7-text::placeholder {
  color: var(--vmt-ink-3);
}
#form_product_tour .wpcf7-form input.wpcf7-text:focus {
  border-color: var(--vmt-accent);
  background: #fff;
  outline: none;
}
/* Tên tour (ô khoá): hiện như nhãn tour đang đặt */
#form_product_tour .wpcf7-form input.wpcf7-text:disabled {
  border-color: rgba(0, 144, 48, .25);
  background: #fff6f2;
  color: var(--vmt-accent-strong);
  font-weight: 600;
  opacity: 1;
  -webkit-text-fill-color: var(--vmt-accent-strong);
  cursor: default;
}
#form_product_tour .wpcf7-form label:has(input:disabled)::before {
  content: "Tour bạn chọn";
  display: block;
  margin-bottom: 6px;
  color: var(--vmt-ink-2);
  font-size: 13px;
}
#form_product_tour .wpcf7-form > p > a {
  color: var(--vmt-accent) !important; /* style inline color:red của nội dung cũ */
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
#form_product_tour .wpcf7-radio {
  display: flex;
  gap: 8px;
  margin: 10px 0 20px;
}
#form_product_tour .wpcf7-list-item {
  flex: 1;
  margin: 0;
}
#form_product_tour .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin: 0;
  border: 1px solid rgba(35, 32, 29, .12);
  border-radius: var(--vmt-radius-sm);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
#form_product_tour .wpcf7-list-item label:has(input:checked) {
  border-color: var(--vmt-accent);
  background: #fff6f2;
}
#form_product_tour .wpcf7-list-item input {
  margin: 0;
  accent-color: var(--vmt-accent);
}
#form_product_tour .wpcf7-list-item-label {
  margin: 0;
}
#form_product_tour .wpcf7-submit {
  width: 100%;
  height: 52px;
  margin: 0;
  border-radius: var(--vmt-radius-sm);
  background: var(--vmt-accent);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background-color .2s;
}
#form_product_tour .wpcf7-submit:hover {
  background: var(--vmt-accent-strong);
}
#form_product_tour .wpcf7-spinner {
  position: absolute;
  margin: 16px 0 0 -40px;
}
#form_product_tour .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: var(--vmt-radius-sm);
  font-size: 14px;
}
#form_product_tour .wpcf7-not-valid-tip {
  margin: 4px 0 0;
  padding: 0;
  background: none;
  color: var(--vmt-accent-strong);
  font-size: 13px;
}
#form_product_tour .wpcf7-form input.wpcf7-text[aria-invalid="true"] {
  border-color: var(--vmt-accent);
  background: #fff;
}
#form_product_tour .img-inner img {
  width: 100%;
  height: auto;
}
.mfp-content:has(#form_product_tour) + .mfp-close,
.mfp-wrap:has(#form_product_tour) .mfp-close {
  opacity: 1;
}
@media (max-width: 549px) {
  #form_product_tour.lightbox-content {
    padding: 28px 20px 24px !important;
  }
  #form_product_tour .pum-title {
    font-size: 22px;
  }
  /* Ảnh minh hoạ chiếm chỗ trên điện thoại, form lên trước */
  #form_product_tour .row > .col:last-child {
    display: none;
  }
  #form_product_tour .row > .col:first-child {
    padding-right: 0;
  }
}

/* ===== Nội dung chi tiết trang Tour (single-product .entry-content) ===== */
.single-product .entry-content {
  color: var(--vmt-ink);
  overflow-x: clip;
}
.single-product .entry-content p,
.single-product .entry-content li {
  font-size: 17px;
  line-height: 1.7;
  text-align: left;
}
.single-product .entry-content p {
  margin-bottom: 1em;
}
.single-product .entry-content li::marker {
  color: var(--vmt-accent);
}
.single-product .entry-content h2 {
  margin: 1.6em 0 0.6em;
  color: var(--vmt-ink);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.single-product .entry-content h3 {
  margin: 1.4em 0 0.5em;
  color: var(--vmt-ink);
  font-size: clamp(20px, 2vw, 23px);
  font-weight: 600;
  line-height: 1.3;
}
.single-product .entry-content h2 strong,
.single-product .entry-content h3 strong {
  font-weight: inherit;
}
.single-product .entry-content a:not(.button) {
  color: var(--vmt-accent-strong);
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.single-product .entry-content h3.vmt-day {
  margin-top: 2em;
  padding: 12px 16px;
  border-radius: var(--vmt-radius-sm);
  background: var(--vmt-tint);
  font-size: 18px;
  scroll-margin-top: 80px;
}
.single-product .entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--vmt-radius-sm);
}
.single-product .entry-content .wp-caption,
.product figure.wp-caption {
  max-width: 100%;
  margin-block: 1.5em;
  background: none;
}
.single-product .entry-content figcaption {
  padding: 8px 0 0;
  background: none;
  color: var(--vmt-ink-2);
  font-size: 14px;
  font-style: normal;
  text-align: center;
}
.vmt-table-wrap {
  overflow-x: auto;
  margin-block: 1.5em;
  border-radius: var(--vmt-radius-sm);
  box-shadow: inset 0 0 0 1px rgba(35, 32, 29, 0.1);
}
.vmt-table-wrap table {
  width: 100%;
  min-width: 520px;
  margin: 0;
  border-collapse: collapse;
  border: 0;
}
body .vmt-table-wrap table tbody td,
body .vmt-table-wrap table th {
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid rgba(35, 32, 29, 0.1);
  background: none;
  color: var(--vmt-ink);
  font-size: 15px;
  line-height: 1.5;
  vertical-align: top;
}
body .vmt-table-wrap table tbody tr:first-child td,
body .vmt-table-wrap table th,
.vmt-table-wrap table thead td,
.vmt-table-wrap table thead th,
.vmt-table-wrap table:not(:has(thead)) tbody tr:first-child td {
  border: 0;
  border-radius: 0;
  background: var(--vmt-ink);
  color: #fff;
  font-weight: 600;
}
.vmt-table-wrap tr:first-child td *,
.vmt-table-wrap th *,
.vmt-table-wrap table thead * {
  color: #fff;
}
.entry-content .vmt-table-wrap td p,
.entry-content .vmt-table-wrap th p {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
}
:is(.entry-content, .woocommerce-Tabs-panel, .vmt-day-body)
  div:is(.flex, .flex-grow):has(.text-message, .markdown),
:is(.entry-content, .woocommerce-Tabs-panel, .vmt-day-body) .text-message,
:is(.entry-content, .woocommerce-Tabs-panel, .vmt-day-body)
  .text-message
  div.flex,
:is(.entry-content, .woocommerce-Tabs-panel, .vmt-day-body) .markdown.prose {
  display: block;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

/* ===== Đồng bộ tiêu đề phần của trang tour: cùng cỡ, cùng đậm ===== */
#wrapper .vmt-sl h2,
#wrapper .vmt-days > h2,
#wrapper .vmt-notes-title,
.single-product .entry-content h2 {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
}
.single-product .entry-content > h2:first-child {
  margin-top: 0;
}

/* Thẻ tour: "Đặt tour ngay" và "Chat Zalo" chung một hàng; nút PDF (nếu có) xuống hàng riêng */
.vmt-tour-actions .vmt-tour-actions-row {
  grid-template-columns: 1fr 1fr;
}
.vmt-tour-actions-row .vmt-tour-pdf-link {
  grid-column: 1 / -1;
}
#wrapper .vmt-tour-actions .button.vmt-tour-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-inline: 10px;
  font-size: 15px;
  white-space: nowrap;
}
