.car-filter {
  padding: 1.5rem 0.625rem 1.5rem 1.25rem;
  width: 100%;

  .close-icon {
    display: none;
  }

  .filter-cars {
    display: flex;
    flex-direction: column;
  }

  .e-img {
    margin-right: 6px;
  }

  .car-filter-list {
    height: 40px;
    display: flex;
    margin-right: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    border-bottom: 1px solid var(--primary-main);
    -webkit-overflow-scrolling: touch;

    &::-webkit-scrollbar {
      display: none;
    }

    .filter {
      border: 0;
      padding: .75rem 1.5rem;
      min-width: auto;
      color: var(--secondary-main);
      font-size: var(--body-xs-nexa, var(--body-xs-arena));
      font-weight: var(--fw-400);
      line-height: var(--lh-16px-nexa, var(--lh-20px-arena));
      cursor: pointer;
      display: flex;
      align-items: center;

      &.selected {
        background-color: transparent;
        color: var(--primary-main);
        font-weight: var(--fw-500);
        border-radius: 0%;
        border-bottom: 2px solid var(--primary-main);
      }


    }
  }

  .filter-text {
    padding: 2rem 0 .75rem;

    .title {
      color: var(--primary-main);
      font-size: var(--fs-24px);
      font-style: normal;
      font-weight: var(--fw-700);
      line-height: 28px;
      letter-spacing: 0.96px;
      padding: 0 0 4px;
    }

    .subtitle {
      color: var(--primary-main);
      font-size: var(--fs-24px);
      font-style: italic;
      font-weight: var(--fw-400);
      line-height: 2rem;
    }
  }

  .card-list-teaser {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--tertiary-deep-Grey);

    .teaser-list {
      position: fixed;
      display: flex;
      bottom: 0;
      padding-bottom: 1.5rem;
      width: 100%;

      .teaser {
        width: calc(100% - 2.5rem);
        background: linear-gradient(179deg,
            rgb(157 207 218 / 25%) -62.26%,
            rgb(22 29 31 / 25%) 82.34%);
        backdrop-filter: blur(40px);
        border-radius: 0px;
      }

      .teaser__card {
        display: flex;
        height: 100%;
      }

      .teaser__image {
        display: flex;
        height: 100%;
        width: clamp(7.625rem, 39%, 15rem);

        picture {
          max-width: 100%;
          display: flex;
        }

        img {
          max-width: 100%;
          height: auto;
          object-fit: cover;
          clip-path: polygon(0 0, 100% 0, 100% 80%, 85% 100%, 0 100%);
        }
      }

      .teaser__content {
        padding: .75rem 1rem;
        width: 74%;

        @media (width >=768px) {
          width: unset;
          padding: 1rem;
        }
      }

      .teaser__description p {
        margin: 0 0 13px;
        color: var(--primary-main);
        font-size: var(--fs-12px);
        font-style: normal;
        font-weight: var(--fw-400);
        line-height: 16px;
        /* 133.333% */
      }

      .teaser__title p {
        font-size: var(--fs-14px);
        font-weight: var(--fw-500);
        line-height: 20px;
        margin: 0 0 8px 0;
        color: var(--primary-main);
      }

      .teaser__actions {
        line-height: 1.25rem;

        a {
          position: relative;
          font-size: var(--fs-12px);
          font-weight: var(--fw-400);
          line-height: 20px;
          background: none;
          color: var(--primary-main);
          padding: 0 24px 4px 0;
          border-radius: 0;
          border: none;
          box-shadow: none;
          width: auto;
          height: auto;
          margin-bottom: 0;
          margin-top: 30px;
        }

        @media (width >=768px) {
          padding: 0 28px 4px 0;
        }
      }

      .teaser__actions a::after {
        content: url("/icons/arrow.svg");
        position: absolute;
        right: 0;
        bottom: -3px;

        @media (width >=768px) {
          bottom: 0;
        }
      }
    }

    .card-list {
      display: flex;
      flex-wrap: wrap;
      gap: 1rem;
      overflow: auto;
      padding-right: 10px;
      padding-bottom: 24px;

      @media (width >=768px) {
        gap: 16px 24px;
      }

      @media (width >=1024px) {
        gap: 12px 24px;
      }

      @media (width >=1366px) {
        gap: 40px;
      }

      @media (width >=1920px) {
        gap: 40px 24px;
      }

      .card {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        flex-basis: calc(50% - 8px);
        box-sizing: border-box;
        padding: .875rem .75rem .75rem;
        background: linear-gradient(179deg,
            rgb(157 207 218 / 8%) -62.26%,
            rgb(22 29 31 / 8%) 82.34%);
        filter: drop-shadow(0 3.269px 3.269px rgb(0 0 0 / 4%));
        backdrop-filter: blur(9.8065px);
        clip-path: polygon(0 0, 100% 0, 100% 80%, 85% 100%, 0 100%);
        align-items: center;

        .card-content {
          line-height: 0;
          width: 100%;

          @media(width>=768px) {
            width: 100%;
          }

          @media(width >=1420px) {
            width: 187px;
          }

        }

        .card-title,
        .card-description {
          color: var(--primary-main);
          font-size: var(--fs-14px);
          font-style: normal;
          font-weight: var(--fw-500);
          line-height: 20px;
          margin-bottom: 2px;
          margin-top: 0;
        }

        .card-description {
          margin: 0;
          display: none;
          color: var(--dark-grey-shade-11);
        }

        .card-price,
        .card-price-text {
          color: var(--dark-grey-shade-7);
          font-size: var(--body-xs-nexa, var(--body-xs-arena));
          font-style: normal;
          font-weight: var(--fw-400);
          line-height: var(--lh-16px-nexa, var(--lh-20px-arena));
          margin: 0;
          display: inline-block;
        }

        .card-price {
          font-weight: var(--fw-500);
        }

        .card-price-text {
          margin-right: 4px;
        }

        .card-image {
          display: flex;
          justify-content: left;
          margin-bottom: 14px;

          img {
            max-height: 100%;
            max-width: 100%;
            object-fit: contain;
          }
        }
      }

      /* e-vitara changes */
      a[href="/e-vitara"]{
        .card-price-text, .card-price {
          display: none;
        }  
        .card-title{
          margin-bottom: 20px;
        }
      }
    }
  }
}

.dealership-form-container .left-section .form-dropdown .selected-option {
  height: 32px;

  @media (width>=768px) {
    font-size: var(--fs-16px);
  }
}

@media (width >=768px) {

  .car-filter {
    padding: 1.5rem calc(3.5rem - 10px) 0 3.5rem;

    .card-list-teaser {
      flex-direction: row;
      flex-grow: 1;
      border-right: none;
      overflow: auto;

      .card-list {
        padding: 0 2.5rem 0 0;
        margin-right: 25px;
        align-content: flex-start;
        max-height: inherit;
        overflow: hidden auto;
        height: 100%;
        flex: 1;

        .card {
          padding: 12px 16px 12px;
          flex-basis: calc(25% - 18px);
          cursor: pointer;
          display: flex;
          align-items: center;

          &:hover {
            background: linear-gradient(179deg,
                rgb(157 207 218 / 8%) -62.26%,
                rgb(22 29 31 / 8%) 82.34%);

            .card-image img {
              filter: none;
            }
          }

          .card-description {
            font-weight: var(--fw-400);
            overflow: hidden;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-line-clamp: 1;
            -webkit-box-orient: vertical;
          }

          .card-price,
          .card-price-text {
            font-size: var(--fs-14px);
            font-weight: var(--fw-500);
            line-height: 0.75rem;
          }

          .card-price-text {
            font-weight: var(--fw-400);
          }
        }
      }

      .teaser-list {
        position: relative;
        flex-basis: 24%;
        flex-direction: column;
        overflow: hidden auto;
        gap: 0;
        margin-top: 0;
        bottom: unset;

        .teaser {
          flex: none;
          width: auto;
        }

        .teaser:first-child {
          clip-path: polygon(0 0, 100% 0, 100% 86%, 62% 86%, 57% 100%, 0 100%);
          margin-bottom: 1.25rem;

          .teaser__card {
            background: none;
            height: auto;
          }

          .teaser__image {
            display: none;
          }

          .teaser__title p {
            margin: 0 0 8px;
            font-size: var(--fs-12px);
            font-style: normal;
            font-weight: var(--fw-500);
            line-height: 1rem;
            /* 122.222% */
          }

          .teaser__actions a {
            font-size: var(--fs-10px);
            line-height: 0.75rem;
            margin-top: 0;
          }

          .teaser__description p {
            color: var(--primary-main);
            font-size: var(--fs-10px);
            font-style: normal;
            font-weight: var(--fw-400);
            line-height: 16px;
            margin: 0 0 2rem;
          }

          &::after {
            content: "";
            width: 100%;
            display: block;
            height: 24px;
            position: relative;
            margin-top: -12px;
          }
        }

        .teaser:not(:first-child) {
          background: none;
          height: 230px;
          clip-path: polygon(0 25px,
              16% 25px,
              60% 25px,
              66% 0,
              100% 0,
              100% 100%,
              0 100%);

          .teaser__image {
            width: 100%;

            img {
              clip-path: none;
              border-radius: 4px;
            }
          }

          .teaser__content {
            position: absolute;
            padding: 12px;
            bottom: 12px;
            left: 12px;
            right: 12px;
            border-radius: 4px;
            background: linear-gradient(206deg,
                rgb(56 79 110 / 60%) -4.69%,
                rgb(91 91 91 / 60%) 110.79%);
            backdrop-filter: blur(7px);

            .teaser__title p {
              margin: 0 0 10px;
              color: var(--tertiary-white);
              font-size: var(--fs-18px);
              font-style: normal;
              font-weight: var(--fw-600);
              line-height: 24px;
              /* 133.333% */
            }

            .teaser__actions {
              line-height: 0;

              a {
                margin-top: 0;
                color: var(--tertiary-white);
                font-size: var(--fs-16px);
                font-style: normal;
                font-weight: var(--fw-400);
                line-height: 20px;
                /* 125% */
                border-color: var(--tertiary-white);
                width: auto;
                height: auto;

                &::after {
                  content: url("");
                  right: 0;
                  bottom: 4px;
                  background-image: url("/icons/white-slant-arrow.svg");
                  background-size: 24px;
                  display: inline-block;
                  width: 24px;
                  height: 24px;
                }
              }
            }
          }
        }
      }
    }
  }
}

@media (width >=1024px) {
  .car-filter {
    & .filter-text {
      .title {
        letter-spacing: 0.48px;
      }

      .subtitle {
        font-size: var(--fs-32px);
        line-height: 3rem;
        font-weight: var(--fw-400);
      }
    }
  }
}

@media (width >=1200px) {
  .car-filter {
    padding: 1.5rem 3.5rem 2.5rem;

    & .car-filter-list .filter {
      font-size: var(--fs-14px);
      line-height: 1.25rem;
    }

    .card-list-teaser {
      .card-list .card {
        max-width: 246px;

        .card-price,
        .card-price-text {
          font-size: var(--fs-14px);
          line-height: 1.25rem;
        }

        .card-title {
          font-size: var(--fs-16px);
          line-height: 1.25rem;
        }
      }

      .teaser-list .teaser:first-child {
        .teaser__title p {
          font-size: var(--fs-18px);
          line-height: 1.5rem;
        }

        .teaser__description p {
          font-size: var(--fs-14px);
          line-height: 1.25rem;
        }

        .teaser__actions a {
          font-size: var(--fs-16px);
          line-height: 1.25rem;
        }
      }
    }
  }
}

@media (width >=1024px) {
  .car-filter .card-list-teaser .card-list .card {
    max-width: 200px;
  }

  .car-filter {

    .car-filter-list {
      padding: 0;
      margin: 0;
      height: 44px;
      border-bottom: 1px solid var(--tertiary-medium-grey);

      .filter {
        border: 0;
        padding: .75rem 3rem;
        min-width: auto;
        color: var(--secondary-main);
        font-size: var(--fs-14px);
        font-weight: var(--fw-400);
        line-height: 20px;
        transition: all 0.2s linear;

        &.selected,
        &:hover {
          color: var(--secondary-main);
          font-weight: 500;
          border-radius: 0%;
        }
      }
    }
  }
}

@media (width >=1366px) {
  .car-filter .card-list-teaser .card-list .card {
    background: transparent;
  }
}

.header {
  .car-filter {
    & .card-list-teaser {
      .card-list {
        @media (width >=768px) {
          padding-right: 10px;
          padding-bottom: 10px;
          margin-right: unset;
        }
      }
    }
  }

  .car-filter-menu.show-back-button {
    .close-icon {
      height: 25px;
      width: 25px;
      background-image: url(/icons/expand_less.svg);
      border: none;
      display: block;
      position: absolute;
      left: 14px;
      top: 5px;
      cursor: pointer;
      transform: rotate(270deg);
    }
  }
}

body.arena {
  .car-filter {
    padding-right: 8px;
    padding-bottom: 20px;

    @media (width >=768px) {
      padding-right: 43px;
    }

    @media (width >=1200px) {
      padding-right: 56px;
    }

    .filter-cars {
      @media (width >=1200px) {
        /* width: 1366px;
        max-width: 100%;
        margin-right: auto;
        margin-left: auto;
        padding-right: 56px;
        padding-left: 56px; */
      }
    }

    .car-filter-list {
      gap: 16px;

      @media (width >=1200px) {
        gap: 0px;
        width: fit-content;
      }

      .filter {
        padding: 8px;
        color: var(--tertiary-black);
        font-weight: var(--fw-500);
        text-transform: uppercase;
        transition: unset;

        @media (width >=1024px) {
          padding: 12px 48px;
        }

        &:hover,
        &.selected {
          color: var(--Primary-main-arena);
          font-weight: var(--fw-700);
          border-bottom-color: var(--Primary-main-arena);
        }
      }
    }

    .card-list-teaser {
      border-right: 0px;

      .card-list {
        flex-flow: column nowrap;
        padding-right: 6px;
        padding-bottom: 20px;
        overflow: auto;

        @media (width >=768px) {
          padding-right: 7px;
        }

        @media (width >=1024px) {
          display: grid;
          grid-template-columns: repeat(4, 1fr);
          gap: 44px 24px;
        }

        @media (width >=1200px) {
          grid-template-columns: repeat(5, 186px);
        }

        @media (width >=1600px) {
          grid-template-columns: repeat(5, 280px);
        }

        .card {
          background: var(--tertiary-white);
          padding: 8px 16px;
          flex-direction: row-reverse;
          gap: 6px;
          position: relative;
          filter: none;
          backdrop-filter: none;
          clip-path: none;

          @media (width >=768px) {
            padding: 3px 16px;
            gap: 0;
          }

          @media (width >=1024px) {
            padding: 16px 8px;
            flex-direction: column;
            max-width: none;
          }

          &::after {
            content: '';
            height: 0px;
            width: 100%;
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            border-bottom: 2px solid transparent;
            transition: all 0.2s linear;
          }

          &::before {
            @media (width >=1200px) {
              content: "";
              position: absolute;
              inset: 180px 0 0 -24px;
              height: 0.5px;
              background-color: var(--tertiary-medium-grey);
              top: unset;
              bottom: -11px;
            }
          }

          .card-image {
            width: 161px;
            height: 88px;
            margin-bottom: 0;

            @media (width >=768px) {
              width: 178px;
              height: 98px;
            }

            @media (width >=1024px) {
              width: 194px;
              height: 109px;
            }

            @media (width >=1200px) {
              width: 170px;
              height: 93px;
            }

            img {
              height: 100%;
              width: 100%;
              position: relative;
              z-index: 1;
            }
          }

          .card-content {
            width: calc(100% - 169px);

            @media (width >=768px) {
              width: calc(100% - 178px);
            }

            @media (width >=1024px) {
              width: 100%;
              text-align: center;
            }
          }

          .card-price,
          .card-price-text {
            color: var(--inactive-content);
            margin-right: 6px;
          }

          .card-title,
          .card-description {
            margin-bottom: 0;
          }

          .card-title {
            display: none;
          }

          .card-logo-image{
            height: 25px;
            max-height: 25px;
            display: flex;
            justify-content: start;
            margin: 8px 0;
            @media (width >=1024px) {
              justify-content: center;
            }
            img {    
              width: 90px;
              object-fit: contain;
            }
          }
        }

        .card-blue.card:hover::after {
          height: 40px;
          background: var(--car-filter-hover);
          border-bottom: 2px solid var(--summer-sky);
        }
      }
    }

    .filter-text {
      padding: 36px 0 16px;

      .title {
        font-size: var(--heading-l-arena);
        font-weight: var(--fw-700);
        line-height: var(--lh-24px-arena);
        color: var(--Nero-black);
        letter-spacing: normal;
        padding-bottom: 0;

        @media(width <=768px) {
          font-size: var(--heading-m-arena);
        }
      }
    }
  }

  /* scrollbar */
  .card-list::-webkit-scrollbar {
    width: 6px;
  }

  .card-list::-webkit-scrollbar-track {
    background: var(--white-smoke);
    border: none;
  }

  .card-list::-webkit-scrollbar-thumb {
    background: var(--Primary-main-arena);
    border-left: 1px solid transparent;
    border-right: 1px solid transparent;
    background-clip: padding-box;
  }
}
