/* Thuê Xe Máy Cao Bằng – SEO Kit. Kế thừa màu và phông của Astra. */
:root {
	--txm-c: var(--ast-global-color-0, #0f766e);
	--txm-ink: var(--ast-global-color-2, #1e293b);
	--txm-muted: #5b6573;
	--txm-line: #e3e8ee;
	--txm-soft: #f4f7f6;
	--txm-r: 14px;
	--txm-w: 1140px;
}

/* ---------- Khung trang lõi (bố cục Astra "page-builder": toàn chiều rộng) ---------- */
.txm-page .entry-content > * {
	max-width: var(--txm-w);
	margin-left: auto;
	margin-right: auto;
	padding-left: 20px;
	padding-right: 20px;
	box-sizing: border-box;
}
.txm-page .entry-content > .txm-full {
	max-width: none !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: 0 !important;
	padding-left: 0;
	padding-right: 0;
}
.txm-page .entry-content > h2 {
	margin-top: 2.4em;
	margin-bottom: .6em;
	padding-left: 34px;
	position: relative;
	line-height: 1.25;
}
.txm-page .entry-content > h2::before {
	content: "";
	position: absolute;
	left: 20px;
	top: .15em;
	bottom: .15em;
	width: 5px;
	border-radius: 4px;
	background: var(--txm-c);
}
.txm-page .entry-content > p,
.txm-page .entry-content > ul,
.txm-page .entry-content > ol {
	font-size: 1.05rem;
	line-height: 1.75;
}
.txm-page .entry-content > :last-child { margin-bottom: 3rem; }
.txm-page .site-content > .ast-container { max-width: none; padding: 0; }

/* ---------- Nút ---------- */
.txm-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 8px; }
.txm-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 13px 22px;
	border-radius: var(--txm-r);
	font-weight: 700;
	line-height: 1.1;
	text-decoration: none !important;
	background: var(--txm-c);
	color: #fff !important;
	border: 2px solid var(--txm-c);
	transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.txm-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .18); filter: brightness(1.06); }
.txm-btn:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.txm-btn--zalo { background: #0068ff; border-color: #0068ff; }
.txm-btn--wa { background: #1faa59; border-color: #1faa59; }

/* ---------- Banner H1 ---------- */
.txm-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 360px;
	overflow: hidden;
	background: linear-gradient(135deg, var(--txm-c), #0b2e2a 140%);
	color: #fff;
}
.txm-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.txm-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 20, 24, .78), rgba(8, 20, 24, .25)); }
.txm-hero:not(.has-img) .txm-hero__shade { background: none; }
.txm-hero__inner { position: relative; width: 100%; max-width: var(--txm-w); margin: 0 auto; padding: 56px 20px; box-sizing: border-box; }
.txm-hero__title { color: #fff; margin: 0 0 14px; font-size: clamp(1.8rem, 4.6vw, 3rem); line-height: 1.15; max-width: 22ch; text-wrap: balance; }
.txm-hero__sub { max-width: 60ch; font-size: clamp(1rem, 2.2vw, 1.2rem); line-height: 1.6; margin: 0; color: rgba(255, 255, 255, .92); }
.txm-btns--hero .txm-btn { box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }

/* ---------- Breadcrumb ---------- */
.txm-crumbs { margin-top: 18px; margin-bottom: 6px; font-size: .9rem; }
.txm-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; color: var(--txm-muted); }
.txm-crumbs li + li::before { content: "›"; margin-right: 6px; }
.txm-crumbs a { color: var(--txm-c); text-decoration: none; }
.txm-crumbs a:hover { text-decoration: underline; }

/* ---------- Lưới và thẻ ---------- */
.txm-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.txm-grid--cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.txm-card { background: #fff; border: 1px solid var(--txm-line); border-radius: var(--txm-r); overflow: hidden; box-shadow: 0 2px 10px rgba(15, 23, 42, .05); }
.txm-card__img img { display: block; width: 100%; height: 190px; object-fit: cover; }
.txm-card__body { padding: 18px 20px 20px; }
.txm-card__title { margin: 0 0 6px; font-size: 1.2rem; }
.txm-card__models { margin: 0 0 8px; color: var(--txm-c); font-weight: 600; font-size: .92rem; }
.txm-card__body p:last-child { margin-bottom: 0; }

/* ---------- Bảng giá ---------- */
.txm-tablewrap { overflow-x: auto; border: 1px solid var(--txm-line); border-radius: var(--txm-r); }
.txm-table { width: 100%; border-collapse: collapse; margin: 0; min-width: 520px; }
.txm-table th, .txm-table td { padding: 14px 16px; text-align: left; border: 0; border-bottom: 1px solid var(--txm-line); }
.txm-table thead th { background: var(--txm-c); color: #fff; font-weight: 700; }
.txm-table tbody tr:nth-child(even) { background: var(--txm-soft); }
.txm-table tbody tr:last-child th, .txm-table tbody tr:last-child td { border-bottom: 0; }
.txm-table tbody th { font-weight: 700; }
@media (max-width: 600px) {
	.txm-table { min-width: 0; }
	.txm-table thead { position: absolute; left: -9999px; }
	.txm-table, .txm-table tbody, .txm-table tr, .txm-table th, .txm-table td { display: block; }
	.txm-table tr { padding: 10px 0; border-bottom: 1px solid var(--txm-line); }
	.txm-table td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 6px 16px; }
	.txm-table td::before { content: attr(data-label); color: var(--txm-muted); }
	.txm-table tbody th { padding: 6px 16px; font-size: 1.05rem; }
}
.txm-note { background: var(--txm-soft); border-left: 4px solid var(--txm-c); border-radius: 8px; padding: 12px 18px; }
.txm-note p { margin: 0 0 .5em; }
.txm-note p:last-child { margin: 0; }

/* ---------- Giấy tờ, lý do, lịch trình ---------- */
.txm-docs { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.txm-box { border: 1px solid var(--txm-line); border-radius: var(--txm-r); padding: 18px 22px; background: #fff; }
.txm-box h3 { margin: 0 0 8px; font-size: 1.1rem; }
.txm-list { margin: 0 0 0 1.1em; padding: 0; }
.txm-list li { margin: 0 0 6px; }
.txm-docs__note { margin-top: 14px; }

.txm-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.txm-checks li { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: var(--txm-soft); border-radius: var(--txm-r); }
.txm-checks svg { flex: none; color: var(--txm-c); margin-top: 2px; }

.txm-timeline { list-style: none; margin: 0; padding: 0; counter-reset: day; }
.txm-timeline li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 0 0 22px 56px; }
.txm-timeline li::before { counter-increment: day; content: counter(day); position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--txm-c); color: #fff; font-weight: 700; display: grid; place-items: center; }
.txm-timeline li::after { content: ""; position: absolute; left: 18px; top: 42px; bottom: 4px; width: 2px; background: var(--txm-line); }
.txm-timeline li:last-child::after { display: none; }

/* ---------- FAQ ---------- */
.txm-faq { display: grid; gap: 10px; }
.txm-faq__item { border: 1px solid var(--txm-line); border-radius: var(--txm-r); background: #fff; }
.txm-faq__item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 20px; font-weight: 700; position: relative; }
.txm-faq__item summary::-webkit-details-marker { display: none; }
.txm-faq__item summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--txm-c); }
.txm-faq__item[open] summary::after { content: "–"; }
.txm-faq__item summary:focus-visible { outline: 3px solid var(--txm-c); outline-offset: -3px; border-radius: var(--txm-r); }
.txm-faq__a { padding: 0 20px 16px; }
.txm-faq__a p { margin: 0 0 .6em; }

/* ---------- Liên hệ ---------- */
.txm-contact { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: stretch; }
.txm-contact__info { padding: 22px 24px; border: 1px solid var(--txm-line); border-radius: var(--txm-r); background: #fff; }
.txm-contact__brand { font-size: 1.25rem; font-weight: 800; margin: 0 0 12px; }
.txm-contact__list { list-style: none; margin: 0 0 8px; padding: 0; }
.txm-contact__list li { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px dashed var(--txm-line); }
.txm-contact__list strong { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--txm-muted); }
.txm-contact__map { min-height: 280px; border-radius: var(--txm-r); overflow: hidden; border: 1px solid var(--txm-line); }
.txm-contact__map iframe { display: block; width: 100%; height: 100%; min-height: 280px; border: 0; }
@media (max-width: 780px) { .txm-contact { grid-template-columns: 1fr; } }

/* ---------- Liên kết nội bộ ---------- */
.txm-links__title { font-weight: 800; font-size: 1.1rem; margin: 2.2em 0 .6em; }
.txm-linkcard { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--txm-line); border-radius: var(--txm-r); text-decoration: none !important; background: #fff; transition: border-color .15s, box-shadow .15s; }
.txm-linkcard:hover { border-color: var(--txm-c); box-shadow: 0 6px 16px rgba(15, 23, 42, .08); }
.txm-linkcard strong { color: var(--txm-c); }
.txm-linkcard span { color: var(--txm-muted); font-size: .92rem; }

/* ---------- Thanh gọi cố định (mobile) ---------- */
.txm-sticky { display: none; }
@media (max-width: 921px) {
	.txm-sticky {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
		background: rgba(255, 255, 255, .96);
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .15);
		backdrop-filter: blur(6px);
	}
	.txm-sticky .txm-btns { margin: 0; gap: 8px; flex-wrap: nowrap; }
	.txm-sticky .txm-btn { flex: 1 1 0; justify-content: center; padding: 12px 8px; font-size: .95rem; min-width: 0; }
	.txm-sticky .txm-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.txm-has-sticky { padding-bottom: 72px; }
	.txm-has-sticky #ast-scroll-top { bottom: 84px; }
}

@media (max-width: 600px) {
	.txm-hero { min-height: 300px; }
	.txm-hero__inner { padding: 40px 16px; }
	.txm-page .entry-content > * { padding-left: 16px; padding-right: 16px; }
	.txm-page .entry-content > h2 { padding-left: 28px; }
	.txm-page .entry-content > h2::before { left: 16px; }
}
@media (prefers-reduced-motion: reduce) {
	.txm-btn, .txm-linkcard { transition: none; }
	.txm-btn:hover { transform: none; }
}
