/**
 * Booking Modal Styles
 *
 * @package BeachBooking
 */

.bb-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--rs-z-modal, 9999);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: var(--bb-font-body, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
}

.bb-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.55);
    backdrop-filter: blur(4px);
}

.bb-modal-container {
    position: relative;
    background: var(--bb-card, #FFFDF9);
    border-radius: var(--bb-radius-lg, 12px);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    box-shadow: var(--bb-shadow-lg, 0 20px 60px rgba(44,24,16,.22));
}

.bb-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--bb-border, rgba(139,46,59,.16));
}

.bb-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--bb-primary, #8B2E3B);
}

.bb-modal-close {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--bb-bg, #F5F0EB);
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: var(--bb-text-muted, #5C4D47);
    transition: var(--bb-transition, all .2s ease);
}

.bb-modal-close:hover {
    background: var(--bb-primary, #8B2E3B);
    color: #fff;
}

.bb-modal-close:focus-visible {
    outline: 3px solid var(--rs-gold, #C9A961);
    outline-offset: 2px;
}

.bb-modal-body {
    padding: 24px;
}

@media (max-width: 640px) {
    .bb-modal {
        padding: 0;
    }

    .bb-modal-container {
        max-height: 100vh;
        border-radius: 0;
    }
}
