a.fc { text-decoration: none; color: inherit; }
.nav .mega > a { display: inline-flex; align-items: center; gap: 4px; font-size: 15.5px; line-height: 22px; font-weight: 500; padding: 10px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; }
.nav .mega > a:hover, .nav .mega > a.on { background: var(--sky-50); color: var(--blue-700); }
.nav .mega > a.on { color: var(--red); background: var(--pink-50); }
.mega .mega-panel { display: none; }
@media (min-width: 981px) {
  .mega:hover .mega-panel, .mega:focus-within .mega-panel, .mega.open .mega-panel { display: grid; }
  /* invisible bridge over the 14px gap so the mouse can travel from "บริการ" to the panel */
  .mega-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .mega.open > a { background: var(--sky-50); color: var(--blue-700); }
}
.rich { display: grid; gap: 22px; }
.rich .prose, .legal-copy .prose { display: grid; gap: 12px; max-width: 78ch; }
.rich h2, .legal-copy h2 { font-size: 32px; line-height: 1.3; margin-top: 8px; }
.rich h3, .legal-copy h3 { font-size: 22px; }
.rich p, .legal-copy p, .rich li { color: var(--ink-2); font-size: 17px; }
.rich ul, .legal-copy ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.rich a { font-weight: 600; }
textarea.input { min-height: 140px; resize: vertical; }
a.ccard { text-decoration: none; color: inherit; }
a.ccard:hover { border-color: var(--blue); }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .reviews { grid-template-columns: 1fr; } }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.share span { color: var(--ink-3); font-size: 14px; }
.share a, .share button, .linkish { font: inherit; font-family: var(--f-head); background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; color: var(--ink); text-decoration: none; cursor: pointer; }
.share a:hover, .share button:hover, .linkish:hover { border-color: var(--red); color: var(--red); }
.linkish { padding: 0; border: 0; background: transparent; color: var(--ink-3); }
.price-cat { margin: 36px 0 14px; font-size: 28px; }
.price-table { display: grid; gap: 12px; }
.price-table article { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.price-table article span, .price-table article em { grid-column: 1 / -1; color: var(--ink-3); font-style: normal; font-size: 14px; }
.price-table strong { font-family: var(--f-head); color: var(--red); font-size: 20px; }
.fine { color: var(--ink-3); font-size: 14px; }
.note.ok { background: var(--mint-50); color: var(--mint-700); padding: 12px 16px; border-radius: 12px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.map { border-radius: 20px; overflow: hidden; min-height: 280px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 320px; border: 0; }
.caption-box { display: grid; gap: 10px; padding: 20px; border-radius: 18px; background: var(--sky-50); }
.caption-box p { white-space: pre-wrap; }
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }
.pager a, .pager span { min-width: 42px; min-height: 42px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; }
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .off { color: var(--ink-3); }
.cookie-backdrop { position: fixed; inset: 0; background: rgba(18, 22, 38, .45); z-index: 80; }
.cookie-modal { position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(640px, calc(100% - 28px)); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 18px; padding: 28px 28px 22px; box-shadow: var(--shadow-lg); }
.cookie-modal h2 { font-size: 28px; margin-bottom: 12px; }
.cookie-modal p { color: var(--ink-2); margin-bottom: 12px; }
.cookie-x { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: #eef1f6; font-size: 22px; cursor: pointer; }
.cookie-list { display: grid; gap: 10px; margin: 18px 0; }
.cookie-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #eef3f8; border-radius: 14px; padding: 14px 16px; }
.cookie-row b { display: block; }
.cookie-row span { display: block; color: var(--ink-3); font-size: 13px; }
.switch { position: relative; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c5cad6; border-radius: 999px; cursor: pointer; }
.switch span::after { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: #243044; }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:disabled + span { opacity: .7; cursor: not-allowed; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.cookie-modal[hidden], .cookie-backdrop[hidden] { display: none !important; }
@media (max-width: 640px) { .cookie-actions .btn { flex: 1 1 100%; } }

/* keep desktop nav labels on one line (match ex/ design) */
.nav > a, .nav .mega > a { white-space: nowrap; }

/* base reset from ex/ (was in the example's first <style>, missing from site.css) */
body { margin: 0; padding: 0; }
[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Mobile menu CTA card (buttons were being overridden by `.mobile-menu a`) */
.mobile-menu .mm-cta { margin-top: 18px; padding: 18px; border-radius: var(--r-lg); background-color: var(--sky-50); background-image: linear-gradient(90deg, rgba(47,128,237,.07) 50%, transparent 50%), linear-gradient(rgba(47,128,237,.07) 50%, transparent 50%); background-size: 24px 24px; border: 1px solid var(--sky-100); display: grid; gap: 4px; text-align: center; }
.mobile-menu .mm-cta > b { font-family: var(--f-head); font-size: 17px; font-weight: 600; color: var(--ink); }
.mobile-menu .mm-cta > span { font-size: 14px; color: var(--ink-2); margin-bottom: 10px; }
.mobile-menu .mm-cta a.btn { justify-content: center; gap: 8px; padding: 0 20px; min-height: 50px; border-bottom: 1.5px solid transparent; font-family: var(--f-head); font-size: 16px; }
.mobile-menu .mm-cta a.btn-primary { color: #fff; border: 0; }
.mobile-menu .mm-cta a.btn-secondary { background: #fff; color: var(--ink); border: 1.5px solid var(--line-2); }
.mobile-menu .mm-cta a.btn-secondary:hover { border-color: var(--red); color: var(--red); }
.mobile-menu .mm-cta-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }

/* Article gallery (multiple images per post) */
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.post-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }

/* Cookie button: settings open only when the visitor clicks it */
.cookie-fab { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--amber-700); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.cookie-fab .ico { width: 22px; height: 22px; }
.cookie-fab:hover { transform: translateY(-2px) rotate(-12deg); box-shadow: var(--shadow-lg); color: var(--red); }
@media (max-width: 980px) { body.show-float .cookie-fab { bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 40px; height: 40px; } }
