/* General Styling */
.Filter {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.Filter-Container {
  width: 100%;
  max-width: 1200px;
  padding: 20px;
  border-radius: 10px;
}

/* Top Section */
.Filter .Top,
.Filter .Bottom {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* Select Dropdown */
.Filter sl-select {
  width: 100%;
  max-width: 220px;
}

/* Slider Containers */
.kmSlider,
.PirceSlider {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}
.Filter .button {
  font-family: "Poppins", sans-serif;
}
#Kilometer-slider,
#Price-slider {
  width: 100%;
  max-width: 400px;
  height: 5px;
  background: #ddd;
  border-radius: 5px;
  position: relative;
}

.kmSlider span,
.PirceSlider span {
  font-size: 0.8rem;
  color: #666;
  margin-top: 5px;
}

/* Bottom Section */

/* Radio Groups */
sl-radio-group {
  flex: 1;
  min-width: 150px;
}

/* Buttons */
.Filter .Down {
  display: flex;
  justify-content: flex-start;
  gap: 0.25rem;
}

sl-button {
  min-width: 120px;
  display: flex;
  align-items: end;
}

/* Responsive Design */
@media (max-width: 840px) {
  .Filter .Filter-Container {
    max-width: 400px;
  }

  .Filter .Top,
  .Filter .Bottom {
    grid-template-columns: 1fr;
  }
  .card-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media screen and (max-width: 600px) {
    .card-container {
        grid-template-columns: 1fr !important;
    } 
}
.slider-round {
  height: 10px;
}

.slider-round .noUi-connect {
  background: #088ecc;
}

.slider-round .noUi-handle {
  height: 10px;
  width: 10px;
  top: -3px;
  right: -5px; /* half the width */
  border-radius: 9px;
}

.slider-round .noUi-handle:before {
  display: none;
}

.slider-round .noUi-handle:after {
  display: none;
}

.Cards {
  color: var(--bg-color);
}

.card-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.card {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card:hover {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.img img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-bottom: 2px solid #ddd;
}

.card-info {
  padding: 0.5rem 1rem;
  color: #464646;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.car-price {
  font-size: 1rem;
  color: #0e84f3;
}

.Cards .Kilometer,
.Cards .Fuel,
.Cards .Transmission {
  font-size: 0.9rem;
  color: #555;
  display: inline;
  background-color: #e0e0e060;
  padding: 0.2rem;
  border-radius: 1px;
}

.car-br {
  margin: 0.5rem 0;
}
