/* Match Used Cars VDP spacing + width */
.bw-vdp {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  padding: 18px 16px 32px;
  box-sizing: border-box;
}

/* Boats CPT only: remove Astra primary wrapper margin */
body.single-boats #primary {
  margin: 0 !important;
}

/* Boats CPT only: remove Astra "separate container" padding around the single content */
body.single-boats.ast-separate-container .ast-article-single,
body.single-boats.ast-separate-container .ast-article-post {
  padding: 0 !important;
}

/* Section dividers like Used Cars */
.bw-vdp__section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* First section should not have a divider line */
.bw-vdp__section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.bw-vdp__header {
  display: flex;
  gap: 16px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.bw-vdp__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
}

/* Used Cars price reads as an accent color */
.bw-vdp__price {
  font-size: 26px;
  font-weight: 700;
  white-space: nowrap;
  color: #1f5aa6;
}

.bw-vdp__status {
  margin-top: 8px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.12);
  font-weight: 600;
  background: #fff;
}

.bw-vdp__h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
}

.bw-vdp__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

/* Used Cars style: white boxes, subtle border, header bar */
.bw-vdp__card {
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 6px;
  background: #fff;
  padding: 0;
  overflow: hidden;
}

/* Card header bar */
.bw-vdp__h3 {
  margin: 0;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 800;
  background: #f5f5f5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  opacity: 1;
}

.bw-vdp__list {
  list-style: none;
  padding: 0 12px;
  margin: 0;
  font-size: 13.5px;
}

.bw-vdp__list li {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.bw-vdp__list li:last-child {
  border-bottom: 0;
}

.bw-vdp__k {
  min-width: 130px;
  font-weight: 800;
  opacity: 0.95;
}

.bw-vdp__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 6px;
}

.bw-vdp__gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.bw-vdp__gallery-item img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  background: #fff;
}

.bw-vdp__map iframe {
  width: 100%;
  height: 380px;
  border: 1px solid rgba(0, 0, 0, 0.10);
  border-radius: 6px;
}

@media (max-width: 980px) {
  .bw-vdp__cards { grid-template-columns: 1fr; }
  .bw-vdp__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bw-vdp__gallery-item img { height: 165px; }
}
