The estimated monthly payment provided is based on estimated APR and excludes estimated tax and license fees. Actual payments may vary depending on factors such as credit score, down payment, and financing terms.
Get Started
Schedule Your Test Drive
2018HondaCR-V
LX
Price Details
The estimated monthly payment provided is based on estimated APR and excludes estimated tax and license fees. Actual payments may vary depending on factors such as credit score, down payment, and financing terms.
Used
113,332
32
Silver
P14001
2HKRW5H35JH407608
Reserve for Test Drive
Schedule Test Drive
Learn MoreGet Approved
Lock In Your Price
Pricing and availability can fluctuate as the market changes. Lock in our best deal before this vehicle is gone.
Features & Specs
Description
Exterior Features
Interior Features
Mechanical Features
Safety Features
Technology Features
More Features
All Features
See More
';var incentives = false,condition,discountFromMSRP = 0,askingPriceDiscount = 0,msrp = 0,price = 0,lotPrice = '',discount = '',addOn = '',priceLabel = 'Final Price',show_prices = '1',disableInstantRebatesVDP = '',disableInstantRebateSubraction = '',instantRebatesCappedVDP = false;if ( vehicleYear != '' ) {vehicleYear = parseInt(vehicleYear);}async function startVDPAppointmentWidget(vehicleVin, redirectUrl, vdpMainImage, vehicleYear, vehicleMake, vehicleModel, vehicleTrim, vehiclePrice, dealershipName, appointmentDateUTC) {vdpAppointmentWidget = await window.SpaceWidgets.initRetailingWidget({container: document.getElementById('appointment-widget-root'),form: 'testdrive',appointmentUTCDate: appointmentDateUTC,body: 'Your new ride is just a test drive away! Simply choose a day and time most convenient for you.',title: 'Ready to Get Behind the Wheel?',success: 'message',location: dealershipName,vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: vehiclePrice,dealershipName: dealershipName,vin: vehicleVin}});vdpAppointmentWidget.onMessage = ({ type, payload }) => { if (type === 'submit') {try {if ( typeof dataLayer != 'undefined' ) {dataLayer.push({'event': 'appointment-submit'});if ( typeof window.SpaceWebAnalytics != 'undefined') {window.SpaceWebAnalytics.conversion('Appointment Inquiry');window.SpaceWebAnalytics.trace({action: 'asc_form_submission',category: 'Space Widget Submit',label: 'Appointment',page: document.URL,});}if ( typeof space_lead_conversion === 'function' ) {space_lead_conversion('Space Lead - Appointment - VDP');}if ( typeof gtag === 'function' ) {gtag('event', 'asc_form_submission', {'event_category': 'Space Widget Submit','event_label': 'Appointment'});}/* Snackbar tracking */ if ( document.URL.indexOf('snackbar=true') > -1 ) {if ( typeof gtag === 'function' && window.ignoreSnackbarEvents != true ) {gtag('event', 'click', {'event_category': 'Space Retargeting','event_label': 'Retargeting|Snackbar Direct Conversion'});console.log('Snackbar Direct Conversion');eraseCookie('snackbar-vdp');}}else {if ( typeof gtag === 'function' && window.ignoreSnackbarEvents != true ) {let snackbarViewed = getSpaceCookie('snackbar-vdp');if ( snackbarViewed == '1' ) {gtag('event', 'click', {'event_category': 'Space Retargeting','event_label': 'Retargeting|Snackbar Delayed Conversion'});console.log('Snackbar Delayed Conversion');eraseCookie('snackbar-vdp');}}}let snackbarConvertedVDPs = getSpaceCookie('convertedSnackbarVDPs');if ( snackbarConvertedVDPs.indexOf(vehicleVin) == -1 ) {snackbarConvertedVDPs += vehicleVin;}setSpaceCookie('convertedSnackbarVDPs', snackbarConvertedVDPs, 365);}}catch(e){console.log(e);}}};}async function startVDPLoginWidget(email, dealId, form, id) {if ( id == 'appointment-widget-root' ) {vdpAppointmentWidget = false;}}async function startVDPLeadWidget(vehicleVin, vdpLeadRedirectUrl, vdpMainImage, vehicleYear, vehicleMake, vehicleModel, vehicleTrim, dealershipName) {if ( document.URL.indexOf('ezloan') > -1 ) {vdpContactWidget = await window.SpaceWidgets.initRetailingWidget({container: document.getElementById('vdp-lead-widget-root-' + vehicleVin),form: 'preapproval',location: dealershipName,vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: calcPrice,dealershipName: dealershipName},success: 'message',isModal: false,body: 'Dive into your payment options with a quick sign up. Just fill in a few details and you\'re on your way to tailored payment plans.',additionalFields: [{ type: 'hidden', value: 'Preapproval for '+vehicleVin+' '+vehicleYear+' '+vehicleMake+' '+vehicleModel, },{ name: 'location', type: 'select', label: 'Select Location', description: 'Please select a location', options: [ { value: 'Niagara Falls', label: 'Niagara Falls' }, { value: 'Lockport', label: 'Lockport' }, { value: 'Buffalo', label: 'Buffalo' } ]}],});}else {let arr = {container: document.getElementById('vdp-lead-widget-root-' + vehicleVin),form: 'preapproval',location: dealershipName,vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: calcPrice,dealershipName: dealershipName},isModal: false,title:' ',success: 'message',body: 'Dive into your payment options with a quick sign up. Just fill in a few details and you\'re on your way to tailored payment plans.',additionalFields: [{ type: 'hidden', value: 'Preapproval for '+vehicleVin+' '+vehicleYear+' '+vehicleMake+' '+vehicleModel, },],};//console.log(arr);vdpContactWidget = await window.SpaceWidgets.initRetailingWidget({container: document.getElementById('vdp-lead-widget-root-' + vehicleVin),form: 'preapproval',location: dealershipName,vehicle: {vin: vehicleVin,img: vdpMainImage,year: vehicleYear,make: vehicleMake,model: vehicleModel,trim: vehicleTrim,price: calcPrice,dealershipName: dealershipName},isModal: false,title:' ',success: 'message',body: 'Dive into your payment options with a quick sign up. Just fill in a few details and you\'re on your way to tailored payment plans.',additionalFields: [{ type: 'hidden', value: 'Preapproval for '+vehicleVin+' '+vehicleYear+' '+vehicleMake+' '+vehicleModel, },],});}vdpContactWidget.onMessage = ({ type, payload }) => { if (type === 'submit') {try {if ( typeof window.SpaceWebAnalytics != 'undefined') {window.SpaceWebAnalytics.conversion('Vehicle Inquiry');window.SpaceWebAnalytics.trace({action: 'asc_form_submission',category: 'Space Widget Submit',label: 'Vehicle',page: document.URL,});}if ( typeof space_lead_conversion === 'function' ) {space_lead_conversion('Space Lead - Pre-qualification - VDP');}var email = payload.email,dealId = payload.dealId, form = 'thank-you-vehicle';if ( typeof dataLayer != 'undefined' ) {gtag('event', 'asc_form_submission', {'event_category': 'Space Widget Submit','event_label': 'Vehicle'});if ( document.URL.indexOf('ezloan') > -1 && typeof payload.customerId != 'undefined' ) {dataLayer.push({ event: "space-conversion", customerId: payload.customerId });(function(){var x=null,p,q,m,o="36847",l="ORDER ID",i="TOTAL ORDER AMOUNT",c="",k="",g="",j="",u="",shadditional="";try{p=top.document.referer!==""?encodeURIComponent(top.document.referrer.substring(0,512)):""}catch(n){p=document.referrer!==null?document.referrer.toString().substring(0,512):""}try{q=window&&window.top&&document.location&&window.top.location===document.location?document.location:window&&window.top&&window.top.location&&""!==window.top.location?window.top.location:document.location}catch(b){q=document.location}try{m=parent.location.href!==""?encodeURIComponent(parent.location.href.toString().substring(0,512)):""}catch(z){try{m=q!==null?encodeURIComponent(q.toString().substring(0,512)):""}catch(h){m=""}}var A,y=document.createElement("script"),w=null,v=document.getElementsByTagName("script"),t=Number(v.length)-1,r=document.getElementsByTagName("script")[t];if(typeof A==="undefined"){A=Math.floor(Math.random()*100000000000000000)}w="dx.mountain.com/spx?conv=1&shaid="+o+"&tdr="+p+"&plh="+m+"&cb="+A+"&shoid="+l+"&shoamt="+i+"&shocur="+c+"&shopid="+k+"&shoq="+g+"&shoup="+j+"&shpil="+u+shadditional;y.type="text/javascript";y.src=("https:"===document.location.protocol?"https://":"http://")+w;r.parentNode.insertBefore(y,r)}());}dataLayer.push({'event': 'vehicle-lead-submit'});if ( document.URL.indexOf('snackbar=true') > -1 ) {if ( typeof gtag === 'function' && window.ignoreSnackbarEvents != true ) {gtag('event', 'click', {'event_category': 'Space Retargeting','event_label': 'Retargeting|Snackbar Direct Conversion'});console.log('Snackbar Direct Conversion');eraseCookie('snackbar-vdp');}}else {if ( typeof gtag === 'function' && window.ignoreSnackbarEvents != true ) {let snackbarViewed = getSpaceCookie('snackbar-vdp');if ( snackbarViewed == '1' ) {gtag('event', 'click', {'event_category': 'Space Retargeting','event_label': 'Retargeting|Snackbar Delayed Conversion'});console.log('Snackbar Delayed Conversion');eraseCookie('snackbar-vdp');}}}let snackbarConvertedVDPs = getSpaceCookie('convertedSnackbarVDPs');if ( snackbarConvertedVDPs.indexOf(vehicleVin) == -1 ) {snackbarConvertedVDPs += vehicleVin;}setSpaceCookie('convertedSnackbarVDPs', snackbarConvertedVDPs, 365);}}catch(e){console.log(e);}}};}jQuery(document).ready(function($){if ( document.URL.indexOf('snackbar=true') > -1 ) {setSpaceCookie('snackbar-vdp', '1', 1);}/* Get features from API */var apiUrl = 'https://search-api.space.auto/vehicles/2HKRW5H35JH407608';if ( document.URL.indexOf('.dev') > -1 || document.URL.indexOf('space-testing-website.click') > -1 || document.URL.indexOf('dev1.space.auto') > -1 ) {apiUrl = 'https://search-api.space-auto.com/vehicles/2HKRW5H35JH407608';}$.ajax({ url: apiUrl,method: 'GET',headers: { 'dealership': 'maroneyautos' },contentType: 'application/json',}).done(function( response ) {vehicleObj = response;dealershipName = vehicleObj.dealershipName;if (typeof vehicleObj.price !== 'undefined') {price = vehicleObj.price;}if (typeof vehicleObj.msrp !== 'undefined') {msrp = vehicleObj.msrp;}if ( typeof vehicleObj.video != 'undefined') {if ( vehicleObj.video != '' && vehicleObj.video != null ) {let youtubeId = vehicleObj.video.replace('https://youtu.be/','');let videoBtn = `Video`, videoBadge = `Video`;$('.vdp-module-buttons').append(videoBtn);$('.vdp-images-gallery-icon-wrap').append(videoBadge);}}if ( msrp == 0 && price == 0) {$('.fc-v2-field.fc-v2-vehicle-price-wrap').addClass('show');$('.fc-v2-tradein-estimate, .vdp-price-details-wrap, .vdp-header-price-wrap, .vdp-module-test-drive-ymmp-right').hide();}if ( window.$sp_show_pricing == '1' ) {window.$sp_srp.populatePricingv5(vehicleObj, 'vdp');}if ( document.URL.indexOf('huckleberry') > -1 ) {dealershipName = 'Huckleberry Motors';}var showPrice = false, splideHtml = '', photosExist = false,enableStockImagesConditional = '';if ( document.URL.indexOf('huckleberry') == -1 ) {if (typeof vehicleObj.photos !== 'undefined') {if ( vs_images != false ) {if (typeof vehicleObj.photos == 'undefined' ) {vehicleObj.photos = [];}if ( isEmpty(vehicleObj.photos) ) {vs_images.forEach(item => {if ( item.id == vehicleObj.vin ) {vehicleObj.photos = vehicleObj.photos.concat(item.img);}});}}if ( vehicleObj.photos.length > 0 ) {if ( document.URL.indexOf('callahanmotor') > -1 || document.URL.indexOf('mcandrew') > -1 ) {vehicleObj.photos = vehicleObj.photos.map(url => url.replace("http://x-img", "https://cf-img"));}else {vehicleObj.photos = vehicleObj.photos.map(url => url.replace("http:", "https:"));}for ( var x = 0; x < vehicleObj.photos.length; x++ ) {var thisPhoto = vehicleObj.photos[x];if ( document.URL.indexOf('galleriabmw') > -1 ) {if ( thisPhoto.indexOf('assets.cai-media-management.com') == -1 ) {thisPhoto = thisPhoto.replace('http:', 'https:');splideHtml += '
';if ( x == 0 ) {allImages = [thisPhoto];photosExist = true;}else {allImages.push(thisPhoto);}}}else {thisPhoto = thisPhoto.replace('http:', 'https:');splideHtml += '
';if ( x == 0 ) {allImages = [thisPhoto];photosExist = true;}else {allImages.push(thisPhoto);}}}}}}else {vehicleObj.photos.length = 0;}if ( window.width < 768 ) {if ( enableStockImagesConditional == '1' ) {if ( vehicleObj.photos.length < 2 ) {if (typeof vehicleObj.stockPhotos640 !== 'undefined') {if ( vehicleObj.stockPhotos640.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos640.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos640[x].replace('http:', 'https:');splideHtml += '
';if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}else if ( photosExist == false ) {if (typeof vehicleObj.stockPhotos640 !== 'undefined') {if ( vehicleObj.stockPhotos640.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos640.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos640[x].replace('http:', 'https:');splideHtml += '
';if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}else {var noneFound = true;if ( enableStockImagesConditional == '1' ) {if ( vehicleObj.photos.length < 2 ) {if (typeof vehicleObj.stockPhotos1280 !== 'undefined') {if ( vehicleObj.stockPhotos1280.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos1280.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos1280[x].replace('http:', 'https:');splideHtml += '
';noneFound = false;if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}else if (photosExist == false) {if (typeof vehicleObj.stockPhotos1280 !== 'undefined') {if ( vehicleObj.stockPhotos1280.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos1280.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos1280[x].replace('http:', 'https:');splideHtml += '
';noneFound = false;if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}}}}if ( enableStockImagesConditional == '1' ) {if ( vehicleObj.photos.length < 2 ) {if (typeof vehicleObj.stockPhotos640 !== 'undefined') {if ( vehicleObj.stockPhotos640.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos640.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos640[x].replace('http:', 'https:');splideHtml += '
';if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}else if ( noneFound == true ) {if (typeof vehicleObj.stockPhotos640 !== 'undefined') {if ( vehicleObj.stockPhotos640.length > 0 ) {for ( var x = 0; x < vehicleObj.stockPhotos640.length; x++ ) {var thisPhoto = vehicleObj.stockPhotos640[x].replace('http:', 'https:');splideHtml += '
';if ( photosExist == false ) {if ( x == 0 ) {allImages = [thisPhoto];}else {allImages.push(thisPhoto);}}else {allImages.push(thisPhoto);}}}}}}if ( splideHtml == '' ) {splideHtml = '
';}$('#splide-images').html(splideHtml);$('#vdp-image-gallery-icon').data('images', JSON.stringify(allImages));buildSlider(allImages);/* Load Contact Form */var vdpLeadRedirectUrl = 'message';startVDPLeadWidget(vehicleVin, vdpLeadRedirectUrl, vdpMainImage, vehicleYear, vehicleMake, vehicleModel, vehicleTrim, dealershipName);if (typeof vehicleObj.condition !== 'undefined') {if ( vehicleObj.condition != '' ) {tagHtml += ''+vehicleObj.condition+'';}}if (typeof vehicleObj.substatus !== 'undefined') {if ( vehicleObj.substatus != '' ) {$('#vdp-status').html(vehicleObj.substatus);$('.vdp-module-lockin-status').addClass('show');}}let showAvailable = true;if (typeof vehicleObj.customTags !== 'undefined') {if ( vehicleObj.customTags != null ) {for ( let t = 0; t < vehicleObj.customTags.length; t++ ) {if ( vehicleObj.customTags[t] == 'Courtesy') {tagHtml += 'Courtesy';showAvailable = false;break;}}}}if (typeof vehicleObj.status !== 'undefined') {if ( vehicleObj.status != '' ) {if ( showAvailable == true ) {tagHtml += ''+vehicleObj.status+'';}}}$('.vdp-vehicle-tags-wrap').html(tagHtml);if (typeof vehicleObj.interiorColor !== 'undefined' ) {if ( vehicleObj.interiorColor != '' && vehicleObj.interiorColor != null) {let oemInterior = vehicleObj.interiorColor;if ( typeof ( vehicleObj.originalInteriorColor !== 'undefined')) {if ( vehicleObj.originalInteriorColor != '' && vehicleObj.originalInteriorColor != null) {oemInterior = vehicleObj.originalInteriorColor;$('.vdp-loop-details-intcolor-wrap').html(''+removeBracketedText(oemInterior)+'');}else {$('.vdp-loop-details-intcolor-wrap').html(''+removeBracketedText(vehicleObj.interiorColor)+'');}}else {$('.vdp-loop-details-intcolor-wrap').html(''+removeBracketedText(vehicleObj.interiorColor)+'');}}}if (typeof vehicleObj.originalColor !== 'undefined' ) {let hex = '';if (typeof vehicleObj.colorHex !== 'undefined') {hex = vehicleObj.colorHex.replace('#ff333333', '#000000');}if ( vehicleObj.originalColor != '') {let originalColor = removeBracketedText(vehicleObj.originalColor);$('.vdp-loop-details-extcolor-wrap').html(''+originalColor+'');}}if ( document.querySelector('.vdp-module-description') != null ) {if (typeof vehicleObj.description !== 'undefined') {if ( vehicleObj.description != '' && vehicleObj.description != null ) {let description = vehicleObj.description;description = description.replaceAll('\\n','
').replaceAll('', '
');document.getElementById('vdp-description').innerHTML = description;}else {$('.vdp-module-description').hide();}}else {$('.vdp-module-description').hide();}}if (typeof vehicleObj.views !== 'undefined' && document.getElementById('vdp-views') != null ) {if ( vehicleObj.views != '0' ) {document.getElementById('vdp-views').innerHTML = vehicleObj.views;$('#vdp-views').attr('data-value', vehicleObj.views);$('.vdp-module-lockin-views').addClass('show');}}if (typeof vehicleObj.likes !== 'undefined' && document.getElementById('vdp-faves') != null ) {if ( vehicleObj.likes != '0' ) {document.getElementById('vdp-faves').innerHTML = vehicleObj.likes;$('#vdp-faves').attr('data-value', vehicleObj.likes);$('.vdp-module-lockin-faves').addClass('show');}}/*if (typeof vehicleObj.modelCode !== 'undefined') {$('.vehicleid-modelcode').attr('data-value', vehicleObj.modelCode);document.getElementById('vehicleid-modelcode').innerHTML = vehicleObj.modelCode;}*/let noHighlights = true;if (typeof vehicleObj.exteriorHighlights !== 'undefined' && document.getElementById('vdp-highlights-exterior') != null ) {if ( vehicleObj.exteriorHighlights.length > 0 ) {var exteriorHtml = '';for (var i = 0; i < vehicleObj.exteriorHighlights.length; i++) {exteriorHtml += '
'+vehicleObj.exteriorHighlights[i]+'
';noHighlights = false;}document.getElementById('vdp-highlights-exterior').innerHTML = exteriorHtml;$('.vdp-highlights-wrap[data-type="exterior"]').addClass('show');}else {$('.highlight-exterior, .vdp-highlights-wrap[data-type="exterior"]').hide();}}else {$('.highlight-exterior, .vdp-highlights-wrap[data-type="exterior"]').hide();}if (typeof vehicleObj.safetyHighlights !== 'undefined' && document.getElementById('vdp-highlights-safety') != null) {if ( vehicleObj.safetyHighlights.length > 0 ) {var safetyHtml = '';for (var i = 0; i < vehicleObj.safetyHighlights.length; i++) {safetyHtml += ''+vehicleObj.safetyHighlights[i]+'
';noHighlights = false;}document.getElementById('vdp-highlights-safety').innerHTML = safetyHtml;$('.vdp-highlights-wrap[data-type="safety"]').addClass('show');}else {$('.highlight-safety, .vdp-highlights-wrap[data-type="safety"]').hide();}}else {$('.highlight-safety, .vdp-highlights-wrap[data-type="safety"]').hide();}if (typeof vehicleObj.technologyHighlights !== 'undefined' && document.getElementById('vdp-highlights-technology') != null ) {if ( vehicleObj.technologyHighlights.length > 0 ) {var technologyHtml = '';if ( document.URL.indexOf('smartmotorstucson') > -1 && ( vehicleObj.technologyHighlights[0].toLowerCase().indexOf('sirius') > -1 || vehicleObj.technologyHighlights[0].toLowerCase().indexOf('satellite') > -1 ) ) {// Exclude all XM features from Smart Motors}else {for (var i = 0; i < vehicleObj.technologyHighlights.length; i++) {technologyHtml += ''+vehicleObj.technologyHighlights[i]+'
';noHighlights = false;}document.getElementById('vdp-highlights-technology').innerHTML = technologyHtml;$('.vdp-highlights-wrap[data-type="technology"]').addClass('show');}}else {$('.highlight-technology, .vdp-highlights-wrap[data-type="technology"]').hide();}}else {$('.highlight-technology, .vdp-highlights-wrap[data-type="technologyr"]').hide();}if (typeof vehicleObj.interiorHighlights !== 'undefined' && document.getElementById('vdp-highlights-interior') != null ) {if ( vehicleObj.interiorHighlights.length > 0 ) {var interiorHtml = '';for (var i = 0; i < vehicleObj.interiorHighlights.length; i++) {interiorHtml += ''+vehicleObj.interiorHighlights[i]+'
';noHighlights = false;}document.getElementById('vdp-highlights-interior').innerHTML = interiorHtml;$('.vdp-highlights-wrap[data-type="interior"]').addClass('show');}else {$('.highlight-interior, .vdp-highlights-wrap[data-type="interior"]').hide();}}else {$('.highlight-interior, .vdp-highlights-wrap[data-type="interior"]').hide();}if (typeof vehicleObj.mechanicalHighlights !== 'undefined' && document.getElementById('vdp-highlights-mechanical') != null) {if ( vehicleObj.mechanicalHighlights.length > 0 ) {var mechanicalHtml = '';for (var i = 0; i < vehicleObj.mechanicalHighlights.length; i++) {mechanicalHtml += ''+vehicleObj.mechanicalHighlights[i].replace('ENGINE:','Engine:')+'
';noHighlights = false;}document.getElementById('vdp-highlights-mechanical').innerHTML = mechanicalHtml;$('.vdp-highlights-wrap[data-type="mechanical"]').addClass('show');}else {$('.highlight-mechanical, .vdp-highlights-wrap[data-type="mechanical"]').hide();}}else {$('.highlight-mechanical, .vdp-highlights-wrap[data-type="mechanical"]').hide();}if (typeof vehicleObj.moreHighlights !== 'undefined' && document.getElementById('vdp-highlights-more') != null ) {if ( vehicleObj.moreHighlights.length > 0 ) {var moreHtml = '';for (var i = 0; i < vehicleObj.moreHighlights.length; i++) {moreHtml += ''+vehicleObj.moreHighlights[i]+'
';noHighlights = false;}document.getElementById('vdp-highlights-more').innerHTML = moreHtml;$('.vdp-highlights-wrap[data-type="more"]').addClass('show');}else {$('.highlight-more, .vdp-highlights-wrap[data-type="more"]').hide();}}else {$('.highlight-more, .vdp-highlights-wrap[data-type="more"]').hide();}if ( noHighlights == true && document.getElementById('vdp-highlights-more') != null ) {$('.vdp-grid-item[data-module="feature-highlights"] .vdp-module-h2').remove();if ( $('.vdp-grid-item[data-module="get-pre-approval"] .vdp-module-wrap').length > 0 ) {$('.vdp-grid-item[data-module="get-pre-approval"] .vdp-module-wrap').detach().appendTo('.vdp-grid-item[data-module="feature-highlights"]');$('.vdp-grid-item[data-module="feature-highlights"]').css('padding', '32px 0');$('.vdp-grid-item[data-module="feature-highlights"] .vdp-module-h2').css('margin-left', '32px');$('.vdp-grid-item[data-module="get-pre-approval"]').hide();if ( $('.vdp-grid-item[data-module="pricing-calculator"]').length > 0 ) {$('.vdp-grid-item[data-module="location"]').addClass('vdp-grid-item-66');}}else {if ( $('.vdp-grid-item-100[data-module="lock-in-price"]').length > 0 ) {$('.vdp-grid-item[data-module="feature-highlights"] .vdp-module-h2').remove();$('.vdp-grid-item-100[data-module="lock-in-price"]').detach().appendTo('.vdp-grid-item[data-module="feature-highlights"]');}}}if ( document.getElementById('spec-enginedisplacement') != null ) {if (typeof vehicleObj.engineDisplacement !== 'undefined') {if ( vehicleObj.engineDisplacement != '') {document.getElementById('spec-enginedisplacement').innerHTML = vehicleObj.engineDisplacement;$('.spec-enginedisplacement').attr('data-value', vehicleObj.engineDisplacement);}}}if ( document.getElementById('spec-doorcount') != null ) {if (typeof vehicleObj.doorsCount !== 'undefined') {if ( vehicleObj.doorsCount != '') {document.getElementById('spec-doorcount').innerHTML = vehicleObj.doorsCount;$('.spec-doorcount').attr('data-value', vehicleObj.doorsCount);}}}if ( document.getElementById('spec-driveline') != null ) {if (typeof vehicleObj.driveline !== 'undefined') {if ( vehicleObj.driveline != '') {document.getElementById('spec-driveline').innerHTML = vehicleObj.driveline;$('.spec-driveline').attr('data-value', vehicleObj.driveline);if ( document.querySelector('.vdp-loop-details-driveline') != null ) {document.querySelector('.vdp-loop-details-driveline').innerHTML = vehicleObj.driveline;}}else {if ( document.querySelector('.vdp-loop-details-driveline-wrap') != null ) {document.querySelector('.vdp-loop-details-driveline-wrap').style.display = 'none';}}}}if ( document.getElementById('spec-fuel_type') != null ) {if (typeof vehicleObj.fuel !== 'undefined') {if ( vehicleObj.fuel != '' && vehicleObj.fuel != null ) {let fuel = vehicleObj.fuel;if ( fuel.toLowerCase().indexOf('diesel') > -1) {fuel = 'Diesel';}else if ( fuel.toLowerCase().indexOf('electric') > -1 ) {fuel = 'Electric';}else if ( fuel.toLowerCase().indexOf('premium') > -1) {fuel = 'Gas';}else if ( fuel.toLowerCase().indexOf('regular') > -1 || fuel.toLowerCase().indexOf('unleaded') > -1 ) {fuel = 'Gas';}document.getElementById('spec-fuel_type').innerHTML = fuel;$('.spec-fuel_type').attr('data-value', fuel);if ( document.querySelector('.vdp-loop-details-fuel') != null ) {document.querySelector('.vdp-loop-details-fuel').innerHTML = fuel;}}else {if ( document.querySelector('.vdp-loop-details-fuel-wrap') != null ) {document.querySelector('.vdp-loop-details-fuel-wrap').style.display = 'none';}}}}if ( document.getElementById('spec-transmission') != null ) {if (typeof vehicleObj.transmission !== 'undefined') {if ( vehicleObj.transmission != '') {document.getElementById('spec-transmission').innerHTML = vehicleObj.transmission;$('.spec-transmission').attr('data-value', vehicleObj.transmission);}}}if ( document.getElementById('all-features') != null ) {if ( document.URL.indexOf('wichitafalls') > -1 ) {if (typeof vehicleObj.meta !== 'undefined') {if ( vehicleObj.meta.length > 0 ) {var html = '';var allFeatures = JSON.parse(vehicleObj.meta);allFeatures = allFeatures.features.sort();//console.log(allFeatures)if ( allFeatures.length > 0 ) {for (var i = 0; i < allFeatures.length; i++) {html += ''+allFeatures[i]+'
';}}document.getElementById('all-features').innerHTML = html;$('.vdp-loop-specs-wrap[data-specs="All Features"]').show();}}}}if ( document.getElementById('exterior-features') != null ) {if (typeof vehicleObj.exteriorFeatures !== 'undefined') {if ( vehicleObj.exteriorFeatures.length > 0 ) {var html = '';for ( var i = 0; i < vehicleObj.exteriorFeatures.length; i++ ) {html += ''+vehicleObj.exteriorFeatures[i]+'
';}document.getElementById('exterior-features').innerHTML = html;}else {$('.vdp-loop-specs-wrap[data-specs="Exterior"]').hide();}}else {$('.vdp-loop-specs-wrap[data-specs="Exterior"]').hide();}}if ( document.getElementById('interior-features') != null ) {if (typeof vehicleObj.interiorFeatures !== 'undefined') {if ( vehicleObj.interiorFeatures.length > 0 ) {var html = '';for ( var i = 0; i < vehicleObj.interiorFeatures.length; i++ ) {html += ''+vehicleObj.interiorFeatures[i]+'
';}document.getElementById('interior-features').innerHTML = html;}else {$('.vdp-loop-specs-wrap[data-specs="Interior"]').hide();}}else {$('.vdp-loop-specs-wrap[data-specs="Interior"]').hide();}}if ( document.getElementById('mechanical-features') != null ) {if (typeof vehicleObj.mechanicalFeatures !== 'undefined') {if ( vehicleObj.mechanicalFeatures.length > 0 ) {var html = '';for ( var i = 0; i < vehicleObj.mechanicalFeatures.length; i++ ) {html += ''+vehicleObj.mechanicalFeatures[i]+'
';}document.getElementById('mechanical-features').innerHTML = html;}else {$('.vdp-loop-specs-wrap[data-specs="Mechanical"]').hide();}}else {$('.vdp-loop-specs-wrap[data-specs="Mechanical"]').hide();}}if ( document.getElementById('safety-features') != null ) {if (typeof vehicleObj.safetyFeatures !== 'undefined') {if ( vehicleObj.safetyFeatures.length > 0 ) {var html = '';for ( var i = 0; i < vehicleObj.safetyFeatures.length; i++ ) {html += ''+vehicleObj.safetyFeatures[i]+'
';}document.getElementById('safety-features').innerHTML = html;}else {$('.vdp-loop-specs-wrap[data-specs="Safety"]').hide();}}else {$('.vdp-loop-specs-wrap[data-specs="Safety"]').hide();}}if ( document.getElementById('technology-features') != null ) {if (typeof vehicleObj.technologyFeatures !== 'undefined') {if ( vehicleObj.technologyFeatures.length > 0 ) {var html = '';for ( var i = 0; i < vehicleObj.technologyFeatures.length; i++ ) {if ( document.URL.indexOf('smartmotorstucson') > -1 && ( vehicleObj.technologyFeatures[i].toLowerCase().indexOf('sirius') > -1 || vehicleObj.technologyFeatures[i].toLowerCase().indexOf('satellite') > -1 ) ) {// Exclude all XM features from Smart Motors}else {html += ''+vehicleObj.technologyFeatures[i]+'
';}}document.getElementById('technology-features').innerHTML = html;}else {$('.vdp-loop-specs-wrap[data-specs="Technology"]').hide();//$('#read-more-toggle-btn').hide();}}else {$('.vdp-loop-specs-wrap[data-specs="Technology"]').hide();}}if ( document.getElementById('more-features') != null ) {if (typeof vehicleObj.moreFeatures !== 'undefined') {if ( vehicleObj.moreFeatures.length > 0 ) {var html = '';for ( var i = 0; i < vehicleObj.moreFeatures.length; i++ ) {html += ''+vehicleObj.moreFeatures[i]+'
';}document.getElementById('more-features').innerHTML = html;}else {$('.vdp-loop-specs-wrap[data-specs="More"]').hide();}}else {$('.vdp-loop-specs-wrap[data-specs="More"]').hide();}}if ( window.width > 900 && document.URL.indexOf('smartmotors') == -1 ) {//$('.vdp-grid-item-2.vdp-grid-item-33 .vdp-module-wrap, .vdp-grid-item-3.vdp-grid-item-33 .vdp-module-wrap').hcSticky({bottomEnd:32, innerTop:-165 })}if ( document.URL.indexOf('autosmart') > -1 ) {setTimeout(function(){let formLocation = vehicleObj.dealershipName;formLocation = formLocation.replace('AutoSmart ','');$('#nf-field-597, #nf-field-593, #nf-field-615').val(formLocation);}, 1000);}if ( document.getElementById('read-more-toggle-btn') != null ) {/* Expand description & features */var specsSection = document.querySelector('.vdp-module-specs'),readMoreBtn = document.getElementById('read-more-toggle-btn');var expanded = false;var previousScrollPosition = 0;if ( readMoreBtn != null ) {readMoreBtn.addEventListener('click', function() {expanded = !expanded;if (expanded) {previousScrollPosition = window.scrollY;}readMoreBtn.classList.toggle('expanded');specsSection.classList.toggle('expanded');readMoreBtn.innerHTML = expanded ? 'See Less' : 'See More';if (!expanded) { window.scrollTo({ top: previousScrollPosition, behavior: 'auto' });}});}}});if ( window.width < 900 ) {$('.vdp-loop-header-right').append('');}window.buildSlider = function buildSlider(allImages) {var imageCount = allImages.length,includeStock = true;$('#vdp-image-gallery-icon').attr('data-images', encodeURIComponent(JSON.stringify(allImages)));$('.vdp-vehicle-image-pagination').attr('data-count', imageCount);vdpMainImage = allImages[0];if ( imageCount < 2 ) {$('.images-gallery-arrow, .vdp-vehicle-tags').hide();$('#vdp-loop-splide').html('').css('visibility','visible');}else {/* Image slider */var carouselHeight = '480px', imageGap = '8px';if ( imageCount < 2 ) {carouselHeight = '300px';imageGap = '0px';}mainSlider = new Splide( '#vdp-loop-splide', {type : 'loop',perPage : 3,autoWidth : true,focus : 'center',start : 0,height : carouselHeight,gap : imageGap,pagination : false,lazyLoad : 'nearby',arrows : true,breakpoints: {767: {perPage: 1,height: '290px',gap: imageGap,autoWidth: false,autoHeight: true},}} );mainSlider.on( 'mounted', function () {if ( imageCount < 2 ) {$('.vdp-loop-images .splide__arrows, .vdp-loop-images .splide__pagination').hide();}});var carouselPaginationHtml = '', carouselClass = 'active';for (var i = 0; i < allImages.length; i++) {if (i==0) {carouselClass = 'active';}if (i==1) {carouselClass = 'small';}if (i==2){carouselClass = 'small';}if (i==3) {carouselClass = 'micro';}if (i==4) {carouselClass = 'hidden';}if (i>4) {carouselClass = 'hidden';}carouselPaginationHtml += '';}carouselPaginationHtml += '
';$('.srp-img-pagination').html(carouselPaginationHtml);mainSlider.on( 'move', function (newIndex, prevIndex) {$('.indicators-wrapper span').removeClass().addClass('hidden');$('.indicators-wrapper span[data-id="'+(newIndex-1)+'"], .indicators-wrapper span[data-id="'+(newIndex+1)+'"]').removeClass().addClass('small');$('.indicators-wrapper span[data-id="'+(newIndex-2)+'"]').removeClass().addClass('micro');$('.indicators-wrapper span[data-id="'+(newIndex-3)+'"]').removeClass().addClass('hidden');$('.indicators-wrapper span[data-id="'+(newIndex+2)+'"]').removeClass().addClass('micro');$('.indicators-wrapper span[data-id="'+newIndex+'"]').removeClass().addClass('active');});mainSlider.mount();}}/* Header */$('.vdp-loop-header').detach().appendTo('header[data-type="header"]').addClass('show');if ( $('a.vdp-copy-link').length > 0 ) {var clipboard = new ClipboardJS('a.vdp-copy-link');}$('body').on('click', '.v4-pricing-conditional-offers .v4-pricing-header', function(e){$('.v4-pricing-conditional-offers').toggleClass('show');}); $('body').on('click', 'a.vdp-header-copy', function(e){e.preventDefault();$('.copy-notify').addClass('show');setTimeout(function(){$('.copy-notify').removeClass('show');}, 8000);});$('body').on('click', '.vdp-price-details-link', function(e){$('.vdp-price-details-wrap').toggleClass('show');$('.vdp-price-breakdown-tab[data-tab="finance"]').click();});$('body').on('click', '.vdp-price-breakdown-tab', function(e){var $this = $(this),tab = $this.data('tab');if ( $this.hasClass('active') == false ) {$('.vdp-price-breakdown-tab').removeClass('active');$this.addClass('active');if ( tab == 'finance') {$('.vdp-module-calc-tabs li[data-tab="calculator"]').click();}else if ( tab == 'lease') {$('.vdp-module-calc-tabs li[data-tab="lease"]').click();}else if ( tab == 'cash') {$('.vdp-price-breakdown .vdp-calc-disclaimer').hide();}$('.vdp-price-breakdown').attr('data-active', tab);}});$('body').on('click', '.vdp-header-share', function(e){var $this = $(this),leadBtnText = $this.data('button');$('.vehicle-share-form .form-vehicle-image').html('');$('.vehicle-share-form .form-vehicle-year').html(vehicleObj.year);$('.vehicle-share-form .form-vehicle-make').html(vehicleObj.make);$('.vehicle-share-form .form-vehicle-model').html(vehicleObj.model);$('.vehicle-share-form .form-vehicle-price').html(vehicleObj.trim);let dealershipName = vehicleObj.dealershipName;dealershipName = dealershipName.replace('AutoSmart ','');$('.vehicle-share-form input[name="vehicle_inquiry_year"]').val(vehicleObj.year);$('.vehicle-share-form input[name="vehicle_inquiry_make"]').val(vehicleObj.make);$('.vehicle-share-form input[name="vehicle_inquiry_model"]').val(vehicleObj.model);$('.vehicle-share-form input[name="vehicle_inquiry_trim"]').val(vehicleObj.trim);$('.vehicle-share-form input[name="vehicle_inquiry_vin"]').val(vehicleObj.vin);$('.vehicle-share-form input[name="vehicle_inquiry_stock"]').val(vehicleObj.stock);$('.vehicle-share-form input[name="vehicle_inquiry_condition"]').val(vehicleObj.condition);$('.vehicle-share-form input[name="vehicle_inquiry_link"]').val(vdpPermalink);$('.vehicle-share-form input[name="vehicle_location"]').val(dealershipName);$('.vehicle-lead-form, .images-gallery-popup').removeClass('show');$('#srp-lightbox-wrap').removeClass('gallery');$('.srp-lightbox, .vehicle-share-form').addClass('show');$('.srp-lead-form-main .vehicle-share-form .nf-form-layout .nf-form-content input[type=button]').attr('value','Send Link');$('.srp-lead-form-main .vehicle-share-form input[type="text"], .srp-lead-form-main .vehicle-share-form input[type="tel"]').keyup(function(){var $this = $(this),val = $this.val();if (val == '' || val == '(___) ___-____') {$this.parent().parent().removeClass('smaller');}else {$this.parent().parent().addClass('smaller');}});$('.srp-lead-form-main .vehicle-share-form .email input[type="text"]').keyup(function(){captureEmail = $(this).val();});$('.srp-lead-form-main .vehicle-share-form .first_name input[type="text"]').keyup(function(){captureFirstName = $(this).val();});$('.srp-lead-form-main .vehicle-share-form .last_name input[type="text"]').keyup(function(){captureLastName = $(this).val();});$('.srp-lead-form-main .vehicle-share-form .phone-container input[type="tel"]').keyup(function(){capturePhone = $(this).val().replaceAll('(','').replaceAll(')','').replaceAll(' ','').replaceAll('-','');});//$('.vehicle-share-form .textarea-container:first').after('Your privacy is very important to us. Please see our Privacy Policy for more information.
');if ( $('.share-copy-link').length == 0 ) {$('.vehicle-share-form .nf-field-container.submit-container .nf-field-element').prepend('');var clipboard = new ClipboardJS('a.copy-link');}if ( $('.vehicle-share-form input[name="button_clicked"]').length > 0 ) {$('.vehicle-share-form input[name="button_clicked"]').val(leadBtnText);}});$('.srp-lightbox').on('click', 'a.copy-link', function(e){e.preventDefault();var $this = $(this);$(this).addClass('copied').html(' Copied!');setTimeout(function(){$this.removeClass('copied').html(' Copy Link')}, 3000);});$('body').on('click', '.images-gallery-main-img', function(e){if ( window.width > 1024 ) {if ( $('#zoom-img-container').hasClass('zoom-enabled')) {$('#zoom-img-container').trigger('zoom.destroy').removeClass('zoom-enabled');}else {$('#zoom-img-container').zoom().addClass('zoom-enabled');}}});/* Move map / calculator modules into place */if ( document.URL.indexOf('?fl_builder') == -1 ) {setTimeout(function(){//if ( document.URL.indexOf('.space.auto') > -1 ) {//$('.vdp-module-countdown.vdp-countdown').css('height', '240px');//$('.fl-map iframe').css('height', '353px');//}if ( $('.vdp-map-html iframe.google-maps-iframe').length == 0 ) {$('.hidden-bb-column .fl-map, .hidden-bb-column .pp-google-map-wrapper').detach().appendTo('.vdp-map-html');}$('.fc-v2-btn').html($('.vdp-header-button').html());if ( $('.financing-calculator-main').data('lease') == '1' ) {$('.vdp-module-calc-tabs li[data-tab="lease"]').show();$('.vdp-module-calc-tabs .tab__content li[data-tab="lease"]').addClass('hide');}if ( document.getElementById('vdp-fc') != null ) {$('#vdp-fc').empty();$('.financing-calculator-main').detach().appendTo('#vdp-fc');}else {$('.financing-calculator-main').hide();}}, 500);}/* Countdown */setInterval(function(){ var toDate=new Date();var tomorrow=new Date();tomorrow.setHours(24,0,0,0);var diffMS=tomorrow.getTime()/1000-toDate.getTime()/1000;var diffHr=Math.floor(diffMS/3600);diffMS=diffMS-diffHr*3600;var diffMi=Math.floor(diffMS/60);diffMS=diffMS-diffMi*60;var diffS=Math.floor(diffMS);var hours=((diffHr<10)?"0"+diffHr:diffHr),minutes=((diffMi<10)?"0"+diffMi:diffMi),seconds=((diffS<10)?"0"+diffS:diffS);if ( document.getElementById('vdp-countdown-hours') != null ) {document.getElementById('vdp-countdown-hours').innerHTML = hours;document.getElementById('vdp-countdown-minutes').innerHTML = minutes;document.getElementById('vdp-countdown-seconds').innerHTML = seconds; } }, 1000);setTimeout(function(){if ( document.URL.indexOf('getprice') > -1 ) {$('.vdp-cta-lead').click();}}, 1000);/* Add VIN to recently viewed cookie */viewedVDPs = viewedVDPs.replace('2HKRW5H35JH407608', '');viewedVDPs += '2HKRW5H35JH407608';setSpaceCookie('viewedSpaceVehicles', viewedVDPs, 365);addVinToLocalStorage('2HKRW5H35JH407608');$('.vdp-v3-incentives-icon').click(function(){var type = $(this).data('placement');$('.vdp-v4-incentives-html.vdp-v3-incentives-'+type).toggleClass('show');});$('body').on('click', '.vdp-incentives-close', function(e){$('.vdp-v4-incentives-html').removeClass('show');});$('body').on('click', '.vdp-incentive-cta-btn, .v4-pricing-ask', function(e){$('.vdp-header-button').click();});// Calculator tabsvar clickedTab = $('.tabs > .active');var tabWrapper = $('.tab__content');var activeTab = tabWrapper.find('.active');var activeTabHeight = activeTab.outerHeight(); activeTab.show(); tabWrapper.height(activeTabHeight); $('.tabs > li').on('click', function() {var $this = $(this),thisTab = $this.data('tab');$('.tabs > li').removeClass('active');$('.tab__content > li').addClass('hide');$this.addClass('active');$('.tab__content > li[data-tab="'+thisTab+'"]').removeClass('hide')if ( thisTab == 'lease' || thisTab == 'calculator' ) {if ( thisTab == 'lease' ) {$('.tab__content > li[data-tab="calculator"]').removeClass('hide');$('.financing-calculator').removeClass('show');$('.leasing-calculator').addClass('show');$('.financing-calculator .down-payment, .financing-calculator .trade-in-value, .financing-calculator .total-price, .financing-calculator .monthly-payment, .financing-calculator .loan-term, .financing-calculator .credit-score').removeClass('active');$('.leasing-calculator .down-payment, .leasing-calculator .trade-in-value, .leasing-calculator .total-price, .leasing-calculator .monthly-payment, .leasing-calculator .loan-term, .leasing-calculator .credit-score, .leasing-calculator .residual-value').addClass('active');calculatorType = 'lease';$('.varying-disclaimer').hide().html($('.calc-disclaimer-lease').html()).fadeIn();$('.vdp-price-breakdown-tab.active').removeClass('active');$('.vdp-price-breakdown-tab[data-tab="lease"]').addClass('active');$('.vdp-price-breakdown').attr('data-active', 'lease');$sp_calculator.calcMonthlyLeasePayment();}else if ( thisTab == 'calculator' ){$('.leasing-calculator').removeClass('show');$('.financing-calculator').addClass('show');$('.leasing-calculator .down-payment, .leasing-calculator .trade-in-value, .leasing-calculator .total-price, .leasing-calculator .monthly-payment, .leasing-calculator .loan-term, .leasing-calculator .credit-score, .leasing-calculator .residual-value').removeClass('active');$('.financing-calculator .down-payment, .financing-calculator .trade-in-value, .financing-calculator .total-price, .financing-calculator .monthly-payment, .financing-calculator .loan-term, .financing-calculator .credit-score').addClass('active');calculatorType = 'finance';$('.varying-disclaimer').hide().html($('.calc-disclaimer-financing').html()).fadeIn();$('.vdp-price-breakdown-tab.active').removeClass('active');$('.vdp-price-breakdown-tab[data-tab="finance"]').addClass('active');$('.vdp-price-breakdown').attr('data-active', 'finance');$sp_calculator.calcMonthlyLoanPayment();}}else {clickedTab = $('.tabs .active');$('.tab__content > li').removeClass('active');var clickedTabIndex = clickedTab.index();$('.tab__content > li').eq(clickedTabIndex).addClass('active'); activeTab = $('.tab__content > .active');}});$('.creditapp-btn').click(function(e){e.preventDefault();if ( document.URL.indexOf('galleriabmw') == -1 ) {$('.fc-credit-app').addClass('show');$('body').addClass('noscroll');startWidget();}});if ( $('.vdp-module-calc .tabs li:not(.hide)').length == 0 ) {$('.vdp-module-calc').html('Easy value for your trade-in.
');}$('.als-container').hide();});