<?php
$section_title = rt_get_option("frontpage_trip_filter_title", '');
$section_desc = rt_get_option("frontpage_trip_filter_desc", '');
?>
<section id="frontpage-trip-filter" class="frontpage-section has-global-padding">
    <div class="site-container">
        <?php if ($section_title || $section_desc) : ?>
            <div class="rt-block-heading is-layout-constrained text-center">
                <?php if ($section_title) : ?>
                    <h2 class="rt-block-heading__title"><?php echo esc_html($section_title); ?></h2>
                <?php endif; ?>

                <?php if ($section_desc) : ?>
                    <div class="rt-block-heading__desc"><?php echo esc_html($section_desc); ?></div>
                <?php endif; ?>
            </div>
        <?php endif; ?>

        <?php rt_get_template_part('trip/trip-filter') ?>
    </div>
</section>