/* ==========================================================
   VEHICLE SINGLE PAGE - vehicle.css
   ========================================================== */

.vehicle-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  max-height: 640px;
  overflow: hidden;
  background: var(--bg2);
}

.vehicle-hero img,
.vehicle-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

.vehicle-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14,14,16,0.85) 0%, rgba(14,14,16,0.3) 50%, transparent 100%);
}

.vehicle-hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding-bottom: clamp(24px, 4vw, 48px);
}

.vehicle-hero-info .inner {
  width: var(--wrap);
  margin-inline: auto;
}

.vehicle-hero-info h1 {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
}

.vehicle-hero-info .vhi-tag {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Vehicle Layout ────────────────────────────────────── */
.vehicle-body {
  padding-block: var(--section-pad);
}

.vehicle-body .inner,
.vehicle-body-grid {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 1024px) {
  .vehicle-body .inner,
  .vehicle-body-grid {
    grid-template-columns: 1fr;
  }
  .vehicle-order-card {
    order: -1;
    margin-bottom: 20px;
  }
}


/* ── Sidebar / Order Card ──────────────────────────────── */
.vehicle-order-card {
  border-radius: var(--radius);
  padding: clamp(24px, 2.5vw, 36px);
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.voc-price {
  font-size: 13px;
  color: var(--ink-2);
  margin-bottom: 4px;
}

.voc-price-main {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 20px;
}

.voc-price-main span {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-2);
  margin-left: 4px;
}

.voc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.voc-actions .btn {
  justify-content: center;
  width: 100%;
}

.voc-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-2);
  border-top: 1px solid var(--glass-stroke);
  padding-top: 16px;
}

.voc-info-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.voc-info-row svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Vehicle Content Area ──────────────────────────────── */
.vehicle-content h2 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-stroke);
}

/* Key Specs Grid */
.key-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

@media (max-width: 640px) {
  .key-specs { grid-template-columns: 1fr 1fr; }
}

.ks-item {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: var(--glass-bg2);
  border: 1px solid var(--glass-stroke);
  text-align: center;
}

.ks-value {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
}

.ks-value em {
  font-style: normal;
  font-size: 0.55em;
  font-weight: 600;
  opacity: 0.65;
  margin-left: 2px;
}

.ks-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  margin-top: 6px;
}

/* Full Specs Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 40px;
}

.specs-table tr {
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.specs-table tr:last-child { border-bottom: none; }

.specs-table td {
  padding: 12px 8px;
  vertical-align: top;
}

.specs-table td:first-child {
  color: var(--ink-2);
  width: 40%;
  font-weight: 500;
}

.specs-table td:last-child {
  color: var(--ink);
  font-weight: 600;
}

/* Gallery */
.vehicle-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 40px;
}

.vehicle-gallery a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 16/10;
}

.vehicle-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.vehicle-gallery a:hover img { transform: scale(1.06); }

/* ── CPO Section ───────────────────────────────────────── */
.cpo-banner {
  padding: clamp(20px, 2.5vw, 32px);
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(239,68,68,0.1), rgba(239,68,68,0.04));
  border: 1px solid rgba(239,68,68,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cpo-banner h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.cpo-banner p {
  font-size: 14px;
  color: var(--ink-2);
}

/* ── Auto China Style Specs (features-wrapper) ────────── */
.features-wrapper {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-top: 24px;
  margin-bottom: 48px;
}

.features-wrapper .feature {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 24px;
}
html.dark .features-wrapper .feature {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.features-wrapper .feature-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-left: 0;
  margin-left: 0;
}

.features-wrapper .feature-head .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  background: transparent;
  color: var(--red);
  flex-shrink: 0;
}

.features-wrapper .feature-head h5 {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  color: var(--ink);
}

.features-wrapper .list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
}

.features-wrapper .feature-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.features-wrapper .feature-item.is-hidden {
  display: none;
}

.features-wrapper .feature-item p {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.features-wrapper .feature-item h3 {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.4;
}

.features-wrapper .load-more {
  justify-self: start;
  grid-column: 1 / -1;
  display: inline-block;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: var(--ink, #ffffff) !important;
  padding: 8px 20px !important;
  border-radius: 20px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  margin-top: 16px !important;
  margin-left: 0 !important;
  backdrop-filter: blur(8px);
}

.features-wrapper .load-more:hover {
  background: var(--red, #ef4444) !important;
  border-color: var(--red, #ef4444) !important;
  color: #ffffff !important;
}

/* ── Hero Section (Neat & Minimal) ─────────────────────────────────── */
.ac-hero-new {
    position: relative;
    height: 70vh;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
    overflow: hidden;
}
.ac-hero-new video.bg, .ac-hero-new img.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.ac-hero-new .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}
.ac-hero-new .content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.ac-hero-new h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}
.ac-hero-new h2 {
    font-size: 1.25rem;
    font-weight: 400;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.6;
}
.ac-hero-new .buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ── Features Gallery (Neat Grid) ─────────────────────────────────── */
.ac-features-new {
    padding: 5rem 2rem;
    background: var(--bg);
}
.ac-features-new .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.ac-features-new .feature-card {
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}
.ac-features-new .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.ac-features-new .feature-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
}
.ac-features-new .feature-card .content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ac-features-new .feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--ink);
    line-height: 1.4;
}
.ac-features-new .feature-card p {
    font-size: 0.95rem;
    color: var(--ink-2);
    line-height: 1.6;
    opacity: 0.85;
}

/* ── Specs Section (Clean Table) ─────────────────────────────────── */
.ac-specs-new {
    padding: 5rem 2rem;
    background: var(--bg2);
}
.ac-specs-new .container {
    max-width: 1000px;
    margin: 0 auto;
}
.ac-specs-new h2.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--ink);
}
.ac-specs-new .spec-group {
    margin-bottom: 3rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--ink-border);
    overflow: hidden;
}
.ac-specs-new .spec-group-title {
    background: var(--bg);
    padding: 1rem 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink);
    border-bottom: 1px solid var(--ink-border);
}
.ac-specs-new .spec-row {
    display: flex;
    border-bottom: 1px solid var(--ink-border);
    padding: 1rem 1.5rem;
}
.ac-specs-new .spec-row:last-child {
    border-bottom: none;
}
.ac-specs-new .spec-label {
    flex: 0 0 40%;
    font-weight: 600;
    color: var(--ink-2);
}
.ac-specs-new .spec-value {
    flex: 1;
    color: var(--ink);
}

@media (max-width: 768px) {
    .ac-specs-new .spec-row {
        flex-direction: column;
        gap: 0.25rem;
    }
    .ac-specs-new .spec-label {
        flex: none;
    }
}

/* ── Contact Section Adjustments ─────────────────────────── */
.ac-contact-new {
    background: var(--bg);
    padding: 5rem 2rem;
}
.ac-contact-new .container {
    max-width: 700px;
    margin: 0 auto;
}
.ac-contact-new h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
    color: var(--ink);
}
.ac-contact-new input, .ac-contact-new textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--ink-border);
    background: var(--bg-card);
    color: var(--ink);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}
.ac-contact-new input:focus, .ac-contact-new textarea:focus {
    outline: none;
    border-color: var(--red);
}
.ac-contact-new textarea {
    min-height: 120px;
    resize: vertical;
}
.ac-contact-new .form-row {
    display: flex;
    gap: 1rem;
}
.ac-contact-new .form-row > div {
    flex: 1;
}
.ac-contact-new .btn.red {
    width: 100%;
    padding: 1rem;
    font-size: 1.125rem;
    border-radius: 8px;
}
/* ── Contact Form Input Visibility & Styling ─────────────── */
.ac-contact-form input,
.ac-contact-form textarea {
  width: 100%;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--ink-1, #ffffff) !important;
  font-size: 15px !important;
  transition: all 0.25s ease !important;
}

.ac-contact-form input::placeholder,
.ac-contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.45) !important;
}

.ac-contact-form input:focus,
.ac-contact-form textarea:focus {
  outline: none !important;
  background: rgba(255, 255, 255, 0.09) !important;
  border-color: var(--red, #ef4444) !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.25) !important;
}

/* ── Remove excessive gap before footer on vehicle pages ───── */
.vehicle-detail-page ~ .ac-foot,
body.is-vehicle .ac-foot,
body.single-ac_vehicle .ac-foot {
  margin-top: 0 !important;
}


