พอร์ต UI จาก web-at-transit-mock เข้า Next.js + data sync เข้า Postgres/SeaweedFS

- 8 หน้า (home/stops/routes/stop/check/blog/about/credits) แปลง partials → React component ตรง mock
- ตรรกะพอร์ตเป็น src/lib/ui/*.ts (mount()) + runtime/PageRuntime
- CSS: base + pages/*.css import ต่อ route (คงลำดับ cascade ของ mock)
- asset/content: public/{image,resource/data,content,locales,vendor}
- แก้ path รูปไทล์พาร์ทเนอร์ (.image → /image) + fallback absolute
- ลบ UI เดิมที่ไม่ตรง mock (expanded/stops details/old components/globals.css)
- script/sync_data_to_postgres.mjs + sync_images_to_storage.mjs (dry-run/--apply, backup)
- docs/UI-PORT.md + DESIGN.md + README
This commit is contained in:
itmeadmin committed 2026-10-23 15:50:00 +07:00
1 parent 24187fc3b7
commit 138a3d15d8
300 files changed
+20213 -1978

No files matched your search

+520
View File
@@ -0,0 +1,520 @@
/* =========================================================
Atroute shared polish — applied to all mockup pages
Loaded AFTER main-theme.css, BEFORE per-page <style>.
========================================================= */
/* ---------- Brand logo ---------- */
.mu-logo-img {
width: 44px;
height: 44px;
border-radius: 12px;
object-fit: cover;
box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
/* ---------- Universal "cover" card pattern ---------- */
/* A card whose top region is a 16:10 image hero with a soft
gradient overlay and a label sitting on top. Used by route
cards (index) and stop cards (busStop) so duplicate stock
photos no longer look bolted on. */
.mu-cover {
position: relative;
aspect-ratio: 16 / 10;
background: linear-gradient(135deg, #eef1ff 0%, #f7f0ff 100%);
overflow: hidden;
}
.mu-cover > img {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform .45s ease;
}
.mu-card:hover .mu-cover > img,
.mu-cover-card:hover .mu-cover > img {
transform: scale(1.06);
}
.mu-cover::after {
content: "";
position: absolute;
inset: 0;
background:
linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, .72) 100%);
pointer-events: none;
}
.mu-cover-tag {
position: absolute;
top: 12px;
left: 12px;
z-index: 1;
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 10px;
border-radius: 999px;
font-size: .72rem;
font-weight: 800;
letter-spacing: .02em;
background: rgba(255, 255, 255, .92);
color: #1f2a44;
backdrop-filter: blur(8px);
box-shadow: 0 4px 10px rgba(15, 23, 42, .15);
}
.mu-cover-title {
position: absolute;
left: 14px;
right: 14px;
bottom: 12px;
z-index: 1;
margin: 0;
color: #fff;
font-size: 1.05rem;
font-weight: 800;
line-height: 1.25;
text-shadow: 0 2px 6px rgba(0, 0, 0, .45);
}
.mu-cover-title small {
display: block;
font-weight: 500;
font-size: .78rem;
opacity: .92;
margin-top: 2px;
}
.mu-cover.no-photo {
background:
radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .35), transparent 55%),
linear-gradient(135deg, #7a4cc0 0%, #3071b8 100%);
}
.mu-cover.no-photo::after {
background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, .35) 100%);
}
.mu-cover.tone-purple { background: linear-gradient(135deg, #7a4cc0, #c084fc); }
.mu-cover.tone-sky { background: linear-gradient(135deg, #3071b8, #60a5fa); }
.mu-cover.tone-pink { background: linear-gradient(135deg, #bb3a78, #f472b6); }
.mu-cover.tone-mint { background: linear-gradient(135deg, #1f8765, #34d399); }
.mu-cover.tone-amber { background: linear-gradient(135deg, #c47b1d, #fbbf24); }
/* ---------- Index route cards (rebuilt) ---------- */
.mu-card {
overflow: hidden;
transition: transform .18s ease, box-shadow .18s ease;
}
.mu-card:hover {
transform: translateY(-3px);
box-shadow: 0 18px 36px rgba(15, 23, 42, .14);
}
.mu-card-head {
position: relative;
height: auto;
aspect-ratio: 16 / 10;
overflow: hidden;
}
.mu-card-head .mu-card-photo {
position: absolute;
inset: 0;
width: 100%;
height: 100%;
object-fit: cover;
transition: transform .45s ease;
}
.mu-card:hover .mu-card-photo { transform: scale(1.06); }
.mu-card-head::after {
content: "";
position: absolute;
inset: 0;
background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, .72) 100%);
}
.mu-card-head .mu-route-number {
position: absolute;
left: 14px;
bottom: 12px;
margin: 0;
color: #fff;
font-weight: 900;
font-size: 32px;
letter-spacing: .02em;
text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
z-index: 1;
}
.mu-card-head .mu-route-kind {
position: absolute;
top: 12px;
left: 12px;
z-index: 1;
padding: 4px 10px;
border-radius: 999px;
font-size: .7rem;
font-weight: 700;
background: rgba(255, 255, 255, .92);
color: #1f2a44;
backdrop-filter: blur(6px);
box-shadow: 0 4px 10px rgba(15, 23, 42, .14);
}
.mu-card-head.no-photo {
background:
radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .25), transparent 55%),
linear-gradient(135deg, #7a4cc0 0%, #3071b8 100%);
}
.mu-card-head.no-photo.bg-purple { background: linear-gradient(135deg, #7a4cc0, #c084fc); }
.mu-card-head.no-photo.bg-sky { background: linear-gradient(135deg, #3071b8, #60a5fa); }
.mu-card-head.no-photo.bg-pink { background: linear-gradient(135deg, #bb3a78, #f472b6); }
.mu-card-head.no-photo.bg-mint { background: linear-gradient(135deg, #1f8765, #34d399); }
/* ---------- BusStop: integrated stop cards (no more
disjoint thumbnails) ---------- */
.mu-stop-grid li.mu-stop-cell {
list-style: none;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 10px 24px rgba(63, 43, 94, .08);
border: 1px solid rgba(231, 224, 246, .95);
background: #fff;
display: flex;
flex-direction: column;
transition: transform .18s ease, box-shadow .18s ease;
}
.mu-stop-grid li.mu-stop-cell:hover {
transform: translateY(-3px);
box-shadow: 0 18px 36px rgba(63, 43, 94, .14);
}
.mu-stop-cell .mu-stop-card {
padding: 16px 18px 18px;
flex: 1;
display: flex;
flex-direction: column;
gap: 12px;
background: transparent;
}
/* ---------- Rich shared footer ---------- */
.mu-site-footer {
margin-top: 34px;
background:
radial-gradient(circle at 0% 0%, rgba(122, 76, 192, .35), transparent 35%),
radial-gradient(circle at 100% 10%, rgba(48, 113, 184, .35), transparent 35%),
linear-gradient(180deg, #1a1830 0%, #0f1126 100%);
color: #cfd5ec;
padding: 34px 0 0;
}
.mu-site-footer .mu-container {
max-width: 1200px;
margin: 0 auto;
padding: 0 24px;
}
.mu-footer-grid {
display: grid;
grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
gap: 20px;
}
.mu-footer-brand {
display: flex;
flex-direction: column;
gap: 10px;
}
.mu-footer-brand-row {
display: flex;
align-items: center;
gap: 12px;
}
.mu-footer-brand-row img {
width: 48px;
height: 48px;
border-radius: 12px;
background: #fff;
padding: 4px;
object-fit: contain;
}
.mu-footer-brand-row strong {
display: block;
color: #fff;
font-size: 1.05rem;
font-weight: 800;
letter-spacing: .01em;
}
.mu-footer-brand-row span {
display: block;
color: #9aa3c3;
font-size: .82rem;
margin-top: 2px;
}
.mu-footer-brand p.about {
margin: 0;
color: #b6bdda;
font-size: .88rem;
line-height: 1.6;
}
.mu-footer-col h4 {
margin: 0 0 10px;
color: #fff;
font-size: .9rem;
font-weight: 800;
letter-spacing: .03em;
text-transform: uppercase;
}
.mu-footer-col ul {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.mu-footer-col ul a {
color: #cfd5ec;
text-decoration: none;
font-size: .9rem;
line-height: 1.5;
transition: color .15s ease;
display: inline-flex;
align-items: center;
gap: 8px;
}
.mu-footer-col ul a:hover { color: #fff; }
.mu-footer-col ul a::before {
content: "›";
color: #7a4cc0;
font-weight: 800;
}
.mu-footer-contact a,
.mu-footer-contact span {
display: inline-flex;
align-items: center;
gap: 8px;
color: #cfd5ec;
text-decoration: none;
font-size: .88rem;
}
.mu-footer-contact .row { margin-bottom: 4px; }
/* ---------- Sponsor strip inside footer ---------- */
.mu-footer-sponsors {
margin-top: 22px;
padding-top: 16px;
border-top: 1px solid rgba(255, 255, 255, .08);
}
.mu-footer-sponsors h4 {
margin: 0 0 6px;
color: #fff;
font-size: .95rem;
font-weight: 800;
}
.mu-footer-sponsors p.lead {
margin: 0 0 18px;
color: #9aa3c3;
font-size: .85rem;
line-height: 1.5;
}
.mu-sponsor-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
gap: 12px;
}
.mu-sponsor-tile {
background: #fff;
border-radius: 12px;
padding: 14px;
display: flex;
align-items: center;
justify-content: center;
aspect-ratio: 5 / 3;
transition: transform .15s ease, box-shadow .15s ease;
border: 1px solid rgba(255, 255, 255, .04);
}
.mu-sponsor-tile:hover {
transform: translateY(-3px);
box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
}
.mu-sponsor-tile img {
max-width: 84%;
max-height: 70%;
object-fit: contain;
filter: grayscale(.1);
transition: filter .2s ease;
}
.mu-sponsor-tile:hover img { filter: grayscale(0); }
/* ---------- Footer bottom bar ---------- */
.mu-footer-bottom {
margin-top: 20px;
padding: 12px 0 14px;
border-top: 1px solid rgba(255, 255, 255, .08);
text-align: center;
}
.mu-footer-bottom p {
margin: 0;
color: #8d96b8;
font-size: .82rem;
letter-spacing: .02em;
}
.mu-footer-bottom .pill {
display: inline-block;
margin-left: 10px;
padding: 2px 10px;
border-radius: 999px;
background: rgba(122, 76, 192, .25);
color: #d8c7ff;
font-size: .72rem;
font-weight: 700;
}
/* Hide legacy thin footer when shared rich footer is present */
body:has(.mu-site-footer) .mu-footer { display: none; }
@media (max-width: 980px) {
.mu-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
.mu-footer-grid { grid-template-columns: 1fr; }
.mu-site-footer { padding: 28px 0 0; }
}
/* =========================================================
Icon system — Lucide (MIT) — ใช้ <svg class="ic"><use href="#ic-NAME"/></svg>
sprite: partials/icons-sprite.svg | credit: ui/credits.html
========================================================= */
.ic {
width: 1em;
height: 1em;
display: inline-block;
vertical-align: -0.125em;
fill: none;
stroke: currentColor;
stroke-width: 2;
stroke-linecap: round;
stroke-linejoin: round;
flex-shrink: 0;
}
.ic--lg { width: 1.4em; height: 1.4em; }
/* ---------- Search field (input + icon ข้างหน้า) ---------- */
.mu-search-field {
position: relative;
display: flex;
align-items: center;
flex: 1;
min-width: 220px;
}
.mu-search-field .ic {
position: absolute;
left: 12px;
color: #6f7b95;
pointer-events: none;
}
.mu-search-field input {
width: 100%;
padding: 10px 12px 10px 38px;
}
/* ---------- ปุ่มสลับภาษา (ไทย / EN) ---------- */
.mu-lang-switch {
display: inline-flex;
align-items: center;
gap: 2px;
background: #f0edf7;
border: 1px solid #e4dcf2;
border-radius: 999px;
padding: 3px;
flex-shrink: 0;
}
.mu-lang-btn {
border: 0;
background: transparent;
color: #6d28d9;
font-family: inherit;
font-weight: 700;
font-size: .72rem;
line-height: 1;
padding: 6px 10px;
border-radius: 999px;
cursor: pointer;
transition: background .15s ease, color .15s ease;
}
.mu-lang-btn:hover { color: #5b21b6; }
.mu-lang-btn.active {
background: #fff;
color: #7a4cc0;
box-shadow: 0 1px 4px rgba(63, 43, 94, .18);
}
/* ============================================================
ปุ่ม + ฟอร์มคอนโทรล (shared — ทุกหน้าใช้ร่วมกัน)
.mu-btn อยู่ที่นี่ (ไม่ใช่ใน partial) → หน้าไหนก็ได้สไตล์เดียวกัน
============================================================ */
.mu-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
min-height: 44px;
padding: 10px 18px;
border-radius: 12px;
font-family: inherit;
font-weight: 700;
font-size: .85rem;
line-height: 1;
text-decoration: none;
border: 1px solid transparent;
cursor: pointer;
transition: box-shadow .15s ease, transform .1s ease, background .15s ease, border-color .15s ease;
}
.mu-btn:active { transform: translateY(1px); }
.mu-btn.primary {
background: linear-gradient(135deg, #a855f7, #7c3aed);
color: #fff;
box-shadow: 0 8px 18px rgba(124, 58, 237, .25);
}
.mu-btn.primary:hover { box-shadow: 0 10px 22px rgba(124, 58, 237, .35); }
.mu-btn.ghost {
background: #fff;
border-color: #e7e2f6;
color: #5b3b71;
box-shadow: 0 2px 8px rgba(63, 43, 94, .05);
}
.mu-btn.ghost:hover { border-color: #d8c9f2; background: #faf7ff; }
/* select แบบโมเดิร์น — custom chevron แทนลูกศร native (prefix #view ชนะ partial style) */
#view .mu-toolbar select {
appearance: none;
-webkit-appearance: none;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a4cc0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"), linear-gradient(180deg, #fff, #f8fbff);
background-repeat: no-repeat;
background-position: right 12px center;
padding-right: 38px;
cursor: pointer;
}
#view .mu-toolbar select:hover { border-color: #c8b4ec; }
#view .mu-toolbar input:hover { border-color: #c8b4ec; }
/* focus ring อันเดียวกันทั้งฟอร์ม — มองเห็นชัดตอน tab (a11y) */
#view .mu-toolbar input:focus-visible,
#view .mu-toolbar select:focus-visible,
#view .mu-toolbar .mu-btn:focus-visible {
outline: 2px solid #7a4cc0;
outline-offset: 2px;
}
/* ---------- ปุ่มติดตั้งแอป (PWA — inject จาก pwa.js) ---------- */
.mu-install-btn {
position: fixed;
bottom: 20px;
right: 20px;
z-index: 100;
display: none; /* โผล่เมื่อ beforeinstallprompt เท่านั้น */
align-items: center;
gap: 8px;
min-height: 48px;
padding: 12px 20px;
border: none;
border-radius: 999px;
cursor: pointer;
font-family: inherit;
font-size: .95rem;
font-weight: 700;
color: #fff;
background: linear-gradient(135deg, #a855f7, #7c3aed);
box-shadow: 0 10px 24px rgba(124, 58, 237, .35);
transition: transform .15s ease;
}
.mu-install-btn:active { transform: translateY(1px); }
.mu-install-btn svg { width: 20px; height: 20px; }
+159
View File
@@ -0,0 +1,159 @@
/* =========================================================
Atroute — แผนที่เส้นทาง (Leaflet)
ธีมตาม DESIGN.md §5: เส้นทาง --green-700 หนา 5px · หมุดสี่เหลี่ยมมน
เขียว = ป้ายตามเส้นทาง · อำพัน = ต้นทาง/ปลายทาง · ไม่มี drop shadow
========================================================= */
.at-map {
position: relative;
isolation: isolate; /* กัก z-index ของ Leaflet (400–1000) ไว้ในกรอบแผนที่ — ไม่ให้ทับ nav */
width: 100%;
height: 300px;
border: 1px solid #ddd5c0;
border-radius: 8px;
background: #f7f1e2; /* --paper — พื้นตอน tile ยังไม่มา/ออฟไลน์ */
overflow: hidden;
}
.at-map.is-offline { background: repeating-linear-gradient(45deg, #f7f1e2 0 12px, #f2ebd8 12px 24px); }
.at-map .leaflet-container { background: transparent; font-family: inherit; }
/* ปุ่ม zoom — ให้เข้าธีม (ขอบบาง ไม่มีเงา) */
.at-map .leaflet-control-zoom a {
border-radius: 4px;
border: 1px solid #ddd5c0;
background: #fffdf6;
color: #14211a;
font-weight: 700;
box-shadow: none;
}
.at-map .leaflet-control-zoom a:hover { background: #e4efe4; color: #14532d; }
.at-map .leaflet-bar { border: 0; box-shadow: none; }
/* attribution — เล็ก อ่านได้ ไม่ทับข้อมูล */
.at-map .leaflet-control-attribution {
background: rgba(255, 253, 246, .88);
border-top-left-radius: 4px;
font-size: .68rem;
color: #6b7268;
}
/* ---------- หมุด: สี่เหลี่ยมมน (ไม่ใช่หยดน้ำ ไม่มีเงา) ---------- */
.at-pin-wrap { background: none; border: 0; }
.at-pin {
display: block;
width: 14px; height: 14px;
border-radius: 4px;
border: 2px solid #fffdf6;
box-sizing: border-box;
}
.at-pin.stop { background: #1f7a3d; } /* --green-500 */
.at-pin.term { background: #f2a900; } /* --amber */
.at-pin.mute { background: #6b7268; } /* --muted */
/* ป้ายที่กำลังเปิดดูอยู่ — ใหญ่กว่าเพื่อให้เห็นชัด */
.at-pin.here { background: #f2a900; width: 18px; height: 18px; border-width: 3px; }
/* จุดย่อย (จุดขึ้นรถประจำทางอื่นๆ) — สี่เหลี่ยมม่วง ต่างจากหมุดกลม */
.at-pin.sub { background: #7a4cc0; border-radius: 2px; }
.at-map .leaflet-tooltip {
border-radius: 4px;
border: 1px solid #ddd5c0;
background: #fffdf6;
color: #14211a;
box-shadow: none;
font-size: .78rem;
padding: 5px 8px;
}
.at-map .leaflet-tooltip b { color: #14532d; }
/* ---------- legend (มุมซ้ายล่าง) ---------- */
.at-legend {
position: absolute;
left: 10px; bottom: 10px;
z-index: 500;
background: rgba(255, 253, 246, .94);
border: 1px solid #ddd5c0;
border-radius: 4px;
padding: 7px 10px;
font-size: .74rem;
color: #14211a;
line-height: 1.65;
pointer-events: none;
}
.at-legend i {
display: inline-block;
width: 14px; height: 5px;
border-radius: 2px;
margin-right: 6px;
vertical-align: middle;
}
.at-legend i.sq { width: 10px; height: 10px; border-radius: 3px; border: 2px solid #fffdf6; box-sizing: border-box; }
/* ---------- caption ใต้แผนที่ ---------- */
.at-map-caption {
margin: 9px 0 0;
color: #6b7268;
font-size: .82rem;
}
.at-map-caption b { color: #14211a; }
.at-map-caption .at-offline { color: #8a6100; }
@media (min-width: 768px) {
.at-map { height: 380px; }
}
/* ---------- popup บนแผนที่ (ป้าย/สถานี) ---------- */
.at-map .leaflet-popup-content-wrapper {
border-radius: 4px;
border: 1px solid #ddd5c0;
background: #fffdf6;
box-shadow: none;
color: #14211a;
}
.at-map .leaflet-popup-tip { background: #fffdf6; box-shadow: none; }
.at-map .leaflet-popup-content { margin: 10px 12px; font-size: .8rem; }
.at-pop { display: flex; flex-direction: column; gap: 3px; min-width: 150px; }
.at-pop b { font-size: .86rem; color: #14532d; }
.at-pop span { color: #6b7268; }
.at-pop a { margin-top: 4px; color: #14532d; font-weight: 700; text-decoration: none; border-bottom: 1px solid #1f7a3d; align-self: flex-start; }
.at-pop a:hover { color: #1f7a3d; }
/* ---------- รายการจุดจอดตามเส้นทาง + กม. จากต้นทาง ---------- */
.at-km-wrap { margin-top: 14px; border-top: 1px solid #ddd5c0; padding-top: 12px; }
.at-km-wrap > h3 { margin: 0 0 8px; font-size: .9rem; font-weight: 800; color: #14211a; }
.at-km-wrap ul { list-style: none; margin: 0; padding: 0; }
.at-km-wrap li + li { border-top: 1px dashed #ddd5c0; }
.at-km-row { display: flex; align-items: center; gap: 9px; padding: 7px 2px; text-decoration: none; color: #14211a; font-size: .86rem; }
.at-km-row:hover .at-km-name { color: #1f7a3d; text-decoration: underline; }
.at-km-dot { width: 9px; height: 9px; border-radius: 3px; background: #f2a900; flex: none; }
.at-km-name { flex: 1; font-weight: 600; }
.at-km-val { font-variant-numeric: tabular-nums; font-weight: 700; color: #14532d; }
/* จุดจอดที่ไม่มีหน้ารายละเอียด (มาจาก 8 other_stop.json) — ไม่ใช่ลิงก์ */
.at-km-row.is-plain { cursor: default; }
.at-km-row.is-plain .at-km-dot { background: #7a4cc0; }
.at-km-row.is-sub .at-km-dot { background: #7a4cc0; } /* จุดย่อย (จุดขึ้นรถอื่นๆ) — ม่วง ให้ตรงกับหมุดบนแผนที่ */
.at-km-row.is-plain:hover .at-km-name { color: inherit; text-decoration: none; }
.at-km-row .at-km-val.is-off { color: #a3560f; font-weight: 600; font-size: .78rem; }
/* ---------- ป้ายใกล้ฉัน ---------- */
.at-near-msg { margin: 14px 0 0; color: #6b7268; font-size: .86rem; }
.at-near-err { color: #8a6100; }
.at-near-list { list-style: none; margin: 12px 0 0; padding: 0; }
.at-near-list li + li { border-top: 1px dashed #ddd5c0; }
.at-near-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 2px; text-decoration: none; color: #14211a; align-items: center; }
.at-near-row:hover .at-near-name { color: #1f7a3d; text-decoration: underline; }
.at-near-name { font-weight: 700; font-size: .9rem; }
.at-near-meta { grid-column: 1; color: #6b7268; font-size: .76rem; }
.at-near-dist { grid-column: 2; grid-row: 1 / span 2; font-variant-numeric: tabular-nums; font-weight: 800; color: #14532d; white-space: nowrap; }
/* ---------- กัน CSS ภายนอกทำลายขนาด SVG ของ Leaflet ----------
responsive.css ตั้ง `img, svg, video { max-width: 100%; height: auto; }` และบาง partial
เคยตั้ง `.mu-map-card svg { width: 100%; height: auto; }` → ทำให้ viewport SVG ของ Leaflet
(ซึ่งถูกวางใน pane ขนาด 0x0) ยุบเป็น 0x0 แล้ว "เส้นทางไม่แสดง" ทั้งที่ถูกวาดแล้ว
Leaflet กำหนดขนาดเองผ่าน attribute width/height เสมอ — ห้าม CSS อื่นทับ */
.at-map svg.leaflet-zoom-animated,
.at-map canvas.leaflet-zoom-animated {
width: auto;
height: auto;
max-width: none;
max-height: none;
}
+47
View File
@@ -0,0 +1,47 @@
/* Ported from about.html <style> block */
/* ===== หน้าเกี่ยวกับเรา — เนื้อหาจาก partials/about-data/ (textN.json + picN) ===== */
.mu-hero-lead {
margin: 14px auto 0;
max-width: 640px;
color: #5b3b71;
font-size: .95rem;
}
.mu-about-wrap { padding: 30px 0 52px; }
#about-blocks { display: flex; flex-direction: column; gap: 26px; }
.mu-about-block {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
align-items: center;
background: #fff;
border: 1px solid #ebe8f4;
border-radius: 18px;
padding: 16px;
box-shadow: 0 10px 26px rgba(63, 43, 94, .07);
}
.mu-about-block .mu-about-media { order: 2; }
.mu-about-block .mu-about-media img {
width: 100%;
height: auto;
max-height: 420px;
object-fit: cover;
border-radius: 14px;
display: block;
box-shadow: 0 10px 24px rgba(63, 43, 94, .14);
}
.mu-about-block h2 { margin: 0 0 10px; font-size: 1.2rem; color: #1f2a44; font-weight: 800; line-height: 1.35; }
.mu-about-block p { margin: 0 0 10px; color: #4a5568; font-size: .95rem; line-height: 1.8; }
.mu-about-block p:last-child { margin-bottom: 0; }
.mu-about-skeleton { color: #6f7b95; font-size: .9rem; text-align: center; padding: 18px 0; }
.mu-about-skel-card { height: 180px; border-radius: 18px; background: linear-gradient(90deg, #f4f2fa 25%, #ece8f6 37%, #f4f2fa 63%); background-size: 400% 100%; animation: muSkel 1.4s ease infinite; }
@keyframes muSkel { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
/* แท็บเล็ต/เดสก์ท็อป: 2 คอลัมน์ + สลับข้าง (คี่ = ข้อความซ้าย, คู่ = รูปซ้าย) */
@media (min-width: 768px) {
.mu-about-block { grid-template-columns: 1.05fr .95fr; gap: 28px; padding: 24px 26px; }
.mu-about-block .mu-about-media { order: 0; }
.mu-about-block:nth-child(even) .mu-about-media { order: -1; }
}
+217
View File
@@ -0,0 +1,217 @@
/* Ported from blog.html <style> block */
/* ===== หน้าบทความ — ข้อมูลจาก partials/blog-data/ (ระบบเดียวกับ about) ===== */
.mu-hero-lead {
margin: 14px auto 0;
max-width: 640px;
color: #5b3b71;
font-size: .95rem;
}
.mu-blog-wrap { padding: 26px 0 52px; }
/* --- แถบสลับมุมมอง (ตาราง / รายการ) --- */
.mu-blog-bar {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 12px;
margin-bottom: 18px;
}
.mu-blog-count { margin: 0; color: #6f7b95; font-size: .88rem; }
.mu-view-switch {
margin-left: auto;
display: inline-flex;
gap: 2px;
background: #f0edf7;
border: 1px solid #e4dcf2;
border-radius: 999px;
padding: 3px;
}
.mu-view-btn {
display: inline-flex;
align-items: center;
gap: 6px;
border: 0;
background: transparent;
color: #6d28d9;
font-family: inherit;
font-weight: 700;
font-size: .8rem;
min-height: 36px;
padding: 6px 14px;
border-radius: 999px;
cursor: pointer;
transition: background .15s ease, color .15s ease;
}
.mu-view-btn .ic { width: 15px; height: 15px; }
.mu-view-btn.active { background: #fff; color: #7a4cc0; box-shadow: 0 1px 4px rgba(63, 43, 94, .18); }
.mu-view-btn:focus-visible { outline: 2px solid #7a4cc0; outline-offset: 2px; }
/* --- โหมดตาราง (grid) --- */
#blog-list.mode-grid {
display: grid;
grid-template-columns: 1fr;
gap: 18px;
}
.mu-blog-card {
display: flex;
flex-direction: column;
background: #fff;
border: 1px solid #ebe8f4;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 10px 26px rgba(63, 43, 94, .07);
text-decoration: none;
color: inherit;
transition: transform .18s ease, box-shadow .18s ease;
}
.mu-blog-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(63, 43, 94, .14); }
.mu-blog-card .mu-cover { aspect-ratio: 16 / 9; }
.mu-blog-card .mu-cover.no-img { background: linear-gradient(135deg, #7a4cc0, #3071b8); }
.mu-blog-card .mu-cover.no-img::after { background: linear-gradient(180deg, rgba(15,23,42,0) 40%, rgba(15,23,42,.4) 100%); }
.mu-blog-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mu-blog-meta { display: flex; align-items: center; gap: 8px; color: #6f7b95; font-size: .78rem; }
.mu-blog-meta time { font-variant-numeric: tabular-nums; }
.mu-blog-card h2 { margin: 0; font-size: 1.02rem; color: #1f2a44; font-weight: 800; line-height: 1.4; }
.mu-blog-excerpt { margin: 0; color: #4a5568; font-size: .88rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mu-blog-more { margin-top: auto; padding-top: 6px; color: #7a4cc0; font-weight: 700; font-size: .85rem; }
/* --- โหมดรายการ (list) --- */
#blog-list.mode-list { display: flex; flex-direction: column; gap: 14px; }
.mu-blog-row {
display: grid;
grid-template-columns: 108px 1fr;
gap: 14px;
align-items: center;
background: #fff;
border: 1px solid #ebe8f4;
border-radius: 16px;
padding: 12px;
box-shadow: 0 8px 20px rgba(63, 43, 94, .06);
text-decoration: none;
color: inherit;
transition: border-color .15s ease, box-shadow .15s ease;
}
.mu-blog-row:hover { border-color: #d8c9f2; box-shadow: 0 12px 26px rgba(63, 43, 94, .12); }
.mu-blog-row .thumb {
width: 108px; height: 84px;
border-radius: 12px;
object-fit: cover;
display: block;
background: linear-gradient(135deg, #7a4cc0, #3071b8);
}
.mu-blog-row h2 { margin: 4px 0 6px; font-size: .98rem; color: #1f2a44; font-weight: 800; line-height: 1.4; }
.mu-blog-row .mu-blog-excerpt { -webkit-line-clamp: 2; }
.mu-blog-empty { color: #6f7b95; text-align: center; padding: 34px 0; }
.mu-blog-skel { height: 220px; border-radius: 18px; background: linear-gradient(90deg, #f4f2fa 25%, #ece8f6 37%, #f4f2fa 63%); background-size: 400% 100%; animation: muSkelB 1.4s ease infinite; }
@keyframes muSkelB { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
/* --- หน้าอ่านบทความ --- */
.mu-post { background: #fff; border: 1px solid #ebe8f4; border-radius: 20px; overflow: hidden; box-shadow: 0 12px 30px rgba(63, 43, 94, .08); }
.mu-post .mu-cover { aspect-ratio: 16 / 8; }
/* --- แผนที่เส้นทางแทนรูปปก (textN.json → "map") --- */
.mu-post .mu-cover.is-map { aspect-ratio: auto; height: 280px; position: relative; }
.mu-post .mu-cover.is-map .at-map { height: 100%; border: 0; border-radius: 0; }
.mu-cover.is-map .at-map.is-static { pointer-events: none; } /* ปิดซูม/ลาก */
.mu-cover-cap {
position: absolute; left: 0; right: 0; bottom: 0; z-index: 500;
padding: 8px 12px; color: #fff; font-size: .8rem; line-height: 1.4;
background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, .62));
}
/* --- แผนที่ "เส้นทางที่เสนอ" (ความฝัน) + รายการคลิกได้ + แผงรายละเอียด --- */
/* isolation:isolate — กัก z-index ของ Leaflet (400–1000) ไว้ในกรอบแผนที่
ไม่ให้ปุ่มซูม/ป๊อปอัปทะลุขึ้นไปทับ nav (z-index 1100) */
.blog-mapx { margin: 0 0 16px; position: relative; isolation: isolate; }
/* ป้ายหมวดบนแผนที่ (มุมขวาบน — หลบปุ่มซูมของ Leaflet ที่มุมซ้ายบน) */
.blog-mapx-tag {
position: absolute; top: 12px; right: 12px; z-index: 500;
display: inline-flex; align-items: center; gap: 6px;
padding: 5px 10px; border-radius: 999px;
font-size: .72rem; font-weight: 800; letter-spacing: .02em;
background: rgba(255, 255, 255, .92); color: #1f2a44;
backdrop-filter: blur(8px);
box-shadow: 0 4px 10px rgba(15, 23, 42, .15);
pointer-events: none;
}
.blog-mapx-map { height: 280px; border-radius: 16px; }
.blog-mapx-legend { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.blog-mapx-group {
margin: 10px 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .01em;
color: #7a4cc0; list-style: none;
}
.blog-mapx-group:first-child { margin-top: 0; }
.blog-mapx-group::before { content: ''; display: inline-block; width: 14px; height: 2px;
background: #cbb8e8; vertical-align: middle; margin-right: 8px; border-radius: 2px; }
.blog-mapx-row {
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
padding: 9px 11px; border: 1px solid #e8e4f2; border-radius: 12px;
background: #fff; cursor: pointer; font-size: .88rem; color: #3d4a63;
}
.blog-mapx-row:hover { border-color: #cbb8e8; background: #faf8ff; }
.blog-mapx-row.is-on { border-color: #7a4cc0; background: #f6f2ff; }
.blog-mapx-row:focus-visible { outline: 2px solid #7a4cc0; outline-offset: 1px; }
.blog-mapx-sw { width: 12px; height: 12px; border-radius: 50%; flex: 0 0 auto; }
.blog-mapx-nm { font-weight: 700; color: #1f2a44; }
.blog-mapx-ds { color: #6b7a94; }
.blog-mapx-ds::before { content: '\00b7'; margin-right: 6px; color: #c9c2dc; }
.blog-mapx-badge {
margin-left: auto; font-size: .72rem; padding: 2px 8px; border-radius: 999px;
background: #fdf4e3; color: #8a6100; border: 1px solid #f0dfb8;
}
.blog-mapx-panel { margin-top: 10px; padding: 12px 14px; border: 1px solid #e8e4f2; border-radius: 14px; background: #fbfaff; }
.blog-mapx-panel[hidden] { display: none; }
.blog-mapx-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.blog-mapx-head strong { color: #1f2a44; font-size: .95rem; }
.blog-mapx-line { margin: 4px 0; font-size: .85rem; color: #6b7a94; }
.blog-mapx-line span::after { content: ':'; margin-right: 6px; }
.blog-mapx-line b { color: #1f2a44; font-weight: 600; }
.blog-mapx-facts { margin: 8px 0 0; font-size: .82rem; color: #7a4cc0; font-weight: 700; }
.blog-mapx-hint { margin: 8px 0 0; font-size: .8rem; color: #8b93a7; }
.blog-mapx-src { margin: 0 0 14px; font-size: .78rem; color: #8b93a7; word-break: break-all; }
.at-tip-org { background: #1f2a44; color: #fff; border: 0; font-weight: 700; }
@media (min-width: 768px) { .blog-mapx-map { height: 380px; } }
.mu-cover-note {
position: absolute; left: 12px; bottom: 12px; z-index: 500;
padding: 4px 10px; border-radius: 999px; font-size: .78rem;
background: rgba(255, 255, 255, .9); color: #8a6100; border: 1px solid #f0d9a8;
}
.mu-post-body { padding: 20px 18px 26px; }
.mu-post-body h1 { margin: 6px 0 12px; font-size: 1.35rem; color: #1f2a44; font-weight: 800; line-height: 1.4; }
/* ย่อหน้า: เว้นระยะ 20px + ย่อหน้าหน้าบรรทัด 1.5em (แบบหนังสือไทย) */
.mu-post-body p { margin: 0 0 20px; color: #4a5568; font-size: .96rem; line-height: 1.9; text-indent: 1.5em; }
.mu-post-body p:last-child { margin-bottom: 0; }
/* ย่อหน้าที่เป็นรูป/บรรทัดข้อมูลไม่ต้องย่อหน้า */
.mu-post-body p.mu-post-figure, .mu-post-figure, .mu-post-body p:empty { text-indent: 0; }
/* มาร์กดาวน์เบา ๆ ในเนื้อหา (จาก textN.json) */
.mu-post-body strong { color: #1f2a44; font-weight: 800; }
.mu-post-body em { font-style: italic; }
.mu-post-body a { color: #7a4cc0; font-weight: 700; text-decoration: none; border-bottom: 1px solid #d9cbf3; }
.mu-post-body a:hover { border-bottom-color: #7a4cc0; }
.mu-post-body code { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: .88em;
background: #f4f1fb; border: 1px solid #e7e0f6; border-radius: 4px; padding: 1px 5px; color: #5b4a80; }
.mu-post-body ul { margin: 0 0 20px; padding-left: 20px; }
.mu-post-body li { color: #4a5568; font-size: .96rem; line-height: 1.9; margin-bottom: 4px; }
.mu-post-figure { margin: 4px 0 16px; }
.mu-post-figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid #e7e0f6; display: block; }
.mu-post-figure figcaption { margin-top: 6px; color: #6f7b95; font-size: .82rem; text-align: center; }
.mu-post-back {
display: inline-flex; align-items: center; gap: 6px;
margin-bottom: 16px; color: #7a4cc0; font-weight: 700;
text-decoration: none; font-size: .9rem;
}
.mu-post-back:hover { text-decoration: underline; }
/* แท็บเล็ตขึ้นไป: การ์ด 2 คอลัมน์ → 3 คอลัมน์ */
@media (min-width: 768px) {
.mu-post .mu-cover.is-map { height: 380px; }
}
@media (min-width: 640px) {
#blog-list.mode-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
#blog-list.mode-grid { grid-template-columns: repeat(3, 1fr); }
.mu-post-body { padding: 26px 30px 34px; }
}
+119
View File
@@ -0,0 +1,119 @@
/* Ported from checkSchedule.html <style> block */
/* ============================================================
checkSchedule (#/check) — redesign ให้ใช้ภาษาดีไซน์เดียวกับหน้าแรก
------------------------------------------------------------
hero / selector / summary / zone ใช้ class จาก index.html shell
(ประกาศใน <head> แล้ว) → ไม่ต้องนิยามใหม่
เฉพาะส่วนเฉพาะหน้า (lead + schedule cards) ค่อยเติมตรงนี้
============================================================ */
.mu-hero-lead {
margin: 14px auto 0;
max-width: 640px;
color: #5b3b71;
font-size: .95rem;
}
.mu-summary-grid { gap: 14px; }
/* --- ตารางเวลา: การ์ดสไตล์ index (gradient header + เนื้อขาว) --- */
.mu-schedule-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 14px;
}
.mu-stop-card {
background: #fff;
border-radius: 16px;
overflow: hidden;
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
transition: transform .15s ease, box-shadow .15s ease;
}
.mu-stop-card:hover {
transform: translateY(-2px);
box-shadow: 0 10px 24px rgba(20, 40, 90, .1);
}
.mu-stop-card summary { list-style: none; cursor: pointer; }
.mu-stop-card summary::-webkit-details-marker { display: none; }
/* header การ์ด = gradient block ตามโทนสีเดียวกับ index zone tints */
.mu-stop-head {
display: flex;
align-items: center;
gap: 12px;
padding: 14px 16px;
color: #fff;
}
.mu-stop-head.tone-purple { background: linear-gradient(135deg, #7a4cc0 0%, #b07ce0 100%); }
.mu-stop-head.tone-sky { background: linear-gradient(135deg, #3071b8 0%, #6ea7e8 100%); }
.mu-stop-head.tone-mint { background: linear-gradient(135deg, #1f8765 0%, #51c39c 100%); }
.mu-stop-head.tone-pink { background: linear-gradient(135deg, #bb3a78 0%, #f08bb9 100%); }
.mu-stop-kind {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 5px 12px;
border-radius: 999px;
background: rgba(255, 255, 255, .24);
font-size: .74rem;
font-weight: 700;
white-space: nowrap;
}
.mu-stop-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mu-stop-title strong { font-size: 1rem; font-weight: 800; }
.mu-stop-title small { font-size: .78rem; opacity: .85; }
.mu-stop-chevron { font-size: 1.2rem; opacity: .9; transition: transform .2s ease; }
.mu-stop-card[open] > summary .mu-stop-chevron { transform: rotate(180deg); }
.mu-stop-body { padding: 16px; }
.mu-stop-sub { font-weight: 700; color: #1f2a44; margin: 0 0 10px; font-size: .9rem; }
.mu-direction-tag {
background: #7a4cc0;
color: #fff;
border-radius: 999px;
padding: 3px 10px;
font-size: .72rem;
margin-left: 8px;
}
.mu-time-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.mu-time-chip {
padding: 6px 12px;
border-radius: 10px;
background: #f1f4fb;
color: #2b2f42;
font-weight: 700;
font-size: .85rem;
border: 1px solid #e6eaf3;
font-variant-numeric: tabular-nums;
}
.mu-time-chip.next {
background: linear-gradient(135deg, #a855f7, #7c3aed);
color: #fff;
border-color: transparent;
box-shadow: 0 4px 10px rgba(124, 58, 237, .25);
}
.mu-schedule-note {
color: #9a3b6e;
font-size: .82rem;
margin: 12px 0 0;
padding: 8px 12px;
background: #fff5f9;
border-left: 3px solid #bb3a78;
border-radius: 8px;
display: flex;
align-items: center;
gap: 6px;
}
.mu-inline-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.mu-schedule { padding: 4px 0 48px; }
@media (max-width: 768px) {
.mu-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
+16
View File
@@ -0,0 +1,16 @@
/* Ported from credits.html <style> block */
.mu-page { background: linear-gradient(180deg, #fcfbff 0%, #f5f9ff 100%); }
.mu-credit-wrap { max-width: 46rem; margin: 0 auto; padding: 40px 28px 56px; }
.mu-credit-hero { margin-bottom: 28px; }
.mu-credit-hero h1 { margin: 0 0 8px; font-size: 1.9rem; color: #1f2a44; }
.mu-credit-hero p { margin: 0; color: #66728f; }
.mu-credit-section {
background: #fff; border: 1px solid #e7e0f6; border-radius: 16px;
padding: 20px 22px; margin-bottom: 16px;
}
.mu-credit-section h2 { margin: 0 0 6px; font-size: 1.05rem; color: #1f2a44; }
.mu-credit-section .src { margin: 0 0 12px; color: #6f7b95; font-size: .85rem; }
.mu-credit-section ul { margin: 0; padding-left: 1.2rem; color: #3a4462; font-size: .92rem; line-height: 1.7; }
.mu-credit-section code { background: #f5eeff; color: #7a4cc0; padding: 1px 6px; border-radius: 6px; font-size: .85em; }
.mu-credit-section a { color: #7a4cc0; }
.mu-license { margin: 14px 0 0; padding: 12px 14px; background: #f9f7ff; border-left: 3px solid #7a4cc0; border-radius: 8px; font-size: .85rem; color: #4a5573; line-height: 1.6; }
+21
View File
@@ -0,0 +1,21 @@
/* Ported from home.html <style> block */
/* ปุ่มแชร์ลิงก์สั้น — มุมล่างขวา ต่อจากการ์ดหมวดเส้นทาง */
.mu-share-row { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin: 22px 0 44px; }
.mu-share-btn {
display: inline-flex; align-items: center; gap: 8px;
padding: 10px 16px; border: 1px solid #7a4cc0; border-radius: 8px;
background: #7a4cc0; color: #fff; font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer;
}
.mu-share-btn:hover { background: #6a3cae; }
.mu-share-btn:focus-visible { outline: 2px solid #2b2f42; outline-offset: 2px; }
.mu-share-btn .ic { width: 18px; height: 18px; }
.mu-share-status { margin: 0; font-size: .82rem; line-height: 1.7; color: #4b5570; text-align: right; }
.mu-share-status:empty { display: none; }
.mu-share-url { display: inline-block; padding: 2px 6px; border: 1px solid #e7e2f6; border-radius: 8px; background: #faf9ff; font-size: .8rem; }
.mu-share-line { display: inline-block; margin-left: 6px; font-weight: 700; color: #06c755; text-decoration: none; }
.mu-share-line:hover { text-decoration: underline; }
@media (max-width: 560px) {
.mu-share-row { align-items: stretch; }
.mu-share-btn { justify-content: center; }
.mu-share-status { text-align: left; }
}
+160
View File
@@ -0,0 +1,160 @@
/* Ported from busDetail.html <style> block */
/* ============================================================
busDetail (#/routes, #/routes/:id) — หน้ารายละเอียดสายรถ
รถประจำสาย + ติดต่อผู้ประกอบการ รวมอยู่ในการ์ดเดียว (ขึ้นก่อน)
============================================================ */
.mu-page { padding: 20px 0 48px; }
/* --- header --- */
.mu-breadcrumb { color: #6f7b95; font-size: .88rem; margin: 0 0 12px; }
.mu-breadcrumb a { color: #7a4cc0; text-decoration: none; font-weight: 600; }
.mu-page-title {
display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
margin: 0 0 16px; font-size: 1.6rem; color: #1f2a44; font-weight: 800; line-height: 1.25;
}
.mu-route-chip {
display: inline-flex; align-items: center; justify-content: center;
min-width: 54px; height: 54px; padding: 0 16px; border-radius: 14px;
background: linear-gradient(135deg, #7a4cc0, #b07ce0); color: #fff;
font-weight: 800; font-size: 1.35rem; flex: none;
box-shadow: 0 6px 14px rgba(122, 76, 192, .25);
}
/* สีพื้นหลังของเลขสาย เปลี่ยนตามหมวดเส้นทาง (route_groups.json)
น้ำเงิน = เข้ากรุงเทพฯ · ม่วง = ระหว่างจังหวัด · ชมพู = ภายในจังหวัด · เทา = หมวดอื่น/ไม่ระบุ */
.mu-route-chip.grp-bangkok { background: linear-gradient(135deg, #1a53a8, #3f82d8); box-shadow: 0 6px 14px rgba(31, 95, 191, .25); }
.mu-route-chip.grp-interprovincial { background: linear-gradient(135deg, #7a4cc0, #b07ce0); box-shadow: 0 6px 14px rgba(122, 76, 192, .25); }
.mu-route-chip.grp-in_province { background: linear-gradient(135deg, #c02c7d, #e86aae); box-shadow: 0 6px 14px rgba(214, 56, 143, .25); }
.mu-route-chip.grp-municipal { background: linear-gradient(135deg, #5b6560, #8b948f); box-shadow: 0 6px 14px rgba(107, 114, 104, .25); }
.mu-toolbar {
display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
background: #fff; border: 1px solid #e7e2f6; border-radius: 14px;
padding: 12px; margin-bottom: 22px;
box-shadow: 0 8px 20px rgba(63, 43, 94, .06);
}
.mu-toolbar select {
flex: 1; min-width: 180px; min-height: 46px;
border: 1px solid #dfe6f1; background: linear-gradient(180deg, #fff, #f8fbff);
border-radius: 10px; padding: 0 12px; font-family: inherit; font-size: .95rem; color: #1f2a44;
}
/* --- รถประจำสาย + ติดต่อ (การ์ดเดียว ขึ้นก่อน) --- */
.mu-vehicle-card {
background: #fff;
border: 1px solid #e7e2f6;
border-radius: 18px;
overflow: hidden;
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
display: grid;
grid-template-columns: 1.3fr 1fr;
margin-bottom: 26px;
}
/* ไม่มีรูปรถใน .image/routes/<รหัส>/ → การ์ดไม่เว้นช่องว่าง */
#route-vehicle-card.no-photo { grid-template-columns: 1fr; }
#route-vehicle-card.no-photo > .meta { grid-column: 1 / -1; }
.mu-vehicle-card > img {
grid-column: 1; width: 100%; height: 100%; min-height: 240px;
object-fit: cover; display: block;
}
.mu-vehicle-card > .meta {
grid-column: 2; padding: 24px;
display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.mu-vehicle-card .meta .label {
margin: 0; font-size: .78rem; font-weight: 700; color: #7a4cc0;
text-transform: uppercase; letter-spacing: .05em;
}
.mu-vehicle-card .meta h2 { margin: 0; font-size: 1.25rem; color: #1f2a44; }
.mu-vehicle-card .meta p { margin: 0; color: #6f7b95; font-size: .95rem; line-height: 1.6; }
/* ติดต่อผู้ประกอบการ — อยู่ใน footer ของการ์ด */
.mu-vehicle-contact {
grid-column: 1 / -1;
display: flex; flex-wrap: wrap; gap: 10px;
padding: 14px 18px;
border-top: 1px solid #f0ecf8;
background: #faf9ff;
}
.mu-contact-item {
flex: 1; min-width: 220px;
display: flex; align-items: center; gap: 12px;
padding: 12px 14px;
border-radius: 12px;
background: #fff; border: 1px solid #eee;
text-decoration: none; color: inherit;
transition: transform .15s ease, box-shadow .15s ease;
}
a.mu-contact-item:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(20,40,90,.08); }
.mu-contact-item .ic-wrap {
width: 42px; height: 42px; flex: none;
display: flex; align-items: center; justify-content: center;
border-radius: 12px;
background: linear-gradient(135deg, #7a4cc0, #b07ce0); color: #fff;
}
.mu-contact-item .ic-wrap.tone-green { background: linear-gradient(135deg, #1f8765, #51c39c); }
.mu-contact-item .ic-wrap.tone-sky { background: linear-gradient(135deg, #1877f2, #4a9bf8); }
.mu-contact-item .ic-wrap.tone-purple { background: linear-gradient(135deg, #7a4cc0, #a583e0); }
.mu-contact-item .mu-link-go { flex: 0 0 auto; display: flex; align-items: center; color: #7a4cc0; opacity: .8; }
.mu-contact-item:hover .mu-link-go { opacity: 1; transform: translateX(2px); }
.mu-contact-item .ic-wrap svg { width: 22px; height: 22px; }
.mu-contact-item .txt { flex: 1; min-width: 0; }
.mu-contact-item .txt strong { display: block; color: #1f2a44; font-size: .98rem; margin-bottom: 2px; }
.mu-contact-item .txt span { display: block; color: #6f7b95; font-size: .86rem; }
.mu-qr-img {
width: 72px; height: 72px; flex: none; display: block;
object-fit: contain; background: #fff;
border-radius: 10px; padding: 4px; border: 1px solid #eee;
}
/* ปุ่มครอบ QR — กดเพื่อขยาย (ไม่ให้หน้าตาเปลี่ยน) */
.mu-qr-btn { flex: none; padding: 0; border: 0; background: none; cursor: zoom-in;
border-radius: 10px; line-height: 0; }
.mu-qr-btn:focus-visible { outline: 2px solid #7a4cc0; outline-offset: 2px; }
.mu-qr-btn:hover .mu-qr-img { border-color: #c9b6ec; }
/* --- ขยาย QR ลอยกลางจอ --- */
.mu-qr-modal { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; }
.mu-qr-modal::backdrop { background: rgba(20, 28, 48, .55); }
.mu-qr-modal-card {
position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px;
padding: 22px 22px 18px; border-radius: 14px; background: #fff; border: 1px solid #e7e2f6;
max-width: min(92vw, 360px);
}
.mu-qr-modal-card strong { color: #1f2a44; font-size: 1.02rem; text-align: center; }
.mu-qr-big { width: min(72vw, 260px); height: auto; border-radius: 10px; background: #fff; }
.mu-qr-close {
position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; padding: 0;
display: flex; align-items: center; justify-content: center;
border: 0; border-radius: 10px; background: #f4f1fb; color: #5b4a80; cursor: pointer;
}
.mu-qr-close:hover { background: #e9e2f8; }
.mu-qr-close svg { width: 18px; height: 18px; }
.mu-qr-modal-card .mu-btn { display: inline-flex; align-items: center; gap: 6px; }
.mu-qr-modal-card .mu-btn .ic { width: 16px; height: 16px; }
/* กดรูป QR = เปิดลิงก์ (ทั้งใบ กดได้) */
.mu-qr-link { display: block; line-height: 0; border-radius: 10px; }
.mu-qr-link:focus-visible { outline: 2px solid #7a4cc0; outline-offset: 3px; }
.mu-qr-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.mu-copy-link.is-done { border-color: #1f8765; color: #1f8765; }
/* --- แผนที่ --- */
.mu-map-card {
background: #fff;
border: 1px solid #e7e2f6;
border-radius: 16px;
padding: 16px;
box-shadow: 0 4px 14px rgba(20, 40, 90, .06);
}
/* (ตัดกฎ .mu-map-card svg เดิมออก — แผนที่ SVG นิ่งถูกแทนด้วย Leaflet
และกฎนี้ทำให้ SVG ของ Leaflet ยุบเป็น 0x0 จนเส้นทางไม่แสดง) */
.mu-summary-grid { gap: 14px; }
@media (max-width: 640px) {
.mu-page-title { font-size: 1.4rem; }
.mu-summary-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mu-vehicle-card { grid-template-columns: 1fr; }
.mu-vehicle-card > img { grid-column: 1; min-height: 200px; }
.mu-vehicle-card > .meta { grid-column: 1; padding: 18px; }
.mu-vehicle-contact { grid-column: 1; flex-direction: column; }
.mu-contact-item { min-width: 0; }
}
+413
View File
@@ -0,0 +1,413 @@
/* Ported from stopDetail.html <style> block */
.mu-other-stops { margin: 16px 0 6px; }
.mu-other-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mu-other-item { display: block; padding: 10px 12px; background: #fff;
border: 1px solid #eef0f6; border-radius: 12px; min-width: 0; }
.mu-other-row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mu-other-item .mu-time-grid { margin-top: 8px; }
.mu-other-item .mu-est-note { margin-top: 4px; }
.mu-other-idx { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; background: #f1e9ff;
color: #7a4cc0; font-size: .78rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.mu-other-txt { flex: 1; min-width: 0; }
.mu-other-txt strong { display: block; color: #1f2a44; font-size: .94rem; }
.mu-other-txt span { display: block; color: #6f7b95; font-size: .8rem; }
.mu-other-item .mu-chip { flex: 0 0 auto; font-family: ui-monospace, Consolas, monospace; font-size: .72rem; }
.mu-other-item .mu-chip.warn { background: #fff5e6; color: #9a6b00; border-color: #f2d9a8; }
:root {
--mu-accent: #7a4cc0;
--mu-accent-soft: #f3eafe;
--mu-ink: #1f2a44;
--mu-muted: #6f7b95;
--mu-border: #ecd7e6;
--mu-surface: #ffffff;
--mu-rose: #ec4899;
--mu-sky: #3071b8;
--mu-mint: #1f8765;
}
.mu-page {
background:
radial-gradient(circle at 8% 10%, rgba(122, 76, 192, 0.09), transparent 30%),
radial-gradient(circle at 100% 0%, rgba(48, 113, 184, 0.10), transparent 28%),
linear-gradient(180deg, #fcfbff 0%, #f8f9ff 100%);
}
.mu-stop-hero {
position: relative;
overflow: hidden;
border: 1px solid rgba(231, 224, 246, 0.95);
border-radius: 22px;
background: linear-gradient(135deg, #f8f4ff 0%, #f2f6ff 45%, #eefaf5 100%);
box-shadow: 0 16px 34px rgba(122, 76, 192, 0.12);
padding: 18px;
margin-bottom: 14px;
display: grid;
grid-template-columns: 1.2fr .8fr;
gap: 16px;
align-items: stretch;
}
.mu-stop-hero::before,
.mu-stop-hero::after {
content: "";
position: absolute;
border-radius: 999px;
pointer-events: none;
opacity: .48;
}
.mu-stop-hero::before {
width: 220px;
height: 220px;
top: -120px;
right: -70px;
background: radial-gradient(circle, #f472b6 0%, rgba(244, 114, 182, 0) 72%);
}
.mu-stop-hero::after {
width: 200px;
height: 200px;
left: -70px;
bottom: -115px;
background: radial-gradient(circle, #60a5fa 0%, rgba(96, 165, 250, 0) 72%);
}
.mu-stop-hero > * {
position: relative;
z-index: 1;
min-width: 0; /* กัน grid track บวมตาม min-content (ไม่งั้นเนื้อหาถูก overflow:hidden ตัดที่จอแคบ) */
}
.mu-stop-hero-title {
overflow-wrap: anywhere;
margin: 0;
font-size: 1.72rem;
color: var(--mu-ink);
line-height: 1.2;
}
.mu-stop-hero-sub {
margin: 8px 0 0;
color: var(--mu-muted);
font-size: .9rem;
}
.mu-meta-row { display:flex; flex-wrap:wrap; gap:8px; margin: 12px 0 0; }
.mu-meta-pill { max-width: 100%; overflow-wrap: anywhere; background:linear-gradient(135deg, #ffffff, #f7f9ff); border:1px solid rgba(231, 224, 246, 0.9); color:#5b3b71; padding:6px 14px; border-radius:999px; font-size:.85rem; font-weight:600; box-shadow: 0 4px 10px rgba(122, 76, 192, 0.08); }
.mu-meta-pill.purple { background:linear-gradient(135deg, #f5eeff, #fce7f3); color:#7a4cc0; border-color:#e8d9f0; }
.mu-meta-pill.sky { background:linear-gradient(135deg, #ebf5ff, #eff6ff); color:#3071b8; border-color:#d7e7fb; }
.mu-meta-pill.mint { background:linear-gradient(135deg, #eafaf4, #ecfeff); color:#1f8765; border-color:#d1efdf; }
.mu-direction-tag { background:#7a4cc0; color:#fff; border-radius:999px; padding:2px 10px; font-size:.78rem; margin-left:8px; }
.mu-schedule-note { color:#9a3b6e; font-size:.8rem; margin-top:8px; padding:8px 12px; background:#fff5f9; border-left:3px solid #bb3a78; border-radius:4px; }
.mu-hero-metric-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 8px;
margin-top: 12px;
}
.mu-hero-metric {
border: 1px solid rgba(231, 224, 246, 0.9);
border-radius: 12px;
padding: 10px;
background: #fff;
box-shadow: 0 6px 14px rgba(122, 76, 192, 0.08);
min-width: 0;
overflow-wrap: anywhere;
}
.mu-hero-metric:nth-child(1) { background: linear-gradient(135deg, #f5efff, #fdf2f8); }
.mu-hero-metric:nth-child(2) { background: linear-gradient(135deg, #ecfeff, #eef6ff); }
.mu-hero-metric:nth-child(3) { background: linear-gradient(135deg, #fff1f2, #fff7ed); }
.mu-hero-metric:nth-child(4) { background: linear-gradient(135deg, #ecfdf5, #f0fdfa); }
.mu-hero-metric-label {
margin: 0;
color: var(--mu-muted);
font-size: .76rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: .03em;
}
.mu-hero-metric-value {
margin: 4px 0 0;
color: var(--mu-ink);
font-size: 1.06rem;
font-weight: 800;
line-height: 1.2;
}
.mu-stop-summary-main { order: 2; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.mu-stop-summary-main strong { font-size: .95rem; line-height: 1.3; }
.mu-stop-summary-main .mu-stop-summary-meta { color: #6f7b95; font-size: .78rem; }
.mu-route-type-badge { display: inline-flex; align-items: center; gap: 5px; order: 3; flex: none; background: linear-gradient(135deg, #f5eeff, #fce7f3); color: #7a4cc0; padding: 4px 8px; border-radius: 8px; font-size: .8rem; font-weight: 700; border: 1px solid #e8d9f0; white-space: nowrap; }
.mu-stop-summary-rail { order: 4; flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.mu-route-chip { display: inline-flex; align-items: center; justify-content: center; flex: none; min-width: 38px; padding: 5px 9px; border-radius: 8px; background: linear-gradient(135deg, #7a4cc0, #b07ce0); color: #fff; font-family: "IBM Plex Mono", ui-monospace, monospace; font-weight: 700; font-size: .92rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mu-stop-chevron { display: inline-block; color: #7a4cc0; font-size: .9rem; line-height: 1; transition: transform .2s ease; }
.mu-stop-expander[open] .mu-stop-chevron { transform: rotate(180deg); }
.mu-live-clock-card {
display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin: 6px 0 14px;
padding: 12px 14px;
border: 1px solid rgba(240, 191, 224, 0.9);
border-radius: 14px;
background: linear-gradient(135deg, #ffe8f4 0%, #f5f0ff 50%, #e8f7ff 100%);
box-shadow: 0 8px 20px rgba(122, 76, 192, 0.10);
}
.mu-live-clock-title {
margin: 0;
color: #6f7b95;
font-size: .78rem;
font-weight: 700;
letter-spacing: .04em;
text-transform: uppercase;
}
.mu-live-clock-time {
margin: 2px 0 0;
font-size: 1.65rem;
line-height: 1;
color: #1f2a44;
font-weight: 800;
font-family: "K2D", "Prompt", "Noto Sans Thai", sans-serif;
}
.mu-live-clock-note {
margin: 0;
padding: 6px 10px;
border-radius: 999px;
background: linear-gradient(135deg, #ffffff, #fff7fb);
border: 1px solid #eec7df;
color: #9333ea;
font-size: .78rem;
font-weight: 600;
white-space: nowrap;
}
.mu-live-dot {
display: inline-block;
width: 10px;
height: 10px;
border-radius: 999px;
background: #ec4899;
margin-right: 6px;
animation: muPulse 1.6s infinite;
vertical-align: middle;
}
.mu-next-arrival {
display: inline-flex;
align-items: center;
gap: 6px;
background: #fff;
border: 1px solid #f0d6e6;
color: #9a3b6e;
border-radius: 999px;
padding: 3px 10px;
font-size: .76rem;
font-weight: 700;
line-height: 1;
}
.mu-next-arrival::before {
content: "⏱";
font-size: .85rem;
line-height: 1;
}
.mu-time-chip.next-live {
background: linear-gradient(135deg, #ec4899, #8b5cf6);
border-color: transparent;
color: #fff;
box-shadow: 0 6px 14px rgba(139, 92, 246, 0.28);
transform: translateY(-1px);
}
.mu-panel {
border: 1px solid rgba(231, 224, 246, 0.95);
border-radius: 18px;
background: linear-gradient(180deg, #ffffff, #fffbfe);
box-shadow: 0 10px 24px rgba(122, 76, 192, 0.09);
}
.mu-info-grid {
display: grid;
grid-template-columns: repeat(4, minmax(140px, 1fr));
gap: 10px;
margin: 16px 0 18px;
}
.mu-info-card {
border-radius: 14px;
padding: 12px 14px;
border: 1px solid #e9e2fb;
box-shadow: 0 8px 24px rgba(67, 56, 202, 0.08);
}
.mu-info-card .label { font-size: .78rem; color:#66728f; margin:0; font-weight:700; }
.mu-info-card .value { margin:4px 0 0; font-size:1rem; font-weight:700; color:#2b2f42; }
.mu-layout-grid {
display: grid;
grid-template-columns: 1.35fr .9fr;
gap: 16px;
align-items: start;
}
.mu-card-panel {
background: #fff;
border: 1px solid #ebe8f4;
border-radius: 16px;
padding: 18px;
box-shadow: 0 8px 24px rgba(67, 56, 202, 0.08);
}
.mu-card-panel h2,
.mu-card-panel h3 { margin-top:0; }
.mu-chip {
display:inline-flex;
align-items:center;
gap:6px;
padding:6px 10px;
border-radius:999px;
font-size:.8rem;
font-weight:700;
}
@media (max-width: 980px) {
.mu-info-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
.mu-layout-grid { grid-template-columns: 1fr; }
}
.mu-panel h2 {
position: relative;
padding-left: 14px;
margin-bottom: 14px;
}
.mu-panel h2::before {
content: "";
position: absolute;
left: 0;
top: 4px;
width: 6px;
height: 24px;
border-radius: 999px;
background: linear-gradient(180deg, #ec4899, #8b5cf6);
}
.mu-route-tools {
display: flex;
align-items: center;
gap: 8px;
margin: 0 0 12px;
flex-wrap: wrap;
}
.mu-route-filter {
flex: 1;
min-width: 240px;
border: 1px solid rgba(214, 199, 226, 0.9);
border-radius: 12px;
padding: 10px 12px;
font-size: .9rem;
color: var(--mu-ink);
background: linear-gradient(180deg, #ffffff, #f8fbff);
outline: none;
box-shadow: 0 2px 4px rgba(0,0,0,.02);
}
.mu-route-filter:focus {
border-color: #c9a9eb;
box-shadow: 0 0 0 3px rgba(122, 76, 192, 0.12);
}
.mu-route-count {
border: 1px solid rgba(233, 200, 251, 0.9);
background: linear-gradient(135deg, #faf5ff, #fdf2f8);
color: #6b21a8;
border-radius: 999px;
padding: 8px 12px;
font-size: .8rem;
font-weight: 700;
}
.mu-stop-expander {
border: 1px solid rgba(243, 228, 238, 0.95);
border-radius: 14px;
margin-bottom: 8px;
overflow: hidden;
background: linear-gradient(180deg, #fff, #fffafe);
}
.mu-stop-expander[open] {
border-color: rgba(226, 201, 245, 0.95);
box-shadow: 0 8px 18px rgba(122, 76, 192, 0.10);
}
.mu-stop-expander > summary {
background: linear-gradient(180deg, #fff, #fff6fb);
padding: 14px;
/* flex + wrap: จอกว้างเรียงบรรทัดเดียว / จอแคบพับลงมา ไม่ทับกัน */
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
cursor: pointer;
list-style: none;
}
.mu-stop-expander > summary::-webkit-details-marker { display: none; }
.mu-stop-list > li:nth-child(4n + 1) .mu-stop-expander > summary { border-left: 4px solid #8b5cf6; }
.mu-stop-list > li:nth-child(4n + 2) .mu-stop-expander > summary { border-left: 4px solid #38bdf8; }
.mu-stop-list > li:nth-child(4n + 3) .mu-stop-expander > summary { border-left: 4px solid #f472b6; }
.mu-stop-list > li:nth-child(4n + 4) .mu-stop-expander > summary { border-left: 4px solid #34d399; }
.mu-stop-expander-body {
background: linear-gradient(180deg, #fffcff, #fffcfd);
padding-left: 58px;
border-top: 1px solid #f6eaf2;
}
.mu-toolbar {
margin-top: 10px;
margin-bottom: 12px;
background: rgba(255,255,255,.8);
backdrop-filter: blur(8px);
border: 1px solid rgba(231, 224, 246, 0.9);
border-radius: 14px;
padding: 10px;
}
@media (max-width: 980px) {
.mu-stop-hero {
grid-template-columns: 1fr;
}
.mu-hero-metric-grid {
grid-template-columns: 1fr 1fr;
}
}
@media (max-width: 640px) {
.mu-hero-metric-grid { grid-template-columns: 1fr; }
.mu-hero-metric { min-width: 0; overflow-wrap: anywhere; }
.mu-stop-summary-rail {
gap: 6px;
}
/* จอแคบ: จัด summary เป็น 3 แถวอ่านง่าย — chip+badge / ชื่อสาย / รอบ+ลูกศร */
.mu-stop-expander > summary {
row-gap: 9px;
align-items: flex-start;
}
.mu-stop-summary-main { flex: 1 1 100%; order: 5; }
.mu-stop-summary-rail {
flex: 1 1 100%;
order: 6;
margin-left: 0;
justify-content: space-between;
}
.mu-next-arrival {
font-size: .72rem;
}
.mu-stop-expander-body {
padding-left: 14px;
}
.mu-route-filter {
min-width: 100%;
}
}
@keyframes muPulse {
0% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.38); }
70% { box-shadow: 0 0 0 8px rgba(236, 72, 153, 0); }
100% { box-shadow: 0 0 0 0 rgba(236, 72, 153, 0); }
}
/* === Modern image polish === */
.mu-logo-img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.mu-stop-hero-photo { width: 100%; height: 220px; object-fit: cover; border-radius: 16px; display: block; margin-bottom: 12px; box-shadow: 0 10px 24px rgba(63,43,94,.16); }
/* รูปสำรอง (สถานียังไม่มีรูป) — เป็นไอคอนโปร่งใส จึงใช้ contain + พื้นอ่อน ไม่ให้ยืด/ตัด */
.mu-stop-hero-photo.is-fallback {
object-fit: contain; padding: 22px; box-sizing: border-box;
background: #f7f4fd; box-shadow: none; border: 1px solid #e8e4f2;
}
.mu-nearby {
background: #fff; border: 1px solid var(--mu-border); border-radius: 20px;
padding: 18px; margin: 14px 0; box-shadow: 0 10px 24px rgba(63,43,94,.06);
}
.mu-nearby h2 { margin: 0 0 4px; font-size: 1.15rem; color: var(--mu-ink); }
.mu-nearby p.sub { margin: 0 0 14px; color: var(--mu-muted); font-size: .85rem; }
.mu-nearby-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mu-nearby-card { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 6px 14px rgba(63,43,94,.10); cursor: pointer; transition: transform .2s ease; }
.mu-nearby-card:hover { transform: translateY(-3px); }
.mu-nearby-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.mu-nearby-card:hover img { transform: scale(1.06); }
.mu-nearby-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,23,42,0) 50%, rgba(15,23,42,.65) 100%); }
.mu-nearby-card .cap { position: absolute; left: 12px; right: 12px; bottom: 10px; color: #fff; z-index: 1; font-weight: 700; font-size: .92rem; text-shadow: 0 1px 3px rgba(0,0,0,.4); }
.mu-nearby-card .cap small { display: block; font-weight: 500; opacity: .85; font-size: .76rem; }
+366
View File
@@ -0,0 +1,366 @@
/* Ported from busStop.html <style> block */
.mu-page {
background:
linear-gradient(180deg, #ffffff 0%, #faf7ff 55%, #f4f0fd 100%);
}
.mu-hero-panel {
background: linear-gradient(135deg, #ffffff 0%, #f7f2ff 60%, #efe6ff 100%);
border: 1px solid #e7e0f6;
border-radius: 8px;
padding: 18px;
margin-bottom: 16px;
display: grid;
grid-template-columns: 1.1fr .9fr;
gap: 16px;
align-items: stretch;
}
.mu-hero-title { margin: 0; font-size: 1.6rem; line-height: 1.2; color: #1f2a44; }
.mu-hero-subtitle { margin: 8px 0 0; color: #66728f; font-size: .95rem; max-width: 48rem; }
.mu-kpi-grid { display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.mu-kpi {
border: 1px solid #d9c9f2;
border-radius: 8px;
padding: 12px;
background: linear-gradient(135deg, #f0e7fc, #e6d8f8);
}
.mu-kpi .label { margin: 0; color:#6b5b8a; font-size:.76rem; font-weight:700; letter-spacing:.03em; text-transform: uppercase; }
.mu-kpi .value { margin:4px 0 0; color:#2b1f4d; font-size:1.03rem; font-weight:800; font-variant-numeric: tabular-nums; }
.mu-hero-map {
border: 1px solid #e7e0f6;
border-radius: 8px;
padding: 14px;
display:flex;
flex-direction:column;
gap: 10px;
justify-content:space-between;
}
.mu-hero-map-title { margin:0; font-size:1rem; font-weight:800; color:#2c3e50; }
.mu-hero-map-box {
flex:1;
min-height: 160px;
border-radius: 8px;
background: linear-gradient(135deg, #faf7ff, #f2ecfd);
border: 1px dashed #d9cdf2;
display:flex;
align-items:center;
justify-content:center;
color:#66728f;
font-weight:700;
text-align:center;
padding: 18px;
}
/* ===== Search toolbar: 2 โหมด ===== */
.mu-toolbar {
background: linear-gradient(135deg, #f0e7fc, #e6d8f8);
border: 1px solid #d9c9f2;
border-radius: 8px;
padding: 14px;
margin-bottom: 12px;
}
.mu-search-tabs {
display: flex;
gap: 0;
border: 1px solid #d5c3f0;
border-radius: 8px;
overflow: hidden;
margin-bottom: 12px;
width: fit-content;
max-width: 100%;
}
.mu-search-tab {
font-family: inherit;
font-size: .88rem;
font-weight: 700;
padding: 10px 18px;
border: none;
border-right: 1px solid #d5c3f0;
background: #fff;
color: #5b3b71;
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 7px;
transition: background .15s ease, color .15s ease;
}
.mu-search-tab:last-child { border-right: none; }
.mu-search-tab:hover { background: #f3ecff; }
.mu-search-tab.active { background: linear-gradient(135deg, #7a4cc0, #b07ce0); color: #fff; }
.mu-search-tab .ic { width: 16px; height: 16px; }
.mu-search-mode { display: block; }
/* กัน .display:block ทับ attribute [hidden] — โหมดที่ไม่ได้ใช้ต้องซ่อนจริง */
.mu-search-mode[hidden],
.mu-numpad[hidden] { display: none; }
.mu-search-field {
display: flex;
align-items: center;
gap: 10px;
border: 1px solid #d5c3f0;
border-radius: 8px;
background: #fff;
padding: 0 12px;
min-height: 48px;
transition: border-color .15s ease;
}
.mu-search-field:focus-within { border-color: #a855f7; }
.mu-search-field .ic { position: static; width: 18px; height: 18px; color: #8b5cf6; flex: none; }
.mu-search-field input {
flex: 1;
min-width: 0;
border: none;
outline: none;
background: transparent;
font-family: inherit;
font-size: 1rem;
font-weight: 600;
color: #1f2a44;
padding: 12px 0;
}
.mu-search-field input::placeholder { color: #6f7b95; font-weight: 500; opacity: .8; }
/* ===== ช่องรหัสป้าย 6 ช่อง: [x] + [x][x][x][x] ===== */
.mu-code-boxes {
display: flex;
align-items: center;
gap: 8px;
}
.mu-code-cell {
width: 46px;
height: 54px;
text-align: center;
font-family: "IBM Plex Mono", ui-monospace, monospace;
font-size: 1.35rem;
font-weight: 700;
font-variant-numeric: tabular-nums;
color: #1f2a44;
background: #fff;
border: 2px solid #e0d6f5;
border-radius: 8px;
outline: none;
padding: 0;
transition: border-color .15s ease, background .15s ease;
-moz-appearance: textfield;
}
.mu-code-cell::-webkit-outer-spin-button,
.mu-code-cell::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.mu-code-cell::placeholder { color: #7a6a9e; font-weight: 600; opacity: 1; }
.mu-code-cell:focus {
border-color: #a855f7;
background: #faf7ff;
}
.mu-code-cell:disabled { opacity: .45; }
/* 2 หลักหน้า (ก่อน +) — เน้นให้เห็นว่าเป็นหัวของรหัส */
.mu-code-cell:nth-of-type(1),
.mu-code-cell:nth-of-type(2) {
border-color: #b07ce0;
background: linear-gradient(135deg, #7a4cc0, #b07ce0);
color: #fff;
}
.mu-code-cell:nth-of-type(1)::placeholder,
.mu-code-cell:nth-of-type(2)::placeholder { color: #fff; opacity: .8; font-weight: 600; }
.mu-code-cell:nth-of-type(1):focus,
.mu-code-cell:nth-of-type(2):focus { border-color: #6d28d9; }
.mu-code-plus {
font-family: "IBM Plex Mono", ui-monospace, monospace;
font-size: 1.5rem;
font-weight: 700;
color: #7a4cc0;
line-height: 1;
padding: 0 2px;
}
.mu-code-display {
margin: 10px 0 0;
font-family: "IBM Plex Mono", ui-monospace, monospace;
font-size: .9rem;
font-weight: 700;
color: #6d28d9;
font-variant-numeric: tabular-nums;
}
.mu-search-hint { margin: 8px 0 0; font-size: .82rem; color: #6f7b95; }
/* numpad — โชว์เฉพาะจอเล็ก */
.mu-numpad { display: none; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; max-width: 320px; }
.mu-numpad button {
font-family: "IBM Plex Mono", ui-monospace, monospace;
font-size: 1.2rem;
font-weight: 700;
padding: 14px 0;
border: 1px solid #e0d6f5;
border-radius: 8px;
background: #fff;
color: #1f2a44;
cursor: pointer;
font-variant-numeric: tabular-nums;
transition: background .12s ease, border-color .12s ease;
}
.mu-numpad button:active { background: #f3ecff; border-color: #b07ce0; }
.mu-numpad button[data-key="back"] { grid-column: span 2; font-size: 1rem; }
/* suggest */
.mu-suggest {
border: 1px solid #e0d6f5;
border-radius: 8px;
margin-top: 8px;
overflow: hidden;
background: #fff;
max-height: 260px;
overflow-y: auto;
}
.mu-suggest-item {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
width: 100%;
padding: 11px 14px;
border: none;
border-bottom: 1px solid #f1edfa;
background: #fff;
font-family: inherit;
font-size: .9rem;
text-align: left;
cursor: pointer;
color: #1f2a44;
}
.mu-suggest-item:last-child { border-bottom: none; }
.mu-suggest-item:hover { background: #faf7ff; }
.mu-suggest-code {
font-family: "IBM Plex Mono", ui-monospace, monospace;
font-size: .85rem;
font-weight: 700;
color: #fff;
background: linear-gradient(135deg, #7a4cc0, #b07ce0);
padding: 3px 9px;
border-radius: 4px;
flex: none;
font-variant-numeric: tabular-nums;
}
.mu-toolbar-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mu-show-more { display: flex; justify-content: center; margin: 14px 0 4px; }
.mu-show-more .mu-btn { min-width: 220px; }
.mu-stop-card.is-stub { min-height: 120px; background: #faf8ff; border: 1px dashed #ddd2f2; box-shadow: none; }
.mu-toolbar-count { margin: 10px 0 0; font-size: .84rem; color: #6f7b95; }
.mu-toolbar-count b { color: #7a4cc0; font-variant-numeric: tabular-nums; }
/* ===== การ์ดป้าย ===== */
.mu-stop-grid {
display:grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 14px;
padding-left: 0;
list-style: none;
}
.mu-stop-grid li {
margin: 0;
border-radius: 8px;
overflow: hidden;
border: 1px solid #e7e0f6;
background: #fff;
transition: border-color .15s ease, transform .15s ease;
}
.mu-stop-grid li:hover { border-color: #a855f7; transform: translateY(-1px); }
.mu-stop-card {
height: 100%;
padding: 16px;
background: #fff;
display:flex;
flex-direction:column;
gap: 12px;
}
.mu-stop-top { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
.mu-type-pill {
display:inline-block;
border-radius: 4px;
padding: 4px 9px;
font-size:.74rem;
font-weight:800;
letter-spacing:.01em;
}
.mu-type-pill.local { background: #f3ecff; color: #6d28d9; }
.mu-stop-title { margin:6px 0 0; font-size:1.05rem; line-height:1.3; color:#1f2a44; }
.mu-loc { color:#6f7b95; font-size:.85rem; margin-top:4px; }
.mu-chip-row { display:flex; flex-wrap:wrap; gap:8px; }
.mu-chip {
display:inline-flex;
align-items:center;
gap:6px;
padding:5px 10px;
border-radius: 4px;
background: #faf7ff;
border: 1px solid #e7e0f6;
color:#5b3b71;
font-size:.8rem;
font-weight:700;
}
.mu-chip.route { background: #f3ecff; color:#6d28d9; border-color: #e0d6f5; }
/* ชิปสายที่เป็นลิงก์ → ไปหน้าเช็กเวลาของสายนั้น (หน้าตาเหมือนชิปเดิม + มี hover/focus) */
a.mu-chip.route { text-decoration: none; cursor: pointer; }
a.mu-chip.route:hover { background:#e9dcff; border-color:#cdb5f2; }
a.mu-chip.route:focus-visible { outline: 2px solid #7a4cc0; outline-offset: 2px; }
/* รหัสป้าย = ม่วง-ขาว แบบเดียวกับป้ายสายรถ */
.mu-chip.count.stop-code {
background: linear-gradient(135deg, #7a4cc0, #b07ce0);
color: #fff;
border-color: transparent;
font-family: "IBM Plex Mono", ui-monospace, monospace;
font-size: .92rem;
font-weight: 700;
letter-spacing: .05em;
font-variant-numeric: tabular-nums;
flex: none;
padding: 7px 11px;
}
.mu-stop-action { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:12px; }
.mu-stop-note { color:#6f7b95; font-size:.8rem; margin:0; }
.mu-stop-thumb {
display: block;
width: 100%;
height: 180px;
object-fit: cover;
background: #f7f9fd;
border-bottom: 1px solid #e7e0f6;
}
/* รูป placeholder — ย่อและจัดกลาง ไม่ให้ครอปโลโก้ */
.mu-stop-thumb.is-placeholder {
object-fit: contain;
padding: 34px;
background: linear-gradient(135deg, #faf7ff, #f2ecfd);
}
.mu-stop-empty {
grid-column: 1 / -1;
list-style: none;
padding: 40px 16px;
text-align: center;
color: #6f7b95;
border: 1px dashed #e0d6f5;
border-radius: 8px;
background: #fff;
}
@media (max-width: 980px) {
.mu-hero-panel { grid-template-columns: 1fr; }
.mu-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mu-stop-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
.mu-kpi-grid { grid-template-columns: 1fr; }
.mu-numpad { display: grid; }
.mu-search-tabs { width: 100%; }
.mu-search-tab { flex: 1; justify-content: center; padding: 10px 12px; font-size: .84rem; }
.mu-stop-action { flex-direction: column; align-items: flex-start; }
/* กล่องรหัส: ย่อให้พอดีจอ 375px (5×40 + เครื่องหมาย + gap = ~244px) */
.mu-code-boxes { gap: 5px; }
.mu-code-cell { width: 40px; height: 48px; font-size: 1.15rem; }
.mu-code-plus { font-size: 1.25rem; }
}
.mu-hero-map-photo { width: 100%; height: 100%; min-height: 160px; object-fit: cover; border-radius: 8px; display: block; }
+286
View File
@@ -0,0 +1,286 @@
/* ============================================================
Atroute — Mobile-first responsive layer
------------------------------------------------------------
base = มือถือ (จอเล็กสุด iPhone 8 = 375px, รองรับ SE 320px)
ขยายขึ้นด้วย min-width:
≥480px มือถือใหญ่
≥640px มือถือใหญ่ / แท็บเล็ตเล็ก
≥768px iPad แนวตั้ง / แท็บเล็ต
≥1024px iPad แนวนอน / แล็ปท็อป
≥1280px คอม 19.5"–24"
≥1600px คอม 27" / 1440p+
หมายเหตุ: component ที่ router inject จาก partial (อยู่ใน #view)
ต้องใช้ prefix `#view` — เพราะ <style> ของ partial ถูก inject
ทีหลัง จึงต้องชนะด้วย specificity (ID > class)
============================================================ */
/* ---------- base: มือถือ ---------- */
html { -webkit-text-size-adjust: 100%; }
body { font-size: 16px; }
/* --- ขยายขนาด component บนมือถือ (desktop-oriented เดิมเล็กเกิน) --- */
/* topbar อยู่ใน section ด้านล่าง — content ใน #view ใช้ prefix ชนะ partial style */
#view .mu-btn { font-size: .95rem; min-height: 48px; }
#view .mu-badge { font-size: 1.05rem; }
#view .mu-zone-tag { font-size: 1rem; }
#view .mu-zone-desc, #view .mu-zone-sub { font-size: 1.05rem; }
#view .mu-route-name { font-size: 1.2rem; }
#view .mu-next-trip { font-size: .95rem; }
#view .mu-meta-pill { font-size: .95rem; }
#view .mu-route-type-badge { font-size: .85rem; }
#view .mu-stop-summary-meta { font-size: .85rem; }
#view .mu-time-chip { font-size: .95rem; min-height: 40px; }
#view .mu-info-card .label { font-size: .85rem; }
#view .mu-info-card .value { font-size: 1.1rem; }
#view .mu-stat p { font-size: .9rem; }
#view .mu-hero-lead { font-size: 1rem; }
#view .mu-select-box select { font-size: 1rem; }
/* --- กัน overflow พื้นฐาน (padding/รูป/grid/ข้อความยาว ไม่ให้ล้นจอมือถือ) --- */
*, *::before, *::after { box-sizing: border-box; }
img, svg, video { max-width: 100%; height: auto; }
/* grid/flex child ต้อง shrink ได้ (กัน min-width:auto ล้น container) */
#view .mu-hero-panel > *,
#view .mu-layout-grid > *,
#view .mu-hero-metric-grid > *,
#view .mu-stop-summary-main { min-width: 0; }
/* ข้อความยาวไม่ break (เช่น mock state query string / ชื่อยาว) */
#view .mu-inline-context strong,
#view .mu-stop-hero-title,
#view .mu-stop-hero-sub { overflow-wrap: anywhere; }
.mu-container { padding: 0 16px; }
main.mu-container { padding-top: 24px; padding-bottom: 24px; }
/* --- topbar: hamburger menu บนมือถือ (brand + lang + ☰ บรรทัดเดียว) --- */
.mu-topbar-inner { gap: 8px; padding: 10px 14px; flex-wrap: wrap; }
.mu-logo-img { width: 36px; height: 36px; }
.mu-brand { gap: 8px; flex-shrink: 0; }
.mu-brand-title { font-size: 1.05rem; white-space: nowrap; }
.mu-brand-subtitle { display: none; } /* กันล้น — โผล่กลับ ≥768px */
.mu-nav { display: none; } /* ซ่อน nav — ใช้ hamburger แทน */
.mu-lang-switch { order: 3; margin-left: auto; padding: 2px; }
.mu-lang-btn { font-size: .8rem; padding: 8px 12px; min-height: 40px; min-width: 40px; } /* tap target */
.mu-action-btn { display: none; } /* กันล้นบนจอเล็ก — โผล่กลับ ≥1024px */
/* hamburger menu (ขวาสุด) */
.mu-menu { display: block; position: relative; order: 4; margin-left: 2px; }
.mu-menu-btn {
display: flex; align-items: center; justify-content: center;
width: 44px; height: 44px;
border: none; background: transparent; cursor: pointer;
color: #1f2a44; list-style: none;
border-radius: 10px;
}
.mu-menu-btn::-webkit-details-marker { display: none; }
.mu-menu-btn svg { width: 26px; height: 26px; }
.mu-menu-panel {
position: absolute; top: calc(100% + 8px); right: 0;
min-width: 220px;
background: #fff; border: 1px solid #e7e2f6; border-radius: 14px;
box-shadow: 0 12px 28px rgba(20, 40, 90, .16);
padding: 8px;
z-index: 60;
display: flex; flex-direction: column; gap: 2px;
}
.mu-menu-panel a {
display: flex; align-items: center;
min-height: 48px; padding: 10px 14px;
border-radius: 10px;
color: #1f2a44; text-decoration: none;
font-size: 1.05rem; font-weight: 600;
}
.mu-menu-panel a:hover, .mu-menu-panel a:active { background: #f5efff; }
/* --- hero (หน้าแรก) — ช่องว่าง + ตัวหนังสือใหญ่ขึ้น --- */
.mu-hero { padding: 30px 0 34px; }
.mu-hero h1 { font-size: clamp(1.9rem, 8vw, 2.9rem); margin-bottom: 14px; line-height: 1.28; }
.mu-badge { margin-bottom: 10px; padding: 5px 14px; }
.mu-hero-lead { margin: 0 0 8px; }
.mu-hero-actions { flex-direction: column; align-items: stretch; padding: 0 6px; margin-top: 10px; gap: 8px; }
.mu-pill-link { justify-content: center; padding: 11px 18px; font-size: .9rem; }
/* --- ตัวเลือกจังหวัด/สถานี (หน้าแรก) --- */
#view .mu-route-selector { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 12px; }
#view .mu-route-selector select,
#view .mu-route-selector .mu-select-arrow { width: 100%; }
/* flex-basis 250px (จาก index.html) กลายเป็นความสูงตอน column — reset เป็น content height */
#view .mu-route-selector .mu-select-field { width: 100%; flex: 0 0 auto; }
#view .mu-select-arrow { transform: rotate(90deg); justify-content: center; }
/* --- marquee (สปอนเซอร์) — การ์ดเล็กลงบนมือถือ --- */
.mu-marquee-track { padding: 2px 0 10px; }
.mu-marquee-tile { width: 132px; height: 68px; margin-right: 10px; border-radius: 10px; }
/* --- โซนเส้นทาง + การ์ด — ระยะห่างกระชับ --- */
main.mu-container { padding-top: 14px; padding-bottom: 14px; }
.mu-zone { margin-bottom: 20px; }
.mu-zone-head { margin-bottom: 10px; gap: 4px 10px; }
/* --- หัวโซน: ป้ายหัวข้อ + บรรทัดข้อมูล (มือถือ = เรียงลงมาเต็มความกว้าง) ---
ใช้ #view เพื่อชนะ <style> ของ partial ที่ inject ทีหลัง */
#view .mu-zone-head .mu-zone-desc { flex-basis: 100%; min-width: 0; line-height: 1.65; }
#view .mu-zone-meta { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
#view .mu-zone-seg { display: inline-flex; align-items: baseline; gap: 5px; min-width: 0; }
#view .mu-zone-seg:not(:last-child)::after { content: "\00b7"; color: #c4bcd8; margin-left: 8px; } /* คั่นท้ายชิ้น → ตัดบรรทัดแล้วจุดไม่ไปอยู่ต้นบรรทัด */
#view .mu-zone-seg .ic { align-self: center; flex: none; }
#view .mu-zone-now b { color: #1f2a44; font-variant-numeric: tabular-nums; }
#view .mu-zone-at { color: #8a93a8; } /* ชื่อสถานีในวงเล็บ — จางกว่ารอบรถ */
#view .mu-zone-updated { color: #8a7aa8; font-size: .95rem; }
.mu-grid { gap: 12px; }
.mu-route-info { padding: 16px 16px 18px; }
.mu-route-name { margin-bottom: 6px; }
.mu-route-chip-wrap { gap: 6px; }
.mu-next-trip { padding: 3px 10px; font-size: .74rem; }
/* --- busStop --- */
#view .mu-hero-panel { grid-template-columns: 1fr; padding: 14px; gap: 12px; }
#view .mu-hero-title { font-size: 1.35rem; }
#view .mu-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
#view .mu-toolbar { flex-direction: column; align-items: stretch; }
#view .mu-toolbar select,
#view .mu-toolbar .mu-btn { width: 100%; min-height: 44px; }
#view .mu-search-field { width: 100%; min-width: 0; }
#view .mu-search-field input { min-height: 44px; }
#view .mu-stop-grid { grid-template-columns: 1fr; gap: 12px; }
#view .mu-hero-map { min-height: 200px; }
/* --- busDetail / expanded --- */
#view .mu-layout-grid { grid-template-columns: 1fr; gap: 12px; }
#view .mu-page-title { font-size: 1.45rem; }
#view .mu-route-hero { padding: 16px; }
#view .mu-info-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
#view .mu-panel,
#view .mu-card-panel { padding: 14px; }
#view .mu-photo-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
#view .mu-quickpick { display: flex; flex-wrap: wrap; gap: 8px; }
#view .mu-inline-actions { flex-wrap: wrap; }
#view .mu-back-btn { width: 100%; justify-content: center; padding: 10px; min-height: 44px; }
#view .mu-schedule-note { font-size: .82rem; }
/* --- stopDetail --- */
#view .mu-hero-metric-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
#view .mu-live-clock-card { padding: 14px; }
#view .mu-stop-summary-rail { flex-wrap: wrap; }
#view .mu-time-chip { min-width: 0; }
#view .mu-contact-row { flex-wrap: wrap; }
/* --- credits --- */
#view .mu-credit-wrap { padding: 24px 16px 40px; }
#view .mu-credit-hero h1 { font-size: 1.5rem; }
#view .mu-credit-section { padding: 16px; }
/* --- footer --- */
.mu-site-footer { margin-top: 24px; padding: 28px 0 0; }
.mu-site-footer .mu-container { padding: 0 16px; }
.mu-footer-grid { grid-template-columns: 1fr; gap: 16px; }
.mu-footer-col ul a { padding: 5px 0; min-height: 34px; } /* tap target (กดได้ ≥34px) */
.mu-footer-contact a { min-height: 34px; } /* tap target */
.mu-sponsor-strip { grid-template-columns: repeat(2, 1fr); gap: 8px; }
/* ============================================================
≥480px — มือถือใหญ่
============================================================ */
@media (min-width: 480px) {
.mu-topbar-inner { padding: 12px 18px; }
.mu-hero-actions { flex-direction: row; justify-content: center; }
.mu-pill-link { width: auto; }
#view .mu-stop-grid { grid-template-columns: repeat(2, 1fr); }
#view .mu-photo-strip { grid-template-columns: repeat(3, 1fr); }
.mu-sponsor-strip { grid-template-columns: repeat(3, 1fr); }
}
/* ============================================================
≥640px — มือถือใหญ่ / แท็บเล็ตเล็ก
============================================================ */
@media (min-width: 640px) {
body { font-size: 16px; }
.mu-container { padding: 0 28px; }
.mu-brand-title { font-size: 1.05rem; }
.mu-topbar-inner { gap: 18px; padding: 14px 28px; flex-wrap: nowrap; }
.mu-logo-img { width: 44px; height: 44px; }
.mu-nav { order: 0; width: auto; margin-left: auto; justify-content: flex-start; gap: 24px; display: flex; }
.mu-nav a { font-size: .92rem; }
.mu-menu { display: none; }
.mu-lang-btn { font-size: .72rem; padding: 6px 10px; }
.mu-hero { padding: 44px 0 52px; }
.mu-hero-actions { margin-top: 14px; }
.mu-marquee-tile { width: 170px; height: 96px; margin-right: 16px; }
#view .mu-route-selector { flex-direction: row; align-items: flex-end; justify-content: center; }
#view .mu-route-selector select,
#view .mu-route-selector .mu-select-field { width: auto; }
#view .mu-select-arrow { transform: none; }
#view .mu-toolbar { flex-direction: row; flex-wrap: wrap; align-items: center; }
#view .mu-toolbar select,
#view .mu-toolbar .mu-btn { width: auto; }
#view .mu-search-field { flex: 1; min-width: 200px; }
#view .mu-back-btn { width: auto; }
.mu-footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ============================================================
≥768px — iPad แนวตั้ง / แท็บเล็ต
============================================================ */
@media (min-width: 768px) {
.mu-brand-subtitle { display: block; font-size: .72rem; }
#view .mu-kpi-grid { grid-template-columns: repeat(4, 1fr); }
#view .mu-info-grid { grid-template-columns: repeat(4, 1fr); }
#view .mu-hero-metric-grid { grid-template-columns: repeat(4, 1fr); }
#view .mu-photo-strip { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
#view .mu-hero-panel { grid-template-columns: 1.1fr .9fr; padding: 18px; }
.mu-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
.mu-sponsor-strip { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
/* หัวโซนบนจอใหญ่: ป้ายหัวข้ออยู่ซ้าย · บรรทัดข้อมูลเป็นคอลัมน์ขวา
(อ่านง่ายกว่าเดิมที่ข้อความยืดเต็มความกว้างจอ ~1144px) */
#view .mu-zone-head { display: grid; grid-template-columns: auto minmax(0, 1fr);
align-items: start; column-gap: 14px; row-gap: 5px; }
#view .mu-zone-head .mu-zone-desc { grid-column: 2; max-width: 82ch; }
}
/* ============================================================
≥1024px — iPad แนวนอน / แล็ปท็อป
============================================================ */
@media (min-width: 1024px) {
.mu-hero { padding: 56px 0 64px; }
.mu-action-btn { display: inline-flex; }
.mu-hero h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.mu-hero-actions { padding: 0; }
#view .mu-layout-grid { grid-template-columns: 1.35fr .9fr; gap: 16px; }
#view .mu-hero-title { font-size: 1.8rem; }
#view .mu-hero-map { min-height: auto; }
#view .mu-photo-strip { gap: 10px; }
}
/* ============================================================
≥1280px — คอม 19.5"–24"
============================================================ */
@media (min-width: 1280px) {
.mu-container { max-width: 1200px; }
#view .mu-stop-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
#view .mu-credit-wrap { padding: 40px 28px 56px; }
}
/* ============================================================
≥1600px — คอม 27" / 1440p+
============================================================ */
@media (min-width: 1600px) {
body { font-size: 17px; }
.mu-container { max-width: 1280px; }
#view .mu-photo-strip { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
#view .mu-stop-grid { grid-template-columns: repeat(4, 1fr); }
}
/* เวลาที่ "คำนวณจากต้นทาง" (ไม่ใช่ตารางจริงของผู้ประกอบการ) — ทำเครื่องหมายให้ผู้ใช้รู้ ไม่ให้เข้าใจผิด */
.mu-time-grid.is-est .mu-time-chip {
border: 1px dashed #a892d4;
background: #faf7ff;
color: #6b5a8e;
font-style: italic;
}
.mu-est-note {
margin: 6px 0 0;
font-size: .78rem;
color: #6b5a8e;
}
+320
View File
@@ -0,0 +1,320 @@
/* Ported from web-at-transit-mock/ui/index.html <style> */
.mu-card.empty { width: 100%; padding: 16px; text-align: center; color: #6f7b95; background: #fff7fb; border: 1px dashed #f4c7df; }
a.mu-card { text-decoration: none; color: inherit; display: block; }
/* Page-specific: hero */
.mu-hero { position: relative; overflow: hidden; }
.mu-hero-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: saturate(1.1); z-index: 0; pointer-events: none; }
.mu-hero-content { position: relative; z-index: 1; }
/* ===== maintheme-style cards: solid gradient block with big centered number ===== */
.mu-card-head {
aspect-ratio: auto;
height: 130px;
display: flex;
align-items: center;
justify-content: center;
background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
position: relative;
}
.mu-card-head::after { display: none; }
.mu-card-head .mu-route-number {
position: static;
color: #fff;
font-size: 56px;
font-weight: 900;
text-shadow: 0 4px 12px rgba(0,0,0,.25);
letter-spacing: .02em;
}
/* zone tint — พื้นหลังการ์ดตามหมวดเส้นทาง (ตัวการ์ด = เฉดอ่อน / หัวการ์ด = เฉดสด) */
.mu-zone:has(.tag-sky) { --zone-tint: #eff6ff; }
.mu-zone:has(.tag-purple) { --zone-tint: #f5f3ff; }
.mu-zone:has(.tag-pink) { --zone-tint: #fdf2f8; }
.mu-zone:has(.tag-yellow) { --zone-tint: #fffbeb; }
.mu-zone .mu-card,
.mu-zone .mu-route-info { background: var(--zone-tint, #fff); }
.mu-zone:has(.tag-sky) .mu-card-head { background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%); }
.mu-zone:has(.tag-purple) .mu-card-head { background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%); }
.mu-zone:has(.tag-pink) .mu-card-head { background: linear-gradient(135deg, #ec4899 0%, #f472b6 100%); }
.mu-zone:has(.tag-yellow) .mu-card-head { background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%); }
/* การ์ดที่ยังไม่มีข้อมูล (is-empty): พื้นเทา + N/A แทนเลขสาย ไม่มีเงาตัวอักษร */
.mu-card.is-empty,
.mu-card.is-empty .mu-route-info { background: #f0f2f5; }
.mu-card.is-empty .mu-card-head { background: #e4e7eb; }
.mu-card.is-empty .mu-route-number { color: #5b636e !important; text-shadow: none !important; font-size: 42px !important; }
.mu-card.is-empty { cursor: default; }
.mu-card.is-empty:hover { transform: none; box-shadow: 0 4px 14px rgba(20,40,90,.06); }
.mu-route-info { padding: 14px 16px 16px; background: #fff; }
.mu-route-name { margin: 0 0 10px; font-size: .95rem; color: #1f2a44; font-weight: 700; }
/* ===== maintheme.png look: topbar, hero, zones, grid, summary, footer ===== */
body.main-theme-page { margin: 0; font-family: 'K2D','Noto Sans Thai','Prompt',system-ui,sans-serif; color: #1f2a44; background: #f7f9fd; }
.mu-container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
/* Topbar */
/* z-index 1100 — ต้องสูงกว่า Leaflet (pane 400 · control 800 · .leaflet-top 1000)
ไม่งั้นแผนที่จะบัง nav ตอนเลื่อน */
.mu-topbar { background: #ffffff; border-bottom: 1px solid #e9eef7; position: sticky; top: 0; z-index: 1100; box-shadow: 0 2px 8px rgba(20,40,90,.04); }
.mu-topbar-inner { display: flex; align-items: center; gap: 18px; padding: 14px 28px; }
.mu-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.mu-logo-img { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(135deg,#8b5cf6,#ec4899); padding: 4px; transition: transform .15s ease; }
.mu-brand:hover .mu-logo-img { transform: scale(1.06); }
.mu-brand-title { display: block; margin: 0; font-weight: 800; font-size: 1.05rem; color: #1f2a44; transition: color .15s ease; }
.mu-brand:hover .mu-brand-title { color: #7a4cc0; }
.mu-brand-subtitle { display: block; margin: 0; font-size: .72rem; color: #6f7b95; }
.mu-nav { margin-left: auto; display: flex; gap: 28px; }
.mu-nav a { color: #4a5876; text-decoration: none; font-size: .92rem; font-weight: 600; padding: 6px 4px; border-bottom: 2px solid transparent; }
.mu-nav a.active { color: #d6336c; border-bottom-color: #ec4899; }
.mu-nav a:hover { color: #1f2a44; }
.mu-action-btn { background: linear-gradient(135deg,#a855f7,#7c3aed); color:#fff; padding: 10px 22px; border-radius: 999px; text-decoration:none; font-weight: 700; font-size:.88rem; box-shadow: 0 6px 14px rgba(124,58,237,.3); }
/* Hero */
.mu-hero { position: relative; overflow: hidden; padding: 56px 0 64px; background: linear-gradient(180deg, #f0ebff 0%, #ffe8ee 50%, #fff4d6 100%); text-align: center; }
.mu-hero-map { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; filter: saturate(1.1); z-index: 0; pointer-events: none; }
.mu-blob { position: absolute; border-radius: 50%; filter: blur(50px); opacity: .55; z-index: 0; }
.mu-blob.one { width: 220px; height: 220px; background: #b794f4; top: -50px; left: 8%; }
.mu-blob.two { width: 260px; height: 260px; background: #f9a8d4; top: 40%; right: 8%; }
.mu-blob.three{ width: 180px; height: 180px; background: #fde68a; bottom: -40px; left: 38%; }
.mu-hero-content { position: relative; z-index: 1; }
.mu-badge { display: inline-block; background: rgba(255,255,255,.7); backdrop-filter: blur(6px); color: #6d28d9; padding: 6px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700; margin-bottom: 18px; box-shadow: 0 4px 10px rgba(124,58,237,.12); }
.mu-hero h1 { margin: 0 0 26px; font-size: 2.2rem; font-weight: 800; line-height: 1.35; color: #1f2a44; }
.mu-gradient-text { background: linear-gradient(120deg, #d946ef 10%, #a855f7 60%, #6366f1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
/* ===== Route selector: จังหวัด → สถานีขนส่งผู้โดยสาร (cascade) ===== */
.mu-route-selector {
display: flex;
align-items: flex-end;
justify-content: center;
gap: 14px;
flex-wrap: wrap;
max-width: 780px;
margin: 2px auto 0;
}
.mu-select-field { flex: 1 1 250px; min-width: 240px; text-align: left; }
.mu-route-selector.single { max-width: 440px; }
.mu-select-field > label {
display: flex;
align-items: center;
gap: 6px;
margin: 0 0 7px 8px;
font-size: .8rem;
font-weight: 700;
color: #6f7b95;
letter-spacing: .01em;
}
.mu-select-field > label svg { width: 15px; height: 15px; color: #8b5cf6; flex: none; }
.mu-select-box {
position: relative;
display: flex;
align-items: center;
background: #fff;
border: 1px solid #e7e2f6;
border-radius: 14px;
box-shadow: 0 8px 20px rgba(63, 43, 94, .08);
transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.mu-select-box:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(63,43,94,.12); }
.mu-select-box:focus-within { border-color: #c8b4ec; box-shadow: 0 0 0 4px rgba(122,76,192,.14), 0 10px 24px rgba(63,43,94,.10); }
.mu-select-box .mu-select-icon { width: 20px; height: 20px; margin-left: 14px; color: #8b5cf6; flex: none; }
.mu-select-box select {
flex: 1;
min-width: 0;
border: none;
outline: none;
background: transparent;
font-family: inherit;
font-size: .95rem;
font-weight: 600;
color: #1f2a44;
padding: 14px 12px;
cursor: pointer;
appearance: none;
-webkit-appearance: none;
}
.mu-select-box .mu-select-chevron { width: 18px; height: 18px; margin-right: 14px; color: #8b5cf6; flex: none; pointer-events: none; }
.mu-select-arrow { display: none; align-self: center; color: #c4b5e6; font-weight: 700; font-size: 1.15rem; padding-bottom: 18px; }
.mu-select-hint { margin: 12px 0 0; font-size: .84rem; color: #6f7b95; min-height: 1.25em; }
.mu-select-hint b { color: #7a4cc0; font-weight: 700; }
/* ===== Hero actions ===== */
.mu-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.mu-pill-link {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 11px 20px;
border-radius: 999px;
background: #fff;
border: 1px solid #e7e2f6;
color: #5b3b71;
text-decoration: none;
font-size: .88rem;
font-weight: 700;
box-shadow: 0 6px 16px rgba(63,43,94,.08);
transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.mu-pill-link:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(63,43,94,.14); border-color: #d8c9f2; }
.mu-pill-link.primary { background: linear-gradient(135deg, #a855f7, #7c3aed); color: #fff; border-color: transparent; box-shadow: 0 8px 18px rgba(124,58,237,.28); }
@media (min-width: 720px) { .mu-select-arrow { display: block; } }
@media (prefers-reduced-motion: reduce) {
.mu-select-box, .mu-pill-link { transition: none; }
}
/* Zones / grid */
main.mu-container { padding-top: 40px; padding-bottom: 40px; }
.mu-zone { margin-bottom: 32px; }
.mu-zone-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 14px; }
.mu-zone-tag { padding: 5px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.mu-zone-tag.tag-sky { background: #dbeafe; color: #1d4ed8; }
.mu-zone-tag.tag-pink { background: #fce7f3; color: #be185d; }
.mu-zone-tag.tag-purple { background: #ede9fe; color: #6d28d9; }
.mu-zone-tag.tag-yellow { background: #fdf1d3; color: #8a6100; }
/* คำอธิบายสีการ์ดตามหมวดเส้นทาง */
.mu-legend { background: #fff; border: 1px solid #e9eef7; border-radius: 14px; padding: 16px 18px; margin-bottom: 26px; box-shadow: 0 4px 14px rgba(20,40,90,.05); }
.mu-legend-title { margin: 0 0 12px; font-size: .95rem; font-weight: 800; color: #1f2a44; }
.mu-legend-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 18px; }
.mu-legend-list li { display: flex; align-items: center; gap: 9px; font-size: .86rem; color: #3d4a63; }
.mu-legend-list .sw { width: 26px; height: 16px; border-radius: 4px; flex: none; border: 1px solid rgba(20,40,90,.12); }
.sw-bangkok { background: linear-gradient(135deg, #3b82f6, #60a5fa); }
.sw-interprov { background: linear-gradient(135deg, #8b5cf6, #c084fc); }
.sw-inprov { background: linear-gradient(135deg, #ec4899, #f472b6); }
.sw-municipal { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.sw-empty { background: #e4e7eb; }
.mu-legend-note { margin: 12px 0 0; color: #6f7b95; font-size: .82rem; }
.mu-zone-sub, .mu-zone-desc { color: #6f7b95; font-size: .88rem; margin: 0; }
/* ทุกบรรทัดคำอธิบายกินเต็มความกว้างของตัวเอง — ไม่ถูกบีบไปรวมแถวเดียวกับป้ายหัวข้อ
(เดิม flex ไม่มี wrap → ทุกบรรทัดถูกย่อรวมกันหมด ข้อความไทยจึงตัดคำมั่ว) */
.mu-zone-head .mu-zone-desc { flex-basis: 100%; min-width: 0; line-height: 1.65; }
/* แถวข้อมูลแบบ "ชิ้น" (segment) — กฎจริงอยู่ใน responsive.css (#view …) เพราะต้องชนะ
<style> ของ partial ที่ถูก inject ทีหลัง · ที่นี่เก็บเฉพาะสีที่ใช้ร่วมทุกหน้า */
.mu-zone-updated { color: #8a7aa8; }
.mu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
/* Cards */
.mu-card { display: block; text-decoration: none; color: inherit; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(20,40,90,.06); transition: transform .15s, box-shadow .15s; }
.mu-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(20,40,90,.1); }
.mu-card-head { aspect-ratio: auto !important; height: 130px !important; display: flex !important; align-items: center; justify-content: center; position: relative; }
.mu-card-head::after { display: none !important; }
.mu-card-head .mu-route-number { position: static !important; color: #fff !important; font-size: 52px !important; font-weight: 900; text-shadow: 0 4px 12px rgba(0,0,0,.2) !important; letter-spacing: .02em; margin: 0; }
.mu-route-info { padding: 14px 14px 14px; }
.mu-route-name { margin: 0 0 10px; font-size: .9rem; color: #1f2a44; font-weight: 700; }
.mu-card .mu-badge { background: #dcfce7; color: #15803d; padding: 4px 10px; font-size: .78rem; font-weight: 700; box-shadow: none; backdrop-filter: none; }
.mu-next-trip { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: #dcfce7; color: #15803d; }
.badge-purple { background: #ede9fe; color: #6d28d9; }
.badge-sky { background: #dbeafe; color: #1d4ed8; }
.badge-pink { background: #fce7f3; color: #be185d; }
.badge-mint { background: #d1fae5; color: #047857; }
.badge-gray { background: #e8eaed; color: #5b636e; }
.mu-route-chip-wrap { display:flex; gap: 8px; }
/* Summary stats */
.mu-summary { padding: 20px 0 40px; }
.mu-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.mu-stat { padding: 28px 18px; text-align: center; border-radius: 18px; font-weight: 700; margin: 0; }
.mu-stat h3 { margin: 0 0 4px; font-size: 2rem; color: #1f2a44; font-weight: 800; }
.mu-stat p { margin: 0; font-size: .82rem; color: #4a5876; font-weight: 600; }
.mu-stat.tag-pink { background: #fce7f3; }
.mu-stat.tag-sky { background: #dbeafe; }
.mu-stat.tag-purple { background: #ede9fe; }
.mu-stat.tag-mint { background: #d1fae5; }
/* ===== Visitor counter (footer bottom bar) ===== */
.mu-footer-bottom { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.mu-visitor {
display: inline-flex;
align-items: center;
gap: 7px;
margin: 0;
padding: 5px 12px;
border-radius: 999px;
background: rgba(255,255,255,.06);
border: 1px solid rgba(255,255,255,.1);
color: #b6bdda;
font-size: .78rem;
font-weight: 600;
letter-spacing: .01em;
line-height: 1;
}
.mu-visitor svg { width: 14px; height: 14px; color: #b694f6; flex: none; }
.mu-visitor strong { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
/* ปุ่ม/ช่องรีเซ็ตผู้เข้าชม (ซ่อน — กดตัวเลข 5 ครั้ง) */
#visitor-count { cursor: pointer; }
.mu-vreset {
position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
padding: 20px; background: rgba(15, 23, 42, .55); backdrop-filter: blur(3px);
}
.mu-vreset-card {
width: 100%; max-width: 340px; background: #fff; border-radius: 16px; padding: 20px;
box-shadow: 0 18px 50px rgba(15, 23, 42, .28);
}
.mu-vreset-card h4 { margin: 0 0 12px; font-size: 1rem; color: #1f2a44; }
.mu-vreset-card label { display: block; font-size: .8rem; color: #6b7a94; margin-bottom: 6px; }
.mu-vreset-card input {
width: 100%; box-sizing: border-box; padding: 10px 12px; font-size: .95rem;
border: 1px solid #d9d3e8; border-radius: 10px; color: #1f2a44; background: #fbfaff;
}
.mu-vreset-card input:focus { outline: 2px solid #7a4cc0; outline-offset: 1px; border-color: #7a4cc0; }
.mu-vreset-msg { margin: 10px 0 0; min-height: 18px; font-size: .8rem; color: #b3261e; }
.mu-vreset-msg.is-ok { color: #1f7a3d; }
.mu-vreset-row { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }
.mu-vreset-row button {
padding: 9px 16px; font-size: .85rem; font-weight: 700; border-radius: 10px; cursor: pointer;
border: 1px solid #d9d3e8; background: #fff; color: #3d4a63;
}
.mu-vreset-row button:hover { background: #fbfaff; }
.mu-vreset-ok { border-color: #7a4cc0 !important; background: #7a4cc0 !important; color: #fff !important; }
.mu-vreset-ok:hover { background: #6a3fb0 !important; }
/* ===== Sponsor marquee (between hero and main) ===== */
.mu-sponsor-marquee { padding: 26px 0 6px; background: #fff; border-bottom: 1px solid #f0f2f8; }
.mu-sponsor-head { text-align: center; margin-bottom: 18px; }
.mu-sponsor-head h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 800; color: #1f2a44; letter-spacing: .01em; }
.mu-sponsor-head .lead { margin: 0; color: #6f7b95; font-size: .84rem; }
.mu-marquee {
overflow: hidden;
position: relative;
}
.mu-marquee-track {
display: flex;
width: max-content;
padding: 4px 0 16px;
animation: mu-marquee-scroll 28s linear infinite;
}
.mu-marquee:hover .mu-marquee-track { animation-play-state: paused; }
@keyframes mu-marquee-scroll {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
.mu-marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 16px; }
.mu-marquee-tile { margin-right: 0; }
}
.mu-marquee-tile {
flex: 0 0 auto;
width: 170px;
height: 96px;
margin-right: 16px;
display: flex;
align-items: center;
justify-content: center;
background: #fff;
border: 1px solid #eef0f6;
border-radius: 14px;
box-shadow: 0 4px 12px rgba(63, 43, 94, .05);
transition: transform .2s ease, box-shadow .2s ease;
}
.mu-marquee-tile img {
max-width: 78%;
max-height: 64%;
object-fit: contain;
filter: grayscale(.2);
transition: filter .2s ease;
}
.mu-marquee-tile:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(63, 43, 94, .12); }
.mu-marquee-tile:hover img { filter: grayscale(0); }
/* ===== SPA central view ===== */
#view { min-height: 60vh; }