﻿.photographers-catalog{
        margin: 40px 0;
 }

.photographers-catalog-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.photographers-view-toggle {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.photographers-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-green-30);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    background: transparent;
    transition: background var(--transition) ease, border-color var(--transition) ease, color var(--transition) ease;
}

.photographers-view-btn:hover {
    border-color: var(--color-green-60);
    color: var(--text-white);
}

.photographers-view-btn.is-active {
    background: var(--color-green);
    border-color: var(--color-green);
    color: var(--text-white);
}

.photographers-catalog-list {
    column-count: 3;
    column-gap: 48px;
}

.photographers-list-group {
    break-inside: avoid;
    margin-bottom: 28px;
}

.photographers-list-letter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 28px;
    line-height: 1;
    color: var(--text-white);
}

.photographers-list-letter-line {
    flex: 1;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

.photographers-list-names {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.photographers-list-name {
    font-size: 18px;
    line-height: 140%;
    color: var(--text-muted);
}

.photographers-list-name a {
    color: var(--text-white);
    text-decoration: none;
    transition: color var(--transition) ease;
}

.photographers-list-name a:hover {
    color: var(--color-green);
}

.photographers-list-empty,
.catalog-empty {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    padding: 40px 0;
}

.photographers-catalog-filters-top {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}
.photographers-catalog-filters{
    display: flex;
    flex-direction: column;
}

.photographers-catalog-filters-top > *:nth-child(1) { flex: 11; min-width: 0; }
.photographers-catalog-filters-top > *:nth-child(2) { flex: 3; min-width: 0; }
.photographers-catalog-filters-top > *:nth-child(3) { flex: 3; min-width: 0; }
.photographers-catalog-filters-top > *:nth-child(4) { flex: 3; min-width: 0; }

.photographers-filters-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
    height: 43px;
    border: 1px solid var(--color-green-30);
    border-radius: var(--radius-md);
    padding: 10px 30px;
    background: var(--bg-section-dark);
    font-weight: 400;
    font-size: 16px;
    color: var(--text-white);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition) ease, border-color var(--transition) ease;
}

.photographers-filters-toggle img {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

.photographers-filters-toggle.active {
    background: var(--color-green);
    border-color: var(--color-green);
}

.photographers-filters-reset {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 43px;
    border: 1px solid var(--color-green-30);
    border-radius: var(--radius-md);
    padding: 10px 30px;
    background: transparent;
    font-weight: 400;
    font-size: 16px;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--transition) ease, color var(--transition) ease, border-color var(--transition) ease;
}

.photographers-filters-reset:hover {
    border-color: var(--color-green-60);
    color: var(--text-white);
}

.photographers-filters-panel {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    background: #152621;
    gap: 20px;
    transition: max-height var(--transition) ease, padding var(--transition) ease, margin-top var(--transition) ease;
    padding: 0 40px;
}

.photographers-filters-panel.active {
    max-height: 700px;
    padding: 40px;
    margin-top: 20px;
}
.photographers-catalog-inner{
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.photographers-filters-group {
    display: flex;
    flex-direction: column;
    gap: 20px;

}
.photographers-filters-group-title {
    font-weight: 600;
    font-size: 22px;
    line-height: 95%;
    color: #fff;

}
.photographers-filters-btns {
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;

}
.photographers-filter-btn {

}

.photographers-filter-btn {
    border-radius: var(--radius-sm);
    padding: 10px 20px;
    font-weight: 400;
    font-size: 18px;
    line-height: 117%;
    color: var(--text-white);
    background: transparent;
    border: 1px solid var(--color-green-30);
    cursor: pointer;
    transition: background var(--transition) ease, border-color var(--transition) ease;
}

.photographers-filter-btn.active {
    background: var(--color-green);
    border-color: var(--color-green);
}

.photographers-filter-btn:hover {
    border-color: var(--color-green-60);
}

.photographers-catalog-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.photographers-catalog-grid .photographer-item {
    width: 100% !important;
}
.photographers-catalog-pagination {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.photographers-catalog-found{
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #999;
}
.photographers-catolog-block{
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photographers-filters-toggle:hover {
    background: var(--color-green-hover);
    border-color: var(--color-green-60);
}

@media (max-width: 1440px) {
    .photographers-catalog-filters-top > *:nth-child(1) { flex: 8; }
}

@media (max-width: 1200px) {
    .photographers-catalog-filters-top { flex-wrap: wrap; }
    .photographers-catalog-filters-top > *:nth-child(1) { flex: 1 1 100%; }
    .photographers-catalog-filters-top > *:nth-child(2) { flex: 1 1 calc(50% - 10px); }
    .photographers-catalog-filters-top > *:nth-child(3) { flex: 1 1 calc(25% - 10px); }
    .photographers-catalog-filters-top > *:nth-child(4) { flex: 1 1 calc(25% - 10px); }
    .photographers-catalog-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 992px) {
    .photographers-catalog-filters-top > *:nth-child(2),
    .photographers-catalog-filters-top > *:nth-child(3),
    .photographers-catalog-filters-top > *:nth-child(4) { flex: 1 1 calc(33.333% - 14px); }
    .photographers-filters-toggle,
    .photographers-filters-reset { padding: 10px 16px; }
    .photographers-catalog-grid { grid-template-columns: repeat(3, 1fr); }
    .photographers-catalog-list { column-count: 2; column-gap: 32px; }
}

@media (max-width: 768px) {
    .photographers-catalog-top {
        flex-direction: column;
        align-items: stretch;
    }

    .photographers-view-toggle {
        align-self: flex-end;
    }

    .photographers-catalog-grid { grid-template-columns: repeat(2, 1fr); }
    .photographers-catalog-filters-top > *:nth-child(2),
    .photographers-catalog-filters-top > *:nth-child(3),
    .photographers-catalog-filters-top > *:nth-child(4) { flex: 1 1 calc(50% - 10px); }
    .photographers-filter-btn { font-size: 14px; padding: 8px 14px; }
    .photographers-filters-panel.active { padding: 24px; }
}

@media (max-width: 480px) {
    .photographers-catalog-grid { grid-template-columns: 1fr; }
    .photographers-catalog-list { column-count: 1; }
    .photographers-catalog-filters-top > * { flex: 1 1 100% !important; }
}

@media (max-width: 375px) {
    .photographers-filter-btn { font-size: 13px; padding: 7px 12px; }
}

@media (max-width: 320px) {
    .photographers-filters-panel.active { padding: 16px; }
}