/* หน้ารายละเอียดโครงการ ส่วนเพิ่ม (5c C1 2026-10-20 · rh_project_detail.php · โหลดเฉพาะ project_detail.php) · สีชุดเดียวกับการ์ด/หัวโครงการ (rh_cards.css) · มือถือคู่กัน */
.rpd-bc > .active { color: #17213A; font-weight: 700; }
.rpd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.rpd-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 3px 12px; border-radius: 999px; background: #EEF2FB; color: #1A2577; font-size: 14px; line-height: 1.35; }
.rpd-chip svg { width: 15px; height: 15px; flex: none; }
a.rpd-chip, a.rpd-chip:hover { color: #1F4FB5; text-decoration: none; }
a.rpd-chip:hover, a.rpd-chip:focus-visible { background: #DDE5F7; }
.rpd-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 14px 0 12px; }
.rpd-tile { display: grid; gap: 2px; background: #F4F6FA; border-radius: 12px; padding: 12px 14px; }
.rpd-k { font-size: 14px; color: #5B6578; }
.rpd-v { font-size: 26px; font-weight: 700; color: #1A2577; line-height: 1.2; font-variant-numeric: tabular-nums; }
.rpd-v small { font-size: 15px; font-weight: 500; }
.rpd-s { font-size: 14px; color: #36405A; font-variant-numeric: tabular-nums; }
.rpd-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.rpd-btn { flex: 1 1 220px; display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 999px; background: #2F6FB8; color: #fff !important; font-weight: 600; font-size: 15px; text-decoration: none !important; }
.rpd-btn:hover { background: #1F4FB5; }
.rpd-btn--o { flex: 0 1 200px; background: #fff; color: #2F6FB8 !important; border: 1.5px solid #2F6FB8; }
.rpd-btn--o:hover { background: #EEF2FB; }
.rpd-sec { margin: 30px 0 0; }
.rpd-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.rpd-sh h2, .rpd-travel h2 { margin: 0; font-size: 22px; line-height: 1.4; color: #1A2577; font-weight: 700; }
.rpd-sh a { display: inline-flex; align-items: center; gap: 4px; flex: none; font-weight: 600; color: #2F6FB8; }
.rpd-sh a svg { width: 14px; height: 14px; }
.rpd-rhv { margin: 0; }
.rpd-all { display: none; }
.rpd-tm { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 20px; align-items: stretch; margin: 30px 0 0; }
.rpd-tm > .rpd-map .panel { margin: 0; height: 100%; }
.rpd-tm > .rpd-map iframe { width: 100% !important; min-height: 320px; }
.rpd-travel { background: #fff; border: 1px solid #E3E8F0; border-radius: 14px; padding: 18px 20px; }
.rpd-travel ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.rpd-travel li { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 15px; }
.rpd-travel li a { flex: 1; min-width: 0; color: #17213A; }
.rpd-travel li a span { color: #5B6578; font-size: 13px; }
.rpd-travel li b { flex: none; font-variant-numeric: tabular-nums; }
.rpd-travel p { margin: 10px 0 0; font-size: 13px; color: #5B6578; }
.rpd-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rpd-mg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rpd-mate { display: block; background: #fff; border: 1px solid #E3E8F0; border-radius: 14px; overflow: hidden; color: #17213A !important; text-decoration: none !important; }
.rpd-mate:hover { border-color: #C9D3E6; box-shadow: 0 6px 18px rgba(20, 30, 80, .10); }
.rpd-mate img, .rpd-noimg { display: block; width: 100%; height: 140px; object-fit: cover; background: #E6EBF3; }
.rpd-mt { display: grid; gap: 3px; padding: 10px 12px 12px; font-size: 14px; color: #36405A; }
.rpd-mt b { font-size: 15px; line-height: 1.4; color: #17213A; }
.rpd-mt small { font-size: 13px; color: #5B6578; }
.rpd-mates { margin-bottom: 10px; }
.rpd-chip:focus-visible, .rpd-btn:focus-visible, .rpd-mate:focus-visible, .rpd-sh a:focus-visible { outline: 2px solid #1F4FB5; outline-offset: 2px; }
@media (max-width: 991px) {
  .rpd-tm { grid-template-columns: minmax(0, 1fr); }
  .rpd-mg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .rpd-v { font-size: 22px; }
  .rpd-btn, .rpd-btn--o { flex: 1 1 100%; min-height: 48px; }
  .rpd-sh { display: block; }
  .rpd-sh h2, .rpd-travel h2 { font-size: 19px; }
  .rpd-sh a { display: none; }
  .rpd-rhv > :nth-child(n+5) { display: none; }
  .rpd-all { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 12px; border-radius: 999px; border: 1.5px solid #2F6FB8; background: #fff; color: #2F6FB8 !important; font-weight: 600; text-decoration: none !important; }
  .rpd-mg { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .rpd-mate { display: flex; align-items: center; gap: 12px; padding: 10px; }
  .rpd-mate img, .rpd-noimg { width: 92px; height: 72px; border-radius: 10px; flex: none; }
  .rpd-mt { padding: 0; }
  .rpd-tm > .rpd-map iframe { min-height: 240px; }
}
.rpd-tm--solo { grid-template-columns: minmax(0, 1fr); }
.rpd-map > .row { margin: 0; }
.rpd-map .col-md-12 { padding: 0; }
/* ชี้เมาส์ = การ์ดลอยขึ้นนิดหน่อย (กฎเดียวกับการ์ดทั้งเว็บ · เจ้าของขอ 2026-10-09) */
.rpd-mate { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .rpd-mate:hover { transform: translateY(-4px); }
}
