/* PDL-STAMP © 2026 PDL Digital – https://pdl.vn · phu@pdl.vn · Zalo 0961330088 · PDL-SHARED-7365A9/tokens.css 49187E */
@layer base, components;
/* ===========================================================
   PDL Prototype Kit – tokens & base (dùng chung cho mọi mẫu)
   Mỗi template override biến :root bên dưới trong <style> riêng.
   =========================================================== */
@layer base {
:root {
  --brand: #111827;        /* màu thương hiệu chính */
  --brand-ink: #ffffff;    /* chữ trên nền brand */
  --accent: #f59e0b;       /* màu nhấn */
  --bg: #ffffff;
  --fg: #111827;
  --muted: #6b7280;
  --surface: #f5f5f4;
  --line: rgba(0,0,0,.08);
  --radius: 16px;
  --font-display: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-body: 'Be Vietnam Pro', system-ui, sans-serif;
  --sticky-h: 68px;        /* chiều cao thanh CTA mobile */
}
}
@layer base {
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--bg); color: var(--fg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.font-display { font-family: var(--font-display); }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: #fff; }
.safe-b { padding-bottom: env(safe-area-inset-bottom); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.snap-x-mobile { scroll-snap-type: x mandatory; } .snap-x-mobile > * { scroll-snap-align: start; }
}
@layer components {
/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .1s } .reveal[data-delay="2"] { transition-delay: .2s } .reveal[data-delay="3"] { transition-delay: .3s } .reveal[data-delay="4"] { transition-delay: .4s }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none } *, *::before, *::after { animation-duration: .01ms !important; } }

/* Marquee */
@keyframes pdl-marquee { from { transform: translateX(0) } to { transform: translateX(-50%) } }
.marquee { overflow: hidden; white-space: nowrap; } .marquee__track { display: inline-flex; gap: 2rem; animation: pdl-marquee 28s linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused }

/* Glass & misc */
.glass { background: rgba(255,255,255,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.glass-dark { background: rgba(17,24,39,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.shimmer { position: relative; overflow: hidden; background: var(--surface); }
.shimmer::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent); animation: pdl-shimmer 1.4s infinite; }
@keyframes pdl-shimmer { to { transform: translateX(100%) } }

/* Header sticky state (ui.js thêm .scrolled) */
.pdl-header { transition: background .3s, box-shadow .3s, padding .3s; }
.pdl-header.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }

/* Sticky mobile CTA bar */
.pdl-sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; gap: .5rem; align-items: center; padding: .6rem .9rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(0,0,0,.08); }
.pdl-sticky-cta .btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.pdl-sticky-cta .btn-primary { background: var(--brand); color: var(--brand-ink); }
.pdl-sticky-cta .btn-ghost { border: 1px solid var(--line); color: var(--fg); background: var(--surface); flex: 0 0 auto; width: 48px; }
@media (min-width: 768px) { .pdl-sticky-cta { display: none } }
body.has-sticky { padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom)); }
@media (min-width: 768px) { body.has-sticky { padding-bottom: 0 } }

/* Bottom sheet */
.pdl-sheet { position: fixed; inset: 0; z-index: 90; display: none; }
.pdl-sheet.open { display: block; }
.pdl-sheet__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .25s; }
.pdl-sheet.open .pdl-sheet__backdrop { opacity: 1; }
.pdl-sheet__panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto; background: var(--bg); color: var(--fg); border-radius: 24px 24px 0 0; padding: .5rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 60px rgba(0,0,0,.25); }
.pdl-sheet.open .pdl-sheet__panel { transform: none; }
.pdl-sheet__grip { width: 44px; height: 5px; border-radius: 999px; background: rgba(0,0,0,.18); margin: .4rem auto .9rem; }
@media (min-width: 768px) { .pdl-sheet__panel { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); max-height: 86vh; transform: translate(-50%, -46%); opacity: 0; border-radius: 24px; padding: 1.4rem 1.6rem; } .pdl-sheet.open .pdl-sheet__panel { transform: translate(-50%, -50%); opacity: 1; } .pdl-sheet__grip { display: none } }
body.sheet-open { overflow: hidden; }

/* Toast */
.pdl-toast { position: fixed; left: 50%; bottom: calc(var(--sticky-h) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 120; background: #111827; color: #fff; padding: .7rem 1.1rem; border-radius: 999px; font-size: .9rem; opacity: 0; transition: .3s; pointer-events: none; max-width: 90vw; }
.pdl-toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 768px) { .pdl-toast { bottom: 28px } }

/* AI chat widget */
.pdl-ai-launcher { position: fixed; right: 14px; bottom: calc(var(--sticky-h) + 14px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: center; gap: .5rem; padding: .55rem .9rem .55rem .6rem; border-radius: 999px; background: var(--brand); color: var(--brand-ink); box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 600; font-size: .9rem; border: 0; cursor: pointer; }
.pdl-ai-launcher__dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 15px; }
.pdl-ai-launcher__pulse { position: absolute; inset: -4px; border-radius: 999px; border: 2px solid var(--brand); opacity: .6; animation: pdl-pulse 2.2s ease-out infinite; pointer-events: none; }
@keyframes pdl-pulse { 0% { transform: scale(.95); opacity: .6 } 100% { transform: scale(1.25); opacity: 0 } }
@media (min-width: 768px) { .pdl-ai-launcher { right: 24px; bottom: 24px } }
.pdl-ai-launcher { transition: opacity .25s, transform .25s; }
.pdl-ai-launcher.is-tucked { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }
.pdl-ai { position: fixed; inset: 0; z-index: 100; display: none; }
.pdl-ai.open { display: block }
.pdl-ai__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.4) }
.pdl-ai__panel { position: absolute; left: 0; right: 0; bottom: 0; height: 88dvh; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); border-radius: 24px 24px 0 0; overflow: hidden; box-shadow: 0 -20px 60px rgba(0,0,0,.3); animation: pdl-up .3s cubic-bezier(.2,.8,.2,1); }
@keyframes pdl-up { from { transform: translateY(40px); opacity: 0 } }
@media (min-width: 768px) { .pdl-ai__backdrop { background: transparent } .pdl-ai__panel { left: auto; right: 24px; bottom: 24px; width: 400px; height: min(640px, 85vh); border-radius: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.3); border: 1px solid var(--line) } }
.pdl-ai__head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: var(--brand); color: var(--brand-ink); }
.pdl-ai__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.2); font-size: 18px; overflow: hidden }
.pdl-ai__avatar img { width: 100%; height: 100%; object-fit: cover }
.pdl-ai__body { flex: 1; overflow: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--surface); }
.pdl-ai__msg { max-width: 85%; padding: .65rem .9rem; border-radius: 18px; font-size: .93rem; line-height: 1.45; white-space: pre-line; }
.pdl-ai__msg--bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.pdl-ai__msg--user { align-self: flex-end; background: var(--brand); color: var(--brand-ink); border-bottom-right-radius: 6px; }
.pdl-ai__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.pdl-ai__chip { font-size: .82rem; padding: .4rem .75rem; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand); background: var(--bg); cursor: pointer; }
.pdl-ai__chip:hover { background: var(--brand); color: var(--brand-ink) }
.pdl-ai__typing span { display: inline-block; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--muted); animation: pdl-bounce 1.2s infinite; }
.pdl-ai__typing span:nth-child(2) { animation-delay: .15s } .pdl-ai__typing span:nth-child(3) { animation-delay: .3s }
@keyframes pdl-bounce { 0%, 80%, 100% { transform: translateY(0) } 40% { transform: translateY(-5px) } }
.pdl-ai__form { display: flex; gap: .5rem; padding: .7rem .8rem calc(.7rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.pdl-ai__input { flex: 1; min-height: 44px; border-radius: 999px; border: 1px solid var(--line); padding: 0 1rem; font-size: 16px; background: var(--surface); color: var(--fg); outline: none; }
.pdl-ai__send, .pdl-ai__mic { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; cursor: pointer; }
.pdl-ai__mic { background: var(--surface); color: var(--fg); border: 1px solid var(--line) }
.pdl-ai__mic.rec { background: #ef4444; color: #fff; border-color: #ef4444 }
.pdl-ai__card { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: .6rem .8rem; font-size: .88rem; display: flex; gap: .6rem; align-items: center; }
.pdl-ai__card img { width: 52px; height: 52px; border-radius: 10px; object-fit: cover; flex: 0 0 auto }

/* Booking */
.pdl-bk__days { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0 .6rem; }
.pdl-bk__day { flex: 0 0 auto; width: 58px; padding: .5rem 0; border-radius: 14px; border: 1px solid var(--line); text-align: center; cursor: pointer; font-size: .8rem; background: var(--bg); }
.pdl-bk__day b { display: block; font-size: 1.05rem; }
.pdl-bk__day.sel, .pdl-bk__slot.sel, .pdl-bk__opt.sel { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.pdl-bk__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .45rem; }
.pdl-bk__slot { padding: .55rem 0; text-align: center; border-radius: 10px; border: 1px solid var(--line); font-size: .9rem; cursor: pointer; background: var(--bg); }
.pdl-bk__slot.off { opacity: .35; text-decoration: line-through; pointer-events: none }
.pdl-bk__opt { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .75rem .9rem; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; background: var(--bg); }
.pdl-bk__opt small { opacity: .7 }
.pdl-field { width: 100%; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: .6rem .9rem; font-size: 16px; background: var(--bg); color: var(--fg); outline: none; }
.pdl-field:focus { border-color: var(--brand) }
.pdl-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: 0 1.4rem; border-radius: 999px; font-weight: 600; background: var(--brand); color: var(--brand-ink); border: 0; cursor: pointer; transition: transform .15s, opacity .15s; }
.pdl-btn:active { transform: scale(.97) } .pdl-btn:disabled { opacity: .5 }
.pdl-btn--ghost { background: var(--surface); color: var(--fg); border: 1px solid var(--line) }
.pdl-btn--accent { background: var(--accent); color: #111 }
.pdl-steps { display: flex; gap: .4rem; margin: .4rem 0 1rem } .pdl-steps i { flex: 1; height: 4px; border-radius: 4px; background: var(--line) } .pdl-steps i.on { background: var(--brand) }

/* 360 & 3D */
.pdl-360 { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16/10; }
.pdl-360 .pnlm-container, .pdl-360 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pdl-360__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.pdl-360__play { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.pdl-360__play span { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.2rem; border-radius: 999px; background: rgba(255,255,255,.92); color: #111; font-weight: 700; font-size: .95rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.pdl-360__badge { position: absolute; top: 12px; left: 12px; padding: .3rem .6rem; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
model-viewer { width: 100%; height: 100%; min-height: 320px; background: transparent; --poster-color: transparent; }
.pdl-ar-btn { position: absolute; bottom: 12px; right: 12px; padding: .5rem .9rem; border-radius: 999px; background: #111; color: #fff; font-size: .85rem; font-weight: 600; border: 0; }

/* Quiz */
.pdl-quiz__opt { display: block; width: 100%; text-align: left; padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-size: .95rem; transition: .15s; }
.pdl-quiz__opt:hover, .pdl-quiz__opt.sel { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--bg)); }
.pdl-thinking { display: flex; align-items: center; gap: .6rem; padding: 1rem; border-radius: 14px; background: var(--surface); font-size: .9rem; color: var(--muted); }
.pdl-thinking i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--brand); border-right-color: transparent; animation: pdl-spin .8s linear infinite; }
@keyframes pdl-spin { to { transform: rotate(360deg) } }

/* Focus ring for a11y */
:where(a, button, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
}

@layer components {
/* ===== Đa trang: menu mobile, mục menu hiện tại, khung trang con ===== */
.pdl-burger { display: flex; flex: 0 0 auto; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border-radius: 12px; border: 1px solid color-mix(in srgb, currentColor 28%, transparent); background: transparent; color: inherit; cursor: pointer; }
.pdl-burger span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.pdl-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.pdl-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.pdl-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.pdl-has-burger { column-gap: .5rem !important; }
.pdl-has-burger > a:first-child { min-width: 0; flex-shrink: 1; }
.pdl-has-burger > a:first-child > * { min-width: 0; }
.pdl-drawer { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; background: var(--bg); color: var(--fg); padding: 0 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); opacity: 0; transform: translateY(-12px); transition: opacity .25s, transform .25s; overflow-y: auto; }
.pdl-drawer[hidden] { display: none; }
.pdl-drawer.open { opacity: 1; transform: none; }
.pdl-drawer__top { display: flex; align-items: center; justify-content: space-between; height: 64px; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.pdl-drawer__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--fg); font-size: 26px; line-height: 1; cursor: pointer; }
.pdl-drawer__nav { display: flex; flex-direction: column; margin-top: .5rem; }
.pdl-drawer__nav a { display: flex; align-items: baseline; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-size: clamp(1.5rem, 7vw, 2rem); line-height: 1.15; }
.pdl-drawer__nav a i { font-style: normal; font-family: var(--font-body); font-size: .75rem; color: var(--muted); min-width: 1.6rem; }
.pdl-drawer__nav a[aria-current="page"] span { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.pdl-drawer__foot { margin-top: auto; padding-top: 1.5rem; display: grid; gap: .6rem; }
.pdl-drawer__tel { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; }
.pdl-drawer__cta { min-height: 52px; border-radius: 999px; border: 0; background: var(--brand); color: var(--brand-ink); font-weight: 700; font-size: 1rem; cursor: pointer; }
.pdl-header nav a[aria-current="page"], header nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }

.breadcrumb { display: flex; flex-wrap: wrap; gap: .35rem .5rem; align-items: center; font-size: .8rem; opacity: .8; list-style: none; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; opacity: .5; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero { position: relative; padding-top: calc(5.5rem + env(safe-area-inset-top)); padding-bottom: 2.5rem; overflow: hidden; }
@media (min-width: 768px) { .page-hero { padding-top: 6.5rem; padding-bottom: 2.5rem; } }
.leaflet-container { z-index: 0; }
.page-next { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.page-next a { display: block; padding: 1.1rem 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); transition: transform .2s, border-color .2s; }
.page-next a:hover { transform: translateY(-2px); border-color: var(--accent); }
}
