<!-- templates/emails/rental_app/base_rental_email.html -->

<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>{% block email_title %}Rent in Sri Lanka{% endblock %}</title>

    <style>
        body {
            margin: 0;
            padding: 0;
            background-color: #e8eef7;
            font-family: Arial, Helvetica, sans-serif;
            color: #222;
        }

        .email-wrapper {
            width: 100%;
            background-color: #e8eef7;
            padding: 30px 0;
        }

        .email-container {
            max-width: 640px;
            margin: 0 auto;
            background-color: #ffffff;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
        }

        /* mirrors .owner-gradient-section */
        .email-header {
            background: linear-gradient(135deg, #0d1b2a 0%, #0d6efd 100%);
            padding: 32px 28px;
            color: #ffffff;
            text-align: center;
        }

        .email-header h1 {
            margin: 0;
            font-size: 26px;
            letter-spacing: -0.3px;
        }

        .email-header p {
            margin: 10px 0 0;
            font-size: 14px;
            opacity: 0.90;
        }

        .email-body {
            padding: 34px 30px;
            font-size: 15px;
            line-height: 1.7;
        }

        .email-body h2 {
            margin-top: 0;
            color: #0d1b2a;
            font-size: 22px;
        }

        /* primary blue button */
        .email-button {
            display: inline-block;
            background-color: #0d6efd;
            color: #ffffff !important;
            text-decoration: none;
            padding: 12px 22px;
            border-radius: 8px;
            font-weight: bold;
            margin-top: 18px;
        }

        /* subtle blue-tinted note */
        .email-note {
            background-color: #eef3fc;
            border-left: 4px solid #0d6efd;
            padding: 14px 16px;
            margin: 20px 0;
            border-radius: 8px;
        }

        /* credential box — mirrors .owner-light-card feel */
        .email-credential-box {
            background: #f8faff;
            border: 1px solid #d0e0fb;
            border-radius: 12px;
            padding: 20px 22px;
            margin: 20px 0;
            font-size: 15px;
        }

        .email-credential-box .credential-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid #e4ecfa;
        }

        .email-credential-box .credential-row:last-child {
            border-bottom: none;
        }

        .email-credential-box .credential-label {
            color: #555;
            font-weight: normal;
        }

        .email-credential-box .credential-value {
            color: #0d1b2a;
            font-weight: bold;
        }

        /* mirrors .owner-process-number */
        .email-step-number {
            display: inline-block;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #0d6efd;
            color: #fff;
            font-weight: 800;
            text-align: center;
            line-height: 32px;
            font-size: 14px;
            margin-right: 10px;
            vertical-align: middle;
        }

        /* mirrors .property-type-box i yellow accent */
        .email-badge {
            display: inline-block;
            background-color: #ffc107;
            color: #0d1b2a;
            font-weight: bold;
            font-size: 12px;
            padding: 4px 10px;
            border-radius: 20px;
            margin-bottom: 10px;
        }

        /* mirrors .final-owner-cta gradient */
        .email-footer {
            background: linear-gradient(135deg, #111827 0%, #08439c  100%);
            color: #cccccc;
            padding: 22px 30px;
            text-align: center;
            font-size: 13px;
        }

        .email-footer a {
            color: #ffffff;
            text-decoration: none;
            font-weight: bold;
        }

        @media only screen and (max-width: 600px) {
            .email-container {
                width: 94% !important;
            }

            .email-body {
                padding: 26px 20px;
            }

            .email-header {
                padding: 26px 20px;
            }
        }
    </style>

    {% block extra_email_styles %}{% endblock %}
</head>

<body>
    <div class="email-wrapper">
        <div class="email-container">

            <div class="email-header">
                <h1>{% block brand_title %}Rent in Sri Lanka{% endblock %}</h1>
                <p>{% block brand_subtitle %}Your trusted rental listing platform in Sri Lanka{% endblock %}</p>
            </div>

            <div class="email-body">
                {% block email_content %}{% endblock %}
            </div>

            <div class="email-footer">

                {% block footer_top %}
                    {% if site_url %}
                        <p style="margin: 0 0 12px;">
                            <a href="{{ site_url }}">Visit List in Sri Lanka</a>
                        </p>
                    {% endif %}
                {% endblock %}

                {% block footer_text %}
                    <p style="margin: 0 0 8px; font-size: 12px; color: #cccccc; line-height: 1.5;">
                        Helping local property owners connect with international guests.
                    </p>
                    <p style="margin: 0; font-size: 12px; color: #cccccc; line-height: 1.5;">
                        &copy; 2026 Ensolanka LLC. All rights reserved.
                    </p>
                {% endblock %}

            </div>

        </div>
    </div>
</body>
</html>