/* ============================================================
   Siam Companion — โครงแบบ B (Bento Soft) + สติกเกอร์แบบ A
   ============================================================ */
:root {
  --cream: #F6F1E8;
  --sand: #ECE3D3;
  --white: #FFFFFF;
  --navy: #1E3350;
  --navy-2: #15243A;
  --gold: #B8923F;
  --gold-2: #E7C77A;
  --lime: #D9FF3D;
  --pink: #FF5FA8;
  --ink: #1C1A17;
  --muted: #5B554B;

  --radius: 24px;
  --shadow-soft: 0 8px 24px rgba(30, 51, 80, 0.08);
  --shadow-lift: 0 16px 40px rgba(30, 51, 80, 0.14);
  --shadow-hard: 4px 4px 0 var(--navy);

  --font-body: 'Anuphan', 'Leelawadee UI', 'Tahoma', sans-serif;
  --font-display: 'Trirong', 'Angsana New', 'Tahoma', serif;
  --font-sticker: 'Unbounded', 'Arial Black', sans-serif;

  --container: 1120px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.2; font-weight: 700; }
h2 { font-size: 28px; font-weight: 600; }
h3 { font-size: 19px; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 44px 8px; }
.section__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 18px; }
.section__sub { flex-basis: 100%; color: var(--muted); font-size: 14px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--lg { min-height: 54px; padding: 0 24px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 13px; }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--navy-2); box-shadow: var(--shadow-soft); }
.btn--white { background: var(--white); color: var(--navy); }
.btn--white:hover { box-shadow: var(--shadow-soft); }
.btn--ghost { background: transparent; color: var(--navy); border-color: rgba(30, 51, 80, 0.25); }
.btn--ghost:hover { background: rgba(30, 51, 80, 0.05); }

/* ---------- stickers (จากแบบ A) ---------- */
.sticker {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--lime); color: var(--navy);
  border: 3px solid var(--navy); border-radius: 999px; box-shadow: var(--shadow-hard);
  padding: 8px 14px; font-weight: 600; font-size: 14px; line-height: 1.2; white-space: nowrap;
  transform: rotate(var(--r, 0deg));
}
.sticker--white { background: var(--white); }
.sticker--gold { background: var(--gold-2); }
.sticker--tag { font-size: 12px; padding: 5px 11px; border-width: 2px; box-shadow: 3px 3px 0 var(--navy); }
.sticker--round {
  width: 96px; height: 96px; padding: 0; border-radius: 50%; flex-direction: column;
  font-family: var(--font-sticker); font-weight: 900; font-size: 22px; line-height: 1;
}
.sticker--round small { font-family: var(--font-body); font-weight: 600; font-size: 12px; margin-top: 4px; }
.wiggle { animation: wiggle 3s ease-in-out infinite; }
@keyframes wiggle { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(4deg); } }

.tag-gold { color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: .04em; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow__line { width: 22px; height: 1px; background: var(--gold); }
.note { color: var(--muted); font-size: 12px; line-height: 1.5; }

/* ---------- cards ---------- */
.card { background: var(--white); border-radius: var(--radius); padding: 20px 18px; box-shadow: var(--shadow-soft); }
.card--sand { background: var(--sand); box-shadow: none; }
.card__title { font-size: 20px; margin-bottom: 12px; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 1100; padding: 10px 16px 0; pointer-events: none; }
.nav__inner {
  pointer-events: auto; max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 999px; padding: 8px 8px 8px 10px; box-shadow: var(--shadow-soft);
}
.nav__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; }
.nav__brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: var(--cream); }
.nav__right { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 38px; padding: 0 10px; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); font-weight: 700; font-size: 12px; letter-spacing: .04em; text-decoration: none; }
.lang:hover { background: var(--lime); }
.nav__links { display: none; gap: 4px; }
.nav__links a { text-decoration: none; font-weight: 500; font-size: 14px; color: var(--muted); padding: 8px 12px; border-radius: 999px; }
.nav__links a:hover { background: var(--cream); color: var(--navy); }

/* ---------- hero ---------- */
.hero { padding-top: 26px; display: grid; gap: 26px; }
.hero__text { display: flex; flex-direction: column; gap: 14px; }
.hero__title { font-size: clamp(26px, 9.2vw, 36px); letter-spacing: -.01em; }
.hero__italic { font-family: 'Trirong', Georgia, serif; font-style: italic; font-size: 20px; color: var(--navy); line-height: 1.2; }
.lead { font-size: 15px; color: var(--muted); max-width: 46ch; }
.hero__cta { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }

.hero__media { position: relative; padding: 14px 6px 18px; }
.photo-tilt {
  position: relative; height: 300px; border-radius: 26px; overflow: hidden;
  border: 3px solid var(--navy); box-shadow: 7px 7px 0 var(--navy); transform: rotate(-2deg); background: var(--navy);
}
.photo-tilt img { width: 100%; height: 100%; object-fit: cover; }
.price-chip {
  position: absolute; left: 14px; bottom: 14px; display: flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.9); border-radius: 999px; padding: 8px 14px 8px 10px; font-size: 13px; font-weight: 500;
}
.price-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.hero__badge { position: absolute; top: -8px; right: 0; }
.hero__badge2 { position: absolute; bottom: 0; right: 18px; font-size: 13px; }

/* ---------- marquee ---------- */
.marquee-wrap { overflow: hidden; margin-top: 30px; padding-block: 12px; }
.marquee {
  background: var(--navy); color: var(--lime); overflow: hidden; padding: 12px 0;
  transform: rotate(-1.5deg); margin-inline: -12px; border-block: 3px solid var(--navy);
}
.marquee__track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee__group {
  display: flex; align-items: center; gap: 22px; padding-right: 22px;
  font-family: var(--font-sticker); font-weight: 700; font-size: 12px; letter-spacing: .04em; white-space: nowrap;
}
.star { width: 12px; height: 12px; background: var(--gold-2); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .wiggle { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.bento__t1 {
  grid-column: 1; grid-row: 1 / 3; background: var(--navy); color: var(--white); border-radius: var(--radius);
  padding: 20px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 250px;
}
.bento__t1 h3 { font-size: 22px; margin-bottom: 6px; }
.bento__t1 p { font-size: 13px; color: rgba(255, 255, 255, 0.78); }
.icon-box { width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, 0.12); display: grid; place-items: center; color: var(--gold-2); }
.bento__t2 { grid-column: 2; grid-row: 1; background: var(--sand); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 8px; color: var(--navy); }
.bento__t2 h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; color: var(--ink); }
.bento__t2 p { font-size: 12px; color: var(--muted); }
.bento__t3 { grid-column: 2; grid-row: 2; position: relative; border-radius: var(--radius); overflow: hidden; min-height: 120px; background: var(--navy); }
.bento__t3 img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento__t3::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(30, 51, 80, 0) 30%, rgba(30, 51, 80, 0.85) 100%); }
.bento__t3-text { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; color: var(--white); font-weight: 600; font-size: 14px; line-height: 1.3; }
.bento__t4 { grid-column: 1 / 3; grid-row: 3; background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 12px; }
.bento__t4-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.bento__t4-head h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.mini-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; font-size: 13px; }
.mini-list li { display: flex; align-items: flex-start; gap: 8px; line-height: 1.4; }
.mini-list svg { flex-shrink: 0; color: var(--gold); margin-top: 1px; }

/* ---------- places ---------- */
.places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.place {
  background: none; border: 0; padding: 0; text-align: left; display: flex; flex-direction: column; gap: 8px;
  border-radius: 20px; transition: transform .2s ease;
}
.place:hover { transform: translateY(-3px); }
.place:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.place__img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-soft); background: var(--sand); }
.place__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.place:hover .place__img img { transform: scale(1.05); }
.place__day {
  position: absolute; top: 8px; left: 8px; background: var(--white); color: var(--navy);
  border: 2px solid var(--navy); border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; box-shadow: 2px 2px 0 var(--navy);
  transform: rotate(-3deg);
}
.place__name { font-weight: 600; font-size: 14px; line-height: 1.3; padding-inline: 4px; }

/* ---------- plan ---------- */
.tabs { display: flex; gap: 10px; margin-bottom: 16px; }
.tab {
  flex: 1; min-height: 44px; border-radius: 999px; border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  font-weight: 600; font-size: 14px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.tab.is-on { background: var(--lime); box-shadow: 3px 3px 0 var(--navy); transform: translate(-1px, -1px); }
.days { display: grid; gap: 14px; }
.day[hidden] { display: none; }
.day { background: var(--white); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 14px; }
.day__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.day__head h3 { font-size: 21px; }
.day__head p { font-size: 13px; color: var(--muted); }
.day__photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.day__photos img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; border-radius: 12px; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.timeline em { font-style: normal; color: var(--muted); font-size: 12px; }
.time {
  flex-shrink: 0; margin-top: 1px; font-family: var(--font-sticker); font-weight: 700; font-size: 10px; letter-spacing: .02em;
  background: var(--sand); color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: 3px 8px;
}
.timeline .is-hl { font-weight: 600; }
.timeline .is-hl .time { background: var(--lime); box-shadow: 2px 2px 0 var(--navy); }

/* ---------- price ---------- */
.price { display: grid; gap: 14px; }
.price__calc { display: flex; flex-direction: column; gap: 16px; }
.seg { display: flex; background: var(--sand); border-radius: 999px; padding: 4px; gap: 4px; }
.seg__btn { flex: 1; min-height: 40px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 500; font-size: 13px; transition: background .15s ease, color .15s ease; }
.seg__btn.is-on { background: var(--white); color: var(--ink); font-weight: 600; box-shadow: 0 2px 6px rgba(30, 51, 80, 0.08); }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.size {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: 10px 6px;
  border: 2px solid var(--sand); border-radius: 18px; background: var(--white); color: var(--ink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.size b { font-size: 13px; }
.size span { font-size: 12px; color: var(--muted); }
.size.is-on { background: var(--lime); border-color: var(--navy); box-shadow: 3px 3px 0 var(--navy); transform: translate(-1px, -1px); }
.size.is-on span { color: var(--navy); font-weight: 600; }
.price__big { display: flex; align-items: baseline; gap: 8px; }
.price__big span { font-family: var(--font-display); font-weight: 700; font-size: 48px; line-height: 1; color: var(--navy); }
.price__big small { font-size: 14px; color: var(--muted); }
.price__meta { font-size: 13px; color: var(--muted); }
.price__addons[hidden] { display: none; }
.price__addons { background: var(--cream); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.price__addons-label { font-size: 12px; color: var(--gold); font-weight: 600; letter-spacing: .04em; }
.price__addons ul { display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.price__addons li { display: flex; justify-content: space-between; gap: 10px; }
.price__addons li b { color: var(--navy); }
.price__actions { display: flex; flex-direction: column; gap: 10px; }
.price__lists { display: grid; gap: 14px; }
.checks, .dashes { display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.45; }
.checks li, .dashes li { display: flex; align-items: flex-start; gap: 8px; }
.checks li::before {
  content: ""; flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--lime); border: 2px solid var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3350' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}
.dashes li::before { content: ""; flex-shrink: 0; width: 14px; height: 2px; margin-top: 10px; background: var(--gold); border-radius: 2px; }

/* ---------- add-ons ---------- */
.addons { overflow: hidden; }
.addons__track { display: flex; gap: 14px; overflow-x: auto; padding-block: 8px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.addons__track::-webkit-scrollbar { display: none; }
.addon {
  position: relative; flex-shrink: 0; width: 168px; scroll-snap-align: start; text-align: left;
  background: var(--white); border: 3px solid var(--navy); border-radius: 18px; box-shadow: var(--shadow-hard);
  padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 8px; transform: rotate(var(--r, 0deg));
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.addon:hover { transform: rotate(var(--r, 0deg)) translateY(-3px); }
.addon__price { font-family: var(--font-sticker); font-weight: 900; font-size: 18px; color: var(--navy); }
.addon__name { font-weight: 600; font-size: 14px; line-height: 1.3; }
.addon__check {
  position: absolute; top: 10px; right: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--navy); background: var(--white); color: var(--navy); opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease;
}
.addon[aria-pressed="true"] { background: var(--lime); }
.addon[aria-pressed="true"] .addon__check { opacity: 1; transform: scale(1); }

/* ---------- contact / footer ---------- */
.contact { margin-top: 40px; background: var(--sand); padding-block: 40px 44px; }
.contact__inner { display: grid; gap: 22px; }
.contact__text { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.contact__text p { color: var(--muted); font-size: 14px; max-width: 46ch; }
.contact__actions { display: flex; flex-direction: column; gap: 10px; }
.footer { background: var(--navy); color: rgba(255, 255, 255, 0.8); padding-block: 22px 96px; font-size: 12px; line-height: 1.6; }
.footer__inner { display: flex; align-items: center; gap: 12px; }
.footer img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.footer b { color: var(--white); font-size: 13px; }
.credits { margin-top: 14px; font-size: 11px; color: rgba(255, 255, 255, 0.55); }
.credits summary { cursor: pointer; color: rgba(255, 255, 255, 0.7); }
.credits p { margin: 8px 0 6px; }
.credits ul { display: flex; flex-direction: column; gap: 3px; }
.credits a { color: rgba(255, 255, 255, 0.75); }

/* ---------- sticky mobile bar ---------- */
.stickybar {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 1050;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 2px solid var(--navy); border-radius: 999px; padding: 8px 8px 8px 16px; box-shadow: 4px 4px 0 var(--navy);
  transform: translateY(0); transition: transform .25s ease, opacity .25s ease;
}
.stickybar[hidden] { display: flex; transform: translateY(120%); opacity: 0; pointer-events: none; }
.stickybar__price { font-size: 13px; }
.stickybar__price b { font-family: var(--font-display); font-size: 18px; color: var(--navy); }

/* ---------- sheet (รายละเอียดที่เที่ยว) ---------- */
.sheet { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.sheet[hidden] { display: none; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(21, 36, 58, 0.55); animation: fade .2s ease; }
.sheet__panel {
  position: relative; width: 100%; max-width: 520px; max-height: 88vh; overflow: auto;
  background: var(--white); border-radius: 26px 26px 0 0; animation: slideup .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet__close {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  border: 2px solid var(--navy); background: var(--white); color: var(--navy); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--navy);
}
.sheet__img { width: 100%; height: 240px; object-fit: cover; background: var(--sand); }
.sheet__body { padding: 18px 20px 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.sheet__body h3 { font-size: 24px; }
.sheet__body p { color: var(--muted); font-size: 15px; }
@keyframes fade { from { opacity: 0; } }
@keyframes slideup { from { transform: translateY(40px); opacity: 0; } }

.toast {
  position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); z-index: 1300;
  background: var(--navy); color: var(--white); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lift);
}
.toast[hidden] { display: none; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

@media (max-width: 359px) {
  .nav__brand span { display: none; }
  .container { padding-inline: 16px; }
}

/* ---------- map ---------- */
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.map-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 2px solid var(--navy); background: var(--white); color: var(--navy); font-weight: 600; font-size: 12px; opacity: .45;
  transition: opacity .15s ease, box-shadow .15s ease, transform .15s ease;
}
.map-chip::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--navy); background: var(--white); }
.map-chip--d1::before { background: var(--navy); }
.map-chip--d2::before { background: var(--gold-2); }
.map-chip--d3::before { background: var(--pink); }
.map-chip--hotel::before { background: var(--lime); border-radius: 3px; }
.map-chip.is-on, .map-chip--hotel { opacity: 1; }
.map-chip.is-on { box-shadow: 3px 3px 0 var(--navy); transform: translate(-1px, -1px); }
.map-box { position: relative; z-index: 0; isolation: isolate; border: 3px solid var(--navy); border-radius: 24px; box-shadow: 6px 6px 0 var(--navy); overflow: hidden; background: var(--sand); }   /* isolate: กัน z-index ของ Leaflet (400–1000) ทะลุไปทับแถบเมนู */
#map-canvas { height: 380px; width: 100%; }
.leaflet-container { font-family: var(--font-body); }
.pin {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--navy); background: var(--white); color: var(--navy);
  font-family: var(--font-sticker); font-weight: 700; font-size: 11px; line-height: 24px; text-align: center; box-shadow: 2px 2px 0 var(--navy);
}
.pin--d1 { background: var(--navy); color: var(--white); }
.pin--d2 { background: var(--gold-2); }
.pin--d3 { background: var(--pink); color: var(--white); }
.pin--hotel { background: var(--lime); border-radius: 8px; display: grid; place-items: center; }
@media (max-width: 639px) { .pin { width: 24px; height: 24px; line-height: 20px; font-size: 10px; } }
.leaflet-popup-content-wrapper { border-radius: 14px; border: 2px solid var(--navy); box-shadow: 3px 3px 0 var(--navy); }
.leaflet-popup-content { margin: 10px 14px; font-size: 13px; line-height: 1.4; }
.leaflet-popup-content b { display: block; font-size: 14px; }
.leaflet-popup-tip { border: 2px solid var(--navy); }

/* ---------- booking form ---------- */
.book { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 13px; color: var(--navy); }
.field legend { margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 2px solid var(--sand); background: var(--white);
  font: inherit; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--navy); box-shadow: 3px 3px 0 var(--lime); }
.field--2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.field--2 > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bk-addons { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-addons label {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--white); font-size: 13px; font-weight: 500; cursor: pointer; user-select: none; transition: background .15s ease, box-shadow .15s ease;
}
.bk-addons input { appearance: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--navy); margin: 0; flex-shrink: 0; }
.bk-addons input:checked { background: var(--navy); box-shadow: inset 0 0 0 3px var(--lime); }
.bk-addons label:has(input:checked) { background: var(--lime); box-shadow: 2px 2px 0 var(--navy); }
.bk-addons b { font-family: var(--font-sticker); font-weight: 700; font-size: 11px; }
.book__total { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--cream); border-radius: 16px; padding: 14px 16px; }
.book__total span { font-size: 13px; font-weight: 600; display: block; }
.book__total small { font-size: 12px; color: var(--muted); }
.book__total b { font-family: var(--font-display); font-size: 26px; color: var(--navy); white-space: nowrap; }
.book__err { color: #B4321F; font-size: 13px; font-weight: 500; }
.book__err[hidden] { display: none; }
.book__done { align-items: flex-start; }
.book__done[hidden] { display: none; }
.book__summary { margin: 0; width: 100%; white-space: pre-wrap; font: inherit; font-size: 14px; line-height: 1.6; background: var(--cream); border-radius: 16px; padding: 14px 16px; }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq__item { background: var(--white); border-radius: 18px; box-shadow: var(--shadow-soft); padding: 0 18px; }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 56px; padding: 12px 0; font-weight: 600; font-size: 15px; color: var(--navy);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--navy); background: var(--lime);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E3350' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-size: 14px; background-repeat: no-repeat; background-position: center; transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.footer__by { display: inline-block; margin-top: 4px; color: rgba(255, 255, 255, 0.6); }

/* ---------- policy (เงื่อนไขการจอง/ยกเลิก) ---------- */
.policy { display: grid; gap: 14px; }
.refund { display: flex; flex-direction: column; gap: 10px; }
.refund__row {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "when pct" "note note"; gap: 4px 12px; align-items: center;
  padding: 12px 14px; border-radius: 16px; background: var(--cream); border: 2px solid transparent;
}
.refund__row--full { background: var(--lime); border-color: var(--navy); box-shadow: 3px 3px 0 var(--navy); }
.refund__row--none { background: var(--sand); }
.refund__when { grid-area: when; font-weight: 600; font-size: 14px; }
.refund__pct { grid-area: pct; font-family: var(--font-sticker); font-weight: 900; font-size: 18px; color: var(--navy); white-space: nowrap; }
.refund__row--none .refund__pct { font-family: var(--font-body); font-weight: 700; font-size: 14px; }
.refund__note { grid-area: note; font-size: 12px; color: var(--muted); line-height: 1.45; }
.policy__refund .note { margin-top: 12px; }
.policy__extra { display: grid; gap: 12px; }
.policy__extra .card { display: flex; flex-direction: column; gap: 8px; }
.policy__extra h3 { font-family: var(--font-body); font-size: 15px; font-weight: 600; }
.policy__extra p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.policy__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--cream); color: var(--gold); display: grid; place-items: center; }

/* ============================================================
   ≥ 640px
   ============================================================ */
@media (min-width: 640px) {
  .hero__cta { flex-direction: row; }
  .places { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .price__actions { flex-direction: row; }
  .contact__actions { flex-direction: row; }
  .addons__track { flex-wrap: wrap; overflow: visible; }
  .addon { width: calc((100% - 28px) / 3); }
}

/* ============================================================
   ≥ 960px (จอคอม)
   ============================================================ */
@media (min-width: 960px) {
  body { font-size: 16px; }
  h2 { font-size: 34px; }
  .section { padding-block: 64px 12px; }
  .section__head { margin-bottom: 26px; }
  .nav__links { display: flex; }

  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; gap: 48px; padding-top: 48px; min-height: 560px; }
  .hero__title { font-size: 56px; }
  .hero__italic { font-size: 24px; }
  .lead { font-size: 17px; }
  .hero__media { padding: 24px 16px 28px 8px; }
  .photo-tilt { height: 400px; }
  .hero__badge { top: 0; right: 4px; width: 112px; height: 112px; font-size: 26px; }
  .hero__badge2 { right: 24px; bottom: 6px; font-size: 14px; }

  .marquee-wrap { margin-top: 34px; }
  .marquee__group { font-size: 13px; gap: 28px; padding-right: 28px; }

  .bento { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(150px, auto); }
  .bento__t1 { grid-column: 1; grid-row: 1 / 3; min-height: 0; padding: 24px 22px; }
  .bento__t1 h3 { font-size: 26px; }
  .bento__t1 p { font-size: 14px; }
  .bento__t2 { grid-column: 2; grid-row: 1; padding: 22px 20px; }
  .bento__t2 p { font-size: 13px; }
  .bento__t3 { grid-column: 2; grid-row: 2; }
  .bento__t4 { grid-column: 3 / 5; grid-row: 1 / 3; padding: 24px 22px; justify-content: center; }
  .mini-list { font-size: 14px; gap: 14px 18px; }

  .places { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 16px; }
  .place__name { font-size: 15px; }

  .tabs { display: none; }
  .days { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .day { padding: 22px 20px; }
  .day[hidden] { display: flex; }

  .price { grid-template-columns: 1.1fr 1fr; align-items: start; gap: 18px; }
  .price__calc { padding: 26px 24px; position: sticky; top: calc(var(--nav-h) + 16px); }
  .price__big span { font-size: 60px; }
  .price__lists { gap: 18px; }

  .addons__track { gap: 18px; padding-block: 12px 16px; }
  .addon { width: calc((100% - 36px) / 3); padding: 18px 18px 20px; }

  #map-canvas { height: 500px; }
  .book { padding: 26px 24px; }
  .faq__item summary { font-size: 16px; }
  .faq { max-width: 820px; }
  .policy { grid-template-columns: 1.15fr 1fr; align-items: start; gap: 18px; }
  .refund__row { grid-template-columns: 1fr auto; grid-template-areas: "when pct" "note pct"; }
  .refund__pct { font-size: 22px; }
  .contact { margin-top: 56px; padding-block: 56px 60px; }
  .contact__inner { grid-template-columns: 1.2fr 1fr; align-items: center; }
  .contact__actions { flex-direction: column; align-items: stretch; }
  .footer { padding-block: 26px; }
  .stickybar { display: none; }
  .sheet { align-items: center; padding: 20px; }
  .sheet__panel { border-radius: 26px; max-height: 84vh; }
  .sheet__img { height: 280px; }
}
