/* หน้าย่อยของเว็บ (เขต จังหวัด สถานี ปั๊ม ที่อาบน้ำ เส้นทาง ขี้บอกสุขภาพ ฯลฯ) · 1 ธ.ค. 2569
   ใช้เมนูและแถบชื่อหน้าชุดเดียวกับแอป (app-shell.css) · ไม่มีเงา ไม่มีเส้นขอบ (กติกาเจ้าของ 15 พ.ย.) */

body.sub-page{-webkit-user-select:auto;user-select:auto}   /* หน้าอ่าน: คัดลอกชื่อ/ที่อยู่ได้ */
body.tk-app.sub-page main.tk-screen{display:block}
body.sub-page .tk-tab{text-decoration:none}
body.sub-page .tk-appbar .tk-back{display:inline-grid;place-items:center;text-decoration:none}
body.sub-page .tk-appbar-title{margin:0;max-width:100%;font-size:20px;line-height:1.25;letter-spacing:-.01em;
  font-weight:var(--fw-bold);color:var(--text-strong);text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.sub-page .tk-screen .doc{max-width:860px;padding:0 0 24px}
body.sub-page .crumb{font-size:13px;margin:4px 0 12px}
@media (max-width:899px){body.sub-page .tk-nav-brand{display:none}}
@media (min-width:900px){body.sub-page .tk-appbar-title{font-size:24px}}

/* ปุ่มในการ์ดห้องน้ำ: เป็นปุ่มจริง กดง่ายบนมือถือ */
body.sub-page .spot .go,
body.sub-page .spot .open{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;margin:4px 8px 0 0;
  border-radius:var(--radius-pill);font-size:14px;font-weight:var(--fw-semibold);text-decoration:none}
body.sub-page .spot .go{background:var(--surface-brand);color:var(--text-on-brand)}
body.sub-page .spot .open{background:var(--surface-brand-soft);color:var(--green-800)}
body.sub-page .spot{border-radius:22px;padding:18px 18px 16px}
body.sub-page .cta{text-decoration:none}

/* ---------- /route/ ห้องน้ำระหว่างทาง ---------- */
.rt-hero{display:grid;gap:0;background:var(--surface-card);border-radius:28px;overflow:hidden;margin:0 0 16px}
.rt-hero>img{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;background:var(--bg-page)}
.rt-hero-text{padding:18px 20px 22px}
.rt-season{display:inline-flex;align-items:center;gap:6px;margin:0 0 10px;padding:6px 14px;border-radius:var(--radius-pill);
  background:var(--sun-100);color:#7A5600;font-size:14px;font-weight:var(--fw-bold)}
.rt-season img{width:20px;height:20px}
.rt-hero h1{font-size:clamp(26px,6vw,36px);line-height:1.3;margin:0 0 10px}
.rt-hero p{margin:0;color:var(--text-body);line-height:1.7}
.rt-ai{display:block;font-size:12px;color:var(--text-muted);margin-top:10px}
@media (min-width:760px){
  .rt-hero{grid-template-columns:1.05fr 1fr;align-items:center}
  .rt-hero>img{height:100%;aspect-ratio:auto;min-height:300px}
  .rt-hero-text{padding:28px 30px}
}

.rt-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:0 0 16px;padding:0;list-style:none}
.rt-stats li{background:var(--surface-card);border-radius:20px;padding:14px 12px;text-align:center}
.rt-stats b{display:block;font-size:clamp(24px,6vw,32px);line-height:1.1;color:var(--green-700);font-variant-numeric:tabular-nums}
.rt-stats span{display:block;margin-top:4px;font-size:13px;color:var(--text-muted)}

.rt-actions{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 30px}
.rt-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 22px;border-radius:var(--radius-pill);
  font-weight:var(--fw-bold);text-decoration:none;flex:1 1 220px}
.rt-btn img{width:22px;height:22px}
.rt-btn.is-main{background:var(--surface-brand);color:var(--text-on-brand)}
.rt-btn.is-sos{background:var(--tk-em-red, #E53935);color:#fff}

.rt-h{font-size:clamp(21px,5vw,26px);margin:0 0 6px}
.rt-sub{margin:0 0 14px;color:var(--text-muted);font-size:15px}
.rt-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:10px;margin:0 0 36px;padding:0;list-style:none}
.rt-pick a{display:grid;grid-template-columns:44px 1fr auto;gap:12px;align-items:center;height:100%;
  background:var(--surface-card);border-radius:20px;padding:14px 16px;color:var(--text-body);text-decoration:none}
.rt-pick a:active{transform:scale(.98)}
.rt-pick img{width:44px;height:44px}
.rt-pick b{display:block;color:var(--text-strong);font-size:17px}
.rt-pick small{display:block;color:var(--text-muted);font-size:13px;line-height:1.45;margin-top:2px}
.rt-count{flex:0 0 auto;padding:4px 11px;border-radius:var(--radius-pill);background:var(--surface-brand-soft);
  color:var(--green-800);font-size:13px;font-weight:var(--fw-bold);white-space:nowrap}
.rt-count.is-zero{background:var(--bg-page);color:var(--text-muted)}

.rt-route{scroll-margin-top:140px;background:var(--surface-brand-soft);border-radius:28px;padding:20px 18px 18px;margin:0 0 22px}
.rt-route-head{display:grid;grid-template-columns:52px 1fr;gap:14px;align-items:center;margin:0 0 6px}
.rt-route-head img{width:52px;height:52px}
.rt-route-head h2{margin:0;font-size:clamp(22px,5.4vw,28px);line-height:1.25}
.rt-route-head p{margin:2px 0 0;color:var(--text-body);font-size:14px;line-height:1.55}
.rt-path{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:12px 0 16px;padding:0;list-style:none;font-size:13px}
.rt-path li{padding:4px 11px;border-radius:var(--radius-pill);background:var(--surface-card);color:var(--text-body)}
.rt-path li.has{background:var(--surface-brand);color:var(--text-on-brand);font-weight:var(--fw-semibold)}
.rt-path li+li::before{content:none}
.rt-prov{margin:18px 0 0}
.rt-prov-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;margin:0 0 10px}
.rt-prov-head h3{margin:0;font-size:19px}
.rt-prov-head h3 small{font-size:14px;font-weight:var(--fw-medium);color:var(--text-muted)}
.rt-prov-head a{font-size:14px;font-weight:var(--fw-semibold)}
.rt-route .spots{grid-template-columns:repeat(auto-fill,minmax(250px,1fr))}
.rt-route .spot{background:var(--surface-card)}
.rt-more{display:flex;flex-wrap:wrap;gap:8px 14px;margin:10px 0 0;font-size:14px;font-weight:var(--fw-semibold)}
.rt-empty{margin:18px 0 0;padding:14px 16px;border-radius:20px;background:var(--surface-card);font-size:14px;color:var(--text-body);line-height:1.6}
.rt-empty b{display:block;margin:0 0 8px;color:var(--text-strong);font-size:15px}
.rt-empty ul{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px;padding:0;list-style:none}
.rt-empty li a,.rt-empty li span{display:inline-block;padding:5px 12px;border-radius:var(--radius-pill);background:var(--bg-page);
  color:var(--text-body);text-decoration:none}

.rt-tips{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin:0 0 16px;padding:0;list-style:none}
.rt-tips li{display:grid;grid-template-columns:40px 1fr;gap:12px;align-items:start;background:var(--surface-card);border-radius:20px;padding:14px 16px;
  font-size:15px;line-height:1.6;color:var(--text-body)}
.rt-tips img{width:40px;height:40px}
.rt-read{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.rt-read a{display:inline-flex;align-items:center;min-height:40px;padding:0 16px;border-radius:var(--radius-pill);
  background:var(--surface-card);color:var(--text-link);font-size:14px;font-weight:var(--fw-semibold);text-decoration:none}
