{% extends 'hosting_app/base_hosting.html' %}
{% load static %}

{% block title %}
    {{ page_title|default:"Venue Form" }} | Host in Sri Lanka
{% endblock %}

{% block content %}

<style>
    /* =========================================================
       HOST VENUE FORM — PREMIUM DASHBOARD STYLE
    ========================================================= */

    .hosting-venue-form-page {
        min-height: 100vh;
        padding: 4rem 0 5rem;
        background:
            radial-gradient(circle at top left, rgba(255, 193, 7, 0.12), transparent 28%),
            radial-gradient(circle at top right, rgba(116, 49, 41, 0.10), transparent 32%),
            linear-gradient(180deg, #fffaf5 0%, #fff4e8 42%, #ffffff 100%);
    }

    .hosting-venue-form-hero {
        position: relative;
        overflow: hidden;
        border-radius: 38px;
        padding: 2.6rem 2.4rem;
        margin-bottom: 2rem;
        color: #ffffff;
        background:
            radial-gradient(circle at top right, rgba(255, 211, 107, 0.22), transparent 32%),
            linear-gradient(135deg, #2d1716 0%, #743129 56%, #a7601b 100%);
        box-shadow: 0 30px 68px rgba(58, 30, 24, 0.20);
    }

    .hosting-venue-form-hero::before {
        content: "";
        position: absolute;
        top: -110px;
        right: -85px;
        width: 300px;
        height: 300px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.07);
        pointer-events: none;
    }

    .hosting-venue-form-hero::after {
        content: "";
        position: absolute;
        bottom: -150px;
        left: -110px;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        background: rgba(255, 193, 7, 0.10);
        pointer-events: none;
    }

    .hosting-venue-form-hero-inner {
        position: relative;
        z-index: 2;
    }

    .hosting-venue-form-kicker {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.52rem 1rem;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.14);
        border: 1px solid rgba(255, 255, 255, 0.22);
        color: #ffe7aa;
        font-size: 0.84rem;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 1rem;
    }

    .hosting-venue-form-hero h1 {
        font-size: clamp(2.15rem, 4vw, 3.45rem);
        font-weight: 950;
        line-height: 1.1;
        letter-spacing: -0.045em;
        margin-bottom: 0.75rem;
    }

    .hosting-venue-form-hero p {
        max-width: 850px;
        margin-bottom: 0;
        color: rgba(255, 255, 255, 0.88);
        font-size: 1.03rem;
        line-height: 1.8;
    }

    .hosting-venue-form-actions-top {
        display: flex;
        flex-wrap: wrap;
        gap: 0.85rem;
        margin-top: 1.6rem;
    }

    .hosting-venue-form-actions-top .btn {
        border-radius: 999px;
        font-weight: 850;
        padding: 0.82rem 1.35rem;
        min-height: 48px;
    }

    .hosting-btn-gold {
        background: #ffc107;
        color: #2d1716;
        border: none;
    }

    .hosting-btn-gold:hover {
        background: #ffe082;
        color: #2d1716;
        transform: translateY(-1px);
    }

    .hosting-btn-light-outline {
        background: rgba(255, 255, 255, 0.10);
        color: #ffffff;
        border: 1px solid rgba(255, 255, 255, 0.42);
    }

    .hosting-btn-light-outline:hover {
        background: #ffffff;
        color: #2d1716;
    }

    .hosting-form-card {
        border-radius: 34px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(239, 226, 211, 0.95);
        box-shadow: 0 24px 56px rgba(58, 30, 24, 0.10);
        overflow: hidden;
    }

    .hosting-form-card-header {
        padding: 1.7rem 1.8rem 1.25rem;
        border-bottom: 1px solid #efe2d3;
        background:
            radial-gradient(circle at top right, rgba(255, 193, 7, 0.08), transparent 28%),
            linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    }

    .hosting-form-card-header h2 {
        color: #2d1716;
        font-weight: 950;
        margin-bottom: 0.4rem;
    }

    .hosting-form-card-header p {
        color: #7a655d;
        line-height: 1.7;
        margin-bottom: 0;
    }

    .hosting-form-card-body {
        padding: 2rem;
    }

    .hosting-form-section {
        padding: 1.6rem;
        border: 1px solid #efe2d3;
        border-radius: 28px;
        background:
            radial-gradient(circle at top right, rgba(255, 193, 7, 0.05), transparent 30%),
            #ffffff;
        margin-bottom: 1.4rem;
    }

    .hosting-form-section:last-child {
        margin-bottom: 0;
    }

    .hosting-form-section-title {
        display: flex;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1.25rem;
    }

    .hosting-form-section-icon {
        width: 46px;
        height: 46px;
        border-radius: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: #fff4e4;
        color: #a7601b;
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .hosting-form-section-title h3 {
        color: #2d1716;
        font-weight: 950;
        font-size: 1.25rem;
        margin-bottom: 0.25rem;
    }

    .hosting-form-section-title p {
        color: #7a655d;
        line-height: 1.65;
        margin-bottom: 0;
        font-size: 0.95rem;
    }

    .hosting-form-group {
        margin-bottom: 1.25rem;
    }

    .hosting-form-group label {
        color: #2d1716;
        font-weight: 850;
        margin-bottom: 0.45rem;
        display: block;
    }

    .hosting-form-group input,
    .hosting-form-group select,
    .hosting-form-group textarea {
        border-radius: 16px;
        border: 1px solid #eadbc9;
        background-color: #fffaf5;
        color: #2d1716;
        min-height: 48px;
        transition: all 0.2s ease;
    }

    .hosting-form-group textarea {
        min-height: 130px;
    }

    .hosting-form-group input:focus,
    .hosting-form-group select:focus,
    .hosting-form-group textarea:focus {
        border-color: #a7601b;
        background-color: #ffffff;
        box-shadow: 0 0 0 0.22rem rgba(167, 96, 27, 0.13);
    }

    .hosting-help-text {
        display: block;
        color: #7a655d;
        font-size: 0.85rem;
        line-height: 1.55;
        margin-top: 0.42rem;
    }

    .hosting-field-error {
        color: #dc2626;
        font-size: 0.86rem;
        margin-top: 0.4rem;
        font-weight: 750;
    }

    .hosting-form-check-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.8rem;
    }

    .hosting-check-card {
        display: flex;
        align-items: flex-start;
        gap: 0.65rem;
        border-radius: 18px;
        border: 1px solid #efe2d3;
        background: #fffaf5;
        padding: 0.9rem;
        min-height: 74px;
    }

    .hosting-check-card .form-check-input {
        margin-top: 0.25rem;
        flex-shrink: 0;
        border-color: #d7bfa5;
    }

    .hosting-check-card .form-check-input:checked {
        background-color: #a7601b;
        border-color: #a7601b;
    }

    .hosting-check-card label {
        color: #2d1716;
        font-weight: 800;
        line-height: 1.4;
        margin-bottom: 0;
        cursor: pointer;
    }

    .hosting-current-image {
        border-radius: 24px;
        overflow: hidden;
        border: 1px solid #efe2d3;
        background: #fffaf5;
        margin-bottom: 1rem;
    }

    .hosting-current-image img {
        width: 100%;
        max-height: 320px;
        object-fit: cover;
        display: block;
    }

    .hosting-current-image-caption {
        padding: 0.85rem 1rem;
        color: #7a655d;
        font-size: 0.9rem;
        border-top: 1px solid #efe2d3;
    }

    .hosting-form-note {
        border-radius: 24px;
        padding: 1rem 1.1rem;
        background: #fff4e4;
        border: 1px solid #efd7ae;
        color: #7a4c18;
        line-height: 1.7;
        margin-top: 1.4rem;
    }

    .hosting-form-note strong {
        color: #2d1716;
    }

    .hosting-form-submit-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
        padding: 1.3rem 1.8rem;
        border-top: 1px solid #efe2d3;
        background: #fffaf5;
    }

    .hosting-form-submit-bar .btn {
        border-radius: 999px;
        font-weight: 850;
        min-height: 50px;
        padding: 0.82rem 1.4rem;
    }

    .hosting-submit-btn {
        background: linear-gradient(135deg, #321816, #a7601b);
        color: #ffffff;
        border: none;
        box-shadow: 0 14px 28px rgba(167, 96, 27, 0.20);
    }

    .hosting-submit-btn:hover {
        color: #2d1716;
        background: linear-gradient(135deg, #ffc107, #ffe082);
        transform: translateY(-2px);
    }

    .hosting-side-card {
        border-radius: 34px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid rgba(239, 226, 211, 0.95);
        box-shadow: 0 24px 56px rgba(58, 30, 24, 0.09);
        overflow: hidden;
        position: sticky;
        top: 1rem;
    }

    .hosting-side-card-header {
        padding: 1.5rem 1.6rem 1rem;
        border-bottom: 1px solid #efe2d3;
        background:
            radial-gradient(circle at top right, rgba(255, 193, 7, 0.08), transparent 28%),
            linear-gradient(180deg, #ffffff 0%, #fffaf5 100%);
    }

    .hosting-side-card-header h3 {
        color: #2d1716;
        font-weight: 950;
        margin-bottom: 0.35rem;
    }

    .hosting-side-card-header p {
        color: #7a655d;
        line-height: 1.65;
        margin-bottom: 0;
    }

    .hosting-side-card-body {
        padding: 1.5rem;
    }

    .hosting-tip-list {
        display: grid;
        gap: 0.95rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .hosting-tip-list li {
        display: flex;
        align-items: flex-start;
        gap: 0.7rem;
        color: #6f5b53;
        line-height: 1.65;
    }

    .hosting-tip-list i {
        color: #a7601b;
        font-size: 1.05rem;
        margin-top: 0.2rem;
        flex-shrink: 0;
    }

    @media (max-width: 1199.98px) {
        .hosting-form-check-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 991.98px) {
        .hosting-venue-form-page {
            padding-top: 2.8rem;
        }

        .hosting-venue-form-hero {
            padding: 2rem 1.45rem;
            border-radius: 30px;
        }

        .hosting-side-card {
            position: static;
        }
    }

    @media (max-width: 767.98px) {
        .hosting-form-card-body {
            padding: 1.15rem;
        }

        .hosting-form-section {
            padding: 1.2rem;
            border-radius: 24px;
        }

        .hosting-form-check-grid {
            grid-template-columns: 1fr;
        }

        .hosting-form-submit-bar {
            flex-direction: column;
            align-items: stretch;
            padding: 1.15rem;
        }

        .hosting-form-submit-bar .btn {
            width: 100%;
        }

        .hosting-venue-form-actions-top {
            flex-direction: column;
            align-items: stretch;
        }

        .hosting-venue-form-actions-top .btn {
            width: 100%;
        }
    }
</style>


<section class="hosting-venue-form-page">
    <div class="container">

        <!-- HERO -->
        <div class="hosting-venue-form-hero">
            <div class="hosting-venue-form-hero-inner">

                <span class="hosting-venue-form-kicker">
                    {% if is_update %}
                        <i class="bi bi-pencil-square"></i>
                        Update Venue
                    {% else %}
                        <i class="bi bi-building-add"></i>
                        New Venue
                    {% endif %}
                </span>

                <h1>{{ page_title|default:"Venue Details" }}</h1>

                <p>
                    Add clear venue details, beautiful images, event suitability, facilities,
                    and important guest information. This helps Ensolanka review your venue
                    and later connect it with suitable event packages.
                </p>

                <div class="hosting-venue-form-actions-top">
                    <a href="{% url 'hosting_app:host_venue_list' %}"
                       class="btn hosting-btn-light-outline">
                        <i class="bi bi-arrow-left-circle me-2"></i>
                        Back to Venues
                    </a>

                    {% if is_update and venue %}
                        <a href="{% url 'hosting_app:host_venue_detail' venue.slug %}"
                           class="btn hosting-btn-gold">
                            <i class="bi bi-eye-fill me-2"></i>
                            View Venue
                        </a>
                    {% endif %}
                </div>

            </div>
        </div>


        <div class="row g-4 align-items-start">

            <!-- MAIN FORM -->
            <div class="col-lg-8">
                <div class="hosting-form-card">

                    <div class="hosting-form-card-header">
                        <h2>Venue Information</h2>
                        <p>
                            Complete the fields below to prepare your venue profile for review,
                            package creation, and public visibility.
                        </p>
                    </div>

                    <form method="post" enctype="multipart/form-data">
                        {% csrf_token %}

                        <div class="hosting-form-card-body">

                            {% if form.non_field_errors %}
                                <div class="alert alert-danger rounded-4">
                                    {% for error in form.non_field_errors %}
                                        <div>{{ error }}</div>
                                    {% endfor %}
                                </div>
                            {% endif %}


                            <!-- BASIC DETAILS -->
                            <div class="hosting-form-section">
                                <div class="hosting-form-section-title">
                                    <div class="hosting-form-section-icon">
                                        <i class="bi bi-building-heart"></i>
                                    </div>
                                    <div>
                                        <h3>Basic Venue Details</h3>
                                        <p>
                                            Give your venue a clear name, category, and short introduction.
                                        </p>
                                    </div>
                                </div>

                                <div class="row g-3">
                                    <div class="col-md-8">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.venue_name.id_for_label }}">
                                                Venue Name
                                            </label>
                                            {{ form.venue_name }}

                                            {% for error in form.venue_name.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-md-4">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.venue_category.id_for_label }}">
                                                Venue Category
                                            </label>
                                            {{ form.venue_category }}

                                            {% for error in form.venue_category.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-12">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.short_description.id_for_label }}">
                                                Short Description
                                            </label>
                                            {{ form.short_description }}

                                            {% if form.short_description.help_text %}
                                                <small class="hosting-help-text">
                                                    {{ form.short_description.help_text }}
                                                </small>
                                            {% endif %}

                                            {% for error in form.short_description.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-12">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.full_description.id_for_label }}">
                                                Full Description
                                            </label>
                                            {{ form.full_description }}

                                            {% if form.full_description.help_text %}
                                                <small class="hosting-help-text">
                                                    {{ form.full_description.help_text }}
                                                </small>
                                            {% endif %}

                                            {% for error in form.full_description.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>
                                </div>
                            </div>


                            <!-- LOCATION -->
                            <div class="hosting-form-section">
                                <div class="hosting-form-section-title">
                                    <div class="hosting-form-section-icon">
                                        <i class="bi bi-geo-alt-fill"></i>
                                    </div>
                                    <div>
                                        <h3>Location Details</h3>
                                        <p>
                                            Add district, city, address, and optional Google Map link.
                                        </p>
                                    </div>
                                </div>

                                <div class="row g-3">
                                    <div class="col-md-6">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.district.id_for_label }}">
                                                District
                                            </label>
                                            {{ form.district }}

                                            {% for error in form.district.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-md-6">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.city.id_for_label }}">
                                                City
                                            </label>
                                            {{ form.city }}

                                            {% for error in form.city.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-12">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.address.id_for_label }}">
                                                Address
                                            </label>
                                            {{ form.address }}

                                            {% for error in form.address.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-12">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.google_map_link.id_for_label }}">
                                                Google Map Link
                                            </label>
                                            {{ form.google_map_link }}

                                            {% if form.google_map_link.help_text %}
                                                <small class="hosting-help-text">
                                                    {{ form.google_map_link.help_text }}
                                                </small>
                                            {% else %}
                                                <small class="hosting-help-text">
                                                    Optional. Paste the Google Maps URL for your venue location.
                                                </small>
                                            {% endif %}

                                            {% for error in form.google_map_link.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>
                                </div>
                            </div>


                            <!-- IMAGE & CAPACITY -->
                            <div class="hosting-form-section">
                                <div class="hosting-form-section-title">
                                    <div class="hosting-form-section-icon">
                                        <i class="bi bi-image-fill"></i>
                                    </div>
                                    <div>
                                        <h3>Cover Image & Capacity</h3>
                                        <p>
                                            Upload a strong cover image and add your usual guest capacity.
                                        </p>
                                    </div>
                                </div>

                                {% if is_update and venue and venue.cover_image %}
                                    <div class="hosting-current-image">
                                        <img src="{{ venue.cover_image.url }}"
                                             alt="{{ venue.venue_name }}">
                                        <div class="hosting-current-image-caption">
                                            Current cover image. Upload a new one only if you want to replace it.
                                        </div>
                                    </div>
                                {% endif %}

                                <div class="row g-3">
                                    <div class="col-md-8">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.cover_image.id_for_label }}">
                                                Cover Image
                                            </label>
                                            {{ form.cover_image }}

                                            {% if form.cover_image.help_text %}
                                                <small class="hosting-help-text">
                                                    {{ form.cover_image.help_text }}
                                                </small>
                                            {% else %}
                                                <small class="hosting-help-text">
                                                    Recommended: a clear, attractive landscape image of the venue.
                                                </small>
                                            {% endif %}

                                            {% for error in form.cover_image.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>

                                    <div class="col-md-4">
                                        <div class="hosting-form-group">
                                            <label for="{{ form.max_guest_capacity.id_for_label }}">
                                                Max Guest Capacity
                                            </label>
                                            {{ form.max_guest_capacity }}

                                            {% if form.max_guest_capacity.help_text %}
                                                <small class="hosting-help-text">
                                                    {{ form.max_guest_capacity.help_text }}
                                                </small>
                                            {% endif %}

                                            {% for error in form.max_guest_capacity.errors %}
                                                <div class="hosting-field-error">{{ error }}</div>
                                            {% endfor %}
                                        </div>
                                    </div>
                                </div>
                            </div>


                            <!-- EVENT SUITABILITY -->
                            <div class="hosting-form-section">
                                <div class="hosting-form-section-title">
                                    <div class="hosting-form-section-icon">
                                        <i class="bi bi-heart-fill"></i>
                                    </div>
                                    <div>
                                        <h3>Event Suitability</h3>
                                        <p>
                                            Select the celebration types this venue can support.
                                        </p>
                                    </div>
                                </div>

                                <div class="hosting-form-check-grid">

                                    {% for field in form %}
                                        {% if field.name == 'supports_romantic_dates' or field.name == 'supports_proposal_events' or field.name == 'supports_anniversaries' or field.name == 'supports_birthdays' or field.name == 'supports_honeymoon_experiences' or field.name == 'supports_private_dinners' or field.name == 'supports_engagement_events' or field.name == 'supports_small_weddings' or field.name == 'supports_custom_celebrations' %}
                                            <div class="hosting-check-card">
                                                {{ field }}
                                                <label for="{{ field.id_for_label }}">
                                                    {{ field.label }}
                                                </label>

                                                {% for error in field.errors %}
                                                    <div class="hosting-field-error">{{ error }}</div>
                                                {% endfor %}
                                            </div>
                                        {% endif %}
                                    {% endfor %}

                                </div>
                            </div>


                            <!-- FACILITIES -->
                            <div class="hosting-form-section">
                                <div class="hosting-form-section-title">
                                    <div class="hosting-form-section-icon">
                                        <i class="bi bi-stars"></i>
                                    </div>
                                    <div>
                                        <h3>Venue Facilities & Capabilities</h3>
                                        <p>
                                            Select the practical facilities and services available at your venue.
                                        </p>
                                    </div>
                                </div>

                                <div class="hosting-form-check-grid">

                                    {% for field in form %}
                                        {% if field.name == 'meal_service_available' or field.name == 'alcohol_available' or field.name == 'decoration_available' or field.name == 'photography_allowed' or field.name == 'music_allowed' or field.name == 'indoor_available' or field.name == 'outdoor_available' or field.name == 'private_area_available' or field.name == 'parking_available' %}
                                            <div class="hosting-check-card">
                                                {{ field }}
                                                <label for="{{ field.id_for_label }}">
                                                    {{ field.label }}
                                                </label>

                                                {% for error in field.errors %}
                                                    <div class="hosting-field-error">{{ error }}</div>
                                                {% endfor %}
                                            </div>
                                        {% endif %}
                                    {% endfor %}

                                </div>
                            </div>


                            <!-- IMPORTANT NOTES -->
                            <div class="hosting-form-section">
                                <div class="hosting-form-section-title">
                                    <div class="hosting-form-section-icon">
                                        <i class="bi bi-info-circle-fill"></i>
                                    </div>
                                    <div>
                                        <h3>Important Notes</h3>
                                        <p>
                                            Add venue rules, restrictions, advance notice requirements, or practical notes.
                                        </p>
                                    </div>
                                </div>

                                <div class="hosting-form-group">
                                    <label for="{{ form.important_notes.id_for_label }}">
                                        Important Notes
                                    </label>
                                    {{ form.important_notes }}

                                    {% if form.important_notes.help_text %}
                                        <small class="hosting-help-text">
                                            {{ form.important_notes.help_text }}
                                        </small>
                                    {% endif %}

                                    {% for error in form.important_notes.errors %}
                                        <div class="hosting-field-error">{{ error }}</div>
                                    {% endfor %}
                                </div>

                                <div class="hosting-form-note">
                                    <strong>Review note:</strong>
                                    Your venue may remain as draft or pending until Ensolanka reviews it.
                                    Public visibility and featured status are managed by the admin team.
                                </div>
                            </div>

                        </div>


                        <!-- SUBMIT BAR -->
                        <div class="hosting-form-submit-bar">
                            <a href="{% url 'hosting_app:host_venue_list' %}"
                               class="btn btn-outline-secondary">
                                <i class="bi bi-arrow-left-circle me-2"></i>
                                Cancel
                            </a>

                            <button type="submit" class="btn hosting-submit-btn">
                                <i class="bi bi-check-circle-fill me-2"></i>
                                {{ submit_text|default:"Save Venue" }}
                            </button>
                        </div>

                    </form>
                </div>
            </div>


            <!-- SIDE GUIDANCE -->
            <div class="col-lg-4">
                <div class="hosting-side-card">

                    <div class="hosting-side-card-header">
                        <h3>Venue Listing Tips</h3>
                        <p>
                            A clear and attractive venue profile helps guests and Ensolanka understand
                            what type of events your place can support.
                        </p>
                    </div>

                    <div class="hosting-side-card-body">
                        <ul class="hosting-tip-list">
                            <li>
                                <i class="bi bi-check-circle-fill"></i>
                                <span>
                                    Use a clear venue name that guests can easily understand.
                                </span>
                            </li>

                            <li>
                                <i class="bi bi-check-circle-fill"></i>
                                <span>
                                    Choose the most accurate category, such as restaurant, hotel, villa, rooftop, garden, or beach venue.
                                </span>
                            </li>

                            <li>
                                <i class="bi bi-check-circle-fill"></i>
                                <span>
                                    Explain what makes your venue suitable for romantic dates, proposals, anniversaries, or celebrations.
                                </span>
                            </li>

                            <li>
                                <i class="bi bi-check-circle-fill"></i>
                                <span>
                                    Add honest capacity, facility, and restriction details to avoid guest misunderstanding.
                                </span>
                            </li>

                            <li>
                                <i class="bi bi-check-circle-fill"></i>
                                <span>
                                    Upload an attractive cover image now, then add more gallery images after saving.
                                </span>
                            </li>
                        </ul>

                        {% if is_update and venue %}
                            <div class="hosting-form-note">
                                <strong>Next:</strong>
                                After saving your venue, add gallery images and then create event packages,
                                meal plans, and add-on services for this venue.
                            </div>

                            <div class="d-grid gap-2 mt-3">
                                <a href="{% url 'hosting_app:host_venue_gallery_manage' venue.slug %}"
                                   class="btn btn-outline-dark rounded-pill fw-bold">
                                    <i class="bi bi-images me-2"></i>
                                    Manage Gallery
                                </a>
                            </div>
                        {% endif %}
                    </div>

                </div>
            </div>

        </div>

    </div>
</section>

{% endblock %}