* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #f4f7fc;
  margin: 0;
  padding: 0 0 80px 0; /* Mobilde alt menÃ¼ iÃ§in padding */
}

header {
  background: #2b5caa;
  color: white;
  padding: 5px 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 12px;
  font-weight: bold;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.nav input {
  padding: 6px;
  width: 220px;
  max-width: 100%;
}

.nav button {
  padding: 6px 10px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
}

.highlight {
  background: #ffc107;
  color: black;
  font-weight: bold;
  display: inline-block;
}

.container {
  display: flex;
  margin-top: 10px;
}

.sidebar {
  width: 250px;
  background: #fff;
  padding: 20px;
  border-right: 1px solid #ccc;
  position: sticky;
  top: 15px;
  height: fit-content;
  align-self: flex-start;
  z-index: 2;

}

.content {
  flex: 1;
  padding: 20px;
}

.ad-box {
  background: white;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 220px;
  text-align: center;
}

.ad-box img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 3px;
}

.title {
  font-size: 16px;
  font-weight: bold;
  line-height: 1.3;
  word-break: break-word;
  text-align: center;
  padding: 6px;
}

.price {
  color: #a00;
  font-size: 15px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 5px;
}

.ads-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Footer */
footer {
  text-align: center;
  padding: 10px;
  background: #e1e1e1;
  font-size: 13px;
  margin-top: 20px;
}

/* Tablet */
@media screen and (max-width: 1024px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 10px;
  }

  .nav input,
  .nav button {
    width: 100%;
  }

  .container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid #ccc;
  }

  .content {
    padding: 15px;
  }
}

/* Mobil */
@media (max-width: 768px) {  /* ðŸ“± Bu stiller sadece mobil ekranlarda (768px altÄ±) geÃ§erli olacak */

  .search-box {
    width: 100%;                        /* ðŸ”¹ Arama kutusunu tam geniÅŸlik yapar */
    display: flex;                      /* ðŸ”¹ Ä°Ã§indeki Ã¶ÄŸeleri yatay hizalar */
    flex-direction: column;            /* ðŸ”¹ Ã–ÄŸeleri dikeyde sÄ±ralar */
    align-items: center;               /* ðŸ”¹ Ã–ÄŸeleri ortalar */
    margin: 5px 0;                    /* ðŸ”¹ Ãœst-alt boÅŸluk ekler */
  }

  .search-box form {
    display: flex;                     /* ðŸ”¹ Arama formunu yatay hizalar */
    justify-content: center;           /* ðŸ”¹ Form iÃ§eriÄŸini ortalar */
    width: 90%;                        /* ðŸ”¹ Form geniÅŸliÄŸi ekranÄ±n %90â€™Ä± kadar olur */
    max-width: 300px;                  /* ðŸ”¹ Maksimum geniÅŸlik 400px olur */
    margin-bottom: 1px;              /* ðŸ”¹ Altta boÅŸluk bÄ±rakÄ±r */
  }

  .search-box input {
    width: 70%;                        /* ðŸ”¹ Arama kutusu geniÅŸliÄŸini belirler */
    border-radius: 10px 0 0 10px;      /* ðŸ”¹ Sadece sol kenarlarÄ±nÄ± yuvarlatÄ±r */
  }

  .search-box button {
    width: 30%;                        /* ðŸ”¹ Arama butonunun geniÅŸliÄŸi */
    border-radius: 0 10px 10px 0;      /* ðŸ”¹ SaÄŸ kenarlarÄ± yuvarlatÄ±r */
  }

  .actions {
    display: flex;                     /* ðŸ”¹ ButonlarÄ± yatayda dizer */
    justify-content: center;           /* ðŸ”¹ Ortalar */
    gap: 1px;                         /* ðŸ”¹ Butonlar arasÄ± boÅŸluk */
    flex-wrap: wrap;                   /* ðŸ”¹ Ekran daralÄ±rsa alt satÄ±ra geÃ§melerine izin verir */
    margin-top: 1px;                 /* ðŸ”¹ Ãœstten boÅŸluk ekler */
  }

  .actions a {
    flex: 1 1 auto;                    /* ðŸ”¹ Esnek geniÅŸlik â€“ alan kadar bÃ¼yÃ¼ / kÃ¼Ã§Ã¼l */
    text-align: center;               /* ðŸ”¹ Buton iÃ§eriÄŸini ortalar */
    max-width: 125px;                 /* ðŸ”¹ Her buton maksimum 140px geniÅŸliÄŸe sahip olabilir */
    padding: 4px 6px;               /* ðŸ”¹ Ä°Ã§ boÅŸluklar (Ã¼st-alt ve saÄŸ-sol) */
    font-size: 12px;                  /* ðŸ”¹ YazÄ± boyutu */
  }

}


/* Kategori sistemi */
.kategori-listesi {
  padding: 5px;
  background: #fff;
  border-top: 1px solid #ccc;
}

.kategori {
  padding: 8px;
  font-size: 8px;
  font-weight: bold;
  background-color: #f4f7fc;
  border-bottom: 1px solid #ccc;
  cursor: pointer;
}

.alt-kategori {
  display: none;
  list-style: none;
  padding-left: 8px;
  background: #fff;
  margin-left: 20px;
}

.alt-kategori.acik {
  display: block;
}

.alt-kategori li {
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}
/* KullanÄ±cÄ± dropdown menÃ¼sÃ¼ */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #2b5caa;
  color: white;
  padding: 10px 12px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  border-radius: 4px;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #ffffff;
  min-width: 160px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  right: 0;
  border-radius: 6px;
  overflow: hidden;
}
.dropdown-content a {
  color: #333 !important; /* <--- BURAYA !important EKLE */
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  border-bottom: 1px solid #eee;

}
.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: #000 !important;

}

.dropdown-content.show {
  display: block;
}

.ilanver-btn {
  background-color: #ffc107; /* SarÄ± */
  color: black;
  font-weight: bold;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.ilanver-btn:hover {
  background-color: #e0a800; /* Hover efekti iÃ§in daha koyu sarÄ± */
  color: black;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  margin: 0 20px;
}

.search-box input[type="text"] {
  padding: 8px;
  width: 250px;
  border: 1px solid #ccc;
  border-radius: 8px 0 0 8px;
  font-size: 14px;
  outline: none;
}

.search-box button {
  padding: 8px 14px;
  background-color: #2980b9;
  border: none;
  color: #fff;
  font-weight: bold;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
}

.search-box button:hover {
  background-color: #1c5a9e;
}
.main-header {
  background: #2b5caa;
  color: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.sidebar input,
.sidebar select {
  padding: 6px;
  margin-top: 2px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 14px;
}

/* Yeni Filtre Kutusu DÃ¼zeni */
.filter-box {
  margin-top: 20px;
  padding: 10px;
  background: #f9f9f9;
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
}

.filter-box .form-group {
  margin-bottom: 12px;
}

.filter-box label {
  display: block;
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
  color: #333;
}

.filter-box input[type="number"] {
  width: 100%;
  padding: 6px;
  font-size: 14px;
  border: 1px solid #bbb;
  border-radius: 4px;
}

.filter-box .filter-btn {
  width: 100%;
  background: #1c3faa;
  color: #fff;
  border: none;
  padding: 8px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
  font-size: 14px;
}

.filter-box .filter-btn:hover {
  background: #152f72;
}
/* === FÄ°LTRE FORMU YAZI STÄ°LLERÄ° === */
.filter-box label {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #444 !important;
}

.filter-box input[type="number"] {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 14px !important;
  color: #222;
  border: 1px solid #bbb !important;
}

.filter-box .filter-btn {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 15px;
  font-weight: bold;
}

/* === Ä°LAN BAÅžLIKLARI VE FÄ°YATLAR === */
.ad-box .info strong {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 15px !important;
  font-weight: bold;
  color: #222;
  display: block;
  margin-bottom: 6px;
  min-height: 40px;
}

.ad-box .info p {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 15px !important;
  color: #a30000;
  font-weight: bold;
  margin-bottom: 6px;
}

.ad-box .info a {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif !important;
  font-size: 13px;
  color: #1c3faa;
  text-decoration: underline;
}

#mainImageContainer { cursor: default; }
#mainImage { width:100%; height:auto; max-height:520px; object-fit:contain; border-radius:6px; display:block; }

.gallery-watermark{
  position:absolute;top:50%;left:50%;
  transform:translate(-50%,-50%) rotate(-30deg);
  font-size:70px;color:rgba(255,255,255,.15);font-weight:bold;
  pointer-events:none;white-space:nowrap;
}

/* Tıklama bölgeleri */
.gallery-nav{
  position:absolute; top:0; bottom:0; width:50%;
  background:transparent; border:0; padding:0; margin:0;
  cursor:pointer; z-index:5;
}
.gallery-nav.left  { left:0; }
.gallery-nav.right { right:0; }

/* Masaüstünde minik ipucu */
@media (hover:hover){
  .gallery-nav.left:hover  { background:rgba(0,0,0,.03); }
  .gallery-nav.right:hover { background:rgba(0,0,0,.03); }
}


/* === GiriÅŸ, Ãœye Ol, Ãœcretsiz Ä°lan Ver ButonlarÄ± === */
.actions {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.actions a {
  font-size: 14px;
  font-weight: bold;
  padding: 8px 10px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  max-width: 160px;
  text-align: center;
  flex: 1 1 auto;
}

.actions .giris {
  background-color: #2980b9;
}

.actions .uye {
  background-color: #007bff;
}

.actions .ilanver {
  background-color: #ffc107;
  color: black;
}

/* Mobil uyum */
@media (max-width: 768px) {
  .actions {
    gap: 4px;
  }

  .actions a {
    font-size: 12px;
    padding: 6px 8px;
    max-width: 120px;
  }
}

