/*  /used-motorhomes/assets/view.css
    WildCamping Used Motorhomes - Vehicle detail page UI
    Version: 2026-01-31b
*/

/* -----------------------------
   Top banner (make it match white panels)
-------------------------------- */
.wcViewTop{
  display:flex;
  justify-content:space-between;
  gap: 16px;
  flex-wrap:wrap;
  margin: 0 0 14px 0;
  padding: 14px 16px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff; /* CHANGED: remove gradient */
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}

.wcViewTop-left{
  flex: 1 1 520px;
  min-width: 280px;
}
.wcViewTop-right{
  flex: 0 0 auto;
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap: 10px;
}

.wcBackLink{
  display:inline-block;
  color: rgba(0,0,0,.65);
  text-decoration:none;
  font-weight: 800;
  margin-bottom: 8px;
}
.wcBackLink:hover{
  text-decoration: underline;
}

.wcViewTitle{
  font-size: 24px; /* slight reduction: less “massive” */
  line-height: 1.12;
  font-weight: 950;
  letter-spacing: -0.2px;
  color: rgba(0,0,0,.88);
  margin: 0 0 10px 0;
}

.wcViewChips{
  display:flex;
  flex-wrap:wrap;
  gap: 8px;
}
.wcChip{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47,109,58,.10);
  border: 1px solid rgba(47,109,58,.18);
  color: rgba(0,0,0,.75);
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
}

.wcViewPrice{
  font-size: 26px;
  font-weight: 950;
  color: rgba(0,0,0,.88);
  white-space:nowrap;
}

.wcVideoBtn{
  white-space:nowrap;
}

/* -----------------------------
   Two-column grid
-------------------------------- */
.wcViewGrid{
  display:grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items:start;
}

@media (max-width: 1050px){
  .wcViewGrid{
    grid-template-columns: 1fr;
  }
  .wcViewTop-right{
    align-items:flex-start;
  }
}

/* -----------------------------
   LEFT: Gallery
-------------------------------- */
.wcViewLeft{
  min-width: 0; /* critical: prevents overflow push */
}

/* MAIN IMAGE: stop cropping */
.wcMainImage{
  display:block;
  position:relative;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #fff; /* looks cleaner with contain */
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  text-decoration:none;
}

/* Fixed frame but contain image inside it */
.wcMainImage img{
  width:100%;
  height: 460px;
  object-fit: contain;   /* CHANGED: no cropping */
  background: #f3f3f3;   /* letterbox background */
  display:block;
}

@media (max-width: 650px){
  .wcMainImage img{
    height: 320px;
  }
}

.wcMainHint{
  position:absolute;
  left: 12px;
  bottom: 12px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: .2px;
}

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

@media (max-width: 900px){
  .wcThumbs{ grid-template-columns: repeat(5, minmax(0,1fr)); }
}
@media (max-width: 650px){
  .wcThumbs{ grid-template-columns: repeat(4, minmax(0,1fr)); }
}

.wcThumb{
  display:block;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(0,0,0,.10);
  background:#f3f3f3;
  box-shadow: 0 6px 12px rgba(0,0,0,.04);
  transition: transform .10s ease, border-color .10s ease;
}
.wcThumb:hover{
  transform: translateY(-1px);
  border-color: rgba(47,109,58,.25);
}

/* Thumbnails: still use cover (thumbs look better cropped) */
.wcThumb img{
  width:100%;
  height: 74px;
  object-fit: cover;
  display:block;
}
@media (max-width: 650px){
  .wcThumb img{ height: 68px; }
}

/* -----------------------------
   Description section
-------------------------------- */
.wcDesc{
  margin-top: 18px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
  padding: 14px 16px 14px 16px;
}
.wcSectionTitle{
  margin: 0 0 10px 0;
  font-size: 16px;
  font-weight: 950;
  color: rgba(0,0,0,.84);
  letter-spacing: -0.1px;
}
.wcDescText{
  color: rgba(0,0,0,.74);
  font-size: 14px;
  line-height: 1.5;
}

/* -----------------------------
   RIGHT: Panels
-------------------------------- */
.wcViewRight{
  min-width: 0;
}

.wcPanel{
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
  padding: 14px 16px;
  margin-bottom: 14px;
}

.wcPanelTitle{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .2px;
  color: rgba(0,0,0,.82);
  margin: 0 0 10px 0;
}

.wcPanelDiscountTitle{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: .2px;
  color: rgba(0, 0, 0, 0.82);
  margin: 0 0 10px 0;
}

/* Specs list */
.wcSpecList{
  display:flex;
  flex-direction:column;
  gap: 8px;
}
.wcSpecRow{
  display:flex;
  justify-content:space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.05);
}
.wcSpecK{
  font-weight: 900;
  color: rgba(0,0,0,.70);
  font-size: 12px;
  letter-spacing: .2px;
}
.wcSpecV{
  font-weight: 900;
  color: rgba(0,0,0,.82);
  font-size: 12px;
  text-align:right;
  word-break: break-word;
}

/* Offer panel: keep WHITE like other boxes, just green accent */
.wcPanel--offer{
  background: #fff;                 /* CHANGED */
  border-color: rgba(47,109,58,.18);
}
.wcOfferCodeLine{
  color: rgba(0,0,0,.70);
  font-size: 13px;
  margin-bottom: 8px;
}
.wcOfferBody{
  color: rgba(0,0,0,.74);
  font-size: 13px;
  line-height: 1.4;
}
.wcOfferList{
  margin: 6px 0 10px 0;
  padding-left: 18px;
}
.wcOfferList li{
  margin: 4px 0;
}
.wcOfferList--small{
  font-size: 12px;
  color: rgba(0,0,0,.66);
}
.wcOfferBullet{
  font-weight: 950;
  color: rgba(0,0,0,.80);
  margin-top: 8px;
}

/* Actions panel */
.wcActionsBox{
  display:flex;
  flex-direction:column;
  gap: 10px;
}
.wcActionsText{
  margin: 0;
  color: rgba(0,0,0,.70);
  font-size: 13px;
  line-height: 1.4;
}

/* -----------------------------
   Lightbox
-------------------------------- */
.wcLb{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.78);
  display:none;
  align-items:center;
  justify-content:center;
  z-index: 99999;
  padding: 18px;
}
.wcLb--open{
  display:flex;
}
.wcLbInner{
  position:relative;
  width: min(1100px, 96vw);
  max-height: 92vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
}
.wcLbImg{
  max-width: 100%;
  max-height: 82vh;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
}
.wcLbCap{
  color: rgba(255,255,255,.85);
  font-size: 13px;
  font-weight: 800;
}

.wcLbClose{
  position:absolute;
  top: -8px;
  right: -8px;
  width: 42px;
  height: 42px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
  font-size: 26px;
  font-weight: 900;
  text-decoration:none;
}
.wcLbClose:hover{
  background: rgba(255,255,255,.20);
}

.wcLbNav{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 64px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius: 14px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  font-size: 44px;
  font-weight: 900;
  text-decoration:none;
  user-select:none;
}
.wcLbNav:hover{
  background: rgba(255,255,255,.16);
}
.wcLbNav--prev{ left: -6px; }
.wcLbNav--next{ right: -6px; }

@media (max-width: 650px){
  .wcLbNav{
    width: 42px;
    height: 56px;
    font-size: 38px;
  }
  .wcLbNav--prev{ left: 2px; }
  .wcLbNav--next{ right: 2px; }
}
/* OakTree contact panel */
.wcPanel--contact{
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
}

.wcContactBody{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.wcContactRow{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border-radius:12px;
  background:rgba(0,0,0,.03);
  border:1px solid rgba(0,0,0,.05);
  align-items:flex-start;
}

.wcContactK{
  font-weight:950;
  font-size:12px;
  color:rgba(0,0,0,.70);
  white-space:nowrap;
}

.wcContactV{
  font-weight:900;
  font-size:12px;
  color:rgba(0,0,0,.82);
  text-align:right;
  line-height:1.35;
}

.wcContactV a{
  text-decoration:none;
  font-weight:950;
}

.wcContactV a:hover{
  text-decoration:underline;
}

.wcContactNote{
  margin-top:4px;
  font-size:12px;
  color:rgba(0,0,0,.62);
  line-height:1.35;
}
/* Features panel - force 2 columns reliably */
.wcFeaturesGrid{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.wcFeaturesCol{
  flex: 1 1 0;
  width: 50%;
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width: 0;
}

/* Optional: if the sidebar is narrow on mobile, stack them */
@media (max-width: 520px){
  .wcFeaturesGrid{ display:block; }
  .wcFeaturesCol{ width:100%; }
  .wcFeaturesCol + .wcFeaturesCol{ margin-top:12px; }
}
/* Features panel */
.wcPanel--features { background:#fff; }

.wcFeaturesGrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wcFeaturesCol{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap: 8px;
}

.wcFeatureItem{
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0,0,0,.03);
  border: 1px solid rgba(0,0,0,.05);
  font-weight: 900;
  font-size: 14px;
  color: rgba(0,0,0,.82);
  line-height: 1.3;
}

.wcPanel--features .wcFeaturesCol {
  list-style: none !important;
  padding-left: 0 !important;
  margin: 0;
}


.wcPanel--features .wcFeatureItem {
  position: relative;
  padding-left: 46px;
  display: flex;
  align-items: center;
}

.wcPanel--features .wcFeatureItem::before {
  content: "✓";
  position: absolute;
  left: 4px; /* small left padding */
  top: 50%;
  transform: translateY(-50%);

  width: 28px;
  height: 28px;

  background-color: #2e7d32;
  color: #ffffff;

  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}