<div class="col-md-3">
    <div class="card tour-card">
        {% if tour.image %}
            <img src="{{ url_for('static', filename='uploads/' + tour.image) }}" class="card-img-top" alt="{{ tour.title }}">
        {% else %}
            <img src="{{ url_for('static', filename='uploads/spotting-the-sri-lankan-leopard-slider-11.avif') }}" class="card-img-top" alt="{{ tour.title }}">
        {% endif %}
        <div class="card-body">
            <h5 class="card-title">{{ tour.title }}</h5>
    
                <div class="d-flex justify-content-between align-items-center">
                    <a href="{{ url_for('main.request_quote') }}" class="btn rounded-pill primary_btn">Request a Quote</a>
                    <a href="{{ url_for('main.tour_detail', slug=tour.slug) }}" class="btn btn-link btn-sm">Read More</a>
                </div>
        </div>
    </div>
</div>

