
  :root {
    --bg: #060e0b;
    --bg-2: #09130f;
    --panel: #0e1b15;
    --line: rgba(255, 255, 255, .10);
    --cream: #f5f5f2;
    --muted: #aab3ad;
    --btn: #1f6f4a;
    --btn-hover: #268558;
    --gold: #6fbf95;
    --gold-2: #8fd6b0;
    --danger: #c96a5a;
    --ok: #7fc08f;
    --radius: 14px;
  }
  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--cream);
    font-family: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  a { color: inherit; text-decoration: none; }
  h1, h2, h3 { font-family: "Prompt", "IBM Plex Sans Thai", system-ui, sans-serif; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
  h1 { font-size: clamp(36px, 5.4vw, 66px); font-weight: 700; line-height: 1.3; }
  h2 { font-size: clamp(26px, 3vw, 40px); }
  h3 { font-size: 22px; }
  p { color: var(--muted); }
  .wrap { width: 100%; max-width: none; margin: 0 auto; padding: 0 80px; }
  @media (max-width: 800px) { .wrap { padding: 0 24px; } }

  /* Top nav */
  .topbar { position: sticky; top: 0; z-index: 20; background: rgba(6, 14, 11, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
  .topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
  .logo { display: inline-flex; align-items: center; gap: 10px; font-family: "Prompt", system-ui, sans-serif; font-size: 22px; font-weight: 700; color: var(--cream); }
  .logo img { width: 52px; height: auto; display: block; }
  .logo .accent { color: var(--gold-2); }
  .nav { display: flex; align-items: center; gap: 36px; font-size: 16px; font-weight: 500; }
  .nav a { position: relative; color: var(--cream); opacity: .8; padding: 6px 0; transition: .2s; }
  .nav a:hover, .nav a[aria-current="page"] { opacity: 1; }
  .nav a:not(.nav-cta):hover { color: var(--gold-2); }
  .nav a[aria-current="page"]:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--gold-2); }
  .nav .nav-cta { opacity: 1; background: var(--btn); color: #fff; padding: 10px 24px; border-radius: 999px; font-weight: 600; }
  .nav .nav-cta:hover { background: var(--btn-hover); }
  .nav .nav-cta[aria-current="page"] { box-shadow: 0 0 0 2px var(--gold-2); }

  .notice { display: inline-flex; align-items: center; gap: 8px; background: rgba(111, 191, 149, .10); border: 1px solid rgba(111, 191, 149, .30); color: var(--gold-2); padding: 8px 14px; border-radius: 999px; font-size: 13px; margin-bottom: 28px; }
  .notice .ico { width: 16px; height: 16px; }
  .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
  .icon-tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(111, 191, 149, .12); color: var(--gold-2); flex: none; }
  .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--cream); background: rgba(255, 255, 255, .03); }
  .chip .dot { margin-right: 0; }

  main { flex: 1; }
  .page { display: block; animation: fade .35s ease; }
  
  @keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

  .eyebrow { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--gold); margin-bottom: 20px; display: block; }
  .btn { display: inline-block; background: var(--btn); color: #fff; padding: 17px 30px; border-radius: 8px; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; transition: .2s; font-family: inherit; }
  .btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
  .btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--line); }
  .btn.ghost:hover { border-color: var(--gold); color: var(--gold-2); background: transparent; }
  .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
  .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; }
  @media (max-width: 800px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } .nav { gap: 24px; } }

  /* Hero */
  .hero { position: relative; min-height: max(640px, calc(100vh - 76px)); display: flex; align-items: center; background: #050d0a; overflow: hidden; }
  .hero::before { content: ""; position: absolute; inset: 0; background: url("/Assets/hero-snooker.jpg") center/cover no-repeat; }
  .hero::after { content: ""; position: absolute; inset: 0; background:
      linear-gradient(90deg, rgba(5,12,9,.94) 0%, rgba(5,12,9,.72) 32%, rgba(5,12,9,.25) 65%, rgba(5,12,9,.10) 100%),
      linear-gradient(180deg, rgba(5,12,9,.55) 0%, rgba(5,12,9,0) 30%, rgba(5,12,9,0) 75%, rgba(5,12,9,.65) 100%); }
  .hero .wrap { position: relative; z-index: 1; }
  .hero h1 { max-width: 620px; margin-bottom: 28px; }
  .hero p { max-width: 580px; font-size: 20px; line-height: 1.7; margin-bottom: 36px; color: #b6beb9; }

  section.block { padding: 80px 0; }
  .section-head { max-width: 640px; margin-bottom: 40px; }
  .section-head h2 { margin-bottom: 14px; }
  .cta { text-align: center; padding: 90px 0; border-top: 1px solid var(--line); background: var(--bg-2); }
  .cta h2 { margin-bottom: 26px; }
  .page-head { padding: 64px 0 32px; }
  .page-head h1 { margin-bottom: 14px; }
  .page-head p { font-size: 18px; max-width: 560px; }

  /* Forms */
  label { display: block; font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
  input, select { width: 100%; background: var(--bg); color: var(--cream); border: 1px solid var(--line); border-radius: 10px; padding: 13px 14px; font-size: 15px; font-family: inherit; }
  input:focus, select:focus { outline: none; border-color: var(--gold); }
  .field { margin-bottom: 20px; }
  .fine { font-size: 13px; color: var(--muted); margin-top: 10px; }
  .tabs { display: flex; gap: 8px; margin-bottom: 24px; background: var(--bg); padding: 5px; border-radius: 10px; border: 1px solid var(--line); }
  .tabs button { flex: 1; background: transparent; border: 0; color: var(--muted); padding: 10px; border-radius: 8px; cursor: pointer; font-family: inherit; font-size: 14px; }
  .tabs button.active { background: var(--btn); color: #fff; font-weight: 600; }

  /* Booking summary */
  .summary dl { margin: 18px 0; }
  .summary dt { font-size: 13px; font-weight: 600; color: var(--gold); margin-top: 14px; }
  .summary dd { color: var(--cream); }
  .summary .price { font-family: "Prompt", system-ui, sans-serif; font-size: 32px; color: var(--gold-2); margin-bottom: 4px; }
  .confirm { display: none; margin-top: 16px; padding: 14px; border-radius: 10px; background: rgba(127,192,143,.12); border: 1px solid rgba(127,192,143,.4); color: var(--ok); font-size: 14px; }

  /* Lists / stats */
  .stat { text-align: left; }
  .stat .num { font-family: "Prompt", system-ui, sans-serif; font-size: 34px; color: var(--gold-2); line-height: 1.1; margin-bottom: 6px; }
  .stat .label { font-weight: 500; color: var(--cream); }
  .stat p { font-size: 14px; margin-top: 4px; }
  .group-title { margin: 44px 0 16px; }
  .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 12px; flex-wrap: wrap; }
  .row h2 { font-size: 24px; margin-bottom: 4px; }
  .row p { font-size: 14px; }
  .badge { font-size: 12px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }
  .badge.upcoming { color: #e0b84a; border-color: rgba(224,184,74,.5); }
  .badge.completed { color: var(--ok); border-color: rgba(127,192,143,.45); }
  .badge.cancelled { color: var(--danger); border-color: rgba(201,106,90,.5); }
  .profile-list { list-style: none; margin-top: 18px; }
  .profile-list li { padding: 11px 0; border-bottom: 1px solid var(--line); color: var(--cream); font-size: 15px; }
  .profile-list li:last-child { border-bottom: 0; }
  .profile-list span { color: var(--muted); }
  .avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--btn); color: #fff; display: grid; place-items: center; font-family: "Prompt", system-ui, sans-serif; font-size: 28px; font-weight: 600; margin-bottom: 14px; }

  /* Owner tables */
  .tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
  @media (max-width: 800px) { .tables { grid-template-columns: 1fr 1fr; } }
  .table-tile { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
  .table-tile h3 { margin-bottom: 6px; }
  .table-tile .st { font-size: 14px; }
  .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 8px; }
  .dot.avail { background: var(--ok); } .dot.use { background: #e0b84a; } .dot.maint { background: var(--danger); }

  /* Footer */
  .site-footer { background: #0b1611; border-top: 4px solid var(--btn); }
  .footer-main { display: grid; grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); gap: 40px; padding-top: 72px; padding-bottom: 64px; }
  .footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
  .footer-badge { width: 168px; height: 168px; border-radius: 50%; background: var(--btn); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; box-shadow: 0 14px 34px rgba(0, 0, 0, .35); transition: transform .25s; }
  .footer-badge:hover { transform: rotate(-6deg) scale(1.03); }
  .footer-badge img { width: 96px; height: auto; }
  .footer-badge > span { font-family: "Prompt", system-ui, sans-serif; font-weight: 700; font-size: 20px; color: #fff; }
  .footer-badge .accent { color: #DDF7E9; }
  .footer-phone { font-family: "Prompt", system-ui, sans-serif; font-size: 30px; font-weight: 700; color: var(--cream); letter-spacing: .01em; transition: color .2s; }
  .footer-phone:hover { color: var(--gold-2); }
  .socials { list-style: none; display: flex; gap: 10px; }
  .socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: var(--gold-2); background: rgba(111, 191, 149, .10); transition: background .2s, color .2s, transform .2s; }
  .socials a:hover { background: var(--btn); color: #fff; transform: translateY(-2px); }
  .socials svg { width: 20px; height: 20px; }
  .footer-col { display: flex; flex-direction: column; gap: 14px; }
  .footer-col h2 { font-size: 20px; font-weight: 700; color: var(--cream); margin-bottom: 8px; }
  .footer-col a { color: var(--muted); font-size: 16px; width: fit-content; transition: color .2s; }
  .footer-col a:hover { color: var(--gold-2); }
  .footer-contact p { display: flex; flex-direction: column; font-size: 15px; color: var(--cream); line-height: 1.5; }
  .footer-contact p span { font-size: 13px; color: var(--gold); font-weight: 600; }
  .footer-contact p a { color: var(--cream); font-size: 15px; }
  .footer-bottom { position: relative; background: #08110d; border-top: 1px solid var(--line); }
  .footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding-top: 22px; padding-bottom: 22px; padding-right: 260px; font-size: 13px; color: var(--muted); }
  .footer-cta { position: absolute; right: 0; bottom: 100%; transform: translateY(50%); background: var(--btn); color: #fff; font-family: "Prompt", system-ui, sans-serif; font-weight: 700; font-size: 22px; padding: 18px 44px 18px 40px; border-radius: 999px 0 0 999px; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); transition: background .2s, padding .2s; }
  .footer-cta:hover { background: var(--btn-hover); padding-right: 56px; }
  @media (max-width: 1100px) {
    .footer-main { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .footer-brand { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 20px 32px; }
    .footer-badge { width: 120px; height: 120px; }
    .footer-badge img { width: 70px; }
    .footer-badge > span { font-size: 15px; }
  }
  @media (max-width: 640px) {
    .footer-main { grid-template-columns: 1fr 1fr; gap: 32px 20px; padding-top: 56px; }
    .footer-contact { grid-column: 1 / -1; }
    .footer-phone { font-size: 24px; }
    .footer-bottom .wrap { padding-right: 24px; flex-direction: column; }
    .footer-cta { position: static; display: block; transform: none; text-align: center; border-radius: 0; font-size: 18px; padding: 14px; }
    .footer-cta:hover { padding-right: 14px; }
  }

/* Standalone multi-page build */
.page { display: block; }
.topbar .logo { white-space: nowrap; }
@media (max-width: 520px) {
  .topbar .wrap { height: 64px; }
  .logo { font-size: 19px; }
  .hero { min-height: 560px; }
  .hero p { font-size: 16px; }
  .btn { padding: 14px 20px; }
  .tables { grid-template-columns: 1fr; }
}

/* Accessibility */
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (max-width: 520px) {
  .logo img { width: 42px; }
}

/* Hamburger menu */
.topbar .wrap { justify-content: flex-start; gap: 32px; }
.topbar .logo { margin-right: auto; }
.menu { position: relative; display: none; }
.menu-btn { width: 42px; height: 42px; display: grid; place-content: center; gap: 5px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .2s, background .2s; }
.menu-btn:hover { border-color: var(--gold); }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--cream); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] { background: var(--btn); border-color: var(--btn); }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; padding: 14px 10px; gap: 4px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); display: flex; flex-direction: column; animation: menu-in .15s ease-out; }
.menu-panel[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.menu-panel a { padding: 11px 14px; border-radius: 8px; font-size: 15px; color: var(--cream); transition: background .15s; }
.menu-panel a:hover { background: rgba(111, 191, 149, .10); color: var(--gold-2); }
.menu-panel a[aria-current="page"] { color: var(--gold-2); background: rgba(111, 191, 149, .10); font-weight: 600; }
.menu-panel hr { border: 0; border-top: 1px solid var(--line); margin: 6px 6px; }
.menu-panel .menu-login { color: var(--gold-2); }
/* Hamburger only when the links no longer fit in the bar */
@media (max-width: 980px) {
  .topbar .nav { display: none; }
  .menu { display: block; }
}

/* Signed-in header state */
.nav .nav-cta.is-member { display: inline-flex; align-items: center; gap: 8px; }
.nav .nav-cta.is-member::before { content: ""; width: 18px; height: 18px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center/contain no-repeat; }
.menu-panel button.menu-login { text-align: left; background: none; border: 0; font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 8px; color: var(--gold-2); cursor: pointer; }
.menu-panel button.menu-login:hover { background: rgba(111, 191, 149, .10); }

/* ===== Shops (หาร้านใกล้คุณ) ===== */
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip .ico { width: 14px; height: 14px; color: var(--gold-2); }
.shop-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.shop-tools .search { position: relative; flex: 1; min-width: 240px; margin: 0; }
.shop-tools .search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.shop-tools .search input { padding-left: 42px; }
.shop-tools .btn { display: inline-flex; align-items: center; gap: 8px; }
.shop-tools .btn .ico { width: 18px; height: 18px; }
.shop-tools .btn[aria-pressed="true"] { border-color: var(--gold); color: var(--gold-2); }
.loc-note { font-size: 13px; color: var(--muted); width: 100%; }
.loc-note:empty { display: none; }
.shop-list { display: grid; gap: 16px; margin-bottom: 80px; }
.shop-card { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: center; transition: border-color .2s, transform .2s; }
.shop-card:hover { border-color: rgba(111, 191, 149, .45); transform: translateY(-2px); }
.shop-thumb { width: 100%; height: auto; transform: rotate(-3deg); filter: drop-shadow(0 14px 24px rgba(0,0,0,.4)); }
.shop-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.shop-top h2 { font-size: 26px; }
.dist { font-family: "Prompt", system-ui, sans-serif; font-weight: 600; color: var(--gold-2); background: rgba(111, 191, 149, .12); padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.shop-area { display: flex; align-items: center; gap: 6px; margin: 4px 0 14px; }
.shop-area .ico { width: 16px; height: 16px; }
.shop-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.shop-actions .btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; }
.shop-actions .btn .ico { width: 16px; height: 16px; }
.shop-actions .fine { margin: 0; }
.coming { display: flex; align-items: center; gap: 16px; border-style: dashed; background: transparent; }
.coming h2 { font-size: 18px; }
.empty { color: var(--muted); }
@media (max-width: 720px) {
  .shop-card { grid-template-columns: 1fr; gap: 16px; }
  .shop-thumb { max-width: 260px; }
}
.shop-thumb.photo { aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; transform: none; }

/* ===== ร้านสนุ๊ก redesign (user, 23 ต.ค.: "ยังดูแข็งๆ") — scoped to this page; .shop-card is also used on my_shops ===== */
#page-shops .finder { position: relative; margin: 40px 0 28px; padding: 36px 36px 28px; border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(120% 140% at 0% 0%, rgba(143, 227, 184, .13), transparent 55%), radial-gradient(90% 120% at 100% 100%, rgba(31, 127, 85, .18), transparent 60%), var(--panel); }
#page-shops .finder-head { margin-bottom: 22px; }
#page-shops .finder .eyebrow { margin-bottom: 10px; font-size: 14px; }
#page-shops .finder h1 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.15; margin: 0; }
#page-shops .finder h1 .accent { color: var(--accent); }
#page-shops .finder-live { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
#page-shops .finder-live:empty { display: none; }
#page-shops .finder-bar { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: #120F0C; border: 1px solid rgba(255, 255, 255, .12); transition: border-color .2s, box-shadow .2s; }
#page-shops .finder-bar:focus-within { border-color: var(--btn); box-shadow: 0 0 0 4px rgba(143, 227, 184, .12); }
#page-shops .finder-bar .search { flex: 1; min-width: 0; margin: 0; position: relative; }
#page-shops .finder-bar .search .ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
#page-shops .finder-bar .search input { width: 100%; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 12px 12px 12px 48px; font-size: 17px; min-height: 48px; }
#page-shops .loc-btn { display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px; font: inherit; font-weight: 600; font-size: 15px; cursor: pointer;
  background: rgba(143, 227, 184, .12); color: var(--accent-text); transition: background .2s, color .2s, transform .15s; }
#page-shops .loc-btn:hover { background: rgba(143, 227, 184, .2); }
#page-shops .loc-btn:active { transform: scale(.97); }
#page-shops .loc-btn[aria-pressed="true"] { background: var(--btn); color: #fff; }
#page-shops .loc-btn .ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
#page-shops .loc-note { display: block; width: auto; margin: 10px 4px 0; font-size: 13px; color: var(--muted); }
#page-shops .loc-note:empty { display: none; }

#page-shops .shop-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
#page-shops .seg { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, .28); border: 1px solid var(--line); }
#page-shops .seg button, #page-shops .fchip, #page-shops .fclear { font: inherit; font-size: 14px; color: var(--muted); background: none; border: 0; border-radius: 999px; padding: 7px 16px; min-height: 38px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
#page-shops .seg button:hover, #page-shops .fchip:hover { color: var(--cream); }
#page-shops .seg button[aria-pressed="true"] { background: var(--btn); color: #fff; }
#page-shops .fchip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: rgba(0, 0, 0, .28); }
#page-shops .fchip[aria-pressed="true"] { border-color: var(--btn); background: var(--accent-soft); color: var(--accent-text); }
#page-shops .fav-filter[aria-pressed="true"] { border-color: #FF6B81; background: rgba(255, 107, 129, .12); color: #FF8FA0; }
#page-shops .fav-filter[aria-pressed="true"] .ico { fill: currentColor; }
#page-shops .fchip .ico, #page-shops .fsel .ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
#page-shops .fsel { position: relative; margin: 0; display: inline-flex; }
#page-shops .fsel .ico { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; z-index: 1; }
#page-shops .fsel .fs-btn { min-width: 168px; }
#page-shops .fsel select { width: auto; min-height: 40px; padding: 6px 32px 6px 36px; border-radius: 999px; font-size: 14px; cursor: pointer; background-color: #15120E !important; }
#page-shops .fsel select.on { border-color: var(--btn); color: var(--accent-text); }
#page-shops .fclear { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
#page-shops .shop-filters [hidden], #page-shops .fclear[hidden] { display: none !important; }

#page-shops .results-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 4px 16px; }
#page-shops .results-count { margin: 0; color: var(--muted); font-size: 15px; }
#page-shops .results-count b { color: var(--cream); font-weight: 600; }

/* Cards */
#page-shops .shop-list { gap: 18px; }
#page-shops .shop-card { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; align-items: stretch; padding: 16px 24px 16px 16px; border-radius: 24px;
  animation: card-in .45s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 60ms); transition: border-color .25s, transform .25s, box-shadow .25s; }
#page-shops .shop-card:hover { transform: translateY(-3px); border-color: rgba(143, 227, 184, .35); box-shadow: 0 24px 50px -28px rgba(143, 227, 184, .35); }
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { #page-shops .shop-card { animation: none; } }
#page-shops .shop-card .shop-media { position: relative; align-self: stretch; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 3; background: #0f0d0a; }
#page-shops .shop-card .shop-media.art { background: radial-gradient(ellipse at 50% 55%, #1d6a47, #0c2a1d 78%); display: grid; place-items: center; }
#page-shops .shop-thumb { display: block; max-width: none; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
#page-shops .shop-thumb.photo { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
#page-shops .shop-thumb.contain { width: 78%; height: auto; transform: rotate(-4deg); filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45)); }
#page-shops .shop-card:hover .shop-thumb.photo { transform: scale(1.04); }
#page-shops .shop-card:hover .shop-thumb.contain { transform: rotate(-2deg) scale(1.04); }
#page-shops .live { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #fff; background: rgba(10, 9, 7, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
#page-shops .live .dot { width: 8px; height: 8px; border-radius: 50%; background: #4CC38A; box-shadow: 0 0 0 0 rgba(76, 195, 138, .6); animation: live-pulse 2s infinite; }
#page-shops .live.full .dot { background: #E0B84A; animation: none; }
#page-shops .live.closed { color: #C9C1B6; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 7px rgba(76, 195, 138, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 195, 138, 0); } }
@media (prefers-reduced-motion: reduce) { #page-shops .live .dot { animation: none; } }
#page-shops .fav-btn { top: 10px; right: 10px; width: 40px; height: 40px; padding: 0; justify-content: center; background: rgba(10, 9, 7, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

#page-shops .shop-body { gap: 8px; padding: 8px 0; }
#page-shops .shop-top { align-items: flex-start; }
#page-shops .shop-top h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; margin: 0; }
#page-shops .shop-top h2 a { color: inherit; text-decoration: none; }
#page-shops .shop-top h2 a:hover { color: var(--accent); }
#page-shops .shop-card .dist { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; padding: 5px 12px; background: rgba(143, 227, 184, .1); color: var(--accent-text); }
#page-shops .dist .ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; }
#page-shops .shop-card .shop-area { font-size: 15px; }
#page-shops .shop-card .shop-area .ico { width: 16px; height: 16px; }
#page-shops .shop-card .shop-rating { font-size: 14px; }
#page-shops .shop-card .shop-rating .stars { font-size: 15px; }
#page-shops .shop-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 2px 0 0; font-size: 14px; color: var(--muted); }
#page-shops .shop-meta span { display: inline-flex; align-items: center; gap: 6px; }
#page-shops .shop-meta .ico { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
#page-shops .shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
#page-shops .shop-price { margin: 0; display: flex; align-items: baseline; gap: 4px; }
#page-shops .shop-price b { font-family: "Prompt", system-ui, sans-serif; font-size: 24px; font-weight: 600; color: var(--cream); }
#page-shops .shop-price span { font-size: 14px; color: var(--muted); }
#page-shops .shop-card .shop-actions { margin: 0; padding: 0; gap: 8px; justify-content: flex-end; flex-wrap: nowrap; }
#page-shops .shop-card .shop-actions .btn { font-size: 15px; padding: 11px 26px; border-radius: 999px; min-height: 46px; flex: none; }
#page-shops .shop-card .shop-actions .icon-only { width: 46px; padding: 0; justify-content: center; }
#page-shops .shop-card .shop-actions .icon-only .ico { width: 18px; height: 18px; }
#page-shops .coming { border-radius: 24px; padding: 22px 24px; }

@media (max-width: 760px) {
  #page-shops .finder { margin-top: 20px; padding: 24px 16px 18px; border-radius: 22px; }
  #page-shops .loc-btn span { display: none; }
  #page-shops .loc-btn { width: 48px; padding: 0; justify-content: center; }
  #page-shops .seg { width: 100%; }
  #page-shops .seg button { flex: 1; }
  /* 29 ต.ค.: the price box kept its 168 px on phones and ran over the edge / onto เปิดอยู่ตอนนี้ — now both share the row and
     drop to their own lines when the text is big (phone font size) */
  #page-shops .shop-filters .fchip, #page-shops .shop-filters .fsel { flex: 1 1 140px; min-width: 0; justify-content: center; }
  #page-shops .shop-filters .fchip { white-space: nowrap; }
  #page-shops .shop-filters .fsel .fs-btn { min-width: 0; width: 100%; }
  #page-shops .shop-filters .fsel .fs-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  #page-shops .shop-filters .fsel select { width: 100%; min-width: 0; }
  #page-shops .shop-card { grid-template-columns: 1fr; gap: 14px; padding: 12px 12px 16px; }
  #page-shops .shop-body { padding: 0 6px; }
  #page-shops .shop-card .shop-media { aspect-ratio: 16 / 9; }
  #page-shops .shop-thumb.contain { width: 52%; }
}
#page-shops .nw { white-space: nowrap; }
