.ccv-filter {
  align-items: flex-start;
  background-color: var(--blanco);
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  padding: 40px;
  gap: 20px;
  width: 100%;
}

.ccv-filter__option {
  position: relative;
  width: 100%;
}

@media screen and (min-width: 481px) and (max-width: 979px) {
  .ccv-filter__option {
    width: calc(50% - 10px);
  }
}

@media screen and (min-width: 980px) {
  .ccv-filter__option {
    width: calc(33.33% - 13.33px);
  }
}

.ccv-filter__label {
  display: block;
  color: var(--gris-oscuro);
  font-size: 14px;
  font-weight: 300px;
  margin-bottom: 7px;
}

.ccv-filter input[type="text"].ccv-filter__field,
.ccv-filter input[type="date"].ccv-filter__field,
.ccv-filter input[type="email"].ccv-filter__field,
.ccv-filter input[type="number"].ccv-filter__field,
.ccv-filter input[type="password"].ccv-filter__field,
.ccv-filter input[type="search"].ccv-filter__field,
.ccv-filter input[type="tel"].ccv-filter__field,
.ccv-filter input[type="url"].ccv-filter__field,
.ccv-filter select.ccv-filter__field,
.ccv-filter textarea.ccv-filter__field {
  border: 1px solid #ccc;
  box-shadow: none;
  box-sizing: border-box;
  color: var(--gris-oscuro);
  font-family: var(--fuente-global);
  font-size: 16px;
  font-weight: 300;
  outline: 0;
  padding: 8px 15px;
}

/* Filters select2 */
.ccv-filter .select2-container {
  width: 100% !important;
}

.ccv-filter .select2-container .select2-selection--single {
  border: 1px solid #ccc;
  height: 42px;
}

.ccv-filter
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  font-family: var(--fuente-global);
  font-size: 16px;
  font-weight: 300;
  line-height: 40px;
  padding-left: 15px;
}

.ccv-filter
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 40px;
}

.ccv-filter__search {
  align-items: center;
  display: flex;
  justify-content: center;
  width: 100%;
}

button.ccv-filter__search-button {
  background-color: var(--ccv-primary-color);
  align-items: center;
  display: inline-flex;
  flex-flow: row nowrap;
  gap: 10px;
  justify-content: center;
  padding-left: 30px;
  padding-right: 30px;
}

button.ccv-filter__search-button[disabled] {
  background-color: var(--ccv-primary-color);
  color: var(--blanco);
  opacity: 0.5;
}

.ccv-filter__search-loader {
  animation: ccv-loader-rotation 1s linear infinite;
  border-radius: 50%;
  box-sizing: border-box;
  border: 3px solid var(--blanco);
  border-bottom-color: #000000;
  display: inline-block;
  height: 15px;
  width: 15px;
}

button.ccv-filter__search-button:not([disabled]) .ccv-filter__search-loader {
  display: none;
}

@keyframes ccv-loader-rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Results */
.ccv-results {
  background-color: var(--blanco);
  display: none;
  padding: 0 40px 40px;
  margin: 0;
  width: 100%;
}

.ccv-results__row {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
  width: 100%;
}

.ccv-results__column {
  align-items: flex-start;
  display: flex;
  flex-flow: row wrap;
  gap: 15px;
  position: relative;
  width: 100%;
}

@media screen and (min-width: 768px) {
  .ccv-results__column {
    width: 50%;
  }

  .cvv-results__dealers {
    padding-right: 40px;
  }
}

@media screen and (max-width: 767px) {
  .cvv-results__map {
    display: none;
  }
}

.ccv-results__black-logo {
  height: auto;
  max-width: 70px;
  width: auto;
}

.ccv-results__black-description {
  display: inline-flex;
  max-width: calc(100% - 90px);
  width: auto;
}

.ccv-results__grid {
  align-items: flex-start;
  display: flex;
  flex-flow: column nowrap;
  width: 100%;
}

.ccv-results__grid .ccv-dealer {
  position: relative;
  width: 100%;
}

.ccv-results__grid .ccv-dealer__header {
  align-items: center;
  cursor: pointer;
  display: flex;
  flex-flow: row wrap;
  gap: 10px;
  justify-content: flex-start;
  padding: 15px 20px;
  position: relative;
  width: 100%;
}
.ccv-results__grid .ccv-dealer:not(:first-child) .ccv-dealer__header {
  border-top: 1px solid #ccc;
}

.ccv-results__grid .ccv-dealer__header-counter {
  align-items: center;
  background-image: url(../../svg/map-pin.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--blanco);
  display: inline-flex;
  flex-flow: column nowrap;
  font-family: var(--fuente-global);
  font-size: 12px;
  font-weight: 700;
  height: 26px;
  justify-content: center;
  line-height: 100%;
  padding-bottom: 4px;
  text-align: center;
  width: 21px;
}

.ccv-results__grid .ccv-dealer__header-text {
  font-family: var(--fuente-global);
  font-size: 18px;
  font-weight: 400;
  line-height: 130%;
  text-align: left;
  text-transform: none;
  width: calc(100% - 31px);
}

.ccv-results__grid  .ccv-dealer__header-categories {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding-left: 31px;
  width: 100%;
}

.ccv-results__grid  .ccv-dealer__header-category {
    align-items: center;
    background-color: #eeeeee;
    border-radius: 3px;
    display: inline-flex;
    flex-flow: row nowrap;
    font-weight: bold;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.25px;
    line-height: 100%;
    padding: 7px 8px;
}

.ccv-results__grid  .ccv-dealer__header-category.talleres {
    background-color: #ecd1b4;
}

.ccv-results__grid .ccv-dealer__content {
  align-items: flex-start;
  border-top: 1px solid #ccc;
  display: none;
  flex-flow: column nowrap;
  gap: 10px;
  height: auto !important;
  justify-content: flex-start;
  padding: 10px 20px 20px 51px;
  transition: none;
  width: 100%;
}

.ccv-results__grid .ccv-dealer__links {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}

.ccv-results__grid .ccv-dealer__item-link {
  align-items: center;
  background-image: linear-gradient(
    var(--ccv-primary-color),
    var(--ccv-primary-color)
  ) !important;
  background-size: 100% 2px;
  background-position: 0 95%;
  background-repeat: no-repeat;
  color: var(--ccv-primary-color);
  display: inline-flex;
  flex-flow: row nowrap;
  font-size: 14px;
  font-weight: 300;
  gap: 10px;
  letter-spacing: 1px;
  line-height: 100%;
  padding: 0 0 7px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.ccv-results__grid .ccv-dealer__item-link:hover {
  background-size: 30% 2px;
}

/* Map */
#ccv-map {
  min-height: 300px;
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;
}

/* Not found alert */
.ccv-dealers-not-found {
  align-items: center;
  background-color: #ffd8d8;
  border-radius: 5px;
  color: #a40000;
  display: flex;
  flex-flow: row wrap;
  font-size: 16px;
  font-weight: 500;
  justify-content: center;
  padding: 20px;
  width: 100%;
}
