:root {
    --primary-color: #007bff;
    --secondary-color: #f8f9fa;
    --text-color: #333;
    --border-color: #dee2e6;
    --card-bg: #ffffff;
    --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    --pharmacy-red: #D92E2E;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    padding: 0;
    /* Eski hali: font-family: 'Roboto', sans-serif; */
    /* Yeni Performans Odaklı Hali: */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1000px;
    margin: 0.5rem auto;
    padding: 0.5rem;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 2.5rem;
}

header p {
    font-size: 1.1rem;
    color: #6c757d;
}

.red-text {
    color: var(--pharmacy-red);
}

/* YENİ TARİH METNİ İÇİN STİL */
.date-display {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1.5rem; /* Sonuçlarla arasında boşluk bırakır */
    padding: 0.75rem;
    background-color: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.1);
    border-radius: 5px;
    text-align: center;
}

.controls {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 0.6rem;
  margin-top: -10px;
  margin-bottom: 1rem;
  flex-wrap: nowrap; /* alt satıra geçmesini engeller */
}

/* İl ve ilçe kutuları */
#il-select,
#ilce-select {
  width: 70%;
  max-width: 230px;
  min-width: 150px;
  height: 42px;
  box-sizing: border-box;
}




/* Ara butonu */
#ara-button {
  width: auto;
  padding: 0.6rem 1.4rem;
  font-size: 0.95rem;
  height: 42px;
  border-radius: 6px;
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
  white-space: nowrap;
}
#ara-button:hover {
  background-color: #0056b3;
}

/* 📍 Konuma Göre Bul butonu */
#konumdan-bul-button {
  padding: 0.6rem 1.2rem; /* Sağ-sol paddingi metne göre dengeledik */
  font-size: 0.95rem;
  border-radius: 6px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  height: 42px;
  transition: background 0.2s ease;
  margin-left: 0.1rem; /* Ara butonundan küçük boşluk */
  white-space: nowrap;
  
  /* 🌟 DEĞİŞİKLİKLER BURADA: */
  width: auto;           /* Sabit 180px yerine genişliği içeriğe bıraktık */
  min-width: 195px;      /* Butonun çok küçülmesini engellemek için taban sınır koyduk */
  flex-shrink: 0;        /* Flex yapılarda sıkışıp yazıyı ezmesini önler */
}

#konumdan-bul-button:hover {
  background-color: #0056b3;
}






select, button { /* input[type="date"] kaldırıldı */
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--card-bg);
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
}

button {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

button:hover:not(:disabled) {
    background-color: #0056b3;
}

button:disabled, select:disabled {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

#sonuclar-container {
    display: grid;
    gap: 1.5rem;
}

#sonuclar-container h2 {
    grid-column: 1 / -1;
    margin-bottom: 1rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.75rem;
    font-size: 1.5rem;
}

.bilgi-mesaji, .hata-mesaji, .loading {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-bg);
    border-radius: 5px;
    font-style: italic;
    color: #6c757d;
}

.hata-mesaji {
    color: #dc3545;
    font-weight: 500;
}

.eczane-karti {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--primary-color);
    border-radius: 5px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease-in-out;
}

.eczane-karti:hover {
    transform: translateY(-5px);
}

.eczane-karti h3 {
    margin-bottom: 0.75rem;
    color: var(--primary-color);
}

.eczane-karti p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.eczane-karti p strong {
    min-width: 60px;
}

footer {
    text-align: center;
    margin-top: 3rem;
    color: #6c757d;
    font-size: 0.9rem;
}

@media (max-width: 650px) {
  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.8rem;
    margin-top: 0;
  }

  #il-select,
  #ilce-select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px;
    font-size: 1rem;
    padding: 0 10px;

    /* 🧩 Sadece bu iki satır eklendi */
    line-height: normal;        /* yazının kesilmesini önler */
    appearance: auto;           /* mobil tarayıcı kendi hizalamasını uygular */
  }

  #ara-button,
  #konumdan-bul-button {
    width: 100%;
    margin-left: 0;
    padding: 0.8rem;
    font-size: 1rem;
    text-align: center;
  }
}








/* Footer Link Stilleri */
footer {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

footer a:hover {
    text-decoration: underline;
}


/* Kullanım Koşulları Sayfası İçin Ek Stiller */
.legal-text {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
}

.legal-text h2 {
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.25rem;
}

.legal-text p, .legal-text ul {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.legal-text .disclaimer {
    color: #856404;
    font-weight: 500;
    background-color: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 1rem;
    border-radius: 5px;
}

.faq-section {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
}
.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.faq-item {
    margin-bottom: 1.5rem;
}
.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Yeni Liste Sayfaları İçin Stiller */
.iller-listesi {
    list-style: none;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.iller-listesi li a {
    display: block;
    padding: 1rem;
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s ease-in-out;
}
.iller-listesi li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* İl Sayfası (İki Sütunlu Yapı) */
.page-container {
    display: flex;
    flex-wrap: wrap; /* Mobil için */
    gap: 2rem;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
}
.main-content {
    flex: 3;
    min-width: 300px; /* Mobil için */
}
.main-content h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}
.sidebar {
    flex: 1;
    min-width: 250px; /* Mobil için */
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: var(--shadow);
}
.sidebar h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}
.ilce-listesi {
    list-style: none;
    padding: 0;
}
.ilce-listesi li a {
    display: block;
    padding: 0.6rem;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.ilce-listesi li a:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

/* Yeni Eczane Listesi Stili */
.eczane-listesi-yeni { margin-top: 2rem; }
.liste-baslik {
    display: flex;
    font-weight: bold;
    padding: 0.75rem;
    background-color: #343a40;
    color: white;
    border-radius: 5px 5px 0 0;
}
.eczane-karti-yeni {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}
.eczane-karti-yeni:last-child {
    border-bottom: none;
    border-radius: 0 0 5px 5px;
}
.col-eczane { flex: 2; }
.col-adres { flex: 3; }
.col-telefon { flex: 1.5; text-align: right; }
.ilce-etiket {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Yeni Liste Sayfaları İçin Stiller */
.iller-listesi {
    list-style: none;
    padding: 2rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
}
.iller-listesi li a {
    display: block;
    padding: 1rem;
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s ease-in-out;
}
.iller-listesi li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* İl Sayfası (İki Sütunlu Yapı) */
.page-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 1rem auto;
    padding: 1rem;
}
.main-content {
    flex: 3;
    min-width: 300px;
}
.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: var(--shadow);
}
.sidebar {
    flex: 1;
    min-width: 250px;
    background-color: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    height: fit-content;
    box-shadow: var(--shadow);
    
    top: 2rem;        /* EKRANIN ÜSTÜNDEN 2rem BOŞLUK BIRAKIR */
}
.ilce-listesi {
    list-style: none;
    padding: 0;
}
.ilce-listesi li a {
    display: block;
    padding: 0.6rem;
    text-decoration: none;
    color: #333;
    border-radius: 4px;
    transition: background-color 0.2s;
}
.ilce-listesi li a:hover {
    background-color: #e9ecef;
    color: var(--primary-color);
}

/* Yeni Eczane Listesi Stili */
.eczane-listesi-yeni { margin-top: 2rem; }
.liste-baslik {
    display: flex;
    font-weight: bold;
    padding: 0.75rem;
    background-color: #343a40;
    color: white;
    border-radius: 5px 5px 0 0;
    align-items: center;
}
.eczane-karti-yeni {
    display: flex;
    align-items: center;
    padding: 1rem 0.75rem; /* Dikey boşluğu artırdık */
    border-bottom: 1px solid var(--border-color);
    background-color: #fff;
}
.eczane-karti-yeni:last-child {
    border-bottom: none;
    border-radius: 0 0 5px 5px;
}
.col-eczane { flex: 2; }
.col-adres { flex: 4; }
.col-telefon { flex: 1.5; text-align: right; }
.col-konum { flex: 1.5; text-align: center; }
.ilce-etiket {
    display: inline-block;
    background-color: #6c757d;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Sıkça Sorulan Sorular Bölümü Stilleri */
.faq-section {
    margin-top: 4rem;
    padding: 2rem;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    text-align: left;
}
.faq-section h2 {
    text-align: center;
    margin-bottom: 2rem;
}
.faq-item {
    margin-bottom: 1.5rem;
}
.faq-item:last-child {
    margin-bottom: 0;
}
.faq-item h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.map-link {
  display: inline-block;
  background: #e53935;
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background 0.2s ease;
}

.map-link:hover {
  background: #c62828;
  color: #fff;
}



.iller-section h2 {
    margin-bottom: 0.5rem;
}

.iller-section p {
    margin-bottom: 2rem;
    color: #6c757d;
}

.iller-listesi {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1rem;
    text-align: left;
}
.iller-listesi li a {
    display: block;
    padding: 1rem;
    background-color: #fff;
    border-radius: 5px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.2s ease-in-out;
}
.iller-listesi li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.aciklama {
  margin: 10px 0 20px;
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  background: #f9f9f9;
  padding: 10px 15px;
  border-left: 4px solid #d63031;
  border-radius: 4px;
}
.aciklama {
  margin: 10px 0 20px;
  padding: 10px 15px;
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  background: #f9f9f9;
  border-left: 4px solid #d63031;
  border-radius: 4px;
}
footer {
  margin-top: 40px;
  padding: 20px 0;
  text-align: center;
  font-size: 15px;
  color: #555;
  background: #f9f9f9;
  border-top: 1px solid #eee;
}
.footer-links a {
  color: #444;
  text-decoration: none;
  margin: 0 6px;
}
.footer-links a:hover {
  text-decoration: underline;
}
.link-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.btn-link {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 8px 14px; /* 10→8, 18→14 */
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;   /* eklendi */
  white-space: nowrap; /* satır kırılmasını engeller */
  transition: background 0.2s ease;
}


.btn-link:hover {
  background: #0056b3;
}

@media (max-width: 600px) {
  .btn-link {
    flex: 1 1 45%;
    text-align: center;
    font-size: 14px;
  }
}
.eczane-content {
  line-height: 1.8;
  font-size: 17px;
  color: #333;
}

.eczane-content h2 {
  margin-top: 25px;
  color: #007bff;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 5px;
}

.eczane-content p {
  margin-top: 10px;
  text-align: justify;
}
/* 🏙️ İl Listesi Grid Tasarımı */
.il-listesi ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.il-listesi li {
  background: #f9f9f9;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  text-align: center;
  padding: 10px;
  transition: all 0.2s ease;
}

.il-listesi li:hover {
  background: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.il-listesi a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  font-size: 16px;
}

.il-listesi a:hover {
  color: #fff;
}
/* 🏙️ İl Listesi Grid Tasarımı */
.il-listesi ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.il-listesi li {
  background: #f9f9f9;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  text-align: center;
  padding: 12px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.il-listesi li:hover {
  background: #007bff;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.il-listesi a {
  text-decoration: none;
  color: inherit;
  display: block;
  font-size: 16px;
}

/* 🏥 ASM Listesi (İl Detay Sayfası) */
.asm-listesi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
  list-style: none;
  padding: 0;
  margin: 25px 0;
}

.asm-listesi li {
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: all 0.2s ease;
}

.asm-listesi li:hover {
  border-color: #007bff;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.asm-listesi strong {
  color: #007bff;
  display: block;
  font-size: 16px;
}

.asm-listesi small {
  color: #666;
  font-size: 13px;
}
/* === Aile Sağlığı Merkezleri Sayfası === */
.asm-main {
  margin-top: 25px;
  text-align: center;
}

.sayfa-aciklama {
  font-size: 1.05rem;
  color: #333;
  background: #f8f9fa;
  padding: 12px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  margin-bottom: 30px;
}

.asm-listesi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.asm-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 18px;
  text-align: left;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.asm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.asm-card h2 {
  font-size: 1.1rem;
  color: #d32f2f;
  margin-bottom: 8px;
}

.asm-card p {
  font-size: 0.95rem;
  margin: 5px 0;
  color: #444;
}

/* REVİZYON





/* === Kart Listeleri (Eczane + ASM) === */
.kart-listesi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
  margin-top: 20px;
  list-style: none;
  padding: 0;
}

.kart {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 15px;
  line-height: 1.5;
  text-align: left;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.kart:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.kart h2, .kart h3 {
  font-size: 1rem;
  color: #d32f2f;
  margin: 5px 0 8px 0;
}

.kart p {
  font-size: 0.9rem;
  color: #333;
  margin: 4px 0;
}

.kart small {
  display: block;
  font-size: 0.8rem;
  color: #666;
  margin-top: 4px;
}
.eczane-tablosu {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e1e1e1;
}

.liste-baslik,
.eczane-karti-yeni {
  display: grid;
  grid-template-columns: 1.5fr 3fr 1.2fr 1.2fr;
  align-items: center;
}

.liste-baslik {
  background: #333;
  color: #fff;
  font-weight: bold;
  padding: 10px 15px;
}

.eczane-karti-yeni {
  padding: 10px 15px;
  border-top: 1px solid #eee;
}

.eczane-karti-yeni:nth-child(even) {
  background-color: #f9f9f9;
}

.map-link {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
}

.map-link:hover {
  background: #0056b3;
}
/* === Eczane kart listesi === */
.kart-listesi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.kart {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  transition: 0.2s ease;
}

.kart:hover {
  background: #f8f8f8;
  transform: translateY(-2px);
}

.kart h3 {
  color: #d32f2f;
  font-size: 1rem;
  margin-bottom: 8px;
}

.kart p {
  font-size: 0.9rem;
  color: #333;
  margin: 4px 0;
}


/* === Sayfa düzeni === */
.sayfa-icerik {
  display: flex;
  justify-content: space-between; /* panelleri sağ-sol kenarlara iter */
  align-items: flex-start;
  gap: 40px;
  margin-top: 25px;
}

.sol-icerik {
  flex: 1;
  max-width: 70%; /* eczane kartlarının alanını artır */
}

.sag-icerik {
  width: 280px; /* sabit genişlik */
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 18px;
  margin-top: 10px;
  position: relative;
  top: auto;
}


.sag-icerik h3 {
  font-size: 1.1rem;
  color: #d32f2f;
  margin-bottom: 10px;
}

.ilce-listesi {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ilce-listesi li {
  margin-bottom: 6px;
}

.ilce-link {
  display: block;
  padding: 6px 8px;
  border-radius: 5px;
  background: #fff;
  border: 1px solid #eee;
  text-decoration: none;
  color: #333;
  transition: background 0.2s;
}

.ilce-link:hover {
  background: #f1f1f1;
}
/* === Sağ taraftaki ilçe kutusu (modern görünüm) === */
.sag-icerik {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  padding: 18px;
  margin-top: 10px;
  height: auto; /* artık sabit değil */
  position: relative;
}

.sag-icerik h3 {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 10px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
}

/* Liste görünümü */
.ilce-listesi {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ilce-listesi li {
  margin-bottom: 8px;
}

.ilce-link {
  display: block;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 6px;
  padding: 8px 10px;
  text-decoration: none;
  color: #222;
  transition: all 0.2s ease;
  font-size: 0.95rem;
}

.ilce-link:hover {
  background: #f1f1f1;
  transform: translateX(2px);
}

/* Sayfa düzenini dengede tutalım */
.sayfa-icerik {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
  align-items: flex-start;
}

/* Küçük ekranlarda alta geçsin */
@media (max-width: 768px) {
  .sayfa-icerik {
    flex-direction: column;
  }
  .sag-icerik {
    order: 2;
  }
}
/* === SAYFA DÜZENİ === */
.sayfa-icerik {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
  align-items: flex-start;
}

/* Sol kısım (eczaneler) */
.sol-icerik {
  flex: 3;
  min-width: 300px;
}

/* Sağ kısım (ilçeler kutusu) */
.sag-icerik {
  flex: 1;
  min-width: 250px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 18px;
  margin-top: 10px;
  position: relative; /* artık sticky değil */
  top: auto;
  margin-left: 1px;
}

.sag-icerik h3 {
  font-size: 1.1rem;
  color: #d32f2f;
  margin-bottom: 10px;
  font-weight: 600;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
 
}

/* İlçe listesi */
.ilce-listesi {
  list-style: none;
  padding: 0;
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  
}

.ilce-listesi li {
  margin-bottom: 8px;
}

.ilce-link {
  display: block;
  background: #fafafa;
  border: 1px solid #ececec;
  border-radius: 8px;
  padding: 8px 10px;
  text-decoration: none;
  color: #222;
  transition: all 0.2s ease;
  font-size: 0.95rem;
  text-transform: capitalize; /* küçük harfleri düzeltir, ilk harfi büyük yapar */
}

.ilce-link:hover {
  background: #f1f1f1;
  transform: translateX(2px);
}

/* === Eczane kartları === */
.kart-listesi {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 15px;
  margin-top: 20px;
  padding: 0;
  list-style: none;
}

.kart {
  background: #fff;
  border: 1px solid #e1e1e1;
  border-radius: 10px;
  padding: 14px 16px;
  text-align: left;
  transition: 0.2s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.kart:hover {
  background: #f9f9f9;
  transform: translateY(-2px);
}

.kart h3 {
  color: #d32f2f;
  font-size: 1rem;
  margin-bottom: 8px;
}

.kart p {
  font-size: 0.9rem;
  color: #333;
  margin: 4px 0;
}



/* === Mobil uyum === */
@media (max-width: 768px) {
  .sayfa-icerik {
    flex-direction: column;
  }

  .kart-listesi {
    grid-template-columns: 1fr; /* mobilde 1 kart */
  }

  .sag-icerik {
    order: 2;
  }
}

/* Masaüstünde 2 kart yan yana */
@media (min-width: 769px) {
  .kart-listesi {
    grid-template-columns: repeat(2, 1fr);
  }
}
.duyuru-karti:hover {
  transform: translateY(-2px);
  transition: 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.duyuru-karti:hover {
  transform: translateY(-2px);
  transition: 0.2s;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.eczane-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 16px 18px;
  margin-bottom: 16px;
  font-family: Arial, sans-serif;
  transition: transform 0.2s ease;
}

.eczane-card:hover {
  transform: translateY(-3px);
}

.eczane-card h3 {
  color: #c62828;
  margin-bottom: 8px;
  font-size: 18px;
}

.eczane-card p {
  color: #444;
  font-size: 14px;
  margin: 4px 0;
  line-height: 1.4;
}

.map-button {
  display: inline-block;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  margin-top: 8px;
  transition: background 0.2s ease;
}

.map-button:hover {
  background-color: #0056b3;
}
.title-center {
  text-align: center;
  margin-bottom: 20px;
}


@media (min-width: 651px) {
  #konumdan-bul-button {
    margin-left: 4.5rem; /* Butonu sağa iter, değeri artırarak boşluğu büyütebilirsin */
  }
}









.makale-gorsel {
  width: 100%;
  max-width: 800px;
  margin: 25px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.makale-gorsel img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9; /* Görselin oranını korur */
  object-fit: cover;    /* Taşma varsa kırpar */
  display: block;
}

.hidden-il {
  display: none;
}

.devamini-gor-container {
  text-align: center;
  margin-top: 15px;
}

.devamini-gor-btn {
  background-color: #e53935;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.3s ease;
}

.devamini-gor-btn:hover {
  background-color: #c62828;
}












/* === SAYFANIN ÜSTÜNE YAPIŞAN TAM GENİŞLİK BAŞLIK === */
.logo-title {
    background: linear-gradient(90deg, #d32f2f, #1976d2); 
    color: #fff;
    padding: 10px 16px;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 12px 0;
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}


/* “Nöbetçi” kelimesi daha baskın */
.logo-title .red-text {
    color: #fff !important;
    font-weight: 800;
}
.container, main {
    margin-top: 0 !important;
}

/* Başlık altındaki tüm default boşlukları sıfırla */
.logo-title {
    margin-bottom: 0 !important;
}

/* Hemen altındaki container veya main boşluk bırakıyorsa sıfırla */
.logo-title + * {
    margin-top: 3px !important;
    padding-top: 3px !important;
}

/* Başlıktan sonra gelen div’lerdeki bootstraptan gelen mt-3, p-3 gibi boşlukları bastır */
main > *, 
.container > *, 
.page-header, 
.page-header * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#date-display-text {
    display: block !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
}




.aciklama {
    white-space: normal !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: unset !important;
    line-height: 1.55 !important;
    margin: 10px 0 18px 0 !important;
    font-size: 1rem;
}
.aciklama {
    padding-left: 10px !important;
}



/* 📱 Mobilde ilçe ve mahalle listelerini yan yana 2 sütun yap */
@media (max-width: 600px) {
  .ilce-listesi {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .ilce-listesi li {
    margin-bottom: 0 !important;
  }

  .ilce-link {
    padding: 8px;
    font-size: 14px;
    text-align: center;
  }
}


.makale-gorsel {
  width: 100%;
  text-align: center;
  margin: 20px 0;
}

.makale-gorsel img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;  /* ⭐ Kırpmayı engelliyor */
  border-radius: 10px;
}




