<div class="container comments-container">
    <div class="sas-comments">
        <?php if (post_password_required()) : ?>
            <p><?php esc_html_e('Post is password protected. Enter the password to view any comments.', 'searchandstay-single'); ?></p>
        <?php elseif (have_comments()): ?>
            <h2 class="comments-title"><?php comments_number(); ?></h2>
            <ul class="comment-list">
                <?php wp_list_comments(); ?>
            </ul>
        <?php elseif (!comments_open() && !is_page() && post_type_supports(get_post_type(), 'comments')) : ?>
            <p><?php esc_html_e('Comments are closed here.', 'searchandstay-single'); ?></p>
        <?php endif; ?>
        <?php comment_form(['class_submit' => 'comment-submit']); ?>
    </div>
</div>