/* =====================================================================
   VDP — RV Detail Page (Kerlin Trailers)
   Layered on top of main.css. New/premium components only; the gallery,
   lightbox, sidebar shell, spec/detail boxes, similar-slider, quick-links
   and FAQ reuse the existing main.css component styles.
   ===================================================================== */

.vdp-page-wrapper {
  background: #fbfbfc;
}

/* ---------- Breadcrumb bar ---------- */
.vdp-top-bar {
  background: #fff !important;
  border-bottom: 1px solid var(--line-color);
}
.vdp-top-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vdp-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}
.vdp-back-btn:hover {
  color: var(--primary-color);
  gap: 9px;
}
.vdp-back-btn svg {
  width: 16px;
  height: 16px;
}
.vdp-back-divider {
  width: 1px;
  height: 16px;
  background: var(--line-color);
  flex-shrink: 0;
}
@media (max-width: 767px) {
  .vdp-top-bar nav[aria-label="breadcrumb"],
  .vdp-back-divider {
    display: none;
  }
}
.vdp-top-bar .breadcrumb {
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.vdp-top-bar .breadcrumb-item {
  display: flex;
  align-items: center;
}
.vdp-top-bar .breadcrumb-item + .breadcrumb-item::before {
  display: flex;
  align-items: center;
}

/* ---------- Title band ---------- */
.vdp-titlebar {
  padding: 26px 0 4px;
}
.vdp-tb-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.vdp-chip-new,
.vdp-chip-soft {
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 30px;
  letter-spacing: 0.3px;
}
.vdp-chip-new {
  background: var(--primary-color);
  color: #fff;
  text-transform: uppercase;
}
.vdp-chip-soft {
  background: var(--secondary-050-color);
  color: var(--secondary-color);
}
.vdp-tb-views {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-color);
}
.vdp-tb-views svg {
  width: 15px;
  height: 15px;
}
.vdp-tb-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
}
.vdp-tb-title {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
  color: var(--secondary-color);
}
.vdp-tb-sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.vdp-tb-sub li {
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary-color);
}
.vdp-tb-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  margin-top: 4px;
}
.vdp-tb-avail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--secondary-color);
  background: #fff;
  border: 1px solid var(--line-color);
  padding: 7px 14px;
  border-radius: 30px;
}
.vdp-tb-avail .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success-color);
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.16);
}
.vdp-tb-loc {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted-color);
}
.vdp-tb-loc svg {
  width: 15px;
  height: 15px;
  color: var(--primary-color);
}
.vdp-tb-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.vdp-tb-spec {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
  background: #fff;
  border: 1px solid var(--line-color);
  padding: 6px 12px;
  border-radius: 8px;
}
.vdp-tb-spec b {
  font-weight: 800;
}
.vdp-tb-spec svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  color: var(--primary-color);
}
.vdp-tb-aside {
  text-align: right;
  flex-shrink: 0;
}
.vdp-tb-aside .lab {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted-color);
}
.vdp-tb-aside .price {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--secondary-color);
  line-height: 1.1;
}
.vdp-tb-aside .was {
  font-size: 14px;
  color: var(--muted-color);
  text-decoration: line-through;
  font-weight: 600;
}
@media (max-width: 991px) {
  .vdp-tb-title {
    font-size: 24px;
  }
  .vdp-tb-head {
    flex-wrap: wrap;
    gap: 12px;
  }
  .vdp-tb-meta {
    align-items: flex-start;
    margin-top: 0;
  }
  .vdp-tb-specs {
    justify-content: flex-start;
  }
}

/* ---------- Section padding ---------- */
.vdp-main-content {
  padding-top: 26px !important;
  padding-bottom: 50px !important;
}

/* ---------- Sticky purchase sidebar ---------- */
.vdp-sidebar-box.vdp-sticky-box {
  position: sticky;
  top: 92px;
  align-self: start;
  overflow: visible;
}

/* ---------- Gallery photo-count badge ---------- */
.vdp-photo-count {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(11, 15, 25, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease;
}
.vdp-photo-count:hover {
  background: var(--primary-color);
}
.vdp-photo-count svg {
  width: 16px;
  height: 16px;
}

/* ---------- Key highlights strip ---------- */
.rv-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.rv-highlight {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 14px;
  padding: 15px;
  box-shadow: 0 4px 18px rgba(20, 33, 46, 0.05);
}
.rv-highlight .ic {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: #fef2f2;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rv-highlight .ic svg {
  width: 22px;
  height: 22px;
}
.rv-highlight .l {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted-color);
}
.rv-highlight .v {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: var(--secondary-color);
}
@media (max-width: 991px) {
  .rv-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------- Grouped specifications (table style) ---------- */
.rv-spec-group + .rv-spec-group {
  margin-top: 28px;
}
.rv-spec-group-title {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--primary-color);
  margin-bottom: 12px;
}
.rv-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 34px;
}
.rv-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-color);
  font-size: 14px;
}
.rv-spec-row .k {
  color: var(--muted-color);
  font-weight: 600;
}
.rv-spec-row .v {
  color: var(--secondary-color);
  font-weight: 700;
  text-align: right;
}
@media (max-width: 600px) {
  .rv-spec-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Features & options ---------- */
.rv-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.rv-feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f6f7f9;
  border: 1px solid var(--line-color);
  border-radius: 30px;
  padding: 9px 15px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
}
.rv-feature svg {
  width: 15px;
  height: 15px;
  color: var(--success-color);
  flex-shrink: 0;
}

/* ---------- Detail boxes ---------- */
.detail-box {
  background: #fff;
}

/* ---------- Similar RVs spacing ---------- */
.vdp-similar-vehicles {
  padding-top: 50px;
}
@media (max-width: 767px) {
  .vdp-similar-vehicles {
    padding-top: 32px;
  }
}

/* ---------- Floorplan ---------- */
.rv-fp-badge {
  background: var(--secondary-050-color);
  color: var(--secondary-color);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 30px;
}
.rv-fp-stage {
  background: linear-gradient(180deg, #fbfcfd, #f3f6f9);
  border: 1px solid var(--line-color);
  border-radius: 16px;
  padding: 22px;
}
.rv-fp-svg {
  width: 100%;
  height: auto;
  display: block;
  font-family: var(--font);
}
.rv-fp-svg .fp-shell {
  fill: #fff;
  stroke: var(--secondary-color);
  stroke-width: 3;
}
.rv-fp-svg .fp-frame {
  fill: none;
  stroke: var(--secondary-color);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.rv-fp-svg .fp-coupler {
  fill: var(--secondary-color);
}
.rv-fp-svg .fp-wheel {
  fill: var(--secondary-color);
}
.rv-fp-svg .fp-floor {
  fill: #f6f7f9;
}
.rv-fp-svg .fp-wet {
  fill: #e9f2fb;
}
.rv-fp-svg .fp-slide {
  fill: #fde7e8;
  stroke: #f4c9cc;
  stroke-width: 1.5;
}
.rv-fp-svg .fp-bed {
  fill: #eef1f6;
  stroke: #dbe2ea;
  stroke-width: 1.5;
}
.rv-fp-svg .fp-cabinet,
.rv-fp-svg .fp-cabinet2 {
  fill: #eef1f6;
  stroke: #dbe2ea;
  stroke-width: 1.5;
}
.rv-fp-svg .fp-fixture {
  fill: #fff;
  stroke: #cdd6df;
  stroke-width: 1.5;
}
.rv-fp-svg .fp-burner {
  fill: #b7c2cd;
}
.rv-fp-svg .fp-div {
  stroke: #c6d0da;
  stroke-width: 2;
}
.rv-fp-svg .fp-door-cut {
  fill: #f6f7f9;
}
.rv-fp-svg .fp-door-jamb {
  stroke: var(--secondary-color);
  stroke-width: 3;
  stroke-linecap: round;
}
.rv-fp-svg .fp-door-leaf {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 3;
  stroke-linecap: round;
}
.rv-fp-svg .fp-door-arc {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 1.6;
  stroke-dasharray: 4 3;
}
.rv-fp-svg .fp-door-lbl {
  fill: var(--primary-color);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.rv-fp-svg .fp-t {
  fill: var(--secondary-color);
  font-size: 12px;
  font-weight: 600;
}
.rv-fp-svg .fp-t-lg {
  fill: var(--secondary-color);
  font-size: 14px;
  font-weight: 800;
}
.rv-fp-svg .fp-t-sm {
  fill: var(--muted-color);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.rv-fp-svg .fp-t-xs {
  fill: var(--muted-color);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.rv-fp-svg .fp-tag {
  fill: var(--primary-color);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.rv-fp-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.rv-fp-hl {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line-color);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.rv-fp-hl:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}
.rv-fp-hl .ic {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--secondary-050-color);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rv-fp-hl .ic svg {
  width: 19px;
  height: 19px;
}
.rv-fp-hl .tx b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1.2;
}
.rv-fp-hl .tx span {
  font-size: 12px;
  color: var(--muted-color);
}
@media (max-width: 575px) {
  .rv-fp-stage {
    padding: 12px;
  }
}

/* ---------- Sidebar price / pay / trust ---------- */
.rv-price-block {
  padding: 22px 20px 6px;
}
.rv-price-now {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--secondary-color);
  line-height: 1.05;
}
.rv-price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.rv-price-was {
  font-size: 15px;
  color: var(--muted-color);
  text-decoration: line-through;
  font-weight: 600;
}
.rv-price-save {
  background: #e8f7ee;
  color: #1a7f43;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 7px;
}
.rv-pay {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #fef2f2;
  border: 1px solid #fbdada;
  border-radius: 12px;
  padding: 12px 14px;
}
.rv-pay .amt {
  font-size: 18px;
  font-weight: 800;
  color: var(--primary-color);
}
.rv-pay .lab {
  font-size: 12px;
  color: var(--muted-color);
  font-weight: 600;
}
.rv-icon-row {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}
.rv-ic {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  cursor: pointer;
  transition: all 0.2s ease;
}
.rv-ic:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}
.rv-ic svg {
  width: 18px;
  height: 18px;
}
.rv-ic.wishlist-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}
.rv-ic.wishlist-btn.active svg {
  fill: #fff;
}
.rv-share-wrap {
  position: relative;
}
.rv-share-pop {
  position: absolute;
  bottom: calc(100% + 10px);
  right: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line-color);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 60;
}
.rv-share-pop::after {
  content: "";
  position: absolute;
  top: 100%;
  right: 16px;
  border: 7px solid transparent;
  border-top-color: #fff;
}
.rv-share-wrap:hover .rv-share-pop,
.rv-share-wrap:focus-within .rv-share-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.rv-share-item {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid var(--line-color);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
  cursor: pointer;
  position: relative;
  transition: all 0.18s ease;
}
.rv-share-item svg {
  width: 16px;
  height: 16px;
}
.rv-share-item:hover {
  transform: translateY(-2px);
  border-color: transparent;
  color: #fff;
}
.rv-share-item.facebook:hover {
  background: #1877f2;
}
.rv-share-item.x:hover {
  background: #000;
}
.rv-share-item.linkedin:hover {
  background: #0a66c2;
}
.rv-share-item.pinterest:hover {
  background: #e60023;
}
.rv-share-item.copy-url:hover {
  background: var(--primary-color);
}
.rv-copy-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--dark-color);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.rv-share-item.copied .rv-copy-tip {
  opacity: 1;
  visibility: visible;
}
.rv-cta-stack {
  display: grid;
  gap: 10px;
  padding: 18px 20px 20px;
}
.rv-cta-stack .theme-btn {
  width: 100%;
  padding: 14px;
}

/* Dealer block */
.rv-dealer {
  border-top: 1px solid var(--line-color);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.rv-dealer-logo {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: var(--secondary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  flex-shrink: 0;
}
.rv-dealer .n {
  font-size: 16px;
  font-weight: 800;
  color: var(--secondary-color);
}
.rv-dealer .s {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted-color);
}
a.rv-dealer .s,
.rv-dealer a.s {
  display: inline-block;
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}
.rv-dealer a.s:hover {
  color: var(--primary-600-color);
  text-decoration: underline;
}

/* Trust badges */
.rv-trust {
  border-top: 1px solid var(--line-color);
  background: #fafbfc;
  border-radius: 0 0 18px 18px;
  padding: 18px 20px;
  display: grid;
  gap: 12px;
}
.rv-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--secondary-color);
}
.rv-trust-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* ---------- Payment estimator ---------- */
.rv-calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: end;
}
.rv-calc-field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted-color);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-bottom: 6px;
}
.rv-calc-field input,
.rv-calc-field select {
  width: 100%;
  border: 1px solid var(--line-color);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary-color);
  background: #fff;
  outline: none;
  transition: border-color 0.2s ease;
}
.rv-calc-field input:focus,
.rv-calc-field select:focus {
  border-color: var(--primary-color);
}
.rv-calc-result {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--secondary-color);
  color: #fff;
  border-radius: 14px;
  padding: 18px 22px;
}
.rv-calc-result .r-amt {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.rv-calc-result .r-amt small {
  font-size: 15px;
  font-weight: 600;
  opacity: 0.8;
}
.rv-calc-result .r-lab {
  font-size: 13px;
  opacity: 0.8;
  max-width: 320px;
}
@media (max-width: 600px) {
  .rv-calc-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile sticky action bar ---------- */
.rv-mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: #fff;
  border-top: 1px solid var(--line-color);
  box-shadow: 0 -6px 24px rgba(20, 33, 46, 0.12);
  padding: 10px 14px;
  display: none;
  align-items: center;
  gap: 12px;
}
.rv-mobile-bar .p .l {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted-color);
  line-height: 1;
}
.rv-mobile-bar .p .v {
  font-size: 20px;
  font-weight: 800;
  color: var(--secondary-color);
  line-height: 1.15;
}
.rv-mobile-bar .theme-btn {
  flex: 1;
  padding: 12px;
  font-size: 15px;
}
@media (max-width: 991px) {
  .rv-mobile-bar {
    display: flex;
  }
  .vdp-page-wrapper {
    padding-bottom: 82px;
  }
}
