/* หน้าเว็บ VIVAJOY PLANET — โทนสีเดิมของ index.html (ฟ้าน้ำแข็ง/น้ำเงินเข้ม) + แดงผ้าพันคอ เฉพาะปุ่มซื้อและราคา */
:root {
    --fjord: #0C4A6E;        /* หัวข้อ, ตัวอักษรหลัก, พื้นเข้ม (จาก index.html เดิม) */
    --fjord-deep: #082F49;
    --glacier: #0EA5E9;      /* ลิงก์, ปุ่มรอง */
    --ice: #7DD3FC;
    --frost: #E0F2FE;        /* พื้นส่วนอ่อน */
    --snow: #F7FBFE;         /* พื้นหน้า */
    --scarf: #D7353D;        /* ปุ่มซื้อ / ราคา เท่านั้น */
    --scarf-dark: #C7353A;
    --text: #12384F;
    --muted: #4B6B80;
    --line: #CFE6F5;
    --radius: 18px;
    --font-head: "Mitr", "Noto Sans Thai", "PingFang SC", "Microsoft YaHei", sans-serif;
    --font-body: "Noto Sans Thai", "Noto Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--snow); color: var(--text); font: 400 1rem/1.75 var(--font-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fjord); }
a:hover { color: var(--fjord); }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--fjord); line-height: 1.3; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(780px, 100% - 32px); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ---------- ปุ่ม ---------- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent;
    font: 500 1rem/1.2 var(--font-head); text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s; }
.btn-lg { padding: .85em 1.8em; font-size: 1.08rem; }
.btn-buy { background: var(--scarf); color: #fff; }
.btn-buy:hover { background: var(--scarf-dark); color: #fff; }
.btn-primary { background: var(--fjord); color: #fff; }
.btn-primary:hover { background: var(--fjord-deep); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .85); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--fjord); }
.btn-ghost-dark { border-color: var(--fjord); color: var(--fjord); }
.btn-ghost-dark:hover { background: var(--fjord); color: #fff; }
.btn-light { background: #fff; color: var(--fjord); }
.btn-light:hover { background: var(--frost); color: var(--fjord); }

/* ---------- แบนเนอร์ / หัวเว็บ ---------- */
.banner { text-align: center; padding: 10px 16px; font-weight: 500; font-size: .95rem; color: #fff; background: var(--fjord); }
.banner a { color: inherit; text-underline-offset: 3px; }
.banner-promo { background: var(--scarf); }
.banner-alert { background: #B45309; }
.preview-bar { background: #FDE68A; color: #713F12; text-align: center; padding: 6px; font-size: .9rem; }
.preview-hidden { position: relative; outline: 3px dashed #F59E0B; outline-offset: -3px; opacity: .7; }
.preview-hidden > span { position: absolute; z-index: 5; top: 8px; left: 8px; background: #F59E0B; color: #fff; padding: 2px 10px; border-radius: 6px; font-size: .85rem; }

.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; align-items: center; gap: 14px; min-height: 68px; width: min(1340px, 100% - 32px); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--fjord); font: 600 1.15rem/1 var(--font-head); white-space: nowrap; flex: 0 0 auto; }
.brand img { border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: 14px; margin-left: auto; min-width: 0; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav > ul { align-items: center; }
.site-nav ul a { color: var(--text); text-decoration: none; font-weight: 500; font-size: .93rem; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--fjord); border-bottom-color: var(--glacier); }
.nav-group { position: relative; }
.nav-group summary { display: flex; align-items: center; gap: 9px; cursor: pointer; list-style: none; padding: 6px 0; border-bottom: 2px solid transparent; color: var(--text); font-size: .93rem; font-weight: 500; white-space: nowrap; }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-group summary::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.nav-group[open] summary::after { transform: rotate(225deg) translate(-2px, -1px); }
.nav-group.is-current summary, .nav-group summary:hover { color: var(--fjord); border-bottom-color: var(--glacier); }
.site-nav .nav-submenu { position: absolute; top: calc(100% + 10px); left: -16px; min-width: 230px; display: block; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(8, 47, 73, .12); }
.nav-group:not([open]) > .nav-submenu { display: none; }
.site-nav .nav-submenu a { display: block; padding: 12px; border: 0; border-radius: 7px; white-space: normal; }
.site-nav .nav-submenu a:hover, .site-nav .nav-submenu a[aria-current="page"] { background: var(--frost); }
.langs { display: flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; }
.langs a { text-decoration: none; color: var(--muted); font-size: .8rem; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.langs a[aria-current="true"] { background: var(--fjord); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.4rem; color: var(--fjord); padding: 8px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--fjord); }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(8, 47, 73, .25) 0%, rgba(8, 47, 73, .35) 45%, rgba(8, 47, 73, .88) 100%); }
.hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; padding-block: 120px 56px; }
.hero-copy { max-width: 680px; }
.hero h1 { color: #fff; text-wrap: balance; text-shadow: 0 2px 18px rgba(8, 47, 73, .45); }
.hero-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); max-width: 34em; opacity: .95; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* หิมะตกเฉพาะใน hero ; ปิดถ้าผู้ใช้ตั้งลด motion */
.snowfall { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.snowfall i { position: absolute; top: -12px; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .8; animation: snow 11s linear infinite; }
.snowfall i:nth-child(3n) { width: 4px; height: 4px; animation-duration: 14s; }
.snowfall i:nth-child(4n) { width: 8px; height: 8px; opacity: .6; animation-duration: 9s; }
.snowfall i:nth-child(1) { left: 4%; animation-delay: -2s; } .snowfall i:nth-child(2) { left: 10%; animation-delay: -7s; }
.snowfall i:nth-child(3) { left: 16%; animation-delay: -4s; } .snowfall i:nth-child(4) { left: 23%; animation-delay: -9s; }
.snowfall i:nth-child(5) { left: 29%; animation-delay: -1s; } .snowfall i:nth-child(6) { left: 35%; animation-delay: -6s; }
.snowfall i:nth-child(7) { left: 41%; animation-delay: -3s; } .snowfall i:nth-child(8) { left: 47%; animation-delay: -10s; }
.snowfall i:nth-child(9) { left: 53%; animation-delay: -5s; } .snowfall i:nth-child(10) { left: 59%; animation-delay: -8s; }
.snowfall i:nth-child(11) { left: 65%; animation-delay: -2.5s; } .snowfall i:nth-child(12) { left: 71%; animation-delay: -6.5s; }
.snowfall i:nth-child(13) { left: 77%; animation-delay: -1.5s; } .snowfall i:nth-child(14) { left: 83%; animation-delay: -9.5s; }
.snowfall i:nth-child(15) { left: 88%; animation-delay: -4.5s; } .snowfall i:nth-child(16) { left: 93%; animation-delay: -7.5s; }
.snowfall i:nth-child(17) { left: 97%; animation-delay: -3.5s; } .snowfall i:nth-child(18) { left: 50%; animation-delay: -11s; }
@keyframes snow { to { transform: translate3d(30px, 105vh, 0); } }
@media (prefers-reduced-motion: reduce) { .snowfall { display: none; } html { scroll-behavior: auto; } }

/* ---------- แถบข้อมูลย่อ ---------- */
.infobar { background: var(--fjord); color: #fff; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; }
.fact { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 22px 8px; }
.fact + .fact { border-left: 1px solid rgba(255, 255, 255, .18); padding-left: 28px; }
.fact .line-icon { grid-row: span 2; font-size: 1.6rem; color: var(--ice); }
.fact dt { font-size: .88rem; opacity: .8; }
.fact dd { margin: 0; font: 500 1.15rem/1.4 var(--font-head); }

/* ---------- ส่วนทั่วไป ---------- */
.sec { padding-block: clamp(56px, 8vw, 96px); }
.sec-soft { background: var(--frost); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head .lead { color: var(--muted); font-size: 1.08rem; }
.page-head { background: var(--frost); padding: 48px 0 32px; }
.page-head h1 { margin: 0; }
.prose { max-width: 70ch; }
.narrow .prose { margin-inline: auto; }
.empty { text-align: center; color: var(--muted); }

/* ---------- ราคาบัตร: การ์ดทรงตั๋ว ---------- */
.tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.ticket { --notch: 14px; display: grid; grid-template-columns: 1fr auto; background: #fff; border-radius: var(--radius); filter: drop-shadow(0 6px 18px rgba(12, 74, 110, .12));
    -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 150px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 150px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
            mask: radial-gradient(circle var(--notch) at calc(100% - 150px) 0, transparent 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at calc(100% - 150px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat; }
.ticket-main { padding: 24px 22px; display: flex; align-items: center; }
.ticket-main h3 { margin: 0; font-size: 1.08rem; color: var(--fjord); }
.ticket-stub { width: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 18px 10px; border-left: 2px dashed var(--line); text-align: center; }
.ticket-price { font: 600 2.4rem/1 var(--font-head); color: var(--scarf); }
.ticket-unit { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.price-notes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 28px 0 32px; align-items: start; }
.note { margin: 0; padding: 16px 20px; border-radius: 12px; }
.note ul { margin: 6px 0 0; padding-left: 1.3em; }
.note-ok { background: #ECFDF5; color: #065F46; }
.note-warn { background: #FFF7ED; color: #9A3412; }

/* ---------- กิจกรรม ---------- */
.feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat { padding: 28px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 22px rgba(12, 74, 110, .06); }
.feat h3 { margin: 18px 0 6px; }
.feat p { color: var(--muted); margin: 0; line-height: 1.7; }
.feat-icon { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--frost); color: var(--fjord); font-size: 1.5rem; }
.feat-icon .line-icon { width: 32px; height: 32px; }
.feat-img { margin: -12px -10px 0; }
.feat-img img { border-radius: 12px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.line-icon { display: block; width: 26px; height: 26px; flex-shrink: 0; }
.feats-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feats-audience .feat { display: flex; align-items: center; gap: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.feats-audience .feat { box-shadow: none; }
.feats-audience .feat-icon { display: grid; width: 52px; height: 52px; flex: 0 0 52px; }
.feats-audience .feat-icon .line-icon { width: 26px; height: 26px; }
.feats-audience h3 { margin: 0; font-size: 1.1rem; line-height: 1.55; }

/* ---------- CTA ---------- */
.cta { padding-block: 56px; }
.cta-primary { background: var(--glacier); color: #fff; }
.cta-dark { background: var(--fjord); color: #fff; }
.cta-light { background: var(--frost); }
.cta-primary h2, .cta-dark h2 { color: #fff; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-inner p { margin: 0; opacity: .92; max-width: 46em; }

/* ---------- รูป + ข้อความ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.img-right .split-media { order: 2; }
.split-media img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- แกลเลอรี ---------- */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.04); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(8, 47, 73, .88); }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; }
.lb-close { position: fixed; top: 14px; right: 18px; font-size: 2.2rem; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }

/* ---------- รีวิว ---------- */
.rating { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin: -16px 0 32px; color: var(--muted); }
.rating-num { font: 600 2.6rem/1 var(--font-head); color: var(--fjord); }
.stars { color: #F59E0B; letter-spacing: 2px; }
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-bottom: 28px; }
.review { margin: 0; background: #fff; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.review blockquote { margin: 10px 0 14px; flex: 1; }
.review figcaption { color: var(--muted); font-size: .92rem; }

/* ---------- การเดินทาง ---------- */
.travel { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: #fff; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.addr { font-weight: 500; }
.addr .line-icon { color: var(--scarf); margin-right: 4px; }
.route { display: flex; align-items: flex-start; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.route + .route { margin-top: 12px; }
.route-icon { display: grid; place-items: center; flex: 0 0 44px; width: 44px; height: 44px; background: var(--frost); color: var(--fjord); border-radius: 12px; }
.route-copy { min-width: 0; }
.route h3 { font-size: 1.05rem; margin-bottom: 4px; }
.route p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font: 500 1.08rem/1.5 var(--font-head); color: var(--fjord); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 12px; font-size: 1.6rem; color: var(--glacier); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq-a { padding: 0 0 16px; color: var(--muted); }

/* ---------- ข่าว ---------- */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.post { background: #fff; border-radius: var(--radius); overflow: hidden; }
.post-img img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.post-body { padding: 18px 20px 22px; }
.post-body time { color: var(--muted); font-size: .88rem; }
.post-body h3 a { color: var(--fjord); text-decoration: none; }
.post-title { margin-top: 12px; }
.post-cover img { border-radius: var(--radius); margin: 16px 0 28px; }

/* ---------- ฟอร์มติดต่อ ---------- */
.cform { display: grid; gap: 14px; }
.cform label { display: grid; gap: 4px; font-weight: 500; }
.cform input, .cform textarea { font: inherit; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--text); }
.cform .check { grid-template-columns: auto 1fr; align-items: start; font-weight: 400; }
.cform .check input { margin-top: 6px; }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp { position: absolute; left: -10000px; }

/* ---------- ส่วนท้าย ---------- */
.site-foot { background: var(--fjord-deep); color: #CFE3F0; padding: 56px 0 24px; margin-top: 0; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot h2 { color: #fff; font-size: 1.05rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font: 600 1.15rem/1 var(--font-head); color: #fff; }
.foot-brand img { border-radius: 50%; }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.socials { display: flex; gap: 14px; font-size: 1.4rem; margin-top: 14px; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 36px; padding-top: 18px; font-size: .85rem; opacity: .7; }
.mbar { display: none; }

/* ---------- จอเล็ก ---------- */
@media (max-width: 1200px) {
    .nav-toggle { display: block; }
    .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 12px 16px 20px; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(12, 74, 110, .12); }
    .site-nav.open { display: flex; }
    .site-nav { max-height: calc(100dvh - 130px); overflow-y: auto; }
    .site-nav ul { flex-direction: column; gap: 0; }
    .site-nav > ul { align-items: stretch; }
    .site-nav ul a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .nav-group summary { justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
    .site-nav .nav-submenu { position: static; min-width: 0; margin: 0 0 10px; padding: 4px 12px; border: 0; border-radius: 8px; background: var(--snow); box-shadow: none; }
    .langs { align-self: flex-start; margin-top: 12px; }
    .head-buy { order: 2; }
}
@media (max-width: 800px) {
    .hero-inner { flex-direction: column; align-items: flex-start; padding-block: 96px 40px; }
    .facts { grid-template-columns: 1fr; }
    .fact + .fact { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .18); padding-left: 8px; }
    .feats { grid-template-columns: 1fr 1fr; gap: 16px; }
    .feat { padding: 22px 20px; }
    .split, .travel, .foot-grid { grid-template-columns: 1fr; }
    .split.img-right .split-media { order: 0; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    body { padding-bottom: 64px; }
    .head-buy { display: none; }
    .brand span { font-size: 1rem; }
    .feats { grid-template-columns: 1fr; }
    .cgrid { grid-template-columns: 1fr; }
    .ticket { grid-template-columns: 1fr; -webkit-mask: none; mask: none; }
    .ticket-stub { width: auto; flex-direction: row; gap: 8px; border-left: 0; border-top: 2px dashed var(--line); justify-content: flex-start; padding: 14px 22px; }
    .cta-inner .btn { width: 100%; }
    .mbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(12, 74, 110, .12); }
    .mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; text-decoration: none; color: var(--fjord); font-size: .82rem; }
    .mbar a i { font-size: 1.2rem; }
    .mbar .mbar-buy { background: var(--scarf); color: #fff; }
}

.note .line-icon, .addr .line-icon { display: inline-block; width: 18px; height: 18px; vertical-align: -.2em; }
