.dropdown-wrapper {
  position: relative;
  max-width: 600px;
  margin-bottom: 20px;
}

#dropdownToggle {
  width: 100%;
  padding: 12px;
  background-color: #f8f8f8;
  border: 1px solid #aaa;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  text-align: left;
}

.dropdown-content {
  display: none; /* İlk başta kapalı */
  position: absolute;
  top: 105%;
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 10px;
  z-index: 1000;
  border-radius: 6px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  flex-wrap: wrap;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  justify-content: center;
}


.dropdown-content label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px;
  width: 120px;
  font-size: 0.9em;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
}

.dropdown-content label:hover {
  border-color: #007bff;
  background-color: #f0f8ff;
}

.dropdown-content img {
  width: 100%;
  max-width: 100px;
  height: auto;
  border-radius: 5px;
  margin-bottom: 4px;
  object-fit: contain;
}
.log-button {
  position: relative;
  top: 15px;
  right: 0px;
  background-color: #0011ff;
  color: rgb(255, 255, 255);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 999;
  transition: background-color 0.3s;
}
.log-button:hover {
  background-color: #000000;
}

@media (max-width: 576px) {
  .login-button {
    top: 10px;
    right: 10px;
    padding: 8px 14px;
    font-size: 14px;
  }
}


@media (max-width: 768px) {
  .login-box, .reservation-form {
    width: 90% !important;
    padding: 20px !important;
  }
}


.dropdown-content {
  max-height: 300px;
  overflow-y: auto;
}
.dropdown-content label {
  display: flex;
  align-items: center;
  padding: 5px;
}
.dropdown-content img {
  width: 70px;
  margin-right: 10px;
}
.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1;
  width: 300px;
}

.dropdown-content.show {
  display: block;
}

.dropdown-content label {
  display: flex;
  align-items: center;
  padding: 5px;
  cursor: pointer;
}

.dropdown-content img {
  width: 70px;
  margin-right: 10px;
}
#selectedCarImg {
  width: 60px;
  height: auto;
  display: none;
  border-radius: 4px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

#selectedCarName {
  flex: 1;
}
.dropdown-content {
  position: absolute;
  z-index: 1; /* çok yüksek değer ver */
  background: #fff;
  border: 2px solid #ccc;
  border-radius: 8px;
  width: 100%;
  max-height: 350px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}


.dropdown-content label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
}

.dropdown-content label:hover {
  background-color: #f9f9f9;
}
.dropdown-wrapper {
  position: relative;
  z-index: auto; /* buraya z-index verme */
  width: 100%;
}

/* Car display fixes */
.car-wrap {
  margin-bottom: 40px;
  background: #fff;
  -webkit-box-shadow: 0px 5px 12px -1px rgba(0, 0, 0, 0.06);
  -moz-box-shadow: 0px 5px 12px -1px rgba(0, 0, 0, 0.06);
  box-shadow: 0px 5px 12px -1px rgba(0, 0, 0, 0.06);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.car-wrap .img {
  width: 100%;
  height: 260px !important;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f9fa;
  padding: 20px;
  overflow: visible;
}

.car-wrap .img img {
  max-width: 95%;
  height: auto;
  object-fit: scale-down;
  object-position: center;
}

.car-wrap .text {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.car-wrap .text h2 {
  font-size: 20px;
  margin-bottom: 10px;
}

.car-wrap .text .cat {
  font-size: 14px;
  color: #999;
  margin-bottom: 10px;
}

.car-wrap .text .price {
  font-size: 18px;
  font-weight: bold;
  color: #1089ff;
  margin-bottom: 15px;
}

.car-wrap .text p.d-block {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.car-wrap .text p.d-block a {
  flex: 1;
  text-align: center;
}

.carousel-car .owl-stage {
  display: flex;
  align-items: stretch;
}

.carousel-car .owl-item {
  height: 100%;
  display: flex;
}

.carousel-car .item {
  height: 100%;
  width: 100%;
}

.image-box {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 8px;
  background-color: #eee;
}

.image-box img.img-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-wrap {
  border-radius: 10px;
  background: #fff;
  transition: all 0.3s ease;
}

.car-wrap:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.car-info h5 {
  font-weight: 600;
}

.price-info .price {
  font-weight: bold;
  font-size: 16px;
}

.allcars{
  width: 100px;
}