/* Hekim liste/arama sayfalari: filtre akordeonu, siralama, yorum alintisi, musait saatler.
   2026-12-04 Yazilim (gorev #179). Yalniz .lp-* siniflari ve liste sayfasi kapsami;
   ana sayfa/blog kurallarina dokunmaz. Isaretleme: inc/listing.php */

/* ---------- Duzen ---------- */
.lp-layout .lp-aside { position: static; }
.lp-layout .lp-aside .google-map-link { margin-bottom: 12px; }
.lp-filterbox { border-radius: 16px; padding: 16px 16px 12px; border: 1px solid #e8eef4; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.lp-filterbox__title { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0 0 8px; }

/* ---------- Akordeon ---------- */
.lp-filters { margin: 0; }
.lp-acc { border-top: 1px solid #eef2f7; }
.lp-acc:first-of-type { border-top: 0; }
.lp-acc > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
    min-height: 44px; padding: 10px 2px; font-size: 14px; font-weight: 600; color: #1e293b;
}
.lp-acc > summary::-webkit-details-marker { display: none; }
.lp-acc > summary::after {
    content: ""; width: 9px; height: 9px; margin-right: 4px; flex: none;
    border-right: 2px solid #64748b; border-bottom: 2px solid #64748b; transform: rotate(45deg) translateY(-3px);
    transition: transform .15s ease;
}
.lp-acc[open] > summary::after { transform: rotate(-135deg) translateY(-1px); }
.lp-acc > summary:focus-visible { outline: 2px solid #0fa5e2; outline-offset: 2px; border-radius: 6px; }
.lp-acc__body { padding: 0 2px 14px; }
.lp-acc__body label { display: block; font-size: 13px; font-weight: 600; color: #475569; margin: 8px 0 4px; }
.lp-acc__body label.sr-only { margin: 0; }
.lp-acc__body select.form-control {
    height: 44px; border-radius: 10px; border: 1px solid #e2e8f0; font-size: 15px; color: #1e293b;
    padding: 8px 12px; background-color: #fff; box-shadow: none; width: 100%; max-width: 100%;
}
.lp-acc__body select.form-control:focus { border-color: #0fa5e2; box-shadow: 0 0 0 3px rgba(15, 165, 226, .15); }
.lp-acc__body select.form-control:disabled { background: #f4f7fb; color: #64748b; }
.lp-acc__links { display: flex; flex-direction: column; gap: 6px; }
.lp-opt {
    display: flex; align-items: center; min-height: 44px; padding: 10px 12px 10px 40px; position: relative;
    border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; color: #334155; background: #fff; text-decoration: none;
}
.lp-opt::before {
    content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
    border: 2px solid #94a3b8; border-radius: 5px; background: #fff;
}
.lp-opt:hover, .lp-opt:focus { border-color: #0fa5e2; color: #1e293b; text-decoration: none; }
.lp-opt.is-on { border-color: #0fa5e2; background: #eaf6fd; color: #0b8fc4; font-weight: 600; }
.lp-opt.is-on::before { border-color: #0fa5e2; background: #0fa5e2; box-shadow: inset 0 0 0 3px #fff; }
.lp-apply { margin: 4px 0 10px; border-radius: 10px; min-height: 46px; font-size: 15px; font-weight: 600; }
.lp-clear { display: inline-block; margin-top: 10px; font-size: 14px; color: #0b8fc4; min-height: 24px; }

/* ---------- Siralama cubugu ---------- */
.lp-sortbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
    background: #fff; border: 1px solid #e8eef4; border-radius: 16px; padding: 12px 16px; margin-bottom: 16px;
}
.lp-sortbar__count { font-size: 15px; color: #475569; }
.lp-sortbar__count strong { color: #1e293b; font-weight: 700; }
.lp-sortbar__form { display: flex; align-items: center; gap: 8px; margin: 0; }
.lp-sortbar__form label { font-size: 14px; font-weight: 600; color: #475569; margin: 0; white-space: nowrap; }
.lp-sort-select {
    height: 44px; min-width: 190px; max-width: 100%; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 8px 12px; font-size: 15px; color: #1e293b; background: #fff;
}
.lp-sort-select:focus { outline: 2px solid #0fa5e2; outline-offset: 1px; }
.lp-sortbar__go { height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: #0fa5e2; color: #fff; font-weight: 600; }
.lp-sortbar__chips { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px;
    background: #eaf6fd; color: #0b8fc4; font-size: 14px; font-weight: 600; text-decoration: none;
}
.lp-chip:hover, .lp-chip:focus { background: #d6effb; color: #0b8fc4; text-decoration: none; }

/* ---------- Kart ekleri ---------- */
body.site-modern.page-list .doctors .doctor .lp-norating,
.doctors .doctor .lp-norating { font-size: 12px; line-height: 1.35; color: #64748b; margin-top: 6px; text-align: center; }
.doctors__mobile .doctor .lp-norating { text-align: left; display: inline-block; margin: 0 0 0 6px; vertical-align: middle; }
.doctors__mobile .doctor .txt > .lp-norating { display: block; margin: 6px 0 0; }

.lp-slots { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef2f7; }
.lp-slots__label { display: block; font-size: 13px; font-weight: 700; color: #1a5f8a; margin-bottom: 8px; text-transform: none; }
.lp-slots__list { display: flex; flex-wrap: wrap; gap: 8px; }
.lp-slot {
    display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 12px; border-radius: 10px;
    border: 1px solid #bfe5f7; background: #f4fbff; color: #0b8fc4; font-size: 14px; font-weight: 600;
    text-decoration: none; white-space: nowrap;
}
.lp-slot b { font-weight: 700; color: #1e293b; }
.lp-slot:hover, .lp-slot:focus { background: #0fa5e2; border-color: #0fa5e2; color: #fff; text-decoration: none; }
.lp-slot:hover b, .lp-slot:focus b { color: #fff; }
.lp-slots__all { display: inline-block; margin-top: 8px; font-size: 14px; color: #0b8fc4; }

.lp-quote {
    margin: 12px 0 0; padding: 10px 12px; border: 0; border-left: 3px solid #bfe5f7; background: #f8fafc;
    border-radius: 0 10px 10px 0; font-size: 14px;
}
.lp-quote p {
    margin: 0; color: #334155; font-style: italic; line-height: 1.5; font-size: 14px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.lp-quote footer { margin-top: 4px; font-size: 12px; color: #64748b; }
.lp-quote footer::before { content: none; }
.lp-quote footer a { color: #0b8fc4; }

/* Masaustu kart: eski 3 sutunlu AJAX takvimin yerine metin sutunu tam genislik */
body.site-modern.page-list .doctors .doctor .txt { overflow-wrap: anywhere; }

/* ---------- Mobil ---------- */
.lp-sortbar--m { border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; }
.lp-sortbar--m .lp-sortbar__form { flex: 1 1 100%; }
.lp-sortbar--m .lp-sort-select { flex: 1; min-width: 0; }
.lp-mfilter { padding: 0 !important; background: #fff; }
.lp-mfilter__head {
    position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
    padding: 12px 16px; background: #fff; border-bottom: 1px solid #eef2f7;
}
.lp-mfilter__head h2 { font-size: 18px; font-weight: 700; color: #1e293b; margin: 0; }
.lp-mfilter__close {
    min-height: 44px; min-width: 64px; padding: 0 14px; border: 1px solid #e2e8f0; border-radius: 10px;
    background: #fff; color: #334155; font-size: 15px; font-weight: 600;
}
.lp-filters--m { padding: 4px 16px 32px; }
.doctors__mobile .doctor .txt { min-width: 0; }
.doctors__mobile .lp-slot { min-height: 44px; }

@media (max-width: 991px) {
    .lp-layout .lp-aside { margin-bottom: 16px; }
}
@media (max-width: 480px) {
    .lp-sortbar__form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* Mobil "Filtrele" dugmesi (basliktaki huni ikonu yalniz /dis-hekimleri/'de basiliyor) */
.lp-mfilter-open {
    display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 1px solid #0fa5e2;
    border-radius: 10px; background: #fff; color: #0b8fc4; font-size: 15px; font-weight: 600;
}
.lp-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #0fa5e2; color: #fff; font-size: 12px; }

/* Mobil filtre paneli sitenin basligini (z-index 200) ortmeli; cerez bandi (9999) ustte kalir */
.mobile__filter.lp-mfilter { z-index: 1000; top: 0; bottom: 0; }

/* Tablet: filtre sutunu sonuclarin ustunde; harita gorseli (arka plan dosemesi) gizlenir */
@media (max-width: 991px) {
    .lp-layout .lp-aside .google-map-link { display: none; }
    .lp-layout .lp-aside .btn-lg { min-height: 46px; padding-top: 10px; padding-bottom: 10px; }
}
