/* ==========================================================================
   HUAHINHUB+ — Home hero/Quick Planner additions + Smart Trip Planner
   ========================================================================== */

/* ---------- Home: hero CTAs, demo tags, why-us ---------- */
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.05rem; }
.btn-ghost { background: rgba(255, 255, 255, .88); border: 2px solid var(--navy); color: var(--navy); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.demo-tag { display: inline-block; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: #fff4e5; color: #a65a00; font-size: .72rem; font-weight: 600; vertical-align: middle; white-space: nowrap; }
.demo-note { margin-top: 18px; font-size: .8rem; color: #92a7c9; max-width: none !important; }
.sub-h { font-size: 1.15rem; font-weight: 600; margin: 34px 0 14px; }
.why { background: #fff; border-radius: var(--r-md); padding: 26px 24px; border: 1px solid rgba(11, 42, 91, .06); box-shadow: var(--shadow-sm); }
.why-ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--turquoise-soft); color: var(--turquoise); margin-bottom: 14px; }
.why-ico .ico { width: 26px; height: 26px; }
.why h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.why p { color: var(--navy-soft); font-size: .95rem; }
.cats-sec { padding-top: clamp(36px, 5vw, 56px); }

/* ---------- Quick Planner ---------- */
.qp { grid-template-columns: 1.25fr 1fr 1fr 1.2fr auto; }
.pop-qstyle { width: 460px; max-width: 92vw; }
.pop-qstyle .chips { gap: 8px; max-height: 280px; overflow-y: auto; }
.pop-qbudget { width: 320px; }
.pop-qtrav { width: 330px; }
.pop-qdates { width: 320px; }
.pop-qbudget .brange { display: flex; }
.pop-qbudget .brange input { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; }
.pop-qbudget .brange input:focus { border-color: var(--blue); outline: 0; }
.pop-qbudget .seg { grid-template-columns: repeat(3, 1fr); }
.qp .sfield:nth-child(n+2) .pop { left: 0; right: auto; }
.qp .sfield:nth-child(n+3) .pop { left: auto; right: 0; }
@media (max-width: 1180px) { .qp { grid-template-columns: 1fr 1fr; } .qp .sfield:nth-child(odd) .pop { left: 0; right: auto; } .qp .sfield:nth-child(even) .pop { left: auto; right: 0; } }
@media (max-width: 760px) {
  .qp { grid-template-columns: 1fr; }
  .qp .sfield .pop { left: 0 !important; right: 0 !important; }
  .hero-cta .btn { flex: 1 1 100%; min-height: 48px; }
  .pop-qstyle .chips { max-height: none; }
}

/* ---------- Partner map (home) ---------- */
.pmap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.pmap-map { min-height: 400px; border-radius: var(--r-md); overflow: hidden; background: var(--sky); border: 1px solid var(--line); position: relative; }
.pmap-list { display: grid; gap: 12px; align-content: start; max-height: 400px; overflow-y: auto; padding-right: 4px; }
.map-load, .map-fail { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 10px; color: var(--navy-soft); padding: 16px; }
.map-fail .btn { justify-self: center; }
@media (max-width: 900px) { .pmap { grid-template-columns: 1fr; } .pmap-map { min-height: 300px; } .pmap-list { max-height: none; } }

/* ==========================================================================
   Smart Trip Planner (overlay เต็มจอ)
   ========================================================================== */
.pl-root { position: fixed; inset: 0; z-index: 300; background: linear-gradient(180deg, var(--sky), #fff 40%); opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .25s, transform .3s, visibility .25s; }
.pl-root.open { opacity: 1; visibility: visible; transform: none; }
.pl-shell { display: flex; flex-direction: column; height: 100%; height: 100dvh; }
.pl-top { flex: none; background: #fff; border-bottom: 1px solid var(--line); }
.pl-top-in { max-width: 1240px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.pl-brand { display: flex; align-items: center; gap: 12px; flex: none; }
.pl-brand b { font-size: 1.05rem; }
.pl-brand small { display: block; font-size: .76rem; color: #a65a00; font-weight: 500; }
.pl-steps { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.pl-steps::-webkit-scrollbar { display: none; }
.pl-steps li { display: flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 500; color: var(--navy-soft); padding: 4px 12px 4px 5px; border-radius: 999px; white-space: nowrap; }
.pl-steps li button { display: flex; align-items: center; gap: 8px; color: inherit; font: inherit; }
.pl-steps li i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: .78rem; background: var(--sky); color: var(--navy-soft); flex: none; }
.pl-steps li i .ico { width: 14px; height: 14px; stroke-width: 3; }
.pl-steps li.on { background: var(--navy); color: #fff; }
.pl-steps li.on i { background: #fff; color: var(--navy); }
.pl-steps li.done { color: var(--navy); }
.pl-steps li.done i { background: var(--turquoise); color: #fff; }
.pl-steps li.done button:hover { text-decoration: underline; }
.pl-main { flex: 1; overflow-y: auto; padding: 28px 20px 36px; -webkit-overflow-scrolling: touch; outline: 0; }
.pl-wrap { max-width: 1240px; margin: 0 auto; }
.pl-two { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
.pl-side { position: sticky; top: 0; }
.pl-head { margin-bottom: 22px; }
.pl-kick { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--turquoise-soft); color: #0c7f8b; font-size: .78rem; font-weight: 700; margin-bottom: 8px; letter-spacing: .02em; }
.pl-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.25; font-weight: 700; }
.pl-head p { margin-top: 6px; color: var(--navy-soft); max-width: 640px; }
.pl-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pl-foot { flex: none; background: #fff; border-top: 1px solid var(--line); padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: flex-end; gap: 12px; box-shadow: 0 -6px 20px rgba(11, 42, 91, .06); }
.pl-err { margin-right: auto; color: var(--coral-600); font-weight: 500; font-size: .9rem; }
.pl-err:empty { display: none; }
.pl-foot .btn[aria-disabled="true"] { opacity: .55; }
.pl-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: var(--turquoise-soft); color: var(--navy); margin-bottom: 16px; font-size: .92rem; }
.pl-banner .ico { color: #0c7f8b; flex: none; width: 22px; height: 22px; }
.pl-banner > div { flex: 1; }
.pl-banner.warn { background: #fff4e5; } .pl-banner.warn .ico { color: #a65a00; }
.pl-banner.bad { background: #ffe9e4; } .pl-banner.bad .ico { color: var(--coral-600); }

/* ขั้น 1 */
.pl-styles { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.pl-style { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 96px; padding: 16px 10px; border-radius: var(--r-md); background: #fff; border: 1.5px solid var(--line); font-weight: 600; text-align: center; transition: .18s; }
.pl-style .ico { width: 26px; height: 26px; color: var(--turquoise); transition: .18s; }
.pl-style:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.pl-style[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(21, 88, 232, .28); }
.pl-style[aria-pressed="true"] .ico { color: #fff; }
.pl-style .rk { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--blue); font-style: normal; font-weight: 700; font-size: .78rem; display: grid; place-items: center; }
.pl-style .rk .ico { width: 13px; height: 13px; color: var(--blue); stroke-width: 3; }
.pl-picked { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.pl-picked ol { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.pl-picked li { display: flex; align-items: center; gap: 10px; padding: 6px 4px; border-bottom: 1px dashed var(--line); }
.pl-picked li:last-child { border: 0; }
.pl-picked .n { width: 26px; height: 26px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.pl-picked em { font-style: normal; font-size: .76rem; color: #0c7f8b; background: var(--turquoise-soft); padding: 2px 8px; border-radius: 999px; }
.pl-picked .mv { margin-left: auto; display: flex; gap: 4px; }
.pl-picked .mv button { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--navy-soft); }
.pl-picked .mv button:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.pl-picked .mv button:disabled { opacity: .3; cursor: not-allowed; }

/* ฟอร์ม (ขั้น 2/3/6) */
.pl-card { background: #fff; border-radius: var(--r-md); padding: 20px 22px; margin-bottom: 16px; border: 1px solid rgba(11, 42, 91, .06); box-shadow: var(--shadow-sm); }
.pl-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 14px; }
.pl-f { margin-bottom: 16px; }
.pl-f:last-child { margin-bottom: 0; }
.fl-l { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; }
.pl-card select, .pl-card input[type="number"], .pl-card input[type="date"], .pl-card input:not([type]), .pl-card input[type="tel"], .pl-card input[type="text"] { width: 100%; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.pl-card select:focus, .pl-card input:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 4px rgba(21, 88, 232, .12); }
.pl-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.pl-seg button { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .92rem; transition: .15s; }
.pl-seg button:hover:not(:disabled) { border-color: var(--blue); }
.pl-seg button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pl-seg button:disabled { cursor: not-allowed; }
.pl-seg button.on:disabled { opacity: .85; }
.pl-seg button:disabled:not(.on) { opacity: .4; }
.pl-fe { color: var(--coral-600); font-size: .84rem; margin-top: 6px; font-weight: 500; }
.pl-fe[hidden] { display: none; }
.pl-ages { display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 0 4px; }
.pl-age { display: grid; gap: 4px; font-size: .8rem; color: var(--navy-soft); font-weight: 600; }
.pl-age select { min-width: 96px; }
.pl-hint { font-size: .82rem; color: var(--navy-soft); margin-top: 10px; }
.pl-warn { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; background: #fff4e5; border-radius: 12px; font-size: .84rem; color: #7a4300; }
.pl-warn .ico { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.pl-sum { background: #fff; border-radius: var(--r-md); padding: 20px 22px; border: 1px solid rgba(11, 42, 91, .06); box-shadow: var(--shadow-md); }
.pl-sum.sticky { position: sticky; top: 0; }
.pl-sum h3 { font-size: 1rem; font-weight: 700; margin-bottom: 12px; }
.pl-sum .big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.pl-sum .r, .r2 { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.pl-sum .r:last-of-type, .r2:last-of-type { border-bottom: 0; }
.pl-sum .r span, .r2 span { color: var(--navy-soft); }
.pl-sum .r b, .r2 b { text-align: right; }
.pos { color: #0c8a4a; } .neg { color: var(--coral-600); }
.bar { height: 8px; border-radius: 999px; background: var(--sky); overflow: hidden; margin: 8px 0 12px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--turquoise), var(--blue)); border-radius: 999px; transition: width .4s; }
.bar.over i { background: var(--coral); }
.al { display: grid; grid-template-columns: 1fr 70px auto; align-items: center; gap: 10px; padding: 7px 0; font-size: .9rem; }
.al span { display: flex; align-items: center; gap: 8px; }
.al .ico { width: 18px; height: 18px; color: var(--turquoise); }
.al .bar { margin: 0; }
.pl-cat { display: grid; grid-template-columns: minmax(150px, 1fr) auto minmax(110px, 140px); gap: 14px; align-items: center; background: #fff; border-radius: var(--r-md); padding: 14px 18px; margin-bottom: 10px; border: 1px solid rgba(11, 42, 91, .06); box-shadow: var(--shadow-sm); }
.pl-cat.off { opacity: .6; }
.pl-cat .cn { display: flex; gap: 12px; align-items: center; }
.pl-cat .cn > .ico { width: 26px; height: 26px; color: var(--turquoise); flex: none; }
.pl-cat .cn small { display: block; color: var(--navy-soft); font-size: .78rem; font-weight: 400; }
.pl-cat .cap { display: grid; gap: 3px; font-size: .74rem; color: var(--navy-soft); font-weight: 600; }
.pl-cat .cap input { min-height: 40px; padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 10px; width: 100%; }
.pl-cat .pl-seg button { min-height: 38px; padding: 0 13px; font-size: .84rem; }

/* ขั้น 4: แผน */
.pl-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; align-items: stretch; }
.pl-plan { position: relative; display: flex; flex-direction: column; gap: 10px; background: #fff; border-radius: var(--r-lg); padding: 26px 22px 22px; border: 1.5px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s; }
.pl-plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pl-plan.rec { border-color: var(--coral); box-shadow: 0 14px 34px rgba(255, 107, 74, .18); }
.pl-badge { position: absolute; top: -13px; left: 20px; display: inline-flex; align-items: center; gap: 6px; background: var(--coral); color: #fff; padding: 4px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.pl-badge .ico { width: 14px; height: 14px; }
.pl-plan h3 { font-size: 1.25rem; font-weight: 700; }
.pl-plan .d { color: var(--navy-soft); font-size: .9rem; min-height: 2.8em; }
.pl-plan .pr b { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.pl-plan .pr small { color: var(--navy-soft); margin-left: 6px; }
.pl-plan .mt { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: .88rem; color: var(--navy-soft); }
.pl-plan .mt b { color: var(--navy); }
.pl-plan .inc { list-style: none; margin: 0; padding: 12px 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; font-size: .9rem; flex: 1; }
.pl-plan .inc li { display: flex; align-items: center; gap: 9px; }
.pl-plan .inc .ico { width: 17px; height: 17px; color: var(--turquoise); flex: none; }
.pl-plan .trv { display: flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--navy-soft); }
.pl-plan .trv .ico { width: 16px; height: 16px; color: var(--turquoise); }
.pl-plan .nt { margin: 0; padding-left: 18px; font-size: .8rem; color: #a65a00; }
.pl-plan.sk i { display: block; height: 18px; border-radius: 8px; background: linear-gradient(90deg, #eef3f8, #dfe9f3, #eef3f8); background-size: 200% 100%; animation: plsk 1.2s infinite linear; margin-bottom: 12px; }
.pl-plan.sk i:nth-child(1) { width: 55%; height: 26px; } .pl-plan.sk i:nth-child(3) { height: 90px; }
@keyframes plsk { to { background-position: -200% 0; } }
.pl-loading { text-align: center; color: var(--navy-soft); margin-top: 18px; }
.pl-tablewrap { overflow-x: auto; margin-top: 26px; background: #fff; border-radius: var(--r-md); border: 1px solid var(--line); }
.pl-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 560px; }
.pl-table th, .pl-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.pl-table thead th { background: var(--sky); font-weight: 700; }
.pl-table tbody th { font-weight: 600; color: var(--navy-soft); width: 28%; }
.pl-table td small { display: block; color: var(--navy-soft); font-size: .78rem; margin-top: 2px; }
.pl-table .amt { text-align: right; font-weight: 700; white-space: nowrap; }
.pl-table .amt.big { font-size: 1.3rem; }
.pl-table tr.grp th { background: var(--sky); color: var(--navy); width: auto; }
.pl-table tr.grp .ico { vertical-align: -4px; margin-right: 8px; color: var(--turquoise); }
.pl-table tfoot th, .pl-table tfoot td { border-bottom: 0; font-weight: 700; }
.pl-empty { text-align: center; max-width: 640px; margin: 20px auto; background: #fff; border-radius: var(--r-lg); padding: 34px 26px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.pl-empty .ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: var(--turquoise-soft); color: var(--turquoise); display: grid; place-items: center; }
.pl-empty .ic .ico { width: 30px; height: 30px; }
.pl-empty h3 { font-size: 1.3rem; margin-bottom: 8px; }
.pl-empty p { color: var(--navy-soft); }
.pl-opts { text-align: left; margin: 16px auto; padding-left: 20px; max-width: 460px; display: grid; gap: 6px; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 18px; }

/* ขั้น 5: ตารางทริป */
.pl-itin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; }
.pl-days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.pl-days button { flex: none; display: grid; text-align: left; padding: 8px 16px; border-radius: 14px; background: #fff; border: 1.5px solid var(--line); min-height: 52px; transition: .15s; }
.pl-days button small { color: var(--navy-soft); font-size: .76rem; }
.pl-days button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pl-days button.on small { color: #cdd9ee; }
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pl-item { display: grid; grid-template-columns: 34px 96px minmax(0, 1fr) auto; grid-template-areas: "no tm bd pr" ". . ac ac"; gap: 8px 12px; align-items: start; background: #fff; border-radius: var(--r-md); padding: 14px; border: 1.5px solid rgba(11, 42, 91, .07); box-shadow: var(--shadow-sm); }
.pl-item.locked { border-color: var(--turquoise); background: #f4fcfd; }
.pl-item.bad { border-color: var(--coral); background: #fff6f4; }
.pl-item .no { grid-area: no; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.pl-item .no .ico { width: 17px; height: 17px; }
.pl-item .tm { grid-area: tm; display: grid; gap: 2px; }
.pl-item .tm small { color: var(--navy-soft); font-size: .78rem; }
.pl-item .tm-sel, .pl-item .day-sel { min-height: 40px; padding: 4px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; width: 100%; }
.pl-item .bd { grid-area: bd; display: flex; gap: 12px; min-width: 0; }
.pl-item .bd img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex: none; }
.pl-item .bd b { display: block; line-height: 1.3; }
.pl-item .meta { display: block; font-size: .8rem; color: var(--navy-soft); }
.pl-item .bd small { display: block; font-size: .78rem; color: var(--navy-soft); margin-top: 2px; }
.pl-item .pr { grid-area: pr; text-align: right; font-weight: 700; white-space: nowrap; }
.pl-item .ac { grid-area: ac; display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.pl-item .ac button { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--navy-soft); transition: .15s; }
.pl-item .ac button:hover { border-color: var(--blue); color: var(--blue); }
.pl-item .ac .lk[aria-pressed="true"] { background: var(--turquoise); border-color: var(--turquoise); color: #fff; }
.pl-item .ac .day-sel { width: auto; min-width: 92px; }
.st { display: inline-block; margin-top: 5px; padding: 2px 10px; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.st-est { background: #fff4e5; color: #a65a00; }
.st-partner { background: #fde8ff; color: #8a1a9c; }
.st-conf { background: #e2f8ec; color: #0c7a43; }
.st-exp { background: #eee; color: #666; }
.cf { display: inline-flex; align-items: center; gap: 5px; margin: 5px 0 0 6px; padding: 2px 10px; border-radius: 999px; background: #ffe0d9; color: #b3341a; font-size: .74rem; font-weight: 600; }
.cf .ico { width: 13px; height: 13px; }
.pl-travel, .pl-sub { display: flex; align-items: center; gap: 8px; padding: 2px 14px; font-size: .84rem; color: var(--navy-soft); }
.pl-travel { margin-left: 18px; border-left: 2px dashed var(--turquoise); padding-left: 16px; }
.pl-travel .ico, .pl-sub .ico { width: 16px; height: 16px; color: var(--turquoise); }
.pl-sub { background: var(--sky); border-radius: 12px; padding: 10px 14px; }
.pl-adds { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.pl-adds > span { font-weight: 600; font-size: .9rem; margin-right: 4px; }
.pl-mapbox { margin-top: 16px; }
.pl-map { position: relative; height: 340px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: var(--sky); z-index: 0; }
.pl-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; font-size: .85rem; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(11, 42, 91, .35); }
.pl-pin.stay span { background: var(--coral); }

/* Picker */
.pl-modal { position: absolute; inset: 0; z-index: 10; background: rgba(11, 42, 91, .5); display: none; place-items: center; padding: 16px; }
.pl-modal.open { display: grid; }
.pl-modal-card { width: min(100%, 640px); max-height: calc(100dvh - 40px); display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.pl-modal-card .mh { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.pl-modal-card .mh h3 { font-size: 1.15rem; }
.pl-modal-card .mh small { color: var(--navy-soft); }
.pk-list { list-style: none; margin: 0; padding: 12px; overflow-y: auto; display: grid; gap: 10px; }
.pk { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px; border: 1.5px solid var(--line); border-radius: 14px; }
.pk.dis { opacity: .7; }
.pk img { width: 62px; height: 62px; border-radius: 10px; object-fit: cover; }
.pk .i b { display: block; line-height: 1.3; font-size: .95rem; }
.pk .i small { display: block; color: var(--navy-soft); font-size: .78rem; }
.pk .p { text-align: right; font-weight: 700; }
.pk .p small { display: block; font-size: .78rem; font-weight: 600; }
.pk-empty { text-align: center; color: var(--navy-soft); padding: 28px 10px; }

/* ขั้น 6/7 */
.pl-terms { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 6px; font-size: .9rem; cursor: pointer; }
.pl-terms input { width: 22px !important; min-height: 22px !important; flex: none; margin-top: 3px; accent-color: var(--blue); }
.pl-terms.err span { color: var(--coral-600); }
.terr { display: none; color: var(--coral-600); font-size: .84rem; margin-bottom: 6px; }
.pl-card .acts { justify-content: flex-start; }
.pl-success { max-width: 640px; text-align: center; }
.pl-success .check { width: 84px; height: 84px; margin: 6px auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--turquoise-soft); color: var(--turquoise); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1); }
.pl-success .check .ico { width: 42px; height: 42px; stroke-width: 3; }
.pl-success h2 { font-size: 1.8rem; margin-bottom: 6px; }
.pl-success > p { color: var(--navy-soft); }
.pl-success .pl-sum { margin: 18px 0; text-align: left; }
.pl-next { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; }
.pl-next ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--navy-soft); }
.pl-success .link-btn { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .pl-two, .pl-itin-grid { grid-template-columns: 1fr; }
  .pl-side { position: static; order: -1; }
  .pl-sum.sticky { position: static; }
  .pl-itin .pl-side { order: 2; }
}
@media (max-width: 760px) {
  .pl-top-in { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .pl-brand small { display: none; }
  .pl-steps { width: 100%; }
  .pl-steps li:not(.on) span { display: none; }
  .pl-steps li:not(.on) { padding-right: 5px; }
  .pl-main { padding: 20px 14px 28px; }
  .pl-foot { padding-inline: 12px; flex-wrap: wrap; }
  .pl-foot .btn { flex: 1 1 auto; min-height: 48px; }
  .pl-err { flex: 1 1 100%; }
  .pl-styles { grid-template-columns: repeat(2, 1fr); }
  .pl-cat { grid-template-columns: 1fr; gap: 10px; }
  .pl-cat .pl-seg { width: 100%; } .pl-cat .pl-seg button { flex: 1; }
  .pl-item { grid-template-columns: 34px 1fr auto; grid-template-areas: "no tm pr" "bd bd bd" "ac ac ac"; }
  .pl-item .ac { justify-content: flex-start; }
  .pl-item .ac button { width: 44px; height: 44px; }
  .pl-seg button, .stepper button { min-height: 44px; }
  .pk { grid-template-columns: 52px 1fr; } .pk img { width: 52px; height: 52px; } .pk .p { text-align: left; } .pk .btn { grid-column: 1 / -1; min-height: 44px; }
  .pl-modal { place-items: end center; padding: 0; }
  .pl-modal-card { border-radius: 24px 24px 0 0; max-height: 88dvh; width: 100%; }
  .pl-map { height: 260px; }
}
