/* =========================================================
   Taxi Sông Vệ — mobile-first, tối ưu cả điện thoại lẫn desktop
   Breakpoint: 640px (tablet) · 1024px (desktop)
   ========================================================= */
:root {
  --blue: #0B3D91;
  --blue-700: #082C6A;
  --blue-50: #EEF3FC;
  --yellow: #FFC107;
  --yellow-600: #E5A800;
  --zalo: #0068FF;
  --ink: #0F172A;
  --muted: #5B6476;
  --line: #E3E8F0;
  --bg: #FFFFFF;
  --bg-soft: #EAF0FA;
  --ok: #15803D;
  --err: #DC2626;
  --r: 14px;
  --r-lg: 20px;
  --shadow: 0 10px 30px -12px rgba(11, 61, 145, .25);
  --shadow-lg: 0 24px 60px -20px rgba(11, 61, 145, .35);
  --header-h: 64px;
  --dock-h: 68px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .12s, background-color .2s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.btn--yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 6px 18px -6px rgba(229, 168, 0, .7); }
.btn--yellow:hover { background: var(--yellow-600); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-700); }
.btn--zalo { background: var(--zalo); color: #fff; }
.btn--zalo:hover { filter: brightness(.92); }
.btn--ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .2); }
.btn--line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn--xl { min-height: 56px; padding: 0 26px; font-size: 1.05rem; }
.btn--lg { min-height: 54px; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -10px rgba(0, 0, 0, .15); }
.header__inner { display: flex; align-items: center; gap: 16px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--blue); }
.brand__mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--yellow); font-size: 1.3rem; }
.brand__text { font-size: 1.2rem; font-weight: 600; }
.brand__text b { font-weight: 800; }
.brand--light { color: #fff; }

/* absolute dưới header (không dùng fixed: backdrop-filter của header làm fixed bị
   tính theo khung header cao 64px → menu mất nền, chữ đè lên trang) */
.nav {
  position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - var(--header-h)); z-index: 999;
  overflow-y: auto; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 16px; gap: 4px;
  background: #fff;
  /* ẩn theo chiều dọc: đẩy ngang sẽ nới vùng cuộn ngang trên di động */
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s;
}
.nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease; }
.nav a { padding: 14px 12px; border-radius: 10px; font-weight: 600; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.nav a:hover { background: var(--blue-50); color: var(--blue); }
.header__call { display: none; margin-left: auto; min-height: 42px; }

.burger { margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(255, 193, 7, .28), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(0, 104, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 100%);
  padding: 36px 0 44px;
}
.hero::after { /* vạch kẻ đường */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 40px, transparent 40px 70px);
  opacity: .9;
}
.hero__grid { display: grid; gap: 28px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12);
  font-size: .9rem; font-weight: 600;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }
.hero h1 { font-size: clamp(1.9rem, 7vw, 3.2rem); font-weight: 800; margin-bottom: 14px; }
.hero h1 .hero__ten { display: block; }
.hero h1 .hero__slogan { display: block; color: var(--yellow); }
.hero h1 .nw { white-space: nowrap; }
.hero__lead { font-size: 1.05rem; color: rgba(255, 255, 255, .88); max-width: 34em; }
.hero__cta { display: grid; gap: 12px; margin: 22px 0 18px; }
.hero__points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-size: .88rem; font-weight: 600; white-space: nowrap; }
.hero__points li::before { content: "✓"; color: var(--yellow); font-weight: 800; }
.hero__photo { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .15); }
.hero__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- Section chung ---------- */
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
.section--blue { background: var(--blue); color: #fff; }
.eyebrow { display: inline-block; margin-bottom: 8px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--blue); }
.eyebrow--yellow { color: var(--yellow); }
.section__title { font-size: clamp(1.6rem, 5vw, 2.4rem); font-weight: 800; margin-bottom: 28px; }
.section__lead { margin: -16px 0 24px; color: var(--muted); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---------- Đặt xe ---------- */
.booking-sec { background: var(--bg-soft); }
.booking { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.booking > *, .row > *, .place > * { min-width: 0; }
.field input, .field select { min-width: 0; max-width: 100%; }
.booking__form { padding: 20px 16px; position: relative; }
.booking__side { display: grid; gap: 16px; align-content: start; }

.steps-mini { display: flex; gap: 6px; margin-bottom: 16px; font-size: .78rem; font-weight: 700; color: var(--muted); }
.steps-mini span { flex: 1; padding: 6px 0; text-align: center; border-bottom: 3px solid var(--line); }
.steps-mini .on { color: var(--blue); border-color: var(--yellow); }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field label { font-size: .9rem; font-weight: 600; }
.req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; font-size: 16px; /* 16px để iOS không tự zoom */
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: auto; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(11, 61, 145, .12); }
.field .is-invalid, .is-invalid { border-color: var(--err) !important; box-shadow: 0 0 0 4px rgba(220, 38, 38, .12) !important; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.place { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; }
.place .field { margin-bottom: 4px; }
.place__pin { margin-top: 38px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .8rem; font-weight: 800; color: #fff; }
.place__pin--a { background: var(--ok); }
.place__pin--b { background: var(--err); }
.swap { display: block; margin: 0 0 0 auto; width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--blue); font-size: 1.1rem; cursor: pointer; }
.swap:hover { background: var(--blue-50); }

.ac { position: relative; }
.ac__wrap { position: relative; }
.ac__wrap input { padding-right: 48px; }
.ac__gps { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; border-radius: 10px; background: var(--blue-50); color: var(--blue); font-size: 1.15rem; cursor: pointer; }
.ac__list {
  position: absolute; z-index: 1200; top: 100%; left: 0; right: 0; margin: 4px 0 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); max-height: 280px; overflow: auto;
}
.ac__list li { padding: 10px 12px; border-radius: 8px; font-size: .92rem; line-height: 1.4; cursor: pointer; }
.ac__list li:hover, .ac__list li.on { background: var(--blue-50); }
.ac__list li.empty { color: var(--muted); cursor: default; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; margin: 6px 0 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; cursor: pointer; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.hint { font-size: .85rem; color: var(--muted); margin: 4px 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.is-busy { opacity: .6; cursor: progress; }
.btn:disabled { cursor: not-allowed; }
.code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 1.25rem; letter-spacing: .06em; color: var(--blue); }
.form-error { margin: 0; padding: 10px 14px; border-radius: 10px; background: #FEF2F2; color: var(--err); font-weight: 600; font-size: .92rem; }

.map-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); }
.map { height: 320px; background: #E8EEF6; }
.map__status { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 500; padding: 10px 14px; border-radius: 10px; background: rgba(15, 23, 42, .88); color: #fff; font-size: .88rem; }
.mk { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 3px solid #fff; border-radius: 50%; color: #fff; font-weight: 800; font-size: .9rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); cursor: grab; }
.mk::after { content: ""; position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); border: 6px solid transparent; border-top: 8px solid #fff; }
.mk--a { background: var(--ok); }
.mk--b { background: var(--err); }

.quote { padding: 18px 16px; transition: opacity .2s; }
.quote.is-loading { opacity: .55; pointer-events: none; }
.quote__empty { padding: 12px 14px; margin-bottom: 14px; border-radius: 12px; background: var(--bg-soft); color: var(--muted); font-size: .92rem; }
.quote__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.quote__stats div { padding: 10px 12px; border-radius: 12px; background: var(--blue-50); }
.quote__stats span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.quote__stats b { font-size: 1.15rem; color: var(--blue); }
.quote__lines { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0 0 10px; font-size: .9rem; }
.quote__lines dt { color: var(--muted); }
.quote__lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.quote__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 10px; border-top: 1.5px dashed var(--line); }
.quote__total span { font-weight: 700; }
.quote__total b { font-size: 1.7rem; font-weight: 800; color: var(--blue); font-variant-numeric: tabular-nums; }
.quote__note { margin: 6px 0 14px; font-size: .8rem; color: var(--muted); }
.quote__actions { display: grid; gap: 10px; }
.quote__alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.quote__alt .btn { padding: 0 10px; }

/* ---------- Thẻ "Bạn muốn đi đâu?" trên trang chủ ---------- */

/* ---------- Đặt xe nhanh (trang chủ) ---------- */
.where { display: grid; gap: 24px; align-items: center; }
.where .section__title { margin-bottom: 12px; }
.where__lead { color: var(--muted); max-width: 32em; }
.where__price { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.where__price li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.where__price .ic { font-size: 1.6rem; }
.where__price b { display: block; }
.where__price span { font-size: .85rem; color: var(--muted); }
.where__price .gia { margin-left: auto; font-size: 1.05rem; font-weight: 800; color: var(--blue); white-space: nowrap; }
.where__box { padding: 18px; }
.where__in { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; margin-bottom: 8px; border-radius: 14px; background: var(--bg-soft); color: var(--muted); text-decoration: none; font-weight: 500; }
.where__in b { color: var(--ink); font-weight: 600; }
.where__in:hover { background: var(--blue-50); }
.where__in i { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.where__in i.a { background: var(--ok); box-shadow: 0 0 0 3px #DCFCE7; }
.where__in i.b { background: var(--err); border-radius: 3px; box-shadow: 0 0 0 3px #FEE2E2; }
.where__sub { margin: 14px 0 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.where__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.where__chips .chip { text-decoration: none; color: var(--ink); }
@media (min-width: 1024px) {
  .where { grid-template-columns: 1fr 1fr; gap: 56px; }
  .where__box { padding: 24px; }
}

.dx-embed { display: none; }
.dx-embed__frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #E8EEF6; }
.dx-embed__frame iframe { display: block; width: 100%; height: 640px; border: 0; }
@media (min-width: 768px) {
  .dx-embed { display: block; }
  .where { display: none; }
}

/* ---------- Dịch vụ ---------- */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service { padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service__ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 12px; border-radius: 14px; background: var(--blue-50); font-size: 1.6rem; }
.service h3 { font-size: 1.15rem; }
.service p { color: var(--muted); margin: 0; }
.link { font-weight: 700; text-decoration: none; }


/* ---------- Vì sao ---------- */
.whys { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.why { padding: 20px 16px; border-radius: var(--r); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.why b { display: block; font-size: 1.5rem; color: var(--yellow); line-height: 1.2; margin-bottom: 6px; }
.why span { font-size: .92rem; color: rgba(255, 255, 255, .85); }

.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); font-size: .8rem; font-weight: 800; }

/* ---------- Quy trình ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
.steps li { position: relative; padding: 22px 20px 20px 76px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.steps li b { position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--blue); color: var(--yellow); font-size: 1.2rem; }
.steps h3 { font-size: 1.1rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-50); color: var(--blue); font-size: 1.2rem; transition: transform .2s; }
.faq[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Footer ---------- */
.footer { background: #0A1E44; color: rgba(255, 255, 255, .8); padding: 48px 0 0; }
.footer__grid { display: grid; gap: 28px; }
.footer h3 { color: #fff; font-size: 1.05rem; }
.footer a { color: #fff; }
.footer__desc { margin: 14px 0 18px; }
.footer__cta { display: flex; gap: 10px; flex-wrap: wrap; }
.footer__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer__map iframe { width: 100%; height: 220px; border: 0; border-radius: var(--r); filter: saturate(.9); }
.footer__bottom { margin-top: 36px; padding-top: 18px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer__bottom p { margin: 0 0 8px; }
.credits summary { cursor: pointer; color: rgba(255, 255, 255, .6); }
.credits p { margin-top: 8px; font-size: .8rem; color: rgba(255, 255, 255, .6); }

/* ---------- Dock liên hệ ---------- */
.dock {
  position: fixed; z-index: 1001; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -12px rgba(0, 0, 0, .2);
}
.dock__btn { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 50px; border-radius: 14px; font-weight: 800; text-decoration: none; color: #fff; -webkit-tap-highlight-color: transparent; }
.dock__btn:active { transform: scale(.97); }
.dock__btn--call { background: var(--ok); }
.dock__btn--call .dock__ic { animation: ring 2.4s infinite; display: inline-block; }
.dock__btn--book { background: var(--yellow); color: var(--ink); }
.dock__btn--zalo { background: var(--zalo); }
@keyframes ring { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-18deg); } 80% { transform: rotate(16deg); } 85% { transform: rotate(-12deg); } 90% { transform: rotate(8deg); } }

/* ---------- Modal + toast ---------- */
.modal { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.modal::backdrop { background: rgba(10, 30, 68, .55); backdrop-filter: blur(2px); }
.modal__head { padding: 24px 24px 8px; text-align: center; }
.modal__head h2 { font-size: 1.35rem; margin-bottom: 4px; }
.modal__head p { margin: 0; color: var(--muted); }
.modal__ok { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #DCFCE7; color: var(--ok); font-size: 1.8rem; font-weight: 800; }
.modal__ok.is-warn { background: #FEF3C7; color: #B45309; }
.modal__msg { margin: 12px 20px; padding: 14px; border-radius: 12px; background: var(--bg-soft); font: inherit; font-size: .88rem; white-space: pre-wrap; word-break: break-word; max-height: 40vh; overflow: auto; }
.modal__tip { margin: 0 24px 12px; font-size: .9rem; font-weight: 600; color: var(--blue); }
.modal__actions { display: grid; gap: 8px; padding: 0 20px 20px; }

.toast {
  position: fixed; z-index: 2000; left: 50%; bottom: calc(var(--dock-h) + 16px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px); opacity: 0; transition: opacity .2s, transform .2s;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-size: .92rem; font-weight: 600; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   TABLET ≥ 640px
   ========================================================= */
@media (min-width: 640px) {
  .container { padding: 0 24px; }
  .hero__cta { display: flex; flex-wrap: wrap; }
  .booking__form { padding: 24px; }
  .map { height: 380px; }
  .services { grid-template-columns: repeat(3, 1fr); }
  .whys { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { padding: 76px 20px 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__map { grid-column: 1 / -1; }
  .modal__actions { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   DESKTOP ≥ 1024px
   ========================================================= */
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .container { padding: 0 32px; }

  .burger { display: none; }
  .nav { position: static; height: auto; overflow: visible; border-top: 0; transform: none; opacity: 1; visibility: visible; flex-direction: row; padding: 0; gap: 2px; margin-left: auto; background: none; }
  .nav a { font-size: .97rem; padding: 10px 14px; }
  .header__call { display: inline-flex; margin-left: 12px; }

  .hero { padding: 72px 0 84px; }
  .hero__grid { grid-template-columns: 1.2fr .8fr; gap: 48px; }
  .hero h1 { font-size: 3.1rem; }
  .hero h1 .hero__ten { white-space: nowrap; }

  .section { padding: 64px 0; }
  .section__title { margin-bottom: 28px; }

  /* Đặt xe: form trái · bản đồ + báo giá phải (dính khi cuộn) */
  .booking { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 24px; align-items: start; }
  .booking__form { padding: 28px; }
  .booking__side { position: sticky; top: calc(var(--header-h) + 16px); gap: 14px; }
  /* bản đồ co theo chiều cao màn để khung giá luôn nằm trong tầm mắt */
  .map { height: clamp(260px, calc(100vh - var(--header-h) - 470px), 440px); }
  .quote { padding: 16px 18px; }
  .quote__stats { margin-bottom: 8px; }
  .quote__note { margin-bottom: 10px; }

  .services { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.3fr; gap: 40px; }
  .footer__map { grid-column: auto; }

  /* Dock thành cụm nút tròn nổi góc phải dưới */
  .dock { left: auto; right: 24px; bottom: 24px; grid-template-columns: 1fr; gap: 12px; padding: 0; background: none; backdrop-filter: none; border: 0; box-shadow: none; }
  .dock__btn { width: 60px; height: 60px; min-height: 0; border-radius: 50%; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); position: relative; font-size: 1.4rem; }
  .dock__btn--book { display: none; }
  .dock__lbl {
    position: absolute; right: 72px; padding: 6px 12px; border-radius: 8px; background: var(--ink); color: #fff;
    font-size: .85rem; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: .15s; pointer-events: none;
  }
  .dock__btn:hover .dock__lbl { opacity: 1; transform: none; }
  .dock__btn--call::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); animation: halo 1.8s infinite; }
  @keyframes halo { to { transform: scale(1.5); opacity: 0; } }
  .toast { bottom: 32px; }
}

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


/* ---------- Trang tuyến đường + trang chính sách ---------- */
.header__call--show { display: inline-flex; margin-left: auto; }
.page-route .header__inner { justify-content: space-between; }
.rt-hero { padding: 28px 0 36px; color: #fff; background: linear-gradient(160deg, var(--blue) 0%, var(--blue-700) 100%); }
.crumb { font-size: .85rem; opacity: .85; margin-bottom: 10px; }
.crumb a { color: #fff; }
.rt-hero h1 { font-size: clamp(1.7rem, 6vw, 2.8rem); font-weight: 800; margin-bottom: 10px; }
.rt-lead { max-width: 46em; color: rgba(255, 255, 255, .9); }
.rt-note { font-size: .82rem; opacity: .8; }
.rt-cta { display: grid; gap: 10px; margin-top: 16px; }
.rt-h2 { margin-top: 40px; font-size: clamp(1.3rem, 4vw, 1.8rem); }
.rt-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rt-links li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.rt-links a { font-weight: 600; text-decoration: none; }
.rt-links span { color: var(--muted); font-size: .86rem; white-space: nowrap; }
.legal h2 { font-size: 1.15rem; margin-top: 28px; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
@media (min-width: 640px) {
  .rt-cta { display: flex; flex-wrap: wrap; }
}
@media (min-width: 1024px) { .rt-hero { padding: 56px 0 64px; } }
.page-route .brand__text { white-space: nowrap; }
@media (max-width: 420px) {
  .header__call--show { min-height: 40px; padding: 0 12px; font-size: .85rem; }
  .page-route .brand__text { font-size: 1.05rem; }
}

/* ---------- Trang hướng dẫn tài xế ---------- */
.guide-steps { list-style: none; counter-reset: b; padding: 0; margin: 0; display: grid; gap: 14px; }
.guide-steps li { position: relative; padding: 18px 18px 14px 66px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.guide-steps li::before { counter-increment: b; content: counter(b); position: absolute; left: 16px; top: 16px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--blue); color: var(--yellow); font-weight: 800; }
.guide-steps h2 { font-size: 1.1rem; margin-bottom: 6px; }
.guide-steps p { margin-bottom: 8px; }
.guide .note { padding: 10px 12px; border-radius: 10px; background: #FFFBEB; color: #92400E; font-size: .9rem; }
.guide-tags { list-style: none; padding: 0; display: grid; gap: 10px; }
.guide-tags .tag { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: .78rem; font-weight: 700; }
.guide-tags .tag--err { background: #FEE2E2; color: #B91C1C; }
.guide-tags .tag--warn { background: #FEF3C7; color: #B45309; }
picture { display: contents; }
address { font-style: normal; }
/* độ tương phản chữ ≥ 4.5:1 (Lighthouse) */
.footer .btn--yellow { color: var(--ink); }
.footer .btn--zalo { color: #fff; }
.dock__btn--call { background: #15803D; }
.rt-note, .crumb { opacity: 1; color: rgba(255, 255, 255, .92); }

/* ---------- Bảng giá trọn gói (trang chủ, trang Taxi Quảng Ngãi) ---------- */
.fares { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.fare { display: flex; flex-direction: column; gap: 12px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.fare__head h3 { margin: 0 0 2px; font-size: 1.1rem; }
.fare__head h3 a { color: var(--ink); text-decoration: none; }
.fare__head h3 a:hover { color: var(--blue); }
.fare__head span { font-size: .85rem; color: var(--muted); }
.fare__tbl, .rt-tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fare__tbl th, .fare__tbl td { padding: 9px 4px; border-top: 1px solid var(--line); text-align: center; white-space: nowrap; }
.fare__tbl thead th { border-top: 0; padding-top: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.fare__tbl tbody th { font-weight: 600; }
.fare__tbl td { font-weight: 800; color: var(--blue); }
.fare__btn { margin-top: auto; }
.fares__note { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }
.rt-tbl { max-width: 520px; margin: 16px 0 4px; border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.rt-tbl th, .rt-tbl td { padding: 11px 14px; text-align: center; white-space: nowrap; border-top: 1px solid rgba(255, 255, 255, .14); }
.rt-tbl thead th { border-top: 0; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: rgba(255, 255, 255, .85); }
.rt-tbl td { font-size: 1.15rem; font-weight: 800; color: var(--yellow); }
@media (min-width: 640px) { .fares { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .fares { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

/* Số điện thoại phụ */
.hero__phu { margin: -6px 0 14px; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.hero__phu a, .rt-note a { color: #fff; font-weight: 700; }

/* ---------- Xe cưới hỏi ---------- */
.service--link { display: block; color: inherit; text-decoration: none; }
.service--link p { color: var(--blue); }
.wed { display: grid; gap: 28px; align-items: center; }
.wed__lead { color: var(--muted); margin-bottom: 18px; max-width: 34em; }
.wed__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
@media (min-width: 640px) { .wed__cta { display: flex; flex-wrap: wrap; } }
.wed__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wed__gallery figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.wed__gallery img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.wed__gallery figure:nth-child(2) { transform: translateY(24px); }
@media (min-width: 1024px) { .wed { grid-template-columns: 1fr 1.05fr; gap: 56px; } }

/* ---------- Điện thoại hẹp (≤ 400px): không để nội dung đẩy trang rộng hơn màn hình ---------- */
.hero__grid > *, .wed > *, .fares > *, .where > *, .footer__grid > * { min-width: 0; }
@media (max-width: 400px) {
  .fare { padding: 14px; }
  .fare__tbl th, .fare__tbl td { padding: 8px 2px; font-size: .86rem; }
  .fare__tbl thead th { font-size: .68rem; letter-spacing: .02em; }
  .fare__tbl tbody th { white-space: normal; }
  .wed__cta { grid-template-columns: 1fr; }
  .where__price li { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .rt-tbl { width: 100%; }
  .rt-tbl th, .rt-tbl td { padding: 10px 6px; }
  .rt-tbl td { font-size: 1rem; }
  .rt-tbl thead th { font-size: .7rem; }
  .rt-tbl tbody th { white-space: normal; }
}
@media (max-width: 360px) {
  .header__call--show { padding: 0 10px; font-size: .78rem; }
  .page-route .brand__text { font-size: .95rem; }
  .page-route .brand__mark { width: 34px; height: 34px; }
}

/* Logo chữ hai dòng: "Taxi Sông Vệ" + "QUẢNG NGÃI" nhỏ bên dưới (khớp tên Google Business) */
.brand__text { display: inline-block; line-height: 1.05; }
.brand__text small { display: block; font-size: .56em; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-top: 2px; }

/* Xin đánh giá Google sau chuyến (trang theo dõi đơn) */
.review-ask { display: grid; gap: 6px; margin: 14px 0; padding: 14px 16px; border-radius: var(--r); background: #FFFBEB; border: 1.5px solid #FDE68A; }
.review-ask b { font-size: 1.05rem; }
.review-ask span { font-size: .9rem; color: var(--muted); }
.review-ask .btn { margin-top: 4px; }
