/* Taki Huế City – Lưu & Lịch trình (web) 1.3.1 */

/* Nút Lưu nổi */
#hcsv-btn-mount { position: fixed; right: 16px; bottom: 16px; z-index: 9999; }
.hcsv-fab {
  display: flex; align-items: center; gap: 6px;
  background: #fff; color: #E52626; border: 1px solid #E52626;
  border-radius: 999px; padding: 10px 16px; font: 600 14px/1 system-ui, sans-serif;
  box-shadow: 0 4px 14px rgba(0,0,0,.18); cursor: pointer;
}
.hcsv-fab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.hcsv-fab.is-saved { background: #E52626; color: #fff; border-color: #E52626; }
.hcsv-fab.is-saved svg { fill: #fff; }
.hcsv-fab:hover { color: #8E1717; border-color: #8E1717; }
.hcsv-fab.is-saved:hover { background: #8E1717; border-color: #8E1717; color: #fff; }

/* Trang Đã lưu / Lịch trình */
.hcsv-app { max-width: 760px; margin: 0 auto; padding: 8px 0 40px; }
.hcsv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.hcsv-head h2 { font-size: 20px; margin: 0; }
.hcsv-count { color: #777; font-size: 14px; }
.hcsv-note { color: #777; font-size: 13px; margin: 2px 0 14px; }
.hcsv-empty { text-align: center; color: #777; padding: 40px 10px; }

.hcsv-seg { display: inline-flex; border: 1px solid #e3e3e3; border-radius: 10px; overflow: hidden; margin: 0 8px 16px 0; }
.hcsv-seg button { border: 0; background: #fff; padding: 9px 16px; font: 600 13px/1 system-ui, sans-serif; color: #555; cursor: pointer; }
.hcsv-seg button[aria-pressed="true"] { background: #E52626; color: #fff; }

.hcsv-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* 1.3.0: nút xuất PDF ở Lịch trình. */
.hcsv-pdfbtn { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #E52626; background: #fff; color: #E52626; border-radius: 10px; padding: 9px 14px; font: 600 13px system-ui, sans-serif; cursor: pointer; margin: 0 0 14px; }
.hcsv-pdfbtn:hover { background: #E52626; color: #fff; }
.hcsv-pdfbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hcsv-chip { border: 1px solid #e3e3e3; border-radius: 999px; padding: 6px 12px; font-size: 13px; color: #555; background: #fff; cursor: pointer; }
.hcsv-chip[aria-pressed="true"] { background: #222; color: #fff; border-color: #222; }

/* Danh sách */
.hcsv-card { display: flex; gap: 12px; background: #fff; border: 1px solid #ededed; border-radius: 14px; padding: 10px; margin-bottom: 10px; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.hcsv-card img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; background: #f2f2f2; }
.hcsv-card .b { flex: 1; min-width: 0; }
.hcsv-card .b a { text-decoration: none; color: #1b1b1b; font-weight: 600; font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcsv-card .k { color: #E52626; font-size: 12px; font-weight: 600; }
.hcsv-card .addr { color: #888; font-size: 12px; margin-top: 2px; }
.hcsv-card .rm { border: 0; background: none; color: #aaa; cursor: pointer; align-self: center; padding: 6px; flex: none; }
.hcsv-card .rm:hover { color: #E52626; }
.hcsv-card .rm svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Lịch trình — timeline trái (km + icon di chuyển + giờ) cho ngày đã xếp; "Chưa xếp ngày"
   liệt kê phẳng (không có thứ tự thật nên bỏ đường nối/khoảng cách). */
.hcsv-day { margin: 22px 0 2px; }
.hcsv-day:first-child { margin-top: 8px; }
.hcsv-dtitle { font: 700 15px system-ui, sans-serif; margin: 0 0 10px; display: flex; align-items: baseline; gap: 8px; }
.hcsv-dtitle .n { font-weight: 400; color: #888; font-size: 13px; }

.hcsv-tl { position: relative; }
.hcsv-tl::before { content: ""; position: absolute; left: 29px; top: 6px; bottom: 6px; width: 2px; background: #eee; border-radius: 2px; }
.hcsv-row { display: grid; grid-template-columns: 60px 1fr; gap: 10px; margin-bottom: 12px; position: relative; }

.hcsv-rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 2px; z-index: 1; }
.hcsv-leg { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #888; font-size: 11px; font-weight: 600; }
.hcsv-leg svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hcsv-time { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 4px 7px; font: 700 12px system-ui, sans-serif; color: #1b1b1b; white-space: nowrap; }
.hcsv-time.ph { color: #999; font-weight: 500; border-style: dashed; }

.hcsv-flat { margin-bottom: 10px; }
.hcsv-ic { background: #fff; border: 1px solid #ededed; border-left: 4px solid #ddd; border-radius: 14px; padding: 10px; display: grid; gap: 10px; min-width: 0; }
.hcsv-a { display: flex; gap: 10px; align-items: center; text-decoration: none; color: inherit; min-height: 40px; }
.hcsv-a img { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; flex: none; background: #f2f2f2; }
.hcsv-a .b { flex: 1; min-width: 0; }
.hcsv-a .t { font: 700 14.5px system-ui, sans-serif; color: #1b1b1b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hcsv-a .meta { font: 400 12.5px system-ui, sans-serif; color: #888; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 2px; }
.hcsv-a .rm { border: 0; background: none; color: #aaa; cursor: pointer; padding: 6px; flex: none; }
.hcsv-a .rm:hover { color: #E52626; }
.hcsv-a .rm svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.hcsv-sched { display: flex; gap: 8px; }
.hcsv-sched input { flex: 1; min-width: 0; border: 1px solid #e3e3e3; border-radius: 8px; padding: 8px; font: 500 13px system-ui, sans-serif; }

@media (max-width: 480px) {
  .hcsv-app { padding: 8px 12px 40px; }
}
