/* Genel Stil Ayarları */
body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 20px auto;
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* Anasayfa bağlantısı için stil */
.home-link-container {
    text-align: left;
    margin-bottom: 20px;
     display: flex;
  align-items: center;
}

.home-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.home-link:hover {
    color: #2980b9;
}

.home-link .fa-home {
    margin-right: 8px;
    font-size: 1.1em;
}

h1 { /* Ana başlık için yeni stil */
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 2.2em;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: 15px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.2; /* Başlık satır yüksekliği */
    flex-wrap: wrap; /* Küçük ekranlarda sarmalamayı sağlar */
}

.main-pharmacy-img-h1 {
    width: 70px; /* Ana başlık simgesi boyutu */
    height: auto;
    margin-right: 15px; /* Başlık metninden ayır */
    flex-shrink: 0; /* Küçülmesini engelle */
}

.date-note {
    display: block;
    font-size: 0.6em; /* Daha küçük font */
    color: #666;
    margin-top: 5px; /* Başlıktan biraz ayır */
    font-weight: 400; /* Daha hafif font */
    width: 100%; /* Tam genişlik kaplamasını sağla */
}

.ilce-select-container {
    text-align: center;
    margin-bottom: 25px;
    padding: 10px 0;
    background-color: #eaf1f7;
    border-radius: 8px;
    border: 1px solid #d0dbe4;
}

#ilce-select {
    padding: 10px 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
    width: 80%;
    max-width: 300px;
    background-color: #fff;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2C146.204L146.2%2C287L5.4%2C146.204H96.4V5.4h99.6v140.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 10px top 50%;
    background-size: 12px auto;
}

#ilce-select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

h3 { /* İlçe başlıkları için stil */
    color: #34495e;
    margin-top: 35px;
    margin-bottom: 20px;
    font-size: 1.6em;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 10px;
    text-align: left;
}

#pharmacy-display-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

li {
    background-color: #fcfcfc;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    transition: all 0.3s ease;
    position: relative;
    box-sizing: border-box;
}

li:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transform: translateY(-3px);
}

strong {
    color: #34495e;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 5px;
}

.pharmacy-detail {
    font-size: 0.95em;
    color: #666;
    display: inline;
}

.address-line {
    display: block;
    margin-top: 5px;
}

.distance-info {
    font-size: 0.9em;
    color: #888;
    margin-left: 10px;
}

p.error-message, p.no-pharmacy-info {
    text-align: center;
    font-size: 1.1em;
    color: #e74c3c;
    padding: 20px;
    background-color: #ffebeb;
    border-radius: 8px;
    border: 1px solid #e74c3c;
    margin-top: 20px;
}

.phone-link {
    display: inline-block;
    margin-top: 5px;
    color: #2980b9;
    text-decoration: none;
    font-weight: bold;
}

.phone-link:hover {
    text-decoration: underline;
}

.map-link {
    display: inline-flex;
    align-items: center;
    color: #27ae60;
    text-decoration: none;
    font-weight: bold;
    margin-left: 10px;
    padding: 5px 8px;
    border: 1px solid #27ae60;
    border-radius: 5px;
    transition: all 0.2s ease-in-out;
}

.map-link:hover {
    text-decoration: none;
    background-color: #27ae60;
    color: #fff;
}

.directions-button {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-left: 0;
    margin-right: 0;
    background-color: #f39c12;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.2s ease;
    box-sizing: border-box;
}

.directions-button:hover {
    background-color: #e67e22;
    text-decoration: none;
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    .container {
        margin: 10px auto;
        padding: 20px;
    }
    .home-link-container {
        text-align: center;
    }
    h1 {
        font-size: 1.8em;
        margin-bottom: 20px;
        flex-direction: column;
    }
    .main-pharmacy-img-h1 {
        width: 60px;
        margin-right: 0;
        margin-bottom: 10px;
    }
    .ilce-select-container {
        padding: 8px 0;
    }
    #ilce-select {
        width: 90%;
        padding: 8px 10px;
        font-size: 0.95em;
    }
    h3 {
        font-size: 1.4em;
        margin-top: 25px;
        margin-bottom: 15px;
    }
    li {
        padding: 15px;
    }
    .map-link {
        margin-left: 0;
        display: block;
        margin-top: 8px;
        width: fit-content;
        margin-right: auto;
        margin-left: auto;
    }
    .directions-button {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.home-link-container .home-link:last-child {
  margin-left: auto;
}