<div class="w-full max-w-3xl mx-auto px-4 py-6">
  <div class="bg-white/70 backdrop-blur rounded-2xl shadow border border-stone-200 p-6 sm:p-8 space-y-6">

    <h1 class="text-xl font-semibold tracking-tight">Bookings</h1>

    {% if bookings %}
      <div class="divide-y divide-stone-100">
        {% for booking in bookings %}
          <div class="py-4 first:pt-0 last:pb-0">
            <div class="flex items-start justify-between gap-4">
              <div class="min-w-0 flex-1">
                <p class="text-sm font-medium text-stone-800">{{ booking.name }}</p>
                <div class="mt-1 flex flex-wrap items-center gap-x-3 gap-y-1 text-xs text-stone-500">
                  <span>{{ booking.start_at.strftime('%d %b %Y, %H:%M') }}</span>
                  {% if booking.end_at %}
                    <span>&ndash; {{ booking.end_at.strftime('%H:%M') }}</span>
                  {% endif %}
                  {% if booking.calendar_name %}
                    <span>&middot; {{ booking.calendar_name }}</span>
                  {% endif %}
                  {% if booking.cost %}
                    <span>&middot; &pound;{{ booking.cost }}</span>
                  {% endif %}
                </div>
              </div>
              <div class="flex-shrink-0">
                {% if booking.state == 'confirmed' %}
                  <span class="inline-flex items-center rounded-full bg-emerald-50 border border-emerald-200 px-2.5 py-0.5 text-xs font-medium text-emerald-700">confirmed</span>
                {% elif booking.state == 'provisional' %}
                  <span class="inline-flex items-center rounded-full bg-amber-50 border border-amber-200 px-2.5 py-0.5 text-xs font-medium text-amber-700">provisional</span>
                {% else %}
                  <span class="inline-flex items-center rounded-full bg-stone-50 border border-stone-200 px-2.5 py-0.5 text-xs font-medium text-stone-600">{{ booking.state }}</span>
                {% endif %}
              </div>
            </div>
          </div>
        {% endfor %}
      </div>
    {% else %}
      <p class="text-sm text-stone-500">No bookings yet.</p>
    {% endif %}

  </div>
</div>
