/* Seçim stili */
::selection {
  background-color: orange;
  color: #fff;
} /* Genel section */
section {
  padding: 0.1rem 7%;
} /* Başlık */
.title {
  padding: 20px;
  background-color: #ffffff;
} /* Başlık ve linkler */
.title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.title h1 {
  font-size: 24px;
  color: #ffce54;
  margin: 0;
} /* Linkler */
.links {
  display: flex;
  gap: 15px;
}
.links a {
  text-decoration: none;
  font-size: 18px;
  padding: 8px 15px;
  color: #fff;
  background-color: #ff7700;
  border-radius: 6px;
  transition: 0.3s;
}
.links a:hover {
  background-color: #ffce54;
  color: #000;
}
.links a.active {
  background-color: #ffce54;
  color: #000;
  font-weight: bold;
} /* Alt çizgi */
.title hr {
  border: none;
  height: 2px;
  background: #ff7700;
  margin-top: 20px;
  width: 100%;
}
.filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between; /* solda sayaç, sağda boşluk */
  margin: 20px 0;
  position: relative; /* dropdownları ortalamak için referans */
} /* İlan sayacı solda */
.ilan-sayaci {
  font-weight: bold;
  font-size: 18px;
  color: orange;
  margin: 0;
}
.abbreviation {
  display: flex;
  gap: 20px;
  position: absolute; /* absolute ile ortala */
  left: 50%; /* sol kenar ortası */
  transform: translateX(-50%); /* tam ortaya getir */
} /* Dropdownlar */
.dropdown {
  position: relative;
}
.btn {
  background: orange;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
} /* Dropdown seçenekleri */
.options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ece6e6;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
}
.options a {
  display: block;
  padding: 10px;
  text-decoration: none;
  color: #333;
}
.options a:hover {
  background: orange;
  color: #fff;
} /* Checkbox gizle ve açıldığında seçenekleri göster */
input[type="checkbox"] {
  display: none;
}
input[type="checkbox"]:checked ~ .options {
  display: block;
} /* Kartlar */
.ilanlar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.card {
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card .photo {
  width: 100%;
  height: 320px;
  overflow: hidden;
}
.card .photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card .photo h3 {
  padding: 10px;
  font-size: 16px;
}
.card .info {
  padding: 10px;
}
.card .info h4 {
  margin: 5px 0;
  font-size: 14px;
}
.detayBtn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: orange;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
}
.detayBtn:hover {
  background: darkorange;
}
@media (max-width: 991px) {
  /* Toplam ilan başlığı */
  .ilan-sayaci {
    order: -2; /* title-row’dan önce gelsin */
    margin-bottom: 5px; /* alt boşluk ekle */
  } /* Başlık */
  .title h1 {
    font-size: 24px;
  }
  .title {
    position: relative;
  }
  .ilan-sayaci {
    position: absolute;
    font-size: 130%;
    top: -74px; /* başlığın üstüne çıkar */
    left: 90px;
    font-weight: bold;
    color: orange;
  } /* Link butonları yan yana ve sığacak şekilde */
  .links {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    -webkit-overflow-scrolling: touch;
  }
  .links a {
    font-size: 14px;
    padding: 6px 10px;
    white-space: nowrap;
    flex: 0 0 auto;
  }
  .filter-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  } /* Dropdownlar yatay kaydırmalı */
  .abbreviation {
    position: static;
    transform: none;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
  }
  .dropdown {
    flex: 0 0 auto;
  }

  #sortPrice {
  font-size: 12px;
  padding: 3px 6px;
  width: 60px;           /* istediğin genişlik */
  height: 28px;
  border-radius: 5rem;      /* tıklama çizgisini kaldır */
  background: none;      /* arka planı kaldır */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  }

  .btn {
    min-width: 100px;
    text-align: center;
  }
  .options {
    width: max-content;
  } /* Kartlar ve grid düzeni */
  .ilanlar {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
  }
  .card {
    width: 300px;
  }
}
