/*
 * ci4-detail.css — Scoped .ci4-product-detail
 * CSS riêng cho trang chi tiết tour CI4
 */

/* ── Layout tổng ── */
.ci4-product-detail {
  width: 100%;
  overflow-x: hidden;
}

/* ── Banner đầu trang ── */
.ci4-detail-banner {
  width: 100%;
  overflow: hidden;
  margin-bottom: 0;
}

.ci4-detail-banner .banner-container {
  display: flex;
  gap: 6px;
}

.ci4-detail-banner .banner-container img {
  width: 100%;
  height: auto;

  object-fit: cover;
  display: block;
}

/* ── Search bar ── */
.ci4-detail-search {
  background: #065102;
  padding: 10px 15px;
  border-radius: 10px;
  border: 2px solid #fff;
  box-shadow: 1px 1px 1px #55bc3c;
  margin: 10px 0;
}

/* ── Tabs danh mục ── */
.ci4-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
  padding: 0;
}

.ci4-detail-tabs .cat-tab-btn {
  display: inline-block;
  padding: 7px 16px;
  border: 1px solid #27ae60;
  border-radius: 4px;
  color: #1a5c2e;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, color .18s;
  cursor: pointer;
  background: #fff;
}

.ci4-detail-tabs .cat-tab-btn:hover,
.ci4-detail-tabs .cat-tab-btn.active {
  background: #27ae60;
  color: #fff;
  text-decoration: none;
}

/* ── Layout main: content + sidebar ── */
.ci4-detail-body {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin: 16px 0;
}

.ci4-detail-content {
  flex: 1;
  min-width: 0;
}

.ci4-detail-sidebar {
  flex: 0 0 280px;
  width: 280px;
  position: sticky;
  top: 20px;
  align-self: flex-start;
}

@media (max-width: 991px) {
  .ci4-detail-body {
    flex-direction: column;
  }

  .ci4-detail-sidebar {
    flex: unset;
    width: 100%;
    position: relative;
    top: auto;
  }
}

/* ── Gallery ── */
.ci4-detail-gallery {
  margin-bottom: 16px;
  overflow: hidden;
}

.ci4-detail-gallery .custom-slider {
  max-width: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.ci4-product-detail .custom-slider .item {
  box-sizing: border-box;
}

.ci4-product-detail .custom-slider .img img {
  width: 100%;
  height: auto;
  max-height: 420px;
  border-radius: 10px;
  display: block;
  object-fit: cover;
}

/* ── Thông tin tour (icon row) ── */
.ci4-detail-info {
  text-align: center;
  margin: 14px 0;
  padding: 12px;
  background: #f8fff9;
  border-radius: 8px;
  border: 1px solid #d4f0d8;
}

.ci4-detail-info .info-title {
  color: #065102;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}

.ci4-product-detail .thongtin {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.ci4-product-detail .thongtin .option {
  width: 25%;
  padding: 4px 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ci4-product-detail .detail-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
}

.ci4-product-detail .detail-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 767px) {
  .ci4-product-detail .thongtin .option {
    width: 50%;
  }
}

/* ── Menu CTA ── */
.ci4-detail-menu-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 14px 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.ci4-detail-menu-cta a {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}

.ci4-detail-menu-cta a:hover {
  opacity: .85;
  text-decoration: none;
}

.ci4-detail-menu-cta .btn-calc {
  background: linear-gradient(90deg, #f76b1c, #fad961);
  color: #fff;
}

.ci4-detail-menu-cta .btn-group {
  background: #27ae60;
  color: #fff;
}

.ci4-detail-menu-cta .btn-review {
  background: #e8f5e9;
  color: #1a5c2e;
  border: 1px solid #27ae60;
}

.ci4-detail-menu-cta .rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  color: #856404;
}

/* ── Lịch trình ── */
.ci4-product-detail .tour-day-title {
  color: #fff;
  font-weight: 700;
  background: #128a0a;
  padding: 8px 14px;
  border-radius: 4px;
  margin: 12px 0 6px;
  font-size: 15px;
}

.ci4-product-detail .meal-tour {
  display: flex;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 6px 0;
}

.ci4-product-detail .meal-tour li {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
}

.ci4-product-detail .meal-tour li img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

/* ── FAQ ── */
.ci4-product-detail .faq-section {
  margin: 24px 0;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 6px;
  padding: 16px 20px;
}

.ci4-product-detail .faq-item {
  border-top: 1px solid #eee;
  padding: 10px 0;
}

.ci4-product-detail .faq-question {
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  padding-right: 28px;
  color: #1a5c2e;
}

.ci4-product-detail .faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  font-weight: 400;
}

.ci4-product-detail .faq-question.open::after { content: '−'; }

.ci4-product-detail .faq-answer {
  display: none;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.6;
  color: #444;
}

.ci4-product-detail .faq-answer.show { display: block; }

/* ── Sidebar support ── */
.ci4-product-detail .support-box {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  padding: 18px;
  font-size: 14px;
}

.ci4-product-detail .support-title {
  color: #1aa334;
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ci4-product-detail .support-desc {
  margin: 6px 0 12px;
  color: #555;
  font-size: 13px;
}

.ci4-product-detail .support-box .form-group {
  margin-bottom: 10px;
}

.ci4-product-detail .support-box .form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.ci4-product-detail .support-box .form-group span { color: red; }

.ci4-product-detail .support-box .form-group input,
.ci4-product-detail .support-box .form-group textarea {
  width: 100%;
  padding: 8px 11px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 13px;
}

.ci4-product-detail .support-box .btn-submit {
  width: 100%;
  background: #1aa334;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 10px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .25s;
}

.ci4-product-detail .support-box .btn-submit:hover { background: #148a2b; }

/* ── Related products ── */
.ci4-product-detail .related-section {
  margin-top: 28px;
}

.ci4-product-detail .related-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #0e5c2e;
  margin-bottom: 14px;
}

/* ── Comments ── */
.ci4-product-detail .comment-card {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
}

.ci4-product-detail .comment-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.ci4-product-detail .comment-stars { color: #f5a623; }

/* ═══════════════════════════════════════════════════════
   SEARCH BAR + CATEGORY TABS FIX
   ═══════════════════════════════════════════════════════ */

.ci4-product-detail .ci4-detail-search {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 22px auto 26px !important;
  padding: 14px 20px !important;
  background: #209b3b !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.08) !important;
  clear: both !important;
}

/* Grid layout cho form — Bootstrap col divs trở thành grid items */
.ci4-product-detail .ci4-detail-search form {
  display: grid !important;
  grid-template-columns: 1fr 1fr 1.6fr auto !important;
  gap: 10px !important;
  align-items: center !important;
}

/* Override Bootstrap float/width trên các col-div con trực tiếp */
.ci4-product-detail .ci4-detail-search form > div {
  float: none !important;
  width: auto !important;
  padding: 0 !important;
}

.ci4-product-detail .ci4-detail-search select,
.ci4-product-detail .ci4-detail-search input[type="text"] {
  width: 100% !important;
  height: 42px !important;
  border-radius: 4px !important;
  border: 1px solid #ddd !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  box-sizing: border-box !important;
}

.ci4-product-detail .ci4-detail-search button[type="submit"] {
  height: 42px !important;
  padding: 0 20px !important;
  border-radius: 4px !important;
  border: 2px solid #fff !important;
  background: #060606 !important;
  color: #fff !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
  width: 100% !important;
}

/* Tabs căn giữa */
.ci4-product-detail .ci4-detail-tabs {
  width: min(1180px, calc(100% - 32px)) !important;
  margin: 0 auto 28px !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 6px !important;
  clear: both !important;
  position: relative !important;
  z-index: 1 !important;
}

.ci4-product-detail .ci4-detail-tabs .cat-tab-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  padding: 8px 18px !important;
  border: 1px solid #0d9cff !important;
  border-radius: 4px !important;
  background: #fff !important;
  color: #078021 !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.ci4-product-detail .ci4-detail-tabs .cat-tab-btn:hover,
.ci4-product-detail .ci4-detail-tabs .cat-tab-btn.active {
  background: #168c2f !important;
  border-color: #168c2f !important;
  color: #fff !important;
}

/* Tablet */
@media (max-width: 991px) {
  .ci4-product-detail .ci4-detail-search form {
    grid-template-columns: 1fr 1fr !important;
  }

  .ci4-product-detail .ci4-detail-search form > div:last-child {
    grid-column: 1 / -1 !important;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .ci4-product-detail .ci4-detail-search {
    width: calc(100% - 20px) !important;
    margin: 16px auto 18px !important;
    padding: 12px !important;
  }

  .ci4-product-detail .ci4-detail-search form {
    grid-template-columns: 1fr !important;
  }

  .ci4-product-detail .ci4-detail-tabs {
    width: calc(100% - 20px) !important;
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .ci4-product-detail .ci4-detail-tabs .cat-tab-btn {
    flex: 0 0 auto !important;
    font-size: 12px !important;
    padding: 7px 12px !important;
  }
}

/* M07 - Tour info/service box */
.ci4-product-detail .ci4-tour-info-box {
  width: 100%;
  margin: 24px auto;
  padding: 18px 20px;
  border: 1px solid #bfe8c5;
  border-radius: 8px;
  background: #f8fff9;
}

.ci4-product-detail .ci4-tour-info-title {
  display: block;
  width: 100%;
  margin: 0 0 18px;
  text-align: center;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  color: #075c23;
}

.ci4-product-detail .ci4-tour-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px 28px;
  align-items: center;
}

.ci4-product-detail .ci4-tour-info-grid > * {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #111;
}

.ci4-product-detail .ci4-tour-info-grid .detail-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .ci4-product-detail .ci4-tour-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .ci4-product-detail .ci4-tour-info-box {
    padding: 14px 12px;
  }

  .ci4-product-detail .ci4-tour-info-title {
    font-size: 18px;
  }

  .ci4-product-detail .ci4-tour-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ci4-product-detail .ci4-tour-info-grid > * {
    font-size: 13px;
  }
}

/* ── Gallery slider ngang ── */
.ci4-product-detail .ci4-detail-gallery-slider {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 16px;
  margin: 20px auto 22px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.ci4-product-detail .ci4-detail-gallery-item {
  flex: 0 0 340px;
  width: 340px;
  max-width: 340px;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  scroll-snap-align: start;
  background: #f5f5f5;
  text-decoration: none;
}

.ci4-product-detail .ci4-detail-gallery-item img {
  width: 100%;
  height: 210px;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.ci4-product-detail .ci4-detail-gallery-slider::-webkit-scrollbar { height: 7px; }
.ci4-product-detail .ci4-detail-gallery-slider::-webkit-scrollbar-track {
  background: #e8f5e9;
  border-radius: 999px;
}
.ci4-product-detail .ci4-detail-gallery-slider::-webkit-scrollbar-thumb {
  background: #168c2f;
  border-radius: 999px;
}

@media (max-width: 767px) {
  .ci4-product-detail .ci4-detail-gallery-slider {
    gap: 10px;
    padding: 8px 0 14px;
    margin: 16px auto 18px;
  }

  .ci4-product-detail .ci4-detail-gallery-item {
    flex: 0 0 78vw;
    width: 78vw;
    max-width: 78vw;
  }

  .ci4-product-detail .ci4-detail-gallery-item img {
    height: 170px;
    border-radius: 12px;
  }
}

/* Mobile: tour info 2 cột */
@media (max-width: 767px) {
  .ci4-product-detail .ci4-tour-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: start !important;
  }

  .ci4-product-detail .ci4-tour-info-grid > * {
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    word-break: break-word !important;
  }

  .ci4-product-detail .ci4-tour-info-grid img {
    flex: 0 0 auto !important;
    width: 24px !important;
    height: 24px !important;
    max-width: 28px !important;
  }
}

/* M07 mobile tour info grid fix — final override */
@media (max-width: 767px) {
  .ci4-product-detail .ci4-tour-info-box {
    padding: 14px 12px !important;
    margin: 18px 0 !important;
  }

  .ci4-product-detail .ci4-tour-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100% !important;
    align-items: stretch !important;
  }

  .ci4-product-detail .ci4-tour-info-grid > *,
  .ci4-product-detail .ci4-tour-info-item {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .ci4-product-detail .ci4-tour-info-item img,
  .ci4-product-detail .ci4-tour-info-grid > * img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    flex: 0 0 24px !important;
    object-fit: contain !important;
  }
}

/* ── FINAL FIX: tour info 2-col mobile ─────────────────── */
/* Base: ci4-tour-info-item không còn bị .detail-item rule conflict */
.ci4-product-detail .ci4-tour-info-grid .ci4-tour-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  min-width: 0;
}

.ci4-product-detail .ci4-tour-info-grid .ci4-tour-info-item img {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  object-fit: contain;
}

@media screen and (max-width: 767px) {
  .ci4-product-detail .ci4-tour-info-box {
    padding: 14px 12px !important;
    margin: 16px 0 !important;
  }

  .ci4-product-detail .ci4-tour-info-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px 8px !important;
    align-items: start !important;
    width: 100% !important;
  }

  .ci4-product-detail .ci4-tour-info-grid .ci4-tour-info-item {
    display: flex !important;
    align-items: flex-start !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #111 !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  .ci4-product-detail .ci4-tour-info-grid .ci4-tour-info-item img {
    width: 22px !important;
    height: 22px !important;
    flex: 0 0 22px !important;
    object-fit: contain !important;
    margin-top: 1px !important;
  }
}

/* FORCE M07 tour info mobile 2 columns */
@media (max-width: 767px) {
  .ci4-product-detail section.ci4-tour-info-box {
    width: 100% !important;
    padding: 14px 12px !important;
    margin: 18px 0 !important;
    box-sizing: border-box !important;
  }

  .ci4-product-detail section.ci4-tour-info-box > .ci4-tour-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
  }

  .ci4-product-detail section.ci4-tour-info-box > .ci4-tour-info-grid > .ci4-tour-info-item,
  .ci4-product-detail section.ci4-tour-info-box > .ci4-tour-info-grid > div,
  .ci4-product-detail section.ci4-tour-info-box > .ci4-tour-info-grid > p,
  .ci4-product-detail section.ci4-tour-info-box > .ci4-tour-info-grid > li {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .ci4-product-detail section.ci4-tour-info-box > .ci4-tour-info-grid > * img,
  .ci4-product-detail section.ci4-tour-info-box > .ci4-tour-info-grid > * svg,
  .ci4-product-detail section.ci4-tour-info-box > .ci4-tour-info-grid > * i {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    flex: 0 0 24px !important;
    object-fit: contain !important;
  }

  /* reset Bootstrap/old col classes inside this grid */
  .ci4-product-detail .ci4-tour-info-grid [class*="col-"] {
    width: auto !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* FORCE mobile 2-column layout for M07 tour info */
@media (max-width: 767px) {
  .ci4-product-detail .ci4-tour-info-box {
    width: 100% !important;
    padding: 14px 12px !important;
    margin: 18px 0 !important;
    box-sizing: border-box !important;
  }

  .ci4-product-detail .ci4-tour-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
  }

  .ci4-product-detail .ci4-tour-info-item {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    white-space: normal !important;
  }

  .ci4-product-detail .ci4-tour-info-icon {
    flex: 0 0 24px !important;
    width: 24px !important;
    max-width: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ci4-product-detail .ci4-tour-info-icon img,
  .ci4-product-detail .ci4-tour-info-icon svg,
  .ci4-product-detail .ci4-tour-info-icon i {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    object-fit: contain !important;
  }

  .ci4-product-detail .ci4-tour-info-text {
    min-width: 0 !important;
    display: block !important;
    overflow-wrap: anywhere !important;
  }

  .ci4-product-detail .ci4-tour-info-grid [class*="col-"],
  .ci4-product-detail .ci4-tour-info-grid .row {
    width: auto !important;
    max-width: 100% !important;
    flex: none !important;
    float: none !important;
    display: block !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* M07 FINAL OVERRIDE — 2 cột mobile */
@media (max-width: 767px) {
  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 10px !important;
  }

  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-grid > .ci4-tour-info-item {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
  }
}

/* M07 ULTRA STRONG — selector dài nhất */
@media (max-width: 767px) {
  body .ci4-product-detail section.ci4-tour-info-box div.ci4-tour-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* FORCE M07 TOUR INFO MOBILE/TABLET 2 COLUMNS - must be at end of file */
@media (max-width: 991px) {
  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    align-items: stretch !important;
  }

  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-grid > .ci4-tour-info-item {
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    flex: none !important;
    grid-column: auto !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    white-space: normal !important;
  }

  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-icon {
    flex: 0 0 24px !important;
    width: 24px !important;
    max-width: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-icon img,
  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-icon svg,
  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-icon i {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    object-fit: contain !important;
  }

  .ci4-product-detail .ci4-tour-info-box .ci4-tour-info-text {
    min-width: 0 !important;
    display: block !important;
    overflow-wrap: anywhere !important;
  }
}

/* ═══════════════════════════════════════════════════════
   TOUR DETAIL — .ci4-tour-detail scope
   Grid dùng mobile-first: default 2 cột, desktop 4 cột
   ═══════════════════════════════════════════════════════ */

/* Default (mobile-first): 2 cột */
.ci4-tour-detail .ci4-tour-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 10px;
  width: 100%;
  align-items: start;
}

/* Desktop ≥ 992px: 4 cột */
@media (min-width: 992px) {
  .ci4-tour-detail .ci4-tour-info-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 28px;
    align-items: center;
  }
}

.ci4-tour-detail .ci4-tour-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #111;
  min-width: 0;
  float: none;
}

.ci4-tour-detail .ci4-tour-info-icon {
  flex: 0 0 26px;
  width: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ci4-tour-detail .ci4-tour-info-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.ci4-tour-detail .ci4-tour-info-text {
  min-width: 0;
  display: block;
  overflow-wrap: anywhere;
}

/* ═══════════════════════════════════════════════════════
   TICKET DETAIL — .ci4-ticket-detail scope (Vé du lịch)
   ═══════════════════════════════════════════════════════ */

.ci4-ticket-detail .ci4-ticket-body {
  display: flex;
  gap: 24px;
  margin: 16px 0;
  align-items: flex-start;
}

.ci4-ticket-detail .ci4-ticket-left {
  flex: 1;
  min-width: 0;
}

.ci4-ticket-detail .ci4-ticket-right {
  flex: 0 0 300px;
  width: 300px;
}

.ci4-ticket-detail #ci4-slider-detail .img,
.ci4-car-detail #ci4-slider-detail .img {
  height: 360px;
  overflow: hidden;
}

.ci4-ticket-detail #ci4-slider-detail .img img,
.ci4-car-detail #ci4-slider-detail .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ci4-ticket-detail #ci4-slider-thumbnail .img,
.ci4-car-detail #ci4-slider-thumbnail .img {
  height: 80px;
  overflow: hidden;
}

.ci4-ticket-detail #ci4-slider-thumbnail .img img,
.ci4-car-detail #ci4-slider-thumbnail .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ci4-ticket-detail #ci4-slider-thumbnail .slick-current .img,
.ci4-car-detail #ci4-slider-thumbnail .slick-current .img {
  outline: 2px solid #1aa334;
}

.ci4-ticket-detail .ci4-ticket-meta,
.ci4-car-detail .ci4-car-meta {
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.7;
}

.ci4-ticket-detail .ci4-available,
.ci4-car-detail .ci4-available { color: #1aa334; font-weight: 700; }

.ci4-ticket-detail .ci4-sold,
.ci4-car-detail .ci4-sold { color: #e53935; font-weight: 700; }

.ci4-ticket-detail .ci4-ticket-price-block,
.ci4-car-detail .ci4-car-price-block {
  margin: 12px 0;
}

.ci4-ticket-detail .ci4-price-sale,
.ci4-car-detail .ci4-price-sale {
  font-size: 28px;
  font-weight: 800;
  color: #e53935;
  line-height: 1.2;
}

.ci4-ticket-detail .ci4-price-old,
.ci4-car-detail .ci4-price-old {
  font-size: 13px;
  color: #888;
  margin-top: 4px;
}

.ci4-ticket-detail .ci4-discount,
.ci4-car-detail .ci4-discount {
  color: #e53935;
  font-weight: 700;
  margin-left: 6px;
}

.ci4-ticket-detail .ci4-ticket-rules,
.ci4-car-detail .ci4-car-rules {
  background: #f8fff9;
  border: 1px solid #bfe8c5;
  border-radius: 6px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: 13px;
}

.ci4-ticket-detail .ci4-rules-title,
.ci4-car-detail .ci4-rules-title {
  font-weight: 700;
  color: #065102;
  margin-bottom: 8px;
}

.ci4-ticket-detail .ci4-rules-list,
.ci4-car-detail .ci4-rules-list {
  margin: 0;
  padding-left: 18px;
}

.ci4-ticket-detail .ci4-rules-list li,
.ci4-car-detail .ci4-rules-list li {
  margin-bottom: 4px;
  line-height: 1.5;
}

.ci4-ticket-detail .ci4-ticket-contact-btns,
.ci4-car-detail .ci4-car-contact-btns {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.ci4-ticket-detail .ci4-btn-call,
.ci4-car-detail .ci4-btn-call {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #1aa334;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  justify-content: center;
}

.ci4-ticket-detail .ci4-btn-chat,
.ci4-car-detail .ci4-btn-chat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  background: #1877f2;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  flex: 1;
  justify-content: center;
}

.ci4-ticket-detail .ci4-payment-imgs img,
.ci4-car-detail .ci4-payment-imgs img {
  height: 28px;
  margin-right: 6px;
  object-fit: contain;
  vertical-align: middle;
}

/* Tablet/Mobile: ticket và car body stack dọc */
@media (max-width: 767px) {
  .ci4-ticket-detail .ci4-ticket-body,
  .ci4-car-detail .ci4-car-body {
    flex-direction: column;
  }

  .ci4-ticket-detail .ci4-ticket-right,
  .ci4-car-detail .ci4-car-right {
    flex: unset;
    width: 100%;
  }

  .ci4-ticket-detail #ci4-slider-detail .img,
  .ci4-car-detail #ci4-slider-detail .img {
    height: 240px;
  }

  .ci4-ticket-detail #ci4-slider-thumbnail,
  .ci4-car-detail #ci4-slider-thumbnail {
    display: none;
  }
}

/* ═══════════════════════════════════════════════════════
   CAR DETAIL — .ci4-car-detail scope (Thuê xe)
   (Reuses ticket layout via shared selectors above)
   ═══════════════════════════════════════════════════════ */

.ci4-car-detail .ci4-car-body {
  display: flex;
  gap: 24px;
  margin: 16px 0;
  align-items: flex-start;
}

.ci4-car-detail .ci4-car-left {
  flex: 1;
  min-width: 0;
}

.ci4-car-detail .ci4-car-right {
  flex: 0 0 300px;
  width: 300px;
}

@media (max-width: 767px) {
  .ci4-car-detail .ci4-car-body {
    flex-direction: column;
  }
  .ci4-car-detail .ci4-car-right {
    flex: unset;
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════
   M07 RESPONSIVE FIX — prevent horizontal overflow ≤ 991px
   Note: HTML uses id="vnt-container" (not class), so target #vnt-container
   ═══════════════════════════════════════════════════════ */
@media (max-width: 991px) {
  html,
  body {
    overflow-x: hidden !important;
  }

  body .ci4-product-detail,
  body .ci4-product-detail #vnt-container,
  body .ci4-product-detail .container,
  body .ci4-product-detail .dnb,
  body .ci4-product-detail .ci4-detail-body,
  body .ci4-product-detail .ci4-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body .ci4-product-detail .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body .ci4-product-detail .ci4-detail-body {
    display: block !important;
    overflow: visible !important;
  }

  body .ci4-product-detail .ci4-detail-content {
    display: block !important;
    flex: none !important;
    overflow: visible !important;
  }

  body .ci4-product-detail .ci4-detail-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-top: 18px !important;
    flex: none !important;
  }

  body .ci4-product-detail img,
  body .ci4-product-detail table,
  body .ci4-product-detail iframe {
    max-width: 100% !important;
  }

  body .ci4-product-detail .table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }
}

/* ── Tour info box: giữ 2 cột, nằm gọn trong màn hình ── */
@media (max-width: 991px) {
  body .ci4-product-detail section.ci4-tour-info-box {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 14px 12px !important;
    margin: 18px 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body .ci4-product-detail section.ci4-tour-info-box > div.ci4-tour-info-grid {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 12px 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  body .ci4-product-detail section.ci4-tour-info-box > div.ci4-tour-info-grid > div.ci4-tour-info-item {
    flex: 0 0 50% !important;
    width: 50% !important;
    max-width: 50% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 6px 0 0 !important;
    float: none !important;
    grid-column: auto !important;
    box-sizing: border-box !important;
    font-size: 13px !important;
    line-height: 1.35 !important;
    font-weight: 700 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  body .ci4-product-detail section.ci4-tour-info-box .ci4-tour-info-icon {
    flex: 0 0 24px !important;
    width: 24px !important;
    max-width: 24px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body .ci4-product-detail section.ci4-tour-info-box .ci4-tour-info-icon img {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    object-fit: contain !important;
  }

  body .ci4-product-detail section.ci4-tour-info-box .ci4-tour-info-text {
    min-width: 0 !important;
    display: block !important;
    overflow-wrap: anywhere !important;
  }
}

/* ── M07 related section: đã chuyển ra ngoài .ci4-detail-body ── */
.ci4-product-detail .ci4-related-tour-section {
  margin-top: 28px;
  margin-bottom: 28px;
}

.ci4-product-detail .ci4-related-tour-title {
  font-size: 18px;
  font-weight: 700;
  color: #0e5c2e;
  margin-bottom: 14px;
}

@media (max-width: 767px) {
  .ci4-product-detail .ci4-related-tour-section {
    margin-top: 22px !important;
  }

  .ci4-product-detail .ci4-related-tour-title {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    font-size: 22px !important;
    line-height: 1.3 !important;
    font-weight: 800 !important;
    color: #006b20 !important;
    margin: 12px auto 18px !important;
    text-transform: uppercase !important;
  }
}

/* ── M07 FINAL: sticky trên .ci4-detail-sidebar (không sticky inner box) ──
   Lý do chuyển: sidebar chỉ cao bằng support box → inner sticky không có vùng scroll
   Fix đúng: sticky wrapper sidebar, reset support box về static
   ─────────────────────────────────────────────────────────── */
@media (min-width: 992px) {
  body .ci4-product-detail,
  body .ci4-product-detail .container,
  body .ci4-product-detail #vnt-container,
  body .ci4-product-detail .dnb {
    overflow: visible !important;
    overflow-x: visible !important;
    transform: none !important;
  }

  body .ci4-product-detail .ci4-detail-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 24px !important;
    align-items: start !important;
    overflow: visible !important;
  }

  body .ci4-product-detail .ci4-detail-content {
    min-width: 0 !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body .ci4-product-detail .ci4-detail-sidebar {
    width: 320px !important;
    min-width: 0 !important;
    align-self: start !important;
    position: sticky !important;
    top: 90px !important;
    height: max-content !important;
    z-index: 10 !important;
    overflow: visible !important;
    transform: none !important;
  }

  body .ci4-product-detail .ci4-detail-sidebar .ci4-support-box,
  body .ci4-product-detail .ci4-support-box {
    position: static !important;
    top: auto !important;
    left: auto !important;
    width: auto !important;
    z-index: auto !important;
  }
}

/* ── Mobile: block layout, không sticky ── */
@media (max-width: 991px) {
  body .ci4-product-detail .ci4-detail-body {
    display: block !important;
  }

  body .ci4-product-detail .ci4-detail-sidebar,
  body .ci4-product-detail .ci4-support-box {
    width: 100% !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
  }
}

/* ═══════════════════════════════════════════════════════
   TICKET DETAIL — LAYOUT FIX (grid thay flex, tỷ lệ chuẩn)
   Root issue: ci4-ticket-right cũ fixed 300px (~26%) quá hẹp
   Fix: grid 42% ảnh / 58% info, match CI3 live ~49%/49%
   ═══════════════════════════════════════════════════════ */

/* Desktop ≥992px: grid 2 cột tỷ lệ */
@media (min-width: 992px) {
  .ci4-ticket-detail .ci4-ticket-main-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 42%) minmax(0, 58%) !important;
    gap: 28px !important;
    align-items: start !important;
  }

  /* Override flex cũ của .ci4-ticket-body nếu dùng chung class */
  .ci4-ticket-detail .ci4-ticket-body.ci4-ticket-main-grid {
    display: grid !important;
  }
}

/* Mobile ≤991px: 1 cột, không tràn */
@media (max-width: 991px) {
  .ci4-ticket-detail .ci4-ticket-main-grid {
    display: block !important;
  }

  .ci4-ticket-detail img,
  .ci4-ticket-detail table,
  .ci4-ticket-detail iframe {
    max-width: 100% !important;
  }

  .ci4-ticket-detail .table-responsive {
    overflow-x: auto !important;
    width: 100% !important;
  }

  /* Gallery kéo ngang trên mobile thay vì thumbnails */
  .ci4-ticket-detail .ci4-ticket-gallery #ci4-slider-thumbnail {
    display: none;
  }
}

/* Gallery: chiều cao ảnh chính */
.ci4-ticket-detail .ci4-ticket-gallery .ci4-ticket-main-image .img {
  height: 380px;
  overflow: hidden;
  background: #f5f5f5;
}

.ci4-ticket-detail .ci4-ticket-gallery .ci4-ticket-main-image .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Thumbnail strip */
.ci4-ticket-detail .ci4-ticket-gallery .ci4-ticket-thumbs {
  margin-top: 8px;
}

.ci4-ticket-detail .ci4-ticket-gallery .ci4-ticket-thumbs .img {
  height: 76px;
  overflow: hidden;
}

.ci4-ticket-detail .ci4-ticket-gallery .ci4-ticket-thumbs .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Summary column */
.ci4-ticket-detail .ci4-ticket-summary {
  min-width: 0;
}

@media (max-width: 767px) {
  .ci4-ticket-detail .ci4-ticket-gallery .ci4-ticket-main-image .img {
    height: 240px;
  }
}

/* ═══════════════════════════════════════════════════════
   TICKET LAYOUT FINAL FIX — override cũ width:300px + % grid
   Root cause xác nhận:
     1. .ci4-ticket-right { width: 300px } → item chỉ 300px dù grid track rộng hơn
     2. minmax(0,42%) minmax(0,58%) + gap:28px → overflow/sizing không nhất quán
   Fix: fr units + width:auto !important trên cột phải
   ═══════════════════════════════════════════════════════ */
@media (min-width: 992px) {
  body .ci4-product-detail.ci4-ticket-detail,
  body .ci4-ticket-detail {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body .ci4-ticket-detail .container,
  body .ci4-ticket-detail #vnt-container,
  body .ci4-ticket-detail .dnb {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* fr units: (container - gap) chia đúng tỷ lệ, không overflow như % */
  body .ci4-ticket-detail .ci4-ticket-main-grid {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: 46fr 54fr !important;
    gap: 28px !important;
    align-items: start !important;
    box-sizing: border-box !important;
  }

  /* Reset cột trái khỏi flex rules cũ */
  body .ci4-ticket-detail .ci4-ticket-gallery,
  body .ci4-ticket-detail .ci4-ticket-left {
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  /* KEY: override width:300px và flex:0 0 300px trên cột phải */
  body .ci4-ticket-detail .ci4-ticket-summary,
  body .ci4-ticket-detail .ci4-ticket-right {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: none !important;
  }
}

@media (max-width: 991px) {
  body .ci4-ticket-detail .ci4-ticket-main-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .ci4-ticket-detail .ci4-ticket-gallery,
  body .ci4-ticket-detail .ci4-ticket-summary,
  body .ci4-ticket-detail .ci4-ticket-left,
  body .ci4-ticket-detail .ci4-ticket-right {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}

/* ═══════════════════════════════════════════════════════
   TICKET SIDEBAR LAYOUT — ci4-detail-body/content/sidebar
   Tái dùng M07 tour sticky CSS (target .ci4-product-detail).
   Chỉ cần define inner grid ci4-ticket-main-grid (48%/52%)
   vì .ci4-detail-body/.ci4-detail-sidebar sticky đã có từ M07.
   ═══════════════════════════════════════════════════════ */
@media (min-width: 992px) {
  /* Inner grid: gallery bên trái, summary bên phải */
  body .ci4-ticket-detail .ci4-ticket-main-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%) !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body .ci4-ticket-detail .ci4-ticket-gallery,
  body .ci4-ticket-detail .ci4-ticket-summary {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
}

@media (max-width: 991px) {
  /* Mobile: ci4-detail-body stack (M07 CSS covers .ci4-product-detail) */
  body .ci4-ticket-detail .ci4-detail-content,
  body .ci4-ticket-detail .ci4-detail-sidebar {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  body .ci4-ticket-detail .ci4-detail-sidebar {
    position: static !important;
    top: auto !important;
    margin-top: 18px !important;
  }

  body .ci4-ticket-detail .ci4-ticket-main-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ── Gợi ý dịch vụ kết hợp — scoped cho vé & thuê xe ── */
body .ci4-ticket-detail .ci4-service-suggestion-box,
body .ci4-car-detail .ci4-service-suggestion-box {
  margin-top: 18px;
  background: #fff;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

body .ci4-ticket-detail .ci4-service-suggestion-title,
body .ci4-car-detail .ci4-service-suggestion-title {
  font-size: 15px;
  font-weight: 800;
  color: #e53935;
  border-bottom: 2px solid #e53935;
  padding-bottom: 8px;
  margin: 0 0 12px;
  text-transform: uppercase;
}

body .ci4-ticket-detail .ci4-service-suggestion-item,
body .ci4-car-detail .ci4-service-suggestion-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

body .ci4-ticket-detail .ci4-service-suggestion-item img,
body .ci4-car-detail .ci4-service-suggestion-item img {
  width: 86px;
  height: 58px;
  object-fit: cover;
  border-radius: 6px;
  flex: 0 0 86px;
  display: block;
}

body .ci4-ticket-detail .ci4-service-suggestion-item-title,
body .ci4-car-detail .ci4-service-suggestion-item-title {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  display: block;
}

body .ci4-ticket-detail .ci4-service-suggestion-item-title:hover,
body .ci4-car-detail .ci4-service-suggestion-item-title:hover {
  color: #e53935;
  text-decoration: none;
}

/* ═══════════════════════════════════════════════════════
   TICKET SUMMARY UI — meta-row / rules / actions / quick-form / payment
   Scoped toàn bộ dưới body .ci4-ticket-detail .ci4-ticket-summary
   ═══════════════════════════════════════════════════════ */

/* ── Meta 4 cột (mobile-first: 2 cột) ── */
body .ci4-ticket-detail .ci4-ticket-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #f8fff9;
  border: 1px solid #d4f0d8;
  border-radius: 6px;
}

body .ci4-ticket-detail .ci4-ticket-meta-item {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

body .ci4-ticket-detail .ci4-meta-label {
  color: #555;
  font-weight: 400;
}

body .ci4-ticket-detail .ci4-meta-none {
  color: #888;
  font-weight: 400;
}

body .ci4-ticket-detail .ci4-price-contact {
  color: #27ae60 !important;
  font-size: 22px !important;
}

/* ── Quy định: header nổi bật + content rõ ── */
body .ci4-ticket-detail .ci4-ticket-rules {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  margin: 14px 0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

body .ci4-ticket-detail .ci4-ticket-rules-title {
  display: block;
  background: #0b7f1a;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.3;
  padding: 12px 14px;
  margin: 0;
  border-radius: 6px 6px 0 0;
}

body .ci4-ticket-detail .ci4-ticket-rules-content {
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid #bfe8c5;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background: #fff;
}

body .ci4-ticket-detail .ci4-ticket-rules-content .ci4-rules-list {
  margin: 0;
  padding-left: 18px;
}

body .ci4-ticket-detail .ci4-ticket-rules-content .ci4-rules-list li {
  margin-bottom: 4px;
}

/* ── Nút hành động: 2 cột grid ── */
body .ci4-ticket-detail .ci4-ticket-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 10px;
}

body .ci4-ticket-detail .ci4-ticket-actions .ci4-btn-call,
body .ci4-ticket-detail .ci4-ticket-actions .ci4-btn-chat {
  height: 48px;
  font-size: 17px;
  font-weight: 800;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  border-radius: 8px !important;
  gap: 6px;
  padding: 0 10px !important;
}

/* ── Form tư vấn nhanh ── */
body .ci4-ticket-detail .ci4-ticket-quick-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 8px;
  margin-bottom: 14px;
}

body .ci4-ticket-detail .ci4-ticket-quick-form input[type="tel"] {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
}

body .ci4-ticket-detail .ci4-ticket-quick-form input[type="tel"]:focus {
  border-color: #1aa334;
}

body .ci4-ticket-detail .ci4-ticket-quick-form .ci4-btn-quick-call {
  height: 40px;
  background: #f57c00;
  color: #fff;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  white-space: nowrap;
}

body .ci4-ticket-detail .ci4-ticket-quick-form .ci4-btn-quick-call:hover {
  background: #e65100;
  color: #fff;
  text-decoration: none;
}

/* ── Thanh toán ── */
body .ci4-ticket-detail .ci4-ticket-payment {
  border-top: 1px solid #eee;
  padding-top: 12px;
  margin-top: 4px;
}

body .ci4-ticket-detail .ci4-ticket-payment-title {
  font-weight: 700;
  font-size: 12px;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}

body .ci4-ticket-detail .ci4-payment-imgs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

body .ci4-ticket-detail .ci4-payment-imgs img {
  height: 26px;
  object-fit: contain;
}

/* ── Desktop ≥ 992px overrides ── */
@media (min-width: 992px) {
  body .ci4-ticket-detail .ci4-ticket-meta-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    text-align: center !important;
  }

  body .ci4-ticket-detail .ci4-ticket-meta-item {
    justify-content: center !important;
    font-size: 14px !important;
  }

  body .ci4-ticket-detail .ci4-ticket-rules-title {
    font-size: 22px !important;
    padding: 14px 18px !important;
  }

  body .ci4-ticket-detail .ci4-ticket-rules-content {
    font-size: 16px !important;
    padding: 18px !important;
  }

  body .ci4-ticket-detail .ci4-ticket-actions .ci4-btn-call,
  body .ci4-ticket-detail .ci4-ticket-actions .ci4-btn-chat {
    height: 52px !important;
    font-size: 20px !important;
  }

  body .ci4-ticket-detail .ci4-ticket-quick-form {
    grid-template-columns: minmax(0, 1fr) 88px !important;
    gap: 10px !important;
  }

  body .ci4-ticket-detail .ci4-ticket-quick-form input[type="tel"] {
    height: 42px !important;
    font-size: 14px !important;
  }

  body .ci4-ticket-detail .ci4-ticket-quick-form .ci4-btn-quick-call {
    height: 42px !important;
    font-size: 14px !important;
  }
}

/* ── Giá vé: căn giữa ── */
body .ci4-ticket-detail .ci4-ticket-price-block {
  text-align: center !important;
  margin: 14px 0 !important;
}

body .ci4-ticket-detail .ci4-ticket-price-block .ci4-price-sale {
  display: block !important;
}

body .ci4-ticket-detail .ci4-ticket-price-block .ci4-price-old {
  display: block !important;
}

/* ── Heart "Đã thích": không clickable (CI3 cũng không có handler) ── */
body .ci4-ticket-detail .ci4-ticket-meta-item .fa-heart {
  cursor: default !important;
  pointer-events: none !important;
}

/* ── Thanh toán: căn giữa ── */
body .ci4-ticket-detail .ci4-ticket-payment {
  text-align: center !important;
  border-top: 1px solid #eee !important;
  padding-top: 14px !important;
  margin-top: 14px !important;
}

body .ci4-ticket-detail .ci4-ticket-payment-title {
  text-align: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: #888 !important;
  margin: 0 0 10px !important;
}

body .ci4-ticket-detail .ci4-payment-imgs {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
}

body .ci4-ticket-detail .ci4-payment-imgs img {
  height: 30px !important;
  width: auto !important;
  object-fit: contain !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

/* ── Quick-form button styles (button thay <a>) ── */
body .ci4-ticket-detail #formuanhanhproduct .ci4-btn-quick-call {
  border: none !important;
  cursor: pointer !important;
}

body .ci4-ticket-detail #formuanhanhproduct .ci4-btn-quick-call:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

/* ═══════════════════════════════════════════════════════
   GALLERY VIDEO — thumbnail đầu gallery, click mở Fancybox
   ── Ticket/Car: ci4-thumb-fixed standalone (không trong slick)
   ── Tour: ci4-detail-gallery-item ci4-gallery-video-item (cùng kích thước ảnh)
   ═══════════════════════════════════════════════════════ */

/* Ticket/Car: thumbnail row = flex [video_thumb] [slick_photo_thumbs] */
.ci4-ticket-detail .ci4-thumb-row,
.ci4-car-detail .ci4-thumb-row {
  display: flex;
  gap: 4px;
  align-items: flex-start;  /* flex-start: không stretch video thumb theo slick height */
  margin-top: 8px;
}

/* Slick photo strip chiếm phần còn lại */
.ci4-ticket-detail .ci4-thumb-slick,
.ci4-car-detail .ci4-thumb-slick {
  flex: 1;
  min-width: 0;
}

/* Video thumb standalone: cùng chiều cao thumbnail strip */
.ci4-ticket-detail .ci4-thumb-fixed {
  flex: 0 0 auto;
  width: 108px;
  height: 76px;    /* khớp với .ci4-ticket-thumbs .img height */
  border-radius: 4px;
  overflow: hidden;
  display: block;
  position: relative;
  background: #111;
  text-decoration: none;
}

.ci4-car-detail .ci4-thumb-fixed {
  flex: 0 0 auto;
  width: 112px;
  height: 80px;    /* khớp với #ci4-slider-thumbnail .img height */
  border-radius: 4px;
  overflow: hidden;
  display: block;
  position: relative;
  background: #111;
  text-decoration: none;
}

/* Base: ci4-gallery-video-item — không set width/height (kế thừa từ class cha) */
body .ci4-product-detail .ci4-gallery-video-item {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
  background: #111 !important;
  text-decoration: none !important;
}

body .ci4-product-detail .ci4-gallery-video-item img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: .82 !important;
}

body .ci4-product-detail .ci4-gallery-video-item:hover img {
  opacity: 1 !important;
}

/* Play icon overlay — dùng ::after để không cần thêm <span> */
body .ci4-product-detail .ci4-gallery-video-item::after {
  content: '▶' !important;
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fff !important;
  font-size: 26px !important;
  background: rgba(0,0,0,.22) !important;
  pointer-events: none !important;
}

body .ci4-product-detail .ci4-gallery-video-item:hover::after {
  background: rgba(0,0,0,.38) !important;
}

/* Tour: video item kế thừa width từ ci4-detail-gallery-item (340px), thêm height cố định
   để img height:100% có anchor. Photo dùng img height:210px; video cần height trên container. */
body .ci4-product-detail .ci4-detail-gallery-item.ci4-gallery-video-item {
  background: #111 !important;
  height: 210px !important;  /* khớp với ci4-detail-gallery-item img height:210px */
}

/* Mobile */
@media (max-width: 767px) {
  .ci4-ticket-detail .ci4-thumb-fixed {
    width: 82px;
    height: 62px;
  }

  .ci4-car-detail .ci4-thumb-fixed {
    width: 86px;
    height: 62px;
  }

  body .ci4-product-detail .ci4-gallery-video-item::after {
    font-size: 20px !important;
  }

  /* Tour mobile: khớp với ci4-detail-gallery-item img mobile height:170px */
  body .ci4-product-detail .ci4-detail-gallery-item.ci4-gallery-video-item {
    height: 170px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   TICKET / CAR: thumbnail strip thuần flex — thay slick asNavFor
   Class chung: ci4-ticket-thumbstrip / ci4-ticket-thumb
   ═══════════════════════════════════════════════════════ */

.ci4-ticket-detail .ci4-ticket-thumbstrip,
.ci4-car-detail   .ci4-ticket-thumbstrip {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}

.ci4-ticket-detail .ci4-ticket-thumb,
.ci4-car-detail   .ci4-ticket-thumb {
  flex: 0 0 110px;
  width: 110px;
  height: 76px;
  overflow: hidden;
  border-radius: 5px;
  display: block;
  text-decoration: none;
  background: #eee;
  position: relative;
}

.ci4-ticket-detail .ci4-ticket-thumb img,
.ci4-car-detail   .ci4-ticket-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover: highlight thumbnail */
.ci4-ticket-detail .ci4-ticket-thumb:hover,
.ci4-car-detail   .ci4-ticket-thumb:hover {
  outline: 2px solid #1aa334;
}

/* Video thumbnail: dark bg + play icon từ global .ci4-gallery-video-item::after */
.ci4-ticket-detail .ci4-ticket-thumb.ci4-gallery-video-item,
.ci4-car-detail   .ci4-ticket-thumb.ci4-gallery-video-item {
  background: #111 !important;
}

.ci4-ticket-detail .ci4-ticket-thumb.ci4-gallery-video-item img,
.ci4-car-detail   .ci4-ticket-thumb.ci4-gallery-video-item img {
  opacity: .82;
}

@media (max-width: 767px) {
  .ci4-ticket-detail .ci4-ticket-thumb,
  .ci4-car-detail   .ci4-ticket-thumb {
    flex: 0 0 82px;
    width: 82px;
    height: 58px;
  }
}

/* ═══════════════════════════════════════════════════════
   CAR DETAIL — sync bố cục với Ticket (Vé)
   ci4-car-body      → ci4-ticket-main-grid (2-col grid)
   ci4-car-left      → ci4-ticket-gallery
   ci4-car-right     → ci4-ticket-summary
   ci4-car-rules     → ci4-ticket-rules (styled header)
   ci4-rules-title   → ci4-ticket-rules-title (dark green bg)
   ci4-car-contact-btns → ci4-ticket-actions (grid 2-col)
   ci4-car-payment   → ci4-ticket-payment (center)
   ═══════════════════════════════════════════════════════ */

/* Desktop ≥992px: grid 2 cột */
@media (min-width: 992px) {
  body .ci4-car-detail .ci4-car-body {
    display: grid !important;
    grid-template-columns: minmax(0, 48%) minmax(0, 52%) !important;
    gap: 24px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  body .ci4-car-detail .ci4-car-left,
  body .ci4-car-detail .ci4-car-right {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }
}

/* Mobile ≤991px: 1 cột */
@media (max-width: 991px) {
  body .ci4-car-detail .ci4-car-body {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  body .ci4-car-detail .ci4-car-left,
  body .ci4-car-detail .ci4-car-right {
    width: 100% !important;
    max-width: 100% !important;
    flex: none !important;
  }
}

/* Giá: căn giữa */
body .ci4-car-detail .ci4-car-price-block {
  text-align: center !important;
  margin: 14px 0 !important;
}

body .ci4-car-detail .ci4-car-price-block .ci4-price-sale {
  display: block !important;
}

body .ci4-car-detail .ci4-car-price-block .ci4-price-old {
  display: block !important;
}

/* Thủ tục thuê xe: dark-green header giống "Quy Định Đặt Vé" */
body .ci4-car-detail .ci4-car-rules {
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  margin: 14px 0 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
}

body .ci4-car-detail .ci4-rules-title {
  display: block !important;
  background: #0b7f1a !important;
  color: #fff !important;
  font-size: 18px !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  padding: 12px 14px !important;
  margin: 0 !important;
  border-radius: 6px 6px 0 0 !important;
}

body .ci4-car-detail .ci4-car-rules .ci4-rules-list {
  margin: 0 !important;
  padding: 14px 14px 14px 32px !important;
  font-size: 14px !important;
  line-height: 1.7 !important;
  border: 1px solid #bfe8c5 !important;
  border-top: none !important;
  border-radius: 0 0 6px 6px !important;
  background: #fff !important;
}

body .ci4-car-detail .ci4-car-rules .ci4-rules-list li {
  margin-bottom: 4px !important;
}

/* Nút hành động: grid 2 cột */
body .ci4-car-detail .ci4-car-contact-btns {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin: 14px 0 10px !important;
}

body .ci4-car-detail .ci4-car-contact-btns .ci4-btn-call,
body .ci4-car-detail .ci4-car-contact-btns .ci4-btn-chat {
  height: 48px !important;
  font-size: 17px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: none !important;
  border-radius: 8px !important;
  gap: 6px !important;
  padding: 0 10px !important;
}

/* Thanh toán: căn giữa */
body .ci4-car-detail .ci4-car-payment {
  text-align: center !important;
  border-top: 1px solid #eee !important;
  padding-top: 12px !important;
  margin-top: 14px !important;
}

body .ci4-car-detail .ci4-car-payment p {
  font-weight: 700 !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #555 !important;
  margin: 0 0 8px !important;
}

/* Desktop: nút to hơn, rules font to hơn */
@media (min-width: 992px) {
  body .ci4-car-detail .ci4-rules-title {
    font-size: 22px !important;
    padding: 14px 18px !important;
  }

  body .ci4-car-detail .ci4-car-rules .ci4-rules-list {
    font-size: 16px !important;
    padding: 18px 18px 18px 38px !important;
  }

  body .ci4-car-detail .ci4-car-contact-btns .ci4-btn-call,
  body .ci4-car-detail .ci4-car-contact-btns .ci4-btn-chat {
    height: 52px !important;
    font-size: 20px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   M07 UI POLISH — Color system & spacing cho Vé / Xe
   Mục tiêu: thống nhất 5 tông xanh → 2 tông rõ ràng
     Tông đậm (header, title): --ci4-green-dark  #065102
     Tông sáng (button, active): --ci4-green      #1aa334
   ═══════════════════════════════════════════════════════ */

/* CSS Custom Properties — scoped chỉ Vé + Xe */
body .ci4-ticket-detail,
body .ci4-car-detail {
  --ci4-green:        #1aa334;
  --ci4-green-dark:   #065102;
  --ci4-green-mid:    #148a2b;
  --ci4-green-soft:   #f4fff6;
  --ci4-green-border: #c5e8cc;
  --ci4-green-table:  #eef8ef;
}

/* H1 title: đồng bộ về tông đậm */
body .ci4-ticket-detail .infor_h1 h1,
body .ci4-car-detail .infor_h1 h1 {
  color: var(--ci4-green-dark) !important;
}

/* Sidebar support title: tông đậm (consistent với rules header) */
body .ci4-ticket-detail .support-title,
body .ci4-car-detail .support-title {
  color: var(--ci4-green-dark) !important;
}

/* Btn Gọi Ngay: green system */
body .ci4-ticket-detail .ci4-btn-call,
body .ci4-car-detail .ci4-btn-call {
  background: var(--ci4-green) !important;
}

body .ci4-ticket-detail .ci4-btn-call:hover,
body .ci4-car-detail .ci4-btn-call:hover {
  background: var(--ci4-green-mid) !important;
  text-decoration: none !important;
}

/* Sidebar submit button */
body .ci4-ticket-detail .support-box .btn-submit,
body .ci4-car-detail .support-box .btn-submit {
  background: var(--ci4-green) !important;
}

body .ci4-ticket-detail .support-box .btn-submit:hover,
body .ci4-car-detail .support-box .btn-submit:hover {
  background: var(--ci4-green-mid) !important;
}

/* Sidebar Gọi Ngay (btn-success trong sidebar) */
body .ci4-ticket-detail .ci4-detail-sidebar .btn-success,
body .ci4-car-detail .ci4-detail-sidebar .btn-success {
  background-color: var(--ci4-green) !important;
  border-color: var(--ci4-green-mid) !important;
}

/* FAQ question */
body .ci4-ticket-detail .faq-question,
body .ci4-car-detail .faq-question {
  color: var(--ci4-green-dark) !important;
}

/* Comments / rating title */
body .ci4-ticket-detail #mystar .title,
body .ci4-car-detail #mystar .title {
  color: var(--ci4-green-dark) !important;
}

/* ── Table giá: wrapper + spacing ── */
body .ci4-ticket-detail .table-responsive,
body .ci4-car-detail .table-responsive {
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 2px 8px rgba(0,0,0,.06) !important;
  border: 1px solid var(--ci4-green-border) !important;
  margin: 20px 0 !important;
}

body .ci4-ticket-detail .table-responsive table,
body .ci4-car-detail .table-responsive table {
  margin-bottom: 0 !important;
}

/* Table header */
body .ci4-ticket-detail .table-responsive thead th,
body .ci4-car-detail .table-responsive thead th {
  background: var(--ci4-green-table) !important;
  color: var(--ci4-green-dark) !important;
  padding: 11px 14px !important;
  font-size: 12px !important;
  letter-spacing: 0.3px !important;
  border-color: var(--ci4-green-border) !important;
}

/* Table body rows */
body .ci4-ticket-detail .table-responsive tbody td,
body .ci4-car-detail .table-responsive tbody td {
  padding: 10px 14px !important;
  vertical-align: middle !important;
  font-size: 13px !important;
}

body .ci4-ticket-detail .table-responsive tbody tr:hover td,
body .ci4-car-detail .table-responsive tbody tr:hover td {
  background: var(--ci4-green-soft) !important;
}

/* Nút Liên Hệ trong table */
body .ci4-ticket-detail .table-responsive .btn-success,
body .ci4-car-detail .table-responsive .btn-success {
  background-color: var(--ci4-green) !important;
  border-color: var(--ci4-green-mid) !important;
  font-weight: 600 !important;
}

/* ── Content gutter nhẹ cho desktop ── */
@media (min-width: 992px) {
  body .ci4-ticket-detail .ci4-detail-body,
  body .ci4-car-detail .ci4-detail-body {
    margin-top: 4px !important;
  }

  /* Short description / long description: thêm padding gọn */
  body .ci4-ticket-detail .ci4-detail-content > div[style*="margin:14px"],
  body .ci4-ticket-detail .ci4-detail-content > div[style*="margin:16px"],
  body .ci4-car-detail .ci4-detail-content > div[style*="margin:14px"],
  body .ci4-car-detail .ci4-detail-content > div[style*="margin:16px"] {
    padding: 0 2px !important;
  }
}

/* Mobile: không thêm padding tránh tràn */
@media (max-width: 991px) {
  body .ci4-ticket-detail .table-responsive,
  body .ci4-car-detail .table-responsive {
    border-radius: 6px !important;
    border-left: none !important;
    border-right: none !important;
    margin: 16px 0 !important;
  }
}

/* ── Extend ticket meta-row CSS sang car detail ── */
body .ci4-car-detail .ci4-ticket-meta-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 10px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: #f8fff9;
  border: 1px solid #d4f0d8;
  border-radius: 6px;
}

body .ci4-car-detail .ci4-ticket-meta-item {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

body .ci4-car-detail .ci4-meta-label { color: #555; font-weight: 400; }
body .ci4-car-detail .ci4-meta-none  { color: #888; font-weight: 400; }

body .ci4-car-detail .ci4-ticket-meta-item .fa-heart {
  cursor: default !important;
  pointer-events: none !important;
}

@media (min-width: 992px) {
  body .ci4-car-detail .ci4-ticket-meta-row {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    text-align: center !important;
  }
  body .ci4-car-detail .ci4-ticket-meta-item {
    justify-content: center !important;
    font-size: 14px !important;
  }
}

/* ── Extend quick-form và price-block CSS sang car detail ── */
body .ci4-car-detail .ci4-ticket-quick-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 80px;
  gap: 8px;
  margin-bottom: 14px;
}

body .ci4-car-detail .ci4-ticket-quick-form input[type="tel"] {
  width: 100%;
  height: 40px;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0 10px;
  font-size: 13px;
  box-sizing: border-box;
  outline: none;
}

body .ci4-car-detail .ci4-ticket-quick-form input[type="tel"]:focus {
  border-color: #1aa334;
}

body .ci4-car-detail .ci4-ticket-quick-form .ci4-btn-quick-call {
  height: 40px;
  background: #f57c00;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

body .ci4-car-detail .ci4-ticket-quick-form .ci4-btn-quick-call:hover {
  background: #e65100;
}

body .ci4-car-detail .ci4-ticket-quick-form .ci4-btn-quick-call:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

@media (min-width: 992px) {
  body .ci4-car-detail .ci4-ticket-quick-form {
    grid-template-columns: minmax(0, 1fr) 88px !important;
    gap: 10px !important;
  }
  body .ci4-car-detail .ci4-ticket-quick-form input[type="tel"] {
    height: 42px !important;
  }
  body .ci4-car-detail .ci4-ticket-quick-form .ci4-btn-quick-call {
    height: 42px !important;
  }
}

/* ═══════════════════════════════════════════════════════
   DETAIL GUTTER — padding trái/phải đồng bộ trang chủ/danh mục
   Selector: body .ci4-product-detail .container
   Covers tour (.ci4-tour-detail) + ticket + car (tất cả đều có .ci4-product-detail)
   Scoped: không ảnh hưởng trang chủ/danh mục (không có .ci4-product-detail)
   ═══════════════════════════════════════════════════════ */

body .ci4-product-detail .container {
  box-sizing: border-box !important;
}

/* Desktop ≥ 1200px: 28px */
@media (min-width: 1200px) {
  body .ci4-product-detail .container {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }
}

/* Tablet 992px–1199px: 20px */
@media (min-width: 992px) and (max-width: 1199px) {
  body .ci4-product-detail .container {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* Tablet 768px–991px: 18px (override existing 10px) */
@media (min-width: 768px) and (max-width: 991px) {
  body .ci4-product-detail .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* Mobile ≤ 767px: 14px (override existing 10px) */
@media (max-width: 767px) {
  body .ci4-product-detail .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
}
