:root {
  --blue: #2563eb; --blue-dark: #1d4ed8; --ink: #111827; --muted: #4b5563; --line: #e5e7eb;
  --bg: #f9fafb; --card: #fff; --ok: #047857; --plus: #1d4ed8; --gold: #92400e; --gold-bg: #fef3c7; --err: #b91c1c;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Thai", "Noto Sans", sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue-dark); }
h1 { font-size: clamp(1.7rem, 5vw, 2.4rem); line-height: 1.25; margin: .4em 0 .3em; }
h2 { font-size: 1.25rem; line-height: 1.3; margin: 0 0 .6em; }
h3 { font-size: 1.05rem; line-height: 1.35; margin: 0 0 .2em; color: var(--ink); }
.sb-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.sb-narrow { max-width: 720px; }
.sb-section { padding-top: 28px; padding-bottom: 40px; }
.sb-gap { margin-top: 1.6em; }
.sb-center { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.sb-sr, .sb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sb-skip { position: absolute; left: -9999px; background: #fff; padding: 8px 12px; z-index: 10; }
.sb-skip:focus { left: 8px; top: 8px; }
.sb-top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.sb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.sb-logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.sb-logo span { width: 34px; height: 34px; border-radius: 8px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.sb-top nav { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: .95rem; }
.sb-top nav a { color: var(--ink); text-decoration: none; padding: 6px 2px; }
.sb-top nav a:hover { color: var(--blue-dark); text-decoration: underline; }
.sb-top nav .sb-lang { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.sb-hero { background: linear-gradient(135deg, #0369a1, var(--blue-dark)); color: #fff; padding: 32px 0; }
.sb-hero h1 { margin-top: 0; }
.sb-search { display: flex; gap: 8px; max-width: 560px; margin-top: 12px; }
.sb-search input { flex: 1; min-width: 0; padding: 12px; border: 0; border-radius: 8px; font: inherit; color: var(--ink); }
.sb-hero .sb-btn { background: #fff; color: var(--blue-dark); }
.sb-btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 8px; padding: 12px 18px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; text-align: center; }
.sb-btn:hover { background: var(--blue-dark); color: #fff; }
.sb-hero .sb-btn:hover { background: #e0e7ff; color: var(--blue-dark); }
.sb-crumbs { font-size: .9rem; color: var(--muted); padding: 14px 0 0; overflow-wrap: anywhere; }
.sb-lead { color: var(--muted); font-size: 1.05rem; margin-top: 0; }
.sb-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sb-cat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.sb-cat:hover { border-color: var(--blue); }
.sb-cat span { color: var(--muted); font-size: .9rem; }
.sb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 16px 0 32px; }
.sb-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; text-decoration: none; color: var(--muted); display: flex; flex-direction: column; }
.sb-card:hover { border-color: var(--blue); }
.sb-card p { margin: 0 0 .4em; font-size: .93rem; }
.sb-card-body { padding: 12px 14px 14px; }
.sb-thumb { aspect-ratio: 16 / 10; background: #dbeafe; }
.sb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sb-tile { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 700; color: var(--blue-dark); }
.sb-loc { color: var(--ink); }
.sb-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: .4em 0; }
.sb-badge { font-size: .8rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.sb-badge-ok { background: #d1fae5; color: var(--ok); }
.sb-badge-plus { background: #dbeafe; color: var(--plus); }
.sb-badge-founding { background: var(--gold-bg); color: var(--gold); }
.sb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.sb-chips a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; text-decoration: none; color: var(--ink); font-size: .92rem; }
.sb-chips a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sb-listing { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 10px 0 30px; }
.sb-hero-img { width: 100%; max-height: 420px; object-fit: cover; border-radius: 10px; }
.sb-altname { color: var(--muted); margin: -.3em 0 .4em; }
.sb-desc { font-size: 1.05rem; overflow-wrap: anywhere; }
.sb-note { color: var(--muted); font-size: .9rem; }
.sb-muted { color: var(--muted); }
.sb-panel { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; }
.sb-side { display: flex; flex-direction: column; gap: 14px; }
.sb-contact { margin: 0; overflow-wrap: anywhere; }
.sb-contact dt { font-size: .85rem; color: var(--muted); margin-top: 10px; }
.sb-contact dt:first-child { margin-top: 0; }
.sb-contact dd { margin: 0; }
.sb-claim .sb-btn { width: 100%; }
.sb-claim p { margin-top: 0; color: var(--muted); }
.sb-related h2 { margin-top: 1em; }
.sb-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 16px 0; }
.sb-plan-main { border: 2px solid var(--blue); }
.sb-price { font-weight: 700; font-size: 1.1rem; margin: 0 0 .5em; }
.sb-places { background: var(--gold-bg); color: var(--gold); border-radius: 8px; padding: 8px 12px; margin: 0 0 .8em; }
.sb-ticks { list-style: none; margin: 0 0 .6em; padding: 0; }
.sb-ticks li { padding-left: 1.5em; position: relative; margin: .25em 0; }
.sb-ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.sb-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 40px; }
.sb-form label { display: block; font-weight: 600; font-size: .95rem; }
.sb-form input:not([type=radio]):not([type=checkbox]), .sb-form textarea, .sb-form select { display: block; width: 100%; margin-top: 4px; padding: 10px; font: inherit; font-weight: 400; border: 1px solid #9ca3af; border-radius: 8px; background: #fff; color: var(--ink); }
.sb-form fieldset { border: 0; padding: 0; margin: 0; }
.sb-form legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.sb-form .sb-radio, .sb-form .sb-check { font-weight: 400; padding: 4px 0; }
.sb-hint { display: block; font-weight: 400; color: var(--muted); font-size: .88rem; }
.sb-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.sb-error { background: #fee2e2; color: var(--err); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.sb-foot { border-top: 1px solid var(--line); background: #fff; padding: 22px 0; color: var(--muted); font-size: .92rem; margin-top: 20px; }
.sb-foot p { margin: .4em 0 0; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; }
@media (min-width: 640px) { .sb-two { grid-template-columns: 1fr 1fr; } .sb-plans { grid-template-columns: 1fr 1.2fr; } }
@media (min-width: 860px) { .sb-listing { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.sb-btn-alt { background: #fff; color: var(--blue-dark); border: 1px solid var(--blue); }
.sb-btn-alt:hover { background: #eff6ff; color: var(--blue-dark); }
.sb-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.sb-state { margin: .3em 0; font-weight: 600; }
.sb-open { color: var(--ok); }
.sb-shut { color: var(--err); }
.sb-notice { background: var(--gold-bg); color: #78350f; border-radius: 8px; padding: 10px 14px; overflow-wrap: anywhere; }
.sb-ok { background: #d1fae5; color: #065f46; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.sb-block { margin-top: 24px; }
.sb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.sb-gallery img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
.sb-menu { list-style: none; margin: 0; padding: 0; }
.sb-menu li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.sb-menu strong { white-space: nowrap; }
.sb-hours { width: 100%; border-collapse: collapse; }
.sb-hours th, .sb-hours td { text-align: left; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); font-weight: 400; }
.sb-today th, .sb-today td { font-weight: 700; }
.sb-map { width: 100%; height: 320px; border-radius: 10px; border: 1px solid var(--line); z-index: 0; }
.sb-map[hidden] { display: none; }
.sb-pay img { max-width: 280px; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.sb-ownerbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.sb-ownerbar form { margin: 0; }
.sb-now { margin: 12px 0; }
.sb-now h2, .sb-now p { margin-bottom: .3em; }
.sb-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.sb-tabs a { padding: 8px 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sb-tabs a[aria-current] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sb-day { border: 1px solid var(--line) !important; border-radius: 8px; padding: 10px 12px !important; }
.sb-day details { margin-top: 8px; font-size: .95rem; }
.sb-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 40px; }
.sb-photos figure { margin: 0; }
.sb-photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.sb-photos form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.sb-qr { max-width: 240px; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 8px; }
.sb-legal { padding-bottom: 40px; overflow-wrap: anywhere; }
.sb-legal h2 { margin-top: 1.4em; }
.sb-line { background: #06c755; }
.sb-line:hover { background: #05a647; }
.sb-hand { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); line-height: 1.15; }
.sb-hand span { font-size: 2.2rem; }
.sb-hand small { font-weight: 700; font-size: .78rem; }
.sb-hands { display: flex; gap: 16px; float: right; margin: 4px 0 8px 12px; }
.sb-wave { display: inline-block; transform-origin: 70% 70%; animation: sb-wave 1.6s ease-in-out 1; }
@keyframes sb-wave { 0%, 100% { transform: rotate(0); } 15%, 45% { transform: rotate(16deg); } 30%, 60% { transform: rotate(-8deg); } }
@media (prefers-reduced-motion: reduce) { .sb-wave { animation: none; } }
.sb-card { position: relative; }
.sb-card-hand { position: absolute; top: 8px; right: 8px; background: rgba(255,255,255,.95); border-radius: 10px; padding: 4px 8px; display: flex; flex-direction: column; align-items: center; font-size: .72rem; font-weight: 700; color: var(--ink); line-height: 1.1; }
.sb-card-hand span { font-size: 1.5rem; }
.sb-outbadge { color: var(--ok); font-weight: 700; }
.sb-auto { display: inline-block; font-size: .75rem; font-weight: 600; background: #e5e7eb; color: #374151; border-radius: 6px; padding: 1px 7px; vertical-align: middle; }
.sb-sig-list { list-style: none; margin: 8px 0; padding: 0; overflow-wrap: anywhere; }
.sb-sig-list li { padding: 7px 0; border-top: 1px solid var(--line); }
.sb-sig-list span { color: var(--muted); }
.sb-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-bottom: 30px; }
.sb-signal h2 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.sb-signal .sb-loc { margin: 2px 0 0; }
.sb-signal-top { display: flex; gap: 10px; align-items: center; }
.sb-big { font-size: 2.1rem; line-height: 1; }
.sb-signal-toggle { border: 1px solid var(--line) !important; border-radius: 8px; padding: 12px !important; }
.sb-signal-toggle .sb-check { font-weight: 700; }
.sb-match { border-top: 1px solid var(--line); padding: 10px 0; overflow-wrap: anywhere; }
.sb-joinbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin: 14px 0; }
.sb-joinbar p { margin: 0; font-weight: 600; }
/* .sb-switch-styles */
.sb-signal-toggle .sb-check { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; cursor: pointer; }
.sb-signal-toggle .sb-check input { appearance: none; -webkit-appearance: none; order: 2; flex: 0 0 auto; width: 52px; height: 30px; margin: 0; border-radius: 999px; background: #9ca3af; position: relative; cursor: pointer; transition: background .15s; }
.sb-signal-toggle .sb-check input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .15s; }
.sb-signal-toggle .sb-check input:checked { background: var(--ok); }
.sb-signal-toggle .sb-check input:checked::after { left: 25px; }
.sb-signal-toggle:has(.sb-check input:not(:checked)) > :not(.sb-check):not(legend) { display: none; }
.sb-signal-toggle:has(.sb-check input:checked) { border-color: var(--ok) !important; }
.sb-signal-toggle { display: flex; flex-direction: column; gap: 8px; }
.sb-signal-toggle .sb-note { margin: 0; }
.sb-savebar { position: sticky; bottom: 0; background: #fff; padding: 10px 0 4px; }
.sb-savebar .sb-btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .sb-signal-toggle .sb-check input, .sb-signal-toggle .sb-check input::after { transition: none; } }
.sb-joinbar .sb-btn { flex: none; }
.sb-ad-kind { position: absolute; top: 8px; left: 8px; border-radius: 6px; padding: 2px 9px; font-size: .78rem; font-weight: 700; z-index: 1; }
.sb-ad-kind.sb-inline { position: static; display: inline-block; }
.sb-kind-s { background: #065f46; color: #fff; }
.sb-kind-w { background: #92400e; color: #fff; }
.sb-ad-price { color: var(--ink); font-weight: 700; font-size: 1.02rem; margin: 0 0 .25em; }
.sb-ad-price-big { font-size: 1.5rem; margin-top: -.2em; }
.sb-ad-img { margin-bottom: 10px; }
.sb-kindline { margin: 0; }
.sb-filter { margin: 14px 0 12px; padding: 14px; gap: 10px; }
.sb-myad { margin-bottom: 10px; }
.sb-myad h3 { margin: 0; overflow-wrap: anywhere; }
.sb-myad .sb-btn { padding: 8px 12px; font-size: .9rem; }
/* .sb-mobile-head */
.sb-top nav a { white-space: nowrap; }
@media (max-width: 640px) {
  .sb-top { position: static; }
  .sb-bar { padding-top: 6px; padding-bottom: 6px; row-gap: 2px; }
  .sb-top nav { gap: 2px 12px; font-size: .92rem; }
}
/* .sb-mobile-head2 */
@media (max-width: 640px) {
  .sb-logo { font-size: 1.05rem; }
  .sb-logo span { width: 28px; height: 28px; }
  .sb-top nav { gap: 2px 10px; font-size: .88rem; }
  .sb-top nav a { padding: 4px 0; }
  .sb-top nav .sb-lang { padding: 2px 8px; }
}
.sb-matches { margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.sb-matches summary { cursor: pointer; font-weight: 600; font-size: .92rem; padding: 2px 0; }
.sb-matches .sb-match .sb-btn { padding: 7px 11px; font-size: .88rem; }
.sb-ad-kind .sb-wave { font-size: 1rem; line-height: 1; }
