/* Header, footer, nút liên hệ nhanh. Selector tiền tố .pth / .ptf / .ptfab để không đụng CSS của theme. */

/* Plugin Button Contact VR được thay bằng .ptfab */
#button-contact-vr { display: none !important; }

/* ---------- Header ---------- */
.pth { --pth-top: 0px; --pth-bar: 68px; position: sticky; top: calc(-1 * var(--pth-top)); z-index: 1000; font-family: var(--postum-font); color: var(--postum-text); }
.admin-bar .pth { top: calc(32px - var(--pth-top)); }
.pth *, .pth *::before, .pth *::after { box-sizing: border-box; }
.pth ul { list-style: none; margin: 0; padding: 0; }
.pth p { margin: 0; }
.pth a { text-decoration: none; }
.pth :focus-visible, .pth-search :focus-visible, .pth-drawer :focus-visible { outline: none; box-shadow: var(--pt-focus); border-radius: 6px; }
.pth-wrap { max-width: var(--pt-container); margin-inline: auto; padding-inline: var(--pt-gutter); }
.pth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pth-skip { position: absolute; left: var(--pt-s4); top: -60px; z-index: 2; padding: 10px 16px; background: #fff; color: var(--postum-heading); border-radius: var(--postum-radius-btn); font-weight: 600; box-shadow: var(--postum-shadow-md); }
.pth-skip:focus { top: var(--pt-s2); }

.pth-top { display: none; background: var(--postum-primary); color: #E8F1FA; font-size: 0.8125rem; }
.pth-top .pth-wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--pt-s4); height: 36px; }
.pth-top a { color: #E8F1FA; }
.pth-top a:hover { color: #fff; text-decoration: underline; }
.pth-top p { display: flex; align-items: center; gap: var(--pt-s5); }
.pth-top a { display: inline-flex; align-items: center; gap: 6px; }
.pth-top strong { color: #fff; }

.pth-bar { position: relative; background: #fff; border-bottom: 1px solid var(--postum-border); transition: box-shadow .2s; }
.pth.is-stuck .pth-bar { box-shadow: 0 6px 20px rgba(15, 23, 42, .08); }
.pth-bar-row { display: flex; align-items: center; gap: var(--pt-s4); height: var(--pth-bar); }

.pth-logo { display: inline-flex; align-items: center; flex: none; color: var(--postum-heading); }
.pth-logo img { display: block; width: auto; height: 44px; max-width: 180px; object-fit: contain; }
.pth-wordmark { font: 700 1.25rem/1 var(--postum-font-display); color: var(--postum-heading); }
.pth-logo--wide { display: none; }
.pth-logo--mobile { margin-inline: auto; }

.pth .pth-icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--postum-heading); cursor: pointer; }
.pth .pth-icon-btn:hover { background: var(--postum-bg-alt); }
.pth-actions { display: flex; align-items: center; gap: var(--pt-s2); flex: none; }
.pth .pth-call { display: none; align-items: center; gap: var(--pt-s2); min-height: 44px; padding: 0 var(--pt-s3); border-radius: var(--postum-radius-btn); background: var(--postum-accent); color: var(--postum-on-accent); font-size: 0.9375rem; font-weight: 600; white-space: nowrap; }
.pth .pth-call:hover { background: var(--postum-accent-hover); }

.pth-nav { display: none; }

/* Nav + panel (từ 1200px) */
@media (min-width: 768px) {
    .pth { --pth-top: 36px; --pth-bar: 72px; }
    .pth-top { display: block; }
    .pth .pth-call { display: inline-flex; }
}
@media (min-width: 1280px) {
    .pth .pth-burger, .pth .pth-logo--mobile { display: none; }
    .pth-logo--wide { display: inline-flex; margin-right: var(--pt-s2); }
    .pth-nav { display: block; flex: 1; min-width: 0; }
    .pth-nav > ul { display: flex; align-items: center; gap: 0; }
    .pth-item { display: flex; align-items: center; }
    .pth-item.is-list { position: relative; }
    .pth-link { display: inline-flex; align-items: center; height: var(--pth-bar); padding: 0 9px; color: var(--postum-primary); font-size: 0.8125rem; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; border-bottom: 3px solid transparent; border-top: 3px solid transparent; white-space: nowrap; }
    .pth-link:hover, .pth-item:focus-within > .pth-link { color: var(--postum-primary); }
    .pth-item.is-current > .pth-link { border-bottom-color: var(--postum-accent); }
    .pth .pth-more { display: inline-grid; place-items: center; width: 24px; height: 44px; margin-left: -8px; padding: 0; border: 0; background: transparent; color: var(--postum-text-muted); cursor: pointer; }
    .pth-more .pts-icon { transition: transform .2s; }
    .pth-item.is-open .pth-more .pts-icon, .pth-item:hover .pth-more .pts-icon { transform: rotate(180deg); }

    .pth-panel { position: absolute; top: 100%; left: 0; z-index: 5; display: none; background: #fff; border: 1px solid var(--postum-border); border-top: 0; border-radius: 0 0 var(--postum-radius-card) var(--postum-radius-card); box-shadow: var(--postum-shadow-lg); }
    .pth-item.is-mega .pth-panel { left: 0; right: 0; border-left: 0; border-right: 0; border-radius: 0; }
    .pth-item.is-open > .pth-panel, .pth-item:focus-within > .pth-panel { display: block; }
    @media (hover: hover) { .pth-item:hover > .pth-panel { display: block; } }
    .pth-item.is-list > .pth-panel { min-width: 280px; }
    .pth-panel-in { padding: var(--pt-s5) var(--pt-s5) var(--pt-s4); }
    .pth-item.is-mega .pth-panel-in { max-width: var(--pt-container); margin-inline: auto; padding: var(--pt-s6) var(--pt-gutter) var(--pt-s5); }
    .pth-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--pt-s5) var(--pt-s7); }
    .pth-item.is-mega .pth-panel-in { max-height: calc(100vh - 180px); overflow-y: auto; overscroll-behavior: contain; }
    .pth-all--top { display: block; margin-bottom: var(--pt-s4); font: 700 1.0625rem/1.3 var(--postum-font-display); color: var(--postum-heading); }
    .pth-all--top:hover { color: var(--postum-primary); }
    .pth-col-title { display: flex; justify-content: space-between; align-items: baseline; gap: var(--pt-s3); margin-bottom: var(--pt-s2); padding-bottom: var(--pt-s2); border-bottom: 1px solid var(--postum-border); font: 700 1rem/1.3 var(--postum-font-display); color: var(--postum-heading); }
    .pth-col-title:hover { color: var(--postum-primary); }
    .pth-col li a, .pth-list li a { display: flex; align-items: center; gap: var(--pt-s3); padding: 6px 0; font-size: 0.9375rem; color: var(--postum-text); }
    .pth-col li a:hover, .pth-list li a:hover { color: var(--postum-primary); text-decoration: underline; }
    .pth-all { display: inline-block; margin-top: var(--pt-s4); padding-top: var(--pt-s3); border-top: 1px solid var(--postum-border); font-weight: 600; font-size: 0.9375rem; color: var(--postum-primary); }
    .pth-all:hover { text-decoration: underline; }
    .pth-item.is-mega .pth-all { display: block; }
}

/* Search dialog */
.pth-search { width: min(720px, calc(100vw - 24px)); margin: 12vh auto 0; padding: var(--pt-s5); border: 0; border-radius: var(--postum-radius-card); background: #fff; color: var(--postum-text); font-family: var(--postum-font); box-shadow: var(--postum-shadow-lg); }
.pth-search::backdrop, .pth-drawer::backdrop { background: rgba(3, 59, 109, .55); }
.pth-search-row { display: grid; gap: var(--pt-s3); }
.pth-search input[type="search"], .pth-search select { width: 100%; min-height: 52px; padding: 0 var(--pt-s4); border: 1px solid #9FB1C3; border-radius: var(--postum-radius-btn); background: #fff; color: var(--postum-text); font: 400 1rem/1 var(--postum-font); }
.pth-search input:focus, .pth-search select:focus { outline: none; border-color: var(--postum-primary); box-shadow: 0 0 0 3px rgba(17, 88, 155, .2); }
.pth-btn-primary, .pth-btn-ghost { display: inline-flex; align-items: center; justify-content: center; gap: var(--pt-s2); min-height: 52px; padding: 0 var(--pt-s5); border-radius: var(--postum-radius-btn); border: 1px solid transparent; font: 600 1rem/1 var(--postum-font); text-decoration: none; cursor: pointer; }
.pth-btn-primary { background: var(--postum-accent); color: var(--postum-on-accent); }
.pth-btn-primary:hover { background: var(--postum-accent-hover); }
.pth-btn-ghost { background: #fff; color: var(--postum-primary); border-color: var(--postum-primary); }
.pth-sug { display: flex; flex-wrap: wrap; align-items: center; gap: var(--pt-s2); margin: var(--pt-s4) 0 0; font-size: var(--pt-text-sm); color: var(--postum-text-muted); }
.pth-sug a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--pt-s3); border: 1px solid var(--postum-border); border-radius: 999px; color: var(--postum-text); font-weight: 600; text-decoration: none; }
.pth-sug a:hover { border-color: var(--postum-primary); color: var(--postum-primary); }
.pth-search-close { position: absolute; top: 8px; right: 8px; border: 0; background: transparent; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--postum-text); }
.pth-search .pth-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (min-width: 720px) { .pth-search-row { grid-template-columns: 1fr 180px auto; } }
.pth-search form:first-of-type { padding-right: 0; }

/* Drawer */
.pth-drawer { width: min(380px, 100vw); height: 100dvh; max-height: none; margin: 0 auto 0 0; padding: 0; border: 0; background: #fff; color: var(--postum-text); font-family: var(--postum-font); }
.pth-drawer[open] { display: flex; flex-direction: column; }
.pth-drawer ul { list-style: none; margin: 0; padding: 0; }
.pth-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: var(--pt-s2) var(--pt-s3) var(--pt-s2) var(--pt-s5); border-bottom: 1px solid var(--postum-border); }
.pth-drawer-head .pth-logo img { height: 40px; }
.pth-drawer .pth-icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--postum-text); cursor: pointer; }
.pth-drawer-nav { flex: 1; overflow: auto; padding: var(--pt-s2) 0; overscroll-behavior: contain; }
.pth-drawer-nav a, .pth-drawer-nav summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 var(--pt-s5); color: var(--postum-heading); font-weight: 600; text-decoration: none; cursor: pointer; list-style: none; }
.pth-drawer-nav summary::-webkit-details-marker { display: none; }
.pth-drawer-nav summary .pts-icon { transition: transform .2s; color: var(--postum-text-muted); }
.pth-drawer-nav details[open] > summary .pts-icon { transform: rotate(180deg); }
.pth-drawer-nav ul ul a, .pth-drawer-nav ul ul summary { padding-left: calc(var(--pt-s5) + 16px); font-weight: 400; color: var(--postum-text); min-height: 44px; }
.pth-drawer-nav ul ul ul a { padding-left: calc(var(--pt-s5) + 32px); }
.pth-drawer-nav .pth-d-all { color: var(--postum-primary); font-weight: 600; }
.pth-drawer-nav [aria-current="page"] { color: var(--postum-primary); }
.pth-drawer-foot { display: grid; gap: var(--pt-s2); padding: var(--pt-s4) var(--pt-s5) calc(var(--pt-s4) + env(safe-area-inset-bottom)); border-top: 1px solid var(--postum-border); }
html.pth-lock { overflow: hidden; }

/* ---------- Footer ---------- */
#main-footer.ptf { background: #073B6D; color: #D5DBEF; font-family: var(--postum-font); font-size: 0.9375rem; line-height: 1.7; }
#main-footer.ptf *, #main-footer.ptf *::before, #main-footer.ptf *::after { box-sizing: border-box; }
#main-footer.ptf ul { list-style: none; margin: 0; padding: 0; }
#main-footer.ptf p, #main-footer.ptf address { margin: 0; font-style: normal; }
#main-footer.ptf a { color: #D5DBEF; text-decoration: none; }
#main-footer.ptf a:hover { color: #fff; text-decoration: underline; }
#main-footer.ptf :focus-visible { outline: none; box-shadow: 0 0 0 3px #073B6D, 0 0 0 5px #9CC9E3; border-radius: 4px; }
#main-footer .ptf-wrap { max-width: var(--pt-container); margin-inline: auto; padding-inline: var(--pt-gutter); }
#main-footer .ptf-grid { display: grid; gap: var(--pt-s5) var(--pt-s6); padding: var(--pt-s6) 0 var(--pt-s5); }
#main-footer.ptf h2 { margin: 0 0 var(--pt-s2); font: 700 1.0625rem/1.3 var(--postum-font-display); color: #fff; letter-spacing: 0; }
#main-footer .ptf-logo { display: inline-block; margin-bottom: var(--pt-s3); padding: 8px 12px; background: #fff; border-radius: var(--postum-radius-btn); }
#main-footer .ptf-logo img { display: block; height: 40px; width: auto; max-width: 180px; object-fit: contain; }
#main-footer .ptf-logo .pth-wordmark { font: 700 1.125rem/1 var(--postum-font-display); }
#main-footer .ptf-intro { max-width: 40ch; color: #B8C2E0; font-size: 0.875rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
#main-footer .ptf-social { display: flex; flex-wrap: wrap; gap: var(--pt-s2); margin-top: var(--pt-s3) !important; }
#main-footer .ptf-social a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--pt-s4); border: 1px solid #3A74A8; border-radius: 999px; font-weight: 600; font-size: 0.875rem; }
#main-footer .ptf-social a:hover { border-color: #fff; text-decoration: none; }
#main-footer .ptf-col li a { display: inline-block; padding: 2px 0; }
#main-footer .ptf-contact address { display: grid; gap: var(--pt-s2); }
#main-footer .ptf-contact address p { display: flex; gap: var(--pt-s3); align-items: flex-start; }
#main-footer .ptf-contact .pts-icon { margin-top: 5px; color: #9CC9E3; }
#main-footer .ptf-legal { margin-bottom: var(--pt-s2) !important; color: #fff; }
#main-footer .ptf-fine { margin-top: var(--pt-s3) !important; font-size: 0.8125rem; color: #B8C2E0; }
#main-footer .ptf-offices { padding: var(--pt-s4) 0; border-top: 1px solid #1F5688; }
#main-footer .ptf-offices ul { display: grid; gap: var(--pt-s3); }
#main-footer .ptf-offices li { display: grid; gap: 0; font-size: 0.8125rem; line-height: 1.55; color: #B8C2E0; }
#main-footer .ptf-office-addr { display: none; }
#main-footer .ptf-offices strong { color: #fff; font-size: 0.9375rem; }
#main-footer .ptf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
#main-footer .ptf-base { padding-bottom: 72px; border-top: 1px solid #1F5688; background: #052E56; font-size: 0.8125rem; color: #9AA6CF; }
#main-footer .ptf-base-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--pt-s2) var(--pt-s5); padding-block: var(--pt-s3); }
#main-footer .ptf-base a { color: #B8C2E0; }
#main-footer .ptf-base-links { display: flex; gap: var(--pt-s5); }
@media (min-width: 640px) { #main-footer .ptf-grid { grid-template-columns: 1fr 1fr; } #main-footer .ptf-offices ul { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { #main-footer .ptf-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } #main-footer .ptf-offices ul { grid-template-columns: repeat(3, 1fr); } #main-footer .ptf-base { padding-bottom: 0; } }

/* ---------- Nút liên hệ nhanh ---------- */
.ptfab { position: fixed; right: var(--pt-s4); bottom: var(--pt-s4); z-index: 900; display: grid; gap: var(--pt-s2); font-family: var(--postum-font); }
.ptfab-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--pt-s2); height: 52px; min-width: 52px; padding: 0; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9375rem; box-shadow: 0 6px 18px rgba(15, 23, 42, .25); }
.ptfab-btn span { display: none; }
.ptfab-zalo { background: #0068FF; }
.ptfab-call { background: var(--postum-accent); color: var(--postum-on-accent); }
.ptfab-btn:hover { filter: brightness(1.06); }
.ptfab-zalo:hover { color: #fff; }
.ptfab-call:hover { color: var(--postum-on-accent); }
.ptfab-btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--postum-primary); }
@media (min-width: 1024px) { .ptfab-btn { padding: 0 var(--pt-s5); } .ptfab-btn span { display: inline; } }
/* Trang tour trên mobile đã có nút gọi trong thanh đặt tour dính ở cuối: ẩn nút nổi cho khỏi trùng và khỏi che CTA */
@media (max-width: 1023px) { body.single-st_tours .ptfab, body:has(.pg-formbox) .ptfab, body:has(.ph-form) .ptfab { display: none; } }
@media print { .ptfab, .pth-top, .pth-search, .pth-drawer { display: none !important; } }

@media (prefers-reduced-motion: reduce) { .pth *, .pth-drawer * { transition: none !important; } }

/* ---------- Nút lên đầu trang ---------- */
.pt-top { position: fixed; left: var(--pt-s4); bottom: var(--pt-s4); z-index: 890; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: var(--postum-accent); color: var(--postum-on-accent); cursor: pointer; box-shadow: 0 6px 18px rgba(15, 23, 42, .25); opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.pt-top svg { transform: rotate(-90deg); }
.pt-top.is-on { opacity: 1; transform: none; }
.pt-top:hover { background: var(--postum-accent-hover); }
.pt-top:focus-visible { outline: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--postum-primary); }
@media print { .pt-top { display: none !important; } }
@media (prefers-reduced-motion: reduce) { .pt-top { transition: none; } }

.pth-top-links { display: flex; align-items: center; gap: var(--pt-s5); }
.pth-top-links .pth-top-member { font-weight: 600; }
.pth-top-links .pth-top-member:first-of-type { padding-left: var(--pt-s5); border-left: 1px solid rgba(255, 255, 255, .3); }
.pth-member-links { display: flex; justify-content: center; gap: var(--pt-s3); font-size: 0.9375rem; color: var(--postum-text-muted); }
.pth-member-links a { color: var(--postum-primary); font-weight: 600; }

/* Menu lớn: cờ, số tour */
.pth-flag { flex: none; width: 24px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.pth-name { flex: 1; min-width: 0; }
.pth-count { flex: none; font-style: normal; font-size: 0.8125rem; font-weight: 500; color: var(--postum-text-muted); font-variant-numeric: tabular-nums; }
