/* ==========================================================================
   Nöbetçi Eczaneler sayfası (/nobetci-eczane)
   theme-sayfalar.css'teki sp-* kabuğunu kullanır; burada yalnızca ec-* var.
   ========================================================================== */
body.theme-modern { --ec-yesil: #0f8a5f; --ec-yesil-koyu: #0b6b49; --ec-yesil-acik: #e7f5ef; }

/* Başlık */
body.theme-modern .ec-head .ec-tarih {
    display: inline-flex; align-items: center; gap: 8px; margin: 6px 0 0;
    font-size: 1.12rem; font-weight: 700; color: var(--m-ink);
}
body.theme-modern .ec-head .ec-tarih i { color: var(--ec-yesil); }
body.theme-modern .ec-ozet {
    display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px;
    font-size: .84rem; color: var(--m-muted);
}
body.theme-modern .ec-ozet span, body.theme-modern .ec-ozet a { display: inline-flex; align-items: center; gap: 6px; }
body.theme-modern .ec-ozet a { color: var(--m-muted); text-decoration: none; }
body.theme-modern .ec-ozet a:hover { color: var(--m-blue); }
body.theme-modern .ec-ozet b { color: var(--m-ink); }
body.theme-modern .ec-ozet-canli i {
    width: 9px; height: 9px; border-radius: 50%; background: var(--ec-yesil);
    box-shadow: 0 0 0 0 rgba(15, 138, 95, .5); animation: ecNabiz 2s infinite;
}
@keyframes ecNabiz { 0% { box-shadow: 0 0 0 0 rgba(15,138,95,.5); } 70% { box-shadow: 0 0 0 8px rgba(15,138,95,0); } 100% { box-shadow: 0 0 0 0 rgba(15,138,95,0); } }

body.theme-modern .ec-head .ec-giris { margin: 8px 0 0; max-width: 680px; font-size: 1rem; line-height: 1.55; color: var(--m-body); }
body.theme-modern .ec-seo { margin-top: 24px; }
body.theme-modern .ec-seo h2 { margin: 0 0 10px; font-size: 1.15rem; color: var(--m-ink); }
body.theme-modern .ec-seo p { margin: 0 0 10px; font-size: .95rem; line-height: 1.65; color: var(--m-body); max-width: 860px; }
body.theme-modern .ec-seo p:last-child { margin-bottom: 0; }

/* Uyarı ve boş durum */
body.theme-modern .ec-uyari {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px;
    background: #fff7e6; border: 1px solid #f3d9a4; border-radius: var(--m-radius); color: #6b4a07; font-size: .92rem;
}
body.theme-modern .ec-uyari i { margin-top: 3px; }
body.theme-modern .ec-bos { text-align: center; padding: 40px 24px; }
body.theme-modern .ec-bos > i { font-size: 2rem; color: #d18b00; }
body.theme-modern .ec-bos h2 { margin: 12px 0 6px; font-size: 1.25rem; color: var(--m-ink); }
body.theme-modern .ec-bos p { max-width: 520px; margin: 0 auto 16px; color: var(--m-body); }

/* Araç çubuğu */
body.theme-modern .ec-arac {
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px;
}
body.theme-modern .ec-filtre { display: flex; flex-wrap: wrap; gap: 8px; }
body.theme-modern .ec-chip {
    display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 15px;
    border: 1px solid var(--m-line); border-radius: 999px; background: #fff; cursor: pointer;
    font: 600 .9rem var(--m-sans); color: var(--m-ink); transition: border-color .15s, background .15s, color .15s;
}
body.theme-modern .ec-chip small {
    min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center;
    background: var(--m-soft); color: var(--m-muted); font-size: .74rem; font-weight: 700;
}
body.theme-modern .ec-chip:hover { border-color: var(--ec-yesil); }
body.theme-modern .ec-chip.aktif { background: var(--ec-yesil); border-color: var(--ec-yesil); color: #fff; }
body.theme-modern .ec-chip.aktif small { background: rgba(255,255,255,.22); color: #fff; }
body.theme-modern .ec-yakin {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
    border: 0; border-radius: 999px; background: var(--m-ink); color: #fff; cursor: pointer; font: 700 .9rem var(--m-sans);
}
body.theme-modern .ec-yakin:hover { background: #24303d; }
body.theme-modern .ec-yakin[disabled] { opacity: .7; cursor: progress; }

/* Gövde: liste + harita */
body.theme-modern .ec-govde { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; align-items: start; }
body.theme-modern .ec-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
body.theme-modern .ec-yan { position: sticky; top: 90px; display: grid; gap: 16px; }

/* Kart */
body.theme-modern .ec-kart {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px 18px 16px;
    background: #fff; border: 1px solid var(--m-line); border-radius: 10px;
    border-top: 4px solid var(--ec-yesil); transition: box-shadow .15s, transform .15s;
}
body.theme-modern .ec-kart[hidden] { display: none; }
body.theme-modern .ec-kart:hover { box-shadow: 0 8px 24px -12px rgba(15, 23, 32, .28); }
body.theme-modern .ec-kart.secili { box-shadow: 0 0 0 2px var(--ec-yesil); }
body.theme-modern .ec-kart.en-yakin::before {
    content: 'EN YAKIN'; position: absolute; top: -12px; right: 14px; padding: 3px 9px; border-radius: 999px;
    background: var(--ec-yesil); color: #fff; font: 800 .68rem var(--m-sans); letter-spacing: .06em;
}
body.theme-modern .ec-kart-ust { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
body.theme-modern .ec-ilce {
    display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
    background: var(--ec-yesil-acik); color: var(--ec-yesil-koyu); font-size: .76rem; font-weight: 700; letter-spacing: .02em;
}
body.theme-modern .ec-mesafe { font-size: .8rem; font-weight: 700; color: var(--m-blue); }
body.theme-modern .ec-ad {
    display: flex; align-items: center; gap: 10px; margin: 0;
    font: 800 1.08rem/1.25 var(--m-sans); color: var(--m-ink); letter-spacing: .01em;
}
body.theme-modern .ec-e {
    flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 7px;
    background: #d81f2a; color: #fff; font: 900 1.05rem/1 Georgia, 'Times New Roman', serif;
}
body.theme-modern .ec-adres { margin: 0; font-size: .9rem; line-height: 1.5; color: var(--m-body); flex: 1; }
body.theme-modern .ec-eylem { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
body.theme-modern .ec-ara, body.theme-modern .ec-yol, body.theme-modern .ec-telyok {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 14px;
    border-radius: 8px; font: 700 .9rem var(--m-sans); text-decoration: none;
}
body.theme-modern .ec-ara { flex: 1 1 auto; background: var(--ec-yesil); color: #fff; font-variant-numeric: tabular-nums; }
body.theme-modern .ec-ara:hover { background: var(--ec-yesil-koyu); color: #fff; }
body.theme-modern .ec-yol { border: 1px solid var(--m-line); color: var(--m-ink); background: #fff; }
body.theme-modern .ec-yol:hover { border-color: var(--m-blue); color: var(--m-blue); }
body.theme-modern .ec-telyok { flex: 1 1 auto; background: var(--m-soft); color: var(--m-muted); font-weight: 600; }

/* Harita */
body.theme-modern .ec-harita-kutu { border: 1px solid var(--m-line); border-radius: 10px; overflow: hidden; background: var(--m-soft); }
body.theme-modern .ec-harita { height: 420px; }
body.theme-modern .ec-harita-not { padding: 16px; margin: 0; font-size: .85rem; color: var(--m-muted); }
body.theme-modern .ec-pin { background: none; border: 0; }
body.theme-modern .ec-pin span {
    display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    background: #d81f2a; border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.35);
    color: #fff; font: 900 14px Georgia, serif;
}
body.theme-modern .ec-pin b { transform: rotate(45deg); }
body.theme-modern .leaflet-popup-content { font: 500 13px/1.45 var(--m-sans); }
body.theme-modern .leaflet-popup-content a { color: var(--m-blue); font-weight: 700; }

/* Bilgi kartı */
body.theme-modern .ec-bilgi ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
body.theme-modern .ec-bilgi li { display: flex; gap: 10px; font-size: .88rem; line-height: 1.5; color: var(--m-body); }
body.theme-modern .ec-bilgi li i { color: var(--ec-yesil); width: 18px; text-align: center; margin-top: 3px; flex: 0 0 auto; }
body.theme-modern .ec-bilgi a { color: var(--m-blue); }

/* Duyarlı */
@media (max-width: 1100px) {
    body.theme-modern .ec-govde { grid-template-columns: minmax(0, 1fr) 340px; }
    body.theme-modern .ec-liste { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    body.theme-modern .ec-govde { display: flex; flex-direction: column; align-items: stretch; gap: 16px; }
    body.theme-modern .ec-yan { display: contents; }
    body.theme-modern .ec-harita-kutu { order: -1; }
    body.theme-modern .ec-bilgi { order: 2; }
    body.theme-modern .ec-liste { width: 100%; }
    body.theme-modern .ec-harita { height: 260px; }
    body.theme-modern .ec-liste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    body.theme-modern .ec-liste { grid-template-columns: 1fr; }
    body.theme-modern .ec-arac { flex-direction: column; align-items: stretch; }
    body.theme-modern .ec-arac > * { min-width: 0; max-width: 100%; }
    body.theme-modern .ec-filtre { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
    body.theme-modern .ec-filtre::-webkit-scrollbar { display: none; }
    body.theme-modern .ec-chip { flex: 0 0 auto; }
    body.theme-modern .ec-yakin { justify-content: center; }
}
