/* "Lên lịch trình với AI" (phiếu 015) — dùng biến giao diện của từng website (--w-*), không màu cứng ngoài nhóm địa điểm. */
/* Bố cục toàn màn (owner 2026-10-05): chat trái cao hết màn, bản đồ phải chiếm phần còn lại; lịch trình là thẻ nổi trên bản đồ. */
.lt-app { display: grid; grid-template-columns: minmax(340px, 420px) minmax(0, 1fr); height: calc(100dvh - var(--w-dau-cao) - 1px); min-height: 560px;
  background: var(--w-nen-xen); }
@media (max-width: 960px) { .lt-app { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 0; } }
.lt-nhan { font-weight: 600; color: var(--w-chinh); }

/* ---- Chat ---- */
.lt-chat { display: flex; flex-direction: column; min-height: 0; background: var(--w-nen); border-right: 1px solid var(--w-vien); z-index: 2; }
@media (max-width: 960px) { .lt-chat { height: min(640px, calc(100dvh - var(--w-dau-cao) - 1px)); border-right: 0; border-bottom: 1px solid var(--w-vien); } }
.lt-chat-dau { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--w-vien); }
.lt-chat-dau div { display: grid; line-height: 1.25; flex: 1; min-width: 0; }
.lt-chat-dau small { color: var(--w-mo); font-size: .78rem; }
.lt-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--w-chinh); color: var(--w-chu-tren-chinh); }
.lt-avatar .bt { width: 20px; height: 20px; }
.lt-lam-lai { border: 1px solid var(--w-vien); background: var(--w-nen); color: var(--w-mo); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.lt-lam-lai:hover { color: var(--w-chinh); border-color: var(--w-chinh); }
.lt-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--w-nen-xen); }
.lt-tin { max-width: 88%; padding: 10px 14px; border-radius: 16px; line-height: 1.55; font-size: .93rem; white-space: pre-line; overflow-wrap: anywhere; }
.lt-tin.khach { align-self: flex-end; background: var(--w-chinh); color: var(--w-chu-tren-chinh); border-bottom-right-radius: 4px; }
.lt-tin.ai { align-self: flex-start; background: var(--w-nen); color: var(--w-chu); border: 1px solid var(--w-vien); border-bottom-left-radius: 4px; }
.lt-tin.ai .lt-hoi-tieu-de { display: block; font-weight: 700; margin: .5em 0 .25em; }
/* Bảng thông tin chuyến đi của bộ câu hỏi: đã có = dấu ✓ màu chính, chưa có = vòng tròn rỗng mờ. */
.lt-tin.ai .lt-summary { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; font-size: .88rem; }
.lt-tin.ai .lt-summary li { position: relative; padding-left: 1.4em; }
.lt-tin.ai .lt-summary li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.lt-tin.ai .lt-summary li.done::before { content: "\2713"; color: var(--w-chinh); }
.lt-tin.ai .lt-summary li.todo { color: var(--w-mo); }
.lt-tin.ai .lt-summary li.todo::before { content: "\25CB"; }
.lt-tin.ai ul { margin: 0; padding-left: 1.2em; }
.lt-tin.ai li { margin: .15em 0; }
.lt-tin.dang { color: var(--w-mo); font-style: italic; }
.lt-cham { display: inline-flex; gap: 4px; }
.lt-cham i { width: 6px; height: 6px; border-radius: 50%; background: var(--w-mo); animation: lt-nhay 1s infinite ease-in-out; }
.lt-cham i:nth-child(2) { animation-delay: .15s; } .lt-cham i:nth-child(3) { animation-delay: .3s; }
@keyframes lt-nhay { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .lt-cham i { animation: none; } }
.lt-goi-y { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.lt-goi-y:empty { display: none; }
.lt-goi-y button { border: 1px solid var(--w-chinh-100); background: var(--w-chinh-50); color: var(--w-chinh-dam); border-radius: 999px;
  padding: .38em .9em; font-size: .82rem; cursor: pointer; }
.lt-goi-y button:hover { background: var(--w-chinh); color: var(--w-chu-tren-chinh); }
.lt-nhap { display: flex; gap: 8px; align-items: flex-end; padding: 12px 16px 16px; }
.lt-nhap textarea { flex: 1; resize: none; border: 1px solid var(--w-o-vien); border-radius: 14px; padding: 10px 12px; font: inherit; font-size: .93rem;
  background: var(--w-nen); color: var(--w-chu); min-height: 46px; max-height: 120px; }
.lt-nhap textarea:focus { outline: none; border-color: var(--w-chinh); box-shadow: var(--w-vong-o, 0 0 0 3px var(--w-chinh-100)); }
.lt-gui-nut { width: 46px; min-height: 46px; padding: 0; border-radius: 50%; flex: 0 0 auto; }
.lt-gui-nut .bt { width: 20px; height: 20px; }

/* ---- Bản đồ + thẻ lịch trình nổi ---- */
.lt-map-pane { position: relative; min-width: 0; min-height: 0; }
.lt-ban-do { position: absolute; inset: 0; background: var(--w-nen-xen); }
.lt-panel { position: absolute; top: 16px; left: 16px; bottom: 16px; width: min(420px, calc(100% - 32px)); display: flex; flex-direction: column;
  pointer-events: none; z-index: 1; }
.lt-panel > * { pointer-events: auto; }
@media (max-width: 960px) {
  .lt-map-pane { display: flex; flex-direction: column; }
  .lt-ban-do { position: relative; inset: auto; height: 55vh; min-height: 320px; }
  .lt-panel { position: static; width: auto; padding: 12px; }
}
.lt-trong { background: var(--w-nen); border: 1px solid var(--w-vien); border-radius: calc(var(--w-bo) + 6px); padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .14); overflow: auto; }
.lt-trong h2 { margin: 0 0 .4rem; font-size: 1.15rem; color: var(--w-chu); }
.lt-trong p { color: var(--w-mo); margin: 0 0 .9rem; font-size: .92rem; line-height: 1.55; }
.lt-trong .lt-trong-goi-y { margin-bottom: .5rem; color: var(--w-chu); font-weight: 600; }
.lt-mau { display: grid; gap: 8px; }
.lt-the-mau { display: grid; gap: 2px; text-align: left; border: 1px solid var(--w-vien); background: var(--w-nen-xen); border-radius: var(--w-bo);
  padding: 10px 14px; cursor: pointer; color: var(--w-chu); }
.lt-the-mau span { color: var(--w-mo); font-size: .85rem; }
.lt-the-mau:hover { border-color: var(--w-chinh); background: var(--w-chinh-50); }

.lt-co { display: flex; flex-direction: column; min-height: 0; max-height: 100%; background: var(--w-nen); border: 1px solid var(--w-vien);
  border-radius: calc(var(--w-bo) + 6px); box-shadow: 0 12px 32px rgba(15, 23, 42, .14); overflow: hidden; }
.lt-co[hidden] { display: none; }
.lt-than-panel { overflow-y: auto; min-height: 0; flex: 1; }
.lt-co.is-collapsed .lt-than-panel { display: none; }
.lt-thu-gon { flex: 0 0 auto; align-self: start; border: 1px solid var(--w-vien); background: var(--w-nen); color: var(--w-chu); border-radius: 999px;
  padding: .3em .9em; font-size: .8rem; cursor: pointer; }
.lt-thu-gon:hover { border-color: var(--w-chinh); color: var(--w-chinh); }
.lt-tieu-de { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--w-vien); }
.lt-tieu-de-chu { min-width: 0; }
.lt-tieu-de h2 { margin: 0 0 .4rem; font-family: var(--w-phong-tieu-de); font-size: 1.15rem; color: var(--w-chu); }
.lt-chip { display: flex; flex-wrap: wrap; gap: 6px; }
.lt-chip span { font-size: .75rem; background: var(--w-nen-xen); border: 1px solid var(--w-vien); border-radius: 999px; padding: .25em .75em; color: var(--w-chu); }
.lt-tong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 12px 16px 0; }
.lt-tong small { color: var(--w-mo); font-size: .78rem; }
.lt-tong b { font-size: 1.3rem; color: var(--w-gia-nhan, var(--w-chinh)); line-height: 1.2; }
.lt-ngay { display: flex; gap: 6px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid var(--w-vien); scrollbar-width: thin; }
.lt-ngay button { flex: 0 0 auto; border: 1px solid var(--w-vien); background: var(--w-nen); color: var(--w-chu); border-radius: 999px; padding: .45em 1.05em;
  cursor: pointer; font-size: .88rem; }
.lt-ngay button[aria-selected="true"] { background: var(--w-chinh); border-color: var(--w-chinh); color: var(--w-chu-tren-chinh); }
.lt-ngay button small { opacity: .75; margin-left: .35em; }

.lt-dong { list-style: none; margin: 0; padding: 14px 16px 8px; display: grid; gap: 12px; }
.lt-diem { display: grid; grid-template-columns: 44px 84px minmax(0, 1fr) 28px; gap: 10px; align-items: start; cursor: pointer; border-radius: var(--w-bo); }
.lt-diem:hover .lt-than h3 { color: var(--w-chinh); }
.lt-gio { display: grid; justify-items: center; gap: 6px; padding-top: 4px; }
.lt-gio b { font-size: .88rem; color: var(--w-chu); }
.lt-so { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .78rem; font-weight: 700; }
.lt-anh { width: 84px; height: 72px; border-radius: var(--w-bo); overflow: hidden; background: var(--w-nen-xen); display: grid; place-items: center; }
.lt-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Ảnh minh hoạ mặc định theo nhóm (màu nước, nền trong) — giữ trọn hình trên nền nhạt màu nhóm. */
.lt-anh img.is-default { object-fit: contain; padding: 6px; }
/* Ghi công ảnh Commons (CC BY-SA bắt buộc ghi tác giả + giấy phép). */
.lt-credit { font-size: .72rem; color: var(--w-mo); }
.lt-anh-trong { width: 100%; height: 100%; display: grid; place-items: center; font-size: 2rem; }
.lt-than { min-width: 0; display: grid; gap: 4px; }
.lt-than h3 { margin: 0; font-size: .95rem; color: var(--w-chu); line-height: 1.35; }
.lt-nhom { display: inline-block; font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .15em .65em; width: fit-content; }
.lt-dc { color: var(--w-mo); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lt-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--w-mo); font-size: .82rem; }
.lt-meta b { color: var(--w-chu); font-weight: 600; }
.lt-uoc { font-size: .7rem; border: 1px solid var(--w-vien); border-radius: 4px; padding: 0 .35em; color: var(--w-mo); }
.lt-gc { font-size: .84rem; color: var(--w-chu); background: var(--w-nen-xen); border-radius: 8px; padding: 6px 10px; }
@media (max-width: 560px) {
  .lt-diem { grid-template-columns: 44px minmax(0, 1fr) 28px; }
  .lt-anh { grid-column: 2; width: 100%; height: 140px; }
  .lt-than { grid-column: 2; }
}
.lt-cta { display: grid; gap: 10px; margin: 8px 16px 16px; padding: 14px 16px;
  background: var(--w-chinh-50); border: 1px solid var(--w-chinh-100); border-radius: var(--w-bo); }
.lt-cta p { margin: 0; color: var(--w-chu); font-size: .9rem; }

/* Ghim bản đồ */
.lt-ghim { width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center;
  border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .3); }
.lt-ghim span { transform: rotate(45deg); color: #fff; font-weight: 700; font-size: .8rem; }

/* Hộp gửi yêu cầu */
.lt-hop { border: 0; border-radius: calc(var(--w-bo) + 6px); padding: 0; width: min(520px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.lt-hop::backdrop { background: rgba(15, 23, 42, .5); }
.lt-hop form { display: grid; gap: 12px; padding: 22px; }
.lt-hop h2 { margin: 0; font-size: 1.2rem; color: var(--w-chu); }
.lt-hop-mo { margin: 0; color: var(--w-mo); font-size: .9rem; }
.lt-hop textarea { border: 1px solid var(--w-o-vien); border-radius: var(--w-bo); padding: 10px 12px; font: inherit; background: var(--w-nen); color: var(--w-chu); }
.lt-hop-loi { margin: 0; color: var(--w-loi, #c0392b); font-size: .88rem; min-height: 1.2em; }
.lt-hop-nut { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.lt-hop .o input[aria-invalid="true"] { border-color: var(--w-loi, #c0392b); }
.lt-xong { text-align: center; padding: 8px 0; }
.lt-xong b { display: block; font-size: 1.1rem; color: var(--w-chu); margin-bottom: .25rem; }

/* Màu nhóm địa điểm (khớp NhomDiaDiem) — lớp CSS, vì CSP cấm style="" và ghim Leaflet có thể dựng sau khi vẽ. */
.n-luu-tru .lt-so, .lt-ghim.n-luu-tru { background: #7367f0; } .n-luu-tru .lt-nhom { background: #7367f022; color: #7367f0; } .n-luu-tru .lt-anh-trong { background: #7367f018; }
.n-an-uong .lt-so, .lt-ghim.n-an-uong { background: #ff9f43; } .n-an-uong .lt-nhom { background: #ff9f4322; color: #ff9f43; } .n-an-uong .lt-anh-trong { background: #ff9f4318; }
.n-cafe .lt-so, .lt-ghim.n-cafe { background: #a1662f; } .n-cafe .lt-nhom { background: #a1662f22; color: #a1662f; } .n-cafe .lt-anh-trong { background: #a1662f18; }
.n-tham-quan .lt-so, .lt-ghim.n-tham-quan { background: #28c76f; } .n-tham-quan .lt-nhom { background: #28c76f22; color: #28c76f; } .n-tham-quan .lt-anh-trong { background: #28c76f18; }
.n-bien .lt-so, .lt-ghim.n-bien { background: #00bad1; } .n-bien .lt-nhom { background: #00bad122; color: #00bad1; } .n-bien .lt-anh-trong { background: #00bad118; }
.n-spa .lt-so, .lt-ghim.n-spa { background: #e83e8c; } .n-spa .lt-nhom { background: #e83e8c22; color: #e83e8c; } .n-spa .lt-anh-trong { background: #e83e8c18; }
.n-mua-sam .lt-so, .lt-ghim.n-mua-sam { background: #ea5455; } .n-mua-sam .lt-nhom { background: #ea545522; color: #ea5455; } .n-mua-sam .lt-anh-trong { background: #ea545518; }
.n-vui-choi .lt-so, .lt-ghim.n-vui-choi { background: #9c27b0; } .n-vui-choi .lt-nhom { background: #9c27b022; color: #9c27b0; } .n-vui-choi .lt-anh-trong { background: #9c27b018; }
.n-di-chuyen .lt-so, .lt-ghim.n-di-chuyen { background: #808390; } .n-di-chuyen .lt-nhom { background: #80839022; color: #808390; } .n-di-chuyen .lt-anh-trong { background: #80839018; }
.n-khac .lt-so, .lt-ghim.n-khac { background: #4b4b4b; } .n-khac .lt-nhom { background: #4b4b4b22; color: #4b4b4b; } .n-khac .lt-anh-trong { background: #4b4b4b18; }

/* Popup chi tiết địa điểm trên bản đồ (bấm ghim). */
.lt-pop .maplibregl-popup-content { padding: 0; border-radius: var(--w-bo); overflow: hidden; box-shadow: 0 12px 32px rgba(15, 23, 42, .2); }
.lt-pop .maplibregl-popup-close-button { width: 26px; height: 26px; font-size: 1.1rem; color: #fff; background: rgba(15, 23, 42, .45);
  border-radius: 0 0 0 8px; }
.lt-pop-anh { height: 140px; background: var(--w-nen-xen); }
.lt-pop-anh img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lt-pop-anh.is-default img { object-fit: contain; padding: 10px; }
.lt-pop-than { display: grid; gap: 4px; padding: 10px 12px 12px; font-size: .84rem; color: var(--w-chu); }
.lt-pop-nhom { font-size: .74rem; font-weight: 600; color: var(--w-chinh); }
.lt-pop-ten { font-size: .98rem; line-height: 1.3; }
.lt-pop-dong { color: var(--w-mo); text-decoration: none; }
a.lt-pop-dong:hover { color: var(--w-chinh); }
.lt-pop-mo-ta { margin: 2px 0 0; line-height: 1.5; color: var(--w-chu); }
.lt-pop-credit { font-size: .7rem; color: var(--w-mo); }
.lt-ghim:focus-visible, [role=button]:focus-visible > .lt-ghim { outline: 3px solid var(--w-chinh); outline-offset: 2px; }

/* Nút chia sẻ lịch trình + dòng báo đã sao chép link. */
.lt-tieu-de-nut { display: flex; gap: 6px; align-items: flex-start; flex: 0 0 auto; }
.lt-chia-se { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--w-chinh); background: var(--w-chinh); color: var(--w-chu-tren-chinh);
  border-radius: 999px; padding: .3em .9em; font-size: .8rem; cursor: pointer; white-space: nowrap; }
.lt-chia-se .bt { width: 14px; height: 14px; }
.lt-chia-se:hover { filter: brightness(1.08); }
.lt-chia-se-tb { margin: 0; padding: 0 16px; font-size: .8rem; color: var(--w-chinh); }
.lt-chia-se-tb:empty { display: none; }
.lt-chia-se-tb:not(:empty) { padding: 8px 16px; background: var(--w-chinh-50); }

/* Ghim điểm đến trên bản đồ Việt Nam lúc chưa có lịch trình (owner 2026-10-06) — bấm để bắt đầu lên lịch trình cho điểm đó.
   Gọn một dòng để cụm điểm gần nhau (Hà Nội / Hạ Long / Ninh Bình) ít chồng; nút nằm TRONG lớp bọc vì MapLibre đặt transform lên lớp bọc. */
.lt-dd-ghim { padding-bottom: 5px; }
.lt-dd { display: block; padding: 3px 9px; border: 0; border-radius: 999px; background: #fff; color: var(--w-chu, #1f2937);
  font: 600 12px/1.3 inherit; font-family: inherit; white-space: nowrap; cursor: pointer; box-shadow: 0 3px 10px rgba(15, 40, 60, .2);
  position: relative; transition: transform .15s ease, background-color .15s ease; }
.lt-dd::after { content: ""; position: absolute; left: 50%; bottom: -5px; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.lt-dd:hover, .lt-dd:focus-visible { background: var(--w-chinh, #2563eb); color: #fff; transform: translateY(-2px); outline: none; z-index: 2; }
.lt-dd:hover::after, .lt-dd:focus-visible::after { border-top-color: var(--w-chinh, #2563eb); }
@media (prefers-reduced-motion: reduce) { .lt-dd { transition: none; } .lt-dd:hover { transform: none; } }

/* Thẻ "Thông tin chuyến đi" (owner 2026-10-06): một chỗ duy nhất, hai cột nhãn / giá trị, thanh tiến độ đã nắm bao nhiêu mục. */
.lt-tt-dau { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lt-tt-dem { font-size: .85rem; font-weight: 700; color: var(--w-chinh); }
.lt-tt-tien-do { height: 6px; margin: .2rem 0 .9rem; border-radius: 999px; background: var(--w-nen-xen); overflow: hidden; }
.lt-tt-tien-do i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--w-chinh); transition: width .4s ease; }
.lt-tt-ds { list-style: none; margin: 0 0 .8rem; padding: 0; display: grid; gap: 0; font-size: .9rem; }
.lt-tt-ds li { display: grid; grid-template-columns: 20px 9.5em minmax(0, 1fr); gap: 6px; align-items: baseline; padding: 6px 0; border-bottom: 1px dashed var(--w-vien); }
.lt-tt-ds li:last-child { border-bottom: 0; }
.lt-tt-ds li::before { font-weight: 700; }
.lt-tt-ds li.done::before { content: "✓"; color: var(--w-chinh); }
.lt-tt-ds li.todo::before { content: "○"; color: var(--w-mo); }
.lt-tt-ds span { color: var(--w-mo); }
.lt-tt-ds b { font-weight: 600; color: var(--w-chu); }
.lt-tt-ds li.todo b { font-weight: 400; color: var(--w-mo); font-style: italic; }
.lt-tt-ghi { margin: 0 !important; font-size: .82rem !important; }

/* Khách tự chỉnh điểm (owner 2026-10-07, mẫu travel.com.vn): nút ⋮ → Dời lên / Dời xuống / Xoá. Điểm chưa có toạ độ: dòng cam. */
.lt-sua { position: relative; }
.lt-sua-nut { width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--w-mo); font-size: 1.1rem; line-height: 1; cursor: pointer; }
.lt-sua-nut:hover, .lt-sua-nut[aria-expanded="true"] { background: var(--w-nen-xen); color: var(--w-chu); }
.lt-sua-menu { position: absolute; right: 0; top: 32px; z-index: 20; min-width: 150px; padding: 6px; border-radius: 10px; background: #fff; border: 1px solid var(--w-vien);
  box-shadow: 0 12px 28px -12px rgba(0,0,0,.35); display: grid; gap: 2px; }
.lt-sua-menu button { text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 6px; font: inherit; font-size: .88rem; color: var(--w-chu); cursor: pointer; }
.lt-sua-menu button:hover:not([disabled]) { background: var(--w-nen-xen); }
.lt-sua-menu button[disabled] { opacity: .4; cursor: default; }
.lt-sua-menu .is-xoa { color: #b42318; }
.lt-khong-ban-do { font-size: .8rem; color: #c2410c; }
#lt-dong[aria-busy="true"] { opacity: .6; pointer-events: none; }

/* Loading theo bước (owner 2026-10-07): ✓ xong · vòng quay đang làm · vòng xám chờ. */
.lt-buoc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lt-buoc li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--w-chu); }
.lt-buoc li.is-cho { color: var(--w-mo); }
.lt-buoc li i { flex: none; width: 18px; height: 18px; border-radius: 50%; box-sizing: border-box; display: grid; place-items: center; }
.lt-buoc li.is-xong i { background: var(--w-chinh); }
.lt-buoc li.is-xong i::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.lt-buoc li.is-dang i { border: 2px solid var(--w-vien); border-top-color: var(--w-chinh); animation: lt-quay .8s linear infinite; }
.lt-buoc li.is-cho i { border: 2px solid var(--w-vien); }
@keyframes lt-quay { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .lt-buoc li.is-dang i { animation: none; border-color: var(--w-chinh); } }
.lt-tin.lt-buoc { font-style: normal; color: var(--w-chu); }

/* Thẻ phương tiện đi / về (owner 2026-10-07) — đầu ngày 1, cuối ngày cuối. */
.lt-pt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--w-bo); background: var(--w-nen-xen);
  border: 1px dashed var(--w-vien); }
.lt-pt-ic { font-size: 1.5rem; line-height: 1; }
.lt-pt b { display: block; font-size: .92rem; color: var(--w-chu); }
.lt-pt small { display: block; font-size: .8rem; color: var(--w-mo); margin-top: 2px; }
.lt-pt small.lt-pt-canh { color: #c2410c; }

/* Giá ước chừng xe + vé máy bay tham khảo (owner 2026-10-07). */
.lt-pt-than { min-width: 0; flex: 1; }
.lt-pt small.lt-pt-gia { color: var(--w-chu); }
.lt-ve-ds { display: grid; gap: 6px; margin-top: 8px; }
.lt-ve-ds a { color: var(--w-chinh); }
.lt-ve { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; font-size: .84rem;
  padding: 8px 10px; border-radius: 10px; border: 1px solid var(--w-vien); background: #fff; color: var(--w-chu); cursor: pointer; }
.lt-ve:hover { border-color: var(--w-chinh); }
.lt-ve.is-chon { border-color: var(--w-chinh); box-shadow: 0 0 0 2px color-mix(in srgb, var(--w-chinh) 25%, transparent); }
.lt-ve-gia { flex: none; font-weight: 700; color: var(--w-chinh); white-space: nowrap; }
.lt-ve-gia small { font-weight: 400; color: var(--w-mo); }
.lt-ve-gia { text-align: right; }
.lt-ve-gia small.lt-ve-tong { display: block; font-size: .74rem; }

/* Điểm sân bay (owner 2026-10-07: "gọn, cho chọn chứ không show chình ình"): 1 hàng, chọn chuyến trong ô thả xuống. */
.lt-bay { grid-template-columns: 44px minmax(0, 1fr); }
.lt-bay-than { position: relative; display: grid; gap: 6px; min-width: 0; padding: 8px 12px; border: 1px solid var(--w-vien); border-radius: var(--w-bo);
  background: var(--w-nen-xen); }
.lt-bay-dau { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 8px; min-width: 0; }
.lt-bay-dau h3 { margin: 0 0 4px; font-size: .9rem; line-height: 1.4; color: var(--w-chu); }
.lt-bay-dau .lt-bay-mo { margin-left: 6px; }
.lt-bay-ic { color: var(--w-chinh); font-size: 1rem; line-height: 1.4; }
.lt-bay-viec { font-size: .74rem; font-weight: 600; color: var(--w-chinh-dam, var(--w-chinh)); background: var(--w-chinh-50); border-radius: 999px; padding: .1em .6em; }
.lt-bay-ma { font-size: .74rem; font-weight: 600; color: var(--w-mo); border: 1px solid var(--w-vien); border-radius: 4px; padding: 0 .3em; }
.lt-bay-mui { color: var(--w-chinh); }
.lt-bay-mo { color: var(--w-mo); font-size: .8rem; }
.lt-bay-chuyen { display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; font-size: .84rem; color: var(--w-chu); }
.lt-bay-tom { flex: 1 1 12rem; min-width: 0; }
.lt-bay-gia { font-weight: 700; color: var(--w-gia-nhan, var(--w-chinh)); white-space: nowrap; }
.lt-bay-gia small { font-weight: 400; color: var(--w-mo); font-size: .74rem; }
.lt-bay-doi { border: 1px solid var(--w-chinh); background: var(--w-nen); color: var(--w-chinh); border-radius: 999px; padding: .3em .9em; font: inherit;
  font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.lt-bay-doi:hover, .lt-bay-doi[aria-expanded="true"] { background: var(--w-chinh); color: var(--w-chu-tren-chinh); }
.lt-bay-doi:active { transform: translateY(1px); }
.lt-bay-ds { position: absolute; z-index: 5; top: calc(100% + 4px); left: 0; right: 0; display: grid; gap: 2px; padding: 6px; background: var(--w-nen);
  border: 1px solid var(--w-vien); border-radius: var(--w-bo); box-shadow: 0 12px 28px rgba(15, 23, 42, .16); }
.lt-bay-ds .lt-ve { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; border-radius: 8px;
  background: none; padding: 7px 9px; font: inherit; color: var(--w-chu); cursor: pointer; }
.lt-bay-ds .lt-ve > span:first-child { display: grid; font-size: .84rem; }
.lt-bay-ds .lt-ve small { color: var(--w-mo); font-size: .76rem; }
.lt-bay-ds .lt-ve:hover, .lt-bay-ds .lt-ve:focus-visible { background: var(--w-nen-xen); outline: none; }
.lt-bay-ds .lt-ve.is-chon { background: var(--w-chinh-50); box-shadow: inset 3px 0 0 var(--w-chinh); }
.lt-bay-ds .lt-ve-gia { display: grid; justify-items: end; font-weight: 700; font-size: .86rem; color: var(--w-gia-nhan, var(--w-chinh)); white-space: nowrap; }
.lt-bay-ds .lt-ve-gia small { font-weight: 400; }
.lt-ve-chan { display: flex; justify-content: space-between; gap: 10px; padding: 6px 9px 2px; border-top: 1px solid var(--w-vien); }
.lt-ve-chan small { color: var(--w-mo); font-size: .74rem; }
.lt-ve-chan a { font-size: .76rem; color: var(--w-chinh); }
.lt-bay-ds .lt-ve-gia > span { white-space: nowrap; }
.lt-ve-chan a { white-space: nowrap; }
.lt-lich-an { position: absolute; width: 0; height: 0; padding: 0; border: 0; opacity: 0; pointer-events: none; }

/* Tab "Dịch vụ & chi phí" (owner 2026-10-07): di chuyển, khách sạn tự đổi, vé tham quan, tổng dự kiến cả đoàn. */
.lt-che-do { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 10px 16px 0; padding: 4px; background: var(--w-nen-xen); border-radius: 999px; }
.lt-che-do button { border: 0; background: none; border-radius: 999px; padding: .45em 1em; font: inherit; font-size: .86rem; font-weight: 600; color: var(--w-mo); cursor: pointer; }
.lt-che-do button[aria-selected="true"] { background: var(--w-nen); color: var(--w-chinh); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.lt-dv { display: grid; gap: 14px; padding: 14px 16px; }
.lt-dv-nhom h3 { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; font-size: .9rem; color: var(--w-chu); }
.lt-dv-nhom h3 small { font-weight: 400; color: var(--w-mo); font-size: .76rem; }
.lt-dv-ds { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lt-dv-ds li, .lt-dv-ks, .lt-dv-ks-ds li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--w-bo); background: var(--w-nen-xen); }
.lt-dv-ds li > span:first-child, .lt-dv-ks-ds li > span:nth-child(2) { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: .86rem; }
.lt-dv-ds small, .lt-dv-ks small, .lt-dv-ks-ds small { color: var(--w-mo); font-size: .76rem; }
.lt-dv-gia { display: grid; justify-items: end; font-weight: 700; font-size: .88rem; color: var(--w-gia-nhan, var(--w-chinh)); white-space: nowrap; }
.lt-dv-gia small { font-weight: 400; }
.lt-dv-lk { justify-self: start; border: 0; background: none; padding: 0; font: inherit; font-size: .78rem; font-weight: 600; color: var(--w-chinh); cursor: pointer; }
.lt-dv-ks { align-items: flex-start; }
.lt-dv-ks-anh { flex: 0 0 auto; width: 64px; height: 56px; border-radius: 8px; overflow: hidden; background: var(--w-nen); display: grid; place-items: center; }
.lt-dv-ks-anh img { width: 100%; height: 100%; object-fit: cover; }
.lt-dv-ks-ds .lt-dv-ks-anh { width: 48px; height: 42px; }
.lt-dv-ks-than { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: .88rem; }
.lt-dv-ks-than .lt-bay-doi { justify-self: start; margin-top: 4px; }
.lt-dv-ks-ds { list-style: none; margin: 6px 0 0; padding: 6px; display: grid; gap: 2px; max-height: 320px; overflow-y: auto; border: 1px solid var(--w-vien);
  border-radius: var(--w-bo); background: var(--w-nen); }
.lt-dv-ks-ds li { background: none; }
.lt-dv-ks-ds li:hover { background: var(--w-nen-xen); }
.lt-dv-chon { border: 1px solid var(--w-chinh); background: var(--w-nen); color: var(--w-chinh); border-radius: 999px; padding: .25em .8em; font: inherit; font-size: .78rem;
  font-weight: 600; cursor: pointer; }
.lt-dv-chon:hover { background: var(--w-chinh); color: var(--w-chu-tren-chinh); }
.lt-dv-tong { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--w-bo);
  background: var(--w-chinh-50); border: 1px solid var(--w-chinh-100); }
.lt-dv-tong span { display: grid; font-weight: 600; color: var(--w-chu); }
.lt-dv-tong small { font-weight: 400; color: var(--w-mo); font-size: .76rem; }
.lt-dv-tong b { font-size: 1.25rem; color: var(--w-gia-nhan, var(--w-chinh)); white-space: nowrap; }
.lt-dv-chu { margin: 0; color: var(--w-mo); font-size: .78rem; }
.lt-dv-sp label { display: flex; align-items: center; gap: 10px; width: 100%; cursor: pointer; }
.lt-dv-sp label > span:nth-child(3) { flex: 1; min-width: 0; display: grid; gap: 1px; font-size: .86rem; }
.lt-dv-sp input { width: 18px; height: 18px; accent-color: var(--w-chinh); flex: 0 0 auto; }
.lt-dv-sp .lt-dv-ks-anh { width: 48px; height: 42px; }
.lt-uoc-that { border-color: var(--w-chinh-100); color: var(--w-chinh-dam, var(--w-chinh)); background: var(--w-chinh-50); }
.lt-dv-ks.is-thay .lt-dv-ks-anh, .lt-dv-ks.is-thay .lt-dv-ks-than > b, .lt-dv-ks.is-thay .lt-dv-gia { opacity: .5; }
.lt-dv-ks.is-thay .lt-dv-gia { text-decoration: line-through; }
.lt-dv-thay { font-size: .76rem; font-weight: 600; color: var(--w-chinh); }
/* Chặng di chuyển giữa hai điểm (owner 2026-10-07). */
.lt-chang { display: flex; align-items: center; gap: 6px; margin: -4px 0 -4px 58px; padding: 2px 10px; border-left: 2px dashed var(--w-vien);
  font-size: .76rem; color: var(--w-mo); }
@media (max-width: 560px) { .lt-chang { margin-left: 20px; } }
