.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 10px;
}

.side-bar {
  background-color: white;
  width: 30%;
  height: auto;
  padding-left: 10px;
}

.red-back {
  display: flex;
}

.vehicle-gallery-container {
  position: relative;
  width: 70%;
}

.gallery-nav-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  top: -300px;
}

.image-container {
  height: 310px;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 800px) and (max-width: 1024px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .side-bar {
    background-color: white;
    width: 100%;
    height: auto;
    padding-left: 0px;
  }

  .red-back {
    display: flex;
    flex-direction: column-reverse;
  }

  .vehicle-gallery-container {
    position: relative;
    width: 100%;
  }

  .gallery-nav-container {
    top: -150px;
  }

  .image-container {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 799px) {
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
    /* 1 sütun */
  }

  .side-bar {
    background-color: white;
    width: 100%;
    height: auto;
    padding-left: 0px;
  }

  .red-back {
    display: flex;
    flex-direction: column-reverse;
  }

  .vehicle-gallery-container {
    position: relative;
    width: 100%;
  }

  .gallery-nav-container {
    top: -150px;
  }

  .image-container {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

.black-line {
  height: 3000px;
  width: 200px;
  background-color: black;
}

.car-info-title {
  padding: 25px;
  -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1);
}

.grid-item {
  -webkit-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  padding: 5px;
  background-color: #fff;
}

.image-container img {
  object-fit: cover;
}

.grid-single-item {
  border-radius: 5px;
  padding: 5px;
  background-color: #fff;
}

img {
  max-width: 100%;
  height: auto;
}

.grid-content {
  display: block;
  padding: 10px;
}

.grid-content h3 {
  line-height: 1em;
  min-height: 2em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  margin: 0;
}

.variant-text {
  line-height: 0.8em;
  min-height: 1.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  margin: 0;
}

.explain-childs {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  box-sizing: border-box;
  border-bottom: 1px solid #e5e7eb;
}

.explain-childs-t {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity));
  margin: 7px;
}

.explain-childs-p {
  margin: 7px;
  font-weight: bold;
}

.explain-childs-price-container {
  margin-top: 10px;

  display: flex;

  align-items: center;
}

.explain-childs-price-icon-container {
  width: 2.5rem;
  height: 2.5rem;
  background-color: #003d5c;
  display: flex;
  align-content: center;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  border-radius: 100%;
  margin-right: 15px;
}

.explain-childs-price-icon-text {
  color: #fff;
  font-weight: 900;
  font-size: 25px;
  font-family: monospace;
  margin: 0;
  padding: 0;
}

.explain-childs-price-text-container {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin-top: 10px;
}

.explain-childs-price-text {
  color: #37b1ee;
  margin: 0;
  font-weight: bolder;
  font-size: 1.50rem;
}

.explain-childs-price-text-child {
  --tw-text-opacity: 1;
  color: rgb(148 163 184 / var(--tw-text-opacity));
  margin: 0;
  font-size: 10px;
  align-self: baseline;
}

.vehicle-gallery-container::-webkit-scrollbar {
  display: none;
}

.vehicle-image {
  width: 100%;
  display: none;
  border-radius: 5px;
}

.vehicle-image.active {
  display: block;
}

.gallery-nav {
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 10px;
  user-select: none;
}

.nav-left {
  left: 10px;
}

.nav-right {
  right: 10px;
}

.vehicle-details {
  background-color: #f9f9f9;
  padding: 15px;
  margin: 15px 0;
  border: 1px solid #ddd;
}

.comment {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  white-space: pre-line;
  margin-top: 10px;
}

.equipment-container {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.equipment-list {
  list-style-type: none;
  padding: 0;
  width: 33%;
  /* Adjusted for three columns */
  box-sizing: border-box;
}

.equipment-list li {
  position: relative;
  padding-left: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: bold;
}

.equipment-list li::before {
  content: "•";
  position: absolute;
  left: 0;
}

.dropbtn {
  color: #000000;
  text-decoration: none;
  font-size: 12px;
  text-align: start;
  
  align-self: center;
  padding: 5px;
  padding-left: 8px;
  padding-right: 8px;
  border-radius: 4px;
  border: 1px solid #cdcdcd45;
  border-bottom: 1px solid #cdcdcd;
  display: flex;
  justify-content: space-between;
}

.dropdown {
 
position: relative;
 
 display: inline-block; 
 width: 32%;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(255, 2, 2, 0.055);
  z-index: 1;
  width: 100%;
  border-radius: 4px;
  border: 1px solid #00000015;
}

.dropdown-content a {
  color: black;
  padding: 7px 16px;
  text-decoration: none;
  display: block;
  font-size: 12px;
  text-align: start;
  font-family: monospace;
  width: 100%;
  border-bottom: 1px solid #cdcdcd71;
}

.dropdown-content a:hover {
  background-color: #e6e6e6
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #414f6610;
}