/* Scope everything to avoid conflicts */
.rnh-vehicle-v2 {
  --rnh-gap: 18px;
  --rnh-radius: 14px;
  --rnh-border: rgba(0,0,0,.10);
  --rnh-muted: rgba(0,0,0,.65);
  --rnh-blue: var(--theme-primary, #0b3a78);
  --rnh-bg: #fff;

  font-family: inherit;
}

.rnhv2-card,
.rnhv2-galleryCard,
.rnhv2-ctaCard {
  background: var(--rnh-bg);
  border: 1px solid var(--rnh-border);
  border-radius: var(--rnh-radius);
}

.rnhv2-top {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--rnh-gap);
  align-items: start;
}

@media (max-width: 1024px) {
  .rnhv2-top { grid-template-columns: 1fr; }
}

/* Gallery */
.rnhv2-gallery {
  padding: 14px;
}

.rnhv2-gallery__main {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.rnhv2-gallery__main img {
  width: 100%;
  height: auto;
  display: block;
}

.rnhv2-gallery__placeholder {
  height: 320px;
  display: grid;
  place-items: center;
  color: var(--rnh-muted);
  background: rgba(0,0,0,.03);
  border-radius: 12px;
}

.rnhv2-thumbs {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

@media (max-width: 1024px) {
  .rnhv2-thumbs { grid-template-columns: repeat(4, 1fr); }
}

.rnhv2-thumb {
  border: 1px solid var(--rnh-border);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
}

.rnhv2-thumb img {
  width: 100%;
  height: 62px;
  object-fit: cover;
  display: block;
}

/* Sticky CTA */
.rnhv2-cta {
  position: sticky;
  top: 110px; /* header height safe */
}

@media (max-width: 1024px) {
  .rnhv2-cta { position: static; }
}

.rnhv2-ctaCard {
  padding: 16px;
}

.rnhv2-title {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.rnhv2-priceRow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rnhv2-price {
  font-size: 22px;
  font-weight: 800;
}

.rnhv2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--rnh-border);
  background: #fff;
  color: #111;
}

.rnhv2-btn--primary {
  background: var(--rnh-blue);
  border-color: var(--rnh-blue);
  color: #fff;
}

.rnhv2-btn--outline {
  width: 100%;
  margin-top: 10px;
}

.rnhv2-specGrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rnh-border);
}

.rnhv2-spec span {
  display: block;
  font-size: 12px;
  color: var(--rnh-muted);
}

.rnhv2-spec strong {
  display: block;
  font-size: 14px;
}

/* Chips */
.rnhv2-card--chips {
  margin-top: var(--rnh-gap);
  padding: 16px;
}

.rnhv2-h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.rnhv2-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rnhv2-chip {
  border: 1px solid var(--rnh-border);
  background: rgba(0,0,0,.03);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 13px;
}

/* Accordion */
.rnhv2-accordion {
  margin-top: var(--rnh-gap);
  display: grid;
  gap: 12px;
}

.rnhv2-accItem {
  border: 1px solid var(--rnh-border);
  border-radius: var(--rnh-radius);
  background: #fff;
  overflow: hidden;
}

.rnhv2-accBtn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 800;
}

.rnhv2-accPanel {
  padding: 0 16px 16px;
}

.rnhv2-muted {
  color: var(--rnh-muted);
  margin: 0;
}

.rnhv2-kv {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  gap: 10px;
}

.rnhv2-kv li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px dashed rgba(0,0,0,.12);
  padding-bottom: 8px;
}

.rnhv2-kv li span { color: var(--rnh-muted); }
.rnhv2-kv li strong { text-align: right; }

.rnhv2-co2img {
  max-height: 36px;
  width: auto;
  display: inline-block;
}

.rnhv2-subBlock {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--rnh-border);
}

.rnhv2-h3 {
  margin: 0 0 10px;
  font-size: 15px;
}

.rnhv2-list {
  margin: 0;
  padding-left: 18px;
}

.rnhv2-rich h3 {
  margin: 14px 0 8px;
  font-size: 16px;
}

.rnhv2-rich b { font-weight: 800; }

/* Lightbox */
.rnhv2-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.75);
  display: none;
  z-index: 99999;
  padding: 24px;
}

.rnhv2-lightbox.is-open { display: grid; place-items: center; }

.rnhv2-lightbox__inner {
  max-width: 980px;
  width: 100%;
  background: #111;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.rnhv2-lightbox__img {
  width: 100%;
  height: auto;
  display: block;
}

.rnhv2-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: rgba(255,255,255,.18);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 22px;
  cursor: pointer;
}


/* Fix theme global aside rule breaking our grid */
.rnh-vehicle-v2 .rnhv2-cta {
  width: auto !important;        /* override aside{width:25%} */
  display: block !important;     /* override display:flex!important */
  flex-direction: initial !important;
  min-width: 0;                  /* prevent overflow */
}

/* Ensure the grid column stays the size we want */
.rnh-vehicle-v2 .rnhv2-top {
  grid-template-columns: 1fr 360px;
}

@media (max-width: 1024px) {
  .rnh-vehicle-v2 .rnhv2-top { grid-template-columns: 1fr; }
}


/* --- Icons sizing & alignment (VD2) --- */
.rnh-vehicle-v2 .rnhv2-ico{
  width: 16px !important;
  height: 16px !important;
  flex: 0 0 16px;
  display: inline-block;
  vertical-align: middle;
  fill: currentColor;
}

.rnh-vehicle-v2 .rnhv2-spec span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.2;
  font-size: 12px; /* label size */
  color: #6b7280;  /* subtle label */
}

/* Keep values clean */
.rnh-vehicle-v2 .rnhv2-spec strong{
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

/* Phone button icon */
.rnh-vehicle-v2 .rnhv2-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.rnh-vehicle-v2 .rnhv2-btn .rnhv2-ico{
  width: 16px !important;
  height: 16px !important;
}

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

span.rnhv2-chip {
    background: var(--bcvh-primary);
    color: #fff;
    border-radius:12px;
}



a.rnhv2-btn.rnhv2-btn--outline {
    border: 2px solid var(--bcvh-primary);
    border-radius: 10px;
    background: #fff;
    color: var(--bcvh-primary);
    font-weight: 700;
}

a.rnhv2-btn.rnhv2-btn--outline:hover{
     border: 2px solid var(--bcvh-primary-dark);
     color: var(--bcvh-primary-dark);
}

input.wpcf7-form-control.wpcf7-submit.has-spinner {
    border-radius: 12px!important;
}





/* =========================
   Accordion – more premium
   ========================= */

/* outer spacing */
.rnh-vehicle-v2 .rnhv2-accordion{
  display: grid;
  gap: 14px;
}

/* each item becomes a card */
.rnh-vehicle-v2 .rnhv2-accItem{
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

/* hover lift */
.rnh-vehicle-v2 .rnhv2-accItem:hover{
  border-color: #d1d5db;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
  transform: translateY(-1px);
}

/* header button */
.rnh-vehicle-v2 .rnhv2-accBtn{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 18px;
  background: linear-gradient(180deg,#ffffff, #fbfdff);
  cursor: pointer;
}

/* title styling */
.rnh-vehicle-v2 .rnhv2-accBtn > span:first-child{
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 13px;
}

/* the + / - becomes a blue circle button */
.rnh-vehicle-v2 .rnhv2-accIcon{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(3, 63, 120, .25);
  color: #033f78;                 /* primary blue */
  background: rgba(3, 63, 120, .06);
  font-weight: 900;
  font-size: 18px;
  line-height: 1;
  flex: 0 0 34px;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}

/* opened state: stronger emphasis */
.rnh-vehicle-v2 .rnhv2-accBtn[aria-expanded="true"]{
  background: linear-gradient(180deg, rgba(3,63,120,.06), #ffffff);
}

.rnh-vehicle-v2 .rnhv2-accBtn[aria-expanded="true"] .rnhv2-accIcon{
  background: #033f78;
  color: #fff;
  border-color: #033f78;
}

/* panel spacing */
.rnh-vehicle-v2 .rnhv2-accPanel{
  padding: 0 18px 18px 18px;
}

/* add a soft divider line between header and content */
.rnh-vehicle-v2 .rnhv2-accBtn{
  border-bottom: 1px solid rgba(229,231,235,.8);
}
.rnh-vehicle-v2 .rnhv2-accBtn[aria-expanded="false"]{
  border-bottom: none;
}




/* ===== Lightbox responsiveness + close button fix ===== */

/* Make overlay handle safe areas + small screens */
.rnh-vehicle-v2 .rnhv2-lightbox{
  padding: clamp(12px, 2vw, 24px);
}

/* Inner box should NEVER exceed viewport */
.rnh-vehicle-v2 .rnhv2-lightbox__inner{
  width: min(980px, calc(100vw - 2 * clamp(12px, 2vw, 24px)));
  max-height: calc(100vh - 2 * clamp(12px, 2vw, 24px));
  display: grid;
  place-items: center;
}

/* Image scales inside modal */
.rnh-vehicle-v2 .rnhv2-lightbox__img{
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(12px, 2vw, 24px));
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Close button always visible + centered "X" */
.rnh-vehicle-v2 .rnhv2-lightbox__close{
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;

  font-size: 24px;
  line-height: 1;
  padding: 0;

  z-index: 2; /* ensure above image */
}

/* On very small screens, keep X tighter */
@media (max-width: 520px){
  .rnh-vehicle-v2 .rnhv2-lightbox__close{
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

header.rnh-header {
    padding: 10px 0px;
}

.rnh-logo img {
    height:55px;
}



/* Form card (now placed directly after the top section) */
.rnh-vehicle-v2 .rnhv2-card--form{
  margin-top: var(--rnh-gap);
  padding: 16px;
}

.rnh-vehicle-v2 .rnhv2-card--chips{
  margin-top: var(--rnh-gap);
}

/* Left column stack inside the grid */
.rnh-vehicle-v2 .rnhv2-left{
  display: grid;
  gap: var(--rnh-gap);
}


.rnhv2-chips span.rnhv2-chip {
    border: 2px solid var(--bcvh-primary);
    background: #fff;
    color: var(--bcvh-primary);
}



/* Only CO₂-Klasse row: make it taller + bigger image */
.rnh-vehicle-v2 .rnhv2-kv li:has(.rnhv2-co2img){
  align-items: center;
  padding-bottom: 14px;       /* more vertical space */
  padding-top: 6px;
}

.rnh-vehicle-v2 .rnhv2-kv li:has(.rnhv2-co2img) .rnhv2-co2img{
  max-height: 213px;           /* increase image size */
  width: auto;
}

/* Fallback: target the img itself and its parent row layout */
.rnh-vehicle-v2 .rnhv2-co2img{
  max-height: 70px;
  width: auto;
}

.rnh-vehicle-v2 .rnhv2-co2img{
  display: inline-block;
}

.rnh-vehicle-v2 .rnhv2-co2img{
  margin: 6px 0;
}


.row.g-4.align-items-start {justify-content: space-between;}

.container-width, .full-width .ubermenu-nav, .container, .row
{
    max-width: 1170px;
}

span.wpcf7-spinner {
    display: none;
}


input.wpcf7-form-control.wpcf7-submit.has-spinner {text-decoration: none;background: var(--rnh-blue, #0b2f5b);color: #fff;}

.bcvh-footer-street { display: inline; }


@media (max-width: 480px) {

    
input.wpcf7-form-control.wpcf7-submit.has-spinner {
    margin: 10px 0px;
    font-size: 16px!important;
    text-transform: capitalize;
}

a.rnhv2-callBtn {
    padding: 6px 18px!important;
    border-radius: 12px!important;
}

.row.g-4.align-items-start {
    flex-direction: column!important;
    margin: 10px!important;
}
    
    
}


input.wpcf7-form-control.wpcf7-submit.has-spinner {
    text-transform: capitalize;
}

