/* FILTRO HOME */

#home-filter {
    position: relative;
    min-height: 150px;
    margin-top: 100px;
    z-index: 1;
    width: 26%;
    margin-left: 3%;
    margin-right: 1%;
    border-radius: 10px;
}

#home-filter .h4-black {
  color: var(--black);
}

.product_check { padding-top: 40px; padding-bottom: 40px;}

#home-filter .tabs {
    position: absolute;
    top: -65px;
    display: flex;
    justify-content: flex-start;
    width: 100%;
}

#home-filter .tabs .tab {
    display: flex;
    justify-content: space-around;
    align-content: center;
    align-items: center;
    width: 44%;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    background: #d71119;

    margin-right: 16px;
}

#home-filter .tabs .tab:hover {
    cursor: pointer;
}

#home-filter .tabs .tab.active {
    background-color: var(--black);
}

#home-filter .tabs .tab.active h3 {
    color: var(--white);
}

#home-filter .tabs .tab:hover img,
#home-filter .tabs .tab.active img {
  width: 35%
}

#home-filter .tabs .tab img {
    width: 30%;
    margin-top: -10px;
    transition: all 0.3s ease-in-out;
    -moz-transition: all 0.3s ease-in-out;
    -o-transition: all 0.3s ease-in-out;
}

#home-filter .tabs .tab h3 {
    text-transform: uppercase;
    color: #000;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px; /* 100% */
}

#home-filter .tabs-content {
  padding: 10%;
  z-index: 99;
  position: relative;
  border-radius: 10px;
  background: var(--black);
  background: linear-gradient(180deg, rgba(26,26,26,1) 0%, rgba(26,26,26,1) 31%, rgba(227,227,227,1) 31%, rgba(227,227,227,1) 100%);
}

#home-filter .tab-content {
    display: none;
    z-index: 99;
    position: relative;
}

#home-filter .tab-content.active {
    display: block;
}

#home-filter .tab-content .first-filter {
  position: relative;
  margin-bottom: 20px;
}

#loader {
  position: absolute;
  right: 15px;
  top: 50%;
  text-align: center;
}

#loader img {
  width: 20px;
  height: 20px;
}

#home-filter .tab-content form {

    min-height: 150px;
}

#home-filter h4 {
    color: #fff;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    line-height: 16px;
    margin-bottom: 8px;
}

#home-filter h4 img {
  margin-right: 5px;
}

#home-filter select,
#home-filter input[type="text"] {
    position: relative;
    width: 100%;
    height: 48px;
    border-radius: 6px;
    border: 2px solid #D9D9D9;
    background: #FFF;
    color: #000;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    padding: .375rem 1.75rem .375rem .75rem;
}

#home-filter select:hover {
    cursor: pointer;
}

#home-filter .custom-select-holder,
#home-filter .filter-plate {
    position: relative;
    margin-bottom: 15px;
}

#home-filter .filter-moto-text {
  position: relative;
}

#plate_search,
#moto_search {
  position: absolute;
  top: 43px;
  right: 19px;
}

#plate_search:hover,
#moto_search:hover {
  cursor: pointer;
}

#home-filter .custom-select-holder:after {
    position: absolute;
    right: 21px;
    top: 50%;
    transform: translateY(-50%);
    content: url(img/chevron_down.svg);
}

#home-filter .filter-submit > input {
    position: relative;
    width: 100%;
    height: 48px;
    background: var(--red);
    border-radius: 6px;
    border: 1px solid var(--red);
    margin-top: 26px;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 16px;
    color: var(--white);

}

#home-filter .filter-submit > input:hover {
    cursor: pointer;
}

#check_compat_msg { color: #FFF; padding:20px 0px; }

#accordion_models h5 {
    font-weight: bold;
}

#accordion_models .card-body p {
    padding: 10px;

}

/* Core styles/functionality */
.tab input {
  position: absolute;
  opacity: 0;
  z-index: -1;
}
.tab__content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.35s;
}
.tab input:checked ~ .tab__content {
  max-height: 10rem;
}

/* Visual styles */
.accordion {
  color: var(--theme);
  border: 2px solid;
  border-radius: 0.5rem;
  overflow: hidden;
}
.tab__label,
.tab__close {
  display: flex;
  color: white;
  background: var(--theme);
  cursor: pointer;
}
.tab__label {
  justify-content: space-between;
  padding: 1rem;
}
.tab__label::after {
  content: "\276F";
  width: 1em;
  height: 1em;
  text-align: center;
  transform: rotate(90deg);
  transition: all 0.35s;
}
.tab input:checked + .tab__label::after {
  transform: rotate(270deg);
}
.tab__content p {
  margin: 0;
  padding: 1rem;
}
.tab__close {
  justify-content: flex-end;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
}
.accordion--radio {
  --theme: var(--secondary);
}

/* Arrow animation */
.tab input:not(:checked) + .tab__label:hover::after {
  animation: bounce .5s infinite;
}
@keyframes bounce {
  25% {
    transform: rotate(90deg) translate(.25rem);
  }
  75% {
    transform: rotate(90deg) translate(-.25rem);
  }
}











/* HOME FILTER PRODUCT COMPATIBILITY */

#home-filter.compatibility {
  background-color: white;
  margin-top: 0;
}

#home-filter.compatibility .tab__label {
  color: var(--secondary);
}

#home-filter.compatibility h4 {
  margin-bottom: 0;
}

#home-filter.compatibility .filter-brand,
#home-filter.compatibility .filter-model,
#home-filter.compatibility .filter-year {
  margin-bottom: 20px;
}

#home-filter.compatibility #model_check_btn {
  width: 100%;
}

#home-filter.compatibility .accordion {
  border: none;
}

#home-filter.compatibility .accordion div .tab__label {
  font-weight: bold;
}

#home-filter.compatibility .accordion div:nth-child(odd) .tab__label {
  background-color: #d2d2d2;
}

#home-filter.compatibility .accordion div:nth-child(even) .tab__label {
  background-color: #e3e3e3;
}

#home-filter.compatibility .accordion input:checked ~ .tab__content {
  max-height: 1000vh;
  transition: all 1s;
}

#home-filter.compatibility .accordion .tab__content > p {
  padding-left: 30px;
}

#home-filter.compatibility .accordion .tab__content > p:last-child {
  margin-bottom: 10px;
}

#home-filter.compatibility .accordion .tab__content > p:nth-child(odd) {
  background-color: #f2f2f2;
}

#home-filter.compatibility .accordion .tab__content > p:nth-child(even) {
  background-color: #d6d6d6;
}

#check_compat_msg {
  color: black;
  margin-top: 15px;
  border-radius: 5px;
  padding: 15px;
}

#check_compat_msg.incompatible {
  background-color: #efc9c9;
}

#check_compat_msg.compatible {
  background-color: #dff0d8;
}




.filter-model,
.filter-brand {
  position: relative;
}

.loader-container {
  position: absolute;
  left: 0;
  top: 29%;
  width: 100%;
  background-color: rgba(227,227,227,1);
  z-index: 1000;
  height: 71%;
  border-radius: 6px;
  opacity: 0.85;
}

.loader-container .loader {
  border: 8px solid rgba(0,0,0,0); /* Light grey */
  border-top: 8px solid var(--red); /* Blue */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  position: absolute;
  left: calc(50% - 10px);
  top: calc(50% - 10px);
  transform: translate(-50%, -50%);
  margin: 0
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}




@media (max-width: 767px) {
  #home-filter {
    width: 100%;
    padding-left: 2%;
    padding-right: 2%;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 15px;
  }

  #home-filter .filter-brand {
    width: 100%;
  }


  /* HOMEFILTER */

  #home-filter .tabs {
    width: 100%;
    top: -35px
  }

  #home-filter .tabs .tab {
      width: 50%;
      padding-left: 0;
      justify-content: center;
      height: 50px;
  }

  #home-filter .tabs .tab:hover img, #home-filter .tabs .tab img {
      scale: 0.5;
      margin-top: 0;
  }

  #home-filter .tabs .tab:hover img, #home-filter .tabs .tab.active img {
      scale: 0.6;
      margin-left: 0;
  }

  #home-filter h4 {
      font-size: 13px;
      min-height: 42px;
  }

  #home-filter .filter-brand {
      width: 100%;
  }

  #home-filter .filter-model {
      width: 100%;
  }

  #home-filter .filter-submit {
      width: 100%;
  }

  #home-filter .filter-submit > input {
      width: 100%;
  }

  #home-filter select {
      font-size: 10px;
      padding-right: 10px;
  }

  #home-filter .filter-submit > input {
      margin-top: 30px;
  }

  #home-filter .custom-select-holder::after {
      transform: translateY(-50%) scale(0.6);
  }

  #home-filter .tabs-content {
    padding: 6%;
    background: linear-gradient(180deg, rgb(26, 26, 26) 0%, rgb(26, 26, 26) 29%, rgb(227, 227, 227) 29%, rgb(227, 227, 227) 100%);
  }

  #home-filter h4 {
    min-height: 20px;
  }


}













.ui-autocomplete {
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1000;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}


.ui-menu .ui-menu-item a {
  font-size: 13px;
  line-height: 16px;
}

/* HOME FILTER TÍTULOS */
.home-titulos-white {
    color: #fff;
    font-family: Inter;
    font-size: 20px;
    font-style: bold;
    font-weight: 700;
    line-height: 16px;
    margin-bottom: 8px;
}

.home-titulos-B {
    color: #fff;
    font-family: Inter;
    font-size: 20px;
    font-style: bold;
    font-weight: 700;
    line-height: 16px;
    margin-bottom: 8px;
}

.home-subtitulos-W {
  color: #fff;
  font-family: Inter;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 8px;
}

.home-subtitulos-B {
  color: #000;
  font-family: Inter;
  font-size: 13px;
  font-style: normal;
  font-weight: 500;
  line-height: 16px;
  margin-bottom: 8px;
}
