/* Giao diện sáng, rõ, kiểu app bản đồ: nền xanh trời nhạt, thẻ trắng đặc, chữ đen đậm, nút xanh dứt khoát.
   Kính mờ chỉ dùng cho thanh trên cùng. Chỉ animate transform/opacity. */
:root {
  --ease: cubic-bezier(.23, 1, .32, 1);
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);
  --ease-io: cubic-bezier(.77, 0, .175, 1);
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'PingFang SC', 'Be Vietnam Pro', system-ui, 'Segoe UI', sans-serif;
  --font-cn: 'PingFang SC', 'Hiragino Sans GB', 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --bg: #eef4fb;
  --bg-top: #dcebff;
  --bg-glow: rgba(120, 190, 255, .42);
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --surface: #ffffff;
  --surface-2: #f1f5fa;
  --surface-solid: #ffffff;
  --glass: var(--surface);
  --glass-2: var(--surface);
  --glass-edge: rgba(15, 35, 80, .07);
  --hi: none;
  --line: rgba(15, 35, 80, .09);
  --accent: #2f6bff;
  --accent-2: #12b5e6;
  --accent-ink: #ffffff;
  --accent-soft: #e8efff;
  --navy: #1b2740;
  --seal: #e5484d;
  --seal-soft: #fdeded;
  --warn: #b45309;
  --warn-soft: #fff3dc;
  --ok: #0e9f6e;
  --ok-soft: #e3f6ee;
  --sky: #a9c3e8;
  --shadow: 0 1px 2px rgba(20, 40, 90, .05), 0 8px 24px rgba(20, 40, 90, .07);
  --shadow-sm: 0 1px 2px rgba(20, 40, 90, .06), 0 2px 8px rgba(20, 40, 90, .05);
  --r-lg: 24px; --r-md: 18px; --r-sm: 14px;
  --nav-h: 62px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a111f; --bg-top: #101c38; --bg-glow: rgba(40, 90, 200, .30);
    --ink: #eaf0fa; --ink-2: #c2ccdc; --muted: #8e9bb2;
    --surface: #151f33; --surface-2: #1d2a44; --surface-solid: #151f33; --glass-edge: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .09);
    --accent: #5b8dff; --accent-2: #3dc6f0; --accent-soft: rgba(91, 141, 255, .16); --navy: #2a3a5e;
    --seal: #ff7a7f; --seal-soft: rgba(255, 122, 127, .14); --warn: #f2b44d; --warn-soft: rgba(242, 180, 77, .14); --ok: #3fd39b; --ok-soft: rgba(63, 211, 155, .14); --sky: #2b3f66;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35); --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a111f; --bg-top: #101c38; --bg-glow: rgba(40, 90, 200, .30);
  --ink: #eaf0fa; --ink-2: #c2ccdc; --muted: #8e9bb2;
  --surface: #151f33; --surface-2: #1d2a44; --surface-solid: #151f33; --glass-edge: rgba(255, 255, 255, .07); --line: rgba(255, 255, 255, .09);
  --accent: #5b8dff; --accent-2: #3dc6f0; --accent-soft: rgba(91, 141, 255, .16); --navy: #2a3a5e;
  --seal: #ff7a7f; --seal-soft: rgba(255, 122, 127, .14); --warn: #f2b44d; --warn-soft: rgba(242, 180, 77, .14); --ok: #3fd39b; --ok-soft: rgba(63, 211, 155, .14); --sky: #2b3f66;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 28px rgba(0, 0, 0, .35); --shadow-sm: 0 2px 10px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); letter-spacing: -.008em; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* nền tĩnh: xanh trời nhạt ở trên, ánh xanh ở dưới */
.aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(120% 60% at 50% 108%, var(--bg-glow), transparent 70%), linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 42%); }
.aurora i { display: none; }
body.scrolling .plane { animation-play-state: paused; }

button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 10px; }
h1, h2, h3, p { margin: 0; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.cn { font-family: var(--font-cn); }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.btn:active, .chip:active, .tab:active, .iconbtn:active, .day:active, .seg button:active, .qa-i:active { transform: scale(.96); }

/* khung */
#app { max-width: 760px; margin: 0 auto; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + 40px + env(safe-area-inset-bottom, 0px)); }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(8px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); background: color-mix(in srgb, var(--bg-top) 88%, transparent); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
.top::before { display: none; }
.top .brand { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.top .logo { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), var(--accent-2)); color: #fff; font: 700 18px var(--font-cn); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent); }
.top .brand b { display: block; font-weight: 700; font-size: 16px; letter-spacing: -.02em; line-height: 1.2; }
.top .brand span.t { display: block; color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.iconbtn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: transform .16s var(--ease); }
.iconbtn svg { width: 19px; height: 19px; }
main { padding: 8px max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-direction: column; gap: 14px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.lt { padding: 6px 2px 0; }
.lt h1 { font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.lt p { color: var(--muted); font-size: 15px; margin-top: 4px; }

/* vào trang */
.enter > * { animation: rise .5s var(--ease) backwards; }
.enter > *:nth-child(1) { animation-delay: 0ms; } .enter > *:nth-child(2) { animation-delay: 40ms; } .enter > *:nth-child(3) { animation-delay: 80ms; }
.enter > *:nth-child(4) { animation-delay: 120ms; } .enter > *:nth-child(5) { animation-delay: 150ms; } .enter > *:nth-child(6) { animation-delay: 180ms; }
.enter > *:nth-child(n+7) { animation-delay: 210ms; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 14px, 0); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes fadein { from { opacity: 0; } }

/* thanh tab dính đáy */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; pointer-events: none; }
.tabbar-in { pointer-events: auto; position: relative; max-width: 760px; margin: 0 auto; height: calc(var(--nav-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); border-radius: 24px 24px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 70px repeat(2, minmax(0, 1fr)); align-items: center; background: var(--surface); box-shadow: 0 -6px 28px rgba(20, 40, 90, .10); }
.tabbar-in .ind { position: absolute; left: 0; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--accent); transform: translate3d(0, 0, 0); }
.tabbar-in .ind.go { transition: transform .45s var(--ease-drawer); }
.tab { min-width: 0; position: relative; z-index: 1; border: 0; background: none; display: flex; flex-direction: column; gap: 3px; align-items: center; justify-content: center; height: var(--nav-h); color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: color .25s ease, transform .16s var(--ease); }
.tab svg { width: 23px; height: 23px; transition: transform .4s var(--ease); }
.tab[aria-current="page"] { color: var(--accent); }
.tab[aria-current="page"] svg { transform: translateY(-1px) scale(1.08); }
.orb { position: relative; justify-self: center; width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--surface); margin-top: -26px; color: #fff; display: grid; place-items: center; background: linear-gradient(145deg, var(--accent), var(--accent-2)); box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .2s var(--ease); }
.orb svg { width: 24px; height: 24px; }
.orb:active { transform: scale(.92); }

/* khối */
.card { position: relative; background: var(--surface); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; background: var(--surface-2); }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 10px 4px -4px; }
.sec-h h2 { font-size: 17px; letter-spacing: -.02em; color: var(--ink); font-weight: 750; }
.sec-h .link { font-size: 14px; font-weight: 600; background: none; border: 0; color: var(--accent); padding: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 680px) { .grid2 { grid-template-columns: 1fr 1fr; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border-radius: 999px; border: 0; background: var(--surface-2); padding: 10px 16px; font-weight: 650; font-size: 14.5px; color: var(--ink); white-space: nowrap; transition: transform .16s var(--ease), background-color .2s ease; }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 30%, transparent); }
.btn.dark { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--accent); box-shadow: none; }
.btn.sm { padding: 8px 13px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: default; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid transparent; background: var(--surface); border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink-2); box-shadow: var(--shadow-sm); transition: transform .16s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease; }
.chip[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); }
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 650; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.seal { background: var(--seal-soft); color: var(--seal); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 16px; align-items: baseline; margin: 0; }
.kv dt { color: var(--muted); font-size: 13.5px; }
.kv dd { margin: 0; font-weight: 550; min-width: 0; overflow-wrap: anywhere; }
.seg { display: flex; background: var(--surface-2); border-radius: 999px; padding: 3px; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; border: 0; background: transparent; border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; transition: background-color .3s var(--ease), color .25s ease, box-shadow .3s ease, transform .16s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 2px 8px rgba(20, 40, 90, .12); }
input[type="text"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], select, textarea { width: 100%; border: 1.5px solid transparent; background: var(--surface-2); border-radius: 14px; padding: 12px 14px; min-width: 0; transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface); box-shadow: 0 0 0 4px var(--accent-soft); }
textarea { resize: vertical; min-height: 76px; }
label.f { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* hero sáng, chữ đen đậm */
.hero { position: relative; overflow: hidden; border-radius: 30px; padding: 22px 20px 92px; color: var(--ink); isolation: isolate; background: linear-gradient(165deg, #ffffff 0%, #e4efff 100%); box-shadow: var(--shadow); }
:root[data-theme="dark"] .hero { background: linear-gradient(165deg, #1a2742, #12203b); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero { background: linear-gradient(165deg, #1a2742, #12203b); } }
.hero .eyebrow { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.hero h1 { font-size: 38px; line-height: 1.05; letter-spacing: -.035em; margin: 10px 0 8px; font-weight: 800; max-width: 12ch; }
.gr { background: linear-gradient(90deg, #8b5cf6, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.hero .sub { color: var(--ink-2); font-size: 15px; max-width: 34ch; }
.hero .cn-mark { position: absolute; right: 16px; top: 10px; font-family: var(--font-cn); font-size: 68px; line-height: 1; opacity: .09; font-weight: 800; z-index: -1; }
.hero svg.sky { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 84px; z-index: -1; }
.hero svg.sky g { fill: var(--sky); }
.hero .arc { position: absolute; right: 20px; bottom: 104px; width: 110px; height: 50px; z-index: -1; pointer-events: none; }
.hero .arc svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .arc svg path { stroke: var(--accent); opacity: .55; }
.hero .arc svg circle:first-of-type { fill: var(--accent); }
.hero .arc svg circle:last-of-type { stroke: var(--accent); }
.hero .plane { position: absolute; left: 0; top: 0; width: 20px; height: 20px; margin: -10px 0 0 -10px; color: var(--accent); offset-path: path('M5 44 Q55 -14 105 32'); offset-rotate: 0deg; animation: fly 8s var(--ease-io) infinite; }
.hero .plane svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
@keyframes fly { 0% { offset-distance: 0%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
.cd { display: flex; gap: 10px; margin-top: 18px; }
.cd div { background: var(--surface); border-radius: 18px; padding: 9px 12px; min-width: 66px; text-align: center; box-shadow: var(--shadow-sm); }
.cd b { display: block; font: 700 26px/1.1 var(--font-mono); letter-spacing: -.02em; color: var(--ink); }
.cd span { font-size: 11.5px; color: var(--muted); font-weight: 600; }

/* cảnh báo: nền màu nhạt, đặc */
.alert { display: flex; gap: 12px; padding: 14px 15px; border-radius: 20px; background: var(--warn-soft); }
.alert > svg { color: var(--warn); margin-top: 1px; }
.alert.seal { background: var(--seal-soft); } .alert.seal > svg { color: var(--seal); }
.alert.ok { background: var(--ok-soft); } .alert.ok > svg { color: var(--ok); }
.alert b { display: block; font-size: 15px; letter-spacing: -.012em; }
.alert p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

/* chuyến bay */
.flight .route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin: 16px 0; }
.flight .ap b { display: block; font: 800 34px/1 var(--font-mono); letter-spacing: -.03em; }
.flight .ap .t { font: 700 18px var(--font-mono); margin-top: 8px; display: block; }
.flight .ap .d { color: var(--muted); font-size: 13px; }
.flight .ap:last-child { text-align: right; }
.flight .mid { text-align: center; color: var(--muted); font-size: 12px; min-width: 70px; }
.flight .mid svg { width: 22px; height: 22px; color: var(--accent); }
.flight .mid .line { height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 5px, transparent 5px 9px); margin: 4px 0; }
.old { text-decoration: line-through; opacity: .6; }
.copy { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-weight: 650; background: var(--surface-2); border-radius: 12px; padding: 6px 12px; transition: transform .16s var(--ease); }
.copy:active { transform: scale(.96); }
.copy svg { width: 14px; height: 14px; color: var(--muted); }

/* thẻ địa điểm */
.place { background: var(--surface); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; content-visibility: auto; contain-intrinsic-size: auto 460px; }
.place.mini { content-visibility: visible; }
.place .ph { position: relative; aspect-ratio: 16/10.5; background: var(--surface-2); overflow: hidden; }
.place .ph::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.30), transparent 36%, transparent 72%, rgba(0,0,0,.14)); pointer-events: none; }
.place .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fadein .5s ease; }
.place .ph .fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 800 68px var(--font-cn); color: rgba(255,255,255,.8); letter-spacing: .06em; }
.place .ph .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; max-width: calc(100% - 64px); }
.place .ph .tags .badge { background: rgba(10, 20, 40, .55); color: #fff; }
.place .ph .tags .badge.seal { background: var(--seal); color: #fff; }
.place .ph .cr { position: absolute; right: 12px; bottom: 8px; font-size: 10.5px; color: rgba(255,255,255,.9); text-shadow: 0 1px 3px rgba(0,0,0,.6); z-index: 1; }
.place .heart { position: absolute; right: 12px; top: 12px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(10, 20, 40, .5); color: #fff; display: grid; place-items: center; transition: transform .16s var(--ease), background-color .25s ease; }
.place .heart svg { width: 18px; height: 18px; transition: fill .2s ease; }
.place .heart[aria-pressed="true"] { background: var(--seal); animation: pop .32s var(--ease); }
.place .heart[aria-pressed="true"] svg { fill: #fff; }
.place .heart:active { transform: scale(.9); }
.place .bd { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.place h3 { font-size: 20px; line-height: 1.2; letter-spacing: -.025em; font-weight: 750; }
.place .cnn { font-family: var(--font-cn); color: var(--muted); font-size: 15px; margin-top: 2px; font-weight: 500; }
.place .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 13px; }
.place .meta span { display: inline-flex; gap: 5px; align-items: center; }
.place .meta svg { width: 14px; height: 14px; }
.place p { color: var(--ink-2); font-size: 15px; }
.place details { border-top: 1px solid var(--line); padding-top: 10px; }
.place summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--accent); list-style: none; display: flex; align-items: center; gap: 6px; }
.place summary::-webkit-details-marker { display: none; }
.place summary::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.place details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.place .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.place.mini { flex: 0 0 min(80vw, 290px); scroll-snap-align: start; border-radius: 24px; }
.place.mini .bd { padding: 13px 15px 15px; gap: 7px; }
.place.mini h3 { font-size: 17px; }
.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.grid2 > .place { animation: rise .5s var(--ease) backwards; }
@media (hover: hover) and (pointer: fine) { .place .ph img { transition: transform .8s var(--ease); } .place:hover .ph img { transform: scale(1.04); } }

.shimmer { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 14px; }
.shimmer::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: shim 1.4s ease-in-out infinite; }
@keyframes shim { to { transform: translateX(100%); } }

/* thời tiết */
.wx-now { display: flex; align-items: center; gap: 16px; }
.wx-now .big { font: 700 56px/1 var(--font-mono); letter-spacing: -.04em; }
.wx-now > svg { width: 52px; height: 52px; color: var(--accent); stroke-width: 1.5; }
.days { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78px, 1fr); gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { border: 1.5px solid transparent; background: var(--surface); border-radius: 20px; padding: 11px 6px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; box-shadow: var(--shadow-sm); transition: transform .16s var(--ease), background-color .3s ease, border-color .3s ease; }
.day[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.day small { color: var(--muted); font-size: 12px; font-weight: 600; }
.day b { font: 650 15px var(--font-mono); }
.day svg { width: 24px; height: 24px; color: var(--accent); }
.day .rain { color: #2a73c6; font-size: 11.5px; font-weight: 700; }
.bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .7s var(--ease); }
.outfit li { margin: 5px 0; }
ul.clean { margin: 0; padding-left: 20px; }

/* lịch trình */
.tl { display: flex; flex-direction: column; gap: 8px; }
.tl .stop { position: relative; display: flex; gap: 10px; align-items: center; background: var(--surface-2); border-radius: 18px; padding: 10px 12px; animation: fadein .35s ease; }
.tl .leg { font-size: 12.5px; color: var(--muted); padding: 0 0 0 38px; }
.stop .when { font: 700 13px var(--font-mono); color: var(--accent); min-width: 44px; }
.mv { display: flex; flex-direction: column; }
.mv button { border: 0; background: none; padding: 0 6px; color: var(--muted); line-height: 1; transition: color .2s ease, transform .16s var(--ease); }
.mv button:active { transform: scale(.85); color: var(--accent); }
.mv svg { width: 15px; height: 15px; }

/* cẩm nang */
.check { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; border-bottom: 1px solid var(--line); }
.check:last-child { border: 0; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--accent); flex: none; }
.check .tx { transition: opacity .3s ease; }
.check.done .tx { text-decoration: line-through; opacity: .5; }
.phrase { display: flex; flex-direction: column; gap: 3px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.phrase:last-child { border: 0; }
.phrase .zh { font: 700 22px var(--font-cn); }
.show-driver { background: #fff; color: #111; border-radius: 26px; padding: 24px; text-align: center; border: 1px solid rgba(0,0,0,.08); box-shadow: var(--shadow); }
.show-driver .zh { font: 800 30px/1.3 var(--font-cn); }
.show-driver .py { font-size: 17px; color: #444; margin-top: 8px; }
.show-driver .en { font-size: 14px; margin-top: 10px; color: #444; }
.fxbox { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: end; }
.fx-out { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 18px; background: var(--accent-soft); }
.fx-out b { font-size: 34px; letter-spacing: -.03em; line-height: 1.1; overflow-wrap: anywhere; color: var(--accent); }
#fx-in { font: 700 24px var(--font-mono); padding: 12px 14px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.t td, table.t th { padding: 9px 4px; border-bottom: 1px solid var(--line); text-align: left; }
table.t tr:last-child td { border: 0; }
table.t td:last-child, table.t th:last-child { text-align: right; font-family: var(--font-mono); }

/* sheet trắng, kéo xuống để đóng */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(8, 16, 36, .42); opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 90dvh; border-radius: 28px 28px 0 0; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; background: var(--bg); transform: translate3d(0, 105%, 0); visibility: hidden; transition: transform .5s var(--ease-drawer), visibility 0s .5s; will-change: transform; box-shadow: 0 -12px 48px rgba(0,0,0,.2); }
.sheet::before { display: none; }
.sheet.on { transform: translate3d(0, 0, 0); visibility: visible; transition: transform .5s var(--ease-drawer), visibility 0s 0s; }
.sheet.drag { transition: none; }
.sheet .grab { padding: 10px 0 2px; display: grid; place-items: center; touch-action: none; cursor: grab; }
.sheet .grab i { width: 38px; height: 5px; border-radius: 3px; background: var(--muted); opacity: .35; }
.sheet .hd { display: flex; align-items: center; gap: 10px; padding: 6px 20px 10px; touch-action: none; }
.sheet .hd h2 { flex: 1; font-size: 21px; letter-spacing: -.025em; font-weight: 800; }
.sheet .bd { overflow: auto; padding: 4px 16px calc(22px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
#chat { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; max-width: 760px; margin: 0 auto; background: linear-gradient(180deg, var(--bg-top), var(--bg) 40%); transform: translate3d(0, 102%, 0); visibility: hidden; transition: transform .5s var(--ease-drawer), visibility 0s .5s; will-change: transform; }
#chat.on { transform: translate3d(0, 0, 0); visibility: visible; transition: transform .5s var(--ease-drawer), visibility 0s 0s; }
#chat .hd { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; }
#chat .hd .grow b { display: block; font-size: 18px; letter-spacing: -.02em; font-weight: 750; }
#chat .hd .grow span { font-size: 12.5px; color: var(--muted); }
#msgs { flex: 1; overflow-y: auto; padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.msg { display: flex; flex-direction: column; gap: 8px; max-width: 100%; animation: msgin .4s var(--ease) backwards; }
@keyframes msgin { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.msg.u { align-items: flex-end; }
.bubble { padding: 11px 15px; border-radius: 20px; max-width: 92%; overflow-wrap: anywhere; font-size: 15.5px; }
.msg.u .bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.msg.a .bubble { background: var(--surface); border-bottom-left-radius: 6px; box-shadow: var(--shadow-sm); }
.bubble p { margin: 0 0 8px; } .bubble p:last-child { margin: 0; }
.bubble ul { margin: 4px 0 8px; padding-left: 18px; }
.typing i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--muted); margin-right: 5px; animation: bl 1.1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
#chat .sug { padding: 2px 14px; }
#chat form { display: flex; gap: 8px; align-items: flex-end; margin: 4px 12px calc(12px + env(safe-area-inset-bottom, 0px)); padding: 6px 6px 6px 8px; border-radius: 28px; background: var(--surface); box-shadow: var(--shadow); }
#chat form textarea { min-height: 42px; max-height: 120px; resize: none; border: 0; background: transparent; padding: 10px 12px; box-shadow: none; }
#chat form textarea:focus { box-shadow: none; background: transparent; }
.send { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 40%, transparent); transition: transform .16s var(--ease); }
.send:active { transform: scale(.9); }
.send svg { width: 19px; height: 19px; }
.phrase-card { background: var(--surface); border-radius: 20px; padding: 13px 15px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow-sm); }
.phrase-card .vi { font-size: 13px; color: var(--muted); }
.phrase-card .zh { font: 800 21px/1.3 var(--font-cn); }
.phrase-card .py { font-size: 14.5px; color: var(--accent); font-weight: 550; }
.phrase-card .acts { display: flex; gap: 8px; margin-top: 8px; }
.phrases { display: flex; flex-direction: column; gap: 8px; width: min(100%, 420px); }
.passform { display: flex; gap: 8px; width: min(100%, 360px); }
.passform input { flex: 1; border-radius: 999px; }
#toast { position: fixed; z-index: 90; left: 50%; bottom: calc(var(--nav-h) + 30px + env(safe-area-inset-bottom, 0px)); transform: translate3d(-50%, 14px, 0) scale(.96); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .4s var(--ease); max-width: 90vw; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
#toast.on { opacity: 1; transform: translate3d(-50%, 0, 0) scale(1); }
.empty { text-align: center; padding: 26px 12px; color: var(--muted); }

/* thông minh: thẻ Bây giờ, lối tắt, tick, gợi ý */
.nowcard { position: relative; border-radius: var(--r-lg); padding: 18px 18px 18px 22px; background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.nowcard::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(var(--accent), var(--accent-2)); }
.nowcard .eyebrow { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 750; color: var(--accent); }
.nowcard h2 { font-size: 24px; line-height: 1.15; letter-spacing: -.03em; font-weight: 800; }
.nowcard p { color: var(--ink-2); font-size: 15px; }
.nowcard .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.nowcard details { margin-top: 2px; }
.nowcard summary { cursor: pointer; font-weight: 650; font-size: 14px; color: var(--accent); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.qa { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.qa-i { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 22px; border: 0; background: var(--surface); box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 650; text-align: center; line-height: 1.2; transition: transform .16s var(--ease); }
.qa-ic { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--accent), var(--accent-2)); }
.qa-i:nth-child(2) .qa-ic { background: linear-gradient(145deg, #ff9a5a, #ff5f7e); }
.qa-i:nth-child(3) .qa-ic { background: linear-gradient(145deg, #a58bff, #6f8bff); }
.qa-i:nth-child(4) .qa-ic { background: linear-gradient(145deg, #3a4660, #1b2438); }
.rd { display: flex; gap: 10px; align-items: flex-start; }
.rd-dot { width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; border: 2px solid var(--warn); flex: none; }
.tick { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; color: transparent; flex: none; transition: background-color .25s ease, border-color .25s ease, color .2s ease, transform .16s var(--ease); }
.tick svg { width: 16px; height: 16px; stroke-width: 2.8; }
.tick[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; animation: pop .32s var(--ease); }
.tick:active { transform: scale(.88); }
.stop.done .grow { opacity: .5; }
.stop.done .grow b { text-decoration: line-through; }
.sg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chip.sm { padding: 6px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; box-shadow: none; background: var(--surface-2); }
.chip.sm svg { width: 13px; height: 13px; }
.alert.mini { padding: 10px 12px; border-radius: 16px; }
.alert.mini b { font-size: 14px; } .alert.mini p { font-size: 13px; }
details.more > summary { cursor: pointer; list-style: none; font-weight: 650; font-size: 14.5px; color: var(--accent); display: flex; align-items: center; justify-content: space-between; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); margin-right: 4px; }
details.more[open] > summary::after { transform: rotate(-135deg); }
.hours { display: grid; grid-auto-flow: column; grid-auto-columns: 54px; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: -4px; padding: 4px; }
.hours::-webkit-scrollbar { display: none; }
.hr { display: flex; flex-direction: column; align-items: center; gap: 5px; text-align: center; }
.hr small { color: var(--muted); font-size: 12px; font-weight: 650; white-space: nowrap; }
.hr svg { width: 22px; height: 22px; color: var(--accent); }
.hr b { font: 650 15px var(--font-mono); }
.hr .rain { color: #2a73c6; font-size: 11.5px; font-weight: 700; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; padding: 0 4px; }
.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .hero .plane, .shimmer::after { animation: none !important; }
  .enter > *, .msg, .tl .stop, .grid2 > .place { animation: fadein .25s ease backwards !important; }
  .sheet, #chat, .tabbar-in .ind.go { transition-duration: .01s !important; }
}

input[type="text"], input[type="number"], input[type="password"], input[type="search"], input[type="date"], input[type="time"], select, textarea { border-color: var(--line); }
input[type="time"] { width: auto; }
.act-card { border: 1.5px solid var(--accent-soft); }

#chat form .attach { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--surface-2); display: grid; place-items: center; flex: none; align-self: flex-end; transition: transform .16s var(--ease); }
#chat form .attach:active { transform: scale(.9); }
#chat form .attach svg { width: 20px; height: 20px; }
#chat-prev:empty { display: none; }
.prev { display: flex; align-items: center; gap: 10px; margin: 0 14px; padding: 8px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.prev img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.prev .small { flex: 1; }
.uimg { width: min(55vw, 220px); border-radius: 18px; box-shadow: var(--shadow-sm); align-self: flex-end; }

/* chi tiêu */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; margin-right: 6px; }
.exp-row .dot { margin: 0; }
.exp-big { font: 800 34px var(--font-mono) !important; padding: 12px 16px !important; letter-spacing: -.02em; }
.exp-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 4px; border: 0; background: none; text-align: left; border-bottom: 1px solid var(--line); transition: background-color .2s ease, transform .16s var(--ease); }
.exp-row:active { background: var(--surface-2); }
.exp-row .grow { display: flex; flex-direction: column; min-width: 0; }
.exp-row .grow b { font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.exp-row .mono { display: flex; flex-direction: column; align-items: flex-end; }
.bar-row { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: center; }
.bar-row .bar { height: 10px; }
.toast-btn { margin-left: 10px; border: 0; background: rgba(255,255,255,.18); color: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 700; }
#toast.act { pointer-events: auto; }
#toast { white-space: nowrap; }

/* bản đồ */
.mapbox { position: relative; height: 56dvh; min-height: 340px; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); isolation: isolate; z-index: 0; background: #e6edf5; }
#map { position: absolute; inset: 0; }
.leaflet-container { font: inherit; background: #e6edf5; }
.leaflet-control-attribution { font-size: 9.5px; background: rgba(255,255,255,.7) !important; }
.leaflet-bottom.leaflet-left { bottom: 58px; }
.leaflet-control-zoom a { border-radius: 12px !important; color: var(--ink); }
.map-fabs { position: absolute; right: 10px; top: 10px; z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.map-info { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 600; background: var(--surface); border-radius: 16px; padding: 9px 13px; font-size: 13px; box-shadow: var(--shadow); }
.mkw { background: none; border: 0; }
.mk-hotel { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.mk-hotel svg { width: 18px; height: 18px; }
.mk-n { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font: 800 15px var(--font); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(20,60,160,.4); transition: transform .2s var(--ease); }
.mk-n.done { background: var(--ok); }
.mk-n svg { width: 16px; height: 16px; stroke-width: 3; }
.mk-ph { width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); overflow: hidden; display: grid; place-items: center; font: 700 16px var(--font-cn); color: var(--muted); transition: transform .2s var(--ease); }
.mk-ph.sm { width: 30px; height: 30px; opacity: .9; }
.mk-ph img { width: 100%; height: 100%; object-fit: cover; }
.picked .mk-n, .picked .mk-ph, .picked .mk-hotel { transform: scale(1.3); }
.mk-me { width: 22px; height: 22px; position: relative; }
.mk-me i { position: absolute; inset: 3px; border-radius: 50%; background: #2f6bff; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(47,107,255,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(47,107,255,0); } 100% { box-shadow: 0 0 0 0 rgba(47,107,255,0); } }
.mapcards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.mapcards::-webkit-scrollbar { display: none; }
.mcard { flex: 0 0 min(84vw, 330px); scroll-snap-align: center; display: flex; gap: 12px; background: var(--surface); border-radius: 22px; padding: 10px; box-shadow: var(--shadow-sm); border: 2px solid transparent; transition: border-color .25s ease, transform .2s var(--ease); }
.mcard.sel { border-color: var(--accent); }
.mph { position: relative; width: 92px; height: 112px; border-radius: 16px; overflow: hidden; flex: none; background: var(--surface-2); }
.mph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: fadein .4s ease; }
.mph .mn { position: absolute; left: 6px; top: 6px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 800 13px var(--font); display: grid; place-items: center; z-index: 1; }
.mbd { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mbd b { font-size: 16px; letter-spacing: -.02em; line-height: 1.2; }
.mbd .acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.mbd .btn.sm { padding: 6px 10px; font-size: 12.5px; }

/* cẩm nang dạng trung tâm */
.gtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.gt { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border: 0; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); text-align: left; transition: transform .16s var(--ease); min-height: 132px; }
.gt:active { transform: scale(.97); }
.gt b { font-size: 16.5px; letter-spacing: -.02em; line-height: 1.2; margin-top: auto; }
.gt-ic { width: 42px; height: 42px; border-radius: 15px; display: grid; place-items: center; color: #fff; background: var(--c); box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 30%, transparent); }
.gt-ic svg { width: 21px; height: 21px; }
.gres { width: 100%; text-align: left; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; border: 0; }
.subhd { margin-bottom: -6px; }

.rc-card { width: min(100%, 380px); border: 1.5px solid var(--accent-soft); }
.rc-total { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
#msgs.still .msg { animation: none; }

/* ===== bản đồ toàn màn hình (ghi đè phiên bản cũ) ===== */
body.mapmode { overflow: hidden; overscroll-behavior: none; }
body.mapmode #app { padding-bottom: 0; }
.mapbox { display: none; }
.mapfull { position: relative; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow); isolation: isolate; z-index: 0; background: #e6edf5; margin-top: 2px; }
.mapfull #map { position: absolute; inset: 0; }
.map-top { position: absolute; left: 0; right: 0; top: 0; z-index: 700; padding: 10px 10px 0; display: flex; flex-direction: column; gap: 6px; pointer-events: none; }
.map-top .chips { pointer-events: auto; margin: 0; padding: 0 0 2px; }
.map-top .chip { box-shadow: 0 2px 8px rgba(20, 40, 90, .2); padding: 7px 13px; }
.map-top .map-info { position: static; pointer-events: auto; align-self: flex-start; max-width: calc(100% - 62px); background: var(--surface); border-radius: 14px; padding: 7px 12px; font-size: 12.5px; box-shadow: 0 2px 10px rgba(20, 40, 90, .2); display: flex; gap: 10px; align-items: center; z-index: auto; }
.map-info .link { border: 0; background: none; color: var(--accent); font-weight: 700; padding: 0; white-space: nowrap; }
.map-fabs { top: 100px; right: 10px; }
.map-fabs .iconbtn { box-shadow: 0 2px 10px rgba(20, 40, 90, .28); }
.map-fabs .iconbtn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.mapfull .mapcards { position: absolute; left: 0; right: 0; bottom: 10px; z-index: 700; margin: 0; padding: 0 10px; gap: 10px; }
.mapfull .mcard { box-shadow: 0 6px 20px rgba(20, 40, 90, .28); flex: 0 0 min(82vw, 330px); }
.mapfull .mph { width: 86px; height: 104px; }
.mph-ic { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.95); }
.mph-ic svg { width: 32px; height: 32px; }
.mempty { align-items: center; color: var(--muted); font-size: 14px; flex: 0 0 min(82vw, 330px); }
.btn.ok { background: var(--ok-soft); color: var(--ok); }
.mapfull .leaflet-bottom { bottom: 156px; }
.mapfull .leaflet-control-attribution { font-size: 9px; }
.mk-hotel, .mk-n, .mk-dot { position: relative; }
.mk-n { display: grid; place-items: center; }
.mk-n b { font: 800 15px var(--font); display: grid; place-items: center; }
.mk-n b svg { width: 16px; height: 16px; stroke-width: 3; }
.mk-dot { width: 30px; height: 30px; transition: transform .2s var(--ease); }
.mk-dot i { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.mk-dot i svg { width: 14px; height: 14px; }
.mk-lb { position: absolute; left: calc(100% + 5px); top: 50%; transform: translateY(-50%); white-space: nowrap; font: 700 11.5px var(--font); background: rgba(255,255,255,.94); padding: 2px 7px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.28); color: #111; pointer-events: none; display: none; }
.mk-n .mk-lb { display: block; }
.z-hi .mk-dot .mk-lb { display: block; }
.picked.mk-dot, .picked .mk-dot { transform: scale(1.25); }
.picked .mk-lb { display: block !important; z-index: 5; }

.mapfull .mbd .acts { flex-wrap: nowrap; gap: 6px; }
.mapfull .mbd .btn.sm { padding: 7px 10px; font-size: 12.5px; gap: 5px; }
.mapfull .mbd .btn.sm svg { width: 14px; height: 14px; }
.map-fabs .iconbtn svg { width: 20px; height: 20px; }

/* vùng chạm đủ lớn trên iPhone */
.sec-h .link { padding: 10px 4px; margin: -10px -4px; }
.check input { width: 26px; height: 26px; }
.mv button { padding: 4px 9px; }
.mv svg { width: 17px; height: 17px; }
.tick { width: 32px; height: 32px; }
input[type="time"] { min-height: 38px; }
.copy, .btn.sm, .chip.sm { min-height: 34px; }
a[href^="tel:"] { display: inline-block; padding: 8px 0; }

/* tài liệu + trình xem */
.docgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px; border: 0; background: var(--surface); border-radius: 22px; box-shadow: var(--shadow-sm); text-align: left; transition: transform .16s var(--ease); }
.doc:active { transform: scale(.97); }
.doc-th { width: 100%; aspect-ratio: 4/5; border-radius: 14px; background: var(--surface-2); overflow: hidden; display: grid; place-items: center; }
.doc-th img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.doc b { font-size: 14px; line-height: 1.25; letter-spacing: -.01em; }
.doc-pdf { font: 800 22px var(--font); color: var(--seal); } .doc-pdf.big { align-self: center; padding: 30px 40px; background: var(--surface-2); border-radius: 18px; }
#viewer { position: fixed; inset: 0; z-index: 95; background: #0b1220; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity .25s ease, transform .35s var(--ease), visibility 0s .35s; }
#viewer.on { opacity: 1; visibility: visible; transform: none; transition: opacity .25s ease, transform .35s var(--ease), visibility 0s 0s; }
.vw-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 14px 10px; color: #fff; }
.vw-top b { flex: 1; font-size: 16px; letter-spacing: -.01em; }
.vw-acts { display: flex; gap: 8px; }
.vw-acts .iconbtn { background: rgba(255,255,255,.16); color: #fff; box-shadow: none; }
.vw-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; background: #0b1220; text-align: center; }
.vw-body img { width: 100%; height: auto; display: block; margin: 0 auto; background: #fff; transition: width .3s var(--ease); }
.vw-body.zoom img { width: 340%; max-width: none; }
.vw-pdf { color: #fff; padding: 60px 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.vw-cap { color: rgba(255,255,255,.7); font-size: 12px; padding: 8px 16px calc(10px + env(safe-area-inset-bottom, 0px)); text-align: center; }
body.vw-open { overflow: hidden; }
.metro-card { display: flex; flex-direction: column; gap: 12px; text-align: left; border: 0; padding: 10px; }
.metro-card img { width: 100%; height: 200px; object-fit: cover; object-position: 55% 52%; border-radius: 16px; background: #fff; }
.metro-card .stack { padding: 0 6px 6px; gap: 4px; }
.saved-card { width: min(100%, 380px); }
