/* Gabriel VDP — vehicle detail page. Shares CarGurus' design tokens. */
:root{
  --g-brand:var(--surface-brand-blue,#0763d3);
  --g-navy:var(--surface-brand-darkest-blue,#05317b);
  --g-btn:var(--button-bg-color,#0655b8);
  --g-btn-active:var(--button-primary-active-bg-color,#054a9d);
  --g-ink:var(--text-almost-black,#0c0c11);
  --g-mid:var(--text-mid,#666);
  --g-line:var(--borders-light,#e4e4e5);
  --g-line-dark:var(--borders-dark,#c3c3c3);
  --g-soft:var(--surface-neutral-lighter,#f5f5f5);
  --g-font:Graphik,"Rund Display",Helvetica,Arial,system-ui,sans-serif;
}
.g-vdp{font-family:var(--g-font);color:var(--g-ink);background:#fff}
.g-vdp *,.g-vdp *::before,.g-vdp *::after{box-sizing:border-box}
.g-vdp-wrap{max-width:1180px;margin:0 auto;padding:20px 24px 64px}
.g-back{display:inline-block;margin-bottom:16px;color:var(--g-brand);font-size:14px;font-weight:600;text-decoration:none}
.g-back:hover{text-decoration:underline}
.g-vdp-grid{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:32px;align-items:start}

/* ---------- gallery ---------- */
.g-gallery{margin-bottom:26px}
.g-gal-main{position:relative;aspect-ratio:4/3;background:var(--g-soft);border-radius:10px;overflow:hidden}
.g-gal-main img{width:100%;height:100%;object-fit:cover;display:block}
.g-gal-nav{position:absolute;top:50%;transform:translateY(-50%);width:38px;height:38px;border-radius:50%;
  border:0;background:#ffffffe0;color:var(--g-ink);font-size:22px;line-height:1;cursor:pointer;
  display:flex;align-items:center;justify-content:center}
.g-gal-nav:hover{background:#fff}
.g-gal-prev{left:10px}
.g-gal-next{right:10px}
.g-gal-count{position:absolute;right:12px;bottom:12px;background:#000000a6;color:#fff;
  padding:4px 10px;border-radius:6px;font-size:12px;font-weight:600}
.g-thumbs{display:flex;gap:8px;margin-top:10px;overflow-x:auto;padding-bottom:4px}
.g-thumb{flex:none;width:92px;height:68px;border-radius:7px;overflow:hidden;cursor:pointer;
  border:2px solid transparent;background:var(--g-soft);padding:0}
.g-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.g-thumb.is-active{border-color:var(--g-brand)}
.g-nophoto{display:flex;align-items:center;justify-content:center;height:100%;color:var(--g-mid);font-size:14px}

/* ---------- cards ---------- */
.g-card{border-top:1px solid var(--g-line);padding-top:22px;margin-top:22px}
.g-card:first-of-type{border-top:0;padding-top:0;margin-top:0}
.g-card h2{margin:0 0 16px;font-size:21px;font-weight:700}
.g-specs{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px 24px}
.g-spec{display:flex;flex-direction:column;gap:2px}
.g-spec-k{font-size:12.5px;color:var(--g-mid);font-weight:600}
.g-spec-v{font-size:15px;font-weight:600}
.g-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:14px;letter-spacing:.2px}
.g-desc{margin:0;font-size:15px;line-height:1.65;color:#2b2b33;white-space:pre-line}
.g-featlist{margin:0;padding:0;list-style:none;display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:8px 24px}
.g-featlist li{position:relative;padding-left:22px;font-size:14px;line-height:1.5}
.g-featlist li::before{content:"";position:absolute;left:2px;top:7px;width:7px;height:7px;
  border-radius:50%;background:var(--g-brand)}
.g-links{display:flex;flex-wrap:wrap;gap:12px;margin-top:18px}
.g-link{display:inline-flex;align-items:center;padding:9px 16px;border:1px solid var(--g-line-dark);
  border-radius:8px;color:var(--g-brand);font-size:14px;font-weight:600;text-decoration:none}
.g-link:hover{border-color:var(--g-brand);background:var(--surface-brand-lightest-blue,#e4f5fe)}

/* ---------- right rail ---------- */
.g-vdp-right{position:sticky;top:16px}
.g-vdp-title{margin:0 0 6px;font-size:27px;line-height:1.2;font-weight:700}
.g-vdp-loc{margin:0 0 14px;font-size:14px;color:var(--g-mid)}
.g-vdp-price{margin:0;font-size:31px;font-weight:700;line-height:1.1}
.g-vdp-sub{margin:4px 0 20px;font-size:14px;color:var(--g-mid)}
.g-reqbox{border:1px solid var(--g-line);border-radius:12px;padding:22px}
.g-reqbox h2{margin:0 0 16px;font-size:19px;font-weight:700;text-align:center}
.g-btn-primary,.g-btn-ghost{display:flex;align-items:center;justify-content:center;width:100%;
  min-height:46px;border-radius:999px;font:600 15px var(--g-font);text-decoration:none;
  text-align:center;padding:10px 18px;margin-bottom:11px}
.g-btn-primary{background:var(--g-btn);color:#fff}
.g-btn-primary:hover{background:var(--g-btn-active)}
.g-btn-ghost{background:#fff;color:var(--g-ink);border:1px solid var(--g-line-dark)}
.g-btn-ghost:hover{border-color:var(--g-ink)}
.g-reqnote{margin:10px 0 0;font-size:12.5px;color:var(--g-mid);text-align:center;line-height:1.5}

@media (max-width:980px){
  .g-vdp-grid{grid-template-columns:1fr}
  .g-vdp-right{position:static;order:-1}
}
@media (max-width:620px){
  .g-vdp-wrap{padding:16px 16px 44px}
  .g-vdp-title{font-size:22px}
  .g-vdp-price{font-size:26px}
}

/* ------------------------------------------------- request information
   The enquiry form in the side rail. Laid out to sit inside the page's own
   form card, which only supplied the heading and the submit button. */
.g-lead-sub{margin:0 0 14px;font-size:14px;color:var(--text-mid,#666)}
.g-lead{display:flex;flex-direction:column;gap:12px}
.g-lead-row{display:flex;gap:12px}
.g-lead-row > label{flex:1 1 0;min-width:0}
.g-lead label{display:flex;flex-direction:column;gap:5px;font-size:13px;
  color:var(--text-mid,#666)}
.g-lead label > span em{font-style:normal;color:#9a9aa1}
.g-lead input,
.g-lead textarea{width:100%;box-sizing:border-box;font:inherit;font-size:15px;
  color:var(--text-almost-black,#0c0c11);background:#fff;
  border:1px solid var(--borders-light,#e4e4e5);border-radius:8px;padding:10px 12px}
.g-lead textarea{resize:vertical;min-height:72px}
.g-lead input:focus,
.g-lead textarea:focus{outline:2px solid var(--surface-brand-blue,#0763d3);
  outline-offset:1px;border-color:transparent}
.g-lead input[aria-invalid="true"]{border-color:#c72626}
.g-lead button[type="submit"]{width:100%;cursor:pointer;border:0}
.g-lead button[disabled]{opacity:.6;cursor:default}
.g-lead-msg{margin:0;font-size:13.5px;color:var(--text-mid,#666);min-height:1em}
.g-lead-msg[data-kind="error"]{color:#c72626}
.g-lead-done{margin:0;font-size:14.5px;line-height:1.5;color:var(--text-almost-black,#0c0c11)}
/* visible only to something filling in every field it can find */
.g-lead-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

@media (max-width:620px){
  .g-lead-row{flex-direction:column}
}

/* ------------------------------------------------ gallery share / save */
.g-gallery-actions{position:absolute;top:14px;right:14px;display:flex;gap:8px;z-index:3}
.g-gallery-btn{width:38px;height:38px;border-radius:50%;border:0;cursor:pointer;
  background:#ffffffeb;color:var(--text-almost-black,#0c0c11);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 1px 4px #0000002e;transition:background .15s ease}
.g-gallery-btn:hover{background:#fff}
.g-gallery-btn[aria-pressed="true"]{color:#c72626}
.g-gallery-btn[aria-pressed="true"] svg{fill:currentColor}
.g-gallery-copied{position:absolute;top:58px;right:14px;z-index:4;
  background:#0c0c11;color:#fff;font-size:12.5px;border-radius:6px;padding:6px 10px;
  box-shadow:0 2px 10px #00000033}
._mainImageContainer_uk6zz_26{position:relative}

/* --------------------------------------------- more from this dealership */
.g-more-row{display:flex;gap:14px;overflow-x:auto;padding:4px 2px 12px;
  scroll-snap-type:x proximity}
.g-more-row::-webkit-scrollbar{height:8px}
.g-more-row::-webkit-scrollbar-thumb{background:#0000002e;border-radius:4px}
.g-more-card{flex:0 0 auto;width:208px;scroll-snap-align:start;text-decoration:none;
  color:inherit;background:#fff;border:1px solid var(--borders-light,#e4e4e5);
  border-radius:12px;overflow:hidden;display:flex;flex-direction:column;
  transition:box-shadow .16s ease,transform .16s ease}
.g-more-card:hover{box-shadow:0 8px 22px #00000024;transform:translateY(-2px)}
.g-more-pic{height:132px;background:var(--surface-neutral-lighter,#f5f5f5)}
.g-more-pic img{width:100%;height:100%;object-fit:cover;display:block}
.g-more-noimg{width:100%;height:100%}
.g-more-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:3px}
.g-more-title{margin:0;font-size:13.5px;font-weight:700;line-height:1.3;
  color:var(--text-almost-black,#0c0c11);display:-webkit-box;-webkit-line-clamp:2;
  -webkit-box-orient:vertical;overflow:hidden;min-height:2.6em}
.g-more-price{margin:0;font-size:16px;font-weight:700;
  color:var(--surface-brand-darkest-blue,#05317b)}
.g-more-meta{margin:0;font-size:12px;color:var(--text-mid,#666)}
.g-more-all{margin:10px 0 0;font-size:14px}
.g-more-all a{color:var(--surface-brand-blue,#0763d3);font-weight:600}

@media (max-width:620px){ .g-more-card{width:170px} .g-more-pic{height:110px} }

/* The details column is a grid item, and a grid item defaults to
   min-width:auto -- so a wide section inside it (the Features list, the
   Overview table) pushed past the column and slid under the side rail
   instead of wrapping. Pin the track and let the children shrink. */
._details_1q8yc_16{grid-template-columns:minmax(0,1fr)}
._details_1q8yc_16 > *{min-width:0}
._details_1q8yc_16 ul,
._details_1q8yc_16 ol{min-width:0}

/* The featured line above the listing title on a car the dealership features
   on its own site. */
.g-vdp-featured{display:flex;align-items:center;gap:8px;margin:0 0 10px}
.g-vdp-featured-by{font-size:13px;color:#4a4f54}

/* Price drop alert, under the enquiry form on every vehicle page. Quieter than
   the lead form on purpose -- it is a smaller ask and should not compete with
   it. */
.g-alert{margin:18px 0 0;padding:16px;border:1px solid var(--g-line,#d8dbde);
  border-radius:12px;background:#f7f9fb}
.g-alert-title{margin:0 0 4px;font:700 15px var(--g-font);color:var(--g-ink,#0d1722)}
.g-alert-sub{margin:0 0 12px;font-size:13px;line-height:1.45;color:var(--g-mid,#4a4f54)}
.g-alert-row{display:flex;gap:8px;flex-wrap:wrap}
.g-alert-row input{flex:1 1 180px;min-width:0;height:40px;padding:0 12px;
  border:1px solid var(--g-line-dark,#b9bec4);border-radius:8px;
  font:14px var(--g-font);background:#fff}
.g-alert-row input:focus{outline:2px solid var(--g-brand,#0763d3);outline-offset:1px}
.g-alert-row button{flex:0 0 auto;height:40px;padding:0 18px;border:0;border-radius:60px;
  background:#000049;color:#fff;font:600 14px var(--g-font);cursor:pointer}
.g-alert-row button:hover{background:#001a6b}
.g-alert-row button[disabled]{opacity:.6;cursor:default}
.g-alert-msg{margin:10px 0 0;font-size:13px;line-height:1.45;min-height:1em}
.g-alert-msg.ok{color:#1a7f37}
.g-alert-msg.err{color:#b3261e}
@media (max-width:420px){.g-alert-row button{width:100%}}
