/* =========================================================
   Xe Dạo Sài Gòn – style.css
   Màu / font / khoảng cách theo DESIGN.md
   ========================================================= */

/* ---------- 1. Biến ---------- */
:root {
  /* Màu */
  --primary: #F26B1D;
  --primary-dark: #C9530F;
  --secondary: #0F4C5C;
  --accent: #FFC93C;
  --success: #2E9E5B;
  --danger: #D64545;
  --zalo: #0068FF;
  --bg: #FFFFFF;
  --bg-soft: #FFF6EE;
  --text: #1F2933;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --white: #FFFFFF;

  /* Chữ */
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fs-h1: 44px;
  --fs-h2: 32px;
  --fs-h3: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --fs-price: 20px;

  /* Khoảng cách (bội số 8px) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 40px;
  --sp-6: 48px;
  --sp-8: 64px;
  --section-gap: 80px;

  /* Bo góc */
  --radius-card: 16px;
  --radius-btn: 999px;
  --radius-input: 10px;

  /* Bóng */
  --shadow-card: 0 4px 20px rgba(15, 76, 92, .08);
  --shadow-card-hover: 0 12px 32px rgba(15, 76, 92, .16);
  --shadow-header: 0 2px 12px rgba(15, 76, 92, .10);

  /* Bố cục */
  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;
  --transition: .25s ease;
}

@media (max-width: 767px) {
  :root {
    --fs-h1: 30px;
    --fs-h2: 24px;
    --section-gap: 56px;
    --header-h: 64px;
  }
}

/* ---------- 2. Reset & nền tảng ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.no-scroll { overflow: hidden; }

/* Thuộc tính hidden luôn thắng các class đặt display (flex/grid…) */
[hidden] { display: none !important; }

img, svg, iframe, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

h1, h2, h3, h4 { margin: 0 0 var(--sp-2); line-height: 1.25; color: var(--text); }
h1 { font-size: var(--fs-h1); font-weight: 800; }
h2 { font-size: var(--fs-h2); font-weight: 700; color: var(--secondary); }
h3 { font-size: var(--fs-h3); font-weight: 600; }
p { margin: 0 0 var(--sp-2); }
ul { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid rgba(242, 107, 29, .45); outline-offset: 2px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- 3. Bố cục ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section-gap) 0; }
.section--soft { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto var(--sp-5); }
.section-head p { color: var(--text-muted); }

.text-muted { color: var(--text-muted); }
.text-small { font-size: var(--fs-small); }
.text-center { text-align: center; }

main { min-height: 50vh; }

/* Banner nhỏ cho trang con */
.page-banner {
  background: linear-gradient(135deg, var(--secondary) 0%, color-mix(in srgb, var(--secondary) 82%, var(--white)) 100%);
  color: var(--white);
  padding: var(--sp-6) 0;
}
.page-banner h1 { color: var(--white); margin-bottom: var(--sp-1); }

.breadcrumb {
  display: flex; flex-wrap: wrap; gap: 6px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, .85);
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[aria-current] { color: var(--white); font-weight: 600; }
.breadcrumb .sep { opacity: .6; }

/* Khung giữ chỗ cho module sau */
.placeholder-box {
  border: 2px dashed var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-6) var(--sp-3);
  text-align: center;
  color: var(--text-muted);
  background: var(--bg);
}

/* ---------- 4. Topbar ---------- */
.topbar {
  background: var(--secondary);
  color: var(--white);
  font-size: var(--fs-small);
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 40px; gap: var(--sp-2);
}
.topbar__group { display: flex; gap: var(--sp-3); }
.topbar a:hover { color: var(--accent); }

@media (max-width: 767px) { .topbar { display: none; } }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  transition: box-shadow var(--transition);
}
.site-header.is-scrolled { box-shadow: var(--shadow-header); }

.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: var(--sp-3);
}

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; }
.brand__name { font-weight: 800; font-size: 20px; color: var(--secondary); line-height: 1.1; }
.brand:hover .brand__name { color: var(--primary); }

.nav__list { display: flex; align-items: center; gap: var(--sp-4); }
.nav__link {
  position: relative; display: inline-flex; align-items: center;
  min-height: 44px; font-weight: 600;
}
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 2px; background: var(--primary);
  transform: scaleX(0); transition: transform var(--transition);
}
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--primary); }

.nav .nav__cta-mobile { display: none; }

.header__actions { display: flex; align-items: center; gap: var(--sp-1); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 10px;
  align-items: center; justify-content: center;
}
.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block; width: 24px; height: 2px; background: var(--secondary);
  border-radius: 2px; position: relative; transition: var(--transition);
}
.menu-toggle span::before,
.menu-toggle span::after { content: ''; position: absolute; left: 0; }
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.nav-close {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: var(--text);
  margin-left: auto;
}

.nav-overlay {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.nav-overlay.is-open { opacity: 1; visibility: visible; }

@media (max-width: 1023px) {
  .menu-toggle { display: inline-flex; }
  .header__actions .btn { display: none; }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
    width: min(300px, 85vw);
    background: var(--bg);
    padding: var(--sp-2) var(--sp-3) var(--sp-4);
    display: flex; flex-direction: column;
    transform: translateX(100%);
    transition: transform var(--transition), visibility var(--transition);
    visibility: hidden;
    overflow-y: auto;
  }
  .nav.is-open { transform: translateX(0); visibility: visible; box-shadow: -8px 0 24px rgba(0, 0, 0, .12); }
  .nav-close { display: inline-flex; align-items: center; justify-content: center; }

  .nav__list { flex-direction: column; align-items: stretch; gap: 0; margin-top: var(--sp-2); }
  .nav__link {
    width: 100%; min-height: 52px;
    border-bottom: 1px solid var(--border);
  }
  .nav__link::after { display: none; }
  .nav__link.is-active { padding-left: 12px; border-left: 3px solid var(--primary); }

  .nav .nav__cta-mobile { display: flex; margin-top: var(--sp-3); }
}

@media (max-width: 400px) {
  .brand__name { font-size: 17px; }
  .brand img { width: 40px; height: 40px; }
}

/* ---------- 6. Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius-btn);
  font-weight: 600; font-size: 15px; line-height: 1.2;
  text-align: center; white-space: nowrap;
  cursor: pointer;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
}
.btn:focus-visible { outline: 3px solid rgba(242, 107, 29, .45); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-dark); color: var(--white); }

.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--bg-soft); color: var(--primary); }

.btn--danger { background: var(--danger); color: var(--white); }
.btn--danger:hover { background: color-mix(in srgb, var(--danger) 85%, var(--text)); color: var(--white); }

.btn--white { background: var(--white); color: var(--primary); }
.btn--white:hover { background: var(--bg-soft); color: var(--primary-dark); }

.btn--zalo { background: var(--zalo); color: var(--white); }
.btn--zalo:hover { background: color-mix(in srgb, var(--zalo) 85%, var(--text)); color: var(--white); }

.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn--lg { min-height: 52px; padding: 14px 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn:disabled,
.btn.is-disabled { opacity: .5; cursor: not-allowed; pointer-events: none; }

.btn.is-loading { cursor: wait; pointer-events: none; opacity: .85; }
.btn.is-loading::before {
  content: '';
  width: 16px; height: 16px;
  border: 2px solid currentColor; border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 7. Chip / nhãn ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: var(--radius-btn);
  font-size: 12px; font-weight: 600; line-height: 1.4;
  background: var(--white); color: var(--secondary);
  border: 1px solid var(--border);
}
.chip--accent { background: var(--accent); color: var(--text); border-color: var(--accent); }
.chip--success { background: var(--success); color: var(--white); border-color: var(--success); }
.chip--danger { background: var(--danger); color: var(--white); border-color: var(--danger); }
.chip--pending { background: color-mix(in srgb, var(--accent) 25%, var(--white)); color: var(--text); border-color: var(--accent); }
.chip--confirmed { background: color-mix(in srgb, var(--success) 14%, var(--white)); color: color-mix(in srgb, var(--success) 65%, var(--text)); border-color: var(--success); }

/* ---------- 8. Card & thẻ xe ---------- */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3);
}

.bike-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-3);
}
@media (max-width: 1023px) { .bike-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px)  { .bike-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); } }
@media (max-width: 359px)  { .bike-grid { grid-template-columns: 1fr; } }

.bike-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.bike-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }

.bike-card__media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.bike-card__media img { width: 100%; height: 100%; object-fit: cover; }
.bike-card__media .chip { position: absolute; top: 10px; }
.bike-card__cat { left: 10px; }
.bike-card__sale { right: 10px; }

.bike-card__body { display: flex; flex-direction: column; gap: 6px; padding: var(--sp-2); flex: 1; }
.bike-card__title { margin: 0; font-size: var(--fs-h3); }
.bike-card__specs { font-size: 13px; color: var(--text-muted); }
.bike-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 8px; }
.bike-card__actions .btn { padding: 8px 10px; font-size: 14px; }

@media (max-width: 767px) {
  .bike-card__body { padding: 12px; }
  .bike-card__title { font-size: 16px; }
  .bike-card__price .price { font-size: 17px; }
  .bike-card__price .price small { font-size: 12px; }
  .bike-card__actions { grid-template-columns: 1fr; }
}

/* Giá */
.price { font-size: var(--fs-price); font-weight: 700; color: var(--primary); }
.price small { font-size: 14px; font-weight: 500; color: var(--text-muted); }
.price-old { font-size: 14px; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }

/* ---------- 9. Form ---------- */
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--sp-2); }
.form-label { font-weight: 600; font-size: 14px; }
.form-label .req { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-input);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea.form-control { min-height: 96px; resize: vertical; }
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242, 107, 29, .2); }
.form-control::placeholder { color: var(--text-muted); opacity: .75; }

.form-group.has-error .form-control { border-color: var(--danger); }
.form-group.has-error .form-control:focus { box-shadow: 0 0 0 3px rgba(214, 69, 69, .2); }
.form-error { display: none; font-size: 13px; color: var(--danger); }
.form-group.has-error .form-error { display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2); }
@media (max-width: 767px) { .form-row { grid-template-columns: 1fr; } }

.check {
  display: flex; align-items: center; gap: 10px;
  min-height: 44px; cursor: pointer;
}
.check input { width: 18px; height: 18px; accent-color: var(--primary); }

/* ---------- 10. Toast ---------- */
.toast-container {
  position: fixed; top: 20px; right: 20px; z-index: 1000;
  display: flex; flex-direction: column; gap: 10px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--white);
  background: var(--secondary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
  pointer-events: auto;
  animation: toast-in .3s ease;
}
.toast--success { background: var(--success); }
.toast--error { background: var(--danger); }
.toast--info { background: var(--secondary); }
.toast__icon { font-weight: 700; flex-shrink: 0; }
.toast__msg { flex: 1; font-size: 15px; line-height: 1.45; }
.toast__close {
  border: 0; background: transparent; color: inherit;
  font-size: 20px; line-height: 1; padding: 0 2px; opacity: .85;
  min-width: 24px; min-height: 24px;
}
.toast__close:hover { opacity: 1; }
.toast.is-hiding { animation: toast-out .25s ease forwards; }

@keyframes toast-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-12px); } }

@media (max-width: 767px) {
  .toast-container { top: 12px; right: 50%; transform: translateX(50%); }
}

/* ---------- 11. Modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 900;
  display: flex; align-items: center; justify-content: center;
  padding: var(--sp-2);
  background: rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  position: relative;
  width: 100%; max-width: 480px; max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--bg);
  border-radius: var(--radius-card);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  transform: translateY(16px);
  transition: transform var(--transition);
}
.modal.is-open .modal__box { transform: none; }
.modal__close {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px;
  border: 0; background: transparent; border-radius: 50%;
  font-size: 26px; line-height: 1; color: var(--text-muted);
}
.modal__close:hover { background: var(--bg-soft); color: var(--text); }
.modal__title { margin-bottom: var(--sp-2); padding-right: 32px; font-size: 22px; color: var(--secondary); }
.modal__actions { display: flex; gap: var(--sp-1); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--sp-3); }

/* ---------- 12. Trạng thái ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--border) 25%, color-mix(in srgb, var(--border) 40%, var(--white)) 37%, var(--border) 63%);
  background-size: 400% 100%;
  animation: skeleton 1.4s ease infinite;
  border-radius: 8px;
}
.skeleton-card { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); }
.skeleton-card .skeleton--img { aspect-ratio: 1 / 1; border-radius: 0; }
.skeleton-card .skeleton--line { height: 14px; margin: 12px 16px 0; }
.skeleton-card .skeleton--line.short { width: 50%; margin-bottom: 16px; }
@keyframes skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

.state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-6) var(--sp-2);
  color: var(--text-muted);
}
.state__icon { font-size: 48px; line-height: 1; margin-bottom: var(--sp-2); }
.state__title { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: var(--sp-2); }

/* ---------- 13. Bảng ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.table { width: 100%; min-width: 560px; border-collapse: collapse; background: var(--bg); }
.table th, .table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.table th { background: var(--secondary); color: var(--white); font-weight: 600; }
.table tbody tr:nth-child(even) { background: var(--bg-soft); }

/* ---------- 14. Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion__item { border: 1px solid var(--border); border-radius: 12px; background: var(--bg); overflow: hidden; }
.accordion__btn {
  width: 100%; min-height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: 14px 20px;
  border: 0; background: transparent; text-align: left; font-weight: 600;
}
.accordion__btn::after { content: '+'; font-size: 22px; color: var(--primary); transition: transform var(--transition); }
.accordion__item.is-open .accordion__btn::after { transform: rotate(45deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.accordion__panel > div { padding: 0 20px 16px; color: var(--text-muted); }

/* ---------- 15. Tab ---------- */
.tabs { display: flex; gap: var(--sp-1); overflow-x: auto; padding-bottom: 4px; margin-bottom: var(--sp-3); }
.tab {
  flex-shrink: 0; min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-btn);
  background: var(--bg); font-weight: 600; white-space: nowrap;
}
.tab:hover { border-color: var(--primary); color: var(--primary); }
.tab.is-active { background: var(--primary); border-color: var(--primary); color: var(--white); }

/* ---------- 16. Footer ---------- */
.site-footer {
  background: var(--secondary);
  color: rgba(255, 255, 255, .85);
  padding: var(--sp-8) 0 0;
  font-size: 15px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr .8fr 1.2fr 1.3fr;
  gap: var(--sp-4);
}
.footer__title { color: var(--white); font-size: 17px; font-weight: 700; margin-bottom: var(--sp-2); }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: var(--sp-2); }
.footer__brand img {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--white); padding: 4px; object-fit: contain;
}
.footer__brand span { color: var(--white); font-weight: 800; font-size: 20px; }
.footer__links li,
.footer__contact li { margin-bottom: 10px; }
.footer__links a,
.footer__contact a { display: inline-flex; min-height: 28px; align-items: center; }
.site-footer a:hover { color: var(--accent); }

.footer__social { display: flex; gap: 10px; margin-top: var(--sp-2); }
.footer__social a {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .12); color: var(--white);
  font-weight: 700; font-size: 14px;
}
.footer__social a:hover { background: var(--primary); color: var(--white); }

.footer__map iframe {
  width: 100%; height: 180px; border: 0;
  border-radius: 12px;
}

.footer__bottom {
  margin-top: var(--sp-6);
  padding: var(--sp-3) 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
  text-align: center;
  font-size: var(--fs-small);
}
.footer__bottom p { margin: 0; }
.footer__bottom .footer__note { margin-top: 4px; font-size: 12px; opacity: .75; }

@media (max-width: 1023px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) {
  .site-footer { padding-top: var(--sp-6); padding-bottom: 72px; }
  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ---------- 17. Nút liên hệ nổi ---------- */
.float-contact {
  position: fixed; right: 16px; bottom: 20px; z-index: 800;
  display: flex; flex-direction: column; gap: 12px;
}
body.no-scroll .float-contact { display: none; }
.float-btn {
  position: relative;
  width: 52px; height: 52px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .2);
  transition: transform var(--transition);
}
.float-btn:hover { transform: scale(1.08); color: var(--white); }
.float-btn svg { width: 26px; height: 26px; }
.float-btn--zalo { background: var(--zalo); font-weight: 800; font-size: 13px; letter-spacing: .3px; }
.float-btn--call { background: var(--primary); }
.float-btn--call::before,
.float-btn--call::after {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid var(--primary);
  animation: ring 1.8s ease-out infinite;
  pointer-events: none;
}
.float-btn--call::after { animation-delay: .9s; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }

.float-btn__tip {
  position: absolute; right: calc(100% + 10px); top: 50%;
  transform: translateY(-50%) translateX(6px);
  padding: 6px 12px; border-radius: 8px;
  background: var(--text); color: var(--white);
  font-size: 13px; font-weight: 500; white-space: nowrap;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: var(--transition);
}
.float-btn:hover .float-btn__tip,
.float-btn:focus-visible .float-btn__tip { opacity: 1; visibility: visible; transform: translateY(-50%); }

@media (max-width: 767px) {
  .float-contact { right: 12px; bottom: 16px; gap: 10px; }
  .float-btn { width: 48px; height: 48px; }
  /* Trang chi tiết xe: đẩy nút nổi lên để không che nút "Xác nhận đặt xe" */
  body.has-sticky-cta .float-contact { bottom: 88px; }
}

/* ---------- 18. Bổ sung thẻ xe ---------- */
.bike-card__media { display: block; overflow: hidden; }
.bike-card__media img { transition: transform .4s ease; }
.bike-card:hover .bike-card__media img { transform: scale(1.04); }
.bike-card__nolicense { align-self: flex-start; }
.bike-card__title a:hover { color: var(--primary); }
.bike-card__specs,
.bike-card__price { margin: 0; }
.bike-card__price { display: flex; align-items: baseline; flex-wrap: wrap; }

/* ---------- 19. Trang Danh sách xe (xe.html) ---------- */
.catalog {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--sp-4);
  align-items: start;
}

.catalog__sidebar {
  position: sticky;
  top: calc(var(--header-h) + var(--sp-2));
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--sp-3);
}

.filter-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-2); }
.filter-panel__head h2 { margin: 0; font-size: 20px; }
.filter-panel__close {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: var(--text-muted); border-radius: 50%;
}
.filter-panel__foot { display: none; }

.filter-group { border: 0; margin: 0 0 var(--sp-3); padding: 0; min-width: 0; }
.filter-title { display: block; padding: 0; margin-bottom: var(--sp-1); font-weight: 700; font-size: 15px; color: var(--secondary); }
.filter-options { display: flex; flex-direction: column; }
.filter-options .check { min-height: 40px; font-size: 15px; }
.filter-options .check input[type="radio"] { border-radius: 50%; }
.filter-options .check:hover { color: var(--primary); }
.filter-loading { font-size: var(--fs-small); color: var(--text-muted); }

/* Công tắc bật/tắt */
.switch { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; font-weight: 600; font-size: 15px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch__track {
  position: relative; flex-shrink: 0;
  width: 44px; height: 24px; border-radius: 999px;
  background: var(--border); transition: background var(--transition);
}
.switch__track::after {
  content: ''; position: absolute; top: 3px; left: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--white); box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
  transition: transform var(--transition);
}
.switch input:checked + .switch__track { background: var(--success); }
.switch input:checked + .switch__track::after { transform: translateX(20px); }
.switch input:focus-visible + .switch__track { outline: 3px solid rgba(242, 107, 29, .45); outline-offset: 2px; }

.catalog__toolbar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
}
.catalog__count { margin: 0; color: var(--text-muted); }
.catalog__count strong { color: var(--text); font-size: 18px; }
.catalog__sort { display: flex; align-items: center; gap: var(--sp-1); }
.catalog__sort label { font-size: var(--fs-small); color: var(--text-muted); white-space: nowrap; }
.catalog__sort .form-control { width: auto; min-width: 180px; min-height: 44px; padding-right: 36px; }

.filter-toggle { display: none; }
.filter-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: var(--white); font-size: 12px;
}
.filter-badge[hidden] { display: none; }

.filter-overlay {
  position: fixed; inset: 0; z-index: 250;
  background: rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.filter-overlay.is-open { opacity: 1; visibility: visible; }

/* Thông báo ngày đã chọn */
.notice {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-1);
  padding: 12px 16px; margin-bottom: var(--sp-3);
  background: var(--bg-soft); border: 1px solid rgba(242, 107, 29, .3); border-radius: 12px;
  font-size: 15px;
}
.notice[hidden] { display: none; }
.notice strong { color: var(--primary-dark); }
.notice__clear {
  border: 0; background: transparent; color: var(--text-muted);
  font-size: var(--fs-small); text-decoration: underline; min-height: 44px; padding: 0 4px;
}
.notice__clear:hover { color: var(--danger); }

@media (min-width: 1024px) {
  .bike-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tablet + mobile: bộ lọc thành ngăn kéo trượt từ dưới lên */
@media (max-width: 1023px) {
  .catalog { grid-template-columns: 1fr; }

  .catalog__sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 300;
    max-height: 85vh; overflow-y: auto;
    border-radius: 20px 20px 0 0; border: 0;
    padding: var(--sp-2) var(--sp-3) 0;
    transform: translateY(100%); visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }
  .catalog__sidebar.is-open { transform: translateY(0); visibility: visible; box-shadow: 0 -8px 32px rgba(0, 0, 0, .18); }

  .filter-panel__close { display: inline-flex; align-items: center; justify-content: center; }
  .filter-panel__foot {
    display: block;
    position: sticky; bottom: 0;
    margin: 0 calc(var(--sp-3) * -1);
    padding: 12px var(--sp-3) 16px;
    background: var(--bg); border-top: 1px solid var(--border);
  }

  .filter-toggle { display: inline-flex; }
  .catalog__toolbar .catalog__count { order: 3; flex-basis: 100%; }
}

@media (max-width: 767px) {
  .catalog__sort label { display: none; }
  .catalog__sort .form-control { min-width: 0; }
}

/* ---------- 20. Trang chủ (index.html) ---------- */
.text-primary { color: var(--primary); }
main section[id] { scroll-margin-top: var(--header-h); }
.section-more { margin-top: var(--sp-5); }
.tabs--center { justify-content: center; }
@media (max-width: 767px) { .tabs--center { justify-content: flex-start; } }

/* 20.1 Hero */
.hero {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  padding: var(--sp-6) 0 var(--sp-8);
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: var(--sp-6);
  align-items: center;
}
.hero__eyebrow {
  display: inline-block; margin-bottom: var(--sp-2);
  padding: 6px 14px; border-radius: var(--radius-btn);
  background: var(--white); border: 1px solid rgba(242, 107, 29, .3);
  color: var(--primary-dark); font-size: var(--fs-small); font-weight: 600;
}
.hero h1 { color: var(--secondary); margin-bottom: var(--sp-2); }
.hero__lead { font-size: 17px; color: var(--text-muted); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: var(--sp-3) 0 var(--sp-4); }

.search-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card-hover);
  padding: var(--sp-3);
}
.search-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-2);
  align-items: start;
}
.search-card .form-group { margin-bottom: 0; }
.search-card__submit { padding-top: 27px; }
.search-card__submit .btn { min-height: 48px; }

.hero__media { position: relative; }
.hero__frame {
  position: relative;
  border-radius: 24px; overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-card-hover);
  border: 6px solid var(--white);
  aspect-ratio: 1 / 1;
}
.hero__frame::before {
  content: ''; position: absolute; inset: auto -20% -35% -20%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(242, 107, 29, .18), transparent 70%);
  pointer-events: none;
}
.hero__frame img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  padding: 10px 16px; border-radius: 12px;
  background: var(--white); box-shadow: var(--shadow-card-hover);
  font-weight: 700; font-size: 14px; color: var(--secondary); white-space: nowrap;
}
.hero__badge--top { top: 24px; left: -20px; }
.hero__badge--bottom { bottom: 28px; right: -12px; background: var(--secondary); color: var(--white); }

@media (max-width: 1023px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero__media { order: -1; max-width: 420px; width: 100%; margin: 0 auto; }
  .search-card__submit { padding-top: 0; grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .hero { padding: var(--sp-4) 0 var(--sp-6); }
  .hero__media { max-width: 240px; }
  .hero__badge { font-size: 12px; padding: 8px 12px; }
  .hero__badge--top { left: -8px; top: 12px; }
  .hero__badge--bottom { right: -8px; bottom: 12px; }
  .hero__actions .btn { flex: 1 1 auto; padding: 12px 16px; }
  .search-card { padding: var(--sp-2); }
  .search-card__grid { grid-template-columns: 1fr; }
}

/* 20.2 Thống kê nhanh */
.stats-section { padding: var(--sp-5) 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sp-2);
}
.stat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: var(--sp-3) var(--sp-2);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-card); box-shadow: var(--shadow-card);
}
.stat-card__icon { font-size: 28px; line-height: 1; margin-bottom: 6px; }
.stat-card strong { font-size: 17px; color: var(--secondary); }
.stat-card span:last-child { font-size: 13px; color: var(--text-muted); }
@media (max-width: 1023px) {
  /* Cuộn ngang có chủ đích (DESIGN 6.1) */
  .stats {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 8px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter);
    scrollbar-width: thin;
  }
  .stat-card { flex: 0 0 170px; scroll-snap-align: start; }
}

/* 20.4 Bảng giá */
.pricing-table td:first-child a { font-weight: 600; }
.pricing-table td:first-child a:hover { color: var(--primary); }
.pricing-table .price { font-size: 17px; }
.pricing-extra {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3);
  margin-top: var(--sp-4);
}
.info-card h3 { color: var(--secondary); margin-bottom: 12px; }
.info-card--accent { background: var(--bg-soft); border-color: rgba(242, 107, 29, .3); }
.info-list li {
  display: flex; justify-content: space-between; gap: var(--sp-2);
  padding: 10px 0; border-bottom: 1px dashed var(--border);
}
.info-list li:last-child { border-bottom: 0; }
.info-list strong { color: var(--primary); white-space: nowrap; }
.info-list .info-list__note { display: block; font-size: 13px; color: var(--text-muted); padding-bottom: 0; }
@media (max-width: 767px) { .pricing-extra { grid-template-columns: 1fr; } }

/* 20.5 Vì sao chọn tụi mình */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.feature-card {
  background: var(--bg); border-radius: var(--radius-card);
  box-shadow: var(--shadow-card); padding: var(--sp-4) var(--sp-3);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); }
.feature-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: var(--sp-2);
  border-radius: 50%; background: var(--bg-soft); font-size: 30px;
}
.feature-card p { color: var(--text-muted); font-size: 15px; margin: 0; }
@media (max-width: 1023px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .feature-grid { grid-template-columns: 1fr; } }

/* 20.6 Video */
.video-frame {
  max-width: 900px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-card); overflow: hidden;
  background: var(--secondary);
  box-shadow: var(--shadow-card-hover);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; }
.video-frame .state { color: rgba(255, 255, 255, .85); height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.video-frame .state__title { color: var(--white); }

/* 20.7 Đánh giá */
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.review-card { display: flex; flex-direction: column; gap: 12px; }
.review-card__head { display: flex; align-items: center; gap: 12px; }
.avatar {
  flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--secondary); color: var(--white); font-weight: 700; font-size: 20px;
}
.review-card__name { margin: 0; font-weight: 700; }
.review-card__from { margin: 0; font-size: 13px; color: var(--text-muted); }
.stars { color: var(--accent); letter-spacing: 2px; font-size: 18px; line-height: 1; }
.review-card__text { margin: 0; color: var(--text); font-style: italic; }
@media (max-width: 1023px) { .review-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; } }

/* 20.8 Thủ tục 3 bước */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-4);
  counter-reset: none;
}
.step { position: relative; text-align: center; padding: 0 var(--sp-2); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; margin-bottom: var(--sp-2);
  border-radius: 50%; background: var(--primary); color: var(--white);
  font-size: 26px; font-weight: 800;
  box-shadow: 0 0 0 8px var(--bg-soft);
}
.step:not(:last-child)::after {
  content: ''; position: absolute; top: 32px; left: calc(50% + 48px); right: calc(-50% + 48px);
  border-top: 2px dashed rgba(242, 107, 29, .3);
}
.step p { color: var(--text-muted); margin: 0; }
@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: var(--sp-4); }
  .step:not(:last-child)::after { display: none; }
}

/* 20.9 FAQ */
.faq { max-width: 840px; }

/* 20.10 CTA cuối */
.cta-band { background: var(--primary); color: var(--white); padding: var(--sp-6) 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); flex-wrap: wrap; }
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { margin: 0; opacity: .92; }
@media (max-width: 767px) {
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; }
}

/* ---------- 21. Trang Chi tiết xe (xe-chi-tiet.html) ---------- */
.detail-crumbs { background: var(--bg-soft); padding: 14px 0; }
.breadcrumb--dark { color: var(--text-muted); }
.breadcrumb--dark a:hover { color: var(--primary); }
.breadcrumb--dark span[aria-current] { color: var(--text); }

.detail-section { padding-top: var(--sp-5); }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: var(--sp-4);
  align-items: start;
}
.detail-layout[hidden] { display: none; }
.detail-main { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.detail-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-4); align-items: start; }

.detail-media {
  position: relative; aspect-ratio: 1 / 1;
  border-radius: var(--radius-card); overflow: hidden;
  background: var(--bg-soft); border: 1px solid var(--border);
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media__skeleton { width: 100%; height: 100%; border-radius: 0; }

.detail-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.detail-title { font-size: 32px; color: var(--secondary); margin-bottom: 8px; }
.detail-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px; margin-bottom: var(--sp-2); }
.detail-price .price { font-size: 28px; }
.detail-price small { color: var(--text-muted); }

.spec-table { width: 100%; border-collapse: collapse; margin-bottom: var(--sp-2); font-size: 15px; }
.spec-table th, .spec-table td { padding: 10px 0; border-bottom: 1px solid var(--border); text-align: left; }
.spec-table th { width: 42%; font-weight: 500; color: var(--text-muted); }
.spec-table td { font-weight: 600; }
.detail-desc { color: var(--text); }
.detail-suitable { margin-bottom: var(--sp-2); }
.detail-included h3 { font-size: 16px; margin-bottom: 8px; }

.check-list li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.check-list li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--success); color: var(--white); font-size: 12px; font-weight: 700;
}
.check-list a { color: var(--primary); text-decoration: underline; }
.detail-policy__title { font-size: 20px; margin-bottom: var(--sp-2); }
.detail-book-link { margin-top: var(--sp-2); display: none; }

/* Form đặt xe */
.detail-aside { position: sticky; top: calc(var(--header-h) + var(--sp-2)); }
#dat-xe { scroll-margin-top: calc(var(--header-h) + var(--sp-2)); }
.booking-card { padding: var(--sp-3); box-shadow: var(--shadow-card-hover); }
.booking-card__title { font-size: 22px; margin-bottom: 4px; }
.booking-card__unit { margin-bottom: var(--sp-2); }
.booking-card__unit small { color: var(--text-muted); }
.booking-card__note { margin: 12px 0 0; font-size: 13px; color: var(--text-muted); text-align: center; }
.booking-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.booking-fieldset:disabled { opacity: .6; }
.booking-card .form-row { gap: 12px; }
.delivery-group { border: 0; padding: 0; min-width: 0; }
.delivery-group legend { padding: 0; margin-bottom: 6px; }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper__btn {
  width: 44px; height: 48px; flex-shrink: 0;
  border: 1px solid var(--border); border-radius: var(--radius-input);
  background: var(--bg); font-size: 22px; line-height: 1; color: var(--secondary);
}
.stepper__btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.stepper__btn:disabled { opacity: .4; cursor: not-allowed; }
.stepper__input { width: 72px; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.stepper__hint { font-size: 13px; color: var(--text-muted); }

.delivery-options { display: flex; flex-direction: column; gap: 8px; }
.delivery-option {
  display: flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-input);
  cursor: pointer; transition: border-color var(--transition), background var(--transition);
}
.delivery-option:hover { border-color: var(--primary); }
.delivery-option input { width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.delivery-option__label { flex: 1; font-size: 15px; }
.delivery-option__fee { font-weight: 700; font-size: 14px; color: var(--primary); white-space: nowrap; }
.delivery-option:has(input:checked) { border-color: var(--primary); background: var(--bg-soft); }

/* Ô tính tiền */
.price-box {
  margin: var(--sp-2) 0;
  padding: var(--sp-2);
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px dashed rgba(242, 107, 29, .3);
  font-size: 15px;
}
.price-box__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.price-box__row span:first-child { color: var(--text-muted); }
.price-box__row--discount span:last-child { color: var(--success); font-weight: 600; }
.price-box__row--total {
  margin-top: 6px; padding-top: 12px;
  border-top: 1px solid rgba(242, 107, 29, .3);
  align-items: baseline;
}
.price-box__row--total span:first-child { color: var(--text); font-weight: 700; }
.price-box__row--total strong { font-size: 26px; color: var(--primary); }
.price-box__hint { margin: 6px 0 0; font-size: 13px; color: var(--text-muted); }
.price-box__empty { margin: 0; color: var(--text-muted); text-align: center; }

/* Modal đặt xe thành công */
.success { text-align: center; }
.success__icon {
  width: 72px; height: 72px; margin: 0 auto var(--sp-2);
  border-radius: 50%; background: var(--success); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 38px; font-weight: 700;
}
.success__title { color: var(--secondary); font-size: 24px; margin-bottom: 4px; }
.success__code {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px;
  margin: 8px 0 var(--sp-2); padding: 14px;
  background: var(--bg-soft); border: 2px dashed var(--primary); border-radius: 12px;
}
.success__code strong { font-size: 26px; letter-spacing: 1px; color: var(--primary-dark); }
.success__summary { margin: 0 0 var(--sp-2); text-align: left; font-size: 15px; }
.success__summary div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.success__summary dt { color: var(--text-muted); }
.success__summary dd { margin: 0; font-weight: 600; text-align: right; }
.success__summary .success__total dd { color: var(--primary); font-size: 18px; }
.success .modal__actions { justify-content: center; }

/* Thanh đặt xe dính đáy */
.mobile-book-bar { display: none; }

@media (max-width: 1023px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
  .detail-book-link { display: inline-flex; }

  .mobile-book-bar:not([hidden]) {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 700;
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
    padding: 10px var(--gutter);
    background: var(--bg); border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(15, 76, 92, .1);
    transition: transform var(--transition);
  }
  .mobile-book-bar.is-hidden { transform: translateY(110%); }
  .mobile-book-bar__total { display: flex; flex-direction: column; line-height: 1.2; }
  .mobile-book-bar__total span { font-size: 12px; color: var(--text-muted); }
  .mobile-book-bar__total strong { font-size: 20px; color: var(--primary); }
  .mobile-book-bar .btn { padding: 10px 28px; }

  body.has-sticky-cta .float-contact { bottom: 88px; transition: opacity var(--transition), visibility var(--transition); }
  body.has-sticky-cta .site-footer { padding-bottom: 80px; }
  body.booking-in-view .float-contact { opacity: 0; visibility: hidden; }
}

@media (max-width: 767px) {
  .detail-section { padding-top: var(--sp-3); }
  .detail-top { grid-template-columns: 1fr; gap: var(--sp-3); }
  .detail-title { font-size: 26px; }
  .booking-card { padding: var(--sp-2); }
}

/* ---------- 22. Trang Đơn thuê (don-thue.html) ---------- */
.bookings-layout { max-width: 960px; display: flex; flex-direction: column; gap: var(--sp-5); }

.lookup-card { padding: var(--sp-3); box-shadow: var(--shadow-card-hover); }
.lookup-card__title { font-size: 20px; margin-bottom: 4px; }
.lookup-card__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 160px;
  gap: var(--sp-2);
  align-items: start;
  margin-top: var(--sp-2);
}
.lookup-card .form-group { margin-bottom: 0; }
.lookup-card__submit { padding-top: 27px; }
.lookup-card__submit .btn { min-height: 48px; }
.lookup-card__code { text-transform: uppercase; letter-spacing: .5px; }
.lookup-card__code::placeholder { text-transform: none; }

.my-bookings__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-2); }
.my-bookings__title { font-size: 22px; margin: 0; }
.booking-list { display: flex; flex-direction: column; gap: var(--sp-2); }

/* Thẻ đơn */
.order-card {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition), border-color var(--transition), opacity .3s ease, transform .3s ease;
}
.order-card.is-highlight { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(242, 107, 29, .2), var(--shadow-card); }
.order-card.is-removing { opacity: 0; transform: translateX(16px); }
.order-card__media { aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.order-card__media img { width: 100%; height: 100%; object-fit: cover; }
.order-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.order-card__name { font-size: 18px; margin: 0; }
.order-card__name a:hover { color: var(--primary); }
.order-card__code { margin: 0 0 12px; font-size: 14px; color: var(--text-muted); }
.order-card__code strong { color: var(--secondary); letter-spacing: .5px; }
.order-card__details {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px var(--sp-3); margin: 0 0 var(--sp-2); font-size: 15px;
}
.order-card__details div { min-width: 0; }
.order-card__details dt { font-size: 13px; color: var(--text-muted); }
.order-card__details dd { margin: 0; font-weight: 600; overflow-wrap: break-word; }
.order-card__details .order-card__total dd { color: var(--primary); font-size: 18px; white-space: nowrap; }
.order-card__actions { display: flex; flex-wrap: wrap; gap: var(--sp-1); align-items: center; }
.order-card__locked {
  margin: 0; padding: 10px 14px; border-radius: 10px;
  background: var(--bg-soft); font-size: 14px; color: var(--text-muted);
}
.order-card__locked a { color: var(--primary); font-weight: 600; }

.order-skeleton { display: grid; grid-template-columns: 120px 1fr; gap: var(--sp-3); padding: var(--sp-3); border: 1px solid var(--border); border-radius: var(--radius-card); }
.order-skeleton .skeleton--img { aspect-ratio: 1 / 1; border-radius: 12px; }
.order-skeleton .skeleton--line { height: 14px; margin-bottom: 12px; }

/* Modal đổi ngày */
.reschedule__info { margin-bottom: var(--sp-2); color: var(--text-muted); font-size: 15px; }
.reschedule__info strong { color: var(--text); }
.reschedule .form-row { gap: 12px; }
.reschedule__compare { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.reschedule__compare span:first-child { color: var(--text-muted); }
.reschedule__old { text-decoration: line-through; color: var(--text-muted); }
.reschedule__diff { font-size: 13px; text-align: right; color: var(--text-muted); margin: 4px 0 0; }

@media (max-width: 767px) {
  .lookup-card { padding: var(--sp-2); }
  .lookup-card__grid { grid-template-columns: 1fr; }
  .lookup-card__submit { padding-top: 0; }
  .order-card { grid-template-columns: 72px minmax(0, 1fr); gap: var(--sp-2); padding: var(--sp-2); }
  /* Ảnh + tên xe trên 1 hàng, chi tiết & nút trải hết chiều ngang bên dưới */
  .order-card { column-gap: 12px; row-gap: 0; align-items: start; }
  .order-card__body { display: contents; }
  .order-card__media { grid-row: span 2; }
  .order-card__head, .order-card__code { grid-column: 2; }
  .order-card__details, .order-card__actions { grid-column: 1 / -1; }
  .order-card__details { margin-top: 12px; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 14px; }
  .order-card__details .order-card__time { grid-column: 1 / -1; }
  .order-card__actions .btn { flex: 1 1 0; }
  .order-skeleton { grid-template-columns: 72px 1fr; padding: var(--sp-2); }
}
@media (max-width: 340px) {
  .order-card { grid-template-columns: 1fr; }
  .order-card__media { width: 96px; }
  .order-card__details { grid-template-columns: 1fr; }
}

/* ---------- 23. Trang Về chúng tôi (about.html) ---------- */
.about-story {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: var(--sp-6);
  align-items: center;
}
.about-story__media { position: relative; }
.about-story__media img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 24px; background: var(--white);
  border: 6px solid var(--white); box-shadow: var(--shadow-card-hover);
}
.about-story__badge {
  position: absolute; right: -16px; bottom: 32px;
  display: flex; flex-direction: column;
  padding: 14px 20px; border-radius: 14px;
  background: var(--secondary); color: var(--white);
  box-shadow: var(--shadow-card-hover);
}
.about-story__badge strong { font-size: 22px; line-height: 1.2; }
.about-story__badge span { font-size: 13px; opacity: .9; }
.about-story__content p { color: var(--text-muted); }
.about-story__content p strong { color: var(--text); }

.about-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-2);
  margin-top: var(--sp-3);
}
.about-stats li {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: var(--sp-2); border-radius: var(--radius-card); background: var(--bg-soft);
}
.about-stats strong { font-size: 26px; color: var(--primary); line-height: 1.2; }
.about-stats span { font-size: 14px; color: var(--text-muted); }

.policy-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
.policy-card { padding: var(--sp-3) var(--sp-4); }
.policy-card h3 { color: var(--secondary); font-size: 19px; }
.policy-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 12px;
  border-radius: 14px; background: var(--bg-soft); font-size: 26px;
}
.policy-card .check-list li:last-child { margin-bottom: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: var(--sp-5);
  align-items: stretch;
}
.contact-list { display: flex; flex-direction: column; gap: var(--sp-2); margin: var(--sp-3) 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list__icon {
  flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--white); box-shadow: var(--shadow-card); font-size: 20px;
}
.contact-list__label { display: block; font-size: 13px; color: var(--text-muted); }
.contact-list a, .contact-list li > div > span:not(.contact-list__label) { font-weight: 600; color: var(--text); }
.contact-list a:hover { color: var(--primary); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.contact-map {
  min-height: 400px;
  border-radius: var(--radius-card); overflow: hidden;
  box-shadow: var(--shadow-card-hover); background: var(--border);
}
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 400px; border: 0; }

@media (max-width: 1023px) {
  .about-story { grid-template-columns: 1fr; gap: var(--sp-4); }
  .about-story__media { max-width: 460px; width: 100%; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .policy-card { padding: var(--sp-3); }
}
@media (max-width: 767px) {
  .about-story__media { max-width: 300px; }
  .about-story__badge { right: -8px; bottom: 16px; padding: 10px 14px; }
  .about-story__badge strong { font-size: 18px; }
  .about-stats strong { font-size: 22px; }
  .policy-grid { grid-template-columns: 1fr; }
  .contact-map, .contact-map iframe { min-height: 300px; height: 300px; }
  .contact-actions .btn { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
