/* TiewNai หน้าที่เที่ยวระหว่างทาง (v9.31.0 · v9.42.0 เครื่องคำนวณค่าน้ำมัน) · ใช้คู่กับ js/route.js */
.rt-hero.pv-hero .th2-bg.th2-art { background: linear-gradient(135deg, #16325C 0%, #2F6FE4 100%); }
.rt-hero .th2-art svg { opacity: .22; }
.rt-hero .th2-ico { background: #F5B335; color: #16325C; }

.rt-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%; background: #1F7A5E; color: #fff; font: 800 12px/1 var(--font-head, sans-serif); font-style: normal; }
.rt-dot.is-b { background: #C8412B; }

/* ฟอร์ม */
.rt-form {
	position: relative; z-index: 3;
	display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr) auto; align-items: end; gap: 12px;
	margin: -46px 20px 0; padding: 18px 20px;
	background: #fff; border: 1px solid var(--line); border-radius: 18px;
	box-shadow: 0 14px 34px rgba(22, 50, 92, .14);
}
.rt-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.rt-l { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.rt-f select {
	width: 100%; height: 50px; padding: 0 40px 0 14px;
	border: 1.5px solid var(--line); border-radius: 12px; background: #fff;
	font: inherit; font-size: 16px; font-weight: 600; color: var(--ink);
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23556' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
	cursor: pointer;
}
.rt-f select:focus { outline: none; border-color: #2F6FE4; box-shadow: 0 0 0 3px rgba(47, 111, 228, .18); }
.rt-swap { width: 44px; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: #F6F8FC; color: #2F6FE4; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.rt-swap:hover { border-color: #2F6FE4; background: #EEF3FD; }
.rt-go { height: 50px; padding: 0 22px; border: 0; border-radius: 12px; background: #2F6FE4; color: #fff; font: inherit; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap; box-shadow: 0 6px 16px rgba(47, 111, 228, .28); }
.rt-go:hover { background: #255CC4; }
.rt-go.is-busy { opacity: .7; cursor: progress; }
.rt-err { grid-column: 1 / -1; margin: 0; color: #B3261E; font-size: 14px; font-weight: 600; }

/* หน้าแรกของเครื่องมือ */
.rt-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rt-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.rt-steps li > b { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #EEF3FD; color: #2F6FE4; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-size: 17px; }
.rt-steps li span { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }
.rt-steps li strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: 15.5px; margin-bottom: 2px; }
.rt-pop { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rt-pop-i { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.rt-pop-i:hover { border-color: #2F6FE4; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 50, 92, .1); text-decoration: none; }
.rt-pop-ab { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-family: var(--font-head); font-size: 16px; }
.rt-pop-ab svg { color: var(--ink-soft); margin: 0 2px; }
.rt-pop-i small { font-size: 13px; color: var(--ink-soft); }
.rt-about p { font-size: 15px; line-height: 1.75; color: var(--ink-soft); max-width: 820px; margin: 0 0 10px; }
.rt-msg { margin: 28px 0 0; padding: 22px; border-radius: 16px; background: #FFF7E6; border: 1px solid #F1D9A6; }
.rt-msg b { font-family: var(--font-head); font-size: 18px; }
.rt-msg p { margin: 6px 0 12px; color: var(--ink-soft); }
.rt-msg-btn { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #2F6FE4; color: #fff !important; font-weight: 700; text-decoration: none; }

/* จังหวัดที่ผ่าน */
.rt-via { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13.5px; }
.rt-via li { display: inline-flex; align-items: center; color: var(--ink-soft); }
.rt-via li + li::before { content: ""; width: 16px; height: 2px; margin: 0 6px; background: repeating-linear-gradient(90deg, #9DB4E8 0 4px, transparent 4px 7px); }
.rt-via a { color: #2F6FE4; font-weight: 700; text-decoration: none; }
.rt-via a:hover { text-decoration: underline; }
.rt-via em { font-style: normal; font-weight: 600; color: var(--ink-soft); font-size: 12px; }

/* แผนที่ */
#rt-map { margin-top: 26px; }
.atl--route { --atl-h: 640px; }

/* จุดแวะของคุณ */
.rt-plan { margin: 18px 0 0; padding: 18px 20px; border: 1.5px solid #F2C9A9; border-radius: 18px; background: linear-gradient(180deg, #FFF8F2, #fff 60%); scroll-margin-top: 90px; }
.rt-plan-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rt-plan-h h2 { margin: 0; font-family: var(--font-head); font-size: 20px; }
.rt-plan-n { font-size: 13.5px; color: #B24F14; font-weight: 700; }
.rt-stops { list-style: none; margin: 0; padding: 0; position: relative; }
.rt-stops::before { content: ""; position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: repeating-linear-gradient(180deg, #E7B08E 0 5px, transparent 5px 9px); }
.rt-s { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 0; min-height: 26px; }
.rt-s b { font-family: var(--font-head); font-size: 15px; }
.rt-s small { color: var(--ink-soft); font-size: 12.5px; }
.rt-s .rt-dot { position: relative; z-index: 1; box-shadow: 0 0 0 3px #fff; }
.rt-s-hint { display: block; padding-left: 32px; color: var(--ink-soft); font-size: 14px; }
.rt-plus { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #E7B08E; color: #C75A1C; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; line-height: 1; vertical-align: -3px; background: #fff; }
.rt-s-stop .rt-num { position: relative; z-index: 1; flex: 0 0 22px; height: 22px; border-radius: 50%; background: #E0702B; color: #fff; display: flex; align-items: center; justify-content: center; font: 800 12px/1 var(--font-head, sans-serif); box-shadow: 0 0 0 3px #fff; }
.rt-s-stop .rt-sx { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.rt-s-stop .rt-sx a { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-s-stop .rt-sx a:hover { color: #2F6FE4; text-decoration: underline; }
.rt-s-btn { flex: 0 0 auto; height: 32px; min-width: 32px; padding: 0 10px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rt-s-btn:hover { border-color: #2F6FE4; color: #2F6FE4; }
.rt-s-btn.x { padding: 0; width: 32px; font-size: 18px; line-height: 1; }
.rt-s-btn.x:hover { border-color: #B3261E; color: #B3261E; }
.rt-plan-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.rt-gm { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; background: #2F6FE4; color: #fff !important; font-weight: 700; font-size: 15.5px; text-decoration: none; box-shadow: 0 6px 16px rgba(47, 111, 228, .25); }
.rt-gm:hover { background: #255CC4; text-decoration: none; }
.rt-save, .rt-clear { display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }
.rt-save:hover:not(:disabled) { border-color: #D2544A; color: #D2544A; }
.rt-save:disabled { opacity: .5; cursor: default; }
.rt-clear { color: var(--ink-soft); font-weight: 600; }
.rt-note { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); }
#rt-saved { color: #1F7A5E; font-weight: 700; font-size: 13.5px; }
#rt-saved a { color: #1F7A5E; }

/* hidden ต้องชนะ display ของปุ่ม/แถว */
.rt-s[hidden], .rt-clear[hidden], .rt-fab[hidden], .rt-save[hidden] { display: none !important; }

/* ปุ่มลอยบนมือถือ */
.rt-fab { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 950; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: #E0702B; color: #fff !important; font-weight: 700; font-size: 14.5px; text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.25); white-space: nowrap; }
.rt-fab:hover { text-decoration: none; }

.rt-seg .nbk-time { color: #2F6FE4; }
.rt-more { margin: 12px 0 0; font-size: 14px; }
.rt-more a { color: #2F6FE4; font-weight: 700; }

@media (max-width: 899px) {
	.rt-form { grid-template-columns: minmax(0, 1fr) 44px; margin: -36px 0 0; padding: 14px; gap: 10px 8px; }
	.rt-form .rt-f:first-of-type { grid-column: 1; grid-row: 1; }
	.rt-swap { grid-column: 2; grid-row: 1 / span 2; align-self: center; height: 44px; transform: rotate(90deg); }
	.rt-form .rt-f:nth-of-type(2) { grid-column: 1; grid-row: 2; }
	.rt-go { grid-column: 1 / -1; width: 100%; }
	.rt-steps ol { grid-template-columns: minmax(0, 1fr); }
	.rt-plan { padding: 14px; }
	.rt-gm { flex: 1 1 100%; justify-content: center; }
	.rt-save { flex: 1; justify-content: center; }
	.atl--route { --atl-h: auto; }
}
@media (min-width: 900px) {
	.rt-fab { display: none !important; }
}

/* ---------- v9.32.0 จังหวัดที่อยากผ่าน + เลือกเส้นทาง ---------- */
.rt-dot.is-v { background: #7A5AE0; }
.rt-vrow { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding-top: 2px; }
.rt-vl { font-size: 14px; color: var(--ink-soft); }
.rt-vsel { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 6px; border: 1.5px solid #CBBDF5; border-radius: 999px; background: #F6F2FF; }
.rt-vsel select { height: 34px; border: 0; background: transparent; font: inherit; font-size: 14.5px; font-weight: 700; color: #4B2FB3; padding: 0 4px; cursor: pointer; max-width: 190px; }
.rt-vsel select:focus { outline: 2px solid rgba(122, 90, 224, .35); border-radius: 8px; }
.rt-vx { width: 28px; height: 28px; border: 0; border-radius: 50%; background: #fff; color: #7A5AE0; font-size: 18px; line-height: 1; cursor: pointer; }
.rt-vx:hover { background: #EDE6FF; }
.rt-vadd { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 8px; border: 1.5px dashed #B9A8F0; border-radius: 999px; background: #F9F6FF; color: #5B3FC4; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.rt-vadd:hover { border-style: solid; }
.rt-vadd[hidden] { display: none !important; }

.rt-alts { margin: 22px 0 0; }
.rt-alts-h h2 { margin: 0 0 2px; font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 24px); }
.rt-alts-h p { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.rt-alt-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.rt-alt { position: relative; display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.rt-alt:hover { border-color: #2F6FE4; text-decoration: none; transform: translateY(-1px); }
.rt-alt.is-on { border-color: #2F6FE4; box-shadow: 0 0 0 3px rgba(47, 111, 228, .15); }
.rt-alt-t { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 16.5px; font-weight: 700; }
.rt-rd { width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 2px solid #B8C3D6; box-sizing: border-box; }
.rt-alt.is-on .rt-rd { border: 6px solid #2F6FE4; }
.rt-alt-v { font-size: 14px; }
.rt-alt-k { font-size: 14px; color: var(--ink-soft); }
.rt-alt-k b { color: var(--ink); }
.rt-alt-k em { font-style: normal; color: #B24F14; font-weight: 700; }
.rt-alt-n { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.rt-pill { font-size: 12.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: #EEF3FD; color: #2F6FE4; }
.rt-pill.g { background: #E8F5EE; color: #1F7A5E; }
.rt-alt-badge { position: absolute; top: -10px; right: 12px; background: #F5B335; color: #3B2A00; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.rt-s-via b { color: #4B2FB3; }
.rt-s-via .rt-dot { box-shadow: 0 0 0 3px #fff; }
.rt-note-alt { color: #8A5A00; background: #FFF7E3; border-radius: 10px; padding: 8px 10px; }

@media (max-width: 899px) {
	.rt-alt-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 2px 6px; margin-top: -10px; scrollbar-width: none; }
	.rt-alt-list::-webkit-scrollbar { display: none; }
	.rt-alt { flex: 0 0 min(80%, 290px); scroll-snap-align: start; }
	.rt-vl { flex-basis: 100%; }
	.rt-vsel select { max-width: 150px; }
}

/* v9.36.0 หน้ารวม: กลุ่มเส้นทางตามภาค · เคล็ดลับ · คำถามที่พบบ่อย · หน้าเส้นทาง: สรุปเส้นทาง */
.rt-pop-h { margin: 18px 0 10px; font-family: var(--font-head); font-size: 17px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.rt-pop-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }
#rt-popular .pv-head + .rt-pop-h { margin-top: 4px; }
.rt-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.rt-tips li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rt-tips b { display: block; font-family: var(--font-head); font-size: 15.5px; color: var(--ink); margin-bottom: 3px; }
.rt-tips span { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.rt-faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 880px; }
.rt-q { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rt-q summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 16px; position: relative; }
.rt-q summary::-webkit-details-marker { display: none; }
.rt-q summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid #2F6FE4; border-bottom: 2px solid #2F6FE4; transform: rotate(45deg); transition: transform .15s; }
.rt-q[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.rt-q summary h3 { margin: 0; font-family: var(--font-head); font-size: 16px; line-height: 1.45; color: var(--ink); }
.rt-q p { margin: 0; padding: 0 16px 14px; font-size: 15px; line-height: 1.75; color: var(--ink-soft); }
.rt-ans { margin: 12px 0 0; font-size: 15px; line-height: 1.75; color: var(--ink-soft); max-width: 900px; }
.rt-pop-e { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rt-pop-i small span { white-space: nowrap; }
@media (max-width: 599px) {
	#rt-popular .rt-pop { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 2px 2px 8px; scrollbar-width: none; }
	#rt-popular .rt-pop::-webkit-scrollbar { display: none; }
	#rt-popular .rt-pop-i { flex: 0 0 min(82%, 300px); scroll-snap-align: start; }
	.rt-pop-h { font-size: 16px; }
}

/* v9.37.0 หน้ารวม: กระดานเส้นทางยอดนิยมตามภาค · เคล็ดลับมีไอคอน · คำถามที่พบบ่อยคู่กล่องเกี่ยวกับเครื่องมือ */
.rt-boards { columns: 3 340px; column-gap: 16px; }
.rt-board { break-inside: avoid; display: inline-block; width: 100%; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 1px 2px rgba(20, 40, 32, .05); }
.rt-board-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--rl), rgba(255, 255, 255, 0)); }
.rt-board-ico { flex: 0 0 38px; height: 38px; border-radius: 12px; background: var(--rc); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px var(--rl); }
.rt-board-h h3 { margin: 0; font-family: var(--font-head); font-size: 17.5px; line-height: 1.25; color: var(--ink); }
.rt-board-h small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; }
.rt-rows { list-style: none; margin: 0; padding: 6px; }
.rt-rows li { margin: 0; }
.rt-rows li + li { border-top: 1px dashed #ECE8DF; }
.rt-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 56px 88px 14px; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; color: var(--ink); text-decoration: none; transition: background .15s; }
.rt-row:hover { background: var(--rm); text-decoration: none; }
.rt-row-img { width: 40px; height: 40px; border-radius: 11px; background: #EEF1EF center / cover no-repeat; display: flex; align-items: center; justify-content: center; }
.rt-row-img.is-none { background: var(--rl); color: var(--rc); }
.rt-row-main { min-width: 0; }
.rt-row-main b { display: block; font-family: var(--font-head); font-size: 15.5px; line-height: 1.3; }
.rt-row-to { color: var(--ink-soft); font-weight: 400; margin: 0 2px; }
.rt-row-main small { display: block; font-size: 12.5px; color: var(--ink-soft); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rt-row-bar { height: 6px; border-radius: 99px; background: #EDF0EE; overflow: hidden; }
.rt-row-bar i { display: block; height: 100%; border-radius: 99px; background: var(--rc); }
.rt-row-km { text-align: right; font-size: 12.5px; color: var(--ink-soft); white-space: nowrap; line-height: 1.25; }
.rt-row-km b { font-family: var(--font-head); font-size: 16px; color: var(--ink); }
.rt-row-km small { display: block; font-size: 12px; }
.rt-row-go { color: #B5BEB9; }
.rt-row:hover .rt-row-go { color: var(--rc); }
.rt-tips { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rt-tips li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; }
.rt-tip-ico { flex: 0 0 36px; height: 36px; border-radius: 11px; background: #EEF3FD; color: #2F6FE4; display: flex; align-items: center; justify-content: center; }
.rt-faqgrid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.rt-faqgrid .rt-faq-list { max-width: none; }
.rt-aboutcard { margin-top: 44px; position: sticky; top: 96px; background: linear-gradient(180deg, #F3F8F5, #fff 70%); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 16px; }
.rt-aboutcard h2 { font-family: var(--font-head); font-size: 19px; line-height: 1.35; margin: 0 0 8px; }
.rt-aboutcard h3 { font-family: var(--font-head); font-size: 15.5px; margin: 16px 0 4px; }
.rt-aboutcard p { font-size: 14px; line-height: 1.7; color: var(--ink-soft); margin: 0 0 8px; }
.rt-about-st { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0 0; }
.rt-about-st div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; text-align: center; }
.rt-about-st dt { font-family: var(--font-head); font-size: 20px; line-height: 1.2; color: #14433B; margin: 0; }
.rt-about-st dd { margin: 0; font-size: 12px; color: var(--ink-soft); }
.rt-about-src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px !important; }
.rt-about-src span { font-size: 12px; font-weight: 600; color: #3F5A50; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 10px; }
@media (max-width: 1099px) {
	.rt-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rt-faqgrid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.rt-aboutcard { position: static; margin-top: 24px; }
}
@media (max-width: 599px) {
	.rt-tips { grid-template-columns: minmax(0, 1fr); }
	.rt-row { grid-template-columns: 36px minmax(0, 1fr) auto 12px; gap: 9px; padding: 9px 6px; }
	.rt-row-img { width: 36px; height: 36px; }
	.rt-row-bar { display: none; }
}
.rt-nw { white-space: nowrap; }

/* v9.38.0 เปลี่ยนต้นทางของเส้นทางยอดนิยม · v9.39.0 ตัวเลขของต้นทางใหม่ */
#rt-popular .pv-head { flex-wrap: wrap; }
#rt-popular .pv-head h2 { text-wrap: wrap; }
.rt-from { display: flex; align-items: center; gap: 10px; flex: none; }
.rt-from > label { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.rt-from-s { position: relative; display: inline-flex; align-items: center; }
.rt-from-pin { position: absolute; left: 13px; color: var(--forest); pointer-events: none; }
.rt-from-s select {
	height: 42px; min-width: 200px; max-width: 260px; padding: 0 38px 0 36px;
	border: 1.5px solid var(--line); border-radius: 999px; background: #fff;
	font: inherit; font-size: 15px; font-weight: 700; color: var(--ink);
	appearance: none; -webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23556' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
	cursor: pointer;
}
.rt-from-s select:hover { border-color: #B9B3A5; }
.rt-from-s select:focus { outline: none; border-color: #2F6FE4; box-shadow: 0 0 0 3px rgba(47, 111, 228, .18); }
.rt-from-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: -4px 0 16px; padding: 10px 12px 10px 16px; border: 1px solid #CFE0D8; border-radius: 12px; background: #F1F7F4; font-size: 14px; color: var(--ink-soft); }
.rt-from-note b { color: var(--ink); }
.rt-from-note button { flex: none; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.rt-from-note button:hover { border-color: var(--forest); color: var(--forest); }
.rt-from-note[hidden], .rt-board[hidden], .rt-rows > li.is-self, .rt-row-main small[hidden] { display: none; }
/* v9.39.0 แถวที่ยังไม่มีตัวเลข (ต้นทางอื่นที่ยังคำนวณไม่เสร็จ) */
.rt-rows .rt-row.is-nd { grid-template-columns: 40px minmax(0, 1fr) 14px; }
.rt-row.is-wait .rt-row-main small { color: #2F6FE4; animation: rt-wait 1.4s ease-in-out infinite; }
@keyframes rt-wait { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .rt-row.is-wait .rt-row-main small { animation: none; } }
.rt-from-st[hidden] { display: none; }
@media (max-width: 599px) {
	.rt-from { width: 100%; }
	.rt-from-s { flex: 1; }
	.rt-from-s select { width: 100%; max-width: none; min-width: 0; }
	.rt-rows .rt-row.is-nd { grid-template-columns: 36px minmax(0, 1fr) 12px; }
}

/* v9.40.0 */
.rt-about-upd { margin: 10px 0 0; font-size: 12.5px; color: var(--ink-soft); }
.rt-about-upd time { font-weight: 700; color: var(--ink); }

/* ---------- v9.42.0 เครื่องคำนวณค่าน้ำมัน ---------- */
.fu-card {
	position: relative; z-index: 3;
	margin: -46px 20px 0; padding: 18px 20px 20px;
	background: #fff; border: 1px solid var(--line); border-radius: 18px;
	box-shadow: 0 14px 34px rgba(22, 50, 92, .14);
}
.fu-route { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: end; gap: 12px; }
.fu-rinfo { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: #F4F7FD; font-size: 14px; color: var(--ink-soft); }
.fu-rinfo[hidden] { display: none; }
.fu-rinfo a { color: #2F6FE4; font-weight: 700; white-space: nowrap; }
.fu-card .fu-calc { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line); }

.fu-calc { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.fu-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 14px; align-content: start; }
.fu-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.fu-l { font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.fu-f small { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.fu-u { display: flex; align-items: center; height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; overflow: hidden; }
.fu-u:focus-within { border-color: #2F6FE4; box-shadow: 0 0 0 3px rgba(47, 111, 228, .18); }
.fu-u input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 4px 0 14px; font: inherit; font-size: 18px; font-weight: 700; color: var(--ink); -moz-appearance: textfield; }
.fu-u input::-webkit-outer-spin-button, .fu-u input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fu-u input::placeholder { font-size: 14px; font-weight: 500; color: #9AA19C; }
.fu-u em { flex: none; padding: 0 14px 0 6px; font-style: normal; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.fu-seg { display: flex; height: 50px; padding: 4px; gap: 4px; border: 1.5px solid var(--line); border-radius: 12px; background: #F6F8FC; }
.fu-seg label { flex: 1; position: relative; margin: 0; cursor: pointer; }
.fu-seg input { position: absolute; opacity: 0; pointer-events: none; }
.fu-seg span { display: flex; align-items: center; justify-content: center; height: 100%; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.fu-seg input:checked + span { background: #fff; color: #2F6FE4; font-weight: 800; box-shadow: 0 1px 4px rgba(22, 50, 92, .14); }
.fu-seg input:focus-visible + span { outline: 2px solid #2F6FE4; outline-offset: 1px; }

.fu-out { display: flex; flex-direction: column; gap: 12px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(145deg, #16325C 0%, #1F4FA8 100%); color: #fff; }
.fu-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.fu-big small { flex: 1 0 100%; font-size: 13px; opacity: .8; }
.fu-big b { font-family: var(--font-head); font-size: clamp(34px, 4vw, 44px); line-height: 1.05; font-variant-numeric: tabular-nums; }
.fu-big span { font-size: 16px; opacity: .85; }
.fu-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin: 0; }
.fu-list div { min-width: 0; }
.fu-list dt { font-size: 12px; opacity: .72; }
.fu-list dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fu-hint { margin: 0; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .13); font-size: 13px; line-height: 1.5; }
.fu-hint[hidden] { display: none; }
.fu-note { margin: auto 0 0; font-size: 12px; line-height: 1.5; opacity: .7; }

.fu-sec .pv-head p { max-width: 760px; }
.fu-formula { padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.fu-eq { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 10px; font-size: 15px; }
.fu-eq b { font-family: var(--font-head); font-size: 17px; }
.fu-eq i { font-style: normal; font-weight: 800; color: #2F6FE4; font-size: 18px; }
.fu-eq span { padding: 5px 11px; border-radius: 9px; background: #F4F7FD; border: 1px solid #DCE5F7; font-weight: 600; }
.fu-ex { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; }
.fu-ex b { color: var(--ink); }

.fu-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fu-t { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fu-t th, .fu-t td { padding: 10px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid #EEEAE0; font-variant-numeric: tabular-nums; }
.fu-t thead th { background: #F6F8FC; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.fu-t th[scope="row"], .fu-t thead th:first-child { text-align: left; }
.fu-t tbody tr:last-child th, .fu-t tbody tr:last-child td { border-bottom: 0; }
.fu-t tbody tr:hover { background: #FBFAF6; }
.fu-t a { color: var(--ink); font-weight: 700; }
.fu-t a:hover { color: #2F6FE4; }
.fu-t .fu-you { background: #EEF3FD; color: #1F4FA8; font-weight: 700; }
.fu-t thead .fu-you { color: #1F4FA8; }

.fu-tips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fu-tips li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.fu-tips b { display: block; font-family: var(--font-head); font-size: 15.5px; margin-bottom: 3px; }
.fu-tips span { font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ลิงก์ไปเครื่องคำนวณ (หน้ารวม) และกลับหน้ารวม (หน้าค่าน้ำมัน) */
.rt-fuelsec { margin-top: 18px; }
.rt-fuelcta { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid #F0DDB0; border-radius: 16px; background: linear-gradient(100deg, #FFF7E3 0%, #fff 70%); color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.rt-fuelcta:hover { border-color: #F5B335; box-shadow: 0 8px 22px rgba(160, 110, 10, .12); }
.rt-fuelcta.is-back { border-color: #D6E0F5; background: linear-gradient(100deg, #EEF3FD 0%, #fff 70%); }
.rt-fuelcta.is-back:hover { border-color: #2F6FE4; box-shadow: 0 8px 22px rgba(47, 111, 228, .12); }
.rt-fuelcta-ico { width: 48px; height: 48px; border-radius: 14px; background: #F5B335; color: #16325C; display: flex; align-items: center; justify-content: center; }
.rt-fuelcta.is-back .rt-fuelcta-ico { background: #2F6FE4; color: #fff; }
.rt-fuelcta-t b { display: block; font-family: var(--font-head); font-size: 17px; }
.rt-fuelcta-t span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.rt-fuelcta-go { font-weight: 800; color: #2F6FE4; white-space: nowrap; }

/* ส่วนค่าน้ำมันในหน้าเส้นทาง */
.rt-fuelbox .fu-calc { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.fu-more { flex: none; align-self: flex-end; font-weight: 800; color: #2F6FE4; white-space: nowrap; }

/* เช็กรถก่อนเดินทางไกล */
.rt-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; }
.rt-checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.rt-check-n { flex: 0 0 28px; height: 28px; border-radius: 8px; background: #E8F3EE; color: #1F7A5E; display: flex; align-items: center; justify-content: center; font: 800 13px/1 var(--font-head, sans-serif); }
.rt-checklist b { display: block; font-family: var(--font-head); font-size: 15px; margin-bottom: 2px; }
.rt-checklist div > span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

@media (max-width: 1099px) {
	.fu-calc { grid-template-columns: minmax(0, 1fr); }
	.fu-tips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.rt-checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
	.fu-card { margin: -36px 0 0; padding: 14px; }
	.fu-route { grid-template-columns: minmax(0, 1fr) 44px; gap: 10px 8px; }
	.fu-route .rt-f:first-of-type { grid-column: 1; grid-row: 1; }
	.fu-route .rt-f:nth-of-type(2) { grid-column: 1; grid-row: 2; }
}
@media (max-width: 599px) {
	.fu-in { gap: 12px 10px; }
	.fu-f-km, .fu-f-trip { grid-column: 1 / -1; }
	.fu-u em { padding-right: 10px; font-size: 12px; }
	.fu-out { padding: 16px; }
	.fu-tips, .rt-checklist { grid-template-columns: minmax(0, 1fr); }
	.rt-fuelcta { grid-template-columns: 44px minmax(0, 1fr); padding: 14px; }
	.rt-fuelcta-ico { width: 44px; height: 44px; }
	.rt-fuelcta-go { grid-column: 1 / -1; }
	.fu-t th, .fu-t td { padding: 9px 10px; font-size: 13.5px; }
	.rt-fuelbox .pv-head { flex-wrap: wrap; }
	.fu-pop.has-you .fu-lc { display: none; }
}

/* ---------- v9.43.0 ช่องเลือกจังหวัดพิมพ์ค้นหาได้ (js tnCombo ครอบ select เดิม) ---------- */
select.tc-src { position: absolute !important; width: 1px !important; height: 1px !important; min-width: 0 !important; margin: -1px !important; padding: 0 !important; border: 0 !important; opacity: 0 !important; overflow: hidden; clip: rect(0 0 0 0); pointer-events: none; }
.tc { position: relative; min-width: 0; }
.tc-in {
	display: block; width: 100%; box-sizing: border-box; margin: 0;
	font: inherit; color: var(--ink); text-overflow: ellipsis;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23556' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center; background-size: 12px;
	-webkit-appearance: none; appearance: none; cursor: text;
}
.tc-in::placeholder { color: #9AA19C; font-weight: 500; }
.tc.is-open .tc-in { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 8l4-4 4 4' fill='none' stroke='%232F6FE4' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.rt-f .tc-in { height: 50px; padding: 0 40px 0 14px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 16px; font-weight: 600; }
.rt-f .tc-in:focus, .rt-from-s .tc-in:focus { outline: none; border-color: #2F6FE4; box-shadow: 0 0 0 3px rgba(47, 111, 228, .18); }
.rt-vsel .tc-in { width: 170px; height: 34px; padding: 0 24px 0 4px; border: 0; border-radius: 8px; background-color: transparent; background-position: right 6px center; font-size: 14.5px; font-weight: 700; color: #4B2FB3; }
.rt-vsel .tc-in:focus { outline: 2px solid rgba(122, 90, 224, .35); }
.rt-from-s .tc { width: 240px; }
.rt-from-s .rt-from-pin { z-index: 2; }
.rt-from-s .tc-in { height: 42px; padding: 0 38px 0 36px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 15px; font-weight: 700; }
.rt-from-s .tc-in:hover { border-color: #B9B3A5; }
.tc-list {
	position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; min-width: 230px;
	max-height: min(340px, 55vh); overflow-y: auto; overscroll-behavior: contain;
	margin: 0; padding: 6px; list-style: none;
	background: #fff; border: 1px solid var(--line); border-radius: 14px;
	box-shadow: 0 16px 36px rgba(22, 50, 92, .18);
}
.tc-list[hidden] { display: none; }
.rt-from-s .tc-list { left: auto; right: 0; min-width: 260px; }
.rt-vsel .tc-list { left: -6px; right: auto; width: 250px; }
.tc-g { padding: 10px 12px 4px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.tc-o { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 15px; color: var(--ink); cursor: pointer; }
.tc-o small { flex: none; font-size: 12px; color: var(--ink-soft); }
.tc-o.is-on { background: #EEF3FD; color: #1F4FA8; }
.tc-o[aria-selected="true"] { font-weight: 800; }
.tc-none { padding: 10px 12px; font-size: 14px; color: var(--ink-soft); }
@media (hover: hover) { .tc-o:hover { background: #F4F7FD; } }
@media (max-width: 599px) {
	.rt-from-s .tc { width: 100%; }
	.rt-from-s .tc-list { left: 0; min-width: 0; }
	.rt-vsel .tc-in { width: 140px; }
	.tc-o { padding: 11px 12px; }
}

/* ---------- v9.46.0 hero หน้าเที่ยวระหว่างทาง / คำนวณค่าน้ำมัน ----------
   ข้อความชิดซ้ายล่าง ไล่เงาเข้มจากฝั่งข้อความ ภาพฝั่งขวาใสให้เห็นรูปชัด · ป้ายจุดเด่นใต้คำอธิบาย · มือถือไอคอนอยู่บนหัวเรื่อง ข้อความเต็มความกว้าง */
.rt-hero.type-hero2 { min-height: 460px; align-items: flex-end; }
.rt-hero .th2-in { padding: 30px 28px 84px; }
.rt-hero.has-photo .th2-bg { background-position: center 58%; }
.rt-hero.has-photo .th2-ov {
	background:
		linear-gradient(180deg, rgba(8, 22, 42, .5) 0%, rgba(8, 22, 42, 0) 26%),
		linear-gradient(0deg, rgba(8, 22, 42, .62) 0%, rgba(8, 22, 42, 0) 42%),
		linear-gradient(90deg, rgba(8, 22, 42, .88) 0%, rgba(8, 22, 42, .74) 30%, rgba(8, 22, 42, .3) 56%, rgba(8, 22, 42, 0) 76%);
}
.rt-hero .th2-bc, .rt-hero .th2-bc a, .rt-hero .th2-bc span { color: rgba(255, 255, 255, .9); text-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.rt-hero .th2-head { gap: 20px; margin: 16px 0 0; align-items: flex-start; max-width: 1100px; }
.rt-hero .th2-ico { margin-top: 2px; width: 64px; height: 64px; flex-basis: 64px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .16), 0 8px 22px rgba(0, 0, 0, .3); }
.tn-nw { white-space: nowrap; }
.rt-hero .th2-titles h1 { font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.005em; text-shadow: 0 2px 22px rgba(0, 0, 0, .5); }
.rt-hero .th2-sub { max-width: 600px; font-size: clamp(15px, 1.3vw, 17px); text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.th2-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.th2-chips li {
	display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px 7px 10px;
	border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px;
	background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.th2-chips .ico { color: #F5B335; flex: none; }
@media (max-width: 899px) {
	.rt-hero.type-hero2 { min-height: 0; }
	.rt-hero .th2-in { padding: 22px 16px 62px; }
	.rt-hero.has-photo .th2-bg { background-position: 62% center; }
	.rt-hero.has-photo .th2-ov { background: linear-gradient(180deg, rgba(8, 22, 42, .42) 0%, rgba(8, 22, 42, .5) 35%, rgba(8, 22, 42, .86) 100%); }
	.rt-hero .th2-head { flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 26px; }
	.rt-hero .th2-ico { width: 48px; height: 48px; flex-basis: 48px; box-shadow: 0 0 0 5px rgba(255, 255, 255, .16), 0 6px 16px rgba(0, 0, 0, .3); }
	.rt-hero .th2-ico svg { width: 24px; height: 24px; }
	.rt-hero .th2-titles h1 { font-size: clamp(26px, 7.2vw, 34px); margin-bottom: 8px; }
	.rt-hero .th2-sub { font-size: 15px; line-height: 1.55; }
	.th2-chips { gap: 6px; margin-top: 14px; }
	.th2-chips li { padding: 6px 11px 6px 9px; font-size: 12.5px; }
}
@media (max-width: 599px) {
	.th2-chips { display: none; } /* มือถือ: ให้ฟอร์มขึ้นมาเร็ว ข้อความใต้หัวเรื่องบอกแล้วว่าใช้ฟรี */
}
