/* ==========================================================================
   VIETNAM PLANNING PAGES (2026-10-28): /vietnam/topics, /vietnam/plan,
   /vietnam/plan/today (empty state), /vietnam/route.
   Dresses the et-blocks pieces (.eb-hero, .eb-tiles, .eb-icards ...) for
   these four pages. Scoped to .vp. Brand tokens only; no new logic.
   ========================================================================== */

.vp { --vp-blue: var(--eb-blue, #2563eb); --vp-soft: var(--eb-blue-soft, #eef4ff);
      --vp-ink: var(--eb-ink, #0f1a2c); --vp-muted: var(--eb-muted, #4f5a6b);
      --vp-line: var(--eb-line, #e5e5e7); }
.vp *, .vp *::before, .vp *::after { box-sizing: border-box; }

/* The photo header on these pages */
.vp .vp-hero { margin: 0 0 18px; }
.vp .vp-hero h1 { letter-spacing: -.02em; text-wrap: balance; max-width: 22ch; }
.vp .vp-hero h1 em { font-style: normal; color: #bfdbfe; }
.vp .vp-hero .eb-lead { font-size: .98rem; }
.vp .vp-hero .eb-kicker .et-i { width: 14px; height: 14px; }
@media (max-width: 480px) { .vp .vp-hero { min-height: 260px; margin-left: -4px; margin-right: -4px; } }

/* --------------------------------------------------------------------------
   TOPICS HUB
   -------------------------------------------------------------------------- */
.vn-topics-hub.vp { padding-bottom: 24px; }
.vp-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.vp .vp-crumb { margin: 18px 0 12px; font-size: .85rem; }

.vp-phasenav { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 10px; margin: 0 0 8px;
               scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.vp-phasenav::-webkit-scrollbar { display: none; }
.vp-phasenav a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px;
                 border: 1px solid var(--vp-line); border-radius: 999px; background: #fff; color: var(--vp-ink);
                 text-decoration: none; box-shadow: var(--eb-sh); }
.vp-phasenav a:hover, .vp-phasenav a:focus-visible { border-color: var(--vp-blue); }
.vp-phasenav .eb-ico { width: 34px; height: 34px; border-radius: 50%; }
.vp-phasenav .eb-ico .et-i { width: 17px; height: 17px; }
.vp-phasenav b { display: block; font-size: .9rem; line-height: 1.2; }
.vp-phasenav small { display: block; font-size: .76rem; color: var(--vp-muted); }

.vp .vp-topic-body .vn-topic-phase { padding: 22px 0 8px; border-top: 1px solid var(--vp-line); }
.vp .vp-topic-body .vn-topic-phase:first-child { border-top: 0; padding-top: 10px; }
.vp-phase-head { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; }
.vp-phase-head .eb-step { margin-top: 4px; }
.vp .vp-phase-head h2 { margin: 0 0 4px; font-size: clamp(1.35rem, 4vw, 1.8rem); line-height: 1.15; max-width: none; }
.vp-when { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: .8rem; font-weight: 700;
           color: var(--vp-blue); }
.vp-when .et-i { width: 14px; height: 14px; }
.vp-phase-q { margin: 0; color: var(--vp-muted); font-size: .95rem; line-height: 1.5; }

.vp-tcards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 680px) { .vp-tcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .vp-tcards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.vp-tcard { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--vp-line); border-radius: 18px;
            background: #fff; box-shadow: var(--eb-sh); color: var(--vp-ink); text-decoration: none; overflow: hidden;
            transition: transform .2s, border-color .2s; }
.vp-tcard:hover, .vp-tcard:focus-visible { border-color: var(--vp-blue); transform: translateY(-2px); }
.vp-tcard-photo { display: block; aspect-ratio: 16 / 9; background: var(--eb-soft, #f5f7fa) var(--eb-img, none) center / cover no-repeat; }
.vp-tcard-in { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; flex: 1; }
.vp-tcard.has-photo .vp-tcard-icon { margin-top: -38px; border: 3px solid #fff; width: 46px; height: 46px; border-radius: 50%; }
.vp-tcard h3 { margin: 2px 0 0; font-size: 1.12rem; line-height: 1.3; }
.vp-tcard p { margin: 0; color: var(--vp-muted); font-size: .92rem; line-height: 1.55; }
.vp-tcard-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--vp-muted); }
.vp-tcard-meta span { display: inline-flex; align-items: center; gap: 5px; }
.vp-tcard-meta .et-i { width: 14px; height: 14px; color: var(--eb-ok, #1f7a4d); }
.vp-tcard-go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px;
               font-weight: 700; color: var(--vp-blue); font-size: .92rem; }
.vp-tcard-go .et-i { width: 15px; height: 15px; }

.vp-note { display: flex; gap: 12px; align-items: center; margin: 22px 0 0; padding: 14px 16px; border-radius: 16px;
           background: var(--vp-soft); color: var(--vp-ink); font-size: .9rem; line-height: 1.5; }

.vp-more { padding-top: 18px; }
.vp .vp-more-title { margin: 0 0 14px; font-size: clamp(1.3rem, 4vw, 1.7rem); max-width: none; }
.vp .vp-more-tiles .eb-tile { aspect-ratio: 3 / 4; }
@media (min-width: 720px) { .vp .vp-more-tiles .eb-tile { aspect-ratio: 4 / 5; } }
.vp .vp-more-tiles .eb-tile small { margin-top: 4px; line-height: 1.35; }

/* --------------------------------------------------------------------------
   THE TWO WIZARDS: labelled progress and step cards
   -------------------------------------------------------------------------- */
.vp-sg.sg { padding-top: 18px; max-width: 820px; }
.vn.vn-plan.vp-route { padding-top: 18px; padding-left: 16px; padding-right: 16px; border: 0; background: none; }

.vp .vp-progress { text-align: left; margin: 0 0 14px; padding: 14px; border: 1px solid var(--vp-line);
                   border-radius: 18px; background: #fff; box-shadow: var(--eb-sh); }
.vp .vp-progress::before { display: none; }

/* four segments, each with its label */
.vp .vp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; height: auto; max-width: none;
                margin: 0 0 10px; padding: 0; list-style: none; align-items: stretch; }
.vp .vp-steps > span, .vp .vp-steps > li { display: flex; flex-direction: column; align-items: center; gap: 6px; width: auto;
                height: auto; margin: 0; padding: 0 0 0; border-radius: 0; background: none; box-shadow: none;
                font-size: .76rem; font-weight: 700; color: var(--vp-muted); text-align: center; min-width: 0; }
.vp .vp-steps > span::before, .vp .vp-steps > li::before { content: ""; order: 2; display: block; width: 100%; height: 5px;
                border-radius: 999px; background: var(--vp-line); transition: background .3s; }
.vp .vp-steps .et-i { width: 22px; height: 22px; padding: 0; color: var(--vp-muted); }
.vp .vp-steps > span:nth-child(2), .vp .vp-steps > span:nth-child(3) { margin-bottom: 0; }

/* Saigon: sg-plan.js sets is-done / is-now */
.vp .vp-steps > span.is-done, .vp .vp-steps > span.is-now { background: none; box-shadow: none; color: var(--vp-ink); }
.vp .vp-steps > span.is-done::before, .vp .vp-steps > span.is-now::before { background: var(--vp-blue); }
.vp .vp-steps > span.is-now .et-i, .vp .vp-steps > span.is-done .et-i { color: var(--vp-blue); }

/* Route: the visible step lights its label (no script change) */
.vp-route .vp-steps > li:first-child { color: var(--vp-ink); }
.vp-route .vp-steps > li:first-child::before { background: var(--vp-blue); }
.vp-route .vp-steps > li:first-child .et-i { color: var(--vp-blue); }
.vp-route .vn-wiz:has(> fieldset:nth-of-type(2):not([hidden])) .vp-steps > li:nth-child(-n+2),
.vp-route .vn-wiz:has(> fieldset:nth-of-type(3):not([hidden])) .vp-steps > li:nth-child(-n+3),
.vp-route .vn-wiz:has(> fieldset:nth-of-type(4):not([hidden])) .vp-steps > li:nth-child(-n+4) { color: var(--vp-ink); }
.vp-route .vn-wiz:has(> fieldset:nth-of-type(2):not([hidden])) .vp-steps > li:nth-child(-n+2)::before,
.vp-route .vn-wiz:has(> fieldset:nth-of-type(3):not([hidden])) .vp-steps > li:nth-child(-n+3)::before,
.vp-route .vn-wiz:has(> fieldset:nth-of-type(4):not([hidden])) .vp-steps > li:nth-child(-n+4)::before { background: var(--vp-blue); }
.vp-route .vn-wiz:has(> fieldset:nth-of-type(2):not([hidden])) .vp-steps > li:nth-child(-n+2) .et-i,
.vp-route .vn-wiz:has(> fieldset:nth-of-type(3):not([hidden])) .vp-steps > li:nth-child(-n+3) .et-i,
.vp-route .vn-wiz:has(> fieldset:nth-of-type(4):not([hidden])) .vp-steps > li:nth-child(-n+4) .et-i { color: var(--vp-blue); }

.vp .sg-wiz-count, .vp .vn-wiz-count { text-align: center; margin: 0; font-size: .8rem; }
.vp-route .vn-wiz-flight { display: none; }
.vp-route .vp-progress .vn-wiz-help { margin: 10px 0 0; text-align: center; font-size: .84rem; }

/* every question a numbered card */
.vp .sg-wiz, .vp .vn-wiz { counter-reset: vpstep; }
.vp .sg-step, .vp .vn-wiz-step { counter-increment: vpstep; background: #fff; border: 1px solid var(--vp-line);
                                 border-radius: 18px; box-shadow: var(--eb-sh); padding: 16px 16px 18px; margin: 0 0 14px; min-width: 0; }
.vp .sg-step legend, .vp .vn-wiz-step legend { display: flex; align-items: center; gap: 10px; float: left; width: 100%;
                margin: 0 0 14px; padding: 0; font-size: 1.12rem; font-weight: 700; line-height: 1.3; color: var(--vp-ink); }
.vp .sg-step legend::before, .vp .vn-wiz-step legend::before { content: counter(vpstep); flex: none; width: 32px; height: 32px;
                border-radius: 50%; display: grid; place-items: center; background: var(--vp-blue); color: #fff;
                font-size: .9rem; font-weight: 800; }
.vp .sg-step legend + *, .vp .vn-wiz-step legend + * { clear: both; }
.vp .sg-days { margin-top: 0; }

/* big icon tiles for the choices */
.vp .sg-who-body .et-i, .vp .sg-style-body .et-i, .vp .vn-wiz-opt-body .et-i { width: 26px; height: 26px; color: var(--vp-blue); }
.vp .vn-wiz-opt-body { min-height: 92px; border-radius: 16px; padding: 14px; box-shadow: var(--eb-sh); }
.vp .vn-wiz-opt input:checked + .vn-wiz-opt-body { background: var(--vp-soft); color: var(--vp-ink); border: 2px solid var(--vp-blue);
                                                    box-shadow: var(--eb-sh); }
.vp .vn-wiz-opt input:checked + .vn-wiz-opt-body .et-i { color: var(--vp-blue); }
.vp .vn-wiz-opt input:checked + .vn-wiz-opt-body small { color: var(--vp-muted); }

.vp .sg-wiz-nav, .vp .vn-wiz-nav { margin-top: 4px; }
.vp .eb-trust { margin-top: 22px; }

/* --------------------------------------------------------------------------
   TODAY, when it is not a trip day
   -------------------------------------------------------------------------- */
.sg-tempty.vp-tempty { padding: 18px 0 8px; }
.vp-tempty .vp-hero h1 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 5vw, 2.2rem); }
.vp-tempty .vp-hero p.eb-lead { color: rgba(255, 255, 255, .92); margin: 0; }
.vp-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.vp-actions .vn-btn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 480px) { .vp-actions .vn-btn { flex: 1 1 100%; justify-content: center; } }
.vp .vp-h2 { margin: 0 0 12px; font-size: 1.2rem; }
.vp-tempty .eb-icard p { margin: 0; }

/* Late fixes after the screenshot pass */
.vp .eb-hero.vp-hero h1 { line-height: 1.2; font-weight: 700; }  /* size: font-size.css rules sitewide */
.vp .sg-wiz.is-paged .sg-step { min-height: 0; padding-bottom: 18px; margin-bottom: 0; }
@media (max-width: 700px) {
    body.has-tabbar .vp .sg-wiz-nav { bottom: calc(var(--tab-h, 62px) + env(safe-area-inset-bottom)); }
}
.vn.sg.sg-today:has(> .vp-tempty) { padding-top: 6px; }
.vp-tempty .eb-icards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.vp-route .vn-wiz-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.vp-route .vn-wiz-nav .vn-btn { min-height: 50px; justify-content: center; }
.vp-route #vnWizNext, .vp-route #vnWizGo { flex: 1 1 auto; }
/* vietnam.css paints ink on blue for .vn-btn-primary; white reads better */
.vp .vn-btn-primary, .vp .vn-btn-primary .et-i { color: #fff; }
