{% extends 'base.html' %}
{% load static %}

{% block content %}
<div class="hero-section">
    <div class="hero-overlay"></div>
    <div class="container text-center hero-content">
        <h1 class="hero-title">Find your perfect getaway</h1>
        <p class="hero-subtitle">Discover and book unique homes and experiences.</p>
        <form class="search-form mt-4">
            <div class="row g-2 justify-content-center">
                <div class="col-md-4">
                    <input type="text" class="form-control" placeholder="Location">
                </div>
                <div class="col-md-2">
                    <input type="date" class="form-control">
                </div>
                <div class="col-md-2">
                    <input type="date" class="form-control">
                </div>
                <div class="col-md-2">
                    <input type="number" class="form-control" placeholder="Guests">
                </div>
                <div class="col-md-2">
                    <button type="submit" class="btn btn-primary w-100">Search</button>
                </div>
            </div>
        </form>
    </div>
</div>

<div class="container mt-5">
    <h2 class="section-title">Featured Properties</h2>
    <div class="row">
        {% for property in properties %}
        <div class="col-md-4 mb-4">
            <div class="card property-card">
                <img src="{{ property.image_url }}" class="card-img-top" alt="{{ property.title }}">
                <div class="card-body">
                    <h5 class="card-title">{{ property.title }}</h5>
                    <p class="card-text">{{ property.location }}</p>
                    <p class="card-text"><strong>${{ property.price_per_night }}</strong> / night</p>
                    <a href="#" class="btn btn-secondary">View Details</a>
                </div>
            </div>
        </div>
        {% endfor %}
    </div>
</div>
{% endblock %}
