/**
 * Booking modal — extracted from frontend.php in Phase 3 PR 12.
 *
 * Markup is rendered by hales_booking_modal() (frontend.php) on the
 * wp_footer hook at priority 31. The accompanying <script> for focus
 * management remains inline alongside the markup.
 */

    .hales-bm {
        position: fixed;
        inset: 0;
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        padding-top: max(16px, env(safe-area-inset-top));
        padding-bottom: max(16px, env(safe-area-inset-bottom));
    }
    .hales-bm-overlay {
        position: absolute;
        inset: 0;
        background: rgba(1,22,53,0.75);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }
    .hales-bm-container {
        position: relative;
        width: 100%;
        max-width: 720px;
        max-height: 90vh;
        max-height: 90dvh;
        background: #fff;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 25px 60px rgba(0,0,0,0.4);
        display: flex;
        flex-direction: column;
        animation: halesBmSlideUp 0.3s ease-out;
    }
    @keyframes halesBmSlideUp {
        from { opacity: 0; transform: translateY(30px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .hales-bm-close {
        position: absolute;
        top: 10px;
        right: 12px;
        z-index: 10;
        width: 36px;
        height: 36px;
        border: none;
        background: rgba(1,22,53,0.1);
        color: #011635;
        font-size: 22px;
        line-height: 1;
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }
    .hales-bm-close:hover {
        background: rgba(1,22,53,0.2);
    }
    .hales-bm-header {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 16px 24px 12px;
        border-bottom: 2px solid transparent;
        border-image: linear-gradient(90deg, #d4af37 0%, #f6e27f 50%, #d4af37 100%) 1;
        flex-shrink: 0;
    }
    .hales-bm-header-icon {
        font-size: 22px;
    }
    .hales-bm-header-text {
        font-size: 18px;
        font-weight: 700;
        color: #011635;
        letter-spacing: -0.3px;
    }
    .hales-bm-body {
        flex: 1 1 auto;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        min-height: 0;
    }
    .hales-bm-body iframe {
        display: block;
        width: 100%;
        border: 0;
        min-height: 300px;
    }

    /* Tablet */
    @media (max-width: 768px) {
        .hales-bm { padding: 10px; }
        .hales-bm-container {
            max-width: 100%;
            max-height: 94vh;
            max-height: 94dvh;
            border-radius: 14px;
        }
    }

    /* Mobile */
    @media (max-width: 600px) {
        .hales-bm {
            padding: 0;
            padding-top: env(safe-area-inset-top);
            padding-bottom: env(safe-area-inset-bottom);
            align-items: stretch;
        }
        .hales-bm-container {
            max-width: 100%;
            max-height: 100vh;
            max-height: 100dvh;
            height: 100%;
            border-radius: 0;
            box-shadow: none;
        }
        .hales-bm-header {
            padding: 12px 16px 10px;
        }
        .hales-bm-header-text {
            font-size: 16px;
        }
        .hales-bm-close {
            top: 8px;
            right: 8px;
            width: 32px;
            height: 32px;
            font-size: 20px;
        }
        .hales-bm-body {
            flex: 1;
        }
    }
