/* ============================================================
   eVehicle — NEW EV DETAIL PAGE CSS (single-ev_new.php)
   vd-* classes
   ============================================================ */

/* ── GALLERY ── */
.vd-gallery { padding: 24px 0 0; }
.vd-gallery-layout { display: grid; grid-template-columns: 1fr 310px; gap: 22px; align-items: start; }
.vd-main-img {
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg,#e0f2fe,#f0f9ff);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.vd-main-img img { width: 100%; height: 100%; object-fit: cover; }
.vd-main-img-ico { font-size: 9rem; color: #93c5fd; }
.vd-gallery-tabs { display: flex; gap: 7px; margin-top: 12px; flex-wrap: wrap; }
.vd-gtab {
  padding: 6px 14px;
  background: var(--gray-100);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .78rem; font-weight: 600;
  cursor: pointer; color: var(--text-muted);
  transition: var(--transition); font-family: var(--font-primary);
}
.vd-gtab.active { background: var(--primary); border-color: var(--primary); color: var(--dark); }
.vd-thumbs { display: grid; grid-template-columns: repeat(6,1fr); gap: 7px; margin-top: 10px; }
.vd-thumb { aspect-ratio: 16/10; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: var(--transition); }
.vd-thumb.active { border-color: var(--primary); }
.vd-thumb-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.vd-video-wrap {
  border-radius: var(--radius-xl); overflow: hidden;
  aspect-ratio: 16/9; background: var(--dark);
  display: none; align-items: center; justify-content: center;
  cursor: pointer; position: relative; margin-top: 12px;
}
.vd-video-wrap.show { display: flex; }
.vd-video-wrap iframe { width: 100%; height: 100%; border: none; }
.vd-video-play { width: 60px; height: 60px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--dark); transition: var(--transition); }
.vd-video-wrap:hover .vd-video-play { transform: scale(1.1); box-shadow: 0 0 30px rgba(0,200,150,.4); }

/* ── ACTION PANEL (sticky right) ── */
.vd-action {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-xl); padding: 22px;
  position: sticky; top: calc(var(--header-height) + 14px);
}
.vd-action-price-lbl { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 3px; font-family: var(--font-primary); }
.vd-action-price { font-size: 1.45rem; font-weight: 900; color: var(--text); font-family: var(--font-primary); line-height: 1.1; margin-bottom: 5px; }
.vd-action-emi { font-size: .8rem; color: var(--primary-dark); font-weight: 600; margin-bottom: 16px; }
.vd-action-btns { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; }
.vd-action-btns .btn { justify-content: center; font-size: .88rem; }
.vd-action-row { display: flex; gap: 8px; }
.vd-action-row .btn { flex: 1; justify-content: center; font-size: .78rem; }
.vd-key-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.vd-ks { background: var(--gray-50); border-radius: var(--radius); padding: 10px 7px; text-align: center; }
.vd-ks-ico { font-size: 1rem; color: var(--primary); margin-bottom: 4px; }
.vd-ks-val { font-size: .92rem; font-weight: 800; color: var(--text); font-family: var(--font-primary); line-height: 1; margin-bottom: 2px; }
.vd-ks-lbl { font-size: .58rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; }

/* Mini EMI */
.vd-mini-emi { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.vd-mini-emi h6 { font-size: .8rem; font-weight: 700; margin-bottom: 9px; }
.vd-mini-row { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; color: var(--text-muted); margin-bottom: 7px; }
.vd-mini-row select { border: 1px solid var(--border); border-radius: 4px; padding: 2px 6px; font-size: .72rem; }
.vd-mini-result { background: var(--primary-light); border-radius: var(--radius-sm); padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.vd-mini-result span { font-size: .75rem; color: var(--primary-dark); font-weight: 600; }
.vd-mini-result strong { font-size: .98rem; color: var(--primary-dark); font-family: var(--font-primary); font-weight: 800; }

/* ── MAIN CONTENT + SIDEBAR ── */
.vd-content { display: grid; grid-template-columns: 1fr 310px; gap: 22px; padding: 28px 0 60px; align-items: start; }
.vd-main {}
.vd-section { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--border); }
.vd-section:last-child { border-bottom: none; margin-bottom: 0; }
.vd-section-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 9px; font-family: var(--font-primary); }
.vd-section-title i { color: var(--primary); font-size: .88rem; }

/* Title */
.vd-title h1 { font-size: clamp(1.3rem,2.5vw,1.8rem); margin-bottom: 8px; line-height: 1.25; }
.vd-rating-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.vd-stars { display: flex; gap: 2px; color: var(--warning); font-size: .88rem; }
.vd-rating-score { font-size: .95rem; font-weight: 800; color: var(--text); font-family: var(--font-primary); }
.vd-rating-count { font-size: .82rem; color: var(--text-muted); }
.vd-sep { width: 1px; height: 14px; background: var(--border); }
.vd-spec-pills { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.vd-spill { display: flex; align-items: center; gap: 6px; background: var(--gray-50); border: 1.5px solid var(--border); border-radius: var(--radius-full); padding: 6px 13px; font-size: .8rem; font-weight: 600; color: var(--text); font-family: var(--font-primary); }
.vd-spill i { color: var(--primary); font-size: .72rem; }
.vd-share { display: flex; align-items: center; gap: 9px; padding: 12px 0; border-top: 1px solid var(--border); margin-top: 6px; flex-wrap: wrap; }
.vd-share span { font-size: .8rem; color: var(--text-muted); font-weight: 600; }
.vd-share-btn { width: 32px; height: 32px; background: var(--gray-100); border-radius: 50%; border: 1px solid var(--border); color: var(--text-muted); font-size: .82rem; display: flex; align-items: center; justify-content: center; transition: var(--transition); text-decoration: none; }
.vd-share-btn:hover { background: var(--primary); color: var(--dark); border-color: var(--primary); }

/* Highlights */
.vd-hl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.vd-hl { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 15px; text-align: center; transition: var(--transition); }
.vd-hl:hover { border-color: var(--primary); background: var(--primary-light); }
.vd-hl-ico { width: 40px; height: 40px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--primary); margin: 0 auto 9px; }
.vd-hl-val { font-size: 1rem; font-weight: 800; color: var(--text); font-family: var(--font-primary); margin-bottom: 3px; }
.vd-hl-lbl { font-size: .65rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; font-family: var(--font-primary); }

/* Variants */
.vd-variant-list { display: flex; flex-direction: column; gap: 8px; }
.vd-variant { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; background: var(--white); border: 1.5px solid var(--border); border-radius: var(--radius-lg); cursor: pointer; transition: var(--transition); }
.vd-variant.active { border-color: var(--primary); background: var(--primary-light); }
.vd-variant:hover { border-color: var(--primary); }
.vd-variant-name { font-size: .88rem; font-weight: 700; color: var(--text); font-family: var(--font-primary); }
.vd-variant-sub { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.vd-variant-price { font-size: .95rem; font-weight: 800; color: var(--primary-dark); font-family: var(--font-primary); }

/* Colours */
.vd-color-list { display: flex; gap: 12px; flex-wrap: wrap; }
.vd-color-opt { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.vd-swatch { width: 36px; height: 36px; border-radius: 50%; border: 3px solid transparent; transition: var(--transition); box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.vd-color-opt.active .vd-swatch { border-color: var(--primary); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--primary); }
.vd-color-name { font-size: .65rem; color: var(--text-muted); font-family: var(--font-primary); text-align: center; }

/* Spec accordion */
.vd-spec-acc { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 8px; }
.vd-spec-acc-hd { display: flex; align-items: center; justify-content: space-between; padding: 13px 17px; background: var(--gray-50); cursor: pointer; transition: var(--transition); user-select: none; }
.vd-spec-acc-hd:hover { background: var(--primary-light); }
.vd-spec-acc-hd h6 { font-size: .87rem; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; margin: 0; }
.vd-spec-acc-hd h6 i { color: var(--primary); }
.vd-acc-chev { font-size: .65rem; color: var(--gray-400); transition: var(--transition); }
.vd-spec-acc.open .vd-acc-chev { transform: rotate(180deg); }
.vd-spec-acc-bd { display: none; padding: 4px 17px 12px; }
.vd-spec-acc.open .vd-spec-acc-bd { display: block; }
.vd-spec-table { width: 100%; border-collapse: collapse; }
.vd-spec-table tr { border-bottom: 1px solid var(--border); }
.vd-spec-table tr:last-child { border-bottom: none; }
.vd-spec-table td { padding: 10px 0; font-size: .84rem; vertical-align: top; }
.vd-spec-table td:first-child { color: var(--text-muted); width: 48%; padding-right: 10px; }
.vd-spec-table td:last-child { color: var(--text); font-weight: 600; font-family: var(--font-primary); }

/* ADAS */
.vd-adas-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.vd-adas-item { display: flex; align-items: center; gap: 10px; background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius); padding: 11px 13px; transition: var(--transition); }
.vd-adas-item:hover { border-color: var(--primary); background: var(--primary-light); }
.vd-adas-ico { width: 32px; height: 32px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: .78rem; color: var(--primary); flex-shrink: 0; }
.vd-adas-name { font-size: .8rem; font-weight: 600; color: var(--text); font-family: var(--font-primary); }
.vd-adas-sub { font-size: .68rem; color: var(--text-muted); }

/* Warranty */
.vd-warranty-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.vd-warranty-item { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; }
.vd-warranty-item h6 { font-size: .82rem; font-weight: 700; color: var(--text); margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.vd-warranty-item h6 i { color: var(--primary); font-size: .75rem; }
.vd-warranty-val { font-size: .95rem; font-weight: 800; color: var(--primary-dark); font-family: var(--font-primary); }
.vd-warranty-sub { font-size: .72rem; color: var(--text-muted); margin-top: 3px; }

/* FAME II subsidy */
.vd-subsidy-card { background: linear-gradient(135deg,#1e40af,#1d4ed8); border-radius: var(--radius-xl); padding: 22px; color: var(--white); position: relative; overflow: hidden; }
.vd-subsidy-card::before { content: ''; position: absolute; top: -30px; right: -30px; width: 120px; height: 120px; background: rgba(255,255,255,.06); border-radius: 50%; }
.vd-subsidy-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius-full); padding: 4px 12px; font-size: .72rem; font-weight: 700; margin-bottom: 10px; font-family: var(--font-primary); }
.vd-subsidy-card h4 { color: var(--white); font-size: 1.05rem; margin-bottom: 6px; }
.vd-subsidy-card p { color: rgba(255,255,255,.7); font-size: .82rem; margin-bottom: 14px; line-height: 1.6; }
.vd-subsidy-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.vd-subsidy-item { background: rgba(255,255,255,.1); border-radius: var(--radius); padding: 12px; text-align: center; }
.vd-subsidy-amt { font-size: 1.1rem; font-weight: 800; color: #93c5fd; font-family: var(--font-primary); }
.vd-subsidy-lbl { font-size: .65rem; color: rgba(255,255,255,.6); margin-top: 3px; }

/* Delivery timeline */
.vd-delivery-timeline { display: flex; gap: 0; }
.vd-dt-item { flex: 1; text-align: center; position: relative; }
.vd-dt-item::before { content: ''; position: absolute; top: 15px; left: 50%; right: -50%; height: 2px; background: var(--border); z-index: 0; }
.vd-dt-item:last-child::before { display: none; }
.vd-dt-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--dark); font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; position: relative; z-index: 1; font-family: var(--font-primary); }
.vd-dt-item.future .vd-dt-dot { background: var(--gray-200); color: var(--gray-500); }
.vd-dt-label { font-size: .72rem; font-weight: 700; color: var(--text); font-family: var(--font-primary); }
.vd-dt-sub { font-size: .65rem; color: var(--text-muted); margin-top: 2px; }

/* Booking form */
.vd-book-form { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; }
.vd-book-form h5 { font-size: .95rem; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.vd-book-form h5 i { color: var(--primary); }

/* Expert review */
.vd-review-box { background: linear-gradient(135deg,var(--dark),var(--dark-2)); border-radius: var(--radius-xl); padding: 26px; position: relative; overflow: hidden; }
.vd-review-box::before { content: '"'; position: absolute; top: -10px; left: 18px; font-size: 9rem; color: rgba(0,200,150,.07); font-family: serif; line-height: 1; }
.vd-reviewer { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.vd-reviewer-av { width: 44px; height: 44px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--dark); font-weight: 800; font-family: var(--font-primary); flex-shrink: 0; }
.vd-reviewer-name { color: var(--white); font-size: .88rem; font-weight: 700; }
.vd-reviewer-title { color: rgba(255,255,255,.5); font-size: .72rem; }
.vd-review-box p { color: rgba(255,255,255,.75); font-size: .87rem; line-height: 1.8; position: relative; z-index: 1; margin: 0; }

/* Pros cons */
.vd-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.vd-pros { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-lg); padding: 16px; }
.vd-cons { background: #fff5f5; border: 1px solid #fecaca; border-radius: var(--radius-lg); padding: 16px; }
.vd-pros-title { color: #166534; font-size: .83rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.vd-cons-title { color: #991b1b; font-size: .83rem; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.vd-pros ul, .vd-cons ul { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.vd-pros li, .vd-cons li { font-size: .8rem; display: flex; align-items: flex-start; gap: 7px; color: var(--text); }
.vd-pros li::before { content: '✓'; color: #16a34a; font-weight: 700; flex-shrink: 0; }
.vd-cons li::before { content: '✗'; color: #dc2626; font-weight: 700; flex-shrink: 0; }

/* EMI calculator */
.vd-emi-calc { background: var(--gray-50); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 22px; }
.vd-emi-inputs { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; margin-bottom: 14px; }
.vd-emi-inputs label { font-size: .7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; display: block; margin-bottom: 4px; }
.vd-emi-result { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; background: var(--dark); border-radius: var(--radius-lg); padding: 16px; margin-top: 14px; }
.vd-emi-ri { text-align: center; }
.vd-emi-rl { font-size: .62rem; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.vd-emi-rv { font-size: 1rem; font-weight: 800; color: var(--primary); font-family: var(--font-primary); }

/* Dealer */
.vd-dealer-search { display: flex; gap: 8px; margin-bottom: 16px; }
.vd-dealer-card { display: flex; align-items: flex-start; gap: 12px; padding: 13px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 9px; transition: var(--transition); }
.vd-dealer-card:hover { border-color: var(--primary); }
.vd-dealer-ico { width: 36px; height: 36px; background: var(--primary-light); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: .88rem; color: var(--primary); flex-shrink: 0; }
.vd-dealer-name { font-size: .85rem; font-weight: 700; color: var(--text); font-family: var(--font-primary); }
.vd-dealer-addr { font-size: .75rem; color: var(--text-muted); margin-top: 2px; }
.vd-dealer-dist { font-size: .72rem; color: var(--primary-dark); font-weight: 600; }

/* Similar EVs sidebar */
.vd-sidebar {}
.vd-sim-card { display: flex; gap: 11px; padding: 11px; border: 1.5px solid var(--border); border-radius: var(--radius-lg); margin-bottom: 9px; transition: var(--transition); background: var(--white); text-decoration: none; }
.vd-sim-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.vd-sim-img { width: 68px; height: 56px; background: var(--gray-100); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; flex-shrink: 0; overflow: hidden; }
.vd-sim-img img { width: 100%; height: 100%; object-fit: cover; }
.vd-sim-name { font-size: .8rem; font-weight: 700; color: var(--text); font-family: var(--font-primary); margin-bottom: 2px; }
.vd-sim-price { font-size: .78rem; font-weight: 700; color: var(--primary-dark); }
.vd-sim-range { font-size: .68rem; color: var(--text-muted); }

/* Mobile sticky CTA */
.vd-mobile-cta { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); border-top: 1px solid var(--border); padding: 11px 14px; z-index: 400; gap: 9px; }
.vd-mobile-cta .btn { flex: 1; justify-content: center; font-size: .86rem; }

/* ── RESPONSIVE ── */
@media (max-width:1024px) {
  .vd-gallery-layout, .vd-content { grid-template-columns: 1fr 270px; }
  .vd-hl-grid { grid-template-columns: repeat(2,1fr); }
  .vd-emi-inputs { grid-template-columns: 1fr 1fr; }
}
@media (max-width:768px) {
  .vd-gallery-layout, .vd-content { grid-template-columns: 1fr; }
  .vd-action { position: static; }
  .vd-thumbs { grid-template-columns: repeat(5,1fr); }
  .vd-adas-grid, .vd-pros-cons { grid-template-columns: 1fr; }
  .vd-warranty-grid { grid-template-columns: 1fr 1fr; }
  .vd-mobile-cta { display: flex; }
  body { padding-bottom: 70px; }
  .vd-emi-inputs { grid-template-columns: 1fr; }
  .vd-emi-result { grid-template-columns: 1fr; }
  .vd-delivery-timeline { flex-wrap: wrap; gap: 12px; }
  .vd-dt-item::before { display: none; }
  .vd-subsidy-items { grid-template-columns: 1fr; }
}
@media (max-width:480px) {
  .vd-hl-grid { grid-template-columns: repeat(2,1fr); }
  .vd-gallery { padding: 14px 0 0; }
  .vd-thumbs { grid-template-columns: repeat(4,1fr); }
  .vd-key-stats { grid-template-columns: repeat(2,1fr); }
  .vd-spec-pills { gap: 5px; }
  .vd-spill { font-size: .72rem; padding: 5px 9px; }
}
