/* ============================================================
   MAESTROS - List / Search Results + Maestro Cards
   ============================================================ */

/* ── Breadcrumb ───────────────────────────────────────────── */
.list-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 20px 0;
    font-size: .8rem;
    color: var(--gray-500);
}

.list-breadcrumb a {
    color: var(--red);
}

.list-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Layout ───────────────────────────────────────────────── */
.list-section {
    padding: 0 0 60px;
    min-height: 60vh;
}

.list-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: flex-start;
}

/* ── Filters sidebar ──────────────────────────────────────── */
.list-filters {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 22px;
    border: 1px solid rgba(0,0,0,.06);
    position: sticky;
    top: 90px;
}

.filter-group {
    margin-bottom: 18px;
}

.filter-group h4 {
    font-size: .8rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.filter-group .form-control {
    height: 40px;
    font-size: .85rem;
}

.btn-filter-apply {
    width: 100%;
    height: 42px;
    border-radius: var(--radius);
    background: var(--red);
    color: var(--white);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
    margin-top: 8px;
}

.btn-filter-apply:hover {
    background: var(--red-dark);
}

/* ── Results ──────────────────────────────────────────────── */
.list-header {
    margin-bottom: 24px;
}

.list-header h1 {
    font-family: var(--font-head);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
}

.list-header p {
    font-size: .9rem;
    color: var(--gray-500);
    margin-top: 4px;
}

/* ── Maestro card grid (shared by home + list) ────────────── */
.maestros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.maestro-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0,0,0,.06);
    overflow: hidden;
    transition: all var(--transition);
}

.maestro-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
    border-color: rgba(237,50,55,.12);
}

.maestro-photo {
    width: 100%;
    height: 200px;
    background: rgba(237,50,55,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.maestro-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maestro-initials {
    font-size: 2.2rem;
    font-weight: 800;
    color: rgba(237,50,55,.25);
    font-family: var(--font-head);
}

.maestro-info {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.maestro-info h3 {
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 6px;
}

.maestro-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.maestro-rating .stars {
    color: #F59E0B;
    font-size: .9rem;
    letter-spacing: 1px;
}

.maestro-rating .rating-num {
    font-weight: 700;
    font-size: .85rem;
    color: var(--dark);
}

.maestro-rating .review-count {
    font-size: .78rem;
    color: var(--gray-500);
}

.maestro-cats {
    font-size: .78rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    line-height: 1.4;
}

.maestro-bio {
    font-size: .82rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 10px;
}

.maestro-meta {
    margin-top: auto;
    display: flex;
    gap: 12px;
    font-size: .75rem;
    color: var(--gray-500);
}

/* ── Home section ─────────────────────────────────────────── */
.section-maestros {
    padding: 60px 0;
    background: var(--white);
}

.section-head {
    text-align: center;
    margin-bottom: 36px;
}

.section-head h2 {
    font-family: var(--font-head);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}

.section-head p {
    font-size: .95rem;
    color: var(--gray-500);
    margin-top: 6px;
}

.empty-center {
    text-align: center;
    padding: 40px;
}

.empty-center p {
    font-size: .95rem;
    color: var(--gray-600);
    margin-bottom: 16px;
}

.btn-cta {
    display: inline-block;
    padding: 14px 32px;
    background: var(--red);
    color: var(--white);
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 700;
    transition: background var(--transition);
}

.btn-cta:hover {
    background: var(--red-dark);
}

/* ── Pagination ───────────────────────────────────────────── */
.list-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 32px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
}

.page-btn:hover {
    background: var(--gray-100);
}

.page-btn.is-active {
    background: var(--red);
    color: var(--white);
    border-color: var(--red);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
    .maestros-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .list-layout {
        grid-template-columns: 1fr;
    }

    .list-filters {
        position: static;
    }

    .maestros-grid {
        grid-template-columns: 1fr;
    }

    .maestro-photo {
        height: 160px;
    }
}
