/* assets/css/style.css - SON SÜRÜM */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* HEADER */
header {
    background: #0b5e42;
    color: #fff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
@media (min-width:768px) {
    header .container { flex-direction: row; justify-content: space-between; }
}
.logo a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}
.search { width: 100%; }
@media (min-width:768px) { .search { width: auto; } }
.search form { display: flex; }
.search input {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 6px 0 0 6px;
    font-size: 1rem;
}
.search button {
    padding: 10px 20px;
    background: #1565C0;
    color: #fff;
    border: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}
.search button:hover { background: #0d47a1; }

/* MAIN */
main { padding: 30px 0; }
h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #0b5e42;
}
.current-date {
    color: #666;
    margin-bottom: 20px;
    font-weight: 500;
}

/* ANA SAYFA ŞEHİR GRID */
.city-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    margin-top: 30px;
}
.city-card {
    display: block;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    color: #0b5e42;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: all 0.2s;
}
.city-card:hover {
    border-color: #0b5e42;
    box-shadow: 0 6px 16px rgba(11,94,66,0.1);
    transform: translateY(-2px);
}

/* HARİTA */
#map {
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 15px;
    height: 400px;
    width: 100%;
}
#findMe {
    width: 100%;
    margin-top: 5px;
    margin-bottom: 20px;
    font-size: 1.1rem;
    padding: 12px;
    background: #1565C0;
    border: none;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
#findMe:hover { background: #0d47a1; }

/* ECZANE LİSTESİ */
.pharmacy-list-section { margin-top: 30px; }
.pharmacy-list { display: flex; flex-direction: column; gap: 15px; }
.pharmacy-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}
.pharmacy-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}
.pharmacy-card h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #0b5e42;
}
.pharmacy-card .address {
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95rem;
}
.pharmacy-card .phone a {
    color: #1565C0;
    text-decoration: none;
    font-weight: 600;
}
.actions { margin-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ECZANE MARKER (HARİTA) */
.pharmacy-marker-wrapper { background: transparent; border: none; }
.pharmacy-marker {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 50%;
    border: 3px solid #0b5e42;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s;
}
.pharmacy-marker:hover { transform: scale(1.1); border-color: #1565C0; }
.marker-icon { font-size: 32px; line-height: 1; }
.pharmacy-marker.nearest {
    border-color: #1565C0;
    background: #e3f2fd;
    box-shadow: 0 0 0 4px rgba(21,101,192,0.3);
}
.marker-label {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-top: 6px;
    background: #0b5e42;
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border: 1px solid white;
    z-index: 1000;
}
.user-location-marker {
    font-size: 30px;
    background: transparent;
    border: none;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}

/* BUTONLAR */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0b5e42;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.3s;
}
.btn:hover { background: #094a33; }
.btn-primary { background: #1565C0; }
.btn-primary:hover { background: #0d47a1; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; }

/* ALERT */
.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}
.alert-error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #c62828;
}
.alert-info {
    background: #e3f2fd;
    color: #1565C0;
    border-left: 4px solid #1565C0;
}

/* FOOTER */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 25px 0;
    text-align: center;
    font-size: 0.9rem;
}
footer p { margin-bottom: 5px; }

/* RESPONSIVE */
@media (max-width: 480px) {
    h1 { font-size: 1.5rem; }
    .pharmacy-card { padding: 15px; }
    .btn, #findMe { width: 100%; text-align: center; }
    .city-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}