
.inputs-grande-search .select2-container .select2-selection--single {
  height: 42px;
}
.inputs-grande-search .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #444;
  line-height: 42px;
}
.inputs-grande-search .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: #e60028;
  padding-left: 3px;
  font-size: 14px;
}
.inputs-grande-search .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 34px;
  top: 5px;
}

.inputs-grande-search .select2-container {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  font-size: 13px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border-radius: 4px;
}

.inputs-grande-search .select2-container .select2-container--default.select2-container--focus .select2-selection--multiple {
  border: none;
}

.inputs-grande-search .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 45px 0 0;
  width: 100%;
  height: auto!important;
  background-color: transparent;
  cursor: text;
  column-count: auto;
}
.inputs-grande-search .select2-container--default .select2-selection--multiple .select2-selection__rendered li {
  background: #ffffff;
  font-size: 15px;
}

.inputs-grande-search .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-search {
  margin: -40px 0 0 0;
  white-space: nowrap;
  width: 100%;
  position: absolute;
  padding: 2px 5px;
  z-index: 0;
  height: 40px;
  border-radius: 4px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  border: 1px solid #ced4da;
}

.inputs-grande-search .select2-container--default .select2-selection--multiple .select2-selection__rendered li.select2-selection__choice {
  position: relative;
  margin: 3px 5px 3px 0;
  padding: 6px 27px 6px 7px;
  max-width: 100%;
  border-radius: 3px;
  background-color: #e60028;
  color: #fff;
  line-height: 11px;
  cursor: default;
  font-size: 12px;
  display: grid;
}

.inputs-grande-search .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: absolute;
  top: 7px;
  display: block;
  width: 100%;
  text-align: right;
  height: 22px;
  padding-right: 10px;
}

.inputs-grande-search .select2-container--default .select2-selection--multiple {
  background-color: transparent;
  border: none;
  cursor: text;
  display: contents;
}

.inputs-grande-search .select2-container--default .select2-search--inline .select2-search__field {
  width: 100% !important;
  height: 37px;
  padding-left: 6px;
}

.select2-container--open .select2-dropdown {
  top: -9px;
}

.text-box div {
  width: 70%;
}

.cars-section-four.v1 .boxcar-title-three h1 {
  white-space: nowrap;
  text-overflow: ellipsis; 
  overflow: hidden;
  width: 90%;
  font-size: 17px;
}

.ye-badge, .mo-badge {
    background-color: rgb(220, 220, 233);
    padding: 8px 10px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    gap: 4px;
    border-radius: 5px;
    font-size: 12px;
}

.ye-badge:hover, .mo-badge:hover {
    background-color: #e0e0e0;
}

.ye-badge.active-badge, .mo-badge.active-badge {
    background-color: #e60028; /* Cor de destaque */
    color: #fff;
}

/* =========================================================
   Sidebar de filtros no DESKTOP — totalmente aberto e visível.
   Sem position:fixed (que sobrepunha o rodapé) e SEM max-height/
   overflow (que cortava o formulário). Fica no fluxo normal da
   coluna, então rola junto com a página e nunca invade o rodapé.
   ========================================================= */
@media (min-width: 1200px) {
  .fixed-page-listing {
    position: static;
    max-height: none;
    overflow: visible;
    align-self: flex-start;   /* não estica para a altura da coluna de resultados */
  }
  /* IMPORTANTE: NÃO mexer no overflow do .inventroy-widget.
     Ele precisa de overflow:hidden para manter o painel ".slide-sub"
     ("Outras marcas") escondido fora da caixa até clicar em .form-toggle
     (que o desliza lateralmente para left:0). O padding-bottom reserva
     espaço para o dropdown do select2. */
  .cars-section-four .row {
    align-items: flex-start;
  }
}

/* =========================================================
   Ajustes do formulário de busca no MOBILE (< 1200px)
   ========================================================= */
@media (max-width: 1199px) {
  /* o sidebar não pode ficar sticky/cortado no mobile */
  .fixed-page-listing {
    position: static;
    max-height: none;
    overflow: visible;
  }
  /* form ocupa toda a largura e respira */
  #form-sidebar {
    width: 100%;
  }
  #form-sidebar .form-group { margin-bottom: 12px; }
  /* botão "Mostrar filtros" com aparência clicável de bloco */
  .wrap-sidebar-dk .sidebar-handle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: 1px solid #e60028;
    border-radius: 8px;
    cursor: pointer;
    user-select: none;
  }
  /* evita que os selects (marca/modelo/loja) estourem a largura no mobile */
  .inputs-grande-search,
  .inputs-grande-search .select2-container {
    max-width: 100%;
  }
}

/* o botão de filtros não deve aparecer no desktop */
@media (min-width: 1200px) {
  .wrap-sidebar-dk .sidebar-handle { display: none; }
}