/* Blocks of motion-top10.php, layered on places.css (cards, facts panel, Q&A).
   Text inside blocks is <span>/<div>, never <p>: `#pxl-content-main p` has an
   id and beats every class selector. */

/* ---- Picker: CSS-only filters -------------------------------------- */
.t10-pick { margin: 22px 0 8px; }
.t10-r { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.t10-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.t10-chip {
  cursor: pointer; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; line-height: 1.2;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.04); color: rgba(255,255,255,.85);
  transition: background .15s ease, border-color .15s ease;
}
.t10-chip:hover { border-color: rgba(255,255,255,.35); }
.t10-pick:has(#t10f-all:checked)  label[for="t10f-all"],
.t10-pick:has(#t10f-hot:checked)  label[for="t10f-hot"],
.t10-pick:has(#t10f-kids:checked) label[for="t10f-kids"],
.t10-pick:has(#t10f-eve:checked)  label[for="t10f-eve"] {
  background: linear-gradient(90deg, #7b2ff7, #f107a3); border-color: transparent; color: #fff;
}
.t10-pick:has(#t10f-all:focus-visible)  label[for="t10f-all"],
.t10-pick:has(#t10f-hot:focus-visible)  label[for="t10f-hot"],
.t10-pick:has(#t10f-kids:focus-visible) label[for="t10f-kids"],
.t10-pick:has(#t10f-eve:focus-visible)  label[for="t10f-eve"] { outline: 2px solid #00e5ff; outline-offset: 2px; }

.t10-pick:has(#t10f-hot:checked)  .t10-li:not(.f-hot),
.t10-pick:has(#t10f-kids:checked) .t10-li:not(.f-kids),
.t10-pick:has(#t10f-eve:checked)  .t10-li:not(.f-eve) { display: none; }

.t10-pick .xsp-rail { margin: 0; }
.t10-type {
  position: relative; align-self: flex-start; margin-bottom: 2px; padding: 2px 8px; border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(0,229,255,.12); color: #7eeaf5;
}
#pxl-content-main .xsp-card .t10-type { color: #7eeaf5; }

/* ---- X Space: one line of ticket prices under its fact row ----------- */
.t10-tix-line { margin: -4px 0 16px; font-size: 14px; line-height: 1.6; opacity: .88; }
.t10-tix-line b { font-weight: 700; }
.t10-usd { opacity: .6; }
#pxl-content-main a.t10-more { white-space: nowrap; }

/* ---- Per-place fact row + honest downside (written in the post) ----- */
.t10-facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px 0 16px;
  border-radius: 12px; overflow: hidden; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12);
}
.t10-facts > span { display: block; padding: 10px 12px; background: #120d1d; font-size: 14px; font-weight: 600; line-height: 1.35; }
.t10-facts > span > b {
  display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .55;
}
@media (max-width: 700px) { .t10-facts { grid-template-columns: repeat(2, 1fr); } }

#pxl-content-main p.t10-down {
  margin: 14px 0 18px; padding: 12px 16px; border-left: 3px solid #ffb547; border-radius: 0 10px 10px 0;
  background: rgba(255,181,71,.09); font-size: 15.5px; line-height: 1.6;
}
#pxl-content-main p.t10-down strong { color: #ffc978; }

/* ---- Itineraries ----------------------------------------------------- */
.t10-plan { margin: 14px 0 22px; padding: 0; list-style: none; border-left: 2px solid rgba(255,255,255,.14); }
#pxl-content-main .t10-plan li {
  position: relative; margin: 0; padding: 6px 0 10px 20px; font-size: 15.5px; line-height: 1.55; list-style: none;
}
.t10-plan li::before {
  content: ""; position: absolute; left: -6px; top: 13px; width: 10px; height: 10px; border-radius: 50%;
  background: #1a1326; border: 2px solid rgba(255,255,255,.4);
}
.t10-plan li > b:first-child { display: inline-block; min-width: 64px; font-variant-numeric: tabular-nums; opacity: .75; }

@media (prefers-reduced-motion: reduce) { .t10-chip { transition: none; } }

/* Ghi chú nội bộ trên bản nháp. Không bao giờ được còn lại khi bài đăng. */
#pxl-content-main p.t10-todo {
  margin: 14px 0; padding: 12px 16px; border: 1px dashed #ffb547; border-radius: 10px;
  background: rgba(255,181,71,.12); color: #ffd79a; font-size: 14.5px; line-height: 1.6;
}

/* ---- Hàng ảnh / hàng video của mục X Space --------------------------- */
.t10-strip { margin: 18px 0 20px; }
.t10-strip-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px;
}
.t10-strip-kicker {
  position: relative; padding-left: 30px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #ff8ad0;
}
.t10-strip-kicker::before {
  content: ""; position: absolute; left: 0; top: .55em; width: 22px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #7b2ff7, #f107a3);
}
.t10-strip--tt .t10-strip-kicker { color: #7eeaf5; }
.t10-strip--tt .t10-strip-kicker::before { background: linear-gradient(90deg, #00e5ff, #7b2ff7); }
.t10-strip-hint { font-size: 11.5px; letter-spacing: .04em; opacity: .5; white-space: nowrap; }

.t10-strip-tools { display: inline-flex; align-items: center; gap: 10px; }
.t10-strip-nav { display: inline-flex; gap: 6px; }
button.t10-arrow.t10-arrow {
  position: relative; width: 32px; height: 32px; padding: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.05); color: #fff;
}
button.t10-arrow.t10-arrow:hover { background: rgba(255,255,255,.12); }

.t10-strip-rail {
  display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  /* Mép phải mờ dần: người đọc hiểu ngay là hàng còn tiếp. */
  -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
          mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
}
.t10-strip-rail::-webkit-scrollbar { display: none; } /* mũi tên, kéo chuột và mép mờ đã đủ gợi ý */
.t10-strip-rail > * { scroll-snap-align: start; flex: 0 0 auto; }

/* Ảnh phòng: tấm đầu khung ngang rộng, các tấm sau khung dọc — nhịp không đều
   giữ mắt người xem lâu hơn một hàng đều nhau. */
.t10-shot {
  position: relative; margin: 0; width: 210px; height: 290px; border-radius: 14px; overflow: hidden;
  background: #120d1d; border: 1px solid rgba(255,255,255,.1);
}
.t10-shot.is-wide { width: 420px; }
.t10-shot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.t10-shot:hover img { transform: scale(1.06); }
.t10-shot-n {
  position: absolute; top: 8px; right: 12px; font-size: 34px; font-weight: 800; line-height: 1;
  color: rgba(255,255,255,.28); text-shadow: 0 2px 12px rgba(0,0,0,.5); pointer-events: none;
}
.t10-shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
  font-size: 13px; font-weight: 700; line-height: 1.3; color: #fff;
  background: linear-gradient(to top, rgba(8,4,16,.9), rgba(8,4,16,0));
}

/* Hàng video dùng lại thẻ .xsm-tt-card của lớp motion; chỉ chỉnh cỡ ở đây. */
.t10-strip--tt .xsm-tt-card { width: 196px; }

@media (max-width: 600px) {
  .t10-shot { width: 62vw; max-width: 260px; height: 76vw; max-height: 330px; }
  .t10-shot.is-wide { width: 82vw; max-width: 340px; }
  .t10-strip--tt .xsm-tt-card { width: 58vw; max-width: 230px; }
}
@media (prefers-reduced-motion: reduce) {
  .t10-shot img, .t10-shot:hover img { transition: none; transform: none; }
}

/* ---- Ô ảnh để trống trên bản nháp ------------------------------------ */
.t10-draft { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 18px; }
.t10-draft-cell {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  aspect-ratio: 4 / 3; border-radius: 12px; text-align: center; padding: 8px;
  border: 1px dashed rgba(255,255,255,.28); background: rgba(255,255,255,.03); color: rgba(255,255,255,.45);
}
.t10-draft-label { font-size: 12px; line-height: 1.35; }
@media (max-width: 600px) {
  .t10-draft { grid-template-columns: repeat(2, 1fr); }
  .t10-draft-cell:nth-child(3):last-child { grid-column: span 2; aspect-ratio: 16 / 7; }
}

/* ---- Nguồn ảnh dưới mỗi dải ------------------------------------------ */
#pxl-content-main p.t10-credit {
  margin: -6px 0 16px; font-size: 12px; line-height: 1.5; opacity: .55;
}
#pxl-content-main p.t10-credit a { color: inherit; text-decoration: underline; }

/* ---- Một ảnh ngang + một video ngang (mục ngoài X Space) ------------- */
.t10-media { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 22px; align-items: start; }
.t10-media.is-flip > .t10-media-photo,
.t10-media.is-flip > .t10-media-empty:first-child { order: 2; }
#pxl-content-main .t10-media-photo { margin: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b0b22; }
#pxl-content-main .t10-media-photo img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; }
.t10-media-video .xs-clip { width: 100%; }
.t10-media .t10-draft-cell { aspect-ratio: 16 / 9; border-radius: 18px; }
@media (max-width: 700px) {
  .t10-media { grid-template-columns: 1fr; gap: 10px; }
  .t10-media.is-flip > .t10-media-photo,
  .t10-media.is-flip > .t10-media-empty:first-child { order: 0; }
}

/* ---- Trình phát YouTube chỉ xem trong trang (t10-yt.js) --------------- */
.t10-yt { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0b0b22; isolation: isolate; }
.t10-yt:fullscreen { border-radius: 0; aspect-ratio: auto; }
.t10-yt iframe, .t10-yt .t10-yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 0; }
.t10-yt .t10-yt-shield { position: absolute; inset: 0; z-index: 1; }
#pxl-content-main .t10-yt button {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none;
  color: #fff; line-height: 0; min-height: 0; -webkit-appearance: none; appearance: none; cursor: pointer;
}
#pxl-content-main .t10-yt .t10-yt-poster { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; background: #0b0b22; }
#pxl-content-main .t10-yt .t10-yt-poster img { width: 100%; height: 100%; margin: 0; object-fit: cover; border-radius: 0; transition: transform .5s ease; }
#pxl-content-main .t10-yt .t10-yt-poster:hover img { transform: scale(1.03); }
.t10-yt .t10-yt-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.08) 30%, rgba(5,5,20,.82)); pointer-events: none; }
.t10-yt .t10-yt-big {
  position: absolute; left: 50%; top: 50%; width: 62px; height: 62px; margin: -31px 0 0 -31px; border-radius: 50%;
  display: grid; place-items: center; background: linear-gradient(135deg, #7b2ff7, #f107a3);
  box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .25s ease;
}
.t10-yt .t10-yt-big svg { width: 28px; height: 28px; margin-left: 3px; }
#pxl-content-main .t10-yt .t10-yt-poster:hover .t10-yt-big { transform: scale(1.08); }
#pxl-content-main .t10-yt .t10-yt-poster:focus-visible { outline: 2px solid #00e5ff; outline-offset: -4px; }
.t10-yt .t10-yt-cap {
  position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; display: flex; flex-direction: column; gap: 4px; text-align: left; pointer-events: none;
}
.t10-yt .t10-yt-kick {
  position: relative; padding-left: 28px; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; line-height: 1.3;
  color: #7eeaf5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.t10-yt .t10-yt-kick::before { content: ""; position: absolute; left: 0; top: .6em; width: 20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #00e5ff, #7b2ff7); }
.t10-yt .t10-yt-title { font-size: 17px; font-weight: 700; line-height: 1.25; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.t10-yt.is-loading .t10-yt-big { animation: t10-yt-pulse 1s ease-in-out infinite; }
@keyframes t10-yt-pulse { 50% { transform: scale(.88); opacity: .7; } }
.t10-yt.is-on:not(.is-ended) .t10-yt-poster { opacity: 0; pointer-events: none; }

.t10-yt .t10-yt-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 22px 12px 10px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.72));
  opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
}
.t10-yt.is-on:not(.is-ended):not(.is-playing) .t10-yt-bar,
.t10-yt.is-on.is-awake:not(.is-ended) .t10-yt-bar,
.t10-yt.is-on:not(.is-ended):focus-within .t10-yt-bar { opacity: 1; visibility: visible; }
#pxl-content-main .t10-yt .t10-yt-btn { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; }
#pxl-content-main .t10-yt .t10-yt-btn:hover { background: rgba(255,255,255,.14); }
#pxl-content-main .t10-yt .t10-yt-btn:focus-visible { outline: 2px solid #00e5ff; outline-offset: 1px; }
.t10-yt .i-pause, .t10-yt.is-playing .i-play, .t10-yt .i-off, .t10-yt.is-muted .i-on { display: none; }
.t10-yt.is-playing .i-pause, .t10-yt.is-muted .i-off { display: inline; }
.t10-yt .t10-yt-btn[hidden] { display: none; }
.t10-yt .t10-yt-seek {
  flex: 1 1 auto; min-width: 0; height: 4px; margin: 0; padding: 0; border: 0; border-radius: 4px; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  background: linear-gradient(90deg, #f107a3 var(--p, 0%), rgba(255,255,255,.3) var(--p, 0%));
}
.t10-yt .t10-yt-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.t10-yt .t10-yt-seek::-moz-range-thumb { width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 0; }
.t10-yt .t10-yt-seek:focus-visible { outline: 2px solid #00e5ff; outline-offset: 4px; }
.t10-yt .t10-yt-time { flex: 0 0 auto; font-size: 12px; line-height: 1; color: rgba(255,255,255,.9); font-variant-numeric: tabular-nums; }
@media (max-width: 420px) { .t10-yt .t10-yt-time { display: none; } }

.t10-yt .t10-yt-file { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; background: #000; }

/* ---- Thẻ quán: mục Ăn và mục Uống ([t10-quan]) ------------------------
   Gọn: mỗi quán tối đa ba dòng. Dòng 1 tên + nhãn nhóm, dòng 2 địa chỉ + nút
   bản đồ, dòng 3 ghi chú (nếu có, cắt ở hai dòng). */
.t10-q-wrap { margin: 18px 0 20px; }
.t10-q-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.t10-q-chips input:checked + .t10-chip { background: linear-gradient(90deg, #7b2ff7, #f107a3); border-color: transparent; color: #fff; }
.t10-q-chips input:focus-visible + .t10-chip { outline: 2px solid #00e5ff; outline-offset: 2px; }
#pxl-content-main .t10-q-wrap:has(input[value="pho"]:checked)  ul.t10-q-list > li.t10-q:not(.f-pho),
#pxl-content-main .t10-q-wrap:has(input[value="viet"]:checked) ul.t10-q-list > li.t10-q:not(.f-viet),
#pxl-content-main .t10-q-wrap:has(input[value="chay"]:checked) ul.t10-q-list > li.t10-q:not(.f-chay),
#pxl-content-main .t10-q-wrap:has(input[value="khac"]:checked) ul.t10-q-list > li.t10-q:not(.f-khac) { display: none; }
#pxl-content-main ul.t10-q-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
#pxl-content-main ul.t10-q-list > li.t10-q {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; align-content: start; gap: 3px 10px;
  margin: 0; padding: 10px 14px; list-style: none;
  border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.03);
}
.t10-q::marker { content: none; }
.t10-q-name { grid-column: 1; grid-row: 1; font-size: 15.5px; font-weight: 700; line-height: 1.3; color: #fff; }
.t10-q-cat {
  grid-column: 2; grid-row: 1; justify-self: end; padding: 1px 8px; border-radius: 999px; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: rgba(0,229,255,.12); color: #7eeaf5;
}
.t10-q-addr { grid-column: 1; grid-row: 2; display: inline-flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 1.4; color: rgba(255,255,255,.82); }
.t10-q-addr svg { flex: 0 0 auto; margin-top: 2px; color: #ff8ad0; }
.t10-q-note {
  grid-column: 1 / -1; grid-row: 3; font-size: 13px; line-height: 1.45; color: rgba(255,255,255,.64);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
#pxl-content-main a.t10-q-map {
  grid-column: 2; grid-row: 2; justify-self: end; padding: 3px 10px; border-radius: 999px; white-space: nowrap;
  font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none;
  color: #fff; border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.05); transition: background .15s ease, border-color .15s ease;
}
#pxl-content-main a.t10-q-map:hover, #pxl-content-main a.t10-q-map:focus-visible { background: linear-gradient(90deg, #7b2ff7, #f107a3); border-color: transparent; }
#pxl-content-main a.t10-q-map:focus-visible { outline: 2px solid #00e5ff; outline-offset: 2px; }
@media (max-width: 700px) { #pxl-content-main ul.t10-q-list { grid-template-columns: 1fr; } }

/* ---- Hàng ảnh thực tế (bản tiếng Việt): khung ngang, không chú thích ---- */
.t10-shot.t10-shot--land { width: 300px; height: 225px; }
.t10-shot.t10-shot--land.is-16x9 { width: 400px; }
@media (max-width: 600px) {
  .t10-shot.t10-shot--land { width: 72vw; max-width: 300px; height: 54vw; max-height: 225px; }
  .t10-shot.t10-shot--land.is-16x9 { width: 82vw; max-width: 340px; height: 46vw; max-height: 191px; }
}
