/* Creek Motors dealership experience enhancements */
.cm-inventory-tools{background:#fff;border:1px solid #e6e8ed;border-radius:10px;padding:18px;margin:0 0 22px}
.cm-filter-row{display:grid;grid-template-columns:2fr repeat(5,1fr);gap:10px}
.cm-filter-row input,.cm-filter-row select{min-height:44px;border:1px solid #d9dce3;border-radius:6px;background:#fff;padding:0 12px;color:#111827;font:inherit}
.cm-filter-summary{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:13px;color:#667085;font-size:14px}
.cm-filter-submit{border:0;border-radius:6px;background:#ff3600;color:#fff;min-height:44px;padding:0 20px;font-weight:800;cursor:pointer}.cm-filter-submit:hover,.cm-filter-submit:focus-visible{background:#d92e00}.cm-text-button{border:0;background:transparent;color:#ff3600;font-weight:800;cursor:pointer}
.cm-buyer-center{margin:34px 0 0}
.cm-buyer-head{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:18px}
.cm-buyer-head h3{font-size:30px;margin:4px 0}.cm-buyer-head p{margin:0;color:#6b7280;max-width:650px}
.cm-buyer-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.cm-buyer-card{border:1px solid #e7e7e7;background:#fff;border-radius:10px;padding:20px;display:flex;flex-direction:column;min-height:190px}
.cm-buyer-card i{color:#ff3600;font-size:22px;margin-bottom:14px}.cm-buyer-card h4{font-size:18px;margin:0 0 8px}.cm-buyer-card p{font-size:14px;line-height:1.5;color:#6b7280;margin:0 0 16px}
.cm-buyer-card button,.cm-buyer-card a{margin-top:auto;border:0;border-radius:6px;background:#ff3600;color:#fff;padding:11px 13px;font-weight:800;text-align:center;text-decoration:none;cursor:pointer}
.cm-modal[hidden]{display:none}.cm-modal{position:fixed;inset:0;z-index:99999;display:grid;place-items:center;padding:20px}
.cm-modal-backdrop{position:absolute;inset:0;background:rgba(3,8,25,.72)}
.cm-modal-dialog{position:relative;width:min(720px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:12px;padding:28px;box-shadow:0 30px 80px rgba(0,0,0,.25)}
.cm-modal-head{display:flex;justify-content:space-between;gap:20px;align-items:start;margin-bottom:18px}.cm-modal-head h3{margin:0;font-size:26px}.cm-modal-close{border:0;background:#f1f3f6;border-radius:50%;width:38px;height:38px;font-size:24px;cursor:pointer}
.cm-modal-intro{color:#667085;line-height:1.55;margin:-6px 0 20px}
.cm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.cm-field{display:flex;flex-direction:column;gap:6px}.cm-field label{font-weight:750;color:#111827}.cm-field input,.cm-field select,.cm-field textarea{border:1px solid #d9dce3;border-radius:6px;padding:11px 12px;font:inherit;width:100%}.cm-full{grid-column:1/-1}.cm-submit{border:0;border-radius:6px;background:#ff3600;color:#fff;padding:13px 18px;font-weight:800;cursor:pointer}.cm-note{font-size:13px;color:#667085;line-height:1.5;margin:12px 0 0}
.cm-empty{grid-column:1/-1;padding:30px;text-align:center;border:1px dashed #d0d5dd;border-radius:8px;color:#667085}
@media(max-width:1100px){.cm-filter-row{grid-template-columns:repeat(3,1fr)}.cm-filter-row input{grid-column:span 3}.cm-buyer-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:650px){.cm-filter-row,.cm-form-grid{grid-template-columns:1fr}.cm-filter-row input,.cm-full{grid-column:auto}.cm-buyer-grid{grid-template-columns:1fr}.cm-filter-summary,.cm-buyer-head,.cm-reviews-head{align-items:start;flex-direction:column}.cm-modal-dialog{padding:22px}}

.cm-buyer-launcher{margin:28px 0 0;background:#fff;border:1px solid #e3e6eb;border-radius:10px;padding:24px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.cm-buyer-launcher h3{font-size:25px;margin:4px 0 7px}.cm-buyer-launcher p{margin:0;color:#6b7280;max-width:720px;line-height:1.5}
.cm-buyer-launcher button,.cm-buyer-launcher .cm-open-page{flex:0 0 auto;border:0;border-radius:6px;background:#ff3600;color:#fff;padding:13px 20px;font-weight:800;cursor:pointer}
.cm-buyer-dialog[hidden]{display:none}.cm-buyer-dialog{position:fixed;inset:0;z-index:99990;margin:0;display:grid;place-items:center;padding:20px}
.cm-buyer-backdrop{position:absolute;inset:0;background:rgba(3,8,25,.72)}
.cm-buyer-dialog-panel{position:relative;width:min(1280px,100%);max-height:90vh;overflow:auto;background:#f7f7f7;border-radius:12px;padding:32px;box-shadow:0 30px 80px rgba(0,0,0,.28)}
.cm-buyer-close{position:absolute;right:20px;top:20px;width:40px;height:40px;border:0;border-radius:50%;background:#e9ecf1;color:#111827;font-size:26px;cursor:pointer;z-index:2}
.cm-buyer-dialog .cm-buyer-head{padding-right:54px}
@media(max-width:650px){.cm-buyer-launcher{align-items:flex-start;flex-direction:column}.cm-buyer-launcher button,.cm-buyer-launcher .cm-open-page{width:100%}.cm-buyer-dialog-panel{padding:22px}.cm-buyer-close{right:12px;top:12px}}

.cm-buyer-launcher .cm-open-page{text-decoration:none;text-align:center;display:inline-block}

/* Keep inventory controls and reset action on one desktop row. */
@media(min-width:1101px){
  .cm-inventory-tools{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:14px}
  .cm-filter-row{min-width:0;grid-template-columns:minmax(190px,1.6fr) repeat(4,minmax(115px,1fr)) minmax(175px,1.25fr)}
  .cm-filter-summary{margin-top:0;justify-content:flex-end;white-space:nowrap}
  .cm-text-button{white-space:nowrap}
}

/* Prevent the FAQ and Blog section spacing from stacking into a large blank area. */
#faq{padding-bottom:45px}
#blog{padding-top:45px}
@media(max-width:767px){#faq{padding-bottom:30px}#blog{padding-top:30px}}


/* Creek Motors mobile layout stabilization */
@media(max-width:767px){
  html,body{width:100%;max-width:100%;overflow-x:hidden!important}
  body{overflow-y:auto!important}
  .container{padding-left:16px!important;padding-right:16px!important}
  .header-one .header-top .top-info-bar{padding:5px 0}
  .header-one .header-top .top-info-text{font-size:11px}
  .header-one .header-wrapper-area .header-right .bottom{min-height:68px;gap:10px}
  .header-one .header-wrapper-area .header-right .bottom .logo-area{display:block!important;flex:1;min-width:0}
  .header-one .logo-area img{width:min(180px,52vw)!important;height:auto}
  .header-one .nav-area,.header-one .social-area-transparent,.header-one .creek-header-login{display:none!important}
  .header-one .header-wrapper-area .header-right .bottom .bottom-right{gap:8px}
  .header-one .menu-btn{display:flex!important;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;line-height:1}
  #side-bar{width:min(88vw,360px);max-width:100%;overflow-y:auto}
  #side-bar .mobile-menu-main{padding-bottom:32px}
  #side-bar .mainmenu a{min-height:48px;display:flex;align-items:center}
  .rts-banner-area.creek-centered-banner{min-height:760px;height:760px!important;margin:0 10px;border-radius:12px;overflow:hidden}
  .creek-centered-banner .rts-banner-swiper-area{inset:0}
  .creek-centered-banner .rts-hero-banner{background-position:center!important}
  .creek-banner-content{padding:48px 0 72px!important}
  .creek-banner-content .creek-hero-badge{font-size:11px;padding:7px 12px;margin-bottom:18px;white-space:normal}
  .creek-banner-title{font-size:36px!important;line-height:1.12!important;margin-bottom:18px}
  .creek-banner-title br{display:none}
  .creek-banner-desc{font-size:15px!important;line-height:1.55!important;margin-bottom:26px!important}
  .creek-banner-btns{gap:12px!important}
  .creek-cta-group{width:100%;max-width:280px}
  .creek-cta-pill{flex:1;justify-content:center;min-width:0}
  .creek-banner-content .creek-hero-stats{position:static!important;display:grid;grid-template-columns:1fr 1fr;gap:16px 10px;margin:28px auto 0!important;padding-bottom:16px}
  .creek-banner-content .creek-hero-stats li{margin:0;min-width:0}
  .creek-banner-content .creek-hero-stats .stat-title{font-size:16px}
  .creek-banner-content .creek-hero-stats .stat-sub{font-size:12px;line-height:1.35}
  .banner-slider-one.creek-centered-banner .rts-banner-pagination-wrapper{padding:12px 16px;right:0}
  .sale-tools{padding:48px 0!important}
  .sale-head h2,.sale-inventory-head h3{font-size:28px!important;line-height:1.2!important}
  .sale-inventory{margin-top:24px}
  .cm-inventory-tools{padding:14px;margin-bottom:18px}
  .cm-filter-row{display:grid!important;grid-template-columns:1fr!important;gap:10px}
  .cm-filter-row input,.cm-filter-row select{grid-column:auto!important;width:100%;font-size:16px;min-height:48px}
  .cm-filter-summary{width:100%;margin-top:10px;display:grid!important;grid-template-columns:1fr;gap:8px;align-items:stretch!important}
  .cm-filter-submit,.cm-text-button{width:100%;min-height:46px;text-align:center}
  .sale-stock-grid{grid-template-columns:1fr!important;gap:16px}
  .sale-stock-card img{height:190px}
  .sale-stock-body{padding:16px}
  .sale-stock-buttons{grid-template-columns:1fr!important}
  .sale-stock-buttons .sale-full{grid-column:auto}
  .sale-compare-dock{align-items:stretch;flex-direction:column}
  .sale-compare-dock button{width:100%}
  .sale-panel-wrap{padding:20px 16px!important;overflow:hidden}
  .sale-panel-head{align-items:flex-start;gap:10px}
  .sale-form-grid{grid-template-columns:1fr!important}
  .sale-full{grid-column:auto!important}
  .sale-compare-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  .cm-buyer-launcher{margin-top:22px;padding:18px;gap:18px}
  .cm-buyer-launcher h3{font-size:23px;line-height:1.25}
  .cm-buyer-dialog{padding:10px}
  .cm-buyer-dialog-panel{width:100%;max-height:94vh;padding:56px 16px 20px}
  .cm-buyer-grid{grid-template-columns:1fr!important}
  .cm-buyer-card{min-height:0;padding:18px}
  .cm-modal{padding:10px}
  .cm-modal-dialog{max-height:94vh;padding:54px 16px 20px}
  .cm-modal-head{align-items:flex-start}
  .rts-faq-wrapper-area .row{--bs-gutter-x:0}
  .rts-contact-form{padding:24px 16px!important;margin-top:20px}
  .rts-blog-wrapper .row{--bs-gutter-x:0}
  img,video,iframe{max-width:100%}
}
@media(max-width:390px){
  .creek-banner-title{font-size:32px!important}
  .rts-banner-area.creek-centered-banner{min-height:790px;height:790px!important;margin:0 8px}
  .header-one .logo-area img{width:min(164px,50vw)!important}
}


/* Keep the compact mobile hero clear of the following sales section. */
@media(max-width:767px){
  .rts-banner-area.creek-centered-banner .creek-hero-stats{display:none!important}
}


/* Ensure both hero actions remain fully visible on narrow screens. */
@media(max-width:767px){
  .rts-banner-area.creek-centered-banner{min-height:820px;height:820px!important}
}
@media(max-width:390px){
  .rts-banner-area.creek-centered-banner{min-height:835px;height:835px!important}
}


/* Anchor mobile hero content to the top so the lower action cannot be clipped. */
@media(max-width:767px){
  .rts-banner-area.creek-centered-banner{align-items:flex-start!important}
  .rts-banner-area.creek-centered-banner .creek-banner-content{padding:38px 0 24px!important}
  .rts-banner-area.creek-centered-banner .creek-banner-btns{position:relative;top:-32px}
}


/* Keep carousel dots clear of the mobile hero action buttons. */
@media(max-width:767px){
  .banner-slider-one.creek-centered-banner .rts-banner-pagination-wrapper{
    top:14px!important;
    right:14px!important;
    bottom:auto!important;
    left:auto!important;
  }
}


/* Give the Honda CR-V the same dark under-car grounding shadow as the Camry. */
.single-car-list-item .car-image:has(img[src*="honda-crv"]){
  position:relative;
  isolation:isolate;
}
.single-car-list-item .car-image:has(img[src*="honda-crv"])::after{
  content:"";
  position:absolute;
  left:22%;
  right:22%;
  bottom:84px;
  height:16px;
  border-radius:50%;
  background:rgba(5,11,32,.52);
  filter:blur(8px);
  z-index:2;
  pointer-events:none;
}
.single-car-list-item .car-image:has(img[src*="honda-crv"]) img{
  position:relative;
  z-index:1;
}

/* Keep vehicle search quick on narrow screens. */
.cm-filter-toggle{display:none}
@media(max-width:767px){
  .cm-inventory-tools .cm-filter-row select{display:none!important}
  .cm-inventory-tools.filters-open .cm-filter-row select{display:block!important}
  .cm-inventory-tools .cm-filter-submit,.cm-inventory-tools .cm-text-button{display:none!important}
  .cm-inventory-tools.filters-open .cm-text-button{display:block!important}
  .cm-inventory-tools .cm-filter-toggle{display:block;width:100%;min-height:46px;border:1px solid #d9dce3;border-radius:7px;background:#fff;color:#07153d;font-size:16px;font-weight:700;cursor:pointer;text-align:center}
}

.cm-buyer-dialog .cm-open-page{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;border:1px solid #d9dce3;border-radius:7px;padding:11px 15px;color:#07153d;background:#fff;text-decoration:none;font-weight:700}.cm-buyer-dialog .cm-open-page:hover{border-color:#ff3600;color:#d92e00}@media(max-width:650px){.cm-buyer-dialog .cm-buyer-head{display:block}.cm-buyer-dialog .cm-open-page{margin-top:16px;width:100%}}

/* Buying Center forms and calculator appear above the page in a native dialog. */
.cm-tool-dialog{width:min(940px,calc(100vw - 28px));max-width:calc(100vw - 28px);max-height:calc(100vh - 32px);overflow:auto;border:0;border-radius:12px;padding:0;background:#fff;box-shadow:0 30px 80px rgba(0,0,0,.28)}
.cm-tool-dialog::backdrop{background:rgba(3,8,25,.72)}
.cm-tool-dialog .sale-panel-wrap{display:block!important;margin:0;border:0;border-radius:12px;box-shadow:none;scroll-margin:0}
.cm-tool-dialog .sale-panel-head{padding-right:44px}
.cm-tool-dialog .sale-close{position:absolute;right:22px;top:22px}
@media(max-width:650px){.cm-tool-dialog{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100vh - 20px)}.cm-tool-dialog .sale-close{right:14px;top:14px}.cm-tool-dialog .sale-panel-head{padding-right:42px}}

/* Keep shopping actions usable by touch and keyboard without changing card styling. */
.sale-stock-buttons a,.sale-stock-buttons button,.sale-compare-dock button,.cm-tool-dialog button,.cm-buyer-dialog button,.cm-modal button{min-height:44px}
.sale-save,.sale-close,.cm-modal-close,.cm-buyer-close{min-width:44px;min-height:44px}
.sale-stock-buttons a:focus-visible,.sale-stock-buttons button:focus-visible,.cm-tool-dialog :focus-visible,.cm-buyer-dialog :focus-visible,.cm-modal :focus-visible{outline:3px solid #ff3600;outline-offset:3px}
.cm-tool-dialog .sale-compare-table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
.cm-tool-dialog .sale-compare-table th,.cm-tool-dialog .sale-compare-table td{min-width:145px}
@media(max-width:767px){
 .cm-tool-dialog input,.cm-tool-dialog select,.cm-tool-dialog textarea,.cm-modal input,.cm-modal select,.cm-modal textarea{font-size:16px;min-height:44px}
 .cm-tool-dialog{max-height:calc(100dvh - 20px);overscroll-behavior:contain}
 .cm-buyer-dialog-panel,.cm-modal-dialog{max-height:calc(100dvh - 20px);overscroll-behavior:contain}
}
