/* ═══════════════════════════════════════════════
   Libraries List — libraries.css  v1.1
   Шорткод [libraries_list]
   ═══════════════════════════════════════════════ */

/* ── Обёртка ── */
.lib-list-wrap {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin: 0 auto;
}

/* ── Карточка ── */
.lib-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: row;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}
.lib-card:hover {
    box-shadow: 0 6px 28px rgba(0,0,0,0.14);
}

/* ── Изображение ── */
.lib-card-img {
    flex: 0 0 220px;
    width: 220px;
    overflow: hidden;
    background: #eef4f0;
}
.lib-card-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.lib-card:hover .lib-card-img img {
    transform: scale(1.05);
}

/* ── Тело карточки ── */
.lib-card-body {
    flex: 1;
    padding: 24px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ── Название ── */
.lib-card-title {
    font-family: 'KZBookman', serif;
    font-size: 19px;
    font-weight: normal;
    color: #1b4d35;
    margin: 0;
    line-height: 1.3;
}

/* ── Адрес ── */
.lib-card-addr {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    font-size: 13px;
    color: #555;
    margin: 0;
    line-height: 1.5;
}
.lib-card-addr .bi {
    font-size: 15px;
    color: #1e6640;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ── Иконки ссылок ── */
.lib-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.lib-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 17px;
    color: #fff;
    text-decoration: none;
    transition: transform 0.18s ease, filter 0.18s ease;
    flex-shrink: 0;
}
.lib-icon-btn:hover {
    transform: translateY(-3px) scale(1.1);
    filter: brightness(1.12);
    color: #fff;
}

/* 2GIS — собственная иконка SVG */
.lib-icon-2gis {
    background: transparent;
    padding: 2px;
}
/* Instagram — фирменный градиент */
.lib-icon-ig {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}
/* Facebook — фирменный синий */
.lib-icon-fb {
    background: #1877f2;
}
/* TikTok — чёрный */
.lib-icon-tt {
    background: #010101;
}

/* ── Контакты (телефон / e-mail) ── */
.lib-card-contacts {
    display: flex;
    flex-direction: row;
    gap: 20px;
    flex-wrap: wrap;
}

.lib-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    color: #1a1a1a;
    transition: color 0.18s ease;
    width: fit-content;
}
.lib-contact-item:hover {
    color: #1e6640;
}
.lib-contact-item .bi {
    font-size: 14px;
    flex-shrink: 0;
}
.lib-contact-phone .bi {
    color: #1e6640;
}
.lib-contact-email .bi {
    color: #c9a434;
}

/* ── Адаптив ── */
@media (max-width: 600px) {
    .lib-card {
        flex-direction: column;
    }
    .lib-card-img {
        flex: 0 0 auto;
        width: 100%;
        height: 200px;
    }
    .lib-card-body {
        padding: 18px 20px;
    }
    .lib-card-title {
        font-size: 17px;
    }
}
