/* RCD Customer App -> Web parity: Car Listing
 * Source of truth: Flutter Customer 1.1.24+89
 */
:root{
  --app-primary:#0B4D3A;
  --app-primary-dark:#07392C;
  --app-primary-bright:#146A4A;
  --app-green-surface:#E7F0EF;
  --app-green-surface-strong:#D7E9E4;
  --app-gold:#E7D8B5;
  --app-gold-soft:#FFF5E3;
  --app-text:#17211D;
  --app-muted:#6C756F;
  --app-border:#E3E9E5;
  --app-bg:#FAFBF9;
  --app-error:#B42318;
  --app-success:#067647;
}
body.rcd-search-page-shell{
  background:var(--app-bg)!important;
  color:var(--app-text)!important;
}
/* The Flutter results screen starts at the app bar. No marketing hero. */
body.rcd-search-page-shell .rcd-home-hero-scene.rcd-search-home-clone{
  display:none!important;
}
body.rcd-search-page-shell .rcd-app-search-header{
  width:min(1080px,calc(100% - 32px));
  min-height:72px;
  margin:18px auto 0;
  padding:10px 4px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr) 44px;
  align-items:center;
  gap:10px;
  background:#fff;
  border:1px solid var(--app-border);
  border-radius:18px;
}
.rcd-app-search-icon-button{
  width:42px;height:42px;display:grid;place-items:center;
  border:0;border-radius:999px;background:#fff;color:var(--app-primary);
  cursor:pointer;
}
.rcd-app-search-icon-button:hover{background:var(--app-green-surface)}
.rcd-app-search-icon-button .crs-icon{width:20px;height:20px}
.rcd-app-search-title{
  min-width:0;text-align:center;display:grid;gap:2px;justify-items:center
}
.rcd-app-search-title strong{
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--app-text);font-size:17px;font-weight:900;line-height:1.2
}
.rcd-app-search-title small{
  max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
  color:var(--app-muted);font-size:10px;font-weight:500;line-height:1.3
}
body.rcd-search-page-shell .crs-search-page.rcd-app-search-page{
  width:min(1080px,calc(100% - 32px))!important;
  max-width:none!important;
  margin:0 auto!important;
  padding:12px 0 48px!important;
}
.rcd-app-search-controls{
  display:grid;grid-template-columns:1fr 1fr;gap:10px;
  padding:10px 0 12px;background:#fff
}
.rcd-app-action-button{
  min-height:43px!important;height:43px!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;
  padding:0 14px!important;
  border:1px solid var(--app-border)!important;border-radius:999px!important;
  background:#fff!important;color:var(--app-text)!important;
  box-shadow:none!important;font-size:12px!important;font-weight:800!important;
}
.rcd-app-action-button .crs-icon{width:18px;height:18px;color:var(--app-primary)}
.rcd-app-sort-control{position:relative;overflow:hidden;cursor:pointer}
.rcd-app-sort-control select{
  width:auto!important;max-width:calc(100% - 28px)!important;height:41px!important;min-height:41px!important;
  padding:0 26px 0 0!important;margin:0!important;
  border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;
  color:var(--app-text)!important;font:inherit!important;font-weight:800!important;cursor:pointer!important;
  appearance:auto!important;
}
html[dir=rtl] .rcd-app-sort-control select{padding:0 0 0 26px!important}
.rcd-app-category-strip,
.rcd-app-brand-strip{
  display:flex;align-items:center;gap:8px;overflow-x:auto;
  padding:0 0 10px;scrollbar-width:none;overscroll-behavior-inline:contain
}
.rcd-app-category-strip::-webkit-scrollbar,
.rcd-app-brand-strip::-webkit-scrollbar{display:none}
.rcd-app-choice-chip{
  flex:0 0 auto;min-height:38px;padding:6px 12px;
  border:1px solid var(--app-border);border-radius:999px;
  background:#fff;color:var(--app-text);
  font:inherit;font-size:12px;font-weight:800;cursor:pointer
}
.rcd-app-choice-chip.is-selected{
  border-color:var(--app-primary);background:var(--app-primary);color:#fff
}
.rcd-app-brand-chip{
  flex:0 0 52px;width:52px;height:52px;padding:7px;
  display:grid;place-items:center;
  border:1px solid var(--app-border);border-radius:14px;background:#fff;cursor:pointer
}
.rcd-app-brand-chip.is-selected{
  border:1.5px solid var(--app-primary);background:var(--app-green-surface-strong)
}
.rcd-app-brand-chip img{width:100%;height:100%;object-fit:contain}
.rcd-app-brand-chip--all{
  width:auto;flex-basis:auto;min-width:52px;padding-inline:12px;
  color:var(--app-text);font-size:12px;font-weight:800
}
/* Native Customer Build 89 filter route: full-screen, not a drawer. */
body.rcd-search-page-shell .crs-search-layout{
  display:block!important;
}
body.rcd-search-page-shell .crs-filter-sidebar{
  position:fixed!important;
  z-index:2200!important;
  inset:0!important;
  width:100vw!important;
  min-width:0!important;
  max-width:none!important;
  height:100dvh!important;
  max-height:none!important;
  overflow:hidden!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:#fff!important;
  box-shadow:none!important;
  transform:translateY(102%)!important;
  transition:transform .22s ease!important;
  display:flex!important;
  flex-direction:column!important;
}
body.rcd-search-page-shell .crs-filter-sidebar.is-open{
  transform:translateY(0)!important
}
body.rcd-search-page-shell .crs-filter-overlay{
  position:fixed!important;
  z-index:2100!important;
  inset:0!important;
  background:#fff!important
}
body.rcd-search-page-shell .crs-filter-overlay[hidden]{display:none!important}
body.crs-filter-open{overflow:hidden!important}
body.rcd-search-page-shell .crs-filter-sidebar__head{
  position:sticky!important;
  top:0!important;
  z-index:5!important;
  width:100%!important;
  min-height:64px!important;
  margin:0!important;
  padding:8px 16px!important;
  display:grid!important;
  grid-template-columns:44px minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:10px!important;
  border:0!important;
  border-bottom:1px solid var(--app-border)!important;
  border-radius:0!important;
  background:#fff!important;
  color:var(--app-text)!important;
  box-shadow:none!important;
}
body.rcd-search-page-shell .crs-filter-sidebar__head>strong{
  justify-self:center!important;
  color:var(--app-text)!important;
  font-size:17px!important;
  font-weight:900!important;
  line-height:1.2!important;
}
body.rcd-search-page-shell .crs-filter-close{
  width:42px!important;
  height:42px!important;
  display:grid!important;
  place-items:center!important;
  border:0!important;
  border-radius:999px!important;
  background:transparent!important;
  color:var(--app-primary)!important;
  font-size:25px!important;
  line-height:1!important;
  cursor:pointer!important;
}
body.rcd-search-page-shell .crs-filter-close:hover{background:var(--app-green-surface)!important}
.rcd-app-filter-reset-top{
  min-height:40px;
  padding:0 4px;
  border:0;
  background:transparent;
  color:var(--app-primary);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
body.rcd-search-page-shell .crs-filter-form{
  width:min(720px,calc(100% - 32px))!important;
  flex:1 1 auto!important;
  overflow-y:auto!important;
  margin:0 auto!important;
  padding:8px 0 28px!important;
  display:block!important;
  overscroll-behavior:contain!important;
}
body.rcd-search-page-shell .crs-filter-section,
body.rcd-search-page-shell .crs-filter-group{
  margin:0 0 10px!important;
  padding:0!important;
  border:1px solid var(--app-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:none!important;
}
body.rcd-search-page-shell .crs-filter-section{
  padding:14px!important
}
body.rcd-search-page-shell .crs-filter-section h2{
  margin:0 0 12px!important;
  color:var(--app-text)!important;
  font-size:14px!important;
  font-weight:900!important;
}
body.rcd-search-page-shell .crs-filter-group>summary{
  min-height:52px!important;
  padding:14px!important;
  color:var(--app-text)!important;
  font-size:13px!important;
  font-weight:800!important;
}
body.rcd-search-page-shell .crs-filter-group__body{
  padding:2px 14px 14px!important
}
body.rcd-search-page-shell .crs-filter-sidebar .field{
  gap:7px!important;
  margin-bottom:10px!important
}
body.rcd-search-page-shell .crs-filter-sidebar .field label{
  color:var(--app-text)!important;
  font-size:12px!important;
  font-weight:800!important
}
body.rcd-search-page-shell .crs-filter-sidebar input:not([type="checkbox"]):not([type="range"]):not([type="hidden"]),
body.rcd-search-page-shell .crs-filter-sidebar select{
  min-height:48px!important;
  padding-inline:13px!important;
  border:1px solid var(--app-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--app-text)!important;
  font-size:12px!important;
  box-shadow:none!important;
}
body.rcd-search-page-shell .crs-filter-choice{
  min-height:38px!important;
  border-radius:999px!important;
}
body.rcd-search-page-shell .crs-filter-actions{
  position:sticky!important;
  bottom:0!important;
  z-index:4!important;
  display:block!important;
  margin:16px 0 -28px!important;
  padding:12px 0 16px!important;
  border:0!important;
  border-top:1px solid var(--app-border)!important;
  border-radius:0!important;
  background:rgba(255,255,255,.98)!important;
  box-shadow:none!important;
  backdrop-filter:blur(10px)!important;
}
body.rcd-search-page-shell .crs-filter-actions .btn{
  width:100%!important;
  min-height:50px!important;
  justify-content:center!important;
  border-radius:12px!important;
}
body.rcd-search-page-shell .crs-filter-actions #resetFilters{
  display:none!important
}
body.rcd-search-page-shell .crs-filter-actions button[type="submit"]{
  display:flex!important;
  background:var(--app-primary)!important;
  color:#fff!important;
}
body.rcd-search-page-shell .crs-duration-pricing-note{
  margin:10px 0 0!important;
  padding:10px 12px!important;
  border:0!important;
  border-radius:12px!important;
  background:var(--app-green-surface)!important;
  color:var(--app-muted)!important;
  font-size:11px!important;
  line-height:1.55!important;
}
@media(max-width:760px){
  body.rcd-search-page-shell .crs-filter-form{
    width:calc(100% - 20px)!important
  }
}

/* Result count row matches the Flutter list header. */
body.rcd-search-page-shell .crs-search-results{
  width:100%!important;max-width:1080px!important;margin:0 auto!important
}
body.rcd-search-page-shell .crs-results-toolbar.rcd-results-overview{
  min-height:42px!important;margin:3px 0 8px!important;padding:0 2px!important;
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important
}
body.rcd-search-page-shell .rcd-results-availability{
  margin:0!important;color:var(--app-muted)!important;font-size:13px!important;font-weight:700!important
}
.rcd-app-edit-search{
  display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 9px;
  border:0;border-radius:10px;background:transparent;color:var(--app-primary);
  font:inherit;font-size:12px;font-weight:800;cursor:pointer
}
.rcd-app-edit-search .crs-icon{width:18px;height:18px}
body.rcd-search-page-shell .crs-active-filters{margin-bottom:8px!important}
body.rcd-search-page-shell .crs-results-grid{
  display:grid!important;grid-template-columns:1fr!important;gap:11px!important
}
/* Exact VehicleCard geometry from Flutter: 12px padding, 42/58 split, 172px content. */
body.rcd-search-page-shell #results .rcd-app-vehicle-card{
  min-height:196px!important;
  padding:12px!important;
  display:grid!important;grid-template-columns:minmax(0,42fr) minmax(0,58fr)!important;gap:13px!important;
  overflow:hidden!important;
  border:1px solid var(--app-border)!important;border-radius:18px!important;
  background:#fff!important;box-shadow:none!important;cursor:pointer!important
}
body.rcd-search-page-shell #results .rcd-app-vehicle-card.is-unavailable{
  background:#F0F1F1!important
}
body.rcd-search-page-shell #results .rcd-app-card-visual{
  position:relative!important;min-width:0!important;height:172px!important;overflow:hidden!important;
  border-radius:14px!important;background:var(--app-green-surface)!important
}
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery,
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__slides,
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__slide{
  width:100%!important;height:100%!important
}
body.rcd-search-page-shell #results .rcd-app-card-visual img{
  width:100%!important;height:100%!important;object-fit:cover!important
}
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__control{
  display:none!important
}
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__count{
  position:absolute!important;z-index:5!important;
  inset-inline-end:7px!important;bottom:7px!important;
  padding:4px 7px!important;border:0!important;border-radius:999px!important;
  background:rgba(7,57,44,.82)!important;color:#fff!important;
  font-size:10px!important;font-weight:900!important;line-height:1.2!important
}
.rcd-app-image-badge{
  position:absolute;z-index:5;inset-inline-start:6px;bottom:6px;
  padding:5px 8px;border-radius:999px;background:rgba(7,57,44,.90);
  color:#fff;font-size:10px;font-weight:900;line-height:1.2
}
.rcd-app-image-badge--warning{
  inset-inline-start:auto;inset-inline-end:6px;background:var(--app-error)
}
body.rcd-search-page-shell #results .rcd-app-card-visual .rcd-favorite-button{
  position:absolute!important;z-index:6;top:5px!important;inset-inline-start:5px!important;
  width:34px!important;height:34px!important;min-width:34px!important;min-height:34px!important;
  padding:0!important;border:0!important;background:rgba(255,255,255,.94)!important;color:var(--app-muted)!important
}
body.rcd-search-page-shell #results .rcd-app-card-content{
  min-width:0;height:172px;display:flex;flex-direction:column;align-items:stretch
}
.rcd-app-card-title-row{display:flex;align-items:flex-start;gap:8px}
.rcd-app-card-title{
  flex:1;min-width:0;margin:0;color:var(--app-text);font-size:17px;font-weight:900;line-height:1.25
}
.rcd-app-featured-chip{
  flex:0 0 auto;padding:4px 7px;border-radius:999px;background:var(--app-gold-soft);
  color:#B7791F;font-size:10px;font-weight:800
}
.rcd-app-card-year{margin-top:1px;color:var(--app-muted);font-size:12px}
.rcd-app-availability{
  display:flex;align-items:center;gap:4px;margin-top:3px;
  color:var(--app-success);font-size:11px;font-weight:900;line-height:1.3
}
.rcd-app-availability.is-unavailable{color:var(--app-error)}
.rcd-app-availability .crs-icon{width:14px;height:14px;flex:0 0 14px}
.rcd-app-availability-link{
  margin-top:1px;width:max-content;border:0;background:transparent;color:var(--app-primary);
  font:inherit;font-size:10px;font-weight:900;text-decoration:underline;cursor:pointer
}
.rcd-app-supplier{
  display:flex;align-items:center;gap:4px;margin-top:3px;color:var(--app-success);
  font-size:12px;font-weight:800
}
.rcd-app-supplier .crs-icon{width:16px;height:16px}
.rcd-app-card-spacer{flex:1}
.rcd-app-city{
  display:flex;align-items:center;gap:3px;color:var(--app-muted);font-size:12px;min-width:0
}
.rcd-app-city .crs-icon{width:16px;height:16px;flex:0 0 16px}
.rcd-app-city span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rcd-app-price{
  display:flex;align-items:flex-end;gap:3px;margin-top:6px
}
.rcd-app-price strong{color:var(--app-primary);font-size:20px;font-weight:900;line-height:1.05}
.rcd-app-price small{color:var(--app-muted);font-size:11px;line-height:1.3}
.rcd-app-gold-line{
  align-self:flex-end;width:54px;height:3px;margin-top:3px;border-radius:999px;background:var(--app-gold)
}
/* Old listing/card visuals are no longer part of this screen. */
body.rcd-search-page-shell #results .car-card{display:none!important}
body.rcd-search-page-shell #results .rcd-app-vehicle-card{display:grid!important}
body.rcd-search-page-shell .crs-results-loading,
body.rcd-search-page-shell .crs-empty-results{
  border:1px solid var(--app-border)!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important
}
@media(min-width:901px){
  body.rcd-search-page-shell .crs-search-page.rcd-app-search-page{
    width:min(1240px,calc(100% - 32px))!important
  }
  body.rcd-search-page-shell .crs-search-layout{
    display:grid!important;
    grid-template-columns:310px minmax(0,1fr)!important;
    gap:18px!important;
    align-items:start!important
  }
  body.rcd-search-page-shell .crs-filter-sidebar{
    position:sticky!important;
    z-index:20!important;
    inset:auto!important;
    top:96px!important;
    width:310px!important;
    min-width:310px!important;
    max-width:310px!important;
    height:auto!important;
    max-height:calc(100vh - 112px)!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    margin:0!important;
    padding:10px!important;
    border:1px solid var(--app-border)!important;
    border-radius:18px!important;
    background:#fff!important;
    box-shadow:none!important;
    transform:none!important;
    transition:none!important;
    display:block!important;
    scrollbar-width:thin!important
  }
  body.rcd-search-page-shell .crs-filter-sidebar__head{
    position:sticky!important;
    top:-10px!important;
    min-height:58px!important;
    padding:8px 10px!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    border:0!important;
    border-bottom:1px solid var(--app-border)!important;
    background:#fff!important
  }
  body.rcd-search-page-shell .crs-filter-sidebar__head>strong{
    justify-self:start!important;
    font-size:15px!important
  }
  body.rcd-search-page-shell .crs-filter-close{
    display:none!important
  }
  body.rcd-search-page-shell .rcd-app-filter-reset-top{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    min-height:36px!important
  }
  body.rcd-search-page-shell .crs-filter-form{
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    overflow:visible!important;
    margin:0!important;
    padding:8px 0 0!important
  }
  body.rcd-search-page-shell .crs-filter-section,
  body.rcd-search-page-shell .crs-filter-group{
    margin-bottom:8px!important;
    border-radius:13px!important
  }
  body.rcd-search-page-shell .crs-filter-actions{
    position:sticky!important;
    bottom:-10px!important;
    margin:8px -10px -10px!important;
    padding:10px!important;
    background:#fff!important;
    border-top:1px solid var(--app-border)!important;
    z-index:4!important
  }
  body.rcd-search-page-shell .rcd-app-search-controls{
    grid-template-columns:1fr!important
  }
  body.rcd-search-page-shell #mobileFilterToggle{
    display:none!important
  }
  body.rcd-search-page-shell .rcd-app-sort-control{
    max-width:280px!important;
    justify-self:end!important
  }
  body.rcd-search-page-shell .crs-search-results{
    width:100%!important;
    max-width:none!important
  }
  body.rcd-search-page-shell .crs-results-grid{
    grid-template-columns:1fr!important
  }
  body.rcd-search-page-shell #results .rcd-app-vehicle-card{
    min-height:220px!important;
    grid-template-columns:minmax(300px,42fr) minmax(0,58fr)!important;
    gap:16px!important
  }
  body.rcd-search-page-shell #results .rcd-app-card-visual,
  body.rcd-search-page-shell #results .rcd-app-card-content{
    height:196px!important
  }
}
@media(max-width:900px){
  body.rcd-search-page-shell .crs-results-grid{
    grid-template-columns:1fr!important
  }
}
@media(max-width:760px){
  body.rcd-search-page-shell .rcd-app-search-header,
  body.rcd-search-page-shell .crs-search-page.rcd-app-search-page{
    width:calc(100% - 20px)!important
  }
  body.rcd-search-page-shell .rcd-app-search-header{margin-top:10px}
  body.rcd-search-page-shell .crs-search-page.rcd-app-search-page{padding-top:8px!important}
  body.rcd-search-page-shell #results .rcd-app-vehicle-card{
    grid-template-columns:minmax(0,42fr) minmax(0,58fr)!important;
    gap:10px!important;padding:10px!important;min-height:190px!important
  }
  body.rcd-search-page-shell #results .rcd-app-card-visual,
  body.rcd-search-page-shell #results .rcd-app-card-content{height:168px!important}
}
@media(max-width:470px){
  .rcd-app-card-title{font-size:15px}
  .rcd-app-price strong{font-size:18px}
  .rcd-app-supplier{font-size:10.5px}
  .rcd-app-card-year,.rcd-app-city{font-size:11px}
}


/* Compact result actions: sort lives with the result count, never as a full-width row. */
.rcd-results-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.rcd-results-sort{
  min-height:38px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 9px;
  border:1px solid var(--app-border);
  border-radius:10px;
  background:#fff;
  color:var(--app-primary);
}
.rcd-results-sort .crs-icon{
  width:17px;height:17px;flex:0 0 17px
}
.rcd-results-sort select{
  width:auto!important;
  min-width:120px!important;
  max-width:165px!important;
  min-height:36px!important;
  height:36px!important;
  padding:0 22px 0 0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:var(--app-text)!important;
  font:inherit!important;
  font-size:12px!important;
  font-weight:800!important;
}
html[dir=rtl] .rcd-results-sort select{
  padding:0 0 0 22px!important
}

/* Server-backed pagination. */
.rcd-search-pagination{
  margin:18px 0 4px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  flex-wrap:wrap;
}
.rcd-search-pagination[hidden]{display:none!important}
.rcd-pagination-button{
  min-width:38px;
  height:38px;
  padding:0 11px;
  border:1px solid var(--app-border);
  border-radius:10px;
  background:#fff;
  color:var(--app-text);
  font:inherit;
  font-size:12px;
  font-weight:800;
  cursor:pointer;
}
.rcd-pagination-button:hover:not(:disabled){
  border-color:var(--app-primary);
  color:var(--app-primary)
}
.rcd-pagination-button.is-active{
  border-color:var(--app-primary);
  background:var(--app-primary);
  color:#fff
}
.rcd-pagination-button:disabled{
  opacity:.42;
  cursor:not-allowed
}
.rcd-pagination-ellipsis{
  min-width:22px;
  text-align:center;
  color:var(--app-muted);
  font-weight:800
}

/* The removed large search-controls row must not reserve desktop whitespace. */
@media(min-width:901px){
  body.rcd-search-page-shell .rcd-app-search-controls{
    display:none!important
  }
}
@media(max-width:700px){
  body.rcd-search-page-shell .crs-results-toolbar.rcd-results-overview{
    align-items:flex-start!important;
    gap:8px!important
  }
  .rcd-results-actions{
    width:100%;
    justify-content:space-between
  }
  .rcd-results-sort{
    flex:1 1 auto
  }
  .rcd-results-sort select{
    max-width:none!important;
    flex:1 1 auto
  }
  .rcd-search-pagination{
    gap:5px
  }
  .rcd-pagination-button{
    min-width:34px;
    height:36px;
    padding:0 8px
  }
}


/* Compact dropdown filters requested for desktop/web. */
body.rcd-search-page-shell .crs-filter-section--select{
  padding:14px!important
}
body.rcd-search-page-shell .crs-filter-section--select .field{
  margin-bottom:10px!important
}
body.rcd-search-page-shell .crs-filter-section--select .field:last-child{
  margin-bottom:0!important
}
body.rcd-search-page-shell .crs-filter-section--select select{
  width:100%!important;
  min-height:46px!important;
  padding-inline:12px 36px!important;
  border:1px solid var(--app-border)!important;
  border-radius:13px!important;
  background:#fff!important;
  color:var(--app-text)!important;
  font-size:12px!important;
  font-weight:700!important;
  box-shadow:none!important;
  cursor:pointer!important
}

/* Desktop has no internal filter scrolling. The page itself scrolls. */
@media(min-width:901px){
  body.rcd-search-page-shell .crs-filter-sidebar{
    position:static!important;
    top:auto!important;
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
    scrollbar-width:auto!important
  }
  body.rcd-search-page-shell .crs-filter-sidebar__head{
    position:static!important;
    top:auto!important
  }
  body.rcd-search-page-shell .crs-filter-form{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important
  }
  body.rcd-search-page-shell .crs-filter-actions{
    position:static!important;
    bottom:auto!important
  }
}


/* Results action buttons: same visual language as the primary account button. */
body.rcd-search-page-shell .crs-results-toolbar.rcd-results-overview{
  min-height:58px!important;
  margin:4px 0 12px!important;
  padding:6px 0!important;
  align-items:center!important;
  gap:16px!important;
}
body.rcd-search-page-shell .rcd-results-availability{
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.35!important;
}
body.rcd-search-page-shell .rcd-results-actions{
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:10px!important;
  flex-wrap:nowrap!important;
}
body.rcd-search-page-shell .rcd-app-edit-search{
  min-height:46px!important;
  height:46px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid var(--app-primary)!important;
  border-radius:15px!important;
  background:var(--app-primary)!important;
  color:#fff!important;
  box-shadow:0 8px 18px rgba(11,77,58,.14)!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
}
body.rcd-search-page-shell .rcd-app-edit-search:hover{
  background:var(--app-primary-dark)!important;
  border-color:var(--app-primary-dark)!important;
}
body.rcd-search-page-shell .rcd-app-edit-search .crs-icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  color:#fff!important;
}
body.rcd-search-page-shell .rcd-results-sort{
  min-height:46px!important;
  height:46px!important;
  padding:0 13px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:8px!important;
  border:1px solid #c8d9d0!important;
  border-radius:15px!important;
  background:#fff!important;
  color:var(--app-primary)!important;
  box-shadow:0 4px 12px rgba(11,77,58,.035)!important;
}
body.rcd-search-page-shell .rcd-results-sort:hover{
  border-color:#9fbeae!important;
}
body.rcd-search-page-shell .rcd-results-sort .crs-icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  color:var(--app-primary)!important;
}
body.rcd-search-page-shell .rcd-results-sort select{
  min-width:126px!important;
  max-width:170px!important;
  height:44px!important;
  min-height:44px!important;
  padding-block:0!important;
  border:0!important;
  background:transparent!important;
  color:var(--app-primary-dark)!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  cursor:pointer!important;
}
@media(max-width:700px){
  body.rcd-search-page-shell .crs-results-toolbar.rcd-results-overview{
    display:grid!important;
    grid-template-columns:1fr!important;
    align-items:start!important;
  }
  body.rcd-search-page-shell .rcd-results-actions{
    width:100%!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
  }
  body.rcd-search-page-shell .rcd-app-edit-search,
  body.rcd-search-page-shell .rcd-results-sort{
    width:100%!important;
  }
  body.rcd-search-page-shell .rcd-results-sort select{
    min-width:0!important;
    max-width:none!important;
    width:100%!important;
  }
}


/* Price slider: enforce RCD green across Chromium/WebKit/Firefox. */
body.rcd-search-page-shell .crs-filter-range{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:100%!important;
  height:22px!important;
  background:transparent!important;
  accent-color:var(--app-primary)!important;
}
body.rcd-search-page-shell .crs-filter-range::-webkit-slider-runnable-track{
  height:7px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--app-primary)!important;
  box-shadow:none!important;
}
body.rcd-search-page-shell .crs-filter-range::-webkit-slider-thumb{
  -webkit-appearance:none!important;
  width:24px!important;
  height:24px!important;
  margin-top:-8.5px!important;
  border:3px solid var(--app-primary)!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 8px rgba(11,77,58,.18)!important;
}
body.rcd-search-page-shell .crs-filter-range:focus-visible::-webkit-slider-thumb{
  box-shadow:0 0 0 4px rgba(11,77,58,.14)!important;
}
body.rcd-search-page-shell .crs-filter-range::-moz-range-track{
  height:7px!important;
  border:0!important;
  border-radius:999px!important;
  background:var(--app-primary)!important;
}
body.rcd-search-page-shell .crs-filter-range::-moz-range-progress{
  height:7px!important;
  border-radius:999px!important;
  background:var(--app-primary)!important;
}
body.rcd-search-page-shell .crs-filter-range::-moz-range-thumb{
  width:20px!important;
  height:20px!important;
  border:3px solid var(--app-primary)!important;
  border-radius:50%!important;
  background:#fff!important;
  box-shadow:0 2px 8px rgba(11,77,58,.18)!important;
}

/* Sort pill: refresh on the outer side, centered label, chevron on the inner side. */
body.rcd-search-page-shell .rcd-results-sort{
  position:relative!important;
  width:230px!important;
  min-width:230px!important;
  height:50px!important;
  min-height:50px!important;
  padding:0 16px!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr) 22px!important;
  align-items:center!important;
  column-gap:8px!important;
  border:1px solid #bcd4c8!important;
  border-radius:18px!important;
  background:#fff!important;
  color:var(--app-primary)!important;
  box-shadow:none!important;
}
body.rcd-search-page-shell .rcd-results-sort::after{
  content:""!important;
  width:9px!important;
  height:9px!important;
  border-inline-end:2px solid var(--app-primary-dark)!important;
  border-block-end:2px solid var(--app-primary-dark)!important;
  transform:rotate(45deg) translateY(-2px)!important;
  justify-self:center!important;
  align-self:center!important;
  pointer-events:none!important;
}
html[dir=rtl] body.rcd-search-page-shell .rcd-results-sort .crs-icon{
  grid-column:3!important;
  grid-row:1!important;
}
html[dir=rtl] body.rcd-search-page-shell .rcd-results-sort select{
  grid-column:2!important;
  grid-row:1!important;
}
html[dir=rtl] body.rcd-search-page-shell .rcd-results-sort::after{
  grid-column:1!important;
  grid-row:1!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort .crs-icon{
  grid-column:1!important;
  grid-row:1!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort select{
  grid-column:2!important;
  grid-row:1!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort::after{
  grid-column:3!important;
  grid-row:1!important;
}
body.rcd-search-page-shell .rcd-results-sort .crs-icon{
  width:20px!important;
  height:20px!important;
  color:var(--app-primary)!important;
}
body.rcd-search-page-shell .rcd-results-sort select{
  appearance:none!important;
  -webkit-appearance:none!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  height:48px!important;
  min-height:48px!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  outline:0!important;
  background:transparent!important;
  color:var(--app-primary-dark)!important;
  text-align:center!important;
  text-align-last:center!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  cursor:pointer!important;
}
body.rcd-search-page-shell .rcd-results-sort:focus-within{
  border-color:var(--app-primary)!important;
  box-shadow:0 0 0 3px rgba(11,77,58,.10)!important;
}

/* Search-page account button: center the label exactly inside the green pill. */
body.rcd-search-page-shell .site-header .crs-header-sign-in{
  height:46px!important;
  min-height:46px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border-radius:15px!important;
  line-height:1!important;
  text-align:center!important;
}
body.rcd-search-page-shell .site-header .crs-header-sign-in>span{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  line-height:1!important;
  transform:none!important;
  vertical-align:middle!important;
}


/* Final sort geometry: physical positions stay stable in RTL/LTR. */
body.rcd-search-page-shell .rcd-results-sort{
  direction:ltr!important;
}
body.rcd-search-page-shell .rcd-results-sort::after{
  width:7px!important;
  height:7px!important;
  border:0!important;
  border-right:2px solid var(--app-primary-dark)!important;
  border-bottom:2px solid var(--app-primary-dark)!important;
  transform:rotate(45deg) translate(-1px,-1px)!important;
  transform-origin:center!important;
}
html[dir=rtl] body.rcd-search-page-shell .rcd-results-sort .crs-icon{
  grid-column:3!important;
}
html[dir=rtl] body.rcd-search-page-shell .rcd-results-sort select{
  grid-column:2!important;
  direction:rtl!important;
  text-align:center!important;
  text-align-last:center!important;
}
html[dir=rtl] body.rcd-search-page-shell .rcd-results-sort::after{
  grid-column:1!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort .crs-icon{
  grid-column:1!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort select{
  grid-column:2!important;
  direction:ltr!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort::after{
  grid-column:3!important;
}


/* Hide the browser-native select arrow; use only the custom chevron. */
body.rcd-search-page-shell .rcd-results-sort select{
  appearance:none!important;
  -webkit-appearance:none!important;
  -moz-appearance:none!important;
  background-image:none!important;
  background-color:transparent!important;
}
body.rcd-search-page-shell .rcd-results-sort select::-ms-expand{
  display:none!important;
}


/* Custom sort control rebuilt from scratch. The native select is hidden. */
body.rcd-search-page-shell .rcd-results-sort{
  position:relative!important;
  width:230px!important;
  min-width:230px!important;
  height:50px!important;
  min-height:50px!important;
  padding:0!important;
  display:block!important;
  border:0!important;
  background:transparent!important;
  box-shadow:none!important;
  direction:ltr!important;
}
body.rcd-search-page-shell .rcd-results-sort::after{
  display:none!important;
  content:none!important;
}
body.rcd-search-page-shell .rcd-results-sort>select{
  display:none!important;
}
body.rcd-search-page-shell .rcd-results-sort-button{
  width:100%!important;
  height:50px!important;
  min-height:50px!important;
  padding:0 16px!important;
  display:grid!important;
  grid-template-columns:22px minmax(0,1fr) 22px!important;
  align-items:center!important;
  column-gap:8px!important;
  border:1px solid #bcd4c8!important;
  border-radius:18px!important;
  background:#fff!important;
  color:var(--app-primary-dark)!important;
  box-shadow:none!important;
  cursor:pointer!important;
  font:inherit!important;
}
body.rcd-search-page-shell .rcd-results-sort-button:hover{
  border-color:#9fbeae!important;
}
body.rcd-search-page-shell .rcd-results-sort-button:focus-visible{
  outline:0!important;
  border-color:var(--app-primary)!important;
  box-shadow:0 0 0 3px rgba(11,77,58,.10)!important;
}
body.rcd-search-page-shell .rcd-results-sort-label{
  grid-column:2!important;
  grid-row:1!important;
  justify-self:center!important;
  align-self:center!important;
  width:100%!important;
  text-align:center!important;
  color:var(--app-primary-dark)!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1!important;
  white-space:nowrap!important;
  direction:rtl!important;
}
body.rcd-search-page-shell .rcd-results-sort-refresh{
  grid-column:3!important;
  grid-row:1!important;
  width:20px!important;
  height:20px!important;
  justify-self:center!important;
  color:var(--app-primary)!important;
}
body.rcd-search-page-shell .rcd-results-sort-chevron{
  grid-column:1!important;
  grid-row:1!important;
  width:9px!important;
  height:9px!important;
  justify-self:center!important;
  border-right:2px solid var(--app-primary-dark)!important;
  border-bottom:2px solid var(--app-primary-dark)!important;
  transform:rotate(45deg) translate(-1px,-1px)!important;
  transform-origin:center!important;
}
body.rcd-search-page-shell .rcd-results-sort-menu{
  position:absolute!important;
  z-index:1000!important;
  top:calc(100% + 7px)!important;
  inset-inline:0!important;
  overflow:hidden!important;
  padding:6px!important;
  border:1px solid var(--app-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  box-shadow:0 14px 34px rgba(7,57,44,.13)!important;
}
body.rcd-search-page-shell .rcd-results-sort-menu[hidden]{
  display:none!important;
}
body.rcd-search-page-shell .rcd-results-sort-menu button{
  width:100%!important;
  min-height:42px!important;
  padding:8px 12px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:0!important;
  border-radius:10px!important;
  background:#fff!important;
  color:var(--app-text)!important;
  font:inherit!important;
  font-size:13px!important;
  font-weight:800!important;
  cursor:pointer!important;
  direction:rtl!important;
}
body.rcd-search-page-shell .rcd-results-sort-menu button:hover,
body.rcd-search-page-shell .rcd-results-sort-menu button.is-selected{
  background:var(--app-green-surface)!important;
  color:var(--app-primary)!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort-label,
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort-menu button{
  direction:ltr!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort-refresh{
  grid-column:1!important;
}
html[dir=ltr] body.rcd-search-page-shell .rcd-results-sort-chevron{
  grid-column:3!important;
}


/* Car listing gallery: square 1:1 images on every breakpoint. */
body.rcd-search-page-shell #results .rcd-app-card-visual{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1 / 1!important;
}
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery,
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__slides,
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__slide{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
}
body.rcd-search-page-shell #results .rcd-app-card-visual img,
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__slide{
  width:100%!important;
  height:100%!important;
  min-height:0!important;
  max-height:none!important;
  aspect-ratio:1 / 1!important;
  object-fit:cover!important;
  display:block!important;
}
body.rcd-search-page-shell #results .rcd-app-card-content{
  height:auto!important;
  min-height:0!important;
}
@media(min-width:901px){
  body.rcd-search-page-shell #results .rcd-app-card-visual,
  body.rcd-search-page-shell #results .rcd-app-card-content{
    height:auto!important;
  }
}
@media(max-width:760px){
  body.rcd-search-page-shell #results .rcd-app-card-visual,
  body.rcd-search-page-shell #results .rcd-app-card-content{
    height:auto!important;
  }
}


/* Gallery visibility: never let square-image rules reveal lazy hidden slides. */
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__slide[hidden]{
  display:none!important;
}
body.rcd-search-page-shell #results .rcd-app-card-visual .crs-search-vehicle-gallery__slide:not([hidden]){
  display:block!important;
}


/* Compact desktop vehicle card: preserve square media while removing dead space. */
@media(min-width:901px){
  body.rcd-search-page-shell #results .rcd-app-vehicle-card{
    min-height:0!important;
    padding:11px!important;
    grid-template-columns:minmax(280px,36%) minmax(0,64%)!important;
    gap:16px!important;
    align-items:stretch!important;
  }

  body.rcd-search-page-shell #results .rcd-app-card-visual{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:1 / 1!important;
    align-self:start!important;
  }

  body.rcd-search-page-shell #results .rcd-app-card-content{
    height:auto!important;
    min-height:0!important;
    padding:5px 4px!important;
    display:flex!important;
    flex-direction:column!important;
    justify-content:flex-start!important;
    align-items:stretch!important;
  }

  body.rcd-search-page-shell #results .rcd-app-card-title-row{
    margin:0!important;
    gap:7px!important;
  }

  body.rcd-search-page-shell #results .rcd-app-card-title{
    font-size:18px!important;
    line-height:1.22!important;
  }

  body.rcd-search-page-shell #results .rcd-app-card-year{
    margin-top:2px!important;
    font-size:12px!important;
    line-height:1.25!important;
  }

  body.rcd-search-page-shell #results .rcd-app-availability{
    margin-top:8px!important;
    font-size:12px!important;
    line-height:1.35!important;
  }

  body.rcd-search-page-shell #results .rcd-app-supplier{
    margin-top:5px!important;
    font-size:12px!important;
    line-height:1.35!important;
  }

  body.rcd-search-page-shell #results .rcd-app-card-spacer{
    display:none!important;
  }

  body.rcd-search-page-shell #results .rcd-app-city{
    margin-top:22px!important;
    font-size:12px!important;
    line-height:1.3!important;
  }

  body.rcd-search-page-shell #results .rcd-app-price{
    margin-top:8px!important;
    align-items:baseline!important;
    gap:5px!important;
  }

  body.rcd-search-page-shell #results .rcd-app-price strong{
    font-size:22px!important;
    line-height:1!important;
  }

  body.rcd-search-page-shell #results .rcd-app-price small{
    font-size:11px!important;
    line-height:1!important;
  }

  body.rcd-search-page-shell #results .rcd-app-gold-line{
    align-self:flex-start!important;
    width:48px!important;
    height:3px!important;
    margin-top:8px!important;
  }
}

@media(min-width:1200px){
  body.rcd-search-page-shell #results .rcd-app-vehicle-card{
    grid-template-columns:minmax(300px,35%) minmax(0,65%)!important;
  }
}


/* Final card balance v2: smaller square image, larger title, booking CTA. */
@media(min-width:901px){
  body.rcd-search-page-shell #results .rcd-app-vehicle-card{
    grid-template-columns:minmax(220px,31%) minmax(0,69%)!important;
    gap:18px!important;
  }
  body.rcd-search-page-shell #results .rcd-app-card-title{
    font-size:21px!important;
    line-height:1.18!important;
    font-weight:900!important;
  }
  body.rcd-search-page-shell #results .rcd-app-city{
    margin-top:14px!important;
  }
  body.rcd-search-page-shell #results .rcd-app-price{
    margin-top:7px!important;
  }
  body.rcd-search-page-shell #results .rcd-app-gold-line{
    margin-top:7px!important;
  }
}
@media(min-width:1200px){
  body.rcd-search-page-shell #results .rcd-app-vehicle-card{
    grid-template-columns:minmax(240px,29%) minmax(0,71%)!important;
  }
}
body.rcd-search-page-shell #results .rcd-app-book-now{
  align-self:flex-start!important;
  min-width:136px!important;
  min-height:42px!important;
  margin-top:14px!important;
  padding:0 18px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  border:1px solid var(--app-primary)!important;
  border-radius:12px!important;
  background:var(--app-primary)!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:13px!important;
  font-weight:900!important;
  line-height:1!important;
  box-shadow:0 6px 14px rgba(11,77,58,.12)!important;
  cursor:pointer!important;
}
body.rcd-search-page-shell #results .rcd-app-book-now:hover{
  background:var(--app-primary-dark)!important;
  border-color:var(--app-primary-dark)!important;
  color:#fff!important;
}
