/* Original source styles are preserved. These rules replace captured slider geometry
   and supply matching local static pages without changing the reference palette. */
html { overflow-x: hidden; }
body { margin: 0; }
[hidden] { display: none !important; }
img { max-width: 100%; }
#DWSHeaderNav .dws-logo-img { width: 300px; height: auto; max-height: 85px; object-fit: contain; }
#DWSHeaderNav #DWSHeaderBar .container { position: relative; }
#DWSHeaderNav #DWSHeaderRight { max-width: calc(100% - 320px); }
#DWSMainWrapper #DWSFooterArea .custom-logo { width: 300px; height: auto; object-fit: contain; }
.rova-hero { position: relative; width: 100%; aspect-ratio: 8 / 3; overflow: hidden; }
#DWS_Slider_Container_3 { visibility: visible !important; }
.rova-hero-slide { display: none; width: 100%; height: 100%; object-fit: cover; }
.rova-hero-slide.active { display: block; }
.rova-hero-prev, .rova-hero-next { position: absolute; top: 45%; border: none; color: #fff; background: rgba(0,0,0,.35); width: 42px; height: 54px; font: 42px/42px Arial,sans-serif; cursor: pointer; }
.rova-hero-prev { left: 15px; }
.rova-hero-next { right: 15px; }
.rova-hero-dots { position: absolute; bottom: 18px; left: 0; width: 100%; display: flex; justify-content: center; gap: 8px; }
.rova-hero-dots button { padding: 0; background: #111; width: 10px; height: 10px; border: 0; border-radius: 50%; cursor: pointer; }
.rova-hero-dots button.active { background: #fff; }
#DWS_Grid_Vehicle_Slider_4 { position: relative; }
.rova-featured-track { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; padding: 0; }
.rova-featured-track::-webkit-scrollbar { display: none; }
.rova-featured-card { flex: 0 0 calc((100% - 20px) / 3); width: auto !important; float: none !important; scroll-snap-align: start; }
.rova-featured-card .dws-vehicle-image { aspect-ratio: 4 / 3; }
.rova-featured-card img { width: 100%; height: 100%; object-fit: cover; }
.rova-featured-prev, .rova-featured-next { position: absolute; top: 40%; width: 30px; height: 45px; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 30px; z-index: 3; }
.rova-featured-prev { left: 0; } .rova-featured-next { right: 0; }
.vc_tta-panel:not(.vc_active) > .vc_tta-panel-body { display: none !important; }
.vc_tta-panel.vc_active > .vc_tta-panel-body { display: block !important; }
.vc_tta-panel-body { opacity: 1 !important; height: auto !important; }
.rova-modal-open { display: block !important; background: rgba(0,0,0,.6); overflow-y: auto; }
.modal .close { position: absolute; top: 12px; right: 15px; z-index: 5; }
.rova-page { padding-top: 35px; padding-bottom: 45px; min-height: 450px; }
.rova-page h1 { margin-top: 0; font-size: 32px; font-weight: 700; padding-bottom: 20px; border-bottom: 1px solid #ddd; }
.rova-page h2 { font-size: 25px; font-weight: 700; }
.rova-page h3 { font-size: 20px; font-weight: 700; }
.rova-page p { line-height: 1.8; }
.rova-page .form-control { border-radius: 0; height: 43px; }
.rova-page textarea.form-control { height: auto; min-height: 120px; }
.rova-page label { font-weight: 600; margin-top: 12px; }
.rova-page .btn { border-radius: 0; white-space: normal; }
.rova-form-note,.rova-snapshot-note { font-size: 12px; color: #666; margin: 14px 0; }
.rova-form-status { padding: 12px; background: #edf6f8; }
.rova-page .rova-hours { width: 100%; margin: 15px 0 25px; border-collapse: collapse; }
.rova-hours td,.rova-hours th { padding: 9px 0; border-bottom: 1px solid #eee; font-weight: 400; }
.rova-hours td:last-child { text-align: right; }
.rova-map { width: 100%; height: 350px; border: 0; margin: 25px 0; }
.rova-page .rova-contact-box { background: #f5f5f5; padding: 25px; margin-bottom: 25px; }
#inventory-filter { background: #f5f5f5; padding: 20px; margin-bottom: 25px; }
#inventory-filter .btn { margin-top: 15px; }
#inventory-results { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin: 15px 0; }
#inventory-results::before, #inventory-results::after { display: none; content: none; }
.rova-vehicle { border: 1px solid #ddd; background: #fff; position: relative; min-width: 0; width: auto !important; float: none !important; padding: 0; }
.rova-vehicle .thumbnail { margin: 0; border: 0; }
.rova-vehicle img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.rova-vehicle .rova-card-body,.rova-vehicle .vehicle-details { padding: 16px; }
.rova-vehicle h2,.rova-vehicle h3 { font-size: 18px; margin: 10px 0; min-height: 40px; }
.rova-vehicle p { margin: 3px 0; font-size: 13px; }
.rova-vehicle .rova-price { font-size: 22px; font-weight: bold; color: #005e80; }
.rova-vehicle .rova-sold { font-weight: bold; color: #b13329; }
.rova-vehicle .btn { margin-top: 12px; }
.rova-compare-label { display: block; margin: 10px 14px; font-size: 12px; }
.rova-comparison .modal-content { padding: 28px; }
.rova-comparison-body { display: flex; gap: 20px; overflow-x: auto; }
.rova-comparison-body section { flex: 1; min-width: 200px; }
.rova-comparison-body img { width: 100%; }
.rova-comparison-body h3 { font-size: 18px; }
.rova-gallery-image { width: 100%; height: auto; margin-bottom: 20px; }
.rova-detail-facts { width: 100%; margin: 20px 0; }
.rova-detail-facts th,.rova-detail-facts td { padding: 10px; border-bottom: 1px solid #ddd; }
.rova-detail-facts th { font-weight: 600; }
@media (max-width: 991px) {
  #DWSHeaderNav #DWSHeaderRight { max-width: calc(100% - 260px); }
  #DWSHeaderNav .dws-logo-img { width: 240px; }
  #inventory-results { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 767px) {
  #DWSHeaderNav #DWSHeaderRight { max-width: 100%; float: none !important; clear: both; width: 100%; }
  #DWSHeaderNav #DWSHeaderRight > .pull-right { float: none !important; text-align: center; }
  #DWSHeaderNav .dws-logo-img { width: 230px; max-height: 65px; }
  #DWSHeaderNav .navbar-brand { max-width: 80%; }
  #DWSHeaderBar .navbar-toggle { margin-top: 14px; }
  .rova-hero-prev,.rova-hero-next { top: 30%; width: 25px; height: 38px; font-size: 30px; line-height: 30px; }
  .rova-hero-prev { left: 5px; } .rova-hero-next { right: 5px; }
  .rova-hero-dots { bottom: 8px; }
  .rova-featured-card { flex-basis: calc((100% - 10px) / 2); }
  .vc_custom_heading[style*="39px"] { font-size: 28px !important; }
  .rova-page h1 { font-size: 27px; }
  .rova-map { height: 280px; }
  #inventory-results { grid-template-columns: 1fr; }
  #DWSFooterArea a[href^="mailto:"] { overflow-wrap: anywhere; }
}
@media (max-width: 480px) {
  .rova-featured-card { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* Final customer-facing refinements. */
#DWSHeaderNav #DWSHeaderRight > .pull-right { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 18px; }
#DWSHeaderNav #DWSHeaderRight .dws-widget-container { margin: 0; }
#DWSHeaderNav .dws-header-contact { white-space: nowrap; }
#DWSHeaderNav .dws-contact-label { display: block; }
#DWSHeaderNav .dws-contact-label a { font-weight: 600; }
.rova-page .page-header { margin: 0 0 25px; padding: 0; border: 0; }
.rova-page .page-header h1 { margin: 0; padding-bottom: 20px; }
.rova-filter-toggle { display: none; }
.rova-inventory-toolbar { margin: 10px 0 20px; }
.rova-gallery-image { border: 1px solid #eee; }
.rova-page .help-block { font-size: 13px; line-height: 1.65; }
.rova-page .rova-contact-form { margin-bottom: 25px; }
.rova-page .rova-map { height: auto; }
.rova-page .rova-map iframe { display: block; border: 0; width: 100%; }
#DWSFooterArea #text-5 { font-size: 12px; line-height: 1.7; font-weight: 400; padding-top: 20px; opacity: .85; }
#DWSFooterArea #text-5 p { margin-bottom: 0; }
#DWSFooterArea .dws-dealer-information-contact-number ul { margin-bottom: 8px; }
#DWSFooterArea .dws-dealer-information a[href^="mailto:"] { font-size: 13px; }
@media (max-width: 767px) {
  #DWSHeaderNav #DWSHeaderRight > .pull-right { justify-content: flex-start; column-gap: 18px; row-gap: 12px; padding-top: 12px; padding-bottom: 15px; }
  #DWSHeaderNav #DWSHeaderRight .widget_dws_address_widget { width: 100%; text-align: left; }
  #DWSHeaderNav #DWSHeaderRight .dws-header-address { text-align: left; }
  #DWSHeaderNav #DWSHeaderRight .dws-address { font-size: 13px; }
  #DWSHeaderNav #DWSHeaderRight .dws-header-contact { text-align: left; margin: 0; }
  #DWSHeaderNav #DWSHeaderRight .dws-contact-label { font-size: 13px; }
  #DWSHeaderNav #DWSHeaderRight .dws-contact-label a { font-size: 17px; }
  #DWSHeaderNav #DWSHeaderRight .dws-circle-icon { width: 34px; height: 34px; line-height: 34px; font-size: 17px; margin: 0 5px 0 0; }
  .rova-page { padding-top: 24px; padding-bottom: 30px; }
  .rova-page .page-header { margin-bottom: 22px; }
  .rova-page .page-header h1 { font-size: 26px; padding-bottom: 16px; }
  .rova-filter > h2 { display: none; }
  .rova-filter-toggle { display: block; width: 100%; min-height: 44px; text-align: left; margin: 0 0 16px; border-color: #ccc; }
  .rova-filter-toggle::after { content: '+'; float: right; font-size: 18px; line-height: 20px; }
  .rova-filter-toggle[aria-expanded="true"]::after { content: '−'; }
  .rova-filter > p { display: none; }
  #inventory-filter { margin-bottom: 20px; }
  .rova-inventory-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 0; }
  .rova-inventory-toolbar > p { margin-bottom: 0; white-space: nowrap; }
  .rova-inventory-toolbar .btn { font-size: 12px; padding: 9px 12px; }
  #DWSFooterArea #text-5 { text-align: left; }
}

/* Subpages do not have a hero for the original overlay navigation to sit on. */
body:not([data-rova-page="home"]) #DWSHeaderNav #DWSMainNavBar { position: relative !important; top: auto !important; left: auto !important; right: auto !important; }

/* Phone typography and touch refinements, scoped to preserve desktop layout. */
@media (max-width: 767px) {
  body[data-rova-page="home"] h1.vc_custom_heading {
    font-size: clamp(14px, 5vw, 28px) !important;
    line-height: 1.25;
    white-space: nowrap;
    letter-spacing: -.02em;
    margin-top: 12px;
    margin-bottom: 12px;
  }
  .rova-page input.form-control, .rova-page select.form-control, .rova-page textarea.form-control,
  .dws-quick-search-horizontal input, .dws-quick-search-horizontal select { font-size: 16px; }
  .rova-page .btn, .navbar-toggle { min-height: 44px; }
  .rova-hero-prev, .rova-hero-next { width: 36px; height: 44px; line-height: 40px; font-size: 32px; top: 50%; transform: translateY(-50%); }
  .rova-hero-dots { bottom: 4px; gap: 0; }
  .rova-hero-dots button { width: 24px; height: 24px; background: transparent; border-radius: 0; position: relative; }
  .rova-hero-dots button::after { content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #333; left: 8px; top: 8px; }
  .rova-hero-dots button.active { background: transparent; }
  .rova-hero-dots button.active::after { background: #fff; }
}

@media (max-width: 767px) {
  #DWSSearchBoxModal input { font-size: 16px; }
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-vehicle-details { padding: 16px 12px 18px; }
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-grid-ymm,
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-price-tag,
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-grid-milage,
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-grid-stock { display: block; }
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-grid-ymm { font-size: 16px; line-height: 1.4; margin-bottom: 10px; }
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-price-tag { font-size: 20px; margin: 8px 0; }
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-vehicle-sold-label strong { display: inline-block; background: #c33c35; color: #fff; padding: 4px 8px; font-size: 12px; line-height: 1.4; }
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-grid-milage,
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .dws-grid-stock { font-size: 13px; line-height: 1.6; margin: 3px 0; }
  #DWS_Grid_Vehicle_Slider_4 .rova-featured-card .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 100px; margin-top: 12px; }
}
