/* ==========================================================================
   DU LỊCH PHƯƠNG CHI - FLATSOME DESIGN SYSTEM
   Phong cách chuẩn theme Flatsome / WordPress UX Builder
   Màu sắc: Primary Red #c02b30 | Accent đỏ đậm/trắng theo logo | Secondary #34495e | Alert Red #d32f2f | Green #71e9a4
   Font chữ: Quicksand (Menu nav) + Inter (Body & Headings)
   ========================================================================== */

:root {
  --primary-color: #c02b30;
  --primary-dark: #a3131c;
  --primary-light: #fdeeee;
  --secondary-color: #34495e;
  --alert-color: #d32f2f;
  --alert-dark: #c0392b;
  --success-color: #27ae60;
  --accent-green: #71e9a4;
  --text-color: #333333;
  --text-body: #444;
  --text-muted: #666666;
  --heading-color: #222222;
  --body-bg: #fff;
  --border-color: #e2e8f0;
  --border-light: #edf2f7;
  --container-max-width: 1240px;
  --header-height: 64px;
  --font-body:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, sans-serif;
  --font-nav: "Quicksand", "Inter", sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --radius-ctl: 6px;
}

/* Base Resets */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-color);
  background: var(--body-bg);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--primary-color);
}
button {
  font-family: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-weight: 700;
  line-height: 1.35;
  margin: 0 0 12px;
}
p {
  margin: 0 0 14px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 10px;
  background: var(--primary-color);
  color: #fff;
  padding: 8px 16px;
  z-index: 9999;
}
.skip-link:focus {
  top: 10px;
}

/* Grid & Layout (Flatsome UX Builder classes) */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}
.container.row {
  margin-left: auto;
  margin-right: auto;
  padding-left: 12px;
  padding-right: 12px;
}
.col {
  padding: 0 12px;
  box-sizing: border-box;
}

.large-3 {
  width: 25%;
}
.large-4 {
  width: 33.333%;
}
.large-5 {
  width: 41.666%;
}
.large-6 {
  width: 50%;
}
.large-7 {
  width: 58.333%;
}
.large-8 {
  width: 66.666%;
}
.large-12 {
  width: 100%;
}

@media (max-width: 1024px) {
  .medium-4 {
    width: 33.333%;
  }
  .medium-6 {
    width: 50%;
  }
  .medium-12 {
    width: 100%;
  }
  .hide-for-medium {
    display: none !important;
  }
  .show-for-medium {
    display: block !important;
  }
}
@media (min-width: 1025px) {
  .show-for-medium {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .small-12 {
    width: 100% !important;
  }
}

.flex-row {
  display: flex;
}
.align-center {
  align-items: center;
}
.justify-between {
  justify-content: space-between;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}

.section {
  padding: 50px 0;
  scroll-margin-top: 80px;
}
.section-title {
  margin-bottom: 36px;
}
.section-title h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: -0.2px;
}
.section-title .sub {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 auto;
  max-width: 680px;
}
/* Tiêu đề section: chữ tối var(--heading-color) + vạch accent đỏ ngắn bên dưới (bỏ in đỏ toàn bộ cho dịu mắt) */
.sec-title-blue {
  font-size: 1.5rem;
  color: var(--heading-color);
  margin: 0 0 8px;
  font-weight: 700;
}
.sec-title-blue::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: var(--primary-color);
}
.text-center .sec-title-blue::after {
  margin-inline: auto;
}
@media (min-width: 550px) {
  .sec-title-blue {
    font-size: 1.85rem;
  }
}
.sec-sub {
  font-size: 1.25rem;
  margin: 0 0 8px;
  color: var(--heading-color);
}
@media (min-width: 550px) {
  .sec-sub {
    font-size: 1.65rem;
  }
}
.sec-desc {
  color: var(--text-body);
}
.privacy-note {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
}
.privacy-note a {
  color: var(--primary-color);
}
.view-all {
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.view-all:hover {
  text-decoration: underline;
}

/* Buttons — mot base .btn/.button + modifiers, phang, khong gradient */
.btn,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 24px;
  border-radius: var(--radius-ctl);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}
.btn--primary,
.button.primary {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.btn--primary:hover,
.button.primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn--hotline{
  background: #fff;
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}
.btn--hotline:hover{
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
}
.btn--outline {
  background: #fff;
  border-color: var(--primary-color);
  color: var(--primary-color);
  text-transform: uppercase;
}
.btn--outline:hover {
  background: var(--primary-color);
  color: #fff;
}
.btn--zalo {
  background: #fff;
  border-color: #0068ff;
  color: #0068ff;
}
.btn--zalo:hover {
  background: #e8f1ff;
  border-color: #0068ff;
  color: #0068ff;
}
.btn--zalo img {
  width: 22px;
  height: 22px;
  padding: 2px;
  border-radius: 6px;
  background: #0068ff;
}
.btn--facebook {
  background: #fff;
  border-color: #1877f2;
  color: #0f5fce;
}
.btn--facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #fff;
}
.btn--block {
  width: 100%;
}
.btn--block + .btn--block {
  margin-top: 10px;
}
.btn--lg {
  font-size: 15px;
  padding: 12px 30px;
  min-height: 46px;
  text-transform: uppercase;
}
.btn[disabled],
.button[disabled] {
  opacity: 0.65;
  cursor: wait;
}

/* Header 2 tầng: tầng 1 trắng (logo ảnh + khối liên hệ), tầng 2 thanh nav đỏ */
.header {
  background: #fff;
}
.header-main {
  background: #fff;
}
.header-main .container {
  min-height: 88px;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
}
/* Logo ảnh Phương Chi (nền trong suốt, chạy tốt trên nền sáng) */
.logo-img {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img img {
  height: 58px;
  width: auto;
  display: block;
}
.drawer-head .logo-img img {
  height: 40px;
}
.header-contacts {
  display: flex;
  align-items: center;
  gap: 28px;
}
.hcontact {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hcontact__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 2px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-size: 15px;
}
.hcontact__text {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
  font-size: 13px;
  color: #555;
}
.hcontact__text strong {
  font-size: 13px;
  color: var(--text-color);
  text-transform: uppercase;
}
.hcontact__text small {
  font-size: 12.5px;
  color: var(--text-muted);
}
.hcontact__text a {
  color: var(--primary-color);
}
.hcontact__text small a {
  text-decoration: underline;
}
.hcontact__text a.hcontact__phone {
  font-size: 14px;
  font-weight: 800;
  color: var(--alert-dark);
}
.hamburger {
  background: transparent;
  border: 0;
  color: #fff;
  padding: 10px 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
}

/* Tầng 2: thanh nav đỏ, sticky */
.header-nav {
  background: var(--primary-color);
  position: sticky;
  top: 0;
  z-index: 800;
  border-bottom: 1px solid var(--primary-dark);
}
.header-nav .container {
  min-height: 48px;
}

/* Nav Main trên nền đỏ: chữ trắng, hover sáng nhẹ, active nền đỏ đậm */
.nav-main {
  display: flex;
  align-items: center;
}
.nav-uppercase > li > a,
.nav-main ul.nav > li > a.nav-top-link {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 14px;
  white-space: nowrap;
}
.nav-main ul.nav {
  list-style: none;
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin: 0;
  padding: 0;
}
.nav-main ul.nav > li {
  position: relative;
  display: flex;
}
.nav-main ul.nav > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-nav);
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  padding: 15px 20px;
  border-radius: 6px;
  position: relative;
  transition: background 0.15s;
}
.nav-main ul.nav > li:hover > a {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}
.nav-main ul.nav > li.active > a {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: #fff;
  text-decoration-thickness: 3px;
  text-underline-offset: 7px;
}
.nav-main ul.nav > li > a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}
/* Dropdown menu con desktop: hiện khi hover/focus, card trắng chữ đậm */
.nav-main ul.nav > li.has-children > a .nav-caret {
  font-size: 11px;
  margin-left: 2px;
}
.nav-main ul.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  z-index: 900;
}
.nav-main ul.nav > li.has-children:hover > ul.sub-menu,
.nav-main ul.nav > li.has-children:focus-within > ul.sub-menu {
  display: block;
  animation: dropFade 0.15s ease;
}
.nav-main ul.sub-menu li {
  display: block;
}
.nav-main ul.sub-menu a.nav-top-link {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  color: #334155;
}
.nav-main ul.sub-menu a.nav-top-link:hover {
  background: #fef2f2;
  color: var(--primary-color);
}
.nav-main ul.sub-menu li.active > a.nav-top-link {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 4px;
}
@keyframes dropFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 1100px) {
  .hide-for-large {
    display: none !important;
  }
}
/* Hero slider — khung 16:9 gọn trong container, ảnh không cắt/drop */
/* Desktop: nguồn ảnh đúng 16:9 + object-fit cover = 0 crop. Mobile: chiều cao
   tự nhiên theo ảnh (không ép 360px) nên ảnh dọc/vuông đều hiện trọn vẹn. */
.hero-slider {
  padding: 24px 0 0;
  position: relative;
  background: #fff;
}
.hero-slides {
  position: relative;
  overflow: hidden;
  background: #0c2b3c;
  max-width: var(--container-max-width);
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
}
/* Hero full container 16:9 — banner lớn tối đa trong container */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  display: none;
  transition:
    opacity 0.5s ease,
    visibility 0s linear 0.5s;
  pointer-events: none;
}
.hero-slide.on {
  display: block;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease;
  pointer-events: auto;
  z-index: 1;
}
.hero-slide a,
.hero-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (prefers-reduced-motion: reduce) {
  .hero-slide {
    transition: none;
  }
}
/* Nút điều hướng: ẩn mặc định, hover/focus mới hiện (desktop có hover) */
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  background: rgba(12, 43, 60, 0.55);
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    visibility 0.2s,
    background 0.2s ease,
    transform 0.2s ease;
}
@media (hover: hover) {
  .hero-slider:hover .hero-arrow,
  .hero-slider:focus-within .hero-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
@media (hover: none) {
  .hero-arrow {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}
.hero-arrow:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}
.hero-arrow:focus-visible,
.hero-dots button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 1px;
  box-shadow: 0 0 0 5px var(--primary-color);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.hero-arrow.prev {
  left: max(
    16px,
    calc((100% - var(--container-max-width)) / 2 + 16px)
  );
}
.hero-arrow.next {
  right: max(
    16px,
    calc((100% - var(--container-max-width)) / 2 + 16px)
  );
}
/* Dots viên thuốc: pill khi active, vùng bấm 24px */
.hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}
.hero-dots button {
  min-width: 24px;
  height: 24px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-slider h1.sr-only {
  font-size: 26px;
  line-height: 1.35;
  margin: 0;
}
.hero-dots button::after {
  content: "";
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s ease;
}
.hero-dots button.on::after {
  background: #fff;
  width: 28px;
}
@media (max-width: 849px) {
  .hero-slider {
    padding: 0;
  }
  .hero-slides {
    max-width: none;
    border-radius: 0;
    aspect-ratio: 16 / 9;
  }
  .hero-slide {
    position: relative;
    display: none;
    inset: auto;
  }
  .hero-slide.on {
    display: block;
  }
  .hero-slide img {
    height: 100%;
    object-fit: cover;
  }
  .hero-arrow {
    display: none;
  }
  .hero-dots {
    bottom: 10px;
  }
}
/* Booking Section (2 cột: intro trái + card form phải) */
.booking-section {
  background: #f3f4f6;
  padding: 50px 0;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.booking-intro h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--heading-color);
  margin: 0 0 14px;
  line-height: 1.35;
  text-transform: uppercase;
}
.booking-intro p {
  color: #555;
  font-size: 15.5px;
  margin: 0 0 14px;
}
.booking-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}
/* Checklist cam kết ở intro: icon FA, chữ gốc, phẳng */
.booking-trust {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.booking-trust li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: #33475b;
}
.booking-trust i {
  color: var(--primary-color);
  font-size: 15px;
  margin-top: 3px;
}
/* Card form: header phẳng primary, field thoáng, control cao 44px dễ bấm */
.booking-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  scroll-margin-top: 90px;
}
.booking-card-title {
  margin: 0;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-transform: uppercase;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 15px 16px;
}
.booking-card-form {
  padding: 22px 22px 18px;
}
.bk-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}
.bk-field {
  margin: 0;
  min-width: 0;
}
.bk-full {
  grid-column: 1 / -1;
}
.bk-field > label,
.bk-group > legend,
.form-group label,
.form-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #1f2d3d;
  margin-bottom: 6px;
}
.req {
  color: #d32f2f;
  font-weight: 800;
}
/* Nhóm checkbox/radio: fieldset thật, options native inline (cấm chips) */
.bk-group {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}
.bk-group > legend {
  padding: 0;
}
.bk-group + .bk-group {
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
}
.wpcf7-form input::placeholder {
  color: #94a3b8;
  opacity: 1;
}
/* Loại xe 6 options xếp lưới 3 cột, vùng bấm cao 40px, giữ native (không chips) */
.bk-cars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px 12px;
}
.wpcf7-checkbox label{
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  font-size: 14px;
  color: #33475b;
  min-height: 40px;
  margin-right: 12px;
  cursor: pointer;
}
.wpcf7-checkbox input{
  accent-color: var(--primary-color);
  width: 18px;
  height: 18px;
  flex: none;
  cursor: pointer;
}
.wpcf7-checkbox label:hover{
  color: var(--primary-color);
}
.bk-cars .wpcf7-list-item-label {
  white-space: nowrap;
}
.bk-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
}
.bk-submit-row .form-msg {
  flex: 1;
  margin: 0;
  font-size: 13.5px;
}
.bk-submit-row .form-msg:empty {
  display: none;
}
.bk-submit-row .button {
  margin-left: auto;
}

/* Form control + label mot kieu cho moi form */
.form-field,
.form-group {
  margin-bottom: 14px;
}
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text-color);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: var(--radius-ctl);
  outline: none;
  transition: border-color 0.15s;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-color);
}
.form-msg {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}
.form-msg.ok {
  color: #15803d;
  background: #e8f8f0;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #b7ebcf;
}
.form-msg.err {
  color: #b91c1c;
  background: var(--primary-light);
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #facdcd;
}

/* Product Cards — Nâng cấp hiện đại theo chuẩn Sigo/Mioto/VinRent */
.product-small.box {
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 24px);
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}
.product-small.box:hover {
  border-color: #f5c6c6;
  box-shadow: 0 10px 28px rgba(207, 31, 39, 0.12);
  transform: translateY(-3px);
}
.product-small .box-image {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f1f5f9;
}
.product-small .box-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 45%;
  transition: transform 0.35s ease;
}
.product-small.box:hover .box-image img {
  transform: scale(1.04);
}

.product-small .box-text {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}
.product-small .product-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.35;
  min-height: calc(1.35em * 1);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-small .product-title a {
  color: var(--heading-color);
  transition: color 0.15s ease;
}
.product-small .product-title a:hover {
  color: var(--primary-color);
}
/* Card thuê xe: lưới thông số 2 cột x N hàng, đều nhau như card xe lướt */
.car-card-kay__specs.product-specs-grid {
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}
.product-specs-grid .spec-cell {
  align-items: flex-start;
  min-width: 0;
}
.product-specs-grid .spec-cell i {
  margin-top: 2px;
  flex-shrink: 0;
}
.product-specs-grid .spec-cell span {
  min-width: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
/* Nút xem-tất-cả căn giữa cuối section (không chèn lưới ảnh) */
.section-foot {
  margin-top: 26px;
  text-align: center;
}
/* Lưới listing: cột cao bằng nhau, card giãn full chiều cao */
.product-grid > .col,
.used-cars-grid > .col,
.teaser-grid > .col,
.blog-grid > .col {
  display: flex;
}
.product-grid > .col > .col-inner,
.used-cars-grid > .col > article,
.blog-grid > .col > article {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: 100%;
}
.product-grid > .col > .col-inner > article {
  flex: 1;
}

/* Nút Xem Chi Tiết / Xem Xe & Lái Thử dưới sản phẩm (chữ đỏ nền trắng, hover chữ trắng nền đỏ) */
.detail-button {
  margin-top: auto;
}
.detail-button .btn--detail,
.car-card-kay__action .btn--detail {
  width: 100%;
  border-color: rgba(229, 57, 53, 0.35);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #d32f2f;
}
.detail-button .btn--detail:hover,
.car-card-kay__action .btn--detail:hover {
  background: #d32f2f;
  border-color: #d32f2f;
  color: #fff;
}

/* Used Car Cards (KayAuto 2x2 Grid Style) */
.car-card-kay {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition:
    box-shadow 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 24px);
}
.car-card-kay:hover {
  border-color: #f5c6c6;
  box-shadow: 0 10px 28px rgba(207, 31, 39, 0.12);
  transform: translateY(-3px);
}
.car-card-kay:hover .car-card-kay__thumb img {
  transform: scale(1.04);
}
.product-small.box,
.car-card-kay {
  cursor: pointer;
}
.car-card-kay__thumb {
  position: relative;
  display: block;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #f1f5f9;
}
.car-card-kay__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.car-card-kay__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.car-card-kay__title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.35;
  color: #1e293b;
}
.car-card-kay__title a:hover {
  color: var(--primary-color);
}
.car-card-kay__price {
  margin-bottom: 10px;
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.car-card-kay__price .price-main {
  color: var(--alert-color);
  font-size: 18px;
  font-weight: 800;
}
.car-card-kay__divider {
  border: 0;
  height: 1px;
  background: #f1f5f9;
  margin: 0 0 10px;
}
.car-card-kay__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 6px;
  background: #f8fafc;
  padding: 10px 10px;
  border-radius: var(--radius-ctl);
  margin-bottom: 14px;
}
@media (max-width: 480px) {
  .car-card-kay__specs {
    grid-template-columns: 1fr 1fr;
  }
}
.spec-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}
.spec-cell i {
  color: var(--primary-color);
  width: 16px;
  font-size: 13px;
}
.car-card-kay__action {
  margin-top: auto;
}

.section-head-row {
  margin-bottom: 28px;
}
/* Tour hub: intro + TOC + bài editorial từng tour (không giá) */
.tour-hub__intro {
  max-width: 780px;
  margin: 0 auto 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}
.tour-article__meta {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--primary-color);
  letter-spacing: 0.4px;
  margin-bottom: 8px;
}
.tour-article__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
}
.tour-article__intro {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 16px;
}
.tour-article__list {
  margin: 0 0 6px;
  padding-left: 22px;
  line-height: 1.8;
  font-size: 15px;
  color: var(--text-body);
}
.tour-article__list li {
  margin-bottom: 6px;
}
/* Tour cards: lưới thẻ tour chuẩn (ảnh + badge thời gian + meta + CTA) */
.tour-cards {
  margin: 28px 0 10px;
}
.tour-cards .col {
  display: flex;
}
.tour-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
/* Thắng .detail-box (đứng sau trong file) để ảnh full-bleed */
.tour-card.detail-box {
  padding: 0;
}
.tour-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(15, 60, 110, 0.14);
}
.tour-card__thumb {
  position: relative;
  display: block;
  overflow: hidden;
}
.tour-card__thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.tour-card:hover .tour-card__thumb img {
  transform: scale(1.05);
}
.tour-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 18px 18px;
}
a.tour-card {
  color: inherit;
  text-decoration: none;
}
.tour-card__dest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary-color);
  margin-bottom: 8px;
}
.tour-card__title {
  display: block;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  color: var(--heading-color);
}
.tour-card:hover .tour-card__title {
  color: var(--primary-color);
}
/* Tour teaser: card ảnh phủ toàn thẻ + tên điểm đến, kiểu riêng cho mục Tour */
.teaser-section {
  background: var(--body-bg);
}
.teaser-section .sec-title-blue {
  text-align: center;
}
.teaser-section .sec-title-blue::after {
  margin-inline: auto;
}
.teaser-section .sec-sub {
  text-align: center;
  margin: 0 auto 8px;
  max-width: 720px;
  font-size: 15px;
  color: var(--text-color);
}
.teaser-section .sec-note {
  color: #667085;
  text-align: center;
  font-size: 13.5px;
  margin: 0 0 28px;
}
.teaser-grid {
  align-items: stretch;
}
.teaser-card {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 24px;
  background: #081e29;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.teaser-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(4, 12, 17, 0.45);
}
.teaser-card__thumb {
  position: absolute;
  inset: 0;
}
.teaser-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.teaser-card:hover .teaser-card__thumb img {
  transform: scale(1.06);
}
.teaser-card__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 17, 0) 34%, rgba(4, 12, 17, 0.42) 58%, rgba(4, 12, 17, 0.86) 100%);
}
.teaser-card__dest {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary-color);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.teaser-card__title {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 46px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.teaser-card__cta {
  position: absolute;
  left: 16px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.teaser-card__cta i {
  color: var(--primary-color);
  background: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}
@media (max-width: 849px) {
  .teaser-card {
    aspect-ratio: 16/10;
  }
  .teaser-card__title {
    font-size: 15.5px;
    bottom: 44px;
  }
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 30px;
}
.filter-bar button {
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.filter-bar button:hover,
.filter-bar button.on,
#pager button[aria-pressed="true"],
#used-pager button[aria-pressed="true"] {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
/* Steps (Quy trình) */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Trang chủ: 4 bước dàn hàng ngang, card đứng */
.steps-section .steps-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.steps-section .step {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 849px) {
  .steps-section .steps-list {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 549px) {
  .steps-section .steps-list {
    grid-template-columns: 1fr;
  }
}
.step {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #fff;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}
.step h3 {
  font-size: 16px;
  margin: 0 0 4px;
  color: var(--primary-color);
}
.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

/* Testimonials (Đánh giá) */
.testimonials {
  background: #f3f4f6;
}
/* Nhận xét khách hàng: carousel 3 card (1 card mobile), card giữa nổi bật */
.t-slider {
  position: relative;
}
@media (min-width: 850px) {
  .t-slider {
    padding: 0 60px;
  }
}
.t-viewport {
  overflow: hidden;
}
.t-track {
  display: flex;
  transition: transform 0.5s ease;
}
@media (prefers-reduced-motion: reduce) {
  .t-track {
    transition: none;
  }
}
.t-slide {
  flex: 0 0 100%;
  max-width: 100%;
  padding: 8px 6px 14px;
  display: flex;
  box-sizing: border-box;
}
@media (min-width: 850px) {
  .t-slide {
    flex-basis: 33.3333%;
    max-width: 33.3333%;
  }
}
.t-inner {
  flex: 1;
  background: #fff;
  padding: 24px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
}
.t-slide.center .t-inner {
  transform: scale(1.04);
  border-color: var(--primary-color);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}
.t-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--primary-color);
  color: #fff;
  cursor: pointer;
  z-index: 2;
  display: none;
}
@media (min-width: 850px) {
  .t-arrow {
    display: block;
  }
}
.t-arrow.prev {
  left: 0;
}
.t-arrow.next {
  right: 0;
}
.t-arrow:hover {
  filter: brightness(0.92);
}
.t-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
}
.t-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: #cbd5e1;
  cursor: pointer;
}
.t-dots button.on {
  background: var(--primary-color);
}
.t-text {
  font-style: italic;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.t-text::before {
  content: '\f10d';
  font-family: 'Font Awesome 5 Free', 'Font Awesome 5 Brands', sans-serif;
  font-weight: 900;
  font-style: normal;
  display: block;
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 10px;
}
.t-author {
  text-align: right;
  font-style: italic;
}

/* Blog (dạng editorial phẳng: ảnh + chữ, không hộp) */
/* Blog Cards & Layout chuẩn Flatsome editorial */
.article-card {
  background: none;
  border: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 24px);
}
.article-card__thumb {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  display: block;
  border-radius: var(--radius-md);
  background: #f1f5f9;
  position: relative;
}
.article-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transition: transform 0.35s ease;
}
.article-card:hover .article-card__thumb img {
  transform: scale(1.04);
}
.article-card__body {
  padding: 14px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.article-card__cat {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}
.article-card__title {
  font-size: 16px;
  margin: 0 0 6px;
  line-height: 1.45;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.45em * 2);
}
.article-card__title a {
  color: var(--heading-color);
  transition: color 0.2s ease;
}
.article-card__title a:hover {
  color: var(--primary-color);
}
.article-card__divider {
  width: 28px;
  height: 2px;
  background: var(--primary-color);
  margin: 4px 0 8px;
}
.article-card__desc {
  font-size: 13.5px;
  color: #586174;
  margin-bottom: 12px;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.55em * 2);
}
.article-card__link {
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.article-card__link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.article-card:hover .article-card__link i {
  transform: translateX(3px);
}

/* Blog trang chủ & chuyên mục: Bài nổi bật (Featured Post) + Danh sách ngang (List rows) */
.blog-section {
  background: #fff;
}
.post-large {
  background: none;
  border: 0;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  height: calc(100% - 24px);
}
.post-large__thumb {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #f1f5f9;
  border-radius: var(--radius-md);
  position: relative;
}
.post-large__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transition: transform 0.35s ease;
}
.post-large:hover .post-large__thumb img {
  transform: scale(1.04);
}
.post-large__body {
  padding: 16px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-large__body .cat {
  font-size: 12px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  display: inline-block;
}
.post-large__body h2 {
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 6px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-large__body h2 a {
  color: var(--heading-color);
  transition: color 0.2s ease;
}
.post-large__body h2 a:hover {
  color: var(--primary-color);
}
.post-large__body .is-divider {
  width: 32px;
  height: 2px;
  background: var(--primary-color);
  margin: 6px 0 10px;
}
.post-large__body p {
  font-size: 14.5px;
  color: #586174;
  margin: 0 0 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.read-more {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
}
.read-more i {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.read-more:hover i {
  transform: translateX(3px);
}

/* Danh sách bài hàng ngang (Right column) */
.post-row-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.post-row {
  display: flex;
  gap: 16px;
  background: none;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 16px;
  margin-bottom: 0;
}
.post-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.post-row__thumb {
  flex: 0 0 150px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #f1f5f9;
  align-self: flex-start;
  position: relative;
}
.post-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transition: transform 0.3s ease;
}
.post-row:hover .post-row__thumb img {
  transform: scale(1.05);
}
.post-row__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-row__body .cat {
  font-size: 11px;
  font-weight: 800;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 4px;
  display: inline-block;
}
.post-row__body h2 {
  font-size: 15.5px;
  line-height: 1.45;
  margin: 0 0 6px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-row__body h2 a {
  color: var(--heading-color);
  transition: color 0.2s ease;
}
.post-row__body h2 a:hover {
  color: var(--primary-color);
}
.post-row__body .is-divider {
  width: 24px;
  height: 2px;
  background: var(--border-color);
  margin: 4px 0 8px;
}
.post-row__body p {
  font-size: 13px;
  color: #586174;
  margin: 0;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 550px) {
  .post-row {
    gap: 12px;
    padding-bottom: 12px;
  }
  .post-row__thumb {
    flex: 0 0 115px;
  }
  .post-row__body h2 {
    font-size: 14px;
  }
  .post-row__body p {
    display: none; /* Trên màn hình quá nhỏ ẩn đoạn trích để tiêu đề và ảnh cân đối */
  }
}

/* Call To Action Bar (gốc: section dark #051b2c, tiêu đề xanh var(--accent-green), nút alert pill) */
.cta-bar {
  background: #051b2c;
  color: #fff;
  padding: 32px 0;
}
.cta-bar h2 {
  color: var(--accent-green);
  font-size: 24px;
  margin: 0;
  font-weight: 800;
}
/* Nhịp rung nhẹ quanh nút hotline — phẳng, không gradient */
.pulse-effect {
  position: relative;
  isolation: isolate;
}
.pulse-effect::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  z-index: -1;
  border: 2px solid rgba(231, 76, 60, 0.55);
  animation: hotline-ping 2.2s ease-out infinite;
}
@keyframes hotline-ping {
  0% {
    opacity: 0.8;
    transform: scale(1);
  }
  70% {
    opacity: 0;
    transform: scale(1.08);
  }
  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-effect::after {
    animation: none;
    display: none;
  }
}
/* Ghi chú tùy chọn trong label form */
.bk-opt {
  font-weight: 500;
  color: #586174;
  font-size: 12.5px;
}

/* Page Hero (Subpages) */
.page-hero {
  background: #f1f5f9;
  padding: 32px 0;
  border-bottom: 1px solid var(--border-color);
}
.page-hero h1 {
  font-size: 26px;
  margin: 0 0 6px;
  font-weight: 800;
  color: var(--heading-color);
}
.breadcrumb {
  font-size: 13.5px;
  color: #475569;
  margin: 0;
}
.breadcrumb a {
  color: var(--primary-color);
}

/* Detail Page Layouts */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
  align-items: start;
}
.detail-box {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
}
.policy-content {
  max-width: 860px;
  margin: 0 auto;
  color: #334155;
  line-height: 1.7;
}
.policy-content h2 {
  margin: 0 0 14px;
  color: var(--heading-color);
  font-size: 24px;
}
.policy-content p {
  margin: 0 0 16px;
}
.policy-content ul {
  margin: 0;
  padding-left: 22px;
}
.policy-content li {
  margin-bottom: 12px;
}
/* Car Gallery */
.car-gallery {
  margin-bottom: 24px;
}
.car-gallery__main img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.car-gallery__thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.car-gallery__thumb-btn {
  width: 90px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.car-gallery__thumb-btn.active,
.car-gallery__thumb-btn:hover {
  border-color: var(--primary-color);
}
.car-gallery__thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-divider {
  border: 0;
  border-top: 1px solid var(--border-color);
  margin: 0 0 20px;
}
/* Trang chi tiết: thông số to, thoáng hơn (không ảnh hưởng card nhỏ) */
.detail-layout .car-card-kay__specs {
  gap: 14px 12px;
  padding: 18px 16px;
  margin-bottom: 16px;
}
.detail-layout .spec-cell {
  font-size: 16px;
  gap: 10px;
  line-height: 1.5;
}
.detail-layout .spec-cell i {
  font-size: 19px;
  width: 24px;
  text-align: center;
}
@media (max-width: 480px) {
  .detail-layout .spec-cell {
    font-size: 15px;
  }
}

/* Footer (mẫu dark teal: 4 cột + ô social vuông) */
#footer {
  background: #29303d;
  color: #cbd5e1;
}
.footer-main {
  padding: 48px 0 32px;
}
.footer-main h3 {
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-main p {
  font-size: 13.5px;
  color: #a9bdd1;
  margin: 0 0 10px;
}
.footer-main p a {
  color: #dbe7f3;
}
.footer-main p a:hover {
  color: #fff;
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 10px;
  padding-left: 14px;
  position: relative;
}
.footer-links li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5b7a90;
}
.footer-links li a {
  color: #a9bdd1;
  font-size: 13.5px;
}
.footer-links li a:hover {
  color: #fff;
}
.footer-social {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.footer-social a:hover {
  background: var(--primary-color);
  color: #fff;
}
/* Nút social theo màu thương hiệu từng nền tảng */
.footer-social a.social-fb {
  background: #1877f2;
}
.footer-social a.social-fb:hover {
  background: #0d65d8;
}
.footer-social a.social-tiktok {
  background: #010101;
}
.footer-social a.social-tiktok:hover {
  background: #333;
}
.footer-social a.social-zalo {
  background: #0068ff;
}
.footer-social a.social-zalo:hover {
  background: #0052cc;
}
.footer-social a img {
  width: 20px;
  height: 20px;
}
.footer-hotline {
  font-size: 14px;
  color: #fff;
}
.footer-hotline a {
  color: #fff;
}

/* Mobile Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background: #fff;
  z-index: 999;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: 2px 0 15px rgba(0, 0, 0, 0.15);
}
.mobile-drawer.open {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.drawer-head button {
  background: transparent;
  border: 0;
  font-size: 20px;
  color: #586174;
}
.drawer-nav {
  padding: 12px 0;
}
.drawer-nav a,
.drawer-nav button.accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 20px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14.5px;
  font-weight: 600;
  color: #334155;
  border-bottom: 1px solid #f8fafc;
}
.drawer-nav a:hover,
.drawer-nav button:hover {
  color: var(--primary-color);
}
/* Drawer mobile: mục có con thì link + nút accordion, panel con ẩn/hiện */
.drawer-nav .drawer-item-head {
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid #f8fafc;
}
.drawer-nav .drawer-item-head a {
  flex: 1;
  border-bottom: 0;
}
.drawer-nav .drawer-item-head button.accordion-toggle {
  flex: 0 0 52px;
  width: 52px;
  justify-content: center;
  border-bottom: 0;
  border-left: 1px solid #f1f5f9;
}
.drawer-nav .accordion-panel {
  display: none;
  background: #f8fafc;
}
.drawer-nav .accordion-panel.open {
  display: block;
}
.drawer-nav .accordion-panel a {
  padding-left: 34px;
  font-weight: 500;
  font-size: 14px;
}

/* Floating Contact Widget */
.contact-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 950;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  transition: opacity 0.2s, visibility 0.2s;
}
.contact-widget.widget-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cw-toggle {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--alert-color);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
}
.cw-toggle:hover {
  background: #cc0000;
}
.cw-menu {
  display: none;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  min-width: 200px;
}
.contact-widget.open .cw-menu {
  display: flex;
}
.cw-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 0;
  background: #f8fafc;
  color: #334155;
  font-weight: 600;
  font-size: 13.5px;
  text-align: left;
  transition: background 0.15s;
}
.cw-item:hover {
  background: var(--primary-light);
  color: var(--primary-color);
}
.cw-item i {
  font-size: 16px;
  color: var(--primary-color);
  width: 20px;
}
.cw-item.cw-call i {
  color: var(--alert-color);
}
.cw-zalo-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex: 0 0 24px;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open {
  display: flex;
}
.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  max-width: 440px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: 0;
  font-size: 20px;
  color: #94a3b8;
}

/* Back to top */
#back-to-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  color: var(--primary-color);
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 940;
  transition: all 0.2s;
}
#back-to-top.show {
  display: flex;
}
#back-to-top:hover {
  background: var(--primary-color);
  color: #fff;
}

/* Trang con: badges, contact, side cards, forms, bài viết */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.contact-grid .detail-box {
  margin-bottom: 20px;
}
.contact-grid > div {
  display: flex;
  flex-direction: column;
}
.contact-grid > div > .detail-box:last-child {
  flex: 1;
  margin-bottom: 0;
}
.contact-grid .detail-box h2,
.contact-grid .detail-box h3 {
  margin: 0 0 12px;
  font-size: 17px;
}
.contact-grid .detail-box > p {
  margin: 0 0 10px;
  font-size: 14.5px;
  color: var(--text-body);
}
.contact-grid .detail-box i {
  color: var(--primary-color);
  width: 20px;
}
/* Tablet/Mobile (<=1024px): header 1 hàng logo | hotline | hamburger, sticky */
@media (max-width: 1024px) {
  .header-main {
    position: sticky;
    top: 0;
    z-index: 800;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
  }
  .header-main .container {
    gap: 10px;
    min-height: 72px;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .header-main .logo-img img {
    height: 52px;
  }
  .header-mini-actions.show-for-medium {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .info-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 2px solid var(--primary-color);
    background: #fff;
    color: var(--primary-color);
    font-size: 17px;
  }
  .header-main .hamburger {
    background: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 16px;
  }
  .header-main .hamburger:hover {
    background: var(--primary-dark);
  }
  /* Thẻ thông tin liên hệ (nội dung từ UX Block, bấm icon mới hiện) */
  .header-info-card {
    position: absolute;
    top: 100%;
    right: 12px;
    z-index: 900;
    min-width: 280px;
    max-width: calc(100vw - 24px);
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 14px 16px;
  }
  .header-info-card[hidden] {
    display: none;
  }
  .hinfo-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .hinfo-card p {
    margin: 0;
  }
}
@media (max-width: 480px) {
  .header-main .container {
    gap: 8px;
    min-height: 64px;
  }
  .header-main .logo-img img {
    height: 46px;
  }
  .header-main .hamburger {
    padding: 9px 11px;
  }
  .info-toggle {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}
/* Danh sách thông tin liên hệ (trang Liên hệ) */
.contact-info-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 15px;
}
.ci-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.ci-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f7;
  color: #3b4a5e;
  font-size: 15px;
}
.ci-row--fb .ci-icon {
  background: #e7f1fd;
  color: #1877f2;
}
.ci-body {
  min-width: 0;
}
.ci-body small {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}
.ci-body p {
  margin: 2px 0 0;
  font-size: 14.5px;
  color: var(--text-color);
  line-height: 1.5;
}
.ci-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--primary-dark);
}
.ci-link i {
  font-size: 11px;
  transition: transform 0.15s ease;
}
.ci-link:hover i {
  transform: translateX(3px);
}
.ci-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
}
/* Form liên hệ trong card */
.contact-form-box .sub {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.contact-grid .form-privacy {
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 2px 0 0;
}
.contact-form-box .rc-ctf7 {
  margin-bottom: 14px;
}
.contact-form-box .rc-ctf7:last-of-type {
  margin-bottom: 4px;
}
.contact-grid .form-privacy i {
  color: var(--success-color);
  margin-right: 5px;
}
/* Bản đồ chỉ đường full-width */
.section.section-map {
  padding-bottom: 0;
}
.map-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.map-bar .sec-title-blue {
  margin-bottom: 6px;
}
.map-addr {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-body);
}
.map-addr i {
  color: var(--primary-color);
  margin-right: 6px;
}
.map-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.map-frame {
  position: relative;
  height: 420px;
  max-width: 1240px;
  margin: 0 auto 40px;
  padding: 0 20px;
  background: none;
  border-top: 0;
}
.map-frame iframe {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  border: 1px solid var(--border-color);
  border-radius: 12px;
}
@media (max-width: 849px) {
  .map-frame {
    height: 300px;
    margin-bottom: 28px;
  }
  .map-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}
.sticky-sidebar {
  position: sticky;
  top: 64px;
  align-self: start;
}
.mobile-cta {
  display: none;
}
/* Điểm nhấn trang chi tiết: chọn theo thẻ trong layout, không class lẻ */
.detail-layout aside {
  background: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 24px;
}
.detail-layout .price-tag {
  font-size: 15px;
  color: var(--text-muted);
}
.detail-layout .price-tag strong {
  font-size: 27px;
  font-weight: 800;
  color: #d32f2f;
  margin-left: 6px;
}
/* Dòng thông số kiểu listing: icon xanh + nhãn xám + giá trị đậm */
.spec-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 4px;
  border-bottom: 1px solid #e5e7eb;
}
.spec-line i {
  color: var(--success-color);
  width: 22px;
  text-align: center;
  font-size: 16px;
}
.spec-line span {
  color: #8a94a6;
  flex: 0 0 96px;
  font-size: 14.5px;
}
.spec-line strong {
  color: #111;
  font-size: 15px;
}
/* ==========================================================================
   Single Blog Post: Chuẩn Flatsome UX Builder & Modern Web Best Practice
   ========================================================================== */

/* Header bài viết trong suốt, căn giữa, hiện đại chuẩn Editorial */
.post-header-clean {
  padding: 38px 0 20px;
  background: transparent;
  text-align: center;
}
.post-header-clean .txnn-yoast-breadcrumbs {
  font-size: 0.85rem;
  color: #586174;
  margin-bottom: 18px;
  text-align: left;
}
.post-header-clean .txnn-yoast-breadcrumbs a {
  color: #586174;
  transition: color 0.2s ease;
}
.post-header-clean .txnn-yoast-breadcrumbs a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}
.post-header-clean .entry-title {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.2rem);
  font-weight: 800;
  line-height: 1.35;
  color: #1a202c;
  margin: 0 auto 24px;
  max-width: 900px;
  text-wrap: balance;
}
/* Ảnh đại diện lớn, sáng rõ, căn giữa, không có lớp mờ phủ lên */
.post-featured-media {
  max-width: 980px;
  margin: 0 auto 32px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
  aspect-ratio: 16 / 9;
  background: #f1f5f9;
}
.post-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}
@media (max-width: 768px) {
  .post-header-clean {
    padding: 24px 0 16px;
  }
  .post-header-clean .entry-title {
    font-size: 1.45rem;
  }
  .post-featured-media {
    border-radius: 8px;
    margin-bottom: 20px;
  }
}
/* Layout bài viết 2 cột: Grid CSS 2D linh hoạt thay vì flexbox hardcoded */
.article-single-layout {
  padding-top: 36px;
}
.article-grid-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 1024px) {
  .article-grid-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 24px;
  }
}
@media (max-width: 849px) {
  .article-grid-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Nội dung bài viết chi tiết */
.article-inner {
  min-width: 0;
}
.article-body {
  font-size: 1rem;
  line-height: 1.8;
  color: #2d3748;
}
.article-body p {
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}
.article-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a202c;
  margin: 2rem 0 0.85rem;
  line-height: 1.4;
  scroll-margin-top: 130px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-light);
  text-wrap: balance;
}
.article-body img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 540px;
  display: block;
  margin: 1.5rem auto;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
/* Ảnh trong bài: auto width, max-height bảo đảm ảnh dọc không bị phình, giữ 100% tỉ lệ gốc không bị crop */
.article-body img {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 520px;
  display: block;
  margin: 22px auto;
  border-radius: var(--radius-md);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.07);
}
/* Mục lục bài viết (TOC) */
.toc {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0 28px;
}
.toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.toc-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.toc-title i {
  color: var(--primary-color);
}
.toc-list {
  list-style: decimal;
  padding-left: 20px;
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: 14.5px;
}
.toc-list a {
  color: var(--primary-color);
  font-weight: 500;
  transition: color 0.15s;
}
.toc-list a:hover {
  color: #7f1418;
  text-decoration: underline;
}

/* Sidebar bài viết chuẩn Flat editorial Flatsome */
.post-sidebar {
  display: flex;
  flex-direction: column;
  gap: 32px;
  position: sticky;
  top: 100px;
}
.sidebar-widget {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
}
.sidebar-widget__title {
  font-size: 16.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 16px;
  color: var(--heading-color);
  position: relative;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border-color);
}
.sidebar-widget__title::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--primary-color);
}
.recent-posts-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.recent-post-item {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #f1f5f9;
}
.recent-post-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.recent-post-item__thumb {
  flex: 0 0 115px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #f1f5f9;
  display: block;
  position: relative;
}
.recent-post-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
  transition: transform 0.3s ease;
}
.recent-post-item:hover .recent-post-item__thumb img {
  transform: scale(1.06);
}
.recent-post-item__info {
  min-width: 0;
  flex: 1;
}
.recent-post-item__title {
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 4px;
  font-weight: 600;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.recent-post-item__title a {
  color: var(--heading-color);
  transition: color 0.15s ease;
}
.recent-post-item__title a:hover {
  color: var(--primary-color);
}
.recent-post-item__date {
  font-size: 12px;
  color: #94a3b8;
}

/* Hero Banner cho trang Blog Archive (blog.html) */
.blog-archive-hero {
  position: relative;
  overflow: hidden;
  background-color: var(--primary-color);
  padding: 50px 0 40px;
}
.blog-archive-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/background-section-title.jpg");
  background-size: cover;
  background-position: 56% 43%;
}
.blog-archive-hero .hero-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(70, 10, 12, 0.78);
}
.blog-archive-hero .container {
  position: relative;
  z-index: 2;
}
.blog-archive-hero h1 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.blog-archive-hero .breadcrumb {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 8px;
}
.blog-archive-hero .breadcrumb a {
  color: #fff;
}
.blog-archive-hero .hero-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  max-width: 650px;
  line-height: 1.6;
}
.section-tint {
  background: #f3f4f6;
}
.lead-para {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  margin-top: 10px;
}
.car-gallery__main {
  position: relative;
}
@media (max-width: 849px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .sticky-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  /* Thanh gọi cố định đáy màn hình trên mobile (sidebar không thể sticky 1 cột) */
  .mobile-cta {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    background: #fff;
    border-top: 1px solid #e5e7eb;
    padding: 10px 12px;
    gap: 10px;
  }
  .mobile-cta .btn {
    flex: 1;
    margin: 0;
    justify-content: center;
  }
  body.has-mobile-cta {
    padding-bottom: 66px;
  }
  body.has-mobile-cta .contact-widget {
    bottom: 82px;
  }
  body.has-mobile-cta #back-to-top {
    bottom: 150px;
  }
}
/* Responsive Overrides */
@media (max-width: 849px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .car-gallery__main img {
    height: 280px;
  }
  .section-title h2 {
    font-size: 22px;
  }
  .booking-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .booking-intro h2 {
    font-size: 22px;
  }
  /* Hero mobile xử lý ở block hero (cao tự nhiên, không ép 360px). */
  .cta-bar .container {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
}
@media (max-width: 480px) {
  .bk-grid {
    grid-template-columns: 1fr;
  }
  .bk-submit-row .button {
    width: 100%;
    margin-left: 0;
  }
}
/* Refactor toàn site: consult modal */
.consult-item-badge {
  background: var(--primary-light);
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13.5px;
  color: #33475b;
  margin: 0 0 12px;
}
.consult-item-badge strong {
  color: var(--primary-color);
}
.booking-pick {
  background: var(--primary-light);
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary-color);
  margin: 0 0 12px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
#bang-gia{
  scroll-margin-top: 140px;
}
#ban-do {
  scroll-margin-top: 110px;
}
.used-showcase-section {
  background: #f3f4f6;
}
/* Nền section xen kẽ: trắng / xám nhạt + viền phân tách */
.bg-background {
  background: rgb(255, 255, 255);
}
.bg-secondary {
  background: rgb(243, 244, 246);
}
.listing-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin: 14px 0 28px;
  padding-top: 4px;
}
.listing-toolbar .sub {
  margin: 0;
  font-size: 15px;
  color: var(--text-body);
}
.listing-toolbar .count-num {
  color: var(--primary-color);
  font-weight: 800;
  font-size: 19px;
}
.sort-field {
  min-width: 190px;
}
/* Bộ lọc dropdown gọn: label + select native */
.filter-selects {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 26px;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 150px;
  text-align: left;
}
.filter-field label {
  font-weight: 700;
  font-size: 13px;
}
.filter-field select {
  border: 1px solid #d5dde5;
  border-radius: 8px;
  background: #fff;
  padding: 9px 10px;
  font-size: 14px;
  cursor: pointer;
}
:where(a:any-link, button):focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}
.section-bordered {
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}
/* Bảng biểu mặc định: kẻ ô đầy đủ, tương đương style table của Flatsome */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 28px;
  background: #fff;
}
th,
td {
  border: 1px solid #d5dde5;
  padding: 10px 12px;
  font-size: 15px;
}
thead th {
  background: #eef3f8;
  font-weight: 700;
  text-align: center;
}
tbody th {
  background: #f7fafc;
}
tbody td:first-child {
  text-align: left;
}
tbody td {
  text-align: center;
}
/* Fix tràn ngang mobile: lưới detail không cho item con nở track + gallery thumbs cuộn ngang + bảng giá cuộn ngang + lưới an toàn */
.detail-layout > * {
  min-width: 0;
}
.car-gallery,
.car-gallery__main {
  min-width: 0;
  max-width: 100%;
}
.car-gallery__thumbs {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}
.car-gallery__thumb-btn {
  flex: 0 0 auto;
}
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 28px;
}
.table-scroll table {
  margin: 0;
  min-width: 620px;
}
/* Bảng giá (nội dung trang WP): bảng của editor tự cuộn ngang trên mobile. */
#bang-gia .txhd-price-body {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
#bang-gia .txhd-price-body table {
  min-width: 620px;
}
html,
body {
  overflow-x: clip;
}
/* ============ RESPONSIVE POLISH (best practice: fluid type + spacing + tap targets) ============
   Block override tập trung cuối file: cùng selector nên luôn thắng rule đứng trước,
   không sửa logic layout cũ, an toàn khi revert. */
/* 1. Fluid type scale — heading co giãn mượt theo viewport, thay bước nhảy breakpoint */
.page-hero h1 {
  font-size: clamp(1.375rem, 1.05rem + 1.6vw, 1.75rem);
}
.section-title h2,
.booking-intro h2 {
  font-size: clamp(1.375rem, 1.1rem + 1.4vw, 1.75rem);
}
.section-head h2,
.tour-article h2,
.cta-bar h2,
.policy-content h2 {
  font-size: clamp(1.25rem, 1.05rem + 1vw, 1.5rem);
}
.sec-title-blue {
  font-size: clamp(1.5rem, 1.3rem + 1vw, 1.85rem);
}
.sec-sub {
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.65rem);
}
.blog-archive-hero h1 {
  font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
}
.post-large__body h2 {
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);
}
.tour-card__title {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.1rem);
}
.car-card-kay__price .price-main {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
}
.detail-layout .price-tag strong {
  font-size: clamp(1.375rem, 1.2rem + 0.9vw, 1.7rem);
}
/* Heading cân dòng (tránh 1 từ rớt dòng đơn độc), chữ dài tự ngắt an toàn */
h1,
h2,
h3 {
  text-wrap: balance;
}
p,
li {
  overflow-wrap: break-word;
}
/* 2. Body 16px chuẩn đọc + nhãn micro không dưới 12px */
body {
  font-size: 16px;
}
.article-card__cat,
.post-large__body .cat,
.post-row__body .cat {
  font-size: 12px;
}
/* 3. Form control ≥16px (chống iOS Safari tự zoom khi focus) + cao ≥44px.
   Dùng đúng selector thuộc tính như rule gốc (specificity 0,1,1) để override chắc thắng */
input[type="text"],
input[type="tel"],
input[type="email"],
input[type="date"],
input[type="time"],
input[type="search"],
select,
textarea {
  font-size: 16px;
}
.filter-field select {
  font-size: 16px;
  padding: 10px 12px;
  min-height: 44px;
}
.btn,
.button {
  min-height: 44px;
}
/* 4. Vùng bấm ≥44px nhưng giữ nguyên visual */
/* Hero dots: nút trong suốt đã có, chỉ nới hit-area (chấm tròn vẫn vẽ bằng ::after) */
.hero-dots button {
  min-width: 44px;
  height: 44px;
}
/* Testimonial dots: padding + background-clip giữ chấm 10px, hit-area 44px */
.t-dots button {
  width: auto;
  height: 44px;
  min-width: 26px;
  padding: 17px 8px;
  background-clip: content-box;
  border-radius: 50%;
}
/* Shorthand background ở rule .on reset background-clip → set lại (specificity cao hơn) */
.t-dots button.on {
  background-color: var(--primary-color);
  background-clip: content-box;
}
/* Nút đóng drawer + icon social footer */
.drawer-head button {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.footer-social a {
  width: 44px;
  height: 44px;
}
/* Link "Xem tất cả" đứng riêng: thêm đệm dọc cho đủ 44px */
.view-all {
  padding: 10px 0;
}
/* 5. Fluid spacing — section/footer/hero breathing theo viewport */
.section,
.booking-section {
  padding: clamp(36px, 5vw, 50px) 0;
}
.footer-main {
  padding: clamp(36px, 5vw, 48px) 0 clamp(24px, 4vw, 32px);
}
.page-hero {
  padding: clamp(24px, 3vw, 32px) 0;
}
/* Mobile nhỏ: gutter 16px thay 24px để nội dung thở */
@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }
  .row {
    margin: 0 -8px;
  }
  .col {
    padding: 0 8px;
  }
}
/* 6. Bảng cuộn ngang: chặn scroll-chain + thanh cuộn gọn */
.table-scroll {
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
}
/* 7. Chuyển trang + cuộn mượt: View Transitions API tự cross-fade giữa các
   trang (Chrome/Edge; trình duyệt khác bỏ qua, vẫn chạy bình thường).
   Tôn trọng reduced-motion: tắt hết hiệu ứng */
@view-transition {
  navigation: auto;
}
html {
  scroll-behavior: smooth;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.22s;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}

/* ==========================================================================
   Tiean ich dung chung (thay inline style trong HTML) + bao mat hidden
   ========================================================================== */
[hidden] {
  display: none !important;
}
.h2-related {
  margin: 28px 0 14px;
}
.prose-list {
  padding-left: 20px;
  line-height: 1.8;
  color: var(--text-body);
}
.prose-p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}
.lead-para--narrow {
  max-width: 820px;
  margin: 0 auto 22px;
}
.lead-para--sm {
  max-width: 640px;
  margin: 0 auto 18px;
}
/* Highlight truong sai sau khi user da nhap (:user-invalid, fallback aria-invalid) */
.wpcf7-form :user-invalid,
.wpcf7-form [aria-invalid="true"] {
  border-color: var(--alert-color);
}
.wpcf7-form :user-invalid:focus {
  outline-color: var(--alert-color);
}
/* ============ RESPONSIVE FIX 2026-09: 3 cot -> 2 cot -> 1 cot, don scale mobile, bang gia ====*/
/* 1. Tablet 550-767px: luong the san pham xep 2 cot thay vi 1 cot khong kh (Flatsome small-12) */
@media (min-width: 550px) and (max-width: 767px) {
  .product-grid > .col,
  .used-cars-grid > .col,
  .teaser-grid > .col,
  .tour-cards > .col,
  .blog-grid > .col {
    flex: 0 0 50% !important;
    max-width: 50%;
  }
}
/* 2. Mobile <=549px: card 1 cot — nhe pad/font de thanh phan khong to qua */
@media (max-width: 549px) {
  .car-card-kay__body {
    padding: 12px 12px 14px;
  }
  .car-card-kay__title {
    font-size: 15px;
  }
  .car-card-kay {
    margin-bottom: 16px;
  }
  .detail-box {
    padding: 16px;
  }
  .page-hero .breadcrumb {
    font-size: 12.5px;
  }
  .lead-para {
    font-size: 14.5px;
  }
  .tour-card__body {
    padding: 14px 14px 16px;
  }
}
/* 3. Bang gia cuon ngang tren mobile: chu gon, cot dau dinh, khong ngat tu giua */
@media (max-width: 849px) {
  .table-scroll table,
  #bang-gia .txhd-price-body table,
  .wp-block-table table {
    font-size: 13px;
  }
  .table-scroll th,
  .table-scroll td,
  #bang-gia .txhd-price-body th,
  #bang-gia .txhd-price-body td,
  .wp-block-table th,
  .wp-block-table td {
    padding: 8px 10px;
    white-space: nowrap;
  }
  .table-scroll thead th:first-child,
  #bang-gia .txhd-price-body thead th:first-child,
  .wp-block-table thead th:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #eef3f8;
  }
  .table-scroll tbody th:first-child,
  .table-scroll tbody td:first-child,
  #bang-gia .txhd-price-body tbody th:first-child,
  #bang-gia .txhd-price-body tbody td:first-child,
  .wp-block-table tbody th:first-child,
  .wp-block-table tbody td:first-child {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
  }
}
.table-scroll,
#bang-gia .txhd-price-body,
.wp-block-table {
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
