/******* Do not edit this file *******
Woody Code Snippets CSS and JS
Saved: Apr 29 2026 | 01:22:36 */
/* ===== ФІЛЬТР ===== */
.people-filter-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.filter-field {
    flex: 1;
    min-width: 140px;
}

.filter-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 5px;
}

.filter-field select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.filter-submit {
    display: flex;
    gap: 10px;
    align-items: center;
    flex: 0 0 auto;
}

.filter-submit button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.filter-submit button:hover {
    background: #005a87;
}

.reset-btn {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.reset-btn:hover {
    color: #0073aa;
}

/* ===== ПОЛЕ ПОШУКУ ===== */
.search-row {
    margin-top: 15px;
    position: relative;
}

.search-field {
    display: flex;
    gap: 8px;
}

.search-field input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.search-field input:focus {
    outline: none;
    border-color: #0073aa;
}

.search-field button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
}

.search-field button:hover {
    background: #005a87;
}

/* Підказки пошуку */
.search-suggestions {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 60px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    margin-top: 5px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.suggestion-item:hover {
    background: #f0f7ff;
    color: #0073aa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

/* ===== АКТИВНІ ФІЛЬТРИ ===== */
.active-filters {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #ddd;
    font-size: 14px;
}

.filter-tag {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    margin: 0 5px 5px 0;
    font-size: 13px;
}

.results-count {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ===== СІТКА 5 В РЯД ===== */
.people-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* ===== КАРТКА ===== */
.people-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

/* Фото з іконкою збільшення */
.people-photo-wrap {
    width: 100%;
    height: 140px;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.people-photo-wrap:hover .people-photo-img {
    opacity: 0.7;
}

.people-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s;
}

.photo-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.people-photo-wrap:hover .photo-zoom-icon {
    opacity: 1;
}

.people-photo-placeholder {
    color: #bbb;
    font-size: 12px;
}

/* Інформація */
.people-info {
    padding: 10px;
}

.people-name {
    margin: 0 0 6px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
}

/* ACF */
.people-acf {
    background: #f0f7ff;
    border-left: 2px solid #0073aa;
    padding: 6px 8px;
    margin-bottom: 8px;
    border-radius: 0 4px 4px 0;
}

.acf-row {
    font-size: 11px;
    margin-bottom: 2px;
    display: flex;
    gap: 4px;
    line-height: 1.4;
}

.acf-row:last-child {
    margin-bottom: 0;
}

.acf-label {
    color: #777;
    font-weight: 500;
    white-space: nowrap;
}

.acf-value {
    color: #333;
    font-weight: 600;
}

/* Мета без лінків */
.people-meta {
    font-size: 11px;
    line-height: 1.4;
}

.people-meta-row {
    margin-bottom: 2px;
}

.meta-label {
    color: #999;
}

.meta-value {
    color: #555;
}

/* ===== ЛАЙТБОКС ===== */
.lightbox {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 40px;
    box-sizing: border-box;
}

.lightbox-img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.lightbox-caption {
    color: #fff;
    margin-top: 20px;
    font-size: 18px;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ff6b6b;
}

/* ===== ПАГІНАЦІЯ ===== */
.people-pagination {
    margin-top: 30px;
    text-align: center;
}

.people-pagination a,
.people-pagination span {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 2px;
    border: 1px solid #ddd;
    color: #555;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
}

.people-pagination a:hover {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.people-pagination span.current {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

/* ===== НЕМАЄ РЕЗУЛЬТАТІВ ===== */
.people-no-results {
    text-align: center;
    padding: 50px 20px;
    color: #888;
}

.people-no-results a {
    color: #0073aa;
}

/* ===== АДАПТИВ ===== */
@media (max-width: 1200px) {
    .people-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .people-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .filter-row {
        flex-direction: column;
    }
    .filter-field {
        width: 100%;
    }
    .people-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .people-photo-wrap {
        height: 160px;
    }
    .search-field input {
        font-size: 16px;
    }
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
}

@media (max-width: 480px) {
    .people-grid {
        grid-template-columns: 1fr;
    }
    .search-field {
        flex-direction: column;
    }
    .search-field button {
        width: 100%;
        padding: 12px;
    }
}