/*
 * Muhtarlar sayfası ortak stilleri.
 * includes/muhtar-sayfa-render.php tarafından üretilen HTML'in stilleridir.
 * Eskiden sayfa içeriğine (sayfalar.icerik) gömülü <style> bloğu vardı;
 * artık tek yerden yönetilebilsin diye bu dosyada tutuluyor.
 */

.muhtarlar-aciklama {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 1.5rem;
}

.muhtarlar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 1rem;
}

.muhtar-kart {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}
.muhtar-kart:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.muhtar-foto {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top;
    background: #f1f5f9;
    display: block;
    cursor: pointer;
}

.muhtar-foto-placeholder {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #e2e8f0, #cbd5e1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #94a3b8;
}

.muhtar-info {
    padding: 14px 16px;
    border-top: 3px solid #2E7D32;
}

.muhtar-mahalle {
    font-size: 0.75rem;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 4px;
}

.muhtar-isim {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 8px;
    line-height: 1.3;
}

.muhtar-tel {
    font-size: 0.85rem;
    color: #2E7D32;
    font-weight: 600;
}
.muhtar-tel a {
    color: #2E7D32;
    text-decoration: none;
}
.muhtar-tel a:hover { text-decoration: underline; }

/* Foto lightbox (muhtar fotosuna tıklanınca büyüsün — müdürlük ile aynı sistem) */
.foto-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    padding: 2rem;
}
.foto-lightbox.aktif { display: flex; }
.foto-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}
