/* Trang chi tiết tour – đồng bộ màu (2026-10-26) */

/* Giá gốc gạch ngang trong khung đặt tour */
#r_bking .tv-gia-old { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; line-height: 1.2; }
#r_bking .tv-gia-old s { color: rgba(255, 255, 255, .7); font-size: 15px; }
#r_bking .tv-gia-disc { padding: 2px 8px; border-radius: 6px; background: var(--gold, #FFD66B); color: var(--red-dd, #7c2d12); font-family: SF-UI-Text-Semibold; font-size: 12.5px; }

/* Lịch trình: mốc thời gian và tiêu đề ngày */
#tour-detail .right-day::before { background: var(--red, #c2410c) !important; box-shadow: 0 0 0 4px var(--red-bg, #fcf0e7); }
#tour-detail .day-title, #tour-detail .day-title * { color: var(--navy, #2a2f3a) !important; border-color: var(--navy, #2a2f3a); }
#tour-detail .day-number { color: var(--red, #c2410c); }

/* Bảng lịch khởi hành */
#lichkhoihanh .btn-danger { border-color: var(--red, #c2410c); background: var(--red, #c2410c); }
#lichkhoihanh .btn-danger:hover { border-color: var(--red-d, #9a3412); background: var(--red-d, #9a3412); }
#lichkhoihanh .btn-success { border: 1px solid var(--red, #c2410c); background: #fff; color: var(--red, #c2410c); }
#lichkhoihanh .btn-success:hover, #lichkhoihanh .btn-success:focus { background: var(--red-bg, #fcf0e7); color: var(--red, #c2410c); }

/* Hỏi đáp + đánh giá */
#tour-detail .ask-question, #tour-detail #reviews .button_contact_price { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; margin: 0; padding: 0 18px !important; border: 1.5px solid var(--red, #c2410c) !important; border-radius: 999px; background: #fff; color: var(--red, #c2410c); font-family: SF-UI-Text-Semibold; font-size: 14px; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
#tour-detail .ask-question:hover, #tour-detail #reviews .button_contact_price:hover { background: var(--red, #c2410c); color: #fff; }
#tour-detail .review-overview { padding: 16px 18px; border: 1px solid var(--sky-2, #fbe9dc); border-radius: 16px; background: var(--sky, #fef5ee); }
#tour-detail .review-over-rate { background: var(--red, #c2410c); }
@media (max-width: 767px) {
    #tour-detail .review-overview > .d-flex { flex-wrap: wrap; gap: 12px; }
    #tour-detail .review-overview > .d-flex > div:last-child { flex: none; }
}

/* Lịch khởi hành: chỉ hiện vài ngày gần nhất + nút xem thêm */
#lichkhoihanh tbody > tr.tv-dep-hide { display: none !important; }
.tv-dep-more { margin: 4px 0 8px; text-align: center; }
.tv-dep-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 22px; border: 1.5px solid var(--navy, #2a2f3a); border-radius: 999px; background: #fff; color: var(--navy, #2a2f3a); font-family: SF-UI-Text-Semibold; font-size: 14.5px; cursor: pointer; transition: background .2s, color .2s; }
.tv-dep-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.tv-dep-btn.open svg { transform: rotate(180deg); }
.tv-dep-btn:hover { background: var(--navy, #2a2f3a); color: #fff; }
@media (max-width: 767px) {
    .tv-dep-btn { width: 100%; justify-content: center; }
    #lichkhoihanh tbody > tr.responsive { margin: 0 0 12px; overflow: hidden; border: 1px solid var(--line, #fae8da); border-radius: 14px; background: #fff !important; box-shadow: var(--sh-sm); }
    #lichkhoihanh tbody > tr.responsive > td.responsive { padding: 11px 14px 11px 46%; border-bottom: 1px solid var(--line, #fae8da); background: transparent; color: var(--navy, #2a2f3a); font-family: SF-UI-Text-Semibold; }
    #lichkhoihanh tbody > tr.responsive > td.responsive:last-child { border-bottom: 0; }
    #lichkhoihanh tbody > tr.responsive > td.responsive::before { left: 14px; padding-top: 11px; color: var(--muted, #5A6682); font-family: SF-UI-Text-Regular, sans-serif; font-weight: normal; }
    #lichkhoihanh tbody > tr.responsive > td.sttt { display: none; }
    #lichkhoihanh tbody > tr.responsive > td:nth-of-type(3) > span:first-child .mda-money { color: var(--red, #c2410c); }
    #lichkhoihanh tbody > tr.responsive > td:nth-of-type(3) > span + span, #lichkhoihanh tbody > tr.responsive > td:nth-of-type(3) > span + span .mda-money { color: var(--muted, #5A6682) !important; font-family: SF-UI-Text-Regular, sans-serif; }
    #lichkhoihanh tbody > tr.responsive > td:nth-of-type(3) > span:first-child { color: var(--red, #c2410c); font-size: 17px; }
}
@media (max-width: 767px) {
    #lichkhoihanh .mda-price-item > td { display: block; max-width: calc(100vw - 30px); padding: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    #lichkhoihanh .mda-price-item-box { min-width: 0; }
}

/* Ngày khởi hành dạng ô nổi bật (đầu trang chi tiết tour) */
.tv-dep-dates { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 6px 0 4px; }
.tv-dep-dates .lbl { margin-right: 2px; color: var(--text, #2b303b); }
.tv-dep-dates .lbl .fa { color: var(--red, #c2410c); }
.tv-dep-dates .dt { display: inline-flex; align-items: center; min-height: 30px; padding: 0 11px; border: 1px solid #f7dcc7; border-radius: 8px; background: var(--red-bg, #fcf0e7); color: var(--red, #c2410c); font-family: SF-UI-Text-Semibold; font-size: 14.5px; }
.tv-dep-dates .dt.first { border-color: var(--red, #c2410c); background: var(--red, #c2410c); color: #fff; }

/* Điện thoại: bỏ chấm mốc lịch trình (đè lên chữ), thanh "Ngày" màu hồng */
@media (max-width: 767px) {
    #tour-detail .right-day::before { display: none !important; }
    #tour-detail .left-day { padding: 8px 14px; border-radius: 10px; background: var(--red-bg, #fcf0e7) !important; }
    #tour-detail .left-day, #tour-detail .day-number { color: var(--red, #c2410c) !important; font-family: SF-UI-Text-Semibold; }
}

/* Itinerary: show day 1, rest behind "Xem thêm" */
#days > .day.tv-day-hide { display: none; }
#days.tv-days-collapsed > .day:first-child { position: relative; }
#days.tv-days-collapsed > .day:first-child::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 48px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; }
.tv-days-more { margin: 6px 0 18px; text-align: center; }
@media (max-width: 767px) { .tv-days-more .tv-dep-btn { width: 100%; justify-content: center; } }

/* Itinerary: collapsible day cards (mockup 21) */
#days.tv-dys { display: grid; gap: 12px; margin: 6px 0 22px; padding: 0; border: 0; }
#days.tv-dys::before, #days.tv-dys::after { display: none !important; }
.tv-dys-tools { display: flex; justify-content: flex-end; margin: -4px 0 0; }
.tv-dy-all { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line-2, #f6d8c1); border-radius: 999px; background: #fff; color: var(--navy, #2a2f3a); font-family: SF-UI-Text-Semibold; font-size: 13.5px; cursor: pointer; transition: border-color .2s, color .2s; }
.tv-dy-all:hover, .tv-dy-all.on { border-color: var(--red, #c2410c); color: var(--red, #c2410c); }
.tv-dy-all svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tv-dy { border: 1px solid var(--line, #fae8da); border-radius: 18px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .25s; }
.tv-dy:hover { border-color: #f4cfb3; }
.tv-dy.open { border-color: #f6d9c3; box-shadow: 0 6px 18px -10px rgba(42,47,58,.25); }
.tv-dy-h { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 16px; align-items: center; width: 100%; padding: 16px 18px; border: 0; background: transparent; text-align: left; color: inherit; cursor: pointer; }
.tv-dy-h:focus { outline: none; }
.tv-dy-h:focus-visible { outline: 2px solid var(--red, #c2410c); outline-offset: -2px; }
.tv-dy.open .tv-dy-h { background: var(--sky, #fef5ee); border-bottom: 1px dashed #f2c7a6; }
.tv-dy-n { width: 58px; height: 62px; border-radius: 13px; background: var(--red-bg, #fcf0e7); color: var(--red, #c2410c); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: background .2s, color .2s; }
.tv-dy.open .tv-dy-n { background: var(--red, #c2410c); color: #fff; box-shadow: 0 10px 18px -10px rgba(194,65,12,.9); }
.tv-dy-n small { font-family: SF-UI-Text-Semibold; font-size: 10.5px; letter-spacing: .12em; margin-bottom: 4px; }
.tv-dy-n b { font-family: SF-UI-Text-Semibold; font-size: 24px; font-weight: normal; }
.tv-dy-t { min-width: 0; }
.tv-dy-t .ttl { display: block; font-family: SF-UI-Text-Semibold; font-size: 17px; line-height: 1.4; color: var(--navy, #2a2f3a); text-transform: none; }
.tv-dy-t .ttl span { font-family: SF-UI-Text-Regular; font-size: 14px; color: var(--muted, #5A6682); }
.tv-dy-t .sub { display: -webkit-box; margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: var(--muted, #5A6682); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-dy.open .tv-dy-t .sub { display: none; }
.tv-dy-c { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.tv-dy-c > span { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 4px 11px; border: 1px solid var(--line-2, #f6d8c1); border-radius: 999px; background: #fff; font-size: 12.5px; line-height: 1.4; color: var(--text, #2b303b); }
.tv-dy-c .fa { color: var(--red, #c2410c); }
.tv-dy-x { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--red-bg, #fcf0e7); color: var(--red, #c2410c); display: grid; place-items: center; transition: background .2s, color .2s; }
.tv-dy-x svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s; }
.tv-dy.open .tv-dy-x { background: var(--red, #c2410c); color: #fff; }
.tv-dy.open .tv-dy-x svg { transform: rotate(180deg); }
.tv-dy-b { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .32s ease, visibility .32s; }
.tv-dy.open .tv-dy-b { grid-template-rows: 1fr; visibility: visible; }
.tv-dy-b > div { min-height: 0; overflow: hidden; }
#days .tv-dy-in { padding: 18px 22px 20px; margin: 0; }
@media (max-width: 767px) {
  .tv-dy-h { gap: 12px; padding: 13px 12px; }
  .tv-dy-n { width: 48px; height: 52px; border-radius: 11px; }
  .tv-dy-n b { font-size: 20px; }
  .tv-dy-t .ttl { font-size: 15.5px; }
  .tv-dy-x { width: 30px; height: 30px; }
  #days .tv-dy-in { padding: 14px 14px 16px; }
}

/* Tiêu đề tour màu đỏ thương hiệu (2026-10-27) */
#tour-detail .h1-title { color: var(--red, #c2410c); }

/* === 2026-10-28 qa-icon: icon Q (Question) / A (Answer) cho phan Hoi dap (backup: *.bak-20261028-qa-icon) === */
.col-icon-text .ico-q, .col-icon-text .ico-a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    font-size: 16px !important; line-height: 1; font-style: normal; color: #fff;
}
.col-icon-text .ico-q { background: var(--blue, #c2410c); }
.col-icon-text .ico-a { background: var(--red, #c2410c); }
.col-icon-text .ico-q::before, .col-icon-text .ico-a::before { font-family: 'SF-UI-Text-Semibold', Arial, sans-serif; font-weight: 700; }
.col-icon-text .ico-q::before { content: "Q"; }
.col-icon-text .ico-a::before { content: "A"; }
/* === end qa-icon === */
