/* aweb-bs5-compat.css — aweb.bosscar.co
 * โหลดท้าย css/bootstrap.min.css (BS5) — คุมให้ลุคเหมือน "ของเดิม" ของ fleet
 * อ้างอิง metric จริงจาก sompongyontakan.com (bootstrap.css รุ่น production ที่แก้มือ:
 * Verdana 15px, heading weight 400, heading margin 10px, gutter 30px) — เปลี่ยน typeface เป็น Kanit
 * ห้ามใส่ style ใหม่ที่ไม่มีในต้นทาง — ไฟล์นี้มีไว้ "คงของเดิม" เท่านั้น
 */

/* ── type: Kanit แทน Verdana, ขนาดตามต้นทาง ─────────────── */
body {
  font-family: 'Kanit', Verdana, sans-serif;
  font-size: 15px;        /* ต้นทาง 15px ไม่ใช่ 14px stock */
  line-height: 1.5;
}
a { text-decoration: none; } /* BS3 ลิงก์ไม่มี underline */

h1, h2, h3, h4, h5, h6 {
  font-family: 'Kanit', Verdana, sans-serif;
  font-weight: 400;       /* ต้นทาง 400 ทุกตัว ไม่ใช่ bold */
  margin-top: 10px;
  margin-bottom: 10px;
  line-height: 1.3;       /* ต้นทาง 1.1 — ขยับนิดให้รัศมีตัวอักษรไทยของ Kanit ไม่ชน */
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }   /* ต้นทาง 20px */
h5 { font-size: 18px; }   /* ต้นทาง 18px */
h6 { font-size: 16px; }   /* ต้นทาง 16px */
p { margin: 0 0 10px; }

/* ── grid: gutter แนวนอน 30px แบบ BS3 (BS5 ใช้ 24px) ──────
 * แนวตั้งต้องเป็น 0 ตาม BS3 — BS5.3 ใช้ gutter-y เป็น margin-top ของลูกทุกตัว
 * ตั้ง 30px ไปครั้งแล้วทำ grid โลโก้/ทุก section สูงขึ้นเกินจริง */
.row { --bs-gutter-x: 30px; --bs-gutter-y: 0; }
.container { padding-left: 15px; padding-right: 15px; }

/* BS3 container กว้างสุด 1170px — BS5 xxl ขยายถึง 1320px */
@media (min-width: 1200px) {
  .container { max-width: 1170px; }
}

/* ── badge เทาแบบ BS3 (ใช้เป็นปุ่ม "รายละเอียดเพิ่มเติม") ── */
.badge {
  display: inline-block;
  padding: 3px 7px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  vertical-align: middle;
  background-color: #777;
  border-radius: 10px;
}
.badge[href]:hover, .badge[href]:focus { background-color: #5e5e5e; color: #fff; text-decoration: none; }

/* ── form: สูง 34px แบบต้นทาง ──────────────────────────── */
.form-control {
  font-size: 14px;
  min-height: 34px;
  padding: 6px 12px;
  background-color: #fff;
}
.form-control:focus {
  border-color: #66afe9;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(102,175,233,.6);
}

/* ── ปุ่ม BS3: ขอบมน 4px, font 14px, ไม่มี focus ring ฟ้า ── */
.btn { font-size: 14px; border-radius: 4px; }
.btn:focus { box-shadow: none; }

/* ── อื่น ๆ ─────────────────────────────────────────────── */
hr { margin: 20px 0; opacity: 1; border: 0; border-top: 1px solid #eee; }
img { max-width: 100%; }

/* ═══ Facebook feed (11-11-2026) — แทน iframe Page Plugin เดิม (Meta เลิกโชว์ timeline ให้คนไม่ login) ═══
   โครงสร้างอยู่ใน class/fb-feed.php: Page Plugin 340x150 (ไม่มี tabs) + reel/post ตามรายการจาก
   {APIURL}/fbweb/list (fbweb/list + webhook fb-feed-refresh.php — spec atvan.com/FB-FEED-API.md) */
.awb-fb > * + *:not(#fb-root) { margin-top: 12px; }  /* เว้นระยะระหว่างรายการ — XFBML + SDK auto-height */
.awb-fb iframe { display: block; }                    /* iframe ที่ SDK สร้าง ชิดซ้ายเส้นเดียวกัน */
.awb-fb-posts { margin-top: 12px; }
.awb-fb-post {
    display: block; background: #fff; border: 1px solid #e0e0e0;
    border-radius: 10px; overflow: hidden; text-decoration: none;
    color: #212121; margin-bottom: 12px;
}
.awb-fb-post:hover { text-decoration: none; border-color: var(--awb-link-hover, #2f96f1); }
.awb-fb-post img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.awb-fb-post p {
    margin: 10px 12px 4px; font-size: 13.5px; line-height: 1.45;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.awb-fb-post time { display: block; margin: 0 12px 10px; font-size: 11.5px; color: #9e9e9e; }
@media (max-width: 767px) {
    .awb-fb { margin-top: 15px; }   /* มือถือคอลัมน์ตกมาใต้กริดรถ — เว้นระยะจากการ์ดรถด้านบน */
}
